diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-04-27 20:29:37 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-27 20:29:37 +0000 |
commit | 74136f59eaebb98a4dcc23777203d907d9555c1a (patch) | |
tree | 18d6014174d15139f761a1c18960ee061ae85039 /fpdfsdk/cpdfsdk_formfillenvironment.h | |
parent | e3c44e1403906a88d500089c934bc034b8025ae2 (diff) | |
download | pdfium-74136f59eaebb98a4dcc23777203d907d9555c1a.tar.xz |
Remove arguments from CPDFSDK_FormFillEnvironment methods (part 2)
Follow-on from https://pdfium-review.googlesource.com/c/pdfium/+/31591
Under XFA, the Form Fill Environment already has the XFA context, so
there is no need for callers to obtain it and pass it.
Tidy some duplicate string allocations along the way.
Change-Id: Ia7614b200146e7ca1f68a18f9d2ce118946b53e8
Reviewed-on: https://pdfium-review.googlesource.com/31610
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@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 697f51e79f..aba3f39c69 100644 --- a/fpdfsdk/cpdfsdk_formfillenvironment.h +++ b/fpdfsdk/cpdfsdk_formfillenvironment.h @@ -130,14 +130,14 @@ class CPDFSDK_FormFillEnvironment double top, double right, double bottom); - int GetCurrentPageIndex(CPDFXFA_Context* document); - void SetCurrentPage(CPDFXFA_Context* document, int iCurPage); + int GetCurrentPageIndex() const; + void SetCurrentPage(int iCurPage); // TODO(dsinclair): This should probably change to PDFium? WideString FFI_GetAppName() const { return WideString(L"Acrobat"); } WideString GetPlatform(); - void GotoURL(CPDFXFA_Context* document, const WideStringView& wsURL); + void GotoURL(const WideString& wsURL); void GetPageViewRect(CPDFXFA_Page* page, FS_RECTF& dstRect); bool PopupMenu(CPDFXFA_Page* page, FPDF_WIDGET hWidget, |