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

Issue 478023002: OverscrollController consumes scroll updates only during gesture-nav. (Closed)

Created:
6 years, 4 months ago by tdresser
Modified:
5 years, 8 months ago
Reviewers:
danakj, sadrul, sky
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org, danakj
Project:
chromium
Visibility:
Public.

Description

OverscrollController consumes scroll updates only during gesture-nav. Previously the OverscrollController consume all scroll updates, which broke touchmove throttling. The test ensures that touchmove throttling interacts correctly we gesture-nav. BUG=403329 TEST=WebContentsViewAuraTest.OverscrollNavigationTouchThrottling Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290740

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix test. #

Total comments: 8

Patch Set 3 : Address sadrul's comments, consume touches if we're under the overscroll threshold. #

Patch Set 4 : Disable browsertest on windows. #

Total comments: 1

Patch Set 5 : Add TODO to clean up browsertest. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -29 lines) Patch
M content/browser/renderer_host/overscroll_controller.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/overscroll_controller.cc View 1 2 5 chunks +12 lines, -13 lines 0 comments Download
M content/browser/renderer_host/overscroll_controller_delegate.h View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 chunks +32 lines, -3 lines 0 comments Download
M content/browser/web_contents/aura/gesture_nav_simple.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/web_contents/aura/gesture_nav_simple.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura_browsertest.cc View 1 2 3 4 6 chunks +218 lines, -0 lines 1 comment Download
M content/test/data/overscroll_navigation.html View 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (1 generated)
tdresser
I'm not particularly happy with the state of the browser test, but this is an ...
6 years, 4 months ago (2014-08-15 23:10:33 UTC) #1
tdresser
On 2014/08/15 23:10:33, tdresser wrote: > I'm not particularly happy with the state of the ...
6 years, 4 months ago (2014-08-18 19:11:43 UTC) #2
sadrul
https://codereview.chromium.org/478023002/diff/20001/content/browser/renderer_host/overscroll_controller.cc File content/browser/renderer_host/overscroll_controller.cc (right): https://codereview.chromium.org/478023002/diff/20001/content/browser/renderer_host/overscroll_controller.cc#newcode216 content/browser/renderer_host/overscroll_controller.cc:216: ProcessOverscroll(wheel.deltaX * wheel.accelerationRatioX, How about here? https://codereview.chromium.org/478023002/diff/20001/content/browser/web_contents/aura/gesture_nav_simple.h File content/browser/web_contents/aura/gesture_nav_simple.h ...
6 years, 4 months ago (2014-08-18 22:54:09 UTC) #3
tdresser
https://codereview.chromium.org/478023002/diff/20001/content/browser/renderer_host/overscroll_controller.cc File content/browser/renderer_host/overscroll_controller.cc (right): https://codereview.chromium.org/478023002/diff/20001/content/browser/renderer_host/overscroll_controller.cc#newcode216 content/browser/renderer_host/overscroll_controller.cc:216: ProcessOverscroll(wheel.deltaX * wheel.accelerationRatioX, On 2014/08/18 22:54:08, sadrul wrote: > ...
6 years, 4 months ago (2014-08-19 12:51:38 UTC) #4
tdresser
sky@, can you take a look at content/browser/web_contents? ben@ is OOO. Looks like the browsertest ...
6 years, 4 months ago (2014-08-19 16:24:25 UTC) #5
sadrul
lgtm
6 years, 4 months ago (2014-08-19 16:51:30 UTC) #6
sky
https://codereview.chromium.org/478023002/diff/60001/content/browser/web_contents/web_contents_view_aura_browsertest.cc File content/browser/web_contents/web_contents_view_aura_browsertest.cc (right): https://codereview.chromium.org/478023002/diff/60001/content/browser/web_contents/web_contents_view_aura_browsertest.cc#newcode44 content/browser/web_contents/web_contents_view_aura_browsertest.cc:44: void GiveItSomeTime() { This is awful. Don't do this. ...
6 years, 4 months ago (2014-08-19 19:39:50 UTC) #7
tdresser
On 2014/08/19 19:39:50, sky wrote: > https://codereview.chromium.org/478023002/diff/60001/content/browser/web_contents/web_contents_view_aura_browsertest.cc > File content/browser/web_contents/web_contents_view_aura_browsertest.cc (right): > > https://codereview.chromium.org/478023002/diff/60001/content/browser/web_contents/web_contents_view_aura_browsertest.cc#newcode44 > ...
6 years, 4 months ago (2014-08-19 19:49:35 UTC) #8
sky
Add a TODO and LGTM On Tue, Aug 19, 2014 at 12:49 PM, <tdresser@chromium.org> wrote: ...
6 years, 4 months ago (2014-08-19 19:50:54 UTC) #9
sky
Add TODO and LGTM
6 years, 4 months ago (2014-08-19 19:56:07 UTC) #10
tdresser
On 2014/08/19 19:56:07, sky wrote: > Add TODO and LGTM TODO added, and bug filed.
6 years, 4 months ago (2014-08-19 21:03:10 UTC) #11
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 4 months ago (2014-08-19 21:03:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/478023002/80001
6 years, 4 months ago (2014-08-19 21:04:26 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-19 22:55:31 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-19 23:24:08 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/7440)
6 years, 4 months ago (2014-08-19 23:24:09 UTC) #16
tdresser
The CQ bit was checked by tdresser@chromium.org
6 years, 4 months ago (2014-08-20 02:34:45 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdresser@chromium.org/478023002/80001
6 years, 4 months ago (2014-08-20 02:35:52 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (80001) as 290740
6 years, 4 months ago (2014-08-20 03:17:03 UTC) #19
danakj
5 years, 8 months ago (2015-04-02 18:41:56 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/478023002/diff/80001/content/browser/web_cont...
File content/browser/web_contents/web_contents_view_aura_browsertest.cc (right):

https://codereview.chromium.org/478023002/diff/80001/content/browser/web_cont...
content/browser/web_contents/web_contents_view_aura_browsertest.cc:44: //
TODO(tdresser): Find a way to avoid sleeping like this. See crbug.com/405282
Would be awesome to follow up on this. I keep seeing this pattern being copy
pasted.

Powered by Google App Engine
This is Rietveld 408576698