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

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

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
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 FWL_ERR Initialize() override; 18 FWL_Error Initialize() override;
19 FWL_ERR Finalize() override; 19 FWL_Error Finalize() override;
20 FX_BOOL IsValidWidget(IFWL_Widget* pWidget) override; 20 FX_BOOL IsValidWidget(IFWL_Widget* pWidget) override;
21 uint32_t SetThemeID(IFWL_Widget* pWidget, 21 uint32_t SetThemeID(IFWL_Widget* pWidget,
22 uint32_t dwThemeID, 22 uint32_t dwThemeID,
23 FX_BOOL bChildren = TRUE) override; 23 FX_BOOL bChildren = TRUE) override;
24 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override; 24 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override;
25 FX_BOOL DrawText(CFWL_ThemeText* pParams) override; 25 FX_BOOL DrawText(CFWL_ThemeText* pParams) override;
26 void* GetCapacity(CFWL_ThemePart* pThemePart, 26 void* GetCapacity(CFWL_ThemePart* pThemePart,
27 CFWL_WidgetCapacity dwCapacity) override; 27 CFWL_WidgetCapacity dwCapacity) override;
28 FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, CFX_RectF& rtPart) override; 28 FWL_Error GetPartRect(CFWL_ThemePart* pThemePart, CFX_RectF& rtPart) override;
29 29
30 protected: 30 protected:
31 void CalCloseBox(IFWL_Widget* pWidget, CFX_RectF& rect); 31 void CalCloseBox(IFWL_Widget* pWidget, CFX_RectF& rect);
32 void CalMaxBox(IFWL_Widget* pWidget, CFX_RectF& rect); 32 void CalMaxBox(IFWL_Widget* pWidget, CFX_RectF& rect);
33 void CalMinBox(IFWL_Widget* pWidget, CFX_RectF& rect); 33 void CalMinBox(IFWL_Widget* pWidget, CFX_RectF& rect);
34 void CalCaption(IFWL_Widget* pWidget, CFX_RectF& rect); 34 void CalCaption(IFWL_Widget* pWidget, CFX_RectF& rect);
35 void CalIcon(IFWL_Widget* pWidget, CFX_RectF& rect); 35 void CalIcon(IFWL_Widget* pWidget, CFX_RectF& rect);
36 36
37 void DrawFormBorder(CFX_Graphics* pGraphics, 37 void DrawFormBorder(CFX_Graphics* pGraphics,
38 const CFX_RectF* pRect, 38 const CFX_RectF* pRect,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 FX_ARGB clrBtnEdgeOut[2]; 103 FX_ARGB clrBtnEdgeOut[2];
104 FX_ARGB clrBtnCornerLight[2][3]; 104 FX_ARGB clrBtnCornerLight[2][3];
105 FX_ARGB clrHeadText[2]; 105 FX_ARGB clrHeadText[2];
106 FX_ARGB clrFormBorder[2][5]; 106 FX_ARGB clrFormBorder[2][5];
107 FX_ARGB clrFormBorderLight[2]; 107 FX_ARGB clrFormBorderLight[2];
108 FX_ARGB clrTransWhite; 108 FX_ARGB clrTransWhite;
109 } * m_pThemeData; 109 } * m_pThemeData;
110 }; 110 };
111 111
112 #endif // XFA_FWL_THEME_CFWL_FORMTP_H_ 112 #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