| 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/wm/maximize_mode/maximize_mode_window_manager.h" |
| 6 | 6 |
| 7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/public/cpp/shell_window_ids.h" | 8 #include "ash/public/cpp/shell_window_ids.h" |
| 9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 10 #include "ash/session/session_state_delegate.h" | |
| 11 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 12 #include "ash/shell_port.h" | 11 #include "ash/shell_port.h" |
| 13 #include "ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h" | 12 #include "ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h" |
| 14 #include "ash/wm/maximize_mode/maximize_mode_event_handler.h" | 13 #include "ash/wm/maximize_mode/maximize_mode_event_handler.h" |
| 15 #include "ash/wm/maximize_mode/maximize_mode_window_state.h" | 14 #include "ash/wm/maximize_mode/maximize_mode_window_state.h" |
| 16 #include "ash/wm/mru_window_tracker.h" | 15 #include "ash/wm/mru_window_tracker.h" |
| 17 #include "ash/wm/overview/window_selector_controller.h" | 16 #include "ash/wm/overview/window_selector_controller.h" |
| 18 #include "ash/wm/window_state.h" | 17 #include "ash/wm/window_state.h" |
| 19 #include "ash/wm/wm_event.h" | 18 #include "ash/wm/wm_event.h" |
| 20 #include "ash/wm/workspace_controller.h" | 19 #include "ash/wm/workspace_controller.h" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 // Inform the WorkspaceLayoutManager that we want to show a backdrop behind | 299 // Inform the WorkspaceLayoutManager that we want to show a backdrop behind |
| 301 // the topmost window of its container. | 300 // the topmost window of its container. |
| 302 for (auto* controller : Shell::GetAllRootWindowControllers()) { | 301 for (auto* controller : Shell::GetAllRootWindowControllers()) { |
| 303 controller->workspace_controller()->SetBackdropDelegate( | 302 controller->workspace_controller()->SetBackdropDelegate( |
| 304 enable ? base::MakeUnique<MaximizeModeBackdropDelegateImpl>() | 303 enable ? base::MakeUnique<MaximizeModeBackdropDelegateImpl>() |
| 305 : nullptr); | 304 : nullptr); |
| 306 } | 305 } |
| 307 } | 306 } |
| 308 | 307 |
| 309 } // namespace ash | 308 } // namespace ash |
| OLD | NEW |