1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_
8 #define XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_
9 
10 #include <vector>
11 
12 #include "core/fxcrt/unowned_ptr.h"
13 #include "xfa/fxfa/parser/xfa_basic_data.h"
14 
15 class CXFA_Object;
16 
17 enum XFA_ResolveNode_RSType {
18   XFA_ResolveNode_RSType_Nodes,
19   XFA_ResolveNode_RSType_Attribute,
20   XFA_ResolveNode_RSType_CreateNodeOne,
21   XFA_ResolveNode_RSType_CreateNodeAll,
22   XFA_ResolveNode_RSType_CreateNodeMidAll,
23   XFA_ResolveNode_RSType_ExistNodes,
24 };
25 
26 struct XFA_RESOLVENODE_RS {
27   XFA_RESOLVENODE_RS();
28   ~XFA_RESOLVENODE_RS();
29 
30   XFA_ResolveNode_RSType dwFlags = XFA_ResolveNode_RSType_Nodes;
31   XFA_SCRIPTATTRIBUTEINFO script_attribute;
32   std::vector<UnownedPtr<CXFA_Object>> objects;
33 };
34 
35 inline XFA_RESOLVENODE_RS::XFA_RESOLVENODE_RS() = default;
36 
37 inline XFA_RESOLVENODE_RS::~XFA_RESOLVENODE_RS() = default;
38 
39 #endif  // XFA_FXFA_PARSER_XFA_RESOLVENODE_RS_H_
40