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

Issue 2611013002: Show Overlay Scrollbar when GestureScrollUpdate (Closed)

Created:
3 years, 11 months ago by chaopeng
Modified:
3 years, 9 months ago
Reviewers:
bokan, pdr., weiliangc
CC:
cc-bugs_chromium.org, chromium-reviews, dtapuska+chromiumwatch_chromium.org, tdresser+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show Overlay Scrollbar when GestureScrollUpdate Currently, we only show overlay scrollbars once the page/scroller actually changes position. In this patch, I also call the WillUpdateScroll(rename from DidScrollUpdate) when GestureScrollUpdate so we can show scrollbar when we receive scroll gestures. BUG=675594 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2611013002 Cr-Commit-Position: refs/heads/master@{#456474} Committed: https://chromium.googlesource.com/chromium/src/+/b2b25bd2d961354db5081b6090d3782c10513fab

Patch Set 1 #

Patch Set 2 : add will update scroll #

Patch Set 3 : rebase & merge 2716453005 & fix tests #

Total comments: 6

Patch Set 4 : bokan comments addressed #

Total comments: 1

Patch Set 5 : bokan comments addressed #

Total comments: 1

Patch Set 6 : add comment #

Total comments: 1

Patch Set 7 : add comment to DidResize #

Patch Set 8 : rebase #

Patch Set 9 : ScrollingGestureUpdate should only effect Aura Overlay Scrollbar #

Total comments: 4

Patch Set 10 : bokan comment#70 addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -75 lines) Patch
M cc/input/scrollbar_animation_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -1 line 0 comments Download
M cc/input/scrollbar_animation_controller.cc View 1 2 3 4 5 6 7 8 9 6 chunks +33 lines, -18 lines 0 comments Download
M cc/input/scrollbar_animation_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 44 chunks +96 lines, -46 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +25 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +34 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -6 lines 0 comments Download

Messages

Total messages: 79 (54 generated)
chaopeng
Please take a early look at this one.
3 years, 11 months ago (2017-01-04 21:30:05 UTC) #6
bokan
I think it'd be simpler to add a method on ScrollbarAnimationController like willUpdateScroll() that sets ...
3 years, 11 months ago (2017-01-05 13:44:25 UTC) #10
chaopeng
On 2017/01/05 13:44:25, bokan wrote: > I think it'd be simpler to add a method ...
3 years, 11 months ago (2017-01-05 21:59:03 UTC) #12
chaopeng
Updated, PTAL. Thank you.
3 years, 9 months ago (2017-02-27 20:56:17 UTC) #18
bokan
https://codereview.chromium.org/2611013002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/2611013002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc#newcode2766 cc/trees/layer_tree_host_impl_unittest.cc:2766: // If no scroll happened during a scroll gesture, ...
3 years, 9 months ago (2017-02-27 23:34:17 UTC) #21
chaopeng
Updated, PTAL. Thank you. https://codereview.chromium.org/2611013002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc File cc/trees/layer_tree_host_impl_unittest.cc (right): https://codereview.chromium.org/2611013002/diff/60001/cc/trees/layer_tree_host_impl_unittest.cc#newcode2907 cc/trees/layer_tree_host_impl_unittest.cc:2907: EXPECT_EQ(base::TimeDelta::FromMilliseconds(20), On 2017/02/27 23:34:16, bokan ...
3 years, 9 months ago (2017-02-28 01:51:12 UTC) #24
bokan
https://codereview.chromium.org/2611013002/diff/60001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2611013002/diff/60001/cc/trees/layer_tree_impl.cc#newcode251 cc/trees/layer_tree_impl.cc:251: scrollbar_needs_animation |= clip_layer_size_did_change |= On 2017/02/28 01:51:12, chaopeng wrote: ...
3 years, 9 months ago (2017-02-28 14:16:08 UTC) #27
chaopeng
Updated, PTAL.
3 years, 9 months ago (2017-02-28 14:33:43 UTC) #35
bokan
lgtm % comment https://codereview.chromium.org/2611013002/diff/120001/cc/input/scrollbar_animation_controller.h File cc/input/scrollbar_animation_controller.h (right): https://codereview.chromium.org/2611013002/diff/120001/cc/input/scrollbar_animation_controller.h#newcode68 cc/input/scrollbar_animation_controller.h:68: void WillUpdateScroll(); Please add a comment ...
3 years, 9 months ago (2017-02-28 14:42:27 UTC) #36
chaopeng
weiliangc@chromium.org: PTAL, Thank you.
3 years, 9 months ago (2017-02-28 19:01:53 UTC) #41
weiliangc
LGTM % adding comment. https://codereview.chromium.org/2611013002/diff/140001/cc/input/scrollbar_animation_controller.h File cc/input/scrollbar_animation_controller.h (right): https://codereview.chromium.org/2611013002/diff/140001/cc/input/scrollbar_animation_controller.h#newcode71 cc/input/scrollbar_animation_controller.h:71: void DidResize(); Could you also ...
3 years, 9 months ago (2017-03-01 19:24:12 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2611013002/160001
3 years, 9 months ago (2017-03-02 15:40:07 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/48995) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-02 15:42:32 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2611013002/180001
3 years, 9 months ago (2017-03-02 16:15:50 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/399364)
3 years, 9 months ago (2017-03-02 16:25:13 UTC) #57
chaopeng
pdr: PTAL. I used CurrentlyScrollingLayer previously to find ScrollbarAnimationController now I moved to CurrentlyScrollingNode()::owning_layer_id.
3 years, 9 months ago (2017-03-02 17:32:22 UTC) #66
pdr.
On 2017/03/02 at 17:32:22, chaopeng wrote: > pdr: PTAL. I used CurrentlyScrollingLayer previously to find ...
3 years, 9 months ago (2017-03-02 18:13:02 UTC) #67
chaopeng
On 2017/03/02 18:13:02, pdr. wrote: > On 2017/03/02 at 17:32:22, chaopeng wrote: > > pdr: ...
3 years, 9 months ago (2017-03-02 18:38:46 UTC) #68
chaopeng
Show Overlay Scrollbar when GestureScrollUpdate should only effect Aura Overlay Scrollbar. bokan@, weiliangc@ PTAL. Thank ...
3 years, 9 months ago (2017-03-08 20:45:23 UTC) #69
bokan
Couple of nits but still lgtm once those are fixed. https://codereview.chromium.org/2611013002/diff/240001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2611013002/diff/240001/cc/input/scrollbar_animation_controller.cc#newcode221 ...
3 years, 9 months ago (2017-03-09 15:57:58 UTC) #70
chaopeng
weiliangc@ PTAL. Thank you.
3 years, 9 months ago (2017-03-09 19:08:34 UTC) #71
weiliangc
LGTM.
3 years, 9 months ago (2017-03-13 14:18:21 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2611013002/260001
3 years, 9 months ago (2017-03-13 19:50:23 UTC) #75
commit-bot: I haz the power
Committed patchset #10 (id:260001) as https://chromium.googlesource.com/chromium/src/+/b2b25bd2d961354db5081b6090d3782c10513fab
3 years, 9 months ago (2017-03-13 20:53:43 UTC) #78
chaopeng
3 years, 9 months ago (2017-03-15 21:32:40 UTC) #79
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:260001) has been created in
https://codereview.chromium.org/2748343004/ by chaopeng@chromium.org.

The reason for reverting is: memory regression: crbug.com/701810.

Powered by Google App Engine
This is Rietveld 408576698