Update comment for FFI_GetCurrentPage()
Fix some indentation while we're at it.
Change-Id: I2be95bd45db5d717c74b05db7b46fb4dcdb82896
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/69830
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h
index 4ec345f..c73cbf7 100644
--- a/public/fpdf_formfill.h
+++ b/public/fpdf_formfill.h
@@ -579,8 +579,8 @@
* action, the implementation needs to load the page.
*/
FPDF_PAGE (*FFI_GetPage)(struct _FPDF_FORMFILLINFO* pThis,
- FPDF_DOCUMENT document,
- int nPageIndex);
+ FPDF_DOCUMENT document,
+ int nPageIndex);
/*
* Method: FFI_GetCurrentPage
@@ -588,18 +588,19 @@
* Interface Version:
* 1
* Implementation Required:
- * yes
+ * Yes when V8 support is present, otherwise unused.
* Parameters:
* pThis - Pointer to the interface structure itself.
* document - Handle to document. Returned by FPDF_LoadDocument().
* Return value:
* Handle to the page. Returned by FPDF_LoadPage().
* Comments:
- * The implementation is expected to keep track of the current page,
- * e.g. the current page can be the one that is most visible on screen.
+ * PDFium doesn't keep keep track of the "current page" (e.g. the one
+ * that is most visible on screen), so it must ask the embedder for
+ * this information.
*/
FPDF_PAGE (*FFI_GetCurrentPage)(struct _FPDF_FORMFILLINFO* pThis,
- FPDF_DOCUMENT document);
+ FPDF_DOCUMENT document);
/*
* Method: FFI_GetRotation
@@ -1079,9 +1080,9 @@
* TRUE indicates success, otherwise FALSE.
*/
FPDF_BOOL (*FFI_PutRequestURL)(struct _FPDF_FORMFILLINFO* pThis,
- FPDF_WIDESTRING wsURL,
- FPDF_WIDESTRING wsData,
- FPDF_WIDESTRING wsEncode);
+ FPDF_WIDESTRING wsURL,
+ FPDF_WIDESTRING wsData,
+ FPDF_WIDESTRING wsEncode);
/*
* Method: FFI_OnFocusChange