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

Issue 2442573002: Implement fade-out animation for Aura overlay scrollbars (CC only). (Closed)

Created:
4 years, 2 months ago by bokan
Modified:
4 years, 2 months ago
CC:
cc-bugs_chromium.org, chaopeng, chromium-reviews, sahel
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement fade-out animation for Aura overlay scrollbars (CC only). This change implements the fade out animation in the scroll animation controller used for Aura overlay scrollbars. It only affects composited scrollers for now. This change makes the thinning controller responsible for scheduling two animations: fading and thinning. It does this by making sure that only one animation is ever running at a time and making sure to schedule a fade at the end of a thinning animation if needed. This patch removes the animated opacity changes between different hover states since they're no longer part of the specified behavior. It adds a simpler animated fade out similar to the "linear fade" controller when the scroller is idle for some time. It also cleans up the tests for the thinning controller, using constants where appropriate and making most tests oblivious to animation timing. BUG=652826 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/6cd8cd30ad46f2ac0f9064289f876c73b050dddd Cr-Commit-Position: refs/heads/master@{#426711}

Patch Set 1 #

Patch Set 2 : More tests and fix for capturing when invisible #

Patch Set 3 : Few more fixes #

Total comments: 6

Patch Set 4 : Address aelias@'s feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+732 lines, -307 lines) Patch
M cc/input/scrollbar_animation_controller.h View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M cc/input/scrollbar_animation_controller.cc View 1 2 3 4 chunks +3 lines, -5 lines 0 comments Download
M cc/input/scrollbar_animation_controller_linear_fade.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M cc/input/scrollbar_animation_controller_linear_fade.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning.h View 1 2 3 2 chunks +19 lines, -10 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning.cc View 1 2 3 6 chunks +94 lines, -62 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning_unittest.cc View 1 2 3 6 chunks +598 lines, -220 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
bokan
Alexandre, ptal. In a future patch (tracked in crbug.com/656606) we'll merge all the animators into ...
4 years, 2 months ago (2016-10-20 23:02:04 UTC) #7
aelias_OOO_until_Jul13
https://codereview.chromium.org/2442573002/diff/40001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2442573002/diff/40001/cc/input/scrollbar_animation_controller.cc#newcode63 cc/input/scrollbar_animation_controller.cc:63: // TODO(bokan): When do we get ScrollUpdates without a ...
4 years, 2 months ago (2016-10-20 23:40:51 UTC) #8
bokan
ptal https://codereview.chromium.org/2442573002/diff/40001/cc/input/scrollbar_animation_controller.cc File cc/input/scrollbar_animation_controller.cc (right): https://codereview.chromium.org/2442573002/diff/40001/cc/input/scrollbar_animation_controller.cc#newcode63 cc/input/scrollbar_animation_controller.cc:63: // TODO(bokan): When do we get ScrollUpdates without ...
4 years, 2 months ago (2016-10-21 00:32:31 UTC) #9
aelias_OOO_until_Jul13
lgtm
4 years, 2 months ago (2016-10-21 00:44:03 UTC) #10
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/2442573002/60001
4 years, 2 months ago (2016-10-21 00:50:28 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-21 03:39:29 UTC) #14
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:26:51 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6cd8cd30ad46f2ac0f9064289f876c73b050dddd
Cr-Commit-Position: refs/heads/master@{#426711}

Powered by Google App Engine
This is Rietveld 408576698