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

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

Issue 2494883002: Remove IFGAS_FontMgr and clean up (the renamed) CFGAS_FontMgr a little. (Closed)
Patch Set: Nits Created 4 years, 1 month 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/fgas/layout/fgas_unicode.h ('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>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 WeekNumWidth, 89 WeekNumWidth,
90 WeekWidth, 90 WeekWidth,
91 Width 91 Width
92 }; 92 };
93 93
94 class CFDE_TextOut; 94 class CFDE_TextOut;
95 class CFGAS_GEFont; 95 class CFGAS_GEFont;
96 class CFWL_ThemeBackground; 96 class CFWL_ThemeBackground;
97 class CFWL_ThemePart; 97 class CFWL_ThemePart;
98 class CFWL_ThemeText; 98 class CFWL_ThemeText;
99 class IFGAS_FontMgr; 99 class CFGAS_FontMgr;
100 class IFWL_Widget; 100 class IFWL_Widget;
101 101
102 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 102 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
103 class CFX_FontSourceEnum_File; 103 class CFX_FontSourceEnum_File;
104 #endif 104 #endif
105 105
106 class CFWL_WidgetTP { 106 class CFWL_WidgetTP {
107 public: 107 public:
108 virtual ~CFWL_WidgetTP(); 108 virtual ~CFWL_WidgetTP();
109 109
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 uint16_t wCodePage); 238 uint16_t wCodePage);
239 CFGAS_GEFont* GetFont() const { return m_pFont.get(); } 239 CFGAS_GEFont* GetFont() const { return m_pFont.get(); }
240 240
241 protected: 241 protected:
242 CFX_WideString m_wsFamily; 242 CFX_WideString m_wsFamily;
243 uint32_t m_dwStyles; 243 uint32_t m_dwStyles;
244 uint32_t m_dwCodePage; 244 uint32_t m_dwCodePage;
245 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 245 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
246 std::unique_ptr<CFX_FontSourceEnum_File> m_pFontSource; 246 std::unique_ptr<CFX_FontSourceEnum_File> m_pFontSource;
247 #endif 247 #endif
248 std::unique_ptr<IFGAS_FontMgr> m_pFontMgr; 248 std::unique_ptr<CFGAS_FontMgr> m_pFontMgr;
249 std::unique_ptr<CFGAS_GEFont> m_pFont; 249 std::unique_ptr<CFGAS_GEFont> m_pFont;
250 }; 250 };
251 251
252 class CFWL_FontManager { 252 class CFWL_FontManager {
253 public: 253 public:
254 static CFWL_FontManager* GetInstance(); 254 static CFWL_FontManager* GetInstance();
255 static void DestroyInstance(); 255 static void DestroyInstance();
256 256
257 CFGAS_GEFont* FindFont(const CFX_WideStringC& wsFontFamily, 257 CFGAS_GEFont* FindFont(const CFX_WideStringC& wsFontFamily,
258 uint32_t dwFontStyles, 258 uint32_t dwFontStyles,
259 uint16_t dwCodePage); 259 uint16_t dwCodePage);
260 260
261 protected: 261 protected:
262 CFWL_FontManager(); 262 CFWL_FontManager();
263 virtual ~CFWL_FontManager(); 263 virtual ~CFWL_FontManager();
264 264
265 static CFWL_FontManager* s_FontManager; 265 static CFWL_FontManager* s_FontManager;
266 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; 266 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray;
267 }; 267 };
268 268
269 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ 269 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_
OLDNEW
« no previous file with comments | « xfa/fgas/layout/fgas_unicode.h ('k') | xfa/fwl/theme/cfwl_widgettp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698