Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: mash/wm/window_manager.cc

Issue 2009073003: Move mojo/converters/geometry -> ui/gfx/geometry/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/wm/common/container_finder.h" 11 #include "ash/wm/common/container_finder.h"
12 #include "components/mus/common/types.h" 12 #include "components/mus/common/types.h"
13 #include "components/mus/public/cpp/property_type_converters.h" 13 #include "components/mus/public/cpp/property_type_converters.h"
14 #include "components/mus/public/cpp/window.h" 14 #include "components/mus/public/cpp/window.h"
15 #include "components/mus/public/cpp/window_property.h" 15 #include "components/mus/public/cpp/window_property.h"
16 #include "components/mus/public/cpp/window_tree_connection.h" 16 #include "components/mus/public/cpp/window_tree_connection.h"
17 #include "components/mus/public/interfaces/input_events.mojom.h" 17 #include "components/mus/public/interfaces/input_events.mojom.h"
18 #include "components/mus/public/interfaces/mus_constants.mojom.h" 18 #include "components/mus/public/interfaces/mus_constants.mojom.h"
19 #include "components/mus/public/interfaces/window_manager.mojom.h" 19 #include "components/mus/public/interfaces/window_manager.mojom.h"
20 #include "mash/wm/bridge/wm_window_mus.h" 20 #include "mash/wm/bridge/wm_window_mus.h"
21 #include "mash/wm/non_client_frame_controller.h" 21 #include "mash/wm/non_client_frame_controller.h"
22 #include "mash/wm/property_util.h" 22 #include "mash/wm/property_util.h"
23 #include "mash/wm/public/interfaces/container.mojom.h" 23 #include "mash/wm/public/interfaces/container.mojom.h"
24 #include "mash/wm/root_window_controller.h" 24 #include "mash/wm/root_window_controller.h"
25 #include "mojo/converters/geometry/geometry_type_converters.h" 25 #include "ui/gfx/geometry/mojo/geometry_type_converters.h"
26 26
27 namespace mash { 27 namespace mash {
28 namespace wm { 28 namespace wm {
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 void WindowManager::ScreenlockStateChanged(bool locked) { 207 void WindowManager::ScreenlockStateChanged(bool locked) {
208 // Hide USER_PRIVATE_CONTAINER windows when the screen is locked. 208 // Hide USER_PRIVATE_CONTAINER windows when the screen is locked.
209 mus::Window* window = root_controller_->GetWindowForContainer( 209 mus::Window* window = root_controller_->GetWindowForContainer(
210 mash::wm::mojom::Container::USER_PRIVATE); 210 mash::wm::mojom::Container::USER_PRIVATE);
211 window->SetVisible(!locked); 211 window->SetVisible(!locked);
212 } 212 }
213 213
214 } // namespace wm 214 } // namespace wm
215 } // namespace mash 215 } // namespace mash
OLDNEW
« no previous file with comments | « mash/wm/root_window_controller.cc ('k') | media/mojo/common/BUILD.gn » ('j') | ui/gfx/gfx.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698