diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-30 20:36:50 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-30 20:36:50 +0000 |
commit | 7311006b16f30da32fed5145e2e1c2c04a5cea41 (patch) | |
tree | c5a62d46d630fe9913817d99ea0ba4147196b867 /xfa/fxfa/cxfa_ffcheckbutton.h | |
parent | 802eaea7696e2e1aa8d6d76d1fee39fbe1c7794b (diff) | |
download | pdfium-7311006b16f30da32fed5145e2e1c2c04a5cea41.tar.xz |
Move CheckButton code from CXFA_Node to CXFA_CheckButton
This CL moves some of the code specific to CheckButtons out of CXFA_Node
and into the CXFA_CheckButton class. The CheckButton is passed as a
parameter to the CXFA_FFCheckButton class.
Change-Id: I3344c484d90e3b8d1024024a2851685044113a23
Reviewed-on: https://pdfium-review.googlesource.com/24711
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffcheckbutton.h')
-rw-r--r-- | xfa/fxfa/cxfa_ffcheckbutton.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_ffcheckbutton.h b/xfa/fxfa/cxfa_ffcheckbutton.h index 230695f85a..d1fb21c47d 100644 --- a/xfa/fxfa/cxfa_ffcheckbutton.h +++ b/xfa/fxfa/cxfa_ffcheckbutton.h @@ -7,13 +7,16 @@ #ifndef XFA_FXFA_CXFA_FFCHECKBUTTON_H_ #define XFA_FXFA_CXFA_FFCHECKBUTTON_H_ +#include "core/fxcrt/unowned_ptr.h" #include "xfa/fxfa/cxfa_fffield.h" #include "xfa/fxfa/cxfa_ffpageview.h" #include "xfa/fxfa/parser/cxfa_node.h" +class CXFA_CheckButton; + class CXFA_FFCheckButton : public CXFA_FFField { public: - explicit CXFA_FFCheckButton(CXFA_Node* pNode); + explicit CXFA_FFCheckButton(CXFA_Node* pNode, CXFA_CheckButton* button); ~CXFA_FFCheckButton() override; // CXFA_FFField @@ -41,8 +44,9 @@ class CXFA_FFCheckButton : public CXFA_FFField { void AddUIMargin(XFA_AttributeEnum iCapPlacement); XFA_CHECKSTATE FWLState2XFAState(); - IFWL_WidgetDelegate* m_pOldDelegate; + IFWL_WidgetDelegate* m_pOldDelegate = nullptr; CFX_RectF m_rtCheckBox; + UnownedPtr<CXFA_CheckButton> button_; }; #endif // XFA_FXFA_CXFA_FFCHECKBUTTON_H_ |