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

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

Issue 1263963002: Merge to XFA: Plumb in an externally created v8::Isolate (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 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/JS_Runtime.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 int JS_DefineObj(IJS _Runtime* pJSRuntime, const wchar_t* sObjName, FXJSOBJTYPE eObjType, LP_CONSTRUC TOR pConstructor, LP_DESTRUCTOR pDestructor); 56 int JS_DefineObj(IJS _Runtime* pJSRuntime, const wchar_t* sObjName, FXJSOBJTYPE eObjType, LP_CONSTRUC TOR pConstructor, LP_DESTRUCTOR pDestructor);
57 int JS_DefineObjMeth od(IJS_Runtime* pJSRuntime, int nObjDefnID, const wchar_t* sMethodName, v8::Func tionCallback pMethodCall); 57 int JS_DefineObjMeth od(IJS_Runtime* pJSRuntime, int nObjDefnID, const wchar_t* sMethodName, v8::Func tionCallback pMethodCall);
58 int JS_DefineObjProp erty(IJS_Runtime* pJSRuntime, int nObjDefnID, const wchar_t* sPropName, v8::Acce ssorGetterCallback pPropGet, v8::AccessorSetterCallback pPropPut); 58 int JS_DefineObjProp erty(IJS_Runtime* pJSRuntime, int nObjDefnID, const wchar_t* sPropName, v8::Acce ssorGetterCallback pPropGet, v8::AccessorSetterCallback pPropPut);
59 int JS_DefineObjAllP roperties(IJS_Runtime* pJSRuntime, int nObjDefnID, v8::NamedPropertyQueryCallbac k pPropQurey, v8::NamedPropertyGetterCallback pPropGet, v8::NamedPropertySetterC allback pPropPut, v8::NamedPropertyDeleterCallback pPropDel); 59 int JS_DefineObjAllP roperties(IJS_Runtime* pJSRuntime, int nObjDefnID, v8::NamedPropertyQueryCallbac k pPropQurey, v8::NamedPropertyGetterCallback pPropGet, v8::NamedPropertySetterC allback pPropPut, v8::NamedPropertyDeleterCallback pPropDel);
60 int JS_DefineObjCons t(IJS_Runtime* pJSRuntime, int nObjDefnID, const wchar_t* sConstName, v8::Local< v8::Value> pDefault); 60 int JS_DefineObjCons t(IJS_Runtime* pJSRuntime, int nObjDefnID, const wchar_t* sConstName, v8::Local< v8::Value> pDefault);
61 int JS_DefineGlobalM ethod(IJS_Runtime* pJSRuntime, const wchar_t* sMethodName, v8::FunctionCallback pMethodCall); 61 int JS_DefineGlobalM ethod(IJS_Runtime* pJSRuntime, const wchar_t* sMethodName, v8::FunctionCallback pMethodCall);
62 int JS_DefineGlobalC onst(IJS_Runtime* pJSRuntime, const wchar_t* sConstName, v8::Local<v8::Value> pD efault); 62 int JS_DefineGlobalC onst(IJS_Runtime* pJSRuntime, const wchar_t* sConstName, v8::Local<v8::Value> pD efault);
63 63
64 void JS_InitialRuntime(IJS_Ru ntime* pJSRuntime,IFXJS_Runtime* pFXRuntime, IFXJS_Context* context, v8::Global< v8::Context>& v8PersistentContext); 64 void JS_InitialRuntime(IJS_Ru ntime* pJSRuntime,IFXJS_Runtime* pFXRuntime, IFXJS_Context* context, v8::Global< v8::Context>& v8PersistentContext);
65 void JS_ReleaseRuntime(IJS_Ru ntime* pJSRuntime, v8::Global<v8::Context>& v8PersistentContext); 65 void JS_ReleaseRuntime(IJS_Ru ntime* pJSRuntime, v8::Global<v8::Context>& v8PersistentContext);
66 void» » » » » » » JS_Initial(); 66 void» » » » » » » JS_Initial(unsigned int embedderDataSlot);
67 void JS_Release(); 67 void JS_Release();
68 int JS_Parse(IJS_Run time* pJSRuntime, IFXJS_Context* pJSContext, const wchar_t* script, long length, FXJSErr* perror); 68 int JS_Parse(IJS_Run time* pJSRuntime, IFXJS_Context* pJSContext, const wchar_t* script, long length, FXJSErr* perror);
69 int JS_Execute(IJS_R untime* pJSRuntime, IFXJS_Context* pJSContext, const wchar_t* script, long lengt h, FXJSErr* perror); 69 int JS_Execute(IJS_R untime* pJSRuntime, IFXJS_Context* pJSContext, const wchar_t* script, long lengt h, FXJSErr* perror);
70 v8::Local<v8::Object> JS_NewFxDynamicObj(IJS_Runtime* pJSRunti me, IFXJS_Context* pJSContext, int nObjDefnID); 70 v8::Local<v8::Object> JS_NewFxDynamicObj(IJS_Runtime* pJSRunti me, IFXJS_Context* pJSContext, int nObjDefnID);
71 v8::Local<v8::Object> JS_GetStaticObj(IJS_Runtime* pJSRuntime, int nObjDefnID); 71 v8::Local<v8::Object> JS_GetStaticObj(IJS_Runtime* pJSRuntime, int nObjDefnID);
72 void JS_SetThisObj(IJS_Runtim e* pJSRuntime, int nThisObjID); 72 void JS_SetThisObj(IJS_Runtim e* pJSRuntime, int nThisObjID);
73 v8::Local<v8::Object> JS_GetThisObj(IJS_Runtime * pJSRuntime); 73 v8::Local<v8::Object> JS_GetThisObj(IJS_Runtime * pJSRuntime);
74 int JS_GetObjDefnID( v8::Local<v8::Object> pObj); 74 int JS_GetObjDefnID( v8::Local<v8::Object> pObj);
75 IJS_Runtime* JS_GetRuntime(v8::Local<v8::Obje ct> pObj); 75 IJS_Runtime* JS_GetRuntime(v8::Local<v8::Obje ct> pObj);
76 int JS_GetObjDefnID( IJS_Runtime * pJSRuntime, const wchar_t* pObjName); 76 int JS_GetObjDefnID( IJS_Runtime * pJSRuntime, const wchar_t* pObjName);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 int JS_GetMinFromTim e(double dt); 130 int JS_GetMinFromTim e(double dt);
131 int JS_GetSecFromTim e(double dt); 131 int JS_GetSecFromTim e(double dt);
132 double JS_DateParse(const wchar _t* string); 132 double JS_DateParse(const wchar _t* string);
133 double JS_MakeDay(int nYear, in t nMonth, int nDay); 133 double JS_MakeDay(int nYear, in t nMonth, int nDay);
134 double JS_MakeTime(int nHour, i nt nMin, int nSec, int nMs); 134 double JS_MakeTime(int nHour, i nt nMin, int nSec, int nMs);
135 double JS_MakeDate(double day, double time); 135 double JS_MakeDate(double day, double time);
136 bool JS_PortIsNan(double d); 136 bool JS_PortIsNan(double d);
137 double JS_LocalTime(double d); 137 double JS_LocalTime(double d);
138 138
139 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ 139 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/src/javascript/JS_Runtime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698