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

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: ScopedHidingAnimationSettings 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') | ui/wm/core/window_animations.h » ('J')
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 093e403b4ffb0ec324c32268cfa512f4127a4cdb..833f0ef6dbc6bc277827e022bc5f11f4bcdf5a67 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,10 @@ WorkspaceBackdropDelegate::WorkspaceBackdropDelegate(aura::Window* container)
WorkspaceBackdropDelegate::~WorkspaceBackdropDelegate() {
container_->RemoveObserver(this);
- ui::ScopedLayerAnimationSettings settings(
- background_->GetNativeView()->layer()->GetAnimator());
+ views::corewm::ScopedHidingAnimationSettings hiding_settings(
+ background_->GetNativeView());
+ hiding_settings.set_ensure_visible_after_focus_lost(true);
background_->Close();
- settings.AddObserver(views::corewm::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') | ui/wm/core/window_animations.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698