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 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
| 11 #include "ash/common/wm/container_finder.h" |
11 #include "ash/public/interfaces/container.mojom.h" | 12 #include "ash/public/interfaces/container.mojom.h" |
12 #include "ash/wm/common/container_finder.h" | |
13 #include "components/mus/common/types.h" | 13 #include "components/mus/common/types.h" |
14 #include "components/mus/public/cpp/property_type_converters.h" | 14 #include "components/mus/public/cpp/property_type_converters.h" |
15 #include "components/mus/public/cpp/window.h" | 15 #include "components/mus/public/cpp/window.h" |
16 #include "components/mus/public/cpp/window_property.h" | 16 #include "components/mus/public/cpp/window_property.h" |
17 #include "components/mus/public/cpp/window_tree_client.h" | 17 #include "components/mus/public/cpp/window_tree_client.h" |
18 #include "components/mus/public/interfaces/input_events.mojom.h" | 18 #include "components/mus/public/interfaces/input_events.mojom.h" |
19 #include "components/mus/public/interfaces/mus_constants.mojom.h" | 19 #include "components/mus/public/interfaces/mus_constants.mojom.h" |
20 #include "components/mus/public/interfaces/window_manager.mojom.h" | 20 #include "components/mus/public/interfaces/window_manager.mojom.h" |
21 #include "mash/wm/bridge/wm_window_mus.h" | 21 #include "mash/wm/bridge/wm_window_mus.h" |
22 #include "mash/wm/non_client_frame_controller.h" | 22 #include "mash/wm/non_client_frame_controller.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 void WindowManager::ScreenlockStateChanged(bool locked) { | 204 void WindowManager::ScreenlockStateChanged(bool locked) { |
205 // Hide USER_PRIVATE_CONTAINER windows when the screen is locked. | 205 // Hide USER_PRIVATE_CONTAINER windows when the screen is locked. |
206 mus::Window* window = root_controller_->GetWindowForContainer( | 206 mus::Window* window = root_controller_->GetWindowForContainer( |
207 ash::mojom::Container::USER_PRIVATE); | 207 ash::mojom::Container::USER_PRIVATE); |
208 window->SetVisible(!locked); | 208 window->SetVisible(!locked); |
209 } | 209 } |
210 | 210 |
211 } // namespace wm | 211 } // namespace wm |
212 } // namespace mash | 212 } // namespace mash |
OLD | NEW |