| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/mus/root_window_controller.h" | 5 #include "ash/mus/root_window_controller.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 Shutdown(); | 77 Shutdown(); |
| 78 root_->Destroy(); | 78 root_->Destroy(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void RootWindowController::Shutdown() { | 81 void RootWindowController::Shutdown() { |
| 82 // NOTE: Shutdown() may be called multiple times. | 82 // NOTE: Shutdown() may be called multiple times. |
| 83 wm_root_window_controller_->ResetRootForNewWindowsIfNecessary(); | 83 wm_root_window_controller_->ResetRootForNewWindowsIfNecessary(); |
| 84 wm_root_window_controller_->CloseChildWindows(); | 84 wm_root_window_controller_->CloseChildWindows(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 shell::Connector* RootWindowController::GetConnector() { | 87 service_manager::Connector* RootWindowController::GetConnector() { |
| 88 return window_manager_->connector(); | 88 return window_manager_->connector(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 ui::Window* RootWindowController::NewTopLevelWindow( | 91 ui::Window* RootWindowController::NewTopLevelWindow( |
| 92 std::map<std::string, std::vector<uint8_t>>* properties) { | 92 std::map<std::string, std::vector<uint8_t>>* properties) { |
| 93 const bool provide_non_client_frame = | 93 const bool provide_non_client_frame = |
| 94 GetWindowType(*properties) == ui::mojom::WindowType::WINDOW || | 94 GetWindowType(*properties) == ui::mojom::WindowType::WINDOW || |
| 95 GetWindowType(*properties) == ui::mojom::WindowType::PANEL; | 95 GetWindowType(*properties) == ui::mojom::WindowType::PANEL; |
| 96 if (provide_non_client_frame) | 96 if (provide_non_client_frame) |
| 97 (*properties)[ui::mojom::kWaitForUnderlay_Property].clear(); | 97 (*properties)[ui::mojom::kWaitForUnderlay_Property].clear(); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 void RootWindowController::CreateLayoutManagers() { | 180 void RootWindowController::CreateLayoutManagers() { |
| 181 // Override the default layout managers for certain containers. | 181 // Override the default layout managers for certain containers. |
| 182 WmWindowMus* lock_screen_container = | 182 WmWindowMus* lock_screen_container = |
| 183 GetWindowByShellWindowId(kShellWindowId_LockScreenContainer); | 183 GetWindowByShellWindowId(kShellWindowId_LockScreenContainer); |
| 184 layout_managers_[lock_screen_container->mus_window()].reset( | 184 layout_managers_[lock_screen_container->mus_window()].reset( |
| 185 new ScreenlockLayout(lock_screen_container->mus_window())); | 185 new ScreenlockLayout(lock_screen_container->mus_window())); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace mus | 188 } // namespace mus |
| 189 } // namespace ash | 189 } // namespace ash |
| OLD | NEW |