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_SRC_FDE_CSS_FDE_CSSDATATABLE_H_ | 7 #ifndef XFA_FDE_CSS_FDE_CSSDATATABLE_H_ |
8 #define XFA_SRC_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" |
11 #include "xfa/src/fde/css/fde_css.h" | 11 #include "xfa/fde/css/fde_css.h" |
12 #include "xfa/src/fgas/crt/fgas_memory.h" | 12 #include "xfa/fgas/crt/fgas_memory.h" |
13 | 13 |
14 class CFDE_CSSFunction : public CFX_Target { | 14 class CFDE_CSSFunction : public CFX_Target { |
15 public: | 15 public: |
16 CFDE_CSSFunction(const FX_WCHAR* pszFuncName, IFDE_CSSValueList* pArgList) | 16 CFDE_CSSFunction(const FX_WCHAR* pszFuncName, IFDE_CSSValueList* pArgList) |
17 : m_pArgList(pArgList), m_pszFuncName(pszFuncName) { | 17 : m_pArgList(pArgList), m_pszFuncName(pszFuncName) { |
18 FXSYS_assert(pArgList != NULL); | 18 FXSYS_assert(pArgList != NULL); |
19 } | 19 } |
20 int32_t CountArgs() const { return m_pArgList->CountValues(); } | 20 int32_t CountArgs() const { return m_pArgList->CountValues(); } |
21 IFDE_CSSValue* GetArgs(int32_t index) const { | 21 IFDE_CSSValue* GetArgs(int32_t index) const { |
22 return m_pArgList->GetValue(index); | 22 return m_pArgList->GetValue(index); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 int32_t& iOffset, | 190 int32_t& iOffset, |
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_SRC_FDE_CSS_FDE_CSSDATATABLE_H_ | 200 #endif // XFA_FDE_CSS_FDE_CSSDATATABLE_H_ |
OLD | NEW |