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/cjs_runtimestub.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/cjs_runtimestub.h')
-rw-r--r-- | fxjs/cjs_runtimestub.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fxjs/cjs_runtimestub.h b/fxjs/cjs_runtimestub.h index 779a67579e..b4bb2dd8f0 100644 --- a/fxjs/cjs_runtimestub.h +++ b/fxjs/cjs_runtimestub.h @@ -21,12 +21,13 @@ class CJS_RuntimeStub final : public IJS_Runtime { explicit CJS_RuntimeStub(CPDFSDK_FormFillEnvironment* pFormFillEnv); ~CJS_RuntimeStub() override; - CJS_Runtime* AsCJSRuntime() override; + // IJS_Runtime: IJS_EventContext* NewEventContext() override; void ReleaseEventContext(IJS_EventContext* pContext) override; CPDFSDK_FormFillEnvironment* GetFormFillEnv() const override; #ifdef PDF_ENABLE_XFA + CJS_Runtime* AsCJSRuntime() override; bool GetValueByNameFromGlobalObject(const ByteStringView&, CFXJSE_Value*) override; bool SetValueByNameInGlobalObject(const ByteStringView&, |