From c273e8f5006aa7d91d37a5da021dbbabb8721e5b Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 19 Oct 2016 07:48:05 -0700 Subject: Remove FWL theme subclasses The CFWL_CheckBoxTP and CFWL_EditTP are subclassed with the CXFA_FWLEditTP and CXFA_FWLCheckBoxTP. The super classes are never instantiated or used, so fold the subclasses back to the parent and use them directly. Review-Url: https://chromiumcodereview.appspot.com/2418413005 --- xfa/fxfa/app/xfa_fwltheme.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'xfa/fxfa/app/xfa_fwltheme.h') diff --git a/xfa/fxfa/app/xfa_fwltheme.h b/xfa/fxfa/app/xfa_fwltheme.h index 8c045de791..8243df271f 100644 --- a/xfa/fxfa/app/xfa_fwltheme.h +++ b/xfa/fxfa/app/xfa_fwltheme.h @@ -63,28 +63,6 @@ class CXFA_FWLTheme final : public IFWL_ThemeProvider { CFX_SizeF m_SizeAboveBelow; }; -class CXFA_FWLCheckBoxTP : public CFWL_CheckBoxTP { - public: - CXFA_FWLCheckBoxTP(); - - // CFWL_CheckBoxTP - FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override; - - protected: - void DrawCheckSign(IFWL_Widget* pWidget, - CFX_Graphics* pGraphics, - const CFX_RectF* pRtBox, - int32_t iState, - CFX_Matrix* pMatrix); -}; - -class CXFA_FWLEditTP : public CFWL_EditTP { - public: - CXFA_FWLEditTP(); - ~CXFA_FWLEditTP() override; - - // CFWL_EditTP - FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override; -}; +CXFA_FFWidget* XFA_ThemeGetOuterWidget(IFWL_Widget* pWidget); #endif // XFA_FXFA_APP_XFA_FWLTHEME_H_ -- cgit v1.2.3