summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_folderfontinfo.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-09-27 13:33:57 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-27 20:20:07 +0000
commit60830ae5a056601dec5eb3c9a9589e29cfc9e041 (patch)
treefb6f6832efda0d7500c5470e94c2a869cb540635 /core/fxge/cfx_folderfontinfo.h
parentc9de55bbfb8e55022476d972d183501cbf0216ad (diff)
downloadpdfium-60830ae5a056601dec5eb3c9a9589e29cfc9e041.tar.xz
Hide FaceFontInfo inside CFX_FolderFontInfo
This CL moves CFX_FaceFontInfo to be a protected inner class of CFX_FolderFontInfo. Change-Id: I3674c36d5295307be253e04337c22d6d0608fefe Reviewed-on: https://pdfium-review.googlesource.com/14952 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxge/cfx_folderfontinfo.h')
-rw-r--r--core/fxge/cfx_folderfontinfo.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/fxge/cfx_folderfontinfo.h b/core/fxge/cfx_folderfontinfo.h
index 1123185d69..23c20d52d2 100644
--- a/core/fxge/cfx_folderfontinfo.h
+++ b/core/fxge/cfx_folderfontinfo.h
@@ -47,6 +47,23 @@ class CFX_FolderFontInfo : public IFX_SystemFontInfo {
bool GetFontCharset(void* hFont, int* charset) override;
protected:
+ class FontFaceInfo {
+ public:
+ FontFaceInfo(ByteString filePath,
+ ByteString faceName,
+ ByteString fontTables,
+ uint32_t fontOffset,
+ uint32_t fileSize);
+
+ const ByteString m_FilePath;
+ const ByteString m_FaceName;
+ const ByteString m_FontTables;
+ const uint32_t m_FontOffset;
+ const uint32_t m_FileSize;
+ uint32_t m_Styles;
+ uint32_t m_Charsets;
+ };
+
void ScanPath(const ByteString& path);
void ScanFile(const ByteString& path);
void ReportFace(const ByteString& path,
@@ -61,7 +78,7 @@ class CFX_FolderFontInfo : public IFX_SystemFontInfo {
const char* family,
bool bMatchName);
- std::map<ByteString, std::unique_ptr<CFX_FontFaceInfo>> m_FontList;
+ std::map<ByteString, std::unique_ptr<FontFaceInfo>> m_FontList;
std::vector<ByteString> m_PathList;
UnownedPtr<CFX_FontMapper> m_pMapper;
};