diff options
author | dsinclair <dsinclair@chromium.org> | 2016-10-11 10:54:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-11 10:54:49 -0700 |
commit | 4526faf9d62b64729a232c20ada67690f590abd2 (patch) | |
tree | 76dfeaac09b49fcff44a57da0aa51ead16c515c2 /fpdfsdk/javascript/JS_EventHandler.h | |
parent | 3a7741a2d9391fdbc54900695a980344dddf1692 (diff) | |
download | pdfium-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_EventHandler.h')
-rw-r--r-- | fpdfsdk/javascript/JS_EventHandler.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/fpdfsdk/javascript/JS_EventHandler.h b/fpdfsdk/javascript/JS_EventHandler.h index 02d5e82595..666ef8410d 100644 --- a/fpdfsdk/javascript/JS_EventHandler.h +++ b/fpdfsdk/javascript/JS_EventHandler.h @@ -12,7 +12,7 @@ class CJS_Context; class CPDFSDK_Annot; -class CPDFSDK_Document; +class CPDFSDK_FormFillEnvironment; class CPDF_Bookmark; class CPDF_FormField; class Field; @@ -65,17 +65,18 @@ class CJS_EventHandler { void OnApp_Init(); - void OnDoc_Open(CPDFSDK_Document* pDoc, const CFX_WideString& strTargetName); - void OnDoc_WillPrint(CPDFSDK_Document* pDoc); - void OnDoc_DidPrint(CPDFSDK_Document* pDoc); - void OnDoc_WillSave(CPDFSDK_Document* pDoc); - void OnDoc_DidSave(CPDFSDK_Document* pDoc); - void OnDoc_WillClose(CPDFSDK_Document* pDoc); + void OnDoc_Open(CPDFSDK_FormFillEnvironment* pFormFillEnv, + const CFX_WideString& strTargetName); + void OnDoc_WillPrint(CPDFSDK_FormFillEnvironment* pFormFillEnv); + void OnDoc_DidPrint(CPDFSDK_FormFillEnvironment* pFormFillEnv); + void OnDoc_WillSave(CPDFSDK_FormFillEnvironment* pFormFillEnv); + void OnDoc_DidSave(CPDFSDK_FormFillEnvironment* pFormFillEnv); + void OnDoc_WillClose(CPDFSDK_FormFillEnvironment* pFormFillEnv); - void OnPage_Open(CPDFSDK_Document* pDoc); - void OnPage_Close(CPDFSDK_Document* pDoc); - void OnPage_InView(CPDFSDK_Document* pTarget); - void OnPage_OutView(CPDFSDK_Document* pTarget); + void OnPage_Open(CPDFSDK_FormFillEnvironment* pFormFillEnv); + void OnPage_Close(CPDFSDK_FormFillEnvironment* pFormFillEnv); + void OnPage_InView(CPDFSDK_FormFillEnvironment* pFormFillEnv); + void OnPage_OutView(CPDFSDK_FormFillEnvironment* pFormFillEnv); void OnField_Calculate(CPDF_FormField* pSource, CPDF_FormField* pTarget, @@ -154,11 +155,11 @@ class CJS_EventHandler { CPDFSDK_Annot* pScreen); void OnBookmark_MouseUp(CPDF_Bookmark* pBookMark); - void OnLink_MouseUp(CPDFSDK_Document* pTarget); + void OnLink_MouseUp(CPDFSDK_FormFillEnvironment* pFormFillEnv); - void OnMenu_Exec(CPDFSDK_Document* pTarget, + void OnMenu_Exec(CPDFSDK_FormFillEnvironment* pFormFillEnv, const CFX_WideString& strTargetName); - void OnBatchExec(CPDFSDK_Document* pTarget); + void OnBatchExec(CPDFSDK_FormFillEnvironment* pFormFillEnv); void OnConsole_Exec(); void OnExternal_Exec(); @@ -211,9 +212,8 @@ class CJS_EventHandler { FX_BOOL* m_pbRc; FX_BOOL m_bRcDu; - CPDFSDK_Document* m_pSourceDoc; CPDF_Bookmark* m_pTargetBookMark; - CPDFSDK_Document* m_pTargetDoc; + CPDFSDK_FormFillEnvironment* m_pTargetFormFillEnv; CPDFSDK_Annot* m_pTargetAnnot; }; |