diff options
author | Lei Zhang <thestig@chromium.org> | 2017-05-19 19:25:16 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-22 18:28:21 +0000 |
commit | 671630e52cda1abb5b1da71f366211cc3c95482f (patch) | |
tree | 701f3f8af350b0065415876ecfc86c4a300d0078 /fpdfsdk/cpdfsdk_formfillenvironment.h | |
parent | 6c8ed646d1fcb8cce5a01c843c5149d989e6d5f0 (diff) | |
download | pdfium-671630e52cda1abb5b1da71f366211cc3c95482f.tar.xz |
Use less opaque types in CPDFSDK_FormFillEnvironment.
Fix type mismatches.
Change-Id: Id475f927d0919f60a84f17bd9545ec67d569ff64
Reviewed-on: https://pdfium-review.googlesource.com/5740
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_formfillenvironment.h')
-rw-r--r-- | fpdfsdk/cpdfsdk_formfillenvironment.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.h b/fpdfsdk/cpdfsdk_formfillenvironment.h index 0462426e0f..91141e57c6 100644 --- a/fpdfsdk/cpdfsdk_formfillenvironment.h +++ b/fpdfsdk/cpdfsdk_formfillenvironment.h @@ -79,8 +79,8 @@ class CPDFSDK_FormFillEnvironment void ProcJavascriptFun(); bool ProcOpenAction(); - void Invalidate(FPDF_PAGE page, const FX_RECT& rect); - void OutputSelectedRect(FPDF_PAGE page, const CFX_FloatRect& rect); + void Invalidate(UnderlyingPageType* page, const FX_RECT& rect); + void OutputSelectedRect(UnderlyingPageType* page, const CFX_FloatRect& rect); void SetCursor(int nCursorType); int SetTimer(int uElapse, TimerCallback lpTimerFunc); @@ -92,8 +92,8 @@ class CPDFSDK_FormFillEnvironment bool IsCTRLKeyDown(uint32_t nFlag) const; bool IsALTKeyDown(uint32_t nFlag) const; - FPDF_PAGE GetPage(FPDF_DOCUMENT document, int nPageIndex); - FPDF_PAGE GetCurrentPage(FPDF_DOCUMENT document); + FPDF_PAGE GetPage(UnderlyingDocumentType* document, int nPageIndex); + FPDF_PAGE GetCurrentPage(UnderlyingDocumentType* document); void ExecuteNamedAction(const char* namedAction); void OnSetFieldInputFocus(FPDF_WIDESTRING focusText, @@ -119,22 +119,22 @@ class CPDFSDK_FormFillEnvironment int GetPageViewCount() const { return m_PageMap.size(); } - void DisplayCaret(FPDF_PAGE page, + void DisplayCaret(CPDFXFA_Page* page, FPDF_BOOL bVisible, double left, double top, double right, double bottom); - int GetCurrentPageIndex(FPDF_DOCUMENT document); - void SetCurrentPage(FPDF_DOCUMENT document, int iCurPage); + int GetCurrentPageIndex(CPDFXFA_Context* document); + void SetCurrentPage(CPDFXFA_Context* document, int iCurPage); // TODO(dsinclair): This should probably change to PDFium? CFX_WideString FFI_GetAppName() const { return CFX_WideString(L"Acrobat"); } CFX_WideString GetPlatform(); - void GotoURL(FPDF_DOCUMENT document, const CFX_WideStringC& wsURL); - void GetPageViewRect(FPDF_PAGE page, FS_RECTF& dstRect); - bool PopupMenu(FPDF_PAGE page, + void GotoURL(CPDFXFA_Context* document, const CFX_WideStringC& wsURL); + void GetPageViewRect(CPDFXFA_Page* page, FS_RECTF& dstRect); + bool PopupMenu(CPDFXFA_Page* page, FPDF_WIDGET hWidget, int menuFlag, CFX_PointF pt); |