| 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 _FWL_THEME_LIGHT_H | 7 #ifndef XFA_INCLUDE_FWL_LIGHTWIDGET_THEME_H_ |
| 8 #define _FWL_THEME_LIGHT_H | 8 #define XFA_INCLUDE_FWL_LIGHTWIDGET_THEME_H_ |
| 9 |
| 10 #include <memory> |
| 11 #include <vector> |
| 9 | 12 |
| 10 #include "xfa/include/fwl/core/fwl_theme.h" | 13 #include "xfa/include/fwl/core/fwl_theme.h" |
| 11 | 14 |
| 12 class CFWL_WidgetTP; | 15 class CFWL_WidgetTP; |
| 13 class IFWL_Widget; | 16 class IFWL_Widget; |
| 14 | 17 |
| 15 class CFWL_Theme : public IFWL_ThemeProvider { | 18 class CFWL_Theme : public IFWL_ThemeProvider { |
| 16 public: | 19 public: |
| 17 CFWL_Theme(); | 20 CFWL_Theme(); |
| 18 ~CFWL_Theme() override; | 21 ~CFWL_Theme() override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 38 | 41 |
| 39 FWL_ERR Initialize(); | 42 FWL_ERR Initialize(); |
| 40 FWL_ERR Finalize(); | 43 FWL_ERR Finalize(); |
| 41 FWL_ERR SetFont(IFWL_Widget* pWidget, | 44 FWL_ERR SetFont(IFWL_Widget* pWidget, |
| 42 const FX_WCHAR* strFont, | 45 const FX_WCHAR* strFont, |
| 43 FX_FLOAT fFontSize, | 46 FX_FLOAT fFontSize, |
| 44 FX_ARGB rgbFont); | 47 FX_ARGB rgbFont); |
| 45 CFWL_WidgetTP* GetTheme(IFWL_Widget* pWidget); | 48 CFWL_WidgetTP* GetTheme(IFWL_Widget* pWidget); |
| 46 | 49 |
| 47 protected: | 50 protected: |
| 48 CFX_PtrArray m_arrThemes; | 51 std::vector<std::unique_ptr<CFWL_WidgetTP>> m_ThemesArray; |
| 49 }; | 52 }; |
| 50 #endif | 53 |
| 54 #endif // XFA_INCLUDE_FWL_LIGHTWIDGET_THEME_H_ |
| OLD | NEW |