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

Issue 290733007: Make Textfield scroll continuously when dragging beyond edges. (Closed)

Created:
6 years, 7 months ago by msw
Modified:
6 years, 7 months ago
Reviewers:
Nico, Peter Kasting, sky
CC:
chromium-reviews, James Su, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, penghuang+watch_chromium.org, nona+watch_chromium.org, erikwright+watch_chromium.org, ajuma, Ian Vollick
Visibility:
Public.

Description

Make Textfield scroll continuously when dragging beyond edges. Add a timer, point, and function drag selection helpers. Respect ScopedAnimationDurationScaleMode for TextfieldTest.DragToSelect. Comment and function order cleanup; fix timer.h indentation. TODO(followup): Make the scrolling "animation" smoother. BUG=373886 TEST=Dragging to select beyond the left or right ends of the omnibox, find bar textfield, etc. continuously scrolls and modifies the selection. R=pkasting@chromium.org,thakis@chromium.org,sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272591

Patch Set 1 #

Patch Set 2 : Prevent drag event frequencies from altering scrolling speed; cleanup. #

Total comments: 2

Patch Set 3 : Use ScopedAnimationDurationScaleMode to fix TextfieldTest.DragToSelect. #

Patch Set 4 : Remove unnecessary test file changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -36 lines) Patch
M base/timer/timer.h View 2 chunks +5 lines, -5 lines 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 4 chunks +11 lines, -10 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 5 chunks +50 lines, -21 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
msw
Hey guys, please take a look; thanks! Peter: textfield.* changes. Nico: timer.h (indentation fix).
6 years, 7 months ago (2014-05-21 22:33:32 UTC) #1
Nico
timer.h lgtm :-)
6 years, 7 months ago (2014-05-21 22:35:44 UTC) #2
Peter Kasting
https://codereview.chromium.org/290733007/diff/40001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/290733007/diff/40001/ui/views/controls/textfield/textfield.cc#newcode1543 ui/views/controls/textfield/textfield.cc:1543: model_->MoveCursorTo(last_drag_location_, true); How does this work with off-Textfield cursor ...
6 years, 7 months ago (2014-05-21 22:44:27 UTC) #3
msw
https://codereview.chromium.org/290733007/diff/40001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/290733007/diff/40001/ui/views/controls/textfield/textfield.cc#newcode1543 ui/views/controls/textfield/textfield.cc:1543: model_->MoveCursorTo(last_drag_location_, true); On 2014/05/21 22:44:28, Peter Kasting wrote: > ...
6 years, 7 months ago (2014-05-21 23:15:10 UTC) #4
Peter Kasting
All right, LGTM
6 years, 7 months ago (2014-05-21 23:18:43 UTC) #5
msw
The CQ bit was checked by msw@chromium.org
6 years, 7 months ago (2014-05-21 23:23:58 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/290733007/40001
6 years, 7 months ago (2014-05-21 23:30:33 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 08:21:43 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 09:34:55 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/29888)
6 years, 7 months ago (2014-05-22 09:34:55 UTC) #10
msw
Hey Scott, is the use of ScopedAnimationDurationScaleMode to fix TextfieldTest.DragToSelect in the latest patch set ...
6 years, 7 months ago (2014-05-22 19:38:21 UTC) #11
sky
LGTM - seems like it would be nice to make the default ZERO_DURATION for tests ...
6 years, 7 months ago (2014-05-22 20:10:11 UTC) #12
msw
On 2014/05/22 20:10:11, sky wrote: > LGTM - seems like it would be nice to ...
6 years, 7 months ago (2014-05-22 21:01:02 UTC) #13
msw
The CQ bit was checked by msw@chromium.org
6 years, 7 months ago (2014-05-22 21:01:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/290733007/90001
6 years, 7 months ago (2014-05-22 21:01:57 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 00:29:29 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 04:29:16 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/31831)
6 years, 7 months ago (2014-05-23 04:29:16 UTC) #18
msw
The CQ bit was checked by msw@chromium.org
6 years, 7 months ago (2014-05-23 06:30:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/290733007/90001
6 years, 7 months ago (2014-05-23 06:32:16 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 12:16:41 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 14:52:01 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/32004)
6 years, 7 months ago (2014-05-23 14:52:01 UTC) #23
msw
The CQ bit was checked by msw@chromium.org
6 years, 7 months ago (2014-05-23 17:17:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/290733007/90001
6 years, 7 months ago (2014-05-23 17:19:20 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 19:01:02 UTC) #26
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 21:09:22 UTC) #27
Message was sent while issue was closed.
Change committed as 272591

Powered by Google App Engine
This is Rietveld 408576698