diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-02-01 02:15:44 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-01 02:15:44 +0000 |
commit | f5ca90c00198c72488fd337ec8029a7f74b335b8 (patch) | |
tree | 8bd701cb4e662069470fc0ece5889823242f252e /fpdfsdk/cpdfsdk_formfillenvironment.h | |
parent | 33c7ade187724c767fff74913cda63de182b0ce2 (diff) | |
download | pdfium-f5ca90c00198c72488fd337ec8029a7f74b335b8.tar.xz |
Rename some CJS / IJS names for clarity.
Prior cleanup before making FXJS/FXJSE share one v8 context.
Return CJS object rather than isolate in one place.
Use unique_ptr in one place.
Change-Id: I837ae4880368a6d72e59b38f37e06908e05c34bd
Reviewed-on: https://pdfium-review.googlesource.com/24950
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_formfillenvironment.h')
-rw-r--r-- | fpdfsdk/cpdfsdk_formfillenvironment.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.h b/fpdfsdk/cpdfsdk_formfillenvironment.h index 31a1c5156c..f00630c18b 100644 --- a/fpdfsdk/cpdfsdk_formfillenvironment.h +++ b/fpdfsdk/cpdfsdk_formfillenvironment.h @@ -205,7 +205,7 @@ class CPDFSDK_FormFillEnvironment FPDF_BOOL bAnnotations); void JS_docgotoPage(int nPageNum); - bool IsJSInitiated() const { return m_pInfo && m_pInfo->m_pJsPlatform; } + bool IsJSPlatformPresent() const { return m_pInfo && m_pInfo->m_pJsPlatform; } ByteString GetAppName() const { return ""; } CFX_SystemHandler* GetSysHandler() const { return m_pSysHandler.get(); } FPDF_FORMFILLINFO* GetFormFillInfo() const { return m_pInfo; } @@ -213,7 +213,7 @@ class CPDFSDK_FormFillEnvironment // Creates if not present. CFFL_InteractiveFormFiller* GetInteractiveFormFiller(); CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. - IJS_Runtime* GetJSRuntime(); // Creates if not present. + IJS_Runtime* GetIJSRuntime(); // Creates if not present. CPDFSDK_ActionHandler* GetActionHandler(); // Creates if not present. CPDFSDK_InterForm* GetInterForm(); // Creates if not present. @@ -223,7 +223,7 @@ class CPDFSDK_FormFillEnvironment FPDF_FORMFILLINFO* const m_pInfo; std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr; std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; - std::unique_ptr<IJS_Runtime> m_pJSRuntime; + std::unique_ptr<IJS_Runtime> m_pIJSRuntime; std::map<UnderlyingPageType*, std::unique_ptr<CPDFSDK_PageView>> m_PageMap; std::unique_ptr<CPDFSDK_InterForm> m_pInterForm; CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; |