diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-02-01 20:24:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-01 20:24:43 +0000 |
commit | e99ee7f3e550f7706a3e2d8105ccc55553a9badb (patch) | |
tree | 253acd8343f135a7bbeef9d80c71564fca6f1a69 /fxjs/fxjs_v8.h | |
parent | fb25606e584e14d60fc243e8b56eef399a4a54bd (diff) | |
download | pdfium-e99ee7f3e550f7706a3e2d8105ccc55553a9badb.tar.xz |
Introduce CXFJS_Engine::EngineFromContext/SetEngineInContext helpers
No functional change, but expose helpers likely to be needed by
next steps. Rename CXFJS_Engine::CurrentEngineFromIsolate to be more
accurately named along the way.
Change-Id: Iaf2d15a09cfed85705d24ee056e78edf0660ce59
Reviewed-on: https://pdfium-review.googlesource.com/25090
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/fxjs_v8.h')
-rw-r--r-- | fxjs/fxjs_v8.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fxjs/fxjs_v8.h b/fxjs/fxjs_v8.h index 4575235755..0372ade9ce 100644 --- a/fxjs/fxjs_v8.h +++ b/fxjs/fxjs_v8.h @@ -137,7 +137,11 @@ class CFXJS_Engine : public CJS_V8 { v8::Local<v8::Object> obj); using Destructor = void (*)(CFXJS_Engine* pEngine, v8::Local<v8::Object> obj); - static CFXJS_Engine* CurrentEngineFromIsolate(v8::Isolate* pIsolate); + static CFXJS_Engine* EngineFromIsolateCurrentContext(v8::Isolate* pIsolate); + static CFXJS_Engine* EngineFromContext(v8::Local<v8::Context> pContext); + static void SetEngineInContext(CFXJS_Engine* pEngine, + v8::Local<v8::Context> pContext); + static int GetObjDefnID(v8::Local<v8::Object> pObj); // Always returns a valid, newly-created objDefnID. |