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

Unified Diff: ash/wm/maximize_mode/workspace_backdrop_delegate.cc

Issue 180273025: Keep dedicated layers for hiding animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/system_modal_container_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/workspace_backdrop_delegate.cc
diff --git a/ash/wm/maximize_mode/workspace_backdrop_delegate.cc b/ash/wm/maximize_mode/workspace_backdrop_delegate.cc
index 54347a230b2799dc7f9e3d19515747c16afc0a04..455f3626eaeace8d0141fe8b4f3e61087d5431fb 100644
--- a/ash/wm/maximize_mode/workspace_backdrop_delegate.cc
+++ b/ash/wm/maximize_mode/workspace_backdrop_delegate.cc
@@ -12,6 +12,7 @@
#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/views/background.h"
#include "ui/views/widget/widget.h"
+#include "ui/wm/core/window_animations.h"
#include "ui/wm/core/window_util.h"
namespace ash {
@@ -48,11 +49,9 @@ WorkspaceBackdropDelegate::WorkspaceBackdropDelegate(aura::Window* container)
WorkspaceBackdropDelegate::~WorkspaceBackdropDelegate() {
container_->RemoveObserver(this);
- ui::ScopedLayerAnimationSettings settings(
- background_->GetNativeView()->layer()->GetAnimator());
+ ::wm::ScopedHidingAnimationSettings hiding_settings(
+ background_->GetNativeView());
background_->Close();
- settings.AddObserver(::wm::CreateHidingWindowAnimationObserver(
- background_->GetNativeView()));
background_->GetNativeView()->layer()->SetOpacity(0.0f);
}
« no previous file with comments | « no previous file | ash/wm/system_modal_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698