Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: xfa/fwl/theme/cfwl_checkboxtp.h

Issue 1946213003: Remove CLASSHASH defines in favour of an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/theme/cfwl_carettp.cpp ('k') | xfa/fwl/theme/cfwl_checkboxtp.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ 7 #ifndef XFA_FWL_THEME_CFWL_CHECKBOXTP_H_
8 #define XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ 8 #define XFA_FWL_THEME_CFWL_CHECKBOXTP_H_
9 9
10 #include "xfa/fwl/theme/cfwl_utils.h" 10 #include "xfa/fwl/theme/cfwl_utils.h"
11 #include "xfa/fwl/theme/cfwl_widgettp.h" 11 #include "xfa/fwl/theme/cfwl_widgettp.h"
12 12
13 class CFWL_CheckBoxTP : public CFWL_WidgetTP { 13 class CFWL_CheckBoxTP : public CFWL_WidgetTP {
14 public: 14 public:
15 CFWL_CheckBoxTP(); 15 CFWL_CheckBoxTP();
16 virtual ~CFWL_CheckBoxTP(); 16 ~CFWL_CheckBoxTP() override;
17 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget); 17
18 virtual uint32_t SetThemeID(IFWL_Widget* pWidget, 18 // CFWL_WidgeTP
19 uint32_t dwThemeID, 19 bool IsValidWidget(IFWL_Widget* pWidget) override;
20 FX_BOOL bChildren = TRUE); 20 uint32_t SetThemeID(IFWL_Widget* pWidget,
21 virtual FX_BOOL DrawText(CFWL_ThemeText* pParams); 21 uint32_t dwThemeID,
22 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams); 22 FX_BOOL bChildren = TRUE) override;
23 virtual FWL_Error Initialize(); 23 FX_BOOL DrawText(CFWL_ThemeText* pParams) override;
24 virtual FWL_Error Finalize(); 24 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override;
25 FWL_Error Initialize() override;
26 FWL_Error Finalize() override;
25 27
26 protected: 28 protected:
27 void DrawBoxBk(IFWL_Widget* pWidget, 29 void DrawBoxBk(IFWL_Widget* pWidget,
28 CFX_Graphics* pGraphics, 30 CFX_Graphics* pGraphics,
29 const CFX_RectF* pRect, 31 const CFX_RectF* pRect,
30 uint32_t dwStates, 32 uint32_t dwStates,
31 CFX_Matrix* pMatrix = NULL); 33 CFX_Matrix* pMatrix = NULL);
32 void DrawSign(IFWL_Widget* pWidget, 34 void DrawSign(IFWL_Widget* pWidget,
33 CFX_Graphics* pGraphics, 35 CFX_Graphics* pGraphics,
34 const CFX_RectF* pRtBox, 36 const CFX_RectF* pRtBox,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 FX_ARGB clrSignCheck; 77 FX_ARGB clrSignCheck;
76 FX_ARGB clrSignNeutral; 78 FX_ARGB clrSignNeutral;
77 FX_ARGB clrSignNeutralNormal; 79 FX_ARGB clrSignNeutralNormal;
78 FX_ARGB clrSignNeutralHover; 80 FX_ARGB clrSignNeutralHover;
79 FX_ARGB clrSignNeutralPressed; 81 FX_ARGB clrSignNeutralPressed;
80 } * m_pThemeData; 82 } * m_pThemeData;
81 CFX_Path* m_pCheckPath; 83 CFX_Path* m_pCheckPath;
82 }; 84 };
83 85
84 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_ 86 #endif // XFA_FWL_THEME_CFWL_CHECKBOXTP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_carettp.cpp ('k') | xfa/fwl/theme/cfwl_checkboxtp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698