From 778f2feb328ac4321762b8dcf94ebc0a1bac79f5 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 1 Nov 2017 18:46:47 +0000 Subject: 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 Reviewed-by: Tom Sepez --- xfa/fxfa/parser/cxfa_nodelist.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xfa/fxfa/parser/cxfa_nodelist.h') 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(JSObject()); } + CXFA_Node* NamedItem(const WideStringView& wsName); virtual int32_t GetLength() = 0; virtual bool Append(CXFA_Node* pNode) = 0; -- cgit v1.2.3