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

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

Issue 2811153002: Restore bounds after the screen is restored in clamshell (Closed)
Patch Set: Restore bounds after completely transitioned to clamshell. Created 3 years, 8 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/maximize_mode/maximize_mode_window_manager.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_window_manager.cc b/ash/wm/maximize_mode/maximize_mode_window_manager.cc
index 89f50ec024082a13c41a00959ff3f56d5f606f98..0139baf11fffa27fc8e614c082289d63ac98c5ba 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_manager.cc
+++ b/ash/wm/maximize_mode/maximize_mode_window_manager.cc
@@ -196,6 +196,12 @@ void MaximizeModeWindowManager::OnDisplayMetricsChanged(const display::Display&,
// Nothing to do here.
}
+void MaximizeModeWindowManager::SetIgnoreWmEventsForExit() {
+ for (auto& pair : window_state_map_) {
+ pair.second->set_ignore_wm_events(true);
+ }
+}
+
MaximizeModeWindowManager::MaximizeModeWindowManager()
: backdrops_hidden_(false) {
// The overview mode needs to be ended before the maximize mode is started. To
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager.h ('k') | ash/wm/maximize_mode/maximize_mode_window_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698