OLD | NEW |
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_CORE_IFWL_THEMEPROVIDER_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_THEMEPROVIDER_H_ |
8 #define XFA_FWL_CORE_IFWL_THEMEPROVIDER_H_ | 8 #define XFA_FWL_CORE_IFWL_THEMEPROVIDER_H_ |
9 | 9 |
10 #include "core/fxcrt/fx_coordinates.h" | 10 #include "core/fxcrt/fx_coordinates.h" |
11 #include "core/fxcrt/fx_system.h" | |
12 #include "xfa/fwl/core/fwl_error.h" | |
13 #include "xfa/fwl/theme/cfwl_widgettp.h" | 11 #include "xfa/fwl/theme/cfwl_widgettp.h" |
14 | 12 |
15 class CFWL_ThemeBackground; | 13 class CFWL_ThemeBackground; |
16 class CFWL_ThemePart; | 14 class CFWL_ThemePart; |
17 class CFWL_ThemeText; | 15 class CFWL_ThemeText; |
18 class IFWL_Widget; | 16 class IFWL_Widget; |
19 | 17 |
20 class IFWL_ThemeProvider { | 18 class IFWL_ThemeProvider { |
21 public: | 19 public: |
22 virtual ~IFWL_ThemeProvider() {} | 20 virtual ~IFWL_ThemeProvider() {} |
23 | 21 |
24 virtual void DrawBackground(CFWL_ThemeBackground* pParams) = 0; | 22 virtual void DrawBackground(CFWL_ThemeBackground* pParams) = 0; |
25 virtual void DrawText(CFWL_ThemeText* pParams) = 0; | 23 virtual void DrawText(CFWL_ThemeText* pParams) = 0; |
26 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, | 24 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, |
27 CFWL_WidgetCapacity dwCapacity) = 0; | 25 CFWL_WidgetCapacity dwCapacity) = 0; |
28 virtual bool IsCustomizedLayout(IFWL_Widget* pWidget) = 0; | 26 virtual bool IsCustomizedLayout(IFWL_Widget* pWidget) = 0; |
29 virtual void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) = 0; | 27 virtual void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) = 0; |
30 }; | 28 }; |
31 | 29 |
32 #endif // XFA_FWL_CORE_IFWL_THEMEPROVIDER_H_ | 30 #endif // XFA_FWL_CORE_IFWL_THEMEPROVIDER_H_ |
OLD | NEW |