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

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

Issue 1821043003: Remove FX_WORD in favor of uint16_t. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use stdint.h directly, bitfield minefield. 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
« no previous file with comments | « xfa/fde/css/fde_cssstyleselector.cpp ('k') | xfa/fde/css/fde_cssstylesheet.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CSSSTYLESHEET_H_ 7 #ifndef XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_
8 #define XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ 8 #define XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_
9 9
10 #include "core/include/fxcrt/fx_ext.h" 10 #include "core/include/fxcrt/fx_ext.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 CFDE_CSSStyleSheet(FX_DWORD dwMediaList); 99 CFDE_CSSStyleSheet(FX_DWORD dwMediaList);
100 ~CFDE_CSSStyleSheet(); 100 ~CFDE_CSSStyleSheet();
101 virtual FX_DWORD AddRef(); 101 virtual FX_DWORD AddRef();
102 virtual FX_DWORD Release(); 102 virtual FX_DWORD Release();
103 103
104 virtual FX_BOOL GetUrl(CFX_WideString& szUrl) { 104 virtual FX_BOOL GetUrl(CFX_WideString& szUrl) {
105 szUrl = m_szUrl; 105 szUrl = m_szUrl;
106 return szUrl.GetLength() > 0; 106 return szUrl.GetLength() > 0;
107 } 107 }
108 virtual FX_DWORD GetMediaList() const { return m_dwMediaList; } 108 virtual FX_DWORD GetMediaList() const { return m_dwMediaList; }
109 virtual FX_WORD GetCodePage() const { return m_wCodePage; } 109 virtual uint16_t GetCodePage() const { return m_wCodePage; }
110 virtual int32_t CountRules() const; 110 virtual int32_t CountRules() const;
111 virtual IFDE_CSSRule* GetRule(int32_t index); 111 virtual IFDE_CSSRule* GetRule(int32_t index);
112 FX_BOOL LoadFromStream(const CFX_WideString& szUrl, 112 FX_BOOL LoadFromStream(const CFX_WideString& szUrl,
113 IFX_Stream* pStream, 113 IFX_Stream* pStream,
114 FX_WORD wCodePage); 114 uint16_t wCodePage);
115 FX_BOOL LoadFromBuffer(const CFX_WideString& szUrl, 115 FX_BOOL LoadFromBuffer(const CFX_WideString& szUrl,
116 const FX_WCHAR* pBuffer, 116 const FX_WCHAR* pBuffer,
117 int32_t iBufSize, 117 int32_t iBufSize,
118 FX_WORD wCodePage); 118 uint16_t wCodePage);
119 119
120 protected: 120 protected:
121 void Reset(); 121 void Reset();
122 FX_BOOL LoadFromSyntax(IFDE_CSSSyntaxParser* pSyntax); 122 FX_BOOL LoadFromSyntax(IFDE_CSSSyntaxParser* pSyntax);
123 FDE_CSSSYNTAXSTATUS LoadStyleRule(IFDE_CSSSyntaxParser* pSyntax, 123 FDE_CSSSYNTAXSTATUS LoadStyleRule(IFDE_CSSSyntaxParser* pSyntax,
124 CFDE_CSSRuleArray& ruleArray); 124 CFDE_CSSRuleArray& ruleArray);
125 FDE_CSSSYNTAXSTATUS LoadImportRule(IFDE_CSSSyntaxParser* pSyntax); 125 FDE_CSSSYNTAXSTATUS LoadImportRule(IFDE_CSSSyntaxParser* pSyntax);
126 FDE_CSSSYNTAXSTATUS LoadPageRule(IFDE_CSSSyntaxParser* pSyntax); 126 FDE_CSSSYNTAXSTATUS LoadPageRule(IFDE_CSSSyntaxParser* pSyntax);
127 FDE_CSSSYNTAXSTATUS LoadMediaRule(IFDE_CSSSyntaxParser* pSyntax); 127 FDE_CSSSYNTAXSTATUS LoadMediaRule(IFDE_CSSSyntaxParser* pSyntax);
128 FDE_CSSSYNTAXSTATUS LoadFontFaceRule(IFDE_CSSSyntaxParser* pSyntax, 128 FDE_CSSSYNTAXSTATUS LoadFontFaceRule(IFDE_CSSSyntaxParser* pSyntax,
129 CFDE_CSSRuleArray& ruleArray); 129 CFDE_CSSRuleArray& ruleArray);
130 FDE_CSSSYNTAXSTATUS SkipRuleSet(IFDE_CSSSyntaxParser* pSyntax); 130 FDE_CSSSYNTAXSTATUS SkipRuleSet(IFDE_CSSSyntaxParser* pSyntax);
131 FX_WORD m_wCodePage; 131 uint16_t m_wCodePage;
132 FX_WORD m_wRefCount; 132 uint16_t m_wRefCount;
133 FX_DWORD m_dwMediaList; 133 FX_DWORD m_dwMediaList;
134 IFX_MEMAllocator* m_pAllocator; 134 IFX_MEMAllocator* m_pAllocator;
135 CFDE_CSSRuleArray m_RuleArray; 135 CFDE_CSSRuleArray m_RuleArray;
136 CFX_WideString m_szUrl; 136 CFX_WideString m_szUrl;
137 CFDE_CSSSelectorArray m_Selectors; 137 CFDE_CSSSelectorArray m_Selectors;
138 CFX_MapPtrToPtr m_StringCache; 138 CFX_MapPtrToPtr m_StringCache;
139 }; 139 };
140 140
141 #endif // XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_ 141 #endif // XFA_FDE_CSS_FDE_CSSSTYLESHEET_H_
OLDNEW
« no previous file with comments | « xfa/fde/css/fde_cssstyleselector.cpp ('k') | xfa/fde/css/fde_cssstylesheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698