| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" | 5 #include "ash/common/wm/maximize_mode/maximize_mode_window_manager.h" |
| 6 | 6 |
| 7 #include "ash/common/ash_switches.h" | 7 #include "ash/common/ash_switches.h" |
| 8 #include "ash/common/session/session_state_delegate.h" | 8 #include "ash/common/session/session_state_delegate.h" |
| 9 #include "ash/common/shell_window_ids.h" | 9 #include "ash/common/shell_window_ids.h" |
| 10 #include "ash/common/wm/maximize_mode/maximize_mode_event_handler.h" | 10 #include "ash/common/wm/maximize_mode/maximize_mode_event_handler.h" |
| 11 #include "ash/common/wm/maximize_mode/maximize_mode_window_state.h" |
| 12 #include "ash/common/wm/maximize_mode/workspace_backdrop_delegate.h" |
| 11 #include "ash/common/wm/mru_window_tracker.h" | 13 #include "ash/common/wm/mru_window_tracker.h" |
| 12 #include "ash/common/wm/overview/window_selector_controller.h" | 14 #include "ash/common/wm/overview/window_selector_controller.h" |
| 13 #include "ash/common/wm/window_state.h" | 15 #include "ash/common/wm/window_state.h" |
| 14 #include "ash/common/wm/wm_event.h" | 16 #include "ash/common/wm/wm_event.h" |
| 15 #include "ash/common/wm_root_window_controller.h" | 17 #include "ash/common/wm_root_window_controller.h" |
| 16 #include "ash/common/wm_shell.h" | 18 #include "ash/common/wm_shell.h" |
| 17 #include "ash/common/wm_window.h" | 19 #include "ash/common/wm_window.h" |
| 18 #include "ash/common/wm_window_property.h" | 20 #include "ash/common/wm_window_property.h" |
| 19 #include "ash/wm/maximize_mode/maximize_mode_window_state.h" | |
| 20 #include "ash/wm/maximize_mode/workspace_backdrop_delegate.h" | |
| 21 #include "base/command_line.h" | 21 #include "base/command_line.h" |
| 22 #include "base/memory/ptr_util.h" | 22 #include "base/memory/ptr_util.h" |
| 23 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
| 24 #include "ui/display/screen.h" | 24 #include "ui/display/screen.h" |
| 25 | 25 |
| 26 namespace ash { | 26 namespace ash { |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 // Exits overview mode if it is currently active. | 30 // Exits overview mode if it is currently active. |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 for (WmWindow* root : WmShell::Get()->GetAllRootWindows()) { | 276 for (WmWindow* root : WmShell::Get()->GetAllRootWindows()) { |
| 277 WmRootWindowController* controller = root->GetRootWindowController(); | 277 WmRootWindowController* controller = root->GetRootWindowController(); |
| 278 WmWindow* default_container = | 278 WmWindow* default_container = |
| 279 root->GetChildByShellWindowId(kShellWindowId_DefaultContainer); | 279 root->GetChildByShellWindowId(kShellWindowId_DefaultContainer); |
| 280 controller->SetMaximizeBackdropDelegate(base::WrapUnique( | 280 controller->SetMaximizeBackdropDelegate(base::WrapUnique( |
| 281 enable ? new WorkspaceBackdropDelegate(default_container) : nullptr)); | 281 enable ? new WorkspaceBackdropDelegate(default_container) : nullptr)); |
| 282 } | 282 } |
| 283 } | 283 } |
| 284 | 284 |
| 285 } // namespace ash | 285 } // namespace ash |
| OLD | NEW |