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

Issue 1865063004: views: support vertical-drag-to-end on textfields (Closed)

Created:
4 years, 8 months ago by Elly Fong-Jones
Modified:
4 years, 8 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina, James Su, shuchen+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

views: support vertical-drag-to-end on textfields On Mac, dragging above the top of a textfield drags to the beginning of the textfield's contents, and dragging below the bottom drags to the end of the textfield's contents. This change implements that behavior, controlled by PlatformStyle::kTextfieldDragVerticallyDragsToEnd, which is true only on Mac. BUG=600166 Committed: https://crrev.com/ef378f2dcd244781ba68cc2a4f709e6f3d100569 Cr-Commit-Position: refs/heads/master@{#387988}

Patch Set 1 #

Total comments: 6

Patch Set 2 : move logic into Textfield #

Total comments: 6

Patch Set 3 : Document unit test! #

Total comments: 4

Patch Set 4 : Refactor some textfield unittests #

Total comments: 21

Patch Set 5 : Test fixups for new API #

Total comments: 1

Patch Set 6 : fix test on win/linux #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -85 lines) Patch
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 2 chunks +13 lines, -1 line 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 5 12 chunks +119 lines, -84 lines 0 comments Download
M ui/views/style/platform_style.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/style/platform_style.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/style/platform_style_mac.mm View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (9 generated)
Elly Fong-Jones
tapted: ptal? :)
4 years, 8 months ago (2016-04-06 16:00:07 UTC) #3
tapted
https://codereview.chromium.org/1865063004/diff/1/ui/views/controls/textfield/textfield_model.cc File ui/views/controls/textfield/textfield_model.cc (right): https://codereview.chromium.org/1865063004/diff/1/ui/views/controls/textfield/textfield_model.cc#newcode404 ui/views/controls/textfield/textfield_model.cc:404: void TextfieldModel::MoveCursorToStart(bool select) { I think these are misleading ...
4 years, 8 months ago (2016-04-06 23:29:38 UTC) #4
Elly Fong-Jones
tapted: ptal? https://codereview.chromium.org/1865063004/diff/1/ui/views/controls/textfield/textfield_model.cc File ui/views/controls/textfield/textfield_model.cc (right): https://codereview.chromium.org/1865063004/diff/1/ui/views/controls/textfield/textfield_model.cc#newcode404 ui/views/controls/textfield/textfield_model.cc:404: void TextfieldModel::MoveCursorToStart(bool select) { On 2016/04/06 23:29:38, ...
4 years, 8 months ago (2016-04-07 17:43:48 UTC) #5
tapted
https://codereview.chromium.org/1865063004/diff/20001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/1865063004/diff/20001/ui/views/controls/textfield/textfield_unittest.cc#newcode1199 ui/views/controls/textfield/textfield_unittest.cc:1199: TEST_F(TextfieldTest, DragUpOrDownSelectsToEnd) { nit: although the other tests are ...
4 years, 8 months ago (2016-04-08 08:53:28 UTC) #6
Elly Fong-Jones
tapted: ptal? :) https://codereview.chromium.org/1865063004/diff/20001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/1865063004/diff/20001/ui/views/controls/textfield/textfield_unittest.cc#newcode1199 ui/views/controls/textfield/textfield_unittest.cc:1199: TEST_F(TextfieldTest, DragUpOrDownSelectsToEnd) { On 2016/04/08 08:53:28, ...
4 years, 8 months ago (2016-04-08 16:46:48 UTC) #7
tapted
There's already an event_generator_ member on TextfieldTest - here's how the test would look to ...
4 years, 8 months ago (2016-04-11 06:57:26 UTC) #8
chromium-reviews
> I've started some jobs inhttps <https://codereview.chromium.org/1875003002/>:// <https://codereview.chromium.org/1875003002/>codereview.chromium.org <https://codereview.chromium.org/1875003002/>/1875003002/ <https://codereview.chromium.org/1875003002/> - it's possible fixing the ...
4 years, 8 months ago (2016-04-12 12:44:27 UTC) #9
chromium-reviews
On 12 Apr 2016 22:44, "Trent Apted" <tapted@google.com> wrote: > > > I've started some ...
4 years, 8 months ago (2016-04-12 13:00:57 UTC) #10
Elly Fong-Jones
On 2016/04/12 13:00:57, chromium-reviews wrote: > On 12 Apr 2016 22:44, "Trent Apted" <mailto:tapted@google.com> wrote: ...
4 years, 8 months ago (2016-04-13 15:12:32 UTC) #11
Elly Fong-Jones
I wrote some wrappers in TextfieldTest that can be converted to use EventGenerator later (they ...
4 years, 8 months ago (2016-04-14 19:47:10 UTC) #12
tapted
nice - I like this approach. https://codereview.chromium.org/1865063004/diff/60001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/1865063004/diff/60001/ui/views/controls/textfield/textfield_unittest.cc#newcode1126 ui/views/controls/textfield/textfield_unittest.cc:1126: // ui::MouseEvent click(ui::ET_MOUSE_PRESSED, ...
4 years, 8 months ago (2016-04-15 00:35:08 UTC) #13
Elly Fong-Jones
ptal? :) https://codereview.chromium.org/1865063004/diff/60001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/1865063004/diff/60001/ui/views/controls/textfield/textfield_unittest.cc#newcode1126 ui/views/controls/textfield/textfield_unittest.cc:1126: // ui::MouseEvent click(ui::ET_MOUSE_PRESSED, gfx::Point(), gfx::Point(), On 2016/04/15 ...
4 years, 8 months ago (2016-04-15 14:47:46 UTC) #14
tapted
lgtm https://codereview.chromium.org/1865063004/diff/80001/ui/views/controls/textfield/textfield_unittest.cc File ui/views/controls/textfield/textfield_unittest.cc (right): https://codereview.chromium.org/1865063004/diff/80001/ui/views/controls/textfield/textfield_unittest.cc#newcode645 ui/views/controls/textfield/textfield_unittest.cc:645: void PressLeftMouseButton() { (note style guide now allows ...
4 years, 8 months ago (2016-04-18 01:12:51 UTC) #15
tapted
https://codereview.chromium.org/1865063004/diff/60001/ui/views/style/platform_style.h File ui/views/style/platform_style.h (right): https://codereview.chromium.org/1865063004/diff/60001/ui/views/style/platform_style.h#newcode23 ui/views/style/platform_style.h:23: VIEWS_EXPORT static const bool kTextfieldDragVerticallyDragsToEnd; On 2016/04/15 14:47:46, Elly ...
4 years, 8 months ago (2016-04-18 01:14:39 UTC) #16
Elly Fong-Jones
sky: ptal? :)
4 years, 8 months ago (2016-04-18 13:05:55 UTC) #18
sky
LGTM
4 years, 8 months ago (2016-04-18 15:41:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865063004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865063004/80001
4 years, 8 months ago (2016-04-18 17:21:00 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/199291)
4 years, 8 months ago (2016-04-18 17:53:12 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865063004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865063004/100001
4 years, 8 months ago (2016-04-18 18:56:12 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-18 19:45:48 UTC) #28
commit-bot: I haz the power
4 years, 8 months ago (2016-04-18 19:47:09 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ef378f2dcd244781ba68cc2a4f709e6f3d100569
Cr-Commit-Position: refs/heads/master@{#387988}

Powered by Google App Engine
This is Rietveld 408576698