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

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

Issue 2129213003: [ash-md] Hides frame headers in overview mode not using a mask (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Hides frame headers in overview mode not using a mask (comments) Created 4 years, 5 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/common/wm/overview/window_grid.cc
diff --git a/ash/common/wm/overview/window_grid.cc b/ash/common/wm/overview/window_grid.cc
index acc094fa44571115533d014e78cf57a3cd9199c1..10003074a2dd524a2c284f7ff9437a0cccf6b66e 100644
--- a/ash/common/wm/overview/window_grid.cc
+++ b/ash/common/wm/overview/window_grid.cc
@@ -783,6 +783,10 @@ void WindowGrid::OnWindowBoundsChanged(WmWindow* window,
// Immediately finish any active bounds animation.
window->StopAnimatingProperty(ui::LayerAnimationElement::BOUNDS);
+ if (ash::MaterialDesignController::IsOverviewMaterial()) {
+ PositionWindows(false);
+ return;
+ }
// Recompute the transform for the window.
(*iter)->RecomputeWindowTransforms();
}
« no previous file with comments | « ash/common/wm/overview/scoped_transform_overview_window.cc ('k') | ash/common/wm/overview/window_selector_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698