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

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

Issue 2918403006: CrOS Tablet Window management - Split Screen part I (Closed)
Patch Set: Add unittests. Will split the CL into two CLs. Created 3 years, 6 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 41cd8ad188b32b6781c3b408fe1ae2d4d2ae420e..94ef03606f56120a3ae96bc7fc43b0c60b25d79e 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_manager.cc
+++ b/ash/wm/maximize_mode/maximize_mode_window_manager.cc
@@ -86,6 +86,14 @@ void MaximizeModeWindowManager::OnOverviewModeEnded() {
SetDeferBoundsUpdates(false);
}
+void MaximizeModeWindowManager::OnSplitViewModeEnded() {
+ // Maximize All windows upon exit split view mode.
+ for (auto& pair : window_state_map_) {
+ wm::WMEvent event(wm::WM_EVENT_MAXIMIZE);
+ wm::GetWindowState(pair.first)->OnWMEvent(&event);
+ }
+}
+
void MaximizeModeWindowManager::OnWindowDestroying(aura::Window* window) {
if (IsContainerWindow(window)) {
// container window can be removed on display destruction.
« 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