| OLD | NEW |
| 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/fxcrt/fx_system.h" | 10 #include "core/fxcrt/fx_system.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 typedef FDE_CSSLENGTHUNITTABLE const* FDE_LPCCSSLENGTHUNITTABLE; | 140 typedef FDE_CSSLENGTHUNITTABLE const* FDE_LPCCSSLENGTHUNITTABLE; |
| 141 FDE_LPCCSSLENGTHUNITTABLE FDE_GetCSSLengthUnitByName( | 141 FDE_LPCCSSLENGTHUNITTABLE FDE_GetCSSLengthUnitByName( |
| 142 const CFX_WideStringC& wsName); | 142 const CFX_WideStringC& wsName); |
| 143 struct FDE_CSSCOLORTABLE { | 143 struct FDE_CSSCOLORTABLE { |
| 144 uint32_t dwHash; | 144 uint32_t dwHash; |
| 145 FX_ARGB dwValue; | 145 FX_ARGB dwValue; |
| 146 }; | 146 }; |
| 147 typedef FDE_CSSCOLORTABLE const* FDE_LPCCSSCOLORTABLE; | 147 typedef FDE_CSSCOLORTABLE const* FDE_LPCCSSCOLORTABLE; |
| 148 FDE_LPCCSSCOLORTABLE FDE_GetCSSColorByName(const CFX_WideStringC& wsName); | 148 FDE_LPCCSSCOLORTABLE FDE_GetCSSColorByName(const CFX_WideStringC& wsName); |
| 149 | 149 |
| 150 struct FDE_CSSPERSUDOTABLE { | 150 struct FDE_CSSPSEUDOTABLE { |
| 151 FDE_CSSPERSUDO eName; | 151 FDE_CSSPSEUDO eName; |
| 152 const FX_WCHAR* pszName; | 152 const FX_WCHAR* pszName; |
| 153 uint32_t dwHash; | 153 uint32_t dwHash; |
| 154 }; | 154 }; |
| 155 typedef FDE_CSSPERSUDOTABLE const* FDE_LPCCSSPERSUDOTABLE; | 155 typedef FDE_CSSPSEUDOTABLE const* FDE_LPCCSSPSEUDOTABLE; |
| 156 | 156 |
| 157 FDE_LPCCSSPERSUDOTABLE FDE_GetCSSPersudoByEnum(FDE_CSSPERSUDO ePersudo); | 157 FDE_LPCCSSPSEUDOTABLE FDE_GetCSSPseudoByEnum(FDE_CSSPSEUDO ePseudo); |
| 158 bool FDE_ParseCSSNumber(const FX_WCHAR* pszValue, | 158 bool FDE_ParseCSSNumber(const FX_WCHAR* pszValue, |
| 159 int32_t iValueLen, | 159 int32_t iValueLen, |
| 160 FX_FLOAT& fValue, | 160 FX_FLOAT& fValue, |
| 161 FDE_CSSPRIMITIVETYPE& eUnit); | 161 FDE_CSSPRIMITIVETYPE& eUnit); |
| 162 bool FDE_ParseCSSString(const FX_WCHAR* pszValue, | 162 bool FDE_ParseCSSString(const FX_WCHAR* pszValue, |
| 163 int32_t iValueLen, | 163 int32_t iValueLen, |
| 164 int32_t* iOffset, | 164 int32_t* iOffset, |
| 165 int32_t* iLength); | 165 int32_t* iLength); |
| 166 bool FDE_ParseCSSColor(const FX_WCHAR* pszValue, | 166 bool FDE_ParseCSSColor(const FX_WCHAR* pszValue, |
| 167 int32_t iValueLen, | 167 int32_t iValueLen, |
| 168 FX_ARGB& dwColor); | 168 FX_ARGB& dwColor); |
| 169 bool FDE_ParseCSSURI(const FX_WCHAR* pszValue, | 169 bool FDE_ParseCSSURI(const FX_WCHAR* pszValue, |
| 170 int32_t* iOffset, | 170 int32_t* iOffset, |
| 171 int32_t* iLength); | 171 int32_t* iLength); |
| 172 | 172 |
| 173 #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_ | 173 #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_ |
| OLD | NEW |