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

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

Issue 2960843004: CrOS Tablet Window management - Split Screen part I (Closed)
Patch Set: nit. 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.
varkha 2017/06/30 14:29:34 nits: All -> all, exit -> exiting
xdai1 2017/07/05 20:18:22 Done.
+ 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.

Powered by Google App Engine
This is Rietveld 408576698