diff options
author | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-23 04:19:58 +0000 |
---|---|---|
committer | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-23 04:19:58 +0000 |
commit | b1ac3d5897d98e16d0c05a4e96a16a06d1fe0339 (patch) | |
tree | 200d8faff53d22ab6a2522231daa77c5f17d33d0 /ash/wm | |
parent | d99e6bfe45c78b5ef9a947041c860366b1fa85f8 (diff) | |
download | chromium_src-b1ac3d5897d98e16d0c05a4e96a16a06d1fe0339.zip chromium_src-b1ac3d5897d98e16d0c05a4e96a16a06d1fe0339.tar.gz chromium_src-b1ac3d5897d98e16d0c05a4e96a16a06d1fe0339.tar.bz2 |
Fixing odd animations for the backdrop when exiting / entering overview / maximize mode & missing fill behind shelf
BUG=365866, 365740
TEST=visual
Review URL: https://codereview.chromium.org/248413002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm')
-rw-r--r-- | ash/wm/maximize_mode/workspace_backdrop_delegate.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ash/wm/maximize_mode/workspace_backdrop_delegate.cc b/ash/wm/maximize_mode/workspace_backdrop_delegate.cc index 0b7fc01..4e8a259 100644 --- a/ash/wm/maximize_mode/workspace_backdrop_delegate.cc +++ b/ash/wm/maximize_mode/workspace_backdrop_delegate.cc @@ -37,8 +37,15 @@ WorkspaceBackdropDelegate::WorkspaceBackdropDelegate(aura::Window* container) // activateable. params.can_activate = false; background_->Init(params); + // Do not use the animation system. We don't want the bounds animation and + // opacity needs to get set to |kBackdropOpacity|. + ::wm::SetWindowVisibilityAnimationTransition( + background_->GetNativeView(), + ::wm::ANIMATE_NONE); background_->GetNativeView()->SetName("WorkspaceBackdropDelegate"); background_->GetNativeView()->layer()->SetColor(SK_ColorBLACK); + // Make sure that the layer covers visibly everything - including the shelf. + background_->GetNativeView()->layer()->SetBounds(params.bounds); Show(); RestackBackdrop(); container_->AddObserver(this); |