diff options
author | Diana Gage <drgage@google.com> | 2017-07-24 11:19:52 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-24 20:14:25 +0000 |
commit | 1c7f1420b78f37ec1619ab1552261e9ce3947a3b (patch) | |
tree | fd27fec330d569359d3be308595d41cf9dd02f2a /public | |
parent | bfa2a97ca9f5026ceb8e8c2ce23cfc3c3e8b38a1 (diff) | |
download | pdfium-1c7f1420b78f37ec1619ab1552261e9ce3947a3b.tar.xz |
Add FORM_DeleteSelectedText() and embedder tests.
This method deletes the current text selection in a form text field or
user-editable form combobox text field. If there is no selection, this
method does nothing.
BUG=chromium:59266
Change-Id: I3229ffad990c62beac1cf769cd366458b9ee5daa
Reviewed-on: https://pdfium-review.googlesource.com/8370
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Diana Gage <drgage@google.com>
Diffstat (limited to 'public')
-rw-r--r-- | public/fpdf_formfill.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/public/fpdf_formfill.h b/public/fpdf_formfill.h index 5a15cd9a02..83a4e58bdc 100644 --- a/public/fpdf_formfill.h +++ b/public/fpdf_formfill.h @@ -1378,6 +1378,22 @@ DLLEXPORT unsigned long STDCALL FORM_GetSelectedText(FPDF_FORMHANDLE hHandle, unsigned long buflen); /** + * Function: FORM_DeleteSelectedText + * You can call this function to delete the current text selection in + * a form text field or user-editable form combobox text field. If + * there is no selected text, this function does nothing. + * Parameters: + * hHandle - Handle to the form fill module. Returned by + * FPDFDOC_InitFormFillEnvironment. + * page - Handle to the page. Returned by FPDF_LoadPage + * function. + * Return Value: + * None. + **/ +DLLEXPORT void STDCALL FORM_DeleteSelectedText(FPDF_FORMHANDLE hHandle, + FPDF_PAGE page); + +/** * Function: FORM_ForceToKillFocus. * You can call this member function to force to kill the focus of the *form field which got focus. |