From 8f3074bef53ed941daef3f32981b1449db7bcc26 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 2 Jun 2016 17:45:25 -0700 Subject: Remove FXJSE_Value_ToObject and call methods directly This Cl removes the global FXJSE_Value_ToObject method and adds individual methods on CXFA_Value to do the needed conversions. Review-Url: https://codereview.chromium.org/2026993003 --- xfa/fxfa/parser/cxfa_valuearray.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 xfa/fxfa/parser/cxfa_valuearray.h (limited to 'xfa/fxfa/parser/cxfa_valuearray.h') diff --git a/xfa/fxfa/parser/cxfa_valuearray.h b/xfa/fxfa/parser/cxfa_valuearray.h new file mode 100644 index 0000000000..b2825fa53a --- /dev/null +++ b/xfa/fxfa/parser/cxfa_valuearray.h @@ -0,0 +1,23 @@ +// Copyright 2016 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef XFA_FXFA_PARSER_CXFA_VALUEARRAY_H_ +#define XFA_FXFA_PARSER_CXFA_VALUEARRAY_H_ + +#include "xfa/fxfa/include/fxfa.h" +#include "xfa/fxjse/value.h" + +class CXFA_ValueArray : public CFX_ArrayTemplate { + public: + explicit CXFA_ValueArray(v8::Isolate* pIsolate); + ~CXFA_ValueArray(); + + void GetAttributeObject(CXFA_ObjArray& objArray); + + v8::Isolate* const m_pIsolate; +}; + +#endif // XFA_FXFA_PARSER_CXFA_VALUEARRAY_H_ -- cgit v1.2.3