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

Side by Side Diff: mash/wm/bridge/wm_globals_mus.cc

Issue 2002243002: Gets mash to use WmToplevelWindowEventHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 6 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/BUILD.gn ('k') | mash/wm/bridge/wm_root_window_controller_mus.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/bridge/wm_globals_mus.h" 5 #include "mash/wm/bridge/wm_globals_mus.h"
6 6
7 #include "ash/wm/common/window_resizer.h" 7 #include "ash/wm/common/window_resizer.h"
8 #include "ash/wm/common/wm_activation_observer.h" 8 #include "ash/wm/common/wm_activation_observer.h"
9 #include "ash/wm/common/wm_shell_window_ids.h" 9 #include "ash/wm/common/wm_shell_window_ids.h"
10 #include "base/memory/ptr_util.h"
10 #include "components/mus/common/util.h" 11 #include "components/mus/common/util.h"
11 #include "components/mus/public/cpp/window.h" 12 #include "components/mus/public/cpp/window.h"
12 #include "components/mus/public/cpp/window_tree_connection.h" 13 #include "components/mus/public/cpp/window_tree_connection.h"
13 #include "mash/wm/bridge/wm_root_window_controller_mus.h" 14 #include "mash/wm/bridge/wm_root_window_controller_mus.h"
14 #include "mash/wm/bridge/wm_window_mus.h" 15 #include "mash/wm/bridge/wm_window_mus.h"
15 #include "mash/wm/container_ids.h" 16 #include "mash/wm/container_ids.h"
17 #include "mash/wm/drag_window_resizer.h"
16 #include "mash/wm/public/interfaces/container.mojom.h" 18 #include "mash/wm/public/interfaces/container.mojom.h"
17 #include "mash/wm/root_window_controller.h" 19 #include "mash/wm/root_window_controller.h"
18 20
19 namespace mash { 21 namespace mash {
20 namespace wm { 22 namespace wm {
21 23
22 WmGlobalsMus::WmGlobalsMus(mus::WindowTreeConnection* connection) 24 WmGlobalsMus::WmGlobalsMus(mus::WindowTreeConnection* connection)
23 : connection_(connection) { 25 : connection_(connection) {
24 connection_->AddObserver(this); 26 connection_->AddObserver(this);
25 WmGlobals::Set(this); 27 WmGlobals::Set(this);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 124 }
123 125
124 void WmGlobalsMus::RecordUserMetricsAction( 126 void WmGlobalsMus::RecordUserMetricsAction(
125 ash::wm::WmUserMetricsAction action) { 127 ash::wm::WmUserMetricsAction action) {
126 NOTIMPLEMENTED(); 128 NOTIMPLEMENTED();
127 } 129 }
128 130
129 std::unique_ptr<ash::WindowResizer> WmGlobalsMus::CreateDragWindowResizer( 131 std::unique_ptr<ash::WindowResizer> WmGlobalsMus::CreateDragWindowResizer(
130 std::unique_ptr<ash::WindowResizer> next_window_resizer, 132 std::unique_ptr<ash::WindowResizer> next_window_resizer,
131 ash::wm::WindowState* window_state) { 133 ash::wm::WindowState* window_state) {
132 NOTIMPLEMENTED(); 134 return base::WrapUnique(
133 return next_window_resizer; 135 new DragWindowResizer(std::move(next_window_resizer), window_state));
134 } 136 }
135 137
136 bool WmGlobalsMus::IsOverviewModeSelecting() { 138 bool WmGlobalsMus::IsOverviewModeSelecting() {
137 NOTIMPLEMENTED(); 139 NOTIMPLEMENTED();
138 return false; 140 return false;
139 } 141 }
140 142
141 bool WmGlobalsMus::IsOverviewModeRestoringMinimizedWindows() { 143 bool WmGlobalsMus::IsOverviewModeRestoringMinimizedWindows() {
142 NOTIMPLEMENTED(); 144 NOTIMPLEMENTED();
143 return false; 145 return false;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 205 }
204 206
205 void WmGlobalsMus::OnWillDestroyConnection( 207 void WmGlobalsMus::OnWillDestroyConnection(
206 mus::WindowTreeConnection* connection) { 208 mus::WindowTreeConnection* connection) {
207 DCHECK_EQ(connection, connection_); 209 DCHECK_EQ(connection, connection_);
208 RemoveConnectionObserver(); 210 RemoveConnectionObserver();
209 } 211 }
210 212
211 } // namespace wm 213 } // namespace wm
212 } // namespace mash 214 } // namespace mash
OLDNEW
« no previous file with comments | « mash/wm/BUILD.gn ('k') | mash/wm/bridge/wm_root_window_controller_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698