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

Side by Side Diff: xfa/src/fdp/src/css/fde_cssdatatable.h

Issue 1747123002: Fix and enable lint checks. (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_SRC_FDP_SRC_CSS_FDE_CSSDATATABLE_H_ 7 #ifndef XFA_SRC_FDP_SRC_CSS_FDE_CSSDATATABLE_H_
8 #define XFA_SRC_FDP_SRC_CSS_FDE_CSSDATATABLE_H_ 8 #define XFA_SRC_FDP_SRC_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/fdp/include/fde_css.h" 11 #include "xfa/src/fdp/include/fde_css.h"
12 #include "xfa/src/fgas/include/fx_mem.h" 12 #include "xfa/src/fgas/include/fx_mem.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);
23 } 23 }
24 const FX_WCHAR* GetFuncName() const { return m_pszFuncName; }; 24 const FX_WCHAR* GetFuncName() const { return m_pszFuncName; }
25 25
26 protected: 26 protected:
27 IFDE_CSSValueList* m_pArgList; 27 IFDE_CSSValueList* m_pArgList;
28 const FX_WCHAR* m_pszFuncName; 28 const FX_WCHAR* m_pszFuncName;
29 }; 29 };
30 class CFDE_CSSPrimitiveValue : public IFDE_CSSPrimitiveValue, 30 class CFDE_CSSPrimitiveValue : public IFDE_CSSPrimitiveValue,
31 public CFX_Target { 31 public CFX_Target {
32 public: 32 public:
33 CFDE_CSSPrimitiveValue(const CFDE_CSSPrimitiveValue& src) { *this = src; } 33 CFDE_CSSPrimitiveValue(const CFDE_CSSPrimitiveValue& src) { *this = src; }
34 CFDE_CSSPrimitiveValue(FX_ARGB color) 34 CFDE_CSSPrimitiveValue(FX_ARGB color)
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_FDP_SRC_CSS_FDE_CSSDATATABLE_H_ 200 #endif // XFA_SRC_FDP_SRC_CSS_FDE_CSSDATATABLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698