diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-29 21:16:42 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-29 21:16:42 +0000 |
commit | 2dd06eb37dd9cb31746b1ab7e9ed306b2a12a3b7 (patch) | |
tree | e1b482089168e98337a267294391f3b8011ee9d7 /fxjs/ijs_runtime.h | |
parent | 007daeb3fbd9ace2c1cbdf85d0fa98ebfa00163c (diff) | |
download | pdfium-2dd06eb37dd9cb31746b1ab7e9ed306b2a12a3b7.tar.xz |
Make IJS_Runtime::AsCJSRuntime be XFA-only
Since it is only called from the XFA side.
Change-Id: I6e34b39bb0c28db9b367215fae0285acafa22c14
Reviewed-on: https://pdfium-review.googlesource.com/c/44810
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/ijs_runtime.h')
-rw-r--r-- | fxjs/ijs_runtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/ijs_runtime.h b/fxjs/ijs_runtime.h index 781e86c576..19f3c63e44 100644 --- a/fxjs/ijs_runtime.h +++ b/fxjs/ijs_runtime.h @@ -52,13 +52,13 @@ class IJS_Runtime { virtual ~IJS_Runtime(); - virtual CJS_Runtime* AsCJSRuntime() = 0; virtual IJS_EventContext* NewEventContext() = 0; virtual void ReleaseEventContext(IJS_EventContext* pContext) = 0; virtual CPDFSDK_FormFillEnvironment* GetFormFillEnv() const = 0; virtual Optional<JS_Error> ExecuteScript(const WideString& script) = 0; #ifdef PDF_ENABLE_XFA + virtual CJS_Runtime* AsCJSRuntime() = 0; virtual bool GetValueByNameFromGlobalObject(const ByteStringView& utf8Name, CFXJSE_Value* pValue) = 0; virtual bool SetValueByNameInGlobalObject(const ByteStringView& utf8Name, |