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

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

Issue 453133004: clang-format all code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 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
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 struct _CFX_UniqueKeyGen { 7 struct _CFX_UniqueKeyGen {
8 void» » Generate(int count, ...); 8 void Generate(int count, ...);
9 FX_CHAR» » m_Key[128]; 9 FX_CHAR m_Key[128];
10 int»» » m_KeyLen; 10 int m_KeyLen;
11 }; 11 };
12 class CFX_SizeGlyphCache : public CFX_Object 12 class CFX_SizeGlyphCache : public CFX_Object {
13 { 13 public:
14 public: 14 CFX_SizeGlyphCache() { m_GlyphMap.InitHashTable(253); }
15 CFX_SizeGlyphCache() 15 ~CFX_SizeGlyphCache();
16 { 16 CFX_MapPtrToPtr m_GlyphMap;
17 m_GlyphMap.InitHashTable(253);
18 }
19 ~CFX_SizeGlyphCache();
20 CFX_MapPtrToPtr» » » m_GlyphMap;
21 }; 17 };
22 class CTTFontDesc : public CFX_Object 18 class CTTFontDesc : public CFX_Object {
23 { 19 public:
24 public: 20 CTTFontDesc() {
25 CTTFontDesc() 21 m_Type = 0;
26 { 22 m_pFontData = NULL;
27 m_Type = 0; 23 m_RefCount = 0;
28 m_pFontData = NULL; 24 }
29 m_RefCount = 0; 25 ~CTTFontDesc();
30 } 26 FX_BOOL ReleaseFace(FXFT_Face face);
31 ~CTTFontDesc(); 27 int m_Type;
32 FX_BOOL» » » ReleaseFace(FXFT_Face face); 28 union {
33 int»» » » m_Type; 29 struct {
34 union { 30 FX_BOOL m_bItalic;
35 struct { 31 FX_BOOL m_bBold;
36 FX_BOOL» » m_bItalic; 32 FXFT_Face m_pFace;
37 FX_BOOL» » m_bBold; 33 } m_SingleFace;
38 FXFT_Face» m_pFace; 34 struct {
39 } m_SingleFace; 35 FXFT_Face m_pFaces[16];
40 struct { 36 } m_TTCFace;
41 FXFT_Face» m_pFaces[16]; 37 };
42 } m_TTCFace; 38 FX_BYTE* m_pFontData;
43 }; 39 int m_RefCount;
44 FX_BYTE*» » m_pFontData;
45 int»» » » m_RefCount;
46 }; 40 };
47 class CFX_UnicodeEncoding : public IFX_FontEncoding 41 class CFX_UnicodeEncoding : public IFX_FontEncoding {
48 { 42 public:
49 public: 43 CFX_UnicodeEncoding(CFX_Font* pFont);
50 CFX_UnicodeEncoding(CFX_Font* pFont); 44 virtual FX_DWORD GlyphFromCharCodeEx(FX_DWORD charcode,
51 virtual FX_DWORD» » GlyphFromCharCodeEx(FX_DWORD charcode, int encod ing = ENCODING_UNICODE); 45 int encoding = ENCODING_UNICODE);
52 private: 46
53 CFX_Font*» » » m_pFont; 47 private:
54 virtual FX_DWORD» » GlyphFromCharCode(FX_DWORD charcode); 48 CFX_Font* m_pFont;
55 virtual CFX_WideString» UnicodeFromCharCode(FX_DWORD charcode) const 49 virtual FX_DWORD GlyphFromCharCode(FX_DWORD charcode);
56 { 50 virtual CFX_WideString UnicodeFromCharCode(FX_DWORD charcode) const {
57 return CFX_WideString((FX_WCHAR)charcode); 51 return CFX_WideString((FX_WCHAR)charcode);
58 } 52 }
59 virtual FX_DWORD» » CharCodeFromUnicode(FX_WCHAR Unicode) const 53 virtual FX_DWORD CharCodeFromUnicode(FX_WCHAR Unicode) const {
60 { 54 return Unicode;
61 return Unicode; 55 }
62 } 56 virtual FX_BOOL IsUnicodeCompatible() const { return TRUE; }
63 virtual FX_BOOL» » » IsUnicodeCompatible() const
64 {
65 return TRUE;
66 }
67 }; 57 };
68 #define CHARSET_FLAG_ANSI» » 1 58 #define CHARSET_FLAG_ANSI 1
69 #define CHARSET_FLAG_SYMBOL» » 2 59 #define CHARSET_FLAG_SYMBOL 2
70 #define CHARSET_FLAG_SHIFTJIS» 4 60 #define CHARSET_FLAG_SHIFTJIS 4
71 #define CHARSET_FLAG_BIG5» » 8 61 #define CHARSET_FLAG_BIG5 8
72 #define CHARSET_FLAG_GB»» » 16 62 #define CHARSET_FLAG_GB 16
73 #define CHARSET_FLAG_KOREAN» » 32 63 #define CHARSET_FLAG_KOREAN 32
74 class CFontFaceInfo : public CFX_Object 64 class CFontFaceInfo : public CFX_Object {
75 { 65 public:
76 public: 66 CFX_ByteString m_FilePath;
77 CFX_ByteString» » m_FilePath; 67 CFX_ByteString m_FaceName;
78 CFX_ByteString» » m_FaceName; 68 FX_DWORD m_Styles;
79 FX_DWORD» » » m_Styles; 69 FX_DWORD m_Charsets;
80 FX_DWORD» » » m_Charsets; 70 FX_DWORD m_FontOffset;
81 FX_DWORD» » » m_FontOffset; 71 FX_DWORD m_FileSize;
82 FX_DWORD» » » m_FileSize; 72 CFX_ByteString m_FontTables;
83 CFX_ByteString» » m_FontTables;
84 }; 73 };
85 class CFontFileFaceInfo : public CFX_Object 74 class CFontFileFaceInfo : public CFX_Object {
86 { 75 public:
87 public: 76 CFontFileFaceInfo();
88 CFontFileFaceInfo(); 77 ~CFontFileFaceInfo();
89 ~CFontFileFaceInfo(); 78 IFX_FileStream* m_pFile;
90 IFX_FileStream*» » m_pFile; 79 FXFT_Face m_Face;
91 FXFT_Face» » » m_Face; 80 CFX_ByteString m_FaceName;
92 CFX_ByteString» » m_FaceName; 81 FX_DWORD m_Charsets;
93 FX_DWORD» » » m_Charsets; 82 FX_DWORD m_FileSize;
94 FX_DWORD» » » m_FileSize; 83 FX_DWORD m_FontOffset;
95 FX_DWORD» » » m_FontOffset; 84 int m_Weight;
96 int»» » » » m_Weight; 85 FX_BOOL m_bItalic;
97 FX_BOOL» » » » m_bItalic; 86 int m_PitchFamily;
98 int»» » » » m_PitchFamily; 87 CFX_ByteString m_FontTables;
99 CFX_ByteString» » m_FontTables;
100 }; 88 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698