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

Side by Side Diff: core/include/fxcrt/fx_ucd.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/include/fxcrt/fx_system.h ('k') | core/include/fxge/fpf.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 CORE_INCLUDE_FXCRT_FX_UCD_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_UCD_H_
8 #define CORE_INCLUDE_FXCRT_FX_UCD_H_ 8 #define CORE_INCLUDE_FXCRT_FX_UCD_H_
9 9
10 #include "fx_basic.h" 10 #include "fx_basic.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 , m_iCharWidth(0) 134 , m_iCharWidth(0)
135 , m_iHorizontalScale(100) 135 , m_iHorizontalScale(100)
136 , m_iVertialScale(100) 136 , m_iVertialScale(100)
137 { 137 {
138 } 138 }
139 FX_DWORD GetCharType() const 139 FX_DWORD GetCharType() const
140 { 140 {
141 return m_dwCharProps & FX_CHARTYPEBITSMASK; 141 return m_dwCharProps & FX_CHARTYPEBITSMASK;
142 } 142 }
143 FX_WORD m_wCharCode; 143 FX_WORD m_wCharCode;
144 FX_BYTE» » m_nBreakType; 144 uint8_t» » m_nBreakType;
145 FX_INT8» » m_nRotation; 145 int8_t» » m_nRotation;
146 FX_DWORD m_dwCharProps; 146 FX_DWORD m_dwCharProps;
147 FX_DWORD m_dwCharStyles; 147 FX_DWORD m_dwCharStyles;
148 FX_INT32» m_iCharWidth; 148 int32_t» m_iCharWidth;
149 FX_INT32» m_iHorizontalScale; 149 int32_t» m_iHorizontalScale;
150 FX_INT32» m_iVertialScale; 150 int32_t» m_iVertialScale;
151 }; 151 };
152 typedef CFX_ArrayTemplate<CFX_Char> CFX_CharArray; 152 typedef CFX_ArrayTemplate<CFX_Char> CFX_CharArray;
153 class CFX_TxtChar : public CFX_Char 153 class CFX_TxtChar : public CFX_Char
154 { 154 {
155 public: 155 public:
156 CFX_TxtChar() : CFX_Char() 156 CFX_TxtChar() : CFX_Char()
157 , m_dwStatus(0) 157 , m_dwStatus(0)
158 , m_iBidiClass(0) 158 , m_iBidiClass(0)
159 , m_iBidiLevel(0) 159 , m_iBidiLevel(0)
160 , m_iBidiPos(0) 160 , m_iBidiPos(0)
161 , m_iBidiOrder(0) 161 , m_iBidiOrder(0)
162 , m_pUserData(NULL) 162 , m_pUserData(NULL)
163 { 163 {
164 } 164 }
165 FX_DWORD m_dwStatus; 165 FX_DWORD m_dwStatus;
166 FX_INT16» » » m_iBidiClass; 166 int16_t» » » m_iBidiClass;
167 FX_INT16» » » m_iBidiLevel; 167 int16_t» » » m_iBidiLevel;
168 FX_INT16» » » m_iBidiPos; 168 int16_t» » » m_iBidiPos;
169 FX_INT16» » » m_iBidiOrder; 169 int16_t» » » m_iBidiOrder;
170 FX_LPVOID m_pUserData; 170 FX_LPVOID m_pUserData;
171 }; 171 };
172 typedef CFX_ArrayTemplate<CFX_TxtChar> CFX_TxtCharArray; 172 typedef CFX_ArrayTemplate<CFX_TxtChar> CFX_TxtCharArray;
173 class CFX_RTFChar : public CFX_Char 173 class CFX_RTFChar : public CFX_Char
174 { 174 {
175 public: 175 public:
176 CFX_RTFChar() : CFX_Char() 176 CFX_RTFChar() : CFX_Char()
177 , m_dwStatus(0) 177 , m_dwStatus(0)
178 , m_iFontSize(0) 178 , m_iFontSize(0)
179 , m_iFontHeight(0) 179 , m_iFontHeight(0)
180 , m_iBidiClass(0) 180 , m_iBidiClass(0)
181 , m_iBidiLevel(0) 181 , m_iBidiLevel(0)
182 , m_iBidiPos(0) 182 , m_iBidiPos(0)
183 , m_dwLayoutStyles(0) 183 , m_dwLayoutStyles(0)
184 , m_dwIdentity(0) 184 , m_dwIdentity(0)
185 , m_pUserData(NULL) 185 , m_pUserData(NULL)
186 { 186 {
187 } 187 }
188 FX_DWORD m_dwStatus; 188 FX_DWORD m_dwStatus;
189 FX_INT32» » » m_iFontSize; 189 int32_t» » » m_iFontSize;
190 FX_INT32» » » m_iFontHeight; 190 int32_t» » » m_iFontHeight;
191 FX_INT16» » » m_iBidiClass; 191 int16_t» » » m_iBidiClass;
192 FX_INT16» » » m_iBidiLevel; 192 int16_t» » » m_iBidiLevel;
193 FX_INT16» » » m_iBidiPos; 193 int16_t» » » m_iBidiPos;
194 FX_INT16» » » m_iBidiOrder; 194 int16_t» » » m_iBidiOrder;
195 FX_DWORD m_dwLayoutStyles; 195 FX_DWORD m_dwLayoutStyles;
196 FX_DWORD m_dwIdentity; 196 FX_DWORD m_dwIdentity;
197 IFX_Unknown *m_pUserData; 197 IFX_Unknown *m_pUserData;
198 }; 198 };
199 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray; 199 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray;
200 200
201 #endif // CORE_INCLUDE_FXCRT_FX_UCD_H_ 201 #endif // CORE_INCLUDE_FXCRT_FX_UCD_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_system.h ('k') | core/include/fxge/fpf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698