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

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

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « mash/wm/window_manager_apptest.cc ('k') | media/mojo/services/media_apptest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_impl.h" 5 #include "mash/wm/window_manager_impl.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/window_manager_application.h" 20 #include "mash/wm/window_manager_application.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 WindowManagerImpl::WindowManagerImpl() 26 WindowManagerImpl::WindowManagerImpl()
28 : state_(nullptr), window_manager_client_(nullptr), binding_(this) {} 27 : state_(nullptr), window_manager_client_(nullptr), binding_(this) {}
29 28
30 WindowManagerImpl::~WindowManagerImpl() { 29 WindowManagerImpl::~WindowManagerImpl() {
31 if (!state_) 30 if (!state_)
32 return; 31 return;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 172
174 void WindowManagerImpl::ScreenlockStateChanged(bool locked) { 173 void WindowManagerImpl::ScreenlockStateChanged(bool locked) {
175 // Hide USER_PRIVATE windows when the screen is locked. 174 // Hide USER_PRIVATE windows when the screen is locked.
176 mus::Window* window = 175 mus::Window* window =
177 state_->GetWindowForContainer(mash::wm::mojom::Container::USER_PRIVATE); 176 state_->GetWindowForContainer(mash::wm::mojom::Container::USER_PRIVATE);
178 window->SetVisible(!locked); 177 window->SetVisible(!locked);
179 } 178 }
180 179
181 } // namespace wm 180 } // namespace wm
182 } // namespace mash 181 } // namespace mash
OLDNEW
« no previous file with comments | « mash/wm/window_manager_apptest.cc ('k') | media/mojo/services/media_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698