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 "mash/wm/window_manager.h" | 5 #include "mash/wm/window_manager.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "components/mus/common/types.h" | 10 #include "components/mus/common/types.h" |
11 #include "components/mus/public/cpp/window.h" | 11 #include "components/mus/public/cpp/window.h" |
12 #include "components/mus/public/cpp/window_property.h" | 12 #include "components/mus/public/cpp/window_property.h" |
13 #include "components/mus/public/cpp/window_tree_connection.h" | 13 #include "components/mus/public/cpp/window_tree_connection.h" |
14 #include "components/mus/public/interfaces/input_events.mojom.h" | 14 #include "components/mus/public/interfaces/input_events.mojom.h" |
15 #include "components/mus/public/interfaces/mus_constants.mojom.h" | 15 #include "components/mus/public/interfaces/mus_constants.mojom.h" |
16 #include "components/mus/public/interfaces/window_manager.mojom.h" | 16 #include "components/mus/public/interfaces/window_manager.mojom.h" |
17 #include "mash/wm/non_client_frame_controller.h" | 17 #include "mash/wm/non_client_frame_controller.h" |
18 #include "mash/wm/property_util.h" | 18 #include "mash/wm/property_util.h" |
19 #include "mash/wm/public/interfaces/container.mojom.h" | 19 #include "mash/wm/public/interfaces/container.mojom.h" |
20 #include "mash/wm/root_window_controller.h" | 20 #include "mash/wm/root_window_controller.h" |
21 #include "mojo/converters/geometry/geometry_type_converters.h" | 21 #include "mojo/converters/geometry/geometry_type_converters.h" |
22 #include "mojo/shell/public/cpp/application_impl.h" | |
23 | 22 |
24 namespace mash { | 23 namespace mash { |
25 namespace wm { | 24 namespace wm { |
26 | 25 |
27 WindowManager::WindowManager() | 26 WindowManager::WindowManager() |
28 : root_controller_(nullptr), | 27 : root_controller_(nullptr), |
29 window_manager_client_(nullptr), | 28 window_manager_client_(nullptr), |
30 binding_(this) {} | 29 binding_(this) {} |
31 | 30 |
32 WindowManager::~WindowManager() { | 31 WindowManager::~WindowManager() { |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 166 |
168 void WindowManager::ScreenlockStateChanged(bool locked) { | 167 void WindowManager::ScreenlockStateChanged(bool locked) { |
169 // Hide USER_PRIVATE windows when the screen is locked. | 168 // Hide USER_PRIVATE windows when the screen is locked. |
170 mus::Window* window = root_controller_->GetWindowForContainer( | 169 mus::Window* window = root_controller_->GetWindowForContainer( |
171 mash::wm::mojom::Container::USER_PRIVATE); | 170 mash::wm::mojom::Container::USER_PRIVATE); |
172 window->SetVisible(!locked); | 171 window->SetVisible(!locked); |
173 } | 172 } |
174 | 173 |
175 } // namespace wm | 174 } // namespace wm |
176 } // namespace mash | 175 } // namespace mash |
OLD | NEW |