1 // Copyright 2016 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 #include "xfa/fxfa/parser/cxfa_thisproxy.h" 8 9 #include "fxjs/xfa/cjx_object.h" 10 #include "third_party/base/ptr_util.h" 11 #include "xfa/fxfa/parser/cxfa_node.h" 12 CXFA_ThisProxy(CXFA_Node * pThisNode,CXFA_Node * pScriptNode)13CXFA_ThisProxy::CXFA_ThisProxy(CXFA_Node* pThisNode, CXFA_Node* pScriptNode) 14 : CXFA_Object(pThisNode->GetDocument(), 15 XFA_ObjectType::VariablesThis, 16 XFA_Element::Unknown, 17 WideStringView(), 18 pdfium::MakeUnique<CJX_Object>(this)), 19 m_pThisNode(pThisNode), 20 m_pScriptNode(pScriptNode) {} 21 ~CXFA_ThisProxy()22CXFA_ThisProxy::~CXFA_ThisProxy() {} 23