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

Unified Diff: ash/wm/overview/scoped_overview_animation_settings.cc

Issue 810033010: Remove TransparentActivateWindowButton from Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits Created 5 years, 11 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
Index: ash/wm/overview/scoped_overview_animation_settings.cc
diff --git a/ash/wm/overview/scoped_overview_animation_settings.cc b/ash/wm/overview/scoped_overview_animation_settings.cc
index e0cf9776e9cbe09039d7aafdd716cc5d22ce2735..9dc172d2dbb3011d22385bf495dd2d8aa58ee0ba 100644
--- a/ash/wm/overview/scoped_overview_animation_settings.cc
+++ b/ash/wm/overview/scoped_overview_animation_settings.cc
@@ -73,4 +73,15 @@ ScopedOverviewAnimationSettings::ScopedOverviewAnimationSettings(
ScopedOverviewAnimationSettings::~ScopedOverviewAnimationSettings() {
}
+// static:
+void ScopedOverviewAnimationSettings::SetupFadeInAfterLayout(
+ aura::Window* window) {
+ ui::Layer* layer = window->layer();
+ layer->SetOpacity(0.0f);
+ ScopedOverviewAnimationSettings animation_settings(
+ OverviewAnimationType::OVERVIEW_ANIMATION_ENTER_OVERVIEW_MODE_FADE_IN,
+ window);
+ layer->SetOpacity(1.0f);
+}
+
} // namespace ash
« no previous file with comments | « ash/wm/overview/scoped_overview_animation_settings.h ('k') | ash/wm/overview/scoped_transform_overview_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698