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

Issue 2679333002: [ash-md] Remove the number of animators used for the Shelf animations. (Closed)

Created:
3 years, 10 months ago by bruthig
Modified:
3 years, 10 months ago
Reviewers:
James Cook, sky
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ash-md] Remove the number of animators used for the Shelf animations. Previously the ShelfBackgroundAnimator was using 2 BackgroundAnimators, this CL replaces (and removes) the BackgroundAnimator with a single SlideAnimation. BUG=595010 TEST=ash_unittests Review-Url: https://codereview.chromium.org/2679333002 Cr-Commit-Position: refs/heads/master@{#450016} Committed: https://chromium.googlesource.com/chromium/src/+/ed35a0fe3dbb990c4782489c3982de49fa6f9059

Patch Set 1 #

Total comments: 18

Patch Set 2 : Merge with master/changes to https://codereview.chromium.org/2680113002/ #

Patch Set 3 : Upload with correct diff. #

Patch Set 4 : Addressed review comments and updated ShelfBackgroundAnimator::animator_ lifetime. #

Total comments: 14

Patch Set 5 : Addressed comments from patch set 4. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -403 lines) Patch
M ash/BUILD.gn View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
A ash/animation/animation_change_type.h View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M ash/common/shelf/shelf_background_animator.h View 1 2 3 4 5 chunks +85 lines, -41 lines 0 comments Download
M ash/common/shelf/shelf_background_animator.cc View 1 2 3 4 4 chunks +132 lines, -90 lines 0 comments Download
M ash/common/shelf/shelf_background_animator_observer.h View 2 1 chunk +2 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_background_animator_unittest.cc View 1 2 3 4 12 chunks +68 lines, -82 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager.h View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager.cc View 1 2 3 4 10 chunks +10 lines, -10 lines 0 comments Download
M ash/common/shelf/shelf_layout_manager_observer.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M ash/common/shelf/shelf_widget.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/shelf/shelf_widget.cc View 1 2 3 4 6 chunks +9 lines, -8 lines 0 comments Download
M ash/common/shelf/wm_shelf.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M ash/common/shelf/wm_shelf.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ash/common/shelf/wm_shelf_observer.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
D ash/common/wm/background_animator.h View 1 2 3 1 chunk +0 lines, -80 lines 0 comments Download
D ash/common/wm/background_animator.cc View 1 chunk +0 lines, -66 lines 0 comments Download
M ash/common/wm/dock/docked_window_layout_manager.cc View 1 2 3 4 5 chunks +9 lines, -9 lines 0 comments Download
M ui/gfx/animation/slide_animation.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/animation/slide_animation.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/animation/slide_animation_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
bruthig
James, can you please look at ash/* changes? Scott, can you please look at ui/* ...
3 years, 10 months ago (2017-02-07 21:36:48 UTC) #3
James Cook
https://codereview.chromium.org/2679333002/diff/1/ash/BUILD.gn File ash/BUILD.gn (left): https://codereview.chromium.org/2679333002/diff/1/ash/BUILD.gn#oldcode469 ash/BUILD.gn:469: "common/wm/background_animator.h", Was this file actually deleted in this CL? ...
3 years, 10 months ago (2017-02-08 00:31:28 UTC) #4
sky
https://codereview.chromium.org/2679333002/diff/1/ui/gfx/animation/slide_animation.h File ui/gfx/animation/slide_animation.h (right): https://codereview.chromium.org/2679333002/diff/1/ui/gfx/animation/slide_animation.h#newcode61 ui/gfx/animation/slide_animation.h:61: void ShowImmediately(); Can you motivate why you want these? ...
3 years, 10 months ago (2017-02-08 03:02:56 UTC) #5
bruthig
Scott, James, I've addressed your comments and re-worked the CL a little bit. James, can ...
3 years, 10 months ago (2017-02-10 18:49:10 UTC) #10
sky
https://codereview.chromium.org/2679333002/diff/60001/ui/gfx/animation/animation_change_type.h File ui/gfx/animation/animation_change_type.h (right): https://codereview.chromium.org/2679333002/diff/60001/ui/gfx/animation/animation_change_type.h#newcode10 ui/gfx/animation/animation_change_type.h:10: enum class AnimationChangeType { ANIMATE, IMMEDIATE }; This isn't ...
3 years, 10 months ago (2017-02-10 20:54:16 UTC) #11
James Cook
LGTM with nits https://codereview.chromium.org/2679333002/diff/60001/ash/common/shelf/shelf_background_animator.cc File ash/common/shelf/shelf_background_animator.cc (right): https://codereview.chromium.org/2679333002/diff/60001/ash/common/shelf/shelf_background_animator.cc#newcode145 ash/common/shelf/shelf_background_animator.cc:145: return animator_ && previous_background_type_ == background_type ...
3 years, 10 months ago (2017-02-10 21:17:34 UTC) #12
bruthig
Scott, can you take another look at: - ui/* - ash/animation/animation_change_type.h https://codereview.chromium.org/2679333002/diff/60001/ash/common/shelf/shelf_background_animator.cc File ash/common/shelf/shelf_background_animator.cc (right): ...
3 years, 10 months ago (2017-02-10 22:45:36 UTC) #17
sky
LGTM
3 years, 10 months ago (2017-02-13 16:30:19 UTC) #20
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/2679333002/80001
3 years, 10 months ago (2017-02-13 17:03:57 UTC) #23
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 18:23:30 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/ed35a0fe3dbb990c4782489c3982...

Powered by Google App Engine
This is Rietveld 408576698