Chromium Code Reviews
DescriptionViews Textfield: copy-on-select and paste-on-middle-click.
Add Textfield::PasteSelectionClipboard helper function.
(used to paste on middle click, update cursor/selection)
Add file-local UpdateSelectionClipboard helper function.
(used to write non-empty text to the selection clipboard)
Call UpdateAfterChange consistently after changes.
(not just OnCaretBoundsChanged, SchedulePaint, etc.)
Cleanup ExecuteCommand, OnMousePressed/Dragged, etc.
Add TextfieldTest.SelectionClipboard unit tests.
Make Get/SetClipboardText helpers file-local.
BUG=319011
R=erg@chromium.org,oshima@chromium.org
TEST=Copy-on-select and paste-on-middle-click work for Linux Aura omnibox and browser textfields (find-in-page, bookmark bubble).
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=246478
Patch Set 1 #Patch Set 2 : Views Textfield: copy-on-select and middle-click-paste. #Patch Set 3 : Refine some nuanced behavior. #Patch Set 4 : Fix middle clicking in the active selection. #Patch Set 5 : Adding selection clipboard unit test. #Patch Set 6 : Only select on mouse release. #Patch Set 7 : Add UpdateSelectionClipboard; expand unit test; cleanup ExecuteCommand. #
Total comments: 8
Patch Set 8 : Make UpdateSelectionClipboard a Textfield member. #
Messages
Total messages: 11 (0 generated)
|
|||||||||||||||||||||||||||||||||||||