Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: fpdfsdk/javascript/cjs_context.h

Issue 2399943002: Remove CPDFSDK_Document from IJS_Context (Closed)
Patch Set: Rebase to master Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/javascript/app.cpp ('k') | fpdfsdk/javascript/cjs_context.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/javascript/cjs_context.h
diff --git a/fpdfsdk/javascript/cjs_context.h b/fpdfsdk/javascript/cjs_context.h
index 74d4e661c333cd64137486c9b15939a663668b8e..b845f8b3d3ad48f2d52a2d6a8e80b70249a331b3 100644
--- a/fpdfsdk/javascript/cjs_context.h
+++ b/fpdfsdk/javascript/cjs_context.h
@@ -26,17 +26,17 @@ class CJS_Context : public IJS_Context {
FX_BOOL RunScript(const CFX_WideString& script,
CFX_WideString* info) override;
void OnApp_Init() override;
- void OnDoc_Open(CPDFSDK_Document* pDoc,
+ void OnDoc_Open(CPDFSDK_FormFillEnvironment* pFormFillEnv,
const CFX_WideString& strTargetName) override;
- void OnDoc_WillPrint(CPDFSDK_Document* pDoc) override;
- void OnDoc_DidPrint(CPDFSDK_Document* pDoc) override;
- void OnDoc_WillSave(CPDFSDK_Document* pDoc) override;
- void OnDoc_DidSave(CPDFSDK_Document* pDoc) override;
- void OnDoc_WillClose(CPDFSDK_Document* pDoc) override;
- void OnPage_Open(CPDFSDK_Document* pTarget) override;
- void OnPage_Close(CPDFSDK_Document* pTarget) override;
- void OnPage_InView(CPDFSDK_Document* pTarget) override;
- void OnPage_OutView(CPDFSDK_Document* pTarget) override;
+ void OnDoc_WillPrint(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
+ void OnDoc_DidPrint(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
+ void OnDoc_WillSave(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
+ void OnDoc_DidSave(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
+ void OnDoc_WillClose(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
+ void OnPage_Open(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
+ void OnPage_Close(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
+ void OnPage_InView(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
+ void OnPage_OutView(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
void OnField_MouseDown(FX_BOOL bModifier,
FX_BOOL bShift,
CPDF_FormField* pTarget) override;
@@ -115,18 +115,17 @@ class CJS_Context : public IJS_Context {
FX_BOOL bShift,
CPDFSDK_Annot* pScreen) override;
void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark) override;
- void OnLink_MouseUp(CPDFSDK_Document* pTarget) override;
- void OnMenu_Exec(CPDFSDK_Document* pTarget,
+ void OnLink_MouseUp(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
+ void OnMenu_Exec(CPDFSDK_FormFillEnvironment* pFormFillEnv,
const CFX_WideString& strTargetName) override;
- void OnBatchExec(CPDFSDK_Document* pTarget) override;
+ void OnBatchExec(CPDFSDK_FormFillEnvironment* pFormFillEnv) override;
void OnConsole_Exec() override;
void OnExternal_Exec() override;
CJS_Runtime* GetJSRuntime() const { return m_pRuntime; }
CJS_EventHandler* GetEventHandler() const { return m_pEventHandler.get(); }
- CPDFSDK_FormFillEnvironment* GetReaderEnv();
- CPDFSDK_Document* GetReaderDocument();
+ CPDFSDK_FormFillEnvironment* GetFormFillEnv();
private:
CJS_Runtime* const m_pRuntime;
« no previous file with comments | « fpdfsdk/javascript/app.cpp ('k') | fpdfsdk/javascript/cjs_context.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698