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

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

Issue 2249953002: Do not automatically maximize the window if the maximized bounds can be controlled by the client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 bb97c7d6620c0839f2e64afb25d3b5ea3efe000a..3d0ea92f86cd16b0851dfe9ccc992063b9df4116 100644
--- a/ash/common/wm/maximize_mode/maximize_mode_window_manager.cc
+++ b/ash/common/wm/maximize_mode/maximize_mode_window_manager.cc
@@ -228,6 +228,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