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

Issue 9388018: Compact layout mananger animates windows rather than the default container layer. (Closed)

Created:
8 years, 10 months ago by Ian Vollick
Modified:
8 years, 10 months ago
Reviewers:
alicet1, sky
CC:
chromium-reviews, dhollowa+watch_chromium.org, sadrul, ben+watch_chromium.org, alicet1
Visibility:
Public.

Description

With this change, the windows are animated rather than the default container layer. This allows the default container to remain the same size. BUG=113729 TEST=run with --aura-window-mode=compact and open many windows. Screen should not shrink.

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -40 lines) Patch
M ash/wm/compact_layout_manager.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/compact_layout_manager.cc View 1 2 3 7 chunks +46 lines, -28 lines 2 comments Download
M ash/wm/compact_layout_manager_unittest.cc View 1 2 3 2 chunks +11 lines, -10 lines 0 comments Download
M ui/gfx/compositor/scoped_layer_animation_settings.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M ui/gfx/compositor/scoped_layer_animation_settings.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Ian Vollick
8 years, 10 months ago (2012-02-13 19:50:15 UTC) #1
sky
https://chromiumcodereview.appspot.com/9388018/diff/1/ash/wm/compact_layout_manager.cc File ash/wm/compact_layout_manager.cc (right): https://chromiumcodereview.appspot.com/9388018/diff/1/ash/wm/compact_layout_manager.cc#newcode153 ash/wm/compact_layout_manager.cc:153: ScopedVector<ui::ScopedLayerAnimationSettings> settings; Is there a reason you're creating this ...
8 years, 10 months ago (2012-02-13 22:21:13 UTC) #2
alicet1
Talked to ian offline, I'll also mention it here. it's hard for me to imagine ...
8 years, 10 months ago (2012-02-13 22:32:46 UTC) #3
Ian Vollick
On 2012/02/13 22:21:13, sky wrote: > https://chromiumcodereview.appspot.com/9388018/diff/1/ash/wm/compact_layout_manager.cc > File ash/wm/compact_layout_manager.cc (right): > > https://chromiumcodereview.appspot.com/9388018/diff/1/ash/wm/compact_layout_manager.cc#newcode153 > ...
8 years, 10 months ago (2012-02-14 01:10:49 UTC) #4
Ian Vollick
On 2012/02/13 22:32:46, alicet1 wrote: > Talked to ian offline, I'll also mention it here. ...
8 years, 10 months ago (2012-02-14 02:32:15 UTC) #5
sky
Ick. Please add a comment for this. -Scott On Mon, Feb 13, 2012 at 5:10 ...
8 years, 10 months ago (2012-02-14 04:41:42 UTC) #6
alicet1
8 years, 10 months ago (2012-02-14 16:04:39 UTC) #7
lgtm

thanks for checking. also please check that screen lock locks and unlocks ok on
non-first windows, the hiding/visiblity of windows is a little tricky at times.

thanx,
alice

http://codereview.chromium.org/9388018/diff/1002/ash/wm/compact_layout_manage...
File ash/wm/compact_layout_manager.cc (right):

http://codereview.chromium.org/9388018/diff/1002/ash/wm/compact_layout_manage...
ash/wm/compact_layout_manager.cc:175: settings[settings.size() -
1]->AddObserver(this);
settings.back()?

http://codereview.chromium.org/9388018/diff/1002/ash/wm/compact_layout_manage...
ash/wm/compact_layout_manager.cc:178: gfx::Rect bounds =
(*const_it)->layer()->bounds();
should this be GetTargetBounds() ?

Powered by Google App Engine
This is Rietveld 408576698