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 // FXJS_V8 is a layer that makes it easier to define native objects in V8, but | 7 // FXJS_V8 is a layer that makes it easier to define native objects in V8, but |
8 // has no knowledge of PDF-specific native objects. It could in theory be used | 8 // has no knowledge of PDF-specific native objects. It could in theory be used |
9 // to implement other sets of native objects. | 9 // to implement other sets of native objects. |
10 | 10 |
11 // PDFium code should include this file rather than including V8 headers | 11 // PDFium code should include this file rather than including V8 headers |
12 // directly. | 12 // directly. |
13 | 13 |
14 #ifndef FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ | 14 #ifndef FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
15 #define FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ | 15 #define FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
16 | 16 |
17 #include <v8-util.h> | 17 #include <v8-util.h> |
18 #include <v8.h> | 18 #include <v8.h> |
19 | 19 |
20 #include <string> | |
Tom Sepez
2016/03/08 19:27:05
*
dsinclair
2016/03/08 21:08:02
Done.
| |
20 #include <vector> | 21 #include <vector> |
21 | 22 |
22 #include "core/include/fxcrt/fx_string.h" | 23 #include "core/include/fxcrt/fx_string.h" |
23 | 24 |
24 class CFXJS_ObjDefinition; | 25 class CFXJS_ObjDefinition; |
25 | 26 |
26 // FXJS_V8 places no restrictions on these two classes; it merely passes them | 27 // FXJS_V8 places no restrictions on these two classes; it merely passes them |
27 // on to caller-provided methods. | 28 // on to caller-provided methods. |
28 class IJS_Context; // A description of the event that caused JS execution. | 29 class IJS_Context; // A description of the event that caused JS execution. |
29 class IJS_Runtime; // A native runtime, typically owns the v8::Context. | 30 class IJS_Runtime; // A native runtime, typically owns the v8::Context. |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
296 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); | 297 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); |
297 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, | 298 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, |
298 v8::Local<v8::Value> pValue); | 299 v8::Local<v8::Value> pValue); |
299 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, | 300 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, |
300 v8::Local<v8::Value> pValue); | 301 v8::Local<v8::Value> pValue); |
301 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, | 302 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, |
302 v8::Local<v8::Value> pValue); | 303 v8::Local<v8::Value> pValue); |
303 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); | 304 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); |
304 | 305 |
305 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ | 306 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
OLD | NEW |