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

Issue 2191363002: Reland of "Apply Shelf/Dock opacity animations for the Material Design style." (Closed)

Created:
4 years, 4 months ago by bruthig
Modified:
4 years, 4 months ago
Reviewers:
James Cook
CC:
chromium-reviews, kalyank, sadrul, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of "Apply Shelf/Dock opacity animations for the Material Design style." The Shelf animates between the 3 ShelfBackgroundType's using 2 different animations; one uses BackgroundAnimator timers and View::OnPaint() and the other uses a Layer to animate the SHELF_BACKGROUND_MAXIMIZED opaque background. This change centralizes the animation logic so they all stay in sync and applies the opacity animations to the material design style Shelf/Dock. Eventually the ShelfBackgroundAnimator will be enhanced to animate between colors instead of just alpha values. Follow-up plans: - Use a single instance of the ShelfBackgroundAnimator. - Remove the |opaque_background_| from ShelfWidget and DockedBackgroundWidget. - Collapse the multiple BackgroundAnimators owned by the ShelfBackgroundAnimator into a single SlideAnimation. - Animate the MD AppList and Overflow buttons. BUG=607037 Committed: https://crrev.com/a2239af6304ceaac998a487cf3cd09e9c23ebfc5 Cr-Commit-Position: refs/heads/master@{#409211}

Patch Set 1 : Reverted patch set #

Patch Set 2 : Moved the ShelfBackgroundAnimator from ShelfView to ShelfWidget. #

Total comments: 2

Patch Set 3 : Merge branch 'master' into animate_shelf_chip_background #

Patch Set 4 : Added ShelfBackgoundAnimator::Initialize(ShelfBackgroundAnimatorObserver*). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1067 lines, -304 lines) Patch
M ash/ash.gyp View 1 2 4 chunks +6 lines, -2 lines 0 comments Download
M ash/aura/wm_shelf_aura.cc View 1 chunk +3 lines, -1 line 0 comments Download
M ash/common/material_design/material_design_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/app_list_button.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ash/common/shelf/app_list_button.cc View 3 chunks +11 lines, -11 lines 0 comments Download
M ash/common/shelf/overflow_button.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ash/common/shelf/overflow_button.cc View 3 chunks +8 lines, -11 lines 0 comments Download
A ash/common/shelf/shelf_background_animator.h View 1 2 3 1 chunk +137 lines, -0 lines 0 comments Download
A ash/common/shelf/shelf_background_animator.cc View 1 2 3 1 chunk +206 lines, -0 lines 0 comments Download
A ash/common/shelf/shelf_background_animator_observer.h View 1 chunk +31 lines, -0 lines 0 comments Download
A ash/common/shelf/shelf_background_animator_unittest.cc View 1 chunk +411 lines, -0 lines 0 comments Download
M ash/common/shelf/wm_shelf_observer.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ash/common/system/chromeos/power/power_status_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/status_area_widget.h View 3 chunks +6 lines, -1 line 0 comments Download
M ash/common/system/status_area_widget.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M ash/common/system/tray/tray_background_view.h View 4 chunks +6 lines, -6 lines 0 comments Download
M ash/common/system/tray/tray_background_view.cc View 4 chunks +13 lines, -18 lines 0 comments Download
A + ash/common/test/material_design_controller_test_api.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + ash/common/test/material_design_controller_test_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/background_animator.h View 3 chunks +9 lines, -1 line 0 comments Download
M ash/common/wm/background_animator.cc View 3 chunks +10 lines, -1 line 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.cc View 6 chunks +27 lines, -35 lines 0 comments Download
M ash/root_window_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/shelf/shelf.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M ash/shelf/shelf.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/shelf/shelf_layout_manager.cc View 2 chunks +16 lines, -17 lines 0 comments Download
M ash/shelf/shelf_view.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ash/shelf/shelf_view.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ash/shelf/shelf_view_unittest.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M ash/shelf/shelf_widget.h View 1 6 chunks +10 lines, -3 lines 0 comments Download
M ash/shelf/shelf_widget.cc View 1 2 3 14 chunks +98 lines, -94 lines 0 comments Download
M ash/test/ash_md_test_base.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_md_test_base.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_test_helper.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/test/ash_test_helper.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
D ash/test/material_design_controller_test_api.h View 1 chunk +0 lines, -38 lines 0 comments Download
D ash/test/material_design_controller_test_api.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (12 generated)
bruthig
James, I had to fix up some memory errors. Patch set 1 is the patch ...
4 years, 4 months ago (2016-07-29 17:12:56 UTC) #3
James Cook
https://codereview.chromium.org/2191363002/diff/20001/ash/shelf/shelf_widget.cc File ash/shelf/shelf_widget.cc (right): https://codereview.chromium.org/2191363002/diff/20001/ash/shelf/shelf_widget.cc#newcode637 ash/shelf/shelf_widget.cc:637: background_animator_.RemoveObserver(this); At the login screen, if a secondary monitor ...
4 years, 4 months ago (2016-08-01 16:37:03 UTC) #8
bruthig
James, can you take another look? https://codereview.chromium.org/2191363002/diff/20001/ash/shelf/shelf_widget.cc File ash/shelf/shelf_widget.cc (right): https://codereview.chromium.org/2191363002/diff/20001/ash/shelf/shelf_widget.cc#newcode637 ash/shelf/shelf_widget.cc:637: background_animator_.RemoveObserver(this); On 2016/08/01 ...
4 years, 4 months ago (2016-08-02 15:48:30 UTC) #9
James Cook
LGTM.
4 years, 4 months ago (2016-08-02 16:54:44 UTC) #12
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/2191363002/60001
4 years, 4 months ago (2016-08-02 17:00:58 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-02 17:07:48 UTC) #17
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 17:09:38 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a2239af6304ceaac998a487cf3cd09e9c23ebfc5
Cr-Commit-Position: refs/heads/master@{#409211}

Powered by Google App Engine
This is Rietveld 408576698