| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/window_manager.h" | 5 #include "ash/mus/window_manager.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "ash/common/shell_window_ids.h" | 11 #include "ash/common/shell_window_ids.h" |
| 12 #include "ash/common/wm/container_finder.h" | 12 #include "ash/common/wm/container_finder.h" |
| 13 #include "ash/mus/bridge/wm_window_mus.h" | 13 #include "ash/mus/bridge/wm_window_mus.h" |
| 14 #include "ash/mus/non_client_frame_controller.h" | 14 #include "ash/mus/non_client_frame_controller.h" |
| 15 #include "ash/mus/property_util.h" | 15 #include "ash/mus/property_util.h" |
| 16 #include "ash/mus/root_window_controller.h" | 16 #include "ash/mus/root_window_controller.h" |
| 17 #include "ash/public/interfaces/container.mojom.h" | 17 #include "ash/public/interfaces/container.mojom.h" |
| 18 #include "components/mus/common/types.h" | 18 #include "components/mus/common/types.h" |
| 19 #include "components/mus/public/cpp/property_type_converters.h" | 19 #include "components/mus/public/cpp/property_type_converters.h" |
| 20 #include "components/mus/public/cpp/window.h" | 20 #include "components/mus/public/cpp/window.h" |
| 21 #include "components/mus/public/cpp/window_property.h" | 21 #include "components/mus/public/cpp/window_property.h" |
| 22 #include "components/mus/public/cpp/window_tree_client.h" | 22 #include "components/mus/public/cpp/window_tree_client.h" |
| 23 #include "components/mus/public/interfaces/input_events.mojom.h" | |
| 24 #include "components/mus/public/interfaces/mus_constants.mojom.h" | 23 #include "components/mus/public/interfaces/mus_constants.mojom.h" |
| 25 #include "components/mus/public/interfaces/window_manager.mojom.h" | 24 #include "components/mus/public/interfaces/window_manager.mojom.h" |
| 25 #include "ui/events/mojo/event.mojom.h" |
| 26 | 26 |
| 27 namespace ash { | 27 namespace ash { |
| 28 namespace mus { | 28 namespace mus { |
| 29 | 29 |
| 30 WindowManager::WindowManager() | 30 WindowManager::WindowManager() |
| 31 : root_controller_(nullptr), | 31 : root_controller_(nullptr), |
| 32 window_manager_client_(nullptr), | 32 window_manager_client_(nullptr), |
| 33 binding_(this) {} | 33 binding_(this) {} |
| 34 | 34 |
| 35 WindowManager::~WindowManager() {} | 35 WindowManager::~WindowManager() {} |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 void WindowManager::ScreenlockStateChanged(bool locked) { | 217 void WindowManager::ScreenlockStateChanged(bool locked) { |
| 218 WmWindowMus* non_lock_screen_containers_container = | 218 WmWindowMus* non_lock_screen_containers_container = |
| 219 root_controller_->GetWindowByShellWindowId( | 219 root_controller_->GetWindowByShellWindowId( |
| 220 kShellWindowId_NonLockScreenContainersContainer); | 220 kShellWindowId_NonLockScreenContainersContainer); |
| 221 non_lock_screen_containers_container->mus_window()->SetVisible(!locked); | 221 non_lock_screen_containers_container->mus_window()->SetVisible(!locked); |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace mus | 224 } // namespace mus |
| 225 } // namespace ash | 225 } // namespace ash |
| OLD | NEW |