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

Side by Side Diff: xfa/fde/xml/cfx_saxreader.h

Issue 2051233002: Remove more casts, part 7. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 6 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_FDE_XML_CFX_SAXREADER_H_ 7 #ifndef XFA_FDE_XML_CFX_SAXREADER_H_
8 #define XFA_FDE_XML_CFX_SAXREADER_H_ 8 #define XFA_FDE_XML_CFX_SAXREADER_H_
9 9
10 #include "core/fxcrt/include/fx_basic.h" 10 #include "core/fxcrt/include/fx_basic.h"
11 11
12 class CXFA_SAXContext;
13
12 class CFX_SAXItem { 14 class CFX_SAXItem {
13 public: 15 public:
14 enum class Type { 16 enum class Type {
15 Unknown = 0, 17 Unknown = 0,
16 Instruction, 18 Instruction,
17 Declaration, 19 Declaration,
18 Comment, 20 Comment,
19 Tag, 21 Tag,
20 Text, 22 Text,
21 CharData, 23 CharData,
22 }; 24 };
23 25
24 CFX_SAXItem() 26 CFX_SAXItem()
25 : m_pNode(nullptr), 27 : m_pNode(nullptr),
26 m_eNode(Type::Unknown), 28 m_eNode(Type::Unknown),
27 m_dwID(0), 29 m_dwID(0),
28 m_bSkip(FALSE), 30 m_bSkip(FALSE),
29 m_pPrev(nullptr), 31 m_pPrev(nullptr),
30 m_pNext(nullptr) {} 32 m_pNext(nullptr) {}
31 33
32 void* m_pNode; 34 CXFA_SAXContext* m_pNode;
33 Type m_eNode; 35 Type m_eNode;
34 uint32_t m_dwID; 36 uint32_t m_dwID;
35 FX_BOOL m_bSkip; 37 FX_BOOL m_bSkip;
36 CFX_SAXItem* m_pPrev; 38 CFX_SAXItem* m_pPrev;
37 CFX_SAXItem* m_pNext; 39 CFX_SAXItem* m_pNext;
38 }; 40 };
39 41
40 class CFX_SAXFile { 42 class CFX_SAXFile {
41 public: 43 public:
42 CFX_SAXFile(); 44 CFX_SAXFile();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 int32_t m_iEntityStart; 136 int32_t m_iEntityStart;
135 int32_t m_iDataPos; 137 int32_t m_iDataPos;
136 uint8_t* m_pszName; 138 uint8_t* m_pszName;
137 int32_t m_iNameSize; 139 int32_t m_iNameSize;
138 int32_t m_iNameLength; 140 int32_t m_iNameLength;
139 uint32_t m_dwParseMode; 141 uint32_t m_dwParseMode;
140 CFX_SAXCommentContext* m_pCommentContext; 142 CFX_SAXCommentContext* m_pCommentContext;
141 }; 143 };
142 144
143 #endif // XFA_FDE_XML_CFX_SAXREADER_H_ 145 #endif // XFA_FDE_XML_CFX_SAXREADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698