diff options
author | dsinclair <dsinclair@chromium.org> | 2016-10-19 07:48:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-19 07:48:05 -0700 |
commit | c273e8f5006aa7d91d37a5da021dbbabb8721e5b (patch) | |
tree | 27ca349823fb3fb6f86db50305421ae2302db1db /xfa/fwl/theme/cfwl_checkboxtp.h | |
parent | 09bad1cf251c68d1492af4049e1324a46d9c9725 (diff) | |
download | pdfium-c273e8f5006aa7d91d37a5da021dbbabb8721e5b.tar.xz |
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
Diffstat (limited to 'xfa/fwl/theme/cfwl_checkboxtp.h')
-rw-r--r-- | xfa/fwl/theme/cfwl_checkboxtp.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/xfa/fwl/theme/cfwl_checkboxtp.h b/xfa/fwl/theme/cfwl_checkboxtp.h index d6beae8573..cdc4ba1d57 100644 --- a/xfa/fwl/theme/cfwl_checkboxtp.h +++ b/xfa/fwl/theme/cfwl_checkboxtp.h @@ -37,19 +37,11 @@ class CFWL_CheckBoxTP : public CFWL_WidgetTP { FX_ARGB clrSignNeutralPressed; }; - void DrawBoxBk(IFWL_Widget* pWidget, - CFX_Graphics* pGraphics, - const CFX_RectF* pRect, - uint32_t dwStates, - CFX_Matrix* pMatrix); - void DrawSign(IFWL_Widget* pWidget, - CFX_Graphics* pGraphics, - const CFX_RectF* pRtBox, - uint32_t dwStates, - CFX_Matrix* pMatrix); - void DrawSignNeutral(CFX_Graphics* pGraphics, - const CFX_RectF* pRtSign, - CFX_Matrix* pMatrix); + void DrawCheckSign(IFWL_Widget* pWidget, + CFX_Graphics* pGraphics, + const CFX_RectF& pRtBox, + int32_t iState, + CFX_Matrix* pMatrix); void DrawSignCheck(CFX_Graphics* pGraphics, const CFX_RectF* pRtSign, FX_ARGB argbFill, @@ -74,11 +66,7 @@ class CFWL_CheckBoxTP : public CFWL_WidgetTP { const CFX_RectF* pRtSign, FX_ARGB argbFill, CFX_Matrix* pMatrix); - void DrawSignBorder(IFWL_Widget* pWidget, - CFX_Graphics* pGraphics, - const CFX_RectF* pRtBox, - FX_BOOL bDisable, - CFX_Matrix* pMatrix); + void SetThemeData(uint32_t dwID); void InitCheckPath(FX_FLOAT fCheckLen); |