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

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

Issue 1413733004: Remove FXJS_GetRuntime (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Also remove CreationContext Created 5 years, 1 month 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/JS_Object.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 // 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 int FXJS_Execute(v8::Isolate* pIsolate, 129 int FXJS_Execute(v8::Isolate* pIsolate,
130 IJS_Context* pJSContext, 130 IJS_Context* pJSContext,
131 const wchar_t* script, 131 const wchar_t* script,
132 FXJSErr* perror); 132 FXJSErr* perror);
133 133
134 v8::Local<v8::Object> FXJS_NewFxDynamicObj(v8::Isolate* pIsolate, 134 v8::Local<v8::Object> FXJS_NewFxDynamicObj(v8::Isolate* pIsolate,
135 IJS_Runtime* pJSContext, 135 IJS_Runtime* pJSContext,
136 int nObjDefnID); 136 int nObjDefnID);
137 v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate); 137 v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate);
138 int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj); 138 int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj);
139 v8::Isolate* FXJS_GetRuntime(v8::Local<v8::Object> pObj);
140 const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj); 139 const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj);
141 140
142 void FXJS_SetPrivate(v8::Isolate* pIsolate, 141 void FXJS_SetPrivate(v8::Isolate* pIsolate,
143 v8::Local<v8::Object> pObj, 142 v8::Local<v8::Object> pObj,
144 void* p); 143 void* p);
145 void* FXJS_GetPrivate(v8::Isolate* pIsolate, v8::Local<v8::Object> pObj); 144 void* FXJS_GetPrivate(v8::Isolate* pIsolate, v8::Local<v8::Object> pObj);
146 void FXJS_FreePrivate(void* p); 145 void FXJS_FreePrivate(void* p);
147 void FXJS_FreePrivate(v8::Local<v8::Object> pObj); 146 void FXJS_FreePrivate(v8::Local<v8::Object> pObj);
148 147
149 void FXJS_Error(v8::Isolate* isolate, const CFX_WideString& message); 148 void FXJS_Error(v8::Isolate* isolate, const CFX_WideString& message);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 212 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
214 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, 213 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate,
215 v8::Local<v8::Value> pValue); 214 v8::Local<v8::Value> pValue);
216 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, 215 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate,
217 v8::Local<v8::Value> pValue); 216 v8::Local<v8::Value> pValue);
218 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, 217 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate,
219 v8::Local<v8::Value> pValue); 218 v8::Local<v8::Value> pValue);
220 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); 219 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom);
221 220
222 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ 221 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/JS_Object.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698