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

Side by Side Diff: xfa/fde/css/fde_cssdatatable.h

Issue 1821043003: Remove FX_WORD in favor of uint16_t. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 XFA_FDE_CSS_FDE_CSSDATATABLE_H_ 7 #ifndef XFA_FDE_CSS_FDE_CSSDATATABLE_H_
8 #define XFA_FDE_CSS_FDE_CSSDATATABLE_H_ 8 #define XFA_FDE_CSS_FDE_CSSDATATABLE_H_
9 9
10 #include "core/include/fxcrt/fx_system.h" 10 #include "core/include/fxcrt/fx_system.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 FX_DWORD dwHash; 146 FX_DWORD dwHash;
147 }; 147 };
148 typedef FDE_CSSPROPERTYVALUETABLE const* FDE_LPCCSSPROPERTYVALUETABLE; 148 typedef FDE_CSSPROPERTYVALUETABLE const* FDE_LPCCSSPROPERTYVALUETABLE;
149 149
150 FDE_LPCCSSPROPERTYVALUETABLE FDE_GetCSSPropertyValueByName( 150 FDE_LPCCSSPROPERTYVALUETABLE FDE_GetCSSPropertyValueByName(
151 const FX_WCHAR* pszName, 151 const FX_WCHAR* pszName,
152 int32_t iLength); 152 int32_t iLength);
153 FDE_LPCCSSPROPERTYVALUETABLE FDE_GetCSSPropertyValueByEnum( 153 FDE_LPCCSSPROPERTYVALUETABLE FDE_GetCSSPropertyValueByEnum(
154 FDE_CSSPROPERTYVALUE eName); 154 FDE_CSSPROPERTYVALUE eName);
155 struct FDE_CSSMEDIATYPETABLE { 155 struct FDE_CSSMEDIATYPETABLE {
156 FX_WORD wHash; 156 uint16_t wHash;
157 FX_WORD wValue; 157 uint16_t wValue;
158 }; 158 };
159 typedef FDE_CSSMEDIATYPETABLE const* FDE_LPCCSSMEDIATYPETABLE; 159 typedef FDE_CSSMEDIATYPETABLE const* FDE_LPCCSSMEDIATYPETABLE;
160 FDE_LPCCSSMEDIATYPETABLE FDE_GetCSSMediaTypeByName(const FX_WCHAR* pszName, 160 FDE_LPCCSSMEDIATYPETABLE FDE_GetCSSMediaTypeByName(const FX_WCHAR* pszName,
161 int32_t iLength); 161 int32_t iLength);
162 struct FDE_CSSLENGTHUNITTABLE { 162 struct FDE_CSSLENGTHUNITTABLE {
163 FX_WORD wHash; 163 uint16_t wHash;
164 FX_WORD wValue; 164 uint16_t wValue;
165 }; 165 };
166 typedef FDE_CSSLENGTHUNITTABLE const* FDE_LPCCSSLENGTHUNITTABLE; 166 typedef FDE_CSSLENGTHUNITTABLE const* FDE_LPCCSSLENGTHUNITTABLE;
167 FDE_LPCCSSLENGTHUNITTABLE FDE_GetCSSLengthUnitByName(const FX_WCHAR* pszName, 167 FDE_LPCCSSLENGTHUNITTABLE FDE_GetCSSLengthUnitByName(const FX_WCHAR* pszName,
168 int32_t iLength); 168 int32_t iLength);
169 struct FDE_CSSCOLORTABLE { 169 struct FDE_CSSCOLORTABLE {
170 FX_DWORD dwHash; 170 FX_DWORD dwHash;
171 FX_ARGB dwValue; 171 FX_ARGB dwValue;
172 }; 172 };
173 typedef FDE_CSSCOLORTABLE const* FDE_LPCCSSCOLORTABLE; 173 typedef FDE_CSSCOLORTABLE const* FDE_LPCCSSCOLORTABLE;
174 FDE_LPCCSSCOLORTABLE FDE_GetCSSColorByName(const FX_WCHAR* pszName, 174 FDE_LPCCSSCOLORTABLE FDE_GetCSSColorByName(const FX_WCHAR* pszName,
(...skipping 16 matching lines...) Expand all
191 int32_t& iLength); 191 int32_t& iLength);
192 FX_BOOL FDE_ParseCSSColor(const FX_WCHAR* pszValue, 192 FX_BOOL FDE_ParseCSSColor(const FX_WCHAR* pszValue,
193 int32_t iValueLen, 193 int32_t iValueLen,
194 FX_ARGB& dwColor); 194 FX_ARGB& dwColor);
195 FX_BOOL FDE_ParseCSSURI(const FX_WCHAR* pszValue, 195 FX_BOOL FDE_ParseCSSURI(const FX_WCHAR* pszValue,
196 int32_t iValueLen, 196 int32_t iValueLen,
197 int32_t& iOffset, 197 int32_t& iOffset,
198 int32_t& iLength); 198 int32_t& iLength);
199 199
200 #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_ 200 #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698