diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-01-16 16:06:45 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-16 16:06:45 +0000 |
commit | 2056fac754e679baea695390854fe7b0ce7acb28 (patch) | |
tree | b0f2b982ac2ea9d4206ecd9703eb439ad524cb32 /xfa/fxfa/cxfa_ffcombobox.cpp | |
parent | d3427164e7869ee9c22fcb843ab619b247cbed72 (diff) | |
download | pdfium-2056fac754e679baea695390854fe7b0ce7acb28.tar.xz |
Add support for XFA specific FormField types
This adds to form field types specific types for XFA form fields to be
used instead of the generic XFA value when possible.
BUG=pdfium:952,chromium:763129,chromium:592758
Change-Id: I8d1cff6a280d71db348b7c31a251cbe2e398ec79
Reviewed-on: https://pdfium-review.googlesource.com/22677
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffcombobox.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffcombobox.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xfa/fxfa/cxfa_ffcombobox.cpp b/xfa/fxfa/cxfa_ffcombobox.cpp index 5d0792b56d..4c024fbdef 100644 --- a/xfa/fxfa/cxfa_ffcombobox.cpp +++ b/xfa/fxfa/cxfa_ffcombobox.cpp @@ -266,6 +266,10 @@ void CXFA_FFComboBox::DeSelect() { ToComboBox(m_pNormalWidget.get())->EditDeSelect(); } +FormFieldType CXFA_FFComboBox::GetFormFieldType() { + return FormFieldType::kXFA_ComboBox; +} + void CXFA_FFComboBox::SetItemState(int32_t nIndex, bool bSelected) { ToComboBox(m_pNormalWidget.get())->SetCurSel(bSelected ? nIndex : -1); m_pNormalWidget->Update(); |