Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: fpdfsdk/include/jsapi/fxjs_v8.h

Issue 1342403005: Merge to XFA: Don't pass null isolates to FXJS_ when we have a real isolate. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698