diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-09-28 09:44:56 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-09-28 09:44:56 -0700 |
commit | cfff2f65aaec70247d020188bc68a0dc4fb34c3e (patch) | |
tree | 2f51d26107008e7b604261974242697effcfce0e /fpdfsdk/include/jsapi | |
parent | 6c5afa68ed4e21f9d0bfd1ecc01e824d946c5485 (diff) | |
download | pdfium-cfff2f65aaec70247d020188bc68a0dc4fb34c3e.tar.xz |
Introduce kPerIsolateDataIndex and tidy JS_Define.h
Follow-up from https://codereview.chromium.org/1366053003/
- use kPerIsolateDataIndex rather than magic constant 1.
- make a helper function for common code in JS_Define.h
- remove dead prototypes missed in earlier CL.
- fxjs_v8 can't include generic fpdfsdk includes (layering).
R=jochen@chromium.org
Review URL: https://codereview.chromium.org/1367813003 .
Diffstat (limited to 'fpdfsdk/include/jsapi')
-rw-r--r-- | fpdfsdk/include/jsapi/fxjs_v8.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fpdfsdk/include/jsapi/fxjs_v8.h b/fpdfsdk/include/jsapi/fxjs_v8.h index 15800e24e9..60fcea6341 100644 --- a/fpdfsdk/include/jsapi/fxjs_v8.h +++ b/fpdfsdk/include/jsapi/fxjs_v8.h @@ -69,10 +69,6 @@ void FXJS_Release(); // as part of FXJS_ReleaseRuntime(). void FXJS_PrepareIsolate(v8::Isolate* pIsolate); -// Call before making JS_PrepareIsolate call. -void JS_Initialize(unsigned int embedderDataSlot); -void JS_Release(); - // Call before making JS_Define* calls. Resources allocated here are cleared // as part of JS_ReleaseRuntime(). void JS_PrepareIsolate(v8::Isolate* pIsolate); @@ -117,6 +113,7 @@ void FXJS_InitializeRuntime(v8::Isolate* pIsolate, v8::Global<v8::Context>& v8PersistentContext); void FXJS_ReleaseRuntime(v8::Isolate* pIsolate, v8::Global<v8::Context>& v8PersistentContext); +IFXJS_Runtime* FXJS_GetRuntimeFromIsolate(v8::Isolate* pIsolate); // Called after FXJS_InitializeRuntime call made. int FXJS_Execute(v8::Isolate* pIsolate, |