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

Side by Side Diff: xfa/fwl/lightwidget/cfwl_theme.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/lightwidget/cfwl_scrollbar.cpp ('k') | xfa/fwl/lightwidget/cfwl_theme.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_LIGHTWIDGET_CFWL_THEME_H_ 7 #ifndef XFA_FWL_LIGHTWIDGET_CFWL_THEME_H_
8 #define XFA_FWL_LIGHTWIDGET_CFWL_THEME_H_ 8 #define XFA_FWL_LIGHTWIDGET_CFWL_THEME_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 CFWL_Theme(); 25 CFWL_Theme();
26 ~CFWL_Theme() override; 26 ~CFWL_Theme() override;
27 27
28 // IFWL_ThemeProvider: 28 // IFWL_ThemeProvider:
29 FX_BOOL IsValidWidget(IFWL_Widget* pWidget) override; 29 FX_BOOL IsValidWidget(IFWL_Widget* pWidget) override;
30 uint32_t GetThemeID(IFWL_Widget* pWidget) override; 30 uint32_t GetThemeID(IFWL_Widget* pWidget) override;
31 uint32_t SetThemeID(IFWL_Widget* pWidget, 31 uint32_t SetThemeID(IFWL_Widget* pWidget,
32 uint32_t dwThemeID, 32 uint32_t dwThemeID,
33 FX_BOOL bChildren = TRUE) override; 33 FX_BOOL bChildren = TRUE) override;
34 FWL_ERR GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override; 34 FWL_Error GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) override;
35 FWL_ERR SetThemeMatrix(IFWL_Widget* pWidget, 35 FWL_Error SetThemeMatrix(IFWL_Widget* pWidget,
36 const CFX_Matrix& matrix) override; 36 const CFX_Matrix& matrix) override;
37 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override; 37 FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) override;
38 FX_BOOL DrawText(CFWL_ThemeText* pParams) override; 38 FX_BOOL DrawText(CFWL_ThemeText* pParams) override;
39 void* GetCapacity(CFWL_ThemePart* pThemePart, 39 void* GetCapacity(CFWL_ThemePart* pThemePart,
40 CFWL_WidgetCapacity dwCapacity) override; 40 CFWL_WidgetCapacity dwCapacity) override;
41 FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget) override; 41 FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget) override;
42 FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, CFX_RectF& rtPart) override; 42 FWL_Error GetPartRect(CFWL_ThemePart* pThemePart, CFX_RectF& rtPart) override;
43 FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, 43 FX_BOOL IsInPart(CFWL_ThemePart* pThemePart,
44 FX_FLOAT fx, 44 FX_FLOAT fx,
45 FX_FLOAT fy) override; 45 FX_FLOAT fy) override;
46 FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) override; 46 FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) override;
47 47
48 FWL_ERR Initialize(); 48 FWL_Error Initialize();
49 FWL_ERR Finalize(); 49 FWL_Error Finalize();
50 FWL_ERR SetFont(IFWL_Widget* pWidget, 50 FWL_Error SetFont(IFWL_Widget* pWidget,
51 const FX_WCHAR* strFont, 51 const FX_WCHAR* strFont,
52 FX_FLOAT fFontSize, 52 FX_FLOAT fFontSize,
53 FX_ARGB rgbFont); 53 FX_ARGB rgbFont);
54 CFWL_WidgetTP* GetTheme(IFWL_Widget* pWidget); 54 CFWL_WidgetTP* GetTheme(IFWL_Widget* pWidget);
55 55
56 protected: 56 protected:
57 std::vector<std::unique_ptr<CFWL_WidgetTP>> m_ThemesArray; 57 std::vector<std::unique_ptr<CFWL_WidgetTP>> m_ThemesArray;
58 }; 58 };
59 59
60 #endif // XFA_FWL_LIGHTWIDGET_CFWL_THEME_H_ 60 #endif // XFA_FWL_LIGHTWIDGET_CFWL_THEME_H_
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_scrollbar.cpp ('k') | xfa/fwl/lightwidget/cfwl_theme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698