Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(663)

Issue 927743002: Focus and trail cursor on Views Textfield selection clipboard paste. (Closed)

Created:
5 years, 10 months ago by msw
Modified:
5 years, 10 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, penghuang+watch_chromium.org, nona+watch_chromium.org, James Su, Daniel Erat
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/973842b726e1effa9b5a89907e6eb4ca4f8cba2a Cr-Commit-Position: refs/heads/master@{#316374}

Patch Set 1 #

Patch Set 2 : Leave the test disabled... #

Total comments: 2

Patch Set 3 : Focus and update cursor with empty clipboard; update tests. #

Patch Set 4 : Use SetClipboardText on other platforms too. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -34 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc View 1 2 3 4 chunks +63 lines, -12 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 1 chunk +7 lines, -13 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 1 chunk +18 lines, -9 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
msw
Hey Peter, please take a look; thanks! https://codereview.chromium.org/927743002/diff/20001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/927743002/diff/20001/ui/views/controls/textfield/textfield_unittest.cc#newcode1898 ui/views/controls/textfield/textfield_unittest.cc:1898: TEST_F(TextfieldTest, DISABLED_SelectionClipboard) ...
5 years, 10 months ago (2015-02-13 23:38:43 UTC) #2
Peter Kasting
LGTM
5 years, 10 months ago (2015-02-13 23:48:04 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/927743002/20001
5 years, 10 months ago (2015-02-13 23:51:46 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/32690)
5 years, 10 months ago (2015-02-14 00:47:59 UTC) #7
msw
I updated the behavior and tests slightly. Please take another look as you have time, ...
5 years, 10 months ago (2015-02-14 02:54:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/927743002/60001
5 years, 10 months ago (2015-02-14 02:55:27 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/8405)
5 years, 10 months ago (2015-02-14 03:05:54 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/927743002/80001
5 years, 10 months ago (2015-02-14 03:25:37 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 10 months ago (2015-02-14 04:37:04 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-14 04:37:36 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/973842b726e1effa9b5a89907e6eb4ca4f8cba2a
Cr-Commit-Position: refs/heads/master@{#316374}

Powered by Google App Engine
This is Rietveld 408576698