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

Side by Side Diff: core/src/fpdfapi/fpdf_font/font_int.h

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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/fpdfapi/fpdf_font/common.h ('k') | core/src/fpdfapi/fpdf_font/fpdf_font.cpp » ('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 #ifndef CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ 6 #ifndef CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_
7 #define CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ 7 #define CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_
8 8
9 typedef void* FXFT_Library; 9 typedef void* FXFT_Library;
10 class CPDF_CMapManager 10 class CPDF_CMapManager
(...skipping 30 matching lines...) Expand all
41 struct { 41 struct {
42 const FX_WORD* m_pMap; 42 const FX_WORD* m_pMap;
43 int m_Count; 43 int m_Count;
44 } m_EmbeddedToUnicodes[NUMBER_OF_CIDSETS]; 44 } m_EmbeddedToUnicodes[NUMBER_OF_CIDSETS];
45 private: 45 private:
46 CFX_MapPtrToPtr m_pStockMap; 46 CFX_MapPtrToPtr m_pStockMap;
47 FX_LPBYTE m_pContrastRamps; 47 FX_LPBYTE m_pContrastRamps;
48 }; 48 };
49 struct _CMap_CodeRange { 49 struct _CMap_CodeRange {
50 int m_CharSize; 50 int m_CharSize;
51 FX_BYTE» » m_Lower[4]; 51 uint8_t» » m_Lower[4];
52 FX_BYTE» » m_Upper[4]; 52 uint8_t» » m_Upper[4];
53 }; 53 };
54 class CPDF_CMapParser 54 class CPDF_CMapParser
55 { 55 {
56 public: 56 public:
57 CPDF_CMapParser(); 57 CPDF_CMapParser();
58 ~CPDF_CMapParser() {} 58 ~CPDF_CMapParser() {}
59 FX_BOOL Initialize(CPDF_CMap*); 59 FX_BOOL Initialize(CPDF_CMap*);
60 void ParseWord(FX_BSTR str); 60 void ParseWord(FX_BSTR str);
61 CFX_BinaryBuf m_AddMaps; 61 CFX_BinaryBuf m_AddMaps;
62 private: 62 private:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 ~CPDF_CMap(); 106 ~CPDF_CMap();
107 friend class CPDF_CMapParser; 107 friend class CPDF_CMapParser;
108 friend class CPDF_CMapManager; 108 friend class CPDF_CMapManager;
109 friend class CPDF_CIDFont; 109 friend class CPDF_CIDFont;
110 protected: 110 protected:
111 CFX_ByteString m_PredefinedCMap; 111 CFX_ByteString m_PredefinedCMap;
112 FX_BOOL m_bVertical; 112 FX_BOOL m_bVertical;
113 int m_Charset, m_Coding; 113 int m_Charset, m_Coding;
114 CodingScheme m_CodingScheme; 114 CodingScheme m_CodingScheme;
115 int m_nCodeRanges; 115 int m_nCodeRanges;
116 FX_BYTE*» » » » m_pLeadingBytes; 116 uint8_t*» » » » m_pLeadingBytes;
117 FX_WORD* m_pMapping; 117 FX_WORD* m_pMapping;
118 FX_LPBYTE m_pAddMapping; 118 FX_LPBYTE m_pAddMapping;
119 FX_BOOL m_bLoaded; 119 FX_BOOL m_bLoaded;
120 const FXCMAP_CMap* m_pEmbedMap; 120 const FXCMAP_CMap* m_pEmbedMap;
121 CPDF_CMap* m_pUseMap; 121 CPDF_CMap* m_pUseMap;
122 }; 122 };
123 class CPDF_PredefinedCMap 123 class CPDF_PredefinedCMap
124 { 124 {
125 public: 125 public:
126 FX_LPCSTR m_pName; 126 FX_LPCSTR m_pName;
127 int m_Charset; 127 int m_Charset;
128 int m_Coding; 128 int m_Coding;
129 CPDF_CMap::CodingScheme m_CodingScheme; 129 CPDF_CMap::CodingScheme m_CodingScheme;
130 FX_DWORD m_LeadingSegCount; 130 FX_DWORD m_LeadingSegCount;
131 FX_BYTE» » m_LeadingSegs[4]; 131 uint8_t» » m_LeadingSegs[4];
132 }; 132 };
133 typedef struct _FileHeader { 133 typedef struct _FileHeader {
134 FX_BYTE» » btTag[4]; 134 uint8_t» » btTag[4];
135 FX_BYTE» » btVersion; 135 uint8_t» » btVersion;
136 FX_BYTE» » btFormat; 136 uint8_t» » btFormat;
137 FX_BYTE» » btReserved1[2]; 137 uint8_t» » btReserved1[2];
138 FX_DWORD dwStartIndex; 138 FX_DWORD dwStartIndex;
139 FX_DWORD dwEndIndex; 139 FX_DWORD dwEndIndex;
140 FX_DWORD dwDataSize; 140 FX_DWORD dwDataSize;
141 FX_DWORD dwDataOffset; 141 FX_DWORD dwDataOffset;
142 FX_DWORD dwRecordSize; 142 FX_DWORD dwRecordSize;
143 } FXMP_FILEHEADER; 143 } FXMP_FILEHEADER;
144 class CPDF_CID2UnicodeMap 144 class CPDF_CID2UnicodeMap
145 { 145 {
146 public: 146 public:
147 CPDF_CID2UnicodeMap(); 147 CPDF_CID2UnicodeMap();
(...skipping 19 matching lines...) Expand all
167 CFX_WideTextBuf m_MultiCharBuf; 167 CFX_WideTextBuf m_MultiCharBuf;
168 }; 168 };
169 class CPDF_FontCharMap : public CFX_CharMap 169 class CPDF_FontCharMap : public CFX_CharMap
170 { 170 {
171 public: 171 public:
172 CPDF_FontCharMap(CPDF_Font* pFont); 172 CPDF_FontCharMap(CPDF_Font* pFont);
173 CPDF_Font* m_pFont; 173 CPDF_Font* m_pFont;
174 }; 174 };
175 175
176 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_ 176 #endif // CORE_SRC_FPDFAPI_FPDF_FONT_FONT_INT_H_
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_font/common.h ('k') | core/src/fpdfapi/fpdf_font/fpdf_font.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698