From 74136f59eaebb98a4dcc23777203d907d9555c1a Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 27 Apr 2018 20:29:37 +0000 Subject: 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 Commit-Queue: Tom Sepez --- fpdfsdk/cpdfsdk_formfillenvironment.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fpdfsdk/cpdfsdk_formfillenvironment.h') 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, -- cgit v1.2.3