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

Side by Side Diff: xfa/fxfa/parser/xfa_object.h

Issue 2079393006: Remove IsOrdinaryList; rename to OrdinaryList to List (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa_part_III
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
« no previous file with comments | « xfa/fxfa/parser/xfa_basic_data.cpp ('k') | no next file » | 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_FXFA_PARSER_XFA_OBJECT_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_OBJECT_H_
8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_ 8 #define XFA_FXFA_PARSER_XFA_OBJECT_H_
9 9
10 #include <unordered_set> 10 #include <unordered_set>
11 11
12 #include "fxjse/include/cfxjse_arguments.h" 12 #include "fxjse/include/cfxjse_arguments.h"
13 #include "xfa/fde/xml/fde_xml.h" 13 #include "xfa/fde/xml/fde_xml.h"
14 #include "xfa/fxfa/parser/xfa_utils.h" 14 #include "xfa/fxfa/parser/xfa_utils.h"
15 15
16 class CXFA_Document; 16 class CXFA_Document;
17 class CXFA_Node; 17 class CXFA_Node;
18 class CXFA_NodeList; 18 class CXFA_NodeList;
19 19
20 enum class XFA_ObjectType { 20 enum class XFA_ObjectType {
21 Object, 21 Object,
22 OrdinaryList, 22 List,
23 NodeList, 23 NodeList,
24 Node, 24 Node,
25 NodeC, 25 NodeC,
26 NodeV, 26 NodeV,
27 ModelNode, 27 ModelNode,
28 TextNode, 28 TextNode,
29 ContainerNode, 29 ContainerNode,
30 ContentNode, 30 ContentNode,
31 VariablesThis 31 VariablesThis
32 }; 32 };
(...skipping 25 matching lines...) Expand all
58 return m_objectType == XFA_ObjectType::Node || 58 return m_objectType == XFA_ObjectType::Node ||
59 m_objectType == XFA_ObjectType::NodeC || 59 m_objectType == XFA_ObjectType::NodeC ||
60 m_objectType == XFA_ObjectType::NodeV || 60 m_objectType == XFA_ObjectType::NodeV ||
61 m_objectType == XFA_ObjectType::ModelNode || 61 m_objectType == XFA_ObjectType::ModelNode ||
62 m_objectType == XFA_ObjectType::TextNode || 62 m_objectType == XFA_ObjectType::TextNode ||
63 m_objectType == XFA_ObjectType::ContainerNode || 63 m_objectType == XFA_ObjectType::ContainerNode ||
64 m_objectType == XFA_ObjectType::ContentNode || 64 m_objectType == XFA_ObjectType::ContentNode ||
65 m_objectType == XFA_ObjectType::VariablesThis; 65 m_objectType == XFA_ObjectType::VariablesThis;
66 } 66 }
67 bool IsNodeList() const { return m_objectType == XFA_ObjectType::NodeList; } 67 bool IsNodeList() const { return m_objectType == XFA_ObjectType::NodeList; }
68 bool IsOrdinaryList() const {
69 return m_objectType == XFA_ObjectType::OrdinaryList;
70 }
71 bool IsContentNode() const { 68 bool IsContentNode() const {
72 return m_objectType == XFA_ObjectType::ContentNode; 69 return m_objectType == XFA_ObjectType::ContentNode;
73 } 70 }
74 bool IsContainerNode() const { 71 bool IsContainerNode() const {
75 return m_objectType == XFA_ObjectType::ContainerNode; 72 return m_objectType == XFA_ObjectType::ContainerNode;
76 } 73 }
77 bool IsModelNode() const { return m_objectType == XFA_ObjectType::ModelNode; } 74 bool IsModelNode() const { return m_objectType == XFA_ObjectType::ModelNode; }
78 bool IsNodeV() const { return m_objectType == XFA_ObjectType::NodeV; } 75 bool IsNodeV() const { return m_objectType == XFA_ObjectType::NodeV; }
79 bool IsVariablesThis() const { 76 bool IsVariablesThis() const {
80 return m_objectType == XFA_ObjectType::VariablesThis; 77 return m_objectType == XFA_ObjectType::VariablesThis;
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 797
801 inline CXFA_Node* ToNode(CXFA_Object* pObj) { 798 inline CXFA_Node* ToNode(CXFA_Object* pObj) {
802 return pObj ? pObj->AsNode() : nullptr; 799 return pObj ? pObj->AsNode() : nullptr;
803 } 800 }
804 801
805 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) { 802 inline const CXFA_Node* ToNode(const CXFA_Object* pObj) {
806 return pObj ? pObj->AsNode() : nullptr; 803 return pObj ? pObj->AsNode() : nullptr;
807 } 804 }
808 805
809 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_ 806 #endif // XFA_FXFA_PARSER_XFA_OBJECT_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_basic_data.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698