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

Side by Side Diff: core/src/fxge/ge/text_int.h

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « core/src/fxge/ge/fx_ge_ps.cpp ('k') | core/src/fxge/skia/fx_skia_blitter_new.h » ('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 _TEXT_INT_H_ 7 #ifndef _TEXT_INT_H_
8 #define _TEXT_INT_H_ 8 #define _TEXT_INT_H_
9 9
10 struct _CFX_UniqueKeyGen { 10 struct _CFX_UniqueKeyGen {
11 void Generate(int count, ...); 11 void Generate(int count, ...);
12 FX_CHAR m_Key[128]; 12 FX_CHAR m_Key[128];
13 int m_KeyLen; 13 int m_KeyLen;
14 }; 14 };
15 class CFX_SizeGlyphCache : public CFX_Object 15 class CFX_SizeGlyphCache
16 { 16 {
17 public: 17 public:
18 CFX_SizeGlyphCache() 18 CFX_SizeGlyphCache()
19 { 19 {
20 m_GlyphMap.InitHashTable(253); 20 m_GlyphMap.InitHashTable(253);
21 } 21 }
22 ~CFX_SizeGlyphCache(); 22 ~CFX_SizeGlyphCache();
23 CFX_MapPtrToPtr m_GlyphMap; 23 CFX_MapPtrToPtr m_GlyphMap;
24 }; 24 };
25 class CTTFontDesc : public CFX_Object 25 class CTTFontDesc
26 { 26 {
27 public: 27 public:
28 CTTFontDesc() 28 CTTFontDesc()
29 { 29 {
30 m_Type = 0; 30 m_Type = 0;
31 m_pFontData = NULL; 31 m_pFontData = NULL;
32 m_RefCount = 0; 32 m_RefCount = 0;
33 } 33 }
34 ~CTTFontDesc(); 34 ~CTTFontDesc();
35 FX_BOOL ReleaseFace(FXFT_Face face); 35 FX_BOOL ReleaseFace(FXFT_Face face);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 { 67 {
68 return TRUE; 68 return TRUE;
69 } 69 }
70 }; 70 };
71 #define CHARSET_FLAG_ANSI 1 71 #define CHARSET_FLAG_ANSI 1
72 #define CHARSET_FLAG_SYMBOL 2 72 #define CHARSET_FLAG_SYMBOL 2
73 #define CHARSET_FLAG_SHIFTJIS 4 73 #define CHARSET_FLAG_SHIFTJIS 4
74 #define CHARSET_FLAG_BIG5 8 74 #define CHARSET_FLAG_BIG5 8
75 #define CHARSET_FLAG_GB 16 75 #define CHARSET_FLAG_GB 16
76 #define CHARSET_FLAG_KOREAN 32 76 #define CHARSET_FLAG_KOREAN 32
77 class CFontFaceInfo : public CFX_Object 77 class CFontFaceInfo
78 { 78 {
79 public: 79 public:
80 CFX_ByteString m_FilePath; 80 CFX_ByteString m_FilePath;
81 CFX_ByteString m_FaceName; 81 CFX_ByteString m_FaceName;
82 FX_DWORD m_Styles; 82 FX_DWORD m_Styles;
83 FX_DWORD m_Charsets; 83 FX_DWORD m_Charsets;
84 FX_DWORD m_FontOffset; 84 FX_DWORD m_FontOffset;
85 FX_DWORD m_FileSize; 85 FX_DWORD m_FileSize;
86 CFX_ByteString m_FontTables; 86 CFX_ByteString m_FontTables;
87 }; 87 };
88 class CFontFileFaceInfo : public CFX_Object 88 class CFontFileFaceInfo
89 { 89 {
90 public: 90 public:
91 CFontFileFaceInfo(); 91 CFontFileFaceInfo();
92 ~CFontFileFaceInfo(); 92 ~CFontFileFaceInfo();
93 IFX_FileStream* m_pFile; 93 IFX_FileStream* m_pFile;
94 FXFT_Face m_Face; 94 FXFT_Face m_Face;
95 CFX_ByteString m_FaceName; 95 CFX_ByteString m_FaceName;
96 FX_DWORD m_Charsets; 96 FX_DWORD m_Charsets;
97 FX_DWORD m_FileSize; 97 FX_DWORD m_FileSize;
98 FX_DWORD m_FontOffset; 98 FX_DWORD m_FontOffset;
99 int m_Weight; 99 int m_Weight;
100 FX_BOOL m_bItalic; 100 FX_BOOL m_bItalic;
101 int m_PitchFamily; 101 int m_PitchFamily;
102 CFX_ByteString m_FontTables; 102 CFX_ByteString m_FontTables;
103 }; 103 };
104 104
105 #endif // _TEXT_INT_H_ 105 #endif // _TEXT_INT_H_
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge_ps.cpp ('k') | core/src/fxge/skia/fx_skia_blitter_new.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698