summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/JS_Runtime_Stub.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-11 10:54:49 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 10:54:49 -0700
commit4526faf9d62b64729a232c20ada67690f590abd2 (patch)
tree76dfeaac09b49fcff44a57da0aa51ead16c515c2 /fpdfsdk/javascript/JS_Runtime_Stub.cpp
parent3a7741a2d9391fdbc54900695a980344dddf1692 (diff)
downloadpdfium-4526faf9d62b64729a232c20ada67690f590abd2.tar.xz
Remove CPDFSDK_Document from IJS_Context
This CL converts the IJS_Context and implementations over to use CPDFSDK_FormFillEnvironment instead of CPDFSDK_Document. Review-Url: https://codereview.chromium.org/2399943002
Diffstat (limited to 'fpdfsdk/javascript/JS_Runtime_Stub.cpp')
-rw-r--r--fpdfsdk/javascript/JS_Runtime_Stub.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/fpdfsdk/javascript/JS_Runtime_Stub.cpp b/fpdfsdk/javascript/JS_Runtime_Stub.cpp
index ec52a8b6a0..904ee12cca 100644
--- a/fpdfsdk/javascript/JS_Runtime_Stub.cpp
+++ b/fpdfsdk/javascript/JS_Runtime_Stub.cpp
@@ -22,17 +22,17 @@ class CJS_ContextStub final : public IJS_Context {
}
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 {}
@@ -111,9 +111,10 @@ class CJS_ContextStub final : 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, const CFX_WideString&) override {}
- void OnBatchExec(CPDFSDK_Document* pTarget) override {}
+ void OnLink_MouseUp(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
+ void OnMenu_Exec(CPDFSDK_FormFillEnvironment* pFormFillEnv,
+ const CFX_WideString&) override {}
+ void OnBatchExec(CPDFSDK_FormFillEnvironment* pFormFillEnv) override {}
void OnConsole_Exec() override {}
void OnExternal_Exec() override {}
};