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

Side by Side Diff: xfa/include/fwl/core/fwl_theme.h

Issue 1087053002: Merge to XFA: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 8 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/include/fwl/core/fwl_note.h ('k') | xfa/include/fwl/core/fwl_widget.h » ('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 _FWL_THEME_H 7 #ifndef _FWL_THEME_H
8 #define _FWL_THEME_H 8 #define _FWL_THEME_H
9 class IFWL_Widget; 9 class IFWL_Widget;
10 class CFWL_ThemePart; 10 class CFWL_ThemePart;
11 class CFWL_ThemeBackground; 11 class CFWL_ThemeBackground;
12 class CFWL_ThemeText; 12 class CFWL_ThemeText;
13 class CFWL_ThemeElement; 13 class CFWL_ThemeElement;
14 class IFWL_ThemeProvider; 14 class IFWL_ThemeProvider;
15 #define FWL_WGTCAPACITY_CXBorder 1 15 #define FWL_WGTCAPACITY_CXBorder 1
16 #define FWL_WGTCAPACITY_CYBorder 2 16 #define FWL_WGTCAPACITY_CYBorder 2
17 #define FWL_WGTCAPACITY_ScrollBarWidth 3 17 #define FWL_WGTCAPACITY_ScrollBarWidth 3
18 #define FWL_WGTCAPACITY_EdgeFlat 4 18 #define FWL_WGTCAPACITY_EdgeFlat 4
19 #define FWL_WGTCAPACITY_EdgeRaised 5 19 #define FWL_WGTCAPACITY_EdgeRaised 5
20 #define FWL_WGTCAPACITY_EdgeSunken 6 20 #define FWL_WGTCAPACITY_EdgeSunken 6
21 #define FWL_WGTCAPACITY_Font 7 21 #define FWL_WGTCAPACITY_Font 7
22 #define FWL_WGTCAPACITY_FontSize 8 22 #define FWL_WGTCAPACITY_FontSize 8
23 #define FWL_WGTCAPACITY_TextColor 9 23 #define FWL_WGTCAPACITY_TextColor 9
24 #define FWL_WGTCAPACITY_TextSelColor 10 24 #define FWL_WGTCAPACITY_TextSelColor 10
25 #define FWL_WGTCAPACITY_LineHeight 11 25 #define FWL_WGTCAPACITY_LineHeight 11
26 #define FWL_WGTCAPACITY_UIMargin 12 26 #define FWL_WGTCAPACITY_UIMargin 12
27 #define FWL_WGTCAPACITY_SpaceAboveBelow 13 27 #define FWL_WGTCAPACITY_SpaceAboveBelow 13
28 #define FWL_WGTCAPACITY_MAX 65535 28 #define FWL_WGTCAPACITY_MAX 65535
29 class CFWL_ThemePart : public CFX_Object 29 class CFWL_ThemePart
30 { 30 {
31 public: 31 public:
32 CFWL_ThemePart() 32 CFWL_ThemePart()
33 : m_pWidget(NULL) 33 : m_pWidget(NULL)
34 , m_iPart(0) 34 , m_iPart(0)
35 , m_dwStates(0) 35 , m_dwStates(0)
36 , m_dwData(0) 36 , m_dwData(0)
37 , m_pData(NULL) 37 , m_pData(NULL)
38 { 38 {
39 m_rtPart.Reset(); 39 m_rtPart.Reset();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual FWL_ERR SetThemeMatrix(IFWL_Widget *pWidget, const CFX_M atrix &matrix) = 0; 82 virtual FWL_ERR SetThemeMatrix(IFWL_Widget *pWidget, const CFX_M atrix &matrix) = 0;
83 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground *pParams) = 0; 83 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground *pParams) = 0;
84 virtual FX_BOOL DrawText(CFWL_ThemeText *pParams) = 0; 84 virtual FX_BOOL DrawText(CFWL_ThemeText *pParams) = 0;
85 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac ity) = 0; 85 virtual FX_LPVOID GetCapacity(CFWL_ThemePart *pThemePart, FX_DWORD dwCapac ity) = 0;
86 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget *pWidget) = 0; 86 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget *pWidget) = 0;
87 virtual FWL_ERR GetPartRect(CFWL_ThemePart *pThemePart, CFX_Rect F &rtPart) = 0; 87 virtual FWL_ERR GetPartRect(CFWL_ThemePart *pThemePart, CFX_Rect F &rtPart) = 0;
88 virtual FX_BOOL IsInPart(CFWL_ThemePart *pThemePart, FX_FLOAT fx , FX_FLOAT fy) = 0; 88 virtual FX_BOOL IsInPart(CFWL_ThemePart *pThemePart, FX_FLOAT fx , FX_FLOAT fy) = 0;
89 virtual FX_BOOL CalcTextRect(CFWL_ThemeText *pParams, CFX_RectF &rect) = 0; 89 virtual FX_BOOL CalcTextRect(CFWL_ThemeText *pParams, CFX_RectF &rect) = 0;
90 }; 90 };
91 #endif 91 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/core/fwl_note.h ('k') | xfa/include/fwl/core/fwl_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698