| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 v8::NamedPropertyDeleterCallback pPropDel); | 182 v8::NamedPropertyDeleterCallback pPropDel); |
| 183 void FXJS_DefineObjConst(v8::Isolate* pIsolate, | 183 void FXJS_DefineObjConst(v8::Isolate* pIsolate, |
| 184 int nObjDefnID, | 184 int nObjDefnID, |
| 185 const wchar_t* sConstName, | 185 const wchar_t* sConstName, |
| 186 v8::Local<v8::Value> pDefault); | 186 v8::Local<v8::Value> pDefault); |
| 187 void FXJS_DefineGlobalMethod(v8::Isolate* pIsolate, | 187 void FXJS_DefineGlobalMethod(v8::Isolate* pIsolate, |
| 188 const wchar_t* sMethodName, | 188 const wchar_t* sMethodName, |
| 189 v8::FunctionCallback pMethodCall); | 189 v8::FunctionCallback pMethodCall); |
| 190 void FXJS_DefineGlobalConst(v8::Isolate* pIsolate, | 190 void FXJS_DefineGlobalConst(v8::Isolate* pIsolate, |
| 191 const wchar_t* sConstName, | 191 const wchar_t* sConstName, |
| 192 v8::Local<v8::Value> pDefault); | 192 v8::FunctionCallback pConstGetter); |
| 193 | 193 |
| 194 // Called after FXJS_Define* calls made. | 194 // Called after FXJS_Define* calls made. |
| 195 void FXJS_InitializeRuntime( | 195 void FXJS_InitializeRuntime( |
| 196 v8::Isolate* pIsolate, | 196 v8::Isolate* pIsolate, |
| 197 IJS_Runtime* pIRuntime, | 197 IJS_Runtime* pIRuntime, |
| 198 v8::Global<v8::Context>* pV8PersistentContext, | 198 v8::Global<v8::Context>* pV8PersistentContext, |
| 199 std::vector<v8::Global<v8::Object>*>* pStaticObjects); | 199 std::vector<v8::Global<v8::Object>*>* pStaticObjects); |
| 200 void FXJS_ReleaseRuntime(v8::Isolate* pIsolate, | 200 void FXJS_ReleaseRuntime(v8::Isolate* pIsolate, |
| 201 v8::Global<v8::Context>* pV8PersistentContext, | 201 v8::Global<v8::Context>* pV8PersistentContext, |
| 202 std::vector<v8::Global<v8::Object>*>* pStaticObjects); | 202 std::vector<v8::Global<v8::Object>*>* pStaticObjects); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); | 297 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); |
| 298 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, | 298 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, |
| 299 v8::Local<v8::Value> pValue); | 299 v8::Local<v8::Value> pValue); |
| 300 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, | 300 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, |
| 301 v8::Local<v8::Value> pValue); | 301 v8::Local<v8::Value> pValue); |
| 302 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, | 302 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, |
| 303 v8::Local<v8::Value> pValue); | 303 v8::Local<v8::Value> pValue); |
| 304 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); |
| 305 | 305 |
| 306 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ | 306 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
| OLD | NEW |