summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_nodelist.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-01 18:46:47 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-01 18:46:47 +0000
commit778f2feb328ac4321762b8dcf94ebc0a1bac79f5 (patch)
tree05bc5dcf30a98a012fc028942ffc7b641a2a69da /xfa/fxfa/parser/cxfa_nodelist.h
parent4ac35f239938877b15e6bbe1a5c73aab14a2ae5d (diff)
downloadpdfium-778f2feb328ac4321762b8dcf94ebc0a1bac79f5.tar.xz
Move CXFA_NodeList JS to CJX_NodeList
This CL moves the JS from CXFA_NodeList to CJX_NodeList and proxies the JS calls. Change-Id: Ic2295ce2140321748bfe5f851e00da32d4332ce0 Reviewed-on: https://pdfium-review.googlesource.com/17312 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_nodelist.h')
-rw-r--r--xfa/fxfa/parser/cxfa_nodelist.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_nodelist.h b/xfa/fxfa/parser/cxfa_nodelist.h
index 2fccd5d7a5..ec2176e44d 100644
--- a/xfa/fxfa/parser/cxfa_nodelist.h
+++ b/xfa/fxfa/parser/cxfa_nodelist.h
@@ -7,6 +7,7 @@
#ifndef XFA_FXFA_PARSER_CXFA_NODELIST_H_
#define XFA_FXFA_PARSER_CXFA_NODELIST_H_
+#include "fxjs/cjx_nodelist.h"
#include "xfa/fxfa/fxfa_basic.h"
#include "xfa/fxfa/parser/cxfa_object.h"
@@ -19,6 +20,8 @@ class CXFA_NodeList : public CXFA_Object {
explicit CXFA_NodeList(CXFA_Document* pDocument);
~CXFA_NodeList() override;
+ CJX_NodeList* JSNodeList() { return static_cast<CJX_NodeList*>(JSObject()); }
+
CXFA_Node* NamedItem(const WideStringView& wsName);
virtual int32_t GetLength() = 0;
virtual bool Append(CXFA_Node* pNode) = 0;