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

Issue 18603008: Seperate horizontal and vertical overscrolling (Closed)

Created:
7 years, 5 months ago by rharrison
Modified:
7 years, 5 months ago
Reviewers:
sadrul, jam, sky, Dan Beam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, WRONG-USE-chromium
Visibility:
Public.

Description

Seperate horizontal and vertical overscrolling This CL splits the concept of the minimum overscroll threshold into a vertical and horizontal value. This allows configuring these overscrolls independently since they have different behaviour. This CL also changes the behaviour of the OverscrollController when a render has consumed the start of a scroll. The existing behaviour of not performing horizontal overscrolls is preserved. The vertical case is changed to allow the scroll end effect to start on a scroll that moved content. BUG=257121 TEST=Confirmed on device that scroll end effect occurs immediately when the end of the page is reached via adding local patch for overscroll effect. Confirmed that gesture nav behaviour does not change. Updated a bunch of tests and ran them. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213753

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add hooks to Gesture UI and fixed threshold bug #

Total comments: 6

Patch Set 3 : Made changes requested by sadrul #

Total comments: 4

Patch Set 4 : Cleaned up comment and added test case #

Patch Set 5 : Rebased CL #

Patch Set 6 : Removed vertical test for platforms that don't support scroll end effect #

Patch Set 7 : Fixed broken unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -77 lines) Patch
M chrome/browser/resources/gesture_config.js View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/ui/gesture_prefs_observer_factory_aura.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/salsa_ui.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/overscroll_configuration.cc View 3 chunks +13 lines, -5 lines 0 comments Download
M content/browser/renderer_host/overscroll_controller.cc View 1 2 3 chunks +22 lines, -17 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 30 chunks +77 lines, -42 lines 0 comments Download
M content/browser/web_contents/aura/window_slider.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/aura/window_slider.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M content/public/browser/overscroll_configuration.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
rharrison
PTAL
7 years, 5 months ago (2013-07-04 20:01:49 UTC) #1
sadrul
https://codereview.chromium.org/18603008/diff/1/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc File chrome/browser/ui/gesture_prefs_observer_factory_aura.cc (right): https://codereview.chromium.org/18603008/diff/1/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc#newcode58 chrome/browser/ui/gesture_prefs_observer_factory_aura.cc:58: OVERSCROLL_CONFIG_HORIZ_THRESHOLD_START }, You need to hook up the vertical ...
7 years, 5 months ago (2013-07-04 21:16:35 UTC) #2
rharrison
https://codereview.chromium.org/18603008/diff/1/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc File chrome/browser/ui/gesture_prefs_observer_factory_aura.cc (right): https://codereview.chromium.org/18603008/diff/1/chrome/browser/ui/gesture_prefs_observer_factory_aura.cc#newcode58 chrome/browser/ui/gesture_prefs_observer_factory_aura.cc:58: OVERSCROLL_CONFIG_HORIZ_THRESHOLD_START }, On 2013/07/04 21:16:35, sadrul wrote: > You ...
7 years, 5 months ago (2013-07-17 18:59:48 UTC) #3
sadrul
I think this is pretty close. In the next iteration, please add owners. https://codereview.chromium.org/18603008/diff/6001/content/browser/renderer_host/overscroll_controller.cc File ...
7 years, 5 months ago (2013-07-18 22:51:41 UTC) #4
rharrison
Responded to comments from sadrul Adding sky for OWNERS https://codereview.chromium.org/18603008/diff/6001/content/browser/renderer_host/overscroll_controller.cc File content/browser/renderer_host/overscroll_controller.cc (right): https://codereview.chromium.org/18603008/diff/6001/content/browser/renderer_host/overscroll_controller.cc#newcode309 content/browser/renderer_host/overscroll_controller.cc:309: ...
7 years, 5 months ago (2013-07-23 14:36:02 UTC) #5
rharrison
Adding ben for OWNERS on content/public/browser/overscroll_configuration.h
7 years, 5 months ago (2013-07-23 14:37:01 UTC) #6
sadrul
LGTM https://codereview.chromium.org/18603008/diff/14001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/18603008/diff/14001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode3576 content/browser/renderer_host/render_widget_host_unittest.cc:3576: // nitiate overscroll because the scroll was in ...
7 years, 5 months ago (2013-07-23 14:42:22 UTC) #7
rharrison
https://codereview.chromium.org/18603008/diff/14001/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/18603008/diff/14001/content/browser/renderer_host/render_widget_host_unittest.cc#newcode3576 content/browser/renderer_host/render_widget_host_unittest.cc:3576: // nitiate overscroll because the scroll was in the ...
7 years, 5 months ago (2013-07-23 14:50:07 UTC) #8
sky
LGTM
7 years, 5 months ago (2013-07-23 18:03:19 UTC) #9
rharrison
On 2013/07/23 18:03:19, sky wrote: > LGTM Looks like the changes I am waiting on ...
7 years, 5 months ago (2013-07-24 13:42:08 UTC) #10
rharrison
Switching to jam for OWNERS review of content/public
7 years, 5 months ago (2013-07-24 15:07:52 UTC) #11
rharrison
Adding dbeam for OWNERS review of chrome/browser/resources/gesture_config.js
7 years, 5 months ago (2013-07-24 15:20:30 UTC) #12
jam
On 2013/07/24 15:07:52, rharrison wrote: > Switching to jam for OWNERS review of content/public lgtm
7 years, 5 months ago (2013-07-24 18:06:30 UTC) #13
rharrison
Removed dbeam from review, since I already have an OWNER for the .js file apparently...
7 years, 5 months ago (2013-07-24 18:12:46 UTC) #14
Dan Beam
lgtm
7 years, 5 months ago (2013-07-24 18:23:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rharrison@chromium.org/18603008/89001
7 years, 5 months ago (2013-07-25 19:24:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rharrison@chromium.org/18603008/89001
7 years, 5 months ago (2013-07-25 22:43:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rharrison@chromium.org/18603008/89001
7 years, 5 months ago (2013-07-25 23:15:41 UTC) #18
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 03:38:23 UTC) #19
Message was sent while issue was closed.
Change committed as 213753

Powered by Google App Engine
This is Rietveld 408576698