After Aura copied the original Linux scrollbar behvaior, it never got updated
commit33b0299adb7277ab8f7df93a31a7c745fc915536
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 1 Mar 2014 01:06:29 +0000 (1 01:06 +0000)
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 1 Mar 2014 01:06:29 +0000 (1 01:06 +0000)
treea584629b802f25b8230f6dc958516fb6d1c4b7e8
parentcb258c56d75b87c194f7ef2a69176940716b59b3
After Aura copied the original Linux scrollbar behvaior, it never got updated
with Windows-specific native behaviors from ScrollbarThemeWin.cpp:

* Snap the scrollbar back to its drag origin when dragged too far off the track.
This code matches the old code we had for years and also matches my Win 7
native scrollbars pixel-for-pixel.

* Don't jump the scroll thumb to the mouse cursor on a middle-click, only on a
shift-click. Middle-click must be a GTK-ism.

This is the Chrome side of the changes to re-add this behavior.

BUG=337919
TEST=Drag a scroll thumb to somewhere in the track, then without releasing, move the mouse far away from the track. The scroll thumb should snap back to the scroll origin.
R=avi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254305 0039d316-1c4b-4281-b951-d872f2087c98
content/content_renderer.gypi
content/renderer/render_thread_impl.cc
content/renderer/renderer_webkitplatformsupport_impl.cc
content/renderer/renderer_webkitplatformsupport_impl.h
content/renderer/webscrollbarbehavior_impl_gtkoraura.cc [new file with mode: 0644]
content/renderer/webscrollbarbehavior_impl_gtkoraura.h [new file with mode: 0644]
content/renderer/webscrollbarbehavior_impl_mac.h [new file with mode: 0644]
content/renderer/webscrollbarbehavior_impl_mac.mm [new file with mode: 0644]