Chromium Code Reviews| 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_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 Mon, | 23 Mon, |
|
Tom Sepez
2016/04/21 17:05:25
weeks start on sundays. we should adjust the code
dsinclair
2016/04/21 17:09:23
Done.
| |
| 24 Tue, | 24 Tue, |
| 25 Wed, | 25 Wed, |
| 26 Thu, | 26 Thu, |
| 27 Fri, | 27 Fri, |
| 28 Sat, | 28 Sat, |
| 29 Sun, | 29 Sun, |
| 30 | 30 |
| 31 January, | 31 January, |
| 32 February, | 32 February, |
| 33 March, | 33 March, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |