diff options
author | Diana Gage <drgage@google.com> | 2017-07-28 17:07:39 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-31 21:43:06 +0000 |
commit | ab3909796cf2e9fa192040bcd7cb9da7bb3328a5 (patch) | |
tree | c4b3d336aa8d3539794ec0a9740cb9d78a7b0af8 /fpdfsdk/pwl/cpwl_wnd.h | |
parent | 47c9e6d1a151c7c8b0649712a91e04f12177b7b9 (diff) | |
download | pdfium-ab3909796cf2e9fa192040bcd7cb9da7bb3328a5.tar.xz |
Add FORM_ReplaceSelection() and embedder tests.
This method replaces the selected text in a user-editable form text
area with another text string (which can be empty or non-empty). If
there is no selected text, FORM_ReplaceSelection() will append the
replacement text after the current caret position.
BUG=chromium:59266
Change-Id: I76448ef757d107888c33ebd5656457ebac93b952
Reviewed-on: https://pdfium-review.googlesource.com/8812
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Diana Gage <drgage@google.com>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_wnd.h')
-rw-r--r-- | fpdfsdk/pwl/cpwl_wnd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/pwl/cpwl_wnd.h b/fpdfsdk/pwl/cpwl_wnd.h index 7c93216a58..15487a3c07 100644 --- a/fpdfsdk/pwl/cpwl_wnd.h +++ b/fpdfsdk/pwl/cpwl_wnd.h @@ -202,7 +202,7 @@ class CPWL_Wnd : public CPWL_TimerHandler, public CFX_Observable<CPWL_Wnd> { virtual float GetFontSize() const; virtual CFX_WideString GetSelectedText(); - virtual void DeleteSelectedText(); + virtual void ReplaceSelection(const CFX_WideString& text); virtual CFX_FloatRect GetFocusRect() const; virtual CFX_FloatRect GetClientRect() const; |