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

Unified Diff: ash/wm/system_modal_container_layout_manager.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 | « ash/wm/maximize_mode/workspace_backdrop_delegate.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/system_modal_container_layout_manager.cc
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
index a1432c6b9cfb3acfe3075d068d70895a725f87fa..69375010c7fd3477e5e50ef7e92441743d440d0c 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -176,11 +176,9 @@ void SystemModalContainerLayoutManager::DestroyModalBackground() {
// modal_background_ can be NULL when a root window is shutting down
// and OnWindowDestroying is called first.
if (modal_background_) {
- ui::ScopedLayerAnimationSettings settings(
- modal_background_->GetNativeView()->layer()->GetAnimator());
+ ::wm::ScopedHidingAnimationSettings settings(
+ modal_background_->GetNativeView());
modal_background_->Close();
- settings.AddObserver(::wm::CreateHidingWindowAnimationObserver(
- modal_background_->GetNativeView()));
modal_background_->GetNativeView()->layer()->SetOpacity(0.0f);
modal_background_ = NULL;
}
« no previous file with comments | « ash/wm/maximize_mode/workspace_backdrop_delegate.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698