diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-25 16:42:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-25 16:42:05 -0700 |
commit | ec3da5b821ed65c53eff1c78c2493afd7d933371 (patch) | |
tree | cc4b5f00aaf2f79344a115d57fdda99621d4e817 /xfa/fxfa/fm2js/xfa_fm2jsapi.cpp | |
parent | cece6534e4e4ac10fdcfb47ac1d690e91bf63c19 (diff) | |
download | pdfium-ec3da5b821ed65c53eff1c78c2493afd7d933371.tar.xz |
Rename FXJSE_HRUNTIME to v8::Isolate
This CL renames all of the instances of FXJSE_HRUNTIME to be v8::Isolate* and
updates the various varible names to match the new type.
Review-Url: https://codereview.chromium.org/2010833002
Diffstat (limited to 'xfa/fxfa/fm2js/xfa_fm2jsapi.cpp')
-rw-r--r-- | xfa/fxfa/fm2js/xfa_fm2jsapi.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xfa/fxfa/fm2js/xfa_fm2jsapi.cpp b/xfa/fxfa/fm2js/xfa_fm2jsapi.cpp index 2c02c347f3..a5992a9709 100644 --- a/xfa/fxfa/fm2js/xfa_fm2jsapi.cpp +++ b/xfa/fxfa/fm2js/xfa_fm2jsapi.cpp @@ -38,23 +38,27 @@ int32_t XFA_FM2JS_Translate(const CFX_WideStringC& wsFormcalc, program.TranslateProgram(wsJavascript); return 0; } + XFA_HFM2JSCONTEXT XFA_FM2JS_ContextCreate() { return reinterpret_cast<XFA_HFM2JSCONTEXT>(new CXFA_FM2JSContext); } + void XFA_FM2JS_ContextInitialize(XFA_HFM2JSCONTEXT hFM2JSContext, - FXJSE_HRUNTIME hScriptRuntime, + v8::Isolate* pScriptRuntime, FXJSE_HCONTEXT hScriptContext, CXFA_Document* pDocument) { CXFA_FM2JSContext* pContext = reinterpret_cast<CXFA_FM2JSContext*>(hFM2JSContext); - pContext->Initialize(hScriptRuntime, hScriptContext, pDocument); + pContext->Initialize(pScriptRuntime, hScriptContext, pDocument); } + void XFA_FM2JS_GlobalPropertyGetter(XFA_HFM2JSCONTEXT hFM2JSContext, FXJSE_HVALUE hValue) { CXFA_FM2JSContext* pContext = reinterpret_cast<CXFA_FM2JSContext*>(hFM2JSContext); pContext->GlobalPropertyGetter(hValue); } + void XFA_FM2JS_ContextRelease(XFA_HFM2JSCONTEXT hFM2JSContext) { delete reinterpret_cast<CXFA_FM2JSContext*>(hFM2JSContext); } |