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

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

Issue 1861813002: Merge to M50: Re-land "Only place primitive objects on the V8 global template." (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@2661
Patch Set: resolve conflict Created 4 years, 8 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/Consts.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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 v8::NamedPropertyDeleterCallback pPropDel); 182 v8::NamedPropertyDeleterCallback pPropDel);
183 void FXJS_DefineObjConst(v8::Isolate* pIsolate, 183 void FXJS_DefineObjConst(v8::Isolate* pIsolate,
184 int nObjDefnID, 184 int nObjDefnID,
185 const wchar_t* sConstName, 185 const wchar_t* sConstName,
186 v8::Local<v8::Value> pDefault); 186 v8::Local<v8::Value> pDefault);
187 void FXJS_DefineGlobalMethod(v8::Isolate* pIsolate, 187 void FXJS_DefineGlobalMethod(v8::Isolate* pIsolate,
188 const wchar_t* sMethodName, 188 const wchar_t* sMethodName,
189 v8::FunctionCallback pMethodCall); 189 v8::FunctionCallback pMethodCall);
190 void FXJS_DefineGlobalConst(v8::Isolate* pIsolate, 190 void FXJS_DefineGlobalConst(v8::Isolate* pIsolate,
191 const wchar_t* sConstName, 191 const wchar_t* sConstName,
192 v8::Local<v8::Value> pDefault); 192 v8::FunctionCallback pConstGetter);
193 193
194 // Called after FXJS_Define* calls made. 194 // Called after FXJS_Define* calls made.
195 void FXJS_InitializeRuntime( 195 void FXJS_InitializeRuntime(
196 v8::Isolate* pIsolate, 196 v8::Isolate* pIsolate,
197 IJS_Runtime* pIRuntime, 197 IJS_Runtime* pIRuntime,
198 v8::Global<v8::Context>* pV8PersistentContext, 198 v8::Global<v8::Context>* pV8PersistentContext,
199 std::vector<v8::Global<v8::Object>*>* pStaticObjects); 199 std::vector<v8::Global<v8::Object>*>* pStaticObjects);
200 void FXJS_ReleaseRuntime(v8::Isolate* pIsolate, 200 void FXJS_ReleaseRuntime(v8::Isolate* pIsolate,
201 v8::Global<v8::Context>* pV8PersistentContext, 201 v8::Global<v8::Context>* pV8PersistentContext,
202 std::vector<v8::Global<v8::Object>*>* pStaticObjects); 202 std::vector<v8::Global<v8::Object>*>* pStaticObjects);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 297 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
298 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, 298 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate,
299 v8::Local<v8::Value> pValue); 299 v8::Local<v8::Value> pValue);
300 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, 300 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate,
301 v8::Local<v8::Value> pValue); 301 v8::Local<v8::Value> pValue);
302 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, 302 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate,
303 v8::Local<v8::Value> pValue); 303 v8::Local<v8::Value> pValue);
304 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); 304 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom);
305 305
306 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ 306 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/Consts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698