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

Side by Side Diff: xfa/fwl/theme/cfwl_formtp.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_edittp.cpp ('k') | xfa/fwl/theme/cfwl_formtp.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_FORMTP_H_ 7 #ifndef XFA_FWL_THEME_CFWL_FORMTP_H_
8 #define XFA_FWL_THEME_CFWL_FORMTP_H_ 8 #define XFA_FWL_THEME_CFWL_FORMTP_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_FormTP : public CFWL_WidgetTP { 13 class CFWL_FormTP : public CFWL_WidgetTP {
14 public: 14 public:
15 CFWL_FormTP(); 15 CFWL_FormTP();
16 ~CFWL_FormTP() override; 16 ~CFWL_FormTP() override;
17 17
18 // CFWL_WidgetTP
18 FWL_Error Initialize() override; 19 FWL_Error Initialize() override;
19 FWL_Error Finalize() override; 20 FWL_Error Finalize() override;
20 FX_BOOL IsValidWidget(IFWL_Widget* pWidget) override; 21 bool IsValidWidget(IFWL_Widget* pWidget) override;
21 uint32_t SetThemeID(IFWL_Widget* pWidget, 22 uint32_t SetThemeID(IFWL_Widget* pWidget,
22 uint32_t dwThemeID, 23 uint32_t dwThemeID,
23 FX_BOOL bChildren = TRUE) override; 24 FX_BOOL bChildren = TRUE) override;
24 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override; 25 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override;
25 FX_BOOL DrawText(CFWL_ThemeText* pParams) override; 26 FX_BOOL DrawText(CFWL_ThemeText* pParams) override;
26 void* GetCapacity(CFWL_ThemePart* pThemePart, 27 void* GetCapacity(CFWL_ThemePart* pThemePart,
27 CFWL_WidgetCapacity dwCapacity) override; 28 CFWL_WidgetCapacity dwCapacity) override;
28 FWL_Error GetPartRect(CFWL_ThemePart* pThemePart, CFX_RectF& rtPart) override; 29 FWL_Error GetPartRect(CFWL_ThemePart* pThemePart, CFX_RectF& rtPart) override;
29 30
30 protected: 31 protected:
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 FX_ARGB clrBtnEdgeOut[2]; 104 FX_ARGB clrBtnEdgeOut[2];
104 FX_ARGB clrBtnCornerLight[2][3]; 105 FX_ARGB clrBtnCornerLight[2][3];
105 FX_ARGB clrHeadText[2]; 106 FX_ARGB clrHeadText[2];
106 FX_ARGB clrFormBorder[2][5]; 107 FX_ARGB clrFormBorder[2][5];
107 FX_ARGB clrFormBorderLight[2]; 108 FX_ARGB clrFormBorderLight[2];
108 FX_ARGB clrTransWhite; 109 FX_ARGB clrTransWhite;
109 } * m_pThemeData; 110 } * m_pThemeData;
110 }; 111 };
111 112
112 #endif // XFA_FWL_THEME_CFWL_FORMTP_H_ 113 #endif // XFA_FWL_THEME_CFWL_FORMTP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/theme/cfwl_edittp.cpp ('k') | xfa/fwl/theme/cfwl_formtp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698