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

Unified Diff: ash/common/wm/maximize_mode/maximize_mode_window_manager.cc

Issue 2264443002: Do not automatically maximize the window if the maximized bounds can be controlled by the client in… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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/maximize_mode/maximize_mode_window_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/maximize_mode/maximize_mode_window_manager.cc
diff --git a/ash/common/wm/maximize_mode/maximize_mode_window_manager.cc b/ash/common/wm/maximize_mode/maximize_mode_window_manager.cc
index 3e2b9625689df0fb0e8e26bee1589d8556d4e0b2..f393fd618fcb21b47bc23e0a4e6077ff62ca883b 100644
--- a/ash/common/wm/maximize_mode/maximize_mode_window_manager.cc
+++ b/ash/common/wm/maximize_mode/maximize_mode_window_manager.cc
@@ -227,6 +227,11 @@ bool MaximizeModeWindowManager::ShouldHandleWindow(WmWindow* window) {
if (window->GetWindowState()->IsDocked())
return false;
+ // If the changing bounds in the maximized/fullscreen is allowed, then
+ // let the client manage it even in maximized mode.
+ if (window->GetWindowState()->allow_set_bounds_in_maximized())
+ return false;
+
return window->GetType() == ui::wm::WINDOW_TYPE_NORMAL;
}
« no previous file with comments | « no previous file | ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698