| 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 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 #ifdef PDF_ENABLE_XFA | 205 #ifdef PDF_ENABLE_XFA |
| 206 // Called as part of FXJS_InitializeRuntime, exposed so PDF can make its | 206 // Called as part of FXJS_InitializeRuntime, exposed so PDF can make its |
| 207 // own contexts compatible with XFA or vice versa. | 207 // own contexts compatible with XFA or vice versa. |
| 208 void FXJS_SetRuntimeForV8Context(v8::Local<v8::Context> v8Context, | 208 void FXJS_SetRuntimeForV8Context(v8::Local<v8::Context> v8Context, |
| 209 IJS_Runtime* pIRuntime); | 209 IJS_Runtime* pIRuntime); |
| 210 #endif // PDF_ENABLE_XFA | 210 #endif // PDF_ENABLE_XFA |
| 211 | 211 |
| 212 // Called after FXJS_InitializeRuntime call made. | 212 // Called after FXJS_InitializeRuntime call made. |
| 213 int FXJS_Execute(v8::Isolate* pIsolate, | 213 int FXJS_Execute(v8::Isolate* pIsolate, |
| 214 IJS_Context* pJSContext, | 214 const CFX_WideString script, |
| 215 const wchar_t* script, | |
| 216 FXJSErr* perror); | 215 FXJSErr* perror); |
| 217 | 216 |
| 218 v8::Local<v8::Object> FXJS_NewFxDynamicObj(v8::Isolate* pIsolate, | 217 v8::Local<v8::Object> FXJS_NewFxDynamicObj(v8::Isolate* pIsolate, |
| 219 IJS_Runtime* pJSContext, | 218 IJS_Runtime* pJSContext, |
| 220 int nObjDefnID, | 219 int nObjDefnID, |
| 221 bool bStatic = false); | 220 bool bStatic = false); |
| 222 v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate); | 221 v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate); |
| 223 int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj); | 222 int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj); |
| 224 const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj); | 223 const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj); |
| 225 | 224 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); | 292 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); |
| 294 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, | 293 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, |
| 295 v8::Local<v8::Value> pValue); | 294 v8::Local<v8::Value> pValue); |
| 296 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, | 295 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, |
| 297 v8::Local<v8::Value> pValue); | 296 v8::Local<v8::Value> pValue); |
| 298 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, | 297 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, |
| 299 v8::Local<v8::Value> pValue); | 298 v8::Local<v8::Value> pValue); |
| 300 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); | 299 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); |
| 301 | 300 |
| 302 #endif // FPDFSDK_JSAPI_INCLUDE_FXJS_V8_H_ | 301 #endif // FPDFSDK_JSAPI_INCLUDE_FXJS_V8_H_ |
| OLD | NEW |