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

Unified Diff: ash/common/wm/overview/scoped_transform_overview_window.cc

Issue 2525753002: Restore original opacity when exiting overview (Closed)
Patch Set: Created 4 years, 1 month 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/common/wm/overview/scoped_transform_overview_window.cc
diff --git a/ash/common/wm/overview/scoped_transform_overview_window.cc b/ash/common/wm/overview/scoped_transform_overview_window.cc
index f60a528d1dff13b00f590212465be162502af730..a98c169c0431abccc3bc003634d1b5fd1f7eadd8 100644
--- a/ash/common/wm/overview/scoped_transform_overview_window.cc
+++ b/ash/common/wm/overview/scoped_transform_overview_window.cc
@@ -173,6 +173,7 @@ ScopedTransformOverviewWindow::ScopedTransformOverviewWindow(WmWindow* window)
ignored_by_shelf_(window->GetWindowState()->ignored_by_shelf()),
overview_started_(false),
original_transform_(window->GetTargetTransform()),
+ original_opacity_(window->GetTargetOpacity()),
weak_ptr_factory_(this) {}
ScopedTransformOverviewWindow::~ScopedTransformOverviewWindow() {}
@@ -194,6 +195,7 @@ void ScopedTransformOverviewWindow::RestoreWindow() {
OverviewAnimationType::OVERVIEW_ANIMATION_LAY_OUT_SELECTOR_ITEMS,
window_);
window_->GetWindowState()->set_ignored_by_shelf(ignored_by_shelf_);
+ SetOpacity(original_opacity_);
}
void ScopedTransformOverviewWindow::BeginScopedAnimation(
« no previous file with comments | « ash/common/wm/overview/scoped_transform_overview_window.h ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698