From 2056fac754e679baea695390854fe7b0ce7acb28 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Tue, 16 Jan 2018 16:06:45 +0000 Subject: 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 Commit-Queue: Ryan Harrison --- xfa/fxfa/cxfa_ffcheckbutton.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xfa/fxfa/cxfa_ffcheckbutton.cpp') diff --git a/xfa/fxfa/cxfa_ffcheckbutton.cpp b/xfa/fxfa/cxfa_ffcheckbutton.cpp index 699f3fe988..69b5d6f943 100644 --- a/xfa/fxfa/cxfa_ffcheckbutton.cpp +++ b/xfa/fxfa/cxfa_ffcheckbutton.cpp @@ -344,3 +344,7 @@ void CXFA_FFCheckButton::OnDrawWidget(CXFA_Graphics* pGraphics, const CFX_Matrix& matrix) { m_pOldDelegate->OnDrawWidget(pGraphics, matrix); } + +FormFieldType CXFA_FFCheckButton::GetFormFieldType() { + return FormFieldType::kXFA_CheckBox; +} -- cgit v1.2.3