OLD | NEW |
---|---|
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef FPDFSDK_JAVASCRIPT_JS_VALUE_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_JS_VALUE_H_ |
8 #define FPDFSDK_JAVASCRIPT_JS_VALUE_H_ | 8 #define FPDFSDK_JAVASCRIPT_JS_VALUE_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 private: | 132 private: |
133 FX_BOOL m_bIsSetting; | 133 FX_BOOL m_bIsSetting; |
134 }; | 134 }; |
135 | 135 |
136 class CJS_Array { | 136 class CJS_Array { |
137 public: | 137 public: |
138 CJS_Array(CJS_Runtime* pRuntime); | 138 CJS_Array(CJS_Runtime* pRuntime); |
139 virtual ~CJS_Array(); | 139 virtual ~CJS_Array(); |
140 | 140 |
141 void Attach(v8::Local<v8::Array> pArray); | 141 void Attach(v8::Local<v8::Array> pArray); |
142 void GetElement(unsigned index, CJS_Value& value); | 142 void GetObjectBy(unsigned index, CJS_Value& value); |
Tom Sepez
2016/03/29 21:01:43
.... and this is still hosed.
| |
143 void SetElement(unsigned index, CJS_Value value); | 143 void SetElement(unsigned index, CJS_Value value); |
144 int GetLength(); | 144 int GetLength(); |
145 FX_BOOL IsAttached(); | 145 FX_BOOL IsAttached(); |
146 operator v8::Local<v8::Array>(); | 146 operator v8::Local<v8::Array>(); |
147 | 147 |
148 CJS_Runtime* GetJSRuntime() const { return m_pJSRuntime; } | 148 CJS_Runtime* GetJSRuntime() const { return m_pJSRuntime; } |
149 | 149 |
150 private: | 150 private: |
151 v8::Local<v8::Array> m_pArray; | 151 v8::Local<v8::Array> m_pArray; |
152 CJS_Runtime* m_pJSRuntime; | 152 CJS_Runtime* m_pJSRuntime; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
221 // names as wchar_t string literals corresponding to each positional argument. | 221 // names as wchar_t string literals corresponding to each positional argument. |
222 // The result will always contain |nKeywords| value, with unspecified ones | 222 // The result will always contain |nKeywords| value, with unspecified ones |
223 // being set to type VT_unknown. | 223 // being set to type VT_unknown. |
224 std::vector<CJS_Value> JS_ExpandKeywordParams( | 224 std::vector<CJS_Value> JS_ExpandKeywordParams( |
225 CJS_Runtime* pRuntime, | 225 CJS_Runtime* pRuntime, |
226 const std::vector<CJS_Value>& originals, | 226 const std::vector<CJS_Value>& originals, |
227 size_t nKeywords, | 227 size_t nKeywords, |
228 ...); | 228 ...); |
229 | 229 |
230 #endif // FPDFSDK_JAVASCRIPT_JS_VALUE_H_ | 230 #endif // FPDFSDK_JAVASCRIPT_JS_VALUE_H_ |
OLD | NEW |