| 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 // PDFium wrapper around V8 APIs. PDFium code should include this file rather | 7 // PDFium wrapper around V8 APIs. PDFium code should include this file rather |
| 8 // than including V8 headers directly. | 8 // than including V8 headers directly. |
| 9 | 9 |
| 10 #ifndef FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ | 10 #ifndef FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 int nObjDefnID); | 118 int nObjDefnID); |
| 119 v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate); | 119 v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate); |
| 120 int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj); | 120 int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj); |
| 121 int FXJS_GetObjDefnID(v8::Isolate* pIsolate, const wchar_t* pObjName); | 121 int FXJS_GetObjDefnID(v8::Isolate* pIsolate, const wchar_t* pObjName); |
| 122 v8::Isolate* FXJS_GetRuntime(v8::Local<v8::Object> pObj); | 122 v8::Isolate* FXJS_GetRuntime(v8::Local<v8::Object> pObj); |
| 123 const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj); | 123 const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj); |
| 124 | 124 |
| 125 void FXJS_SetPrivate(v8::Isolate* pIsolate, | 125 void FXJS_SetPrivate(v8::Isolate* pIsolate, |
| 126 v8::Local<v8::Object> pObj, | 126 v8::Local<v8::Object> pObj, |
| 127 void* p); | 127 void* p); |
| 128 void FXJS_SetPrivate(v8::Local<v8::Object> pObj, void* p); | |
| 129 void* FXJS_GetPrivate(v8::Isolate* pIsolate, v8::Local<v8::Object> pObj); | 128 void* FXJS_GetPrivate(v8::Isolate* pIsolate, v8::Local<v8::Object> pObj); |
| 130 void* FXJS_GetPrivate(v8::Local<v8::Object> pObj); | |
| 131 void FXJS_FreePrivate(void* p); | 129 void FXJS_FreePrivate(void* p); |
| 132 void FXJS_FreePrivate(v8::Local<v8::Object> pObj); | 130 void FXJS_FreePrivate(v8::Local<v8::Object> pObj); |
| 133 | 131 |
| 134 void FXJS_Error(v8::Isolate* isolate, const CFX_WideString& message); | 132 void FXJS_Error(v8::Isolate* isolate, const CFX_WideString& message); |
| 135 v8::Local<v8::String> FXJS_WSToJSString(v8::Isolate* pIsolate, | 133 v8::Local<v8::String> FXJS_WSToJSString(v8::Isolate* pIsolate, |
| 136 const wchar_t* PropertyName, | 134 const wchar_t* PropertyName, |
| 137 int Len = -1); | 135 int Len = -1); |
| 138 | 136 |
| 139 v8::Local<v8::Value> FXJS_GetObjectElement(v8::Isolate* pIsolate, | 137 v8::Local<v8::Value> FXJS_GetObjectElement(v8::Isolate* pIsolate, |
| 140 v8::Local<v8::Object> pObj, | 138 v8::Local<v8::Object> pObj, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); | 196 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); |
| 199 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, | 197 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, |
| 200 v8::Local<v8::Value> pValue); | 198 v8::Local<v8::Value> pValue); |
| 201 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, | 199 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, |
| 202 v8::Local<v8::Value> pValue); | 200 v8::Local<v8::Value> pValue); |
| 203 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, | 201 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, |
| 204 v8::Local<v8::Value> pValue); | 202 v8::Local<v8::Value> pValue); |
| 205 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); | 203 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); |
| 206 | 204 |
| 207 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ | 205 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
| OLD | NEW |