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

Side by Side Diff: core/fxcrt/fx_ucd.h

Issue 2650773003: Use std::vector for fx_ucd.h arrays. (Closed)
Patch Set: missed one Created 3 years, 11 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/fxcrt/fx_arb.h ('k') | xfa/fgas/layout/fgas_rtfbreak.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_FXCRT_FX_UCD_H_ 7 #ifndef CORE_FXCRT_FX_UCD_H_
8 #define CORE_FXCRT_FX_UCD_H_ 8 #define CORE_FXCRT_FX_UCD_H_
9 9
10 #include "core/fxcrt/fx_basic.h" 10 #include "core/fxcrt/fx_basic.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 uint16_t m_wCharCode; 142 uint16_t m_wCharCode;
143 uint8_t m_nBreakType; 143 uint8_t m_nBreakType;
144 int8_t m_nRotation; 144 int8_t m_nRotation;
145 uint32_t m_dwCharProps; 145 uint32_t m_dwCharProps;
146 uint32_t m_dwCharStyles; 146 uint32_t m_dwCharStyles;
147 int32_t m_iCharWidth; 147 int32_t m_iCharWidth;
148 int32_t m_iHorizontalScale; 148 int32_t m_iHorizontalScale;
149 int32_t m_iVertialScale; 149 int32_t m_iVertialScale;
150 }; 150 };
151 typedef CFX_ArrayTemplate<CFX_Char> CFX_CharArray; 151
152 class CFX_TxtChar : public CFX_Char { 152 class CFX_TxtChar : public CFX_Char {
153 public: 153 public:
154 CFX_TxtChar() 154 CFX_TxtChar()
155 : m_dwStatus(0), 155 : m_dwStatus(0),
156 m_iBidiClass(0), 156 m_iBidiClass(0),
157 m_iBidiLevel(0), 157 m_iBidiLevel(0),
158 m_iBidiPos(0), 158 m_iBidiPos(0),
159 m_iBidiOrder(0), 159 m_iBidiOrder(0),
160 m_pUserData(nullptr) {} 160 m_pUserData(nullptr) {}
161 uint32_t m_dwStatus; 161 uint32_t m_dwStatus;
162 int16_t m_iBidiClass; 162 int16_t m_iBidiClass;
163 int16_t m_iBidiLevel; 163 int16_t m_iBidiLevel;
164 int16_t m_iBidiPos; 164 int16_t m_iBidiPos;
165 int16_t m_iBidiOrder; 165 int16_t m_iBidiOrder;
166 void* m_pUserData; 166 void* m_pUserData;
167 }; 167 };
168 typedef CFX_ArrayTemplate<CFX_TxtChar> CFX_TxtCharArray; 168
169 class CFX_RTFChar : public CFX_Char { 169 class CFX_RTFChar : public CFX_Char {
170 public: 170 public:
171 CFX_RTFChar(); 171 CFX_RTFChar();
172 CFX_RTFChar(const CFX_RTFChar& other); 172 CFX_RTFChar(const CFX_RTFChar& other);
173 173
174 uint32_t m_dwStatus; 174 uint32_t m_dwStatus;
175 int32_t m_iFontSize; 175 int32_t m_iFontSize;
176 int32_t m_iFontHeight; 176 int32_t m_iFontHeight;
177 int16_t m_iBidiClass; 177 int16_t m_iBidiClass;
178 int16_t m_iBidiLevel; 178 int16_t m_iBidiLevel;
(...skipping 10 matching lines...) Expand all
189 m_iFontHeight(0), 189 m_iFontHeight(0),
190 m_iBidiClass(0), 190 m_iBidiClass(0),
191 m_iBidiLevel(0), 191 m_iBidiLevel(0),
192 m_iBidiPos(0), 192 m_iBidiPos(0),
193 m_dwLayoutStyles(0), 193 m_dwLayoutStyles(0),
194 m_dwIdentity(0), 194 m_dwIdentity(0),
195 m_pUserData(nullptr) {} 195 m_pUserData(nullptr) {}
196 196
197 inline CFX_RTFChar::CFX_RTFChar(const CFX_RTFChar& other) = default; 197 inline CFX_RTFChar::CFX_RTFChar(const CFX_RTFChar& other) = default;
198 198
199 typedef CFX_ArrayTemplate<CFX_RTFChar> CFX_RTFCharArray;
200 #endif // PDF_ENABLE_XFA 199 #endif // PDF_ENABLE_XFA
201 200
202 #endif // CORE_FXCRT_FX_UCD_H_ 201 #endif // CORE_FXCRT_FX_UCD_H_
OLDNEW
« no previous file with comments | « core/fxcrt/fx_arb.h ('k') | xfa/fgas/layout/fgas_rtfbreak.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698