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_FGAS_FONT_FGAS_STDFONTMGR_H_ | 7 #ifndef XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ |
| 8 #define XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ | 8 #define XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_ext.h" | 10 #include "core/fxcrt/include/fx_ext.h" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 IFX_FileAccess* GetNext(FX_POSITION& pos); | 135 IFX_FileAccess* GetNext(FX_POSITION& pos); |
| 136 | 136 |
| 137 private: | 137 private: |
| 138 CFX_ByteString GetNextFile(); | 138 CFX_ByteString GetNextFile(); |
| 139 | 139 |
| 140 CFX_WideString m_wsNext; | 140 CFX_WideString m_wsNext; |
| 141 CFX_ObjectArray<FX_HandleParentPath> m_FolderQueue; | 141 CFX_ObjectArray<FX_HandleParentPath> m_FolderQueue; |
| 142 CFX_ByteStringArray m_FolderPaths; | 142 CFX_ByteStringArray m_FolderPaths; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 typedef CFX_MapPtrTemplate<uint32_t, IFX_FileAccess*> CFX_HashFileMap; | 145 typedef CFX_MapPtrTemplate<uint32_t, IFX_FileAccess*> CFX_HashFileMap; |
|
Tom Sepez
2016/05/19 16:20:53
ditto: one usage.
| |
| 146 typedef CFX_MapPtrTemplate<uint32_t, IFX_Font*> CFX_HashFontMap; | 146 typedef CFX_MapPtrTemplate<uint32_t, IFX_Font*> CFX_HashFontMap; |
|
Tom Sepez
2016/05/19 16:20:53
one usage.
| |
| 147 typedef CFX_MapPtrTemplate<uint32_t, CFX_FontDescriptorInfos*> | 147 typedef CFX_MapPtrTemplate<uint32_t, CFX_FontDescriptorInfos*> |
|
Tom Sepez
2016/05/19 16:20:53
one usage.
| |
| 148 CFX_HashFontDescsMap; | 148 CFX_HashFontDescsMap; |
| 149 typedef CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<IFX_Font*>*> | 149 typedef CFX_MapPtrTemplate<uint32_t, CFX_ArrayTemplate<IFX_Font*>*> |
|
Tom Sepez
2016/05/19 16:20:53
once
| |
| 150 CFX_HashFontsMap; | 150 CFX_HashFontsMap; |
| 151 typedef CFX_MapPtrTemplate<FX_WCHAR, IFX_Font*> CFX_UnicodeFontMap; | 151 typedef CFX_MapPtrTemplate<FX_WCHAR, IFX_Font*> CFX_UnicodeFontMap; |
|
Tom Sepez
2016/05/19 16:20:53
1.
| |
| 152 typedef CFX_MapPtrTemplate<IFX_FileAccess*, CFX_ArrayTemplate<IFX_Font*>*> | |
| 153 CFX_FileFontMap; | |
| 154 typedef CFX_MapPtrTemplate<IFX_Font*, IFX_FileRead*> CFX_FonStreamtMap; | 152 typedef CFX_MapPtrTemplate<IFX_Font*, IFX_FileRead*> CFX_FonStreamtMap; |
|
Tom Sepez
2016/05/19 16:20:53
yup.
| |
| 155 | 153 |
| 156 class CFX_FontMgrImp : public IFX_FontMgr { | 154 class CFX_FontMgrImp : public IFX_FontMgr { |
| 157 public: | 155 public: |
| 158 CFX_FontMgrImp(CFX_FontSourceEnum_File* pFontEnum); | 156 CFX_FontMgrImp(CFX_FontSourceEnum_File* pFontEnum); |
| 159 | 157 |
| 160 virtual void Release(); | 158 virtual void Release(); |
| 161 virtual IFX_Font* GetDefFontByCodePage(uint16_t wCodePage, | 159 virtual IFX_Font* GetDefFontByCodePage(uint16_t wCodePage, |
| 162 uint32_t dwFontStyles, | 160 uint32_t dwFontStyles, |
| 163 const FX_WCHAR* pszFontFamily = NULL); | 161 const FX_WCHAR* pszFontFamily = NULL); |
| 164 virtual IFX_Font* GetDefFontByCharset(uint8_t nCharset, | 162 virtual IFX_Font* GetDefFontByCharset(uint8_t nCharset, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 241 CFX_HashFontsMap m_Hash2Fonts; | 239 CFX_HashFontsMap m_Hash2Fonts; |
| 242 CFX_HashFileMap m_Hash2FileAccess; | 240 CFX_HashFileMap m_Hash2FileAccess; |
| 243 CFX_HashFontMap m_FileAccess2IFXFont; | 241 CFX_HashFontMap m_FileAccess2IFXFont; |
| 244 CFX_FonStreamtMap m_IFXFont2FileRead; | 242 CFX_FonStreamtMap m_IFXFont2FileRead; |
| 245 CFX_UnicodeFontMap m_FailedUnicodes2NULL; | 243 CFX_UnicodeFontMap m_FailedUnicodes2NULL; |
| 246 CFX_FontSourceEnum_File* m_pFontSource; | 244 CFX_FontSourceEnum_File* m_pFontSource; |
| 247 }; | 245 }; |
| 248 #endif | 246 #endif |
| 249 | 247 |
| 250 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ | 248 #endif // XFA_FGAS_FONT_FGAS_STDFONTMGR_H_ |
| OLD | NEW |