Focus and trail cursor on Views Textfield selection clipboard paste.
commit973842b726e1effa9b5a89907e6eb4ca4f8cba2a
authormsw <msw@chromium.org>
Sat, 14 Feb 2015 04:36:57 +0000 (13 20:36 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 14 Feb 2015 04:37:21 +0000 (14 04:37 +0000)
tree3f789eaab3416bba55487c02b408e529bb33d048
parentc4a76234ea701f22a870231d1b900a367693acc6
Focus and trail cursor on Views Textfield selection clipboard paste.

Focus the textfield as needed (even with an empty clipboard).

Leave the cursor trailing the newly pasted text.
(don't restore and offset the prior cursor/selection)

Update and expand tests.

BUG=456581
TEST=Linux textfield/omnibox middle-click behaves as expected.
R=pkasting@chromium.org

Review URL: https://codereview.chromium.org/927743002

Cr-Commit-Position: refs/heads/master@{#316374}
chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc
ui/views/controls/textfield/textfield.cc
ui/views/controls/textfield/textfield_unittest.cc