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

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 | « no previous file | ash/wm/window_animations.cc » ('j') | ui/views/corewm/window_animations.h » ('J')
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 3e0960d24b87e2e090dc53dc8c1ee6d0e9e8047c..f4ddcacdf8a8919e604a4a2273e5dba6d8627741 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -177,8 +177,8 @@ void SystemModalContainerLayoutManager::DestroyModalBackground() {
ui::ScopedLayerAnimationSettings settings(
modal_background_->GetNativeView()->layer()->GetAnimator());
modal_background_->Close();
- settings.AddObserver(views::corewm::CreateHidingWindowAnimationObserver(
- modal_background_->GetNativeView()));
+ views::corewm::DetachLayersForHidingAnimationWhenDestroyed(
+ modal_background_->GetNativeView(), &settings);
modal_background_->GetNativeView()->layer()->SetOpacity(0.0f);
modal_background_ = NULL;
}
« no previous file with comments | « no previous file | ash/wm/window_animations.cc » ('j') | ui/views/corewm/window_animations.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698