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

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

Issue 1435493002: Merge to XFA: Remove FXJS_GetRuntime (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 int FXJS_Execute(v8::Isolate* pIsolate, 134 int FXJS_Execute(v8::Isolate* pIsolate,
135 IJS_Context* pJSContext, 135 IJS_Context* pJSContext,
136 const wchar_t* script, 136 const wchar_t* script,
137 FXJSErr* perror); 137 FXJSErr* perror);
138 138
139 v8::Local<v8::Object> FXJS_NewFxDynamicObj(v8::Isolate* pIsolate, 139 v8::Local<v8::Object> FXJS_NewFxDynamicObj(v8::Isolate* pIsolate,
140 IJS_Runtime* pJSContext, 140 IJS_Runtime* pJSContext,
141 int nObjDefnID); 141 int nObjDefnID);
142 v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate); 142 v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate);
143 int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj); 143 int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj);
144 v8::Isolate* FXJS_GetRuntime(v8::Local<v8::Object> pObj);
145 const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj); 144 const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj);
146 145
147 void FXJS_SetPrivate(v8::Isolate* pIsolate, 146 void FXJS_SetPrivate(v8::Isolate* pIsolate,
148 v8::Local<v8::Object> pObj, 147 v8::Local<v8::Object> pObj,
149 void* p); 148 void* p);
150 void* FXJS_GetPrivate(v8::Isolate* pIsolate, v8::Local<v8::Object> pObj); 149 void* FXJS_GetPrivate(v8::Isolate* pIsolate, v8::Local<v8::Object> pObj);
151 void FXJS_FreePrivate(void* p); 150 void FXJS_FreePrivate(void* p);
152 void FXJS_FreePrivate(v8::Local<v8::Object> pObj); 151 void FXJS_FreePrivate(v8::Local<v8::Object> pObj);
153 152
154 void FXJS_Error(v8::Isolate* isolate, const CFX_WideString& message); 153 void FXJS_Error(v8::Isolate* isolate, const CFX_WideString& message);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 217 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
219 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, 218 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate,
220 v8::Local<v8::Value> pValue); 219 v8::Local<v8::Value> pValue);
221 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, 220 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate,
222 v8::Local<v8::Value> pValue); 221 v8::Local<v8::Value> pValue);
223 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, 222 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate,
224 v8::Local<v8::Value> pValue); 223 v8::Local<v8::Value> pValue);
225 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); 224 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom);
226 225
227 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ 226 #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