diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-12-07 22:33:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-07 22:33:43 +0000 |
commit | 93bb725b62f9779534c9444c1e1319fe8c28912e (patch) | |
tree | af0c758c1129dc076cbf67a89f1c23e4703e02bd /xfa/fxfa/parser/cxfa_object.h | |
parent | ce6979f8d064507300fe0b3a856687fb958c9a5c (diff) | |
download | pdfium-93bb725b62f9779534c9444c1e1319fe8c28912e.tar.xz |
[xfa] Move JS method information to files.chromium/3288
This CL moves the XFA SOM JS Method information out of the c-array and
into individual CJX class files.
Change-Id: I401046a06aacaf1f04e5a51eb899e479de012e15
Reviewed-on: https://pdfium-review.googlesource.com/20450
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_object.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_object.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xfa/fxfa/parser/cxfa_object.h b/xfa/fxfa/parser/cxfa_object.h index a53328ddb9..ce9ce9333b 100644 --- a/xfa/fxfa/parser/cxfa_object.h +++ b/xfa/fxfa/parser/cxfa_object.h @@ -16,12 +16,12 @@ enum class XFA_ObjectType { Object, List, - NodeList, Node, NodeC, NodeV, ModelNode, TextNode, + TreeList, ContainerNode, ContentNode, VariablesThis @@ -30,7 +30,7 @@ enum class XFA_ObjectType { class CJX_Object; class CXFA_Document; class CXFA_Node; -class CXFA_NodeList; +class CXFA_TreeList; class CXFA_Object : public CFXJSE_HostObject { public: @@ -49,7 +49,7 @@ class CXFA_Object : public CFXJSE_HostObject { m_objectType == XFA_ObjectType::ContentNode || m_objectType == XFA_ObjectType::VariablesThis; } - bool IsNodeList() const { return m_objectType == XFA_ObjectType::NodeList; } + bool IsTreeList() const { return m_objectType == XFA_ObjectType::TreeList; } bool IsContentNode() const { return m_objectType == XFA_ObjectType::ContentNode; } @@ -63,10 +63,10 @@ class CXFA_Object : public CFXJSE_HostObject { } CXFA_Node* AsNode(); - CXFA_NodeList* AsNodeList(); + CXFA_TreeList* AsTreeList(); const CXFA_Node* AsNode() const; - const CXFA_NodeList* AsNodeList() const; + const CXFA_TreeList* AsTreeList() const; CJX_Object* JSObject() { return m_pJSObject.get(); } const CJX_Object* JSObject() const { return m_pJSObject.get(); } @@ -75,6 +75,8 @@ class CXFA_Object : public CFXJSE_HostObject { WideStringView GetClassName() const { return m_elementName; } uint32_t GetClassHashCode() const { return m_elementNameHash; } + void GetSOMExpression(WideString& wsSOMExpression); + protected: CXFA_Object(CXFA_Document* pDocument, XFA_ObjectType objectType, |