| 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/include/fx_coordinates.h" | 10 #include "core/fxcrt/include/fx_coordinates.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 class CFWL_ThemeBackground; | 29 class CFWL_ThemeBackground; |
| 30 class CFWL_ThemePart; | 30 class CFWL_ThemePart; |
| 31 class CFWL_ThemeText; | 31 class CFWL_ThemeText; |
| 32 class IFWL_Widget; | 32 class IFWL_Widget; |
| 33 | 33 |
| 34 class IFWL_ThemeProvider { | 34 class IFWL_ThemeProvider { |
| 35 public: | 35 public: |
| 36 virtual ~IFWL_ThemeProvider() {} | 36 virtual ~IFWL_ThemeProvider() {} |
| 37 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget) = 0; | 37 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget) = 0; |
| 38 virtual FX_DWORD GetThemeID(IFWL_Widget* pWidget) = 0; | 38 virtual uint32_t GetThemeID(IFWL_Widget* pWidget) = 0; |
| 39 virtual FX_DWORD SetThemeID(IFWL_Widget* pWidget, | 39 virtual uint32_t SetThemeID(IFWL_Widget* pWidget, |
| 40 FX_DWORD dwThemeID, | 40 uint32_t dwThemeID, |
| 41 FX_BOOL bChildren = TRUE) = 0; | 41 FX_BOOL bChildren = TRUE) = 0; |
| 42 virtual FWL_ERR GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) = 0; | 42 virtual FWL_ERR GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix) = 0; |
| 43 virtual FWL_ERR SetThemeMatrix(IFWL_Widget* pWidget, | 43 virtual FWL_ERR SetThemeMatrix(IFWL_Widget* pWidget, |
| 44 const CFX_Matrix& matrix) = 0; | 44 const CFX_Matrix& matrix) = 0; |
| 45 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) = 0; | 45 virtual FX_BOOL DrawBackground(CFWL_ThemeBackground* pParams) = 0; |
| 46 virtual FX_BOOL DrawText(CFWL_ThemeText* pParams) = 0; | 46 virtual FX_BOOL DrawText(CFWL_ThemeText* pParams) = 0; |
| 47 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, | 47 virtual void* GetCapacity(CFWL_ThemePart* pThemePart, |
| 48 FX_DWORD dwCapacity) = 0; | 48 uint32_t dwCapacity) = 0; |
| 49 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget) = 0; | 49 virtual FX_BOOL IsCustomizedLayout(IFWL_Widget* pWidget) = 0; |
| 50 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, | 50 virtual FWL_ERR GetPartRect(CFWL_ThemePart* pThemePart, |
| 51 CFX_RectF& rtPart) = 0; | 51 CFX_RectF& rtPart) = 0; |
| 52 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, | 52 virtual FX_BOOL IsInPart(CFWL_ThemePart* pThemePart, |
| 53 FX_FLOAT fx, | 53 FX_FLOAT fx, |
| 54 FX_FLOAT fy) = 0; | 54 FX_FLOAT fy) = 0; |
| 55 virtual FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) = 0; | 55 virtual FX_BOOL CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) = 0; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // XFA_FWL_CORE_IFWL_THEMEPROVIDER_H_ | 58 #endif // XFA_FWL_CORE_IFWL_THEMEPROVIDER_H_ |
| OLD | NEW |