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

Unified Diff: xfa/include/fxfa/xfa_fontmgr.h

Issue 1846993002: Remove IXFA_* interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/include/fxfa/xfa_ffwidgethandler.h ('k') | xfa/include/fxfa/xfa_rendercontext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/include/fxfa/xfa_fontmgr.h
diff --git a/xfa/fxfa/app/xfa_fontmgr.h b/xfa/include/fxfa/xfa_fontmgr.h
similarity index 80%
rename from xfa/fxfa/app/xfa_fontmgr.h
rename to xfa/include/fxfa/xfa_fontmgr.h
index 20d3e5656cd8eaa25cabf71ed4360d92f55c9049..082c672805fcf430e07ba6b9ccca19514611d3f8 100644
--- a/xfa/fxfa/app/xfa_fontmgr.h
+++ b/xfa/include/fxfa/xfa_fontmgr.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef XFA_FXFA_APP_XFA_FONTMGR_H_
-#define XFA_FXFA_APP_XFA_FONTMGR_H_
+#ifndef XFA_INCLUDE_FXFA_XFA_FONTMGR_H_
+#define XFA_INCLUDE_FXFA_XFA_FONTMGR_H_
#include <map>
@@ -24,20 +24,19 @@ struct XFA_FONTINFO {
uint16_t wCodePage;
};
-class CXFA_DefFontMgr : public IXFA_FontMgr {
+class CXFA_DefFontMgr {
public:
CXFA_DefFontMgr() {}
- ~CXFA_DefFontMgr() override;
+ ~CXFA_DefFontMgr();
- // IXFA_FontMgr:
- IFX_Font* GetFont(IXFA_Doc* hDoc,
+ IFX_Font* GetFont(CXFA_FFDoc* hDoc,
const CFX_WideStringC& wsFontFamily,
uint32_t dwFontStyles,
- uint16_t wCodePage = 0xFFFF) override;
- IFX_Font* GetDefaultFont(IXFA_Doc* hDoc,
+ uint16_t wCodePage = 0xFFFF);
+ IFX_Font* GetDefaultFont(CXFA_FFDoc* hDoc,
const CFX_WideStringC& wsFontFamily,
uint32_t dwFontStyles,
- uint16_t wCodePage = 0xFFFF) override;
+ uint16_t wCodePage = 0xFFFF);
protected:
CFX_PtrArray m_CacheFonts;
@@ -80,21 +79,21 @@ class CXFA_FontMgr {
public:
CXFA_FontMgr();
~CXFA_FontMgr();
- IFX_Font* GetFont(IXFA_Doc* hDoc,
+ IFX_Font* GetFont(CXFA_FFDoc* hDoc,
const CFX_WideStringC& wsFontFamily,
uint32_t dwFontStyles,
uint16_t wCodePage = 0xFFFF);
- void LoadDocFonts(IXFA_Doc* hDoc);
- void ReleaseDocFonts(IXFA_Doc* hDoc);
+ void LoadDocFonts(CXFA_FFDoc* hDoc);
+ void ReleaseDocFonts(CXFA_FFDoc* hDoc);
- void SetDefFontMgr(IXFA_FontMgr* pFontMgr);
+ void SetDefFontMgr(CXFA_DefFontMgr* pFontMgr);
protected:
void DelAllMgrMap();
CFX_MapPtrToPtr m_PDFFontMgrArray;
- IXFA_FontMgr* m_pDefFontMgr;
+ CXFA_DefFontMgr* m_pDefFontMgr;
std::map<CFX_ByteString, IFX_Font*> m_FontMap;
};
-#endif // XFA_FXFA_APP_XFA_FONTMGR_H_
+#endif // XFA_INCLUDE_FXFA_XFA_FONTMGR_H_
« no previous file with comments | « xfa/include/fxfa/xfa_ffwidgethandler.h ('k') | xfa/include/fxfa/xfa_rendercontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698