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

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

Issue 1277043002: XFA: clang-format all pdfium code, again. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 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 #ifndef CORE_SRC_FXGE_GE_TEXT_INT_H_ 7 #ifndef CORE_SRC_FXGE_GE_TEXT_INT_H_
8 #define CORE_SRC_FXGE_GE_TEXT_INT_H_ 8 #define CORE_SRC_FXGE_GE_TEXT_INT_H_
9 9
10 struct _CFX_UniqueKeyGen { 10 struct _CFX_UniqueKeyGen {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 }; 60 };
61 #define CHARSET_FLAG_ANSI 1 61 #define CHARSET_FLAG_ANSI 1
62 #define CHARSET_FLAG_SYMBOL 2 62 #define CHARSET_FLAG_SYMBOL 2
63 #define CHARSET_FLAG_SHIFTJIS 4 63 #define CHARSET_FLAG_SHIFTJIS 4
64 #define CHARSET_FLAG_BIG5 8 64 #define CHARSET_FLAG_BIG5 8
65 #define CHARSET_FLAG_GB 16 65 #define CHARSET_FLAG_GB 16
66 #define CHARSET_FLAG_KOREAN 32 66 #define CHARSET_FLAG_KOREAN 32
67 67
68 class CFX_FontFaceInfo { 68 class CFX_FontFaceInfo {
69 public: 69 public:
70 CFX_FontFaceInfo(CFX_ByteString filePath, CFX_ByteString faceName, 70 CFX_FontFaceInfo(CFX_ByteString filePath,
71 CFX_ByteString fontTables, FX_DWORD fontOffset, 71 CFX_ByteString faceName,
72 CFX_ByteString fontTables,
73 FX_DWORD fontOffset,
72 FX_DWORD fileSize) 74 FX_DWORD fileSize)
73 : m_FilePath(filePath), 75 : m_FilePath(filePath),
74 m_FaceName(faceName), 76 m_FaceName(faceName),
75 m_FontTables(fontTables), 77 m_FontTables(fontTables),
76 m_FontOffset(fontOffset), 78 m_FontOffset(fontOffset),
77 m_FileSize(fileSize), 79 m_FileSize(fileSize),
78 m_Styles(0), 80 m_Styles(0),
79 m_Charsets(0) {} 81 m_Charsets(0) {}
80 82
81 const CFX_ByteString m_FilePath; 83 const CFX_ByteString m_FilePath;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 int encoding = ENCODING_UNICODE) { 120 int encoding = ENCODING_UNICODE) {
119 return GlyphFromCharCode(charcode); 121 return GlyphFromCharCode(charcode);
120 } 122 }
121 123
122 private: 124 private:
123 CFX_Font* m_pFont; 125 CFX_Font* m_pFont;
124 FX_DWORD m_nEncodingID; 126 FX_DWORD m_nEncodingID;
125 }; 127 };
126 128
127 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_ 129 #endif // CORE_SRC_FXGE_GE_TEXT_INT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698