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

Issue 82573002: Changes sequence of docked animations when evicting windows from dock. (Closed)

Created:
7 years, 1 month ago by varkha
Modified:
7 years ago
Reviewers:
Ian Vollick, James Cook
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Changes sequence of docked animations when evicting windows from dock. Windows that are restored into docked area are slid from below rather than from above as before. Additionally minimizing animation for the windows that no longer fit in the dock is slowed down in hopes of making it less confusing. To allow this a new ScopedLayerAnimationSettings::LockTransitionDuration method is introduced which locks the current animation transition duration until the ScopedLayerAnimationSettings object that invoked it goes out of scope. BUG=323188 TEST=ash_unittests --gtest_filter=WindowAnimationsTest.LockAnimationDuration Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238212

Patch Set 1 #

Patch Set 2 : Changes sequence of docked animations when evicting windows from dock #

Patch Set 3 : Changes sequence of docked animations (locking transition duration) #

Patch Set 4 : Changes sequence of docked animations (added test) #

Total comments: 5

Patch Set 5 : Changes sequence of docked animations (comments) #

Total comments: 8

Patch Set 6 : Changes sequence of docked animations (nits) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -16 lines) Patch
M ash/wm/dock/docked_window_layout_manager.cc View 1 2 3 4 5 4 chunks +13 lines, -5 lines 0 comments Download
M ash/wm/window_animations.cc View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M ash/wm/window_animations_unittest.cc View 1 2 3 4 5 3 chunks +106 lines, -0 lines 0 comments Download
M ui/compositor/layer_animator.h View 1 2 3 3 chunks +10 lines, -3 lines 0 comments Download
M ui/compositor/layer_animator.cc View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M ui/compositor/scoped_layer_animation_settings.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M ui/compositor/scoped_layer_animation_settings.cc View 1 2 3 4 3 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
varkha
vollick@, Could you please take a look and see if you can suggest an acceptable ...
7 years, 1 month ago (2013-11-22 03:54:36 UTC) #1
Ian Vollick
On 2013/11/22 03:54:36, varkha wrote: > vollick@, Could you please take a look and see ...
7 years, 1 month ago (2013-11-22 04:07:30 UTC) #2
varkha
> Won't ScopedLayerAnimationSettings::SetTransitionDuration do what you need? I was hoping it would but minimizing animation ...
7 years, 1 month ago (2013-11-22 05:12:20 UTC) #3
varkha
vollick@, ping to look at proposed changes.
7 years ago (2013-11-25 16:06:22 UTC) #4
Ian Vollick
On 2013/11/25 16:06:22, varkha wrote: > vollick@, ping to look at proposed changes. So sorry ...
7 years ago (2013-11-25 21:58:04 UTC) #5
varkha
vollick@, could you please take another look? I've added ability to lock the duration. Is ...
7 years ago (2013-11-27 18:18:02 UTC) #6
Ian Vollick
On 2013/11/27 18:18:02, varkha wrote: > vollick@, could you please take another look? I've added ...
7 years ago (2013-11-28 00:34:30 UTC) #7
Ian Vollick
> Do you foresee nested scoped locked duration (I thought this would be an overkill)? ...
7 years ago (2013-11-28 00:40:55 UTC) #8
varkha
Thanks. Can you please see if this is better? I considered this approach before but ...
7 years ago (2013-11-28 16:19:31 UTC) #9
varkha
https://codereview.chromium.org/82573002/diff/210001/ash/wm/window_animations_unittest.cc File ash/wm/window_animations_unittest.cc (right): https://codereview.chromium.org/82573002/diff/210001/ash/wm/window_animations_unittest.cc#newcode139 ash/wm/window_animations_unittest.cc:139: TEST_F(WindowAnimationsTest, LockAnimationDuration) { I thought a test for the ...
7 years ago (2013-11-28 21:50:42 UTC) #10
Ian Vollick
I really like this. Thanks for making these changes. I just have a few small ...
7 years ago (2013-11-29 04:33:31 UTC) #11
varkha
Thanks! I like it more indeed with less corner cases to worry about. https://codereview.chromium.org/82573002/diff/210001/ui/compositor/scoped_layer_animation_settings.cc File ...
7 years ago (2013-11-29 06:05:53 UTC) #12
varkha
+jamescook for OWNERS review in ash/wm. This changes the sequence of animations following the last ...
7 years ago (2013-11-29 06:20:15 UTC) #13
varkha
Pinging this issue. Thanks!
7 years ago (2013-12-02 16:31:36 UTC) #14
Ian Vollick
On 2013/12/02 16:31:36, varkha wrote: > Pinging this issue. Thanks! ui/compositor lgtm.
7 years ago (2013-12-02 17:03:48 UTC) #15
James Cook
ash/wm LGTM with a few nits https://codereview.chromium.org/82573002/diff/290009/ash/wm/window_animations_unittest.cc File ash/wm/window_animations_unittest.cc (right): https://codereview.chromium.org/82573002/diff/290009/ash/wm/window_animations_unittest.cc#newcode140 ash/wm/window_animations_unittest.cc:140: ui::ScopedAnimationDurationScaleMode long_duration( Did ...
7 years ago (2013-12-02 18:33:50 UTC) #16
varkha
Thanks for the review! https://codereview.chromium.org/82573002/diff/290009/ash/wm/window_animations_unittest.cc File ash/wm/window_animations_unittest.cc (right): https://codereview.chromium.org/82573002/diff/290009/ash/wm/window_animations_unittest.cc#newcode140 ash/wm/window_animations_unittest.cc:140: ui::ScopedAnimationDurationScaleMode long_duration( On 2013/12/02 18:33:51, ...
7 years ago (2013-12-02 20:18:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/82573002/330001
7 years ago (2013-12-02 20:20:38 UTC) #18
commit-bot: I haz the power
7 years ago (2013-12-02 22:35:53 UTC) #19
Message was sent while issue was closed.
Change committed as 238212

Powered by Google App Engine
This is Rietveld 408576698