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