Make Textfield scroll continuously when dragging beyond edges.
commitd76fad6554e7388e10966e309333528ecb9d83b0
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 21:09:20 +0000 (23 21:09 +0000)
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 23 May 2014 21:09:20 +0000 (23 21:09 +0000)
tree959f91b4f843272da91dbdbfedc255425c0736c1
parente2481a70c71654e425f0aaeea54100b49f6c0b31
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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272591 0039d316-1c4b-4281-b951-d872f2087c98
base/timer/timer.h
ui/views/controls/textfield/textfield.cc
ui/views/controls/textfield/textfield.h