summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/ijs_runtime.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-02-16 11:49:55 -0800
committerChromium commit bot <commit-bot@chromium.org>2017-02-16 20:23:48 +0000
commitd6ae2afa821c87e84790d5c04bbc172a7b12f08f (patch)
tree10beb72deaffca61ccc54a3fb49ea0d9636579bb /fpdfsdk/javascript/ijs_runtime.h
parent49f7deb494064351c72ef4d31577e04f634e63f3 (diff)
downloadpdfium-d6ae2afa821c87e84790d5c04bbc172a7b12f08f.tar.xz
Rename IJS_Context to IJS_EventContext.
Prevents confusion with v8::Context, which is wrapped by a different IJS_ class. Change-Id: Iff75809e65015c0f810294de1f0d8ecf963150a3 Reviewed-on: https://pdfium-review.googlesource.com/2751 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/ijs_runtime.h')
-rw-r--r--fpdfsdk/javascript/ijs_runtime.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/fpdfsdk/javascript/ijs_runtime.h b/fpdfsdk/javascript/ijs_runtime.h
index 027c500ece..a0e69d863e 100644
--- a/fpdfsdk/javascript/ijs_runtime.h
+++ b/fpdfsdk/javascript/ijs_runtime.h
@@ -15,7 +15,7 @@
#endif // PDF_ENABLE_XFA
class CPDFSDK_FormFillEnvironment;
-class IJS_Context;
+class IJS_EventContext;
// Owns the FJXS objects needed to actually execute JS.
class IJS_Runtime {
@@ -25,12 +25,10 @@ class IJS_Runtime {
static IJS_Runtime* Create(CPDFSDK_FormFillEnvironment* pFormFillEnv);
virtual ~IJS_Runtime() {}
- virtual IJS_Context* NewContext() = 0;
- virtual void ReleaseContext(IJS_Context* pContext) = 0;
- virtual IJS_Context* GetCurrentContext() = 0;
-
+ virtual IJS_EventContext* NewEventContext() = 0;
+ virtual void ReleaseEventContext(IJS_EventContext* pContext) = 0;
+ virtual IJS_EventContext* GetCurrentEventContext() = 0;
virtual CPDFSDK_FormFillEnvironment* GetFormFillEnv() const = 0;
-
virtual int ExecuteScript(const CFX_WideString& script,
CFX_WideString* info) = 0;