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

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

Issue 1896893003: Cleanup FDE interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 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/fwl/basewidget/fwl_editimp.cpp ('k') | xfa/fwl/theme/cfwl_widgettp.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_WIDGETTP_H_ 7 #ifndef XFA_FWL_THEME_CFWL_WIDGETTP_H_
8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ 8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "core/fxcrt/include/fx_coordinates.h" 13 #include "core/fxcrt/include/fx_coordinates.h"
14 #include "core/fxcrt/include/fx_system.h" 14 #include "core/fxcrt/include/fx_system.h"
15 #include "xfa/fwl/core/fwl_error.h" 15 #include "xfa/fwl/core/fwl_error.h"
16 #include "xfa/fxgraphics/include/cfx_graphics.h" 16 #include "xfa/fxgraphics/include/cfx_graphics.h"
17 #include "xfa/fwl/theme/cfwl_utils.h" 17 #include "xfa/fwl/theme/cfwl_utils.h"
18 18
19 enum class CFWL_WidgetCapacity { 19 enum class CFWL_WidgetCapacity {
20 None = 0, 20 None = 0,
21 21
22 Today, 22 Today,
23 Sun,
23 Mon, 24 Mon,
24 Tue, 25 Tue,
25 Wed, 26 Wed,
26 Thu, 27 Thu,
27 Fri, 28 Fri,
28 Sat, 29 Sat,
29 Sun,
30 30
31 January, 31 January,
32 February, 32 February,
33 March, 33 March,
34 April, 34 April,
35 May, 35 May,
36 June, 36 June,
37 July, 37 July,
38 August, 38 August,
39 September, 39 September,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 VSepHeight, 85 VSepHeight,
86 VSepWidth, 86 VSepWidth,
87 WeekHeight, 87 WeekHeight,
88 WeekNumHeight, 88 WeekNumHeight,
89 WeekNumWidth, 89 WeekNumWidth,
90 WeekWidth, 90 WeekWidth,
91 Width 91 Width
92 }; 92 };
93 93
94 class IFWL_Widget; 94 class IFWL_Widget;
95 class IFDE_TextOut; 95 class CFDE_TextOut;
96 class IFX_Font; 96 class IFX_Font;
97 class IFX_FontMgr; 97 class IFX_FontMgr;
98 class CFWL_ArrowData; 98 class CFWL_ArrowData;
99 class CFWL_ThemeBackground; 99 class CFWL_ThemeBackground;
100 class CFWL_ThemePart; 100 class CFWL_ThemePart;
101 class CFWL_ThemeText; 101 class CFWL_ThemeText;
102 102
103 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 103 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
104 class IFX_FontSourceEnum; 104 class IFX_FontSourceEnum;
105 #endif 105 #endif
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 void DrawBtn(CFX_Graphics* pGraphics, 210 void DrawBtn(CFX_Graphics* pGraphics,
211 const CFX_RectF* pRect, 211 const CFX_RectF* pRect,
212 FWLTHEME_STATE eState, 212 FWLTHEME_STATE eState,
213 CFX_Matrix* pMatrix = NULL); 213 CFX_Matrix* pMatrix = NULL);
214 void DrawArrowBtn(CFX_Graphics* pGraphics, 214 void DrawArrowBtn(CFX_Graphics* pGraphics,
215 const CFX_RectF* pRect, 215 const CFX_RectF* pRect,
216 FWLTHEME_DIRECTION eDict, 216 FWLTHEME_DIRECTION eDict,
217 FWLTHEME_STATE eState, 217 FWLTHEME_STATE eState,
218 CFX_Matrix* pMatrix = NULL); 218 CFX_Matrix* pMatrix = NULL);
219 uint32_t m_dwRefCount; 219 uint32_t m_dwRefCount;
220 IFDE_TextOut* m_pTextOut; 220 CFDE_TextOut* m_pTextOut;
221 IFX_Font* m_pFDEFont; 221 IFX_Font* m_pFDEFont;
222 FX_FLOAT m_fValue; 222 FX_FLOAT m_fValue;
223 uint32_t m_dwValue; 223 uint32_t m_dwValue;
224 CFX_RectF m_rtMargin; 224 CFX_RectF m_rtMargin;
225 uint32_t m_dwThemeID; 225 uint32_t m_dwThemeID;
226 CFX_Matrix _ctm; 226 CFX_Matrix _ctm;
227 }; 227 };
228 FX_BOOL FWLTHEME_Init(); 228 FX_BOOL FWLTHEME_Init();
229 void FWLTHEME_Release(); 229 void FWLTHEME_Release();
230 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID); 230 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 protected: 286 protected:
287 CFWL_FontManager(); 287 CFWL_FontManager();
288 virtual ~CFWL_FontManager(); 288 virtual ~CFWL_FontManager();
289 289
290 static CFWL_FontManager* s_FontManager; 290 static CFWL_FontManager* s_FontManager;
291 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; 291 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray;
292 }; 292 };
293 293
294 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ 294 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_editimp.cpp ('k') | xfa/fwl/theme/cfwl_widgettp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698