diff options
Diffstat (limited to 'xfa/fxfa/cxfa_ffpushbutton.h')
-rw-r--r-- | xfa/fxfa/cxfa_ffpushbutton.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_ffpushbutton.h b/xfa/fxfa/cxfa_ffpushbutton.h index d0b0b885c7..e247ee5e39 100644 --- a/xfa/fxfa/cxfa_ffpushbutton.h +++ b/xfa/fxfa/cxfa_ffpushbutton.h @@ -9,18 +9,20 @@ #include <memory> +#include "core/fxcrt/unowned_ptr.h" #include "xfa/fxfa/cxfa_fffield.h" #define XFA_FWL_PSBSTYLEEXT_HiliteInverted (1L << 0) #define XFA_FWL_PSBSTYLEEXT_HilitePush (1L << 1) #define XFA_FWL_PSBSTYLEEXT_HiliteOutLine (1L << 2) +class CXFA_Button; class CXFA_TextLayout; class CXFA_TextProvider; class CXFA_FFPushButton : public CXFA_FFField { public: - explicit CXFA_FFPushButton(CXFA_Node* pNode); + CXFA_FFPushButton(CXFA_Node* pNode, CXFA_Button* button); ~CXFA_FFPushButton() override; // CXFA_FFField @@ -49,7 +51,8 @@ class CXFA_FFPushButton : public CXFA_FFField { std::unique_ptr<CXFA_TextLayout> m_pDownTextLayout; std::unique_ptr<CXFA_TextProvider> m_pRollProvider; std::unique_ptr<CXFA_TextProvider> m_pDownProvider; - IFWL_WidgetDelegate* m_pOldDelegate; + IFWL_WidgetDelegate* m_pOldDelegate = nullptr; + UnownedPtr<CXFA_Button> button_; }; #endif // XFA_FXFA_CXFA_FFPUSHBUTTON_H_ |