| 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/include/fx_system.h" | 10 #include "core/fxcrt/include/fx_system.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 FX_FLOAT m_fNumber; | 84 FX_FLOAT m_fNumber; |
| 85 const FX_WCHAR* m_pString; | 85 const FX_WCHAR* m_pString; |
| 86 FDE_CSSPROPERTYVALUE m_eEnum; | 86 FDE_CSSPROPERTYVALUE m_eEnum; |
| 87 CFDE_CSSFunction* m_pFunction; | 87 CFDE_CSSFunction* m_pFunction; |
| 88 }; | 88 }; |
| 89 }; | 89 }; |
| 90 typedef CFX_ArrayTemplate<IFDE_CSSPrimitiveValue*> CFDE_CSSPrimitiveArray; | 90 typedef CFX_ArrayTemplate<IFDE_CSSPrimitiveValue*> CFDE_CSSPrimitiveArray; |
| 91 typedef CFX_ArrayTemplate<IFDE_CSSValue*> CFDE_CSSValueArray; | 91 typedef CFX_ArrayTemplate<IFDE_CSSValue*> CFDE_CSSValueArray; |
| 92 class CFDE_CSSValueList : public IFDE_CSSValueList, public CFX_Target { | 92 class CFDE_CSSValueList : public IFDE_CSSValueList, public CFX_Target { |
| 93 public: | 93 public: |
| 94 CFDE_CSSValueList(IFX_MEMAllocator* pStaticStore, | 94 CFDE_CSSValueList(IFX_MemoryAllocator* pStaticStore, |
| 95 const CFDE_CSSValueArray& list); | 95 const CFDE_CSSValueArray& list); |
| 96 virtual int32_t CountValues() const { return m_iCount; } | 96 virtual int32_t CountValues() const { return m_iCount; } |
| 97 virtual IFDE_CSSValue* GetValue(int32_t index) const { | 97 virtual IFDE_CSSValue* GetValue(int32_t index) const { |
| 98 return m_ppList[index]; | 98 return m_ppList[index]; |
| 99 } | 99 } |
| 100 | 100 |
| 101 protected: | 101 protected: |
| 102 IFDE_CSSValue** m_ppList; | 102 IFDE_CSSValue** m_ppList; |
| 103 int32_t m_iCount; | 103 int32_t m_iCount; |
| 104 }; | 104 }; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 int32_t& iLength); | 189 int32_t& iLength); |
| 190 FX_BOOL FDE_ParseCSSColor(const FX_WCHAR* pszValue, | 190 FX_BOOL FDE_ParseCSSColor(const FX_WCHAR* pszValue, |
| 191 int32_t iValueLen, | 191 int32_t iValueLen, |
| 192 FX_ARGB& dwColor); | 192 FX_ARGB& dwColor); |
| 193 FX_BOOL FDE_ParseCSSURI(const FX_WCHAR* pszValue, | 193 FX_BOOL FDE_ParseCSSURI(const FX_WCHAR* pszValue, |
| 194 int32_t iValueLen, | 194 int32_t iValueLen, |
| 195 int32_t& iOffset, | 195 int32_t& iOffset, |
| 196 int32_t& iLength); | 196 int32_t& iLength); |
| 197 | 197 |
| 198 #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_ | 198 #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_ |
| OLD | NEW |