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

Side by Side Diff: ash/mus/bridge/wm_shell_mus.cc

Issue 2118643002: Move MaximizeModeController into ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: doh Created 4 years, 5 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 | « ash/mus/bridge/wm_shell_mus.h ('k') | ash/shell.h » ('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 "ash/mus/bridge/wm_shell_mus.h" 5 #include "ash/mus/bridge/wm_shell_mus.h"
6 6
7 #include "ash/common/default_accessibility_delegate.h" 7 #include "ash/common/default_accessibility_delegate.h"
8 #include "ash/common/display/display_info.h" 8 #include "ash/common/display/display_info.h"
9 #include "ash/common/session/session_state_delegate.h" 9 #include "ash/common/session/session_state_delegate.h"
10 #include "ash/common/shell_observer.h" 10 #include "ash/common/shell_observer.h"
11 #include "ash/common/shell_window_ids.h" 11 #include "ash/common/shell_window_ids.h"
12 #include "ash/common/system/tray/default_system_tray_delegate.h" 12 #include "ash/common/system/tray/default_system_tray_delegate.h"
13 #include "ash/common/wm/maximize_mode/maximize_mode_event_handler.h" 13 #include "ash/common/wm/maximize_mode/maximize_mode_event_handler.h"
14 #include "ash/common/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard .h"
14 #include "ash/common/wm/mru_window_tracker.h" 15 #include "ash/common/wm/mru_window_tracker.h"
15 #include "ash/common/wm/window_resizer.h" 16 #include "ash/common/wm/window_resizer.h"
16 #include "ash/common/wm_activation_observer.h" 17 #include "ash/common/wm_activation_observer.h"
17 #include "ash/mus/bridge/wm_root_window_controller_mus.h" 18 #include "ash/mus/bridge/wm_root_window_controller_mus.h"
18 #include "ash/mus/bridge/wm_window_mus.h" 19 #include "ash/mus/bridge/wm_window_mus.h"
19 #include "ash/mus/container_ids.h" 20 #include "ash/mus/container_ids.h"
20 #include "ash/mus/drag_window_resizer.h" 21 #include "ash/mus/drag_window_resizer.h"
21 #include "ash/mus/root_window_controller.h" 22 #include "ash/mus/root_window_controller.h"
22 #include "base/memory/ptr_util.h" 23 #include "base/memory/ptr_util.h"
23 #include "components/mus/common/util.h" 24 #include "components/mus/common/util.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 NOTIMPLEMENTED(); 174 NOTIMPLEMENTED();
174 return root_window_controllers_[0]->GetWindow(); 175 return root_window_controllers_[0]->GetWindow();
175 } 176 }
176 177
177 const DisplayInfo& WmShellMus::GetDisplayInfo(int64_t display_id) const { 178 const DisplayInfo& WmShellMus::GetDisplayInfo(int64_t display_id) const {
178 NOTIMPLEMENTED(); 179 NOTIMPLEMENTED();
179 static DisplayInfo fake_info; 180 static DisplayInfo fake_info;
180 return fake_info; 181 return fake_info;
181 } 182 }
182 183
184 bool WmShellMus::IsActiveDisplayId(int64_t display_id) const {
185 // TODO: implement http://crbug.com/622480.
186 NOTIMPLEMENTED();
187 return true;
188 }
189
183 bool WmShellMus::IsForceMaximizeOnFirstRun() { 190 bool WmShellMus::IsForceMaximizeOnFirstRun() {
184 NOTIMPLEMENTED(); 191 NOTIMPLEMENTED();
185 return false; 192 return false;
186 } 193 }
187 194
188 bool WmShellMus::IsPinned() { 195 bool WmShellMus::IsPinned() {
189 NOTIMPLEMENTED(); 196 NOTIMPLEMENTED();
190 return false; 197 return false;
191 } 198 }
192 199
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 } 233 }
227 234
228 std::unique_ptr<wm::MaximizeModeEventHandler> 235 std::unique_ptr<wm::MaximizeModeEventHandler>
229 WmShellMus::CreateMaximizeModeEventHandler() { 236 WmShellMus::CreateMaximizeModeEventHandler() {
230 // TODO: need support for window manager to get events before client: 237 // TODO: need support for window manager to get events before client:
231 // http://crbug.com/624157. 238 // http://crbug.com/624157.
232 NOTIMPLEMENTED(); 239 NOTIMPLEMENTED();
233 return nullptr; 240 return nullptr;
234 } 241 }
235 242
243 std::unique_ptr<ScopedDisableInternalMouseAndKeyboard>
244 WmShellMus::CreateScopedDisableInternalMouseAndKeyboard() {
245 // TODO: needs implementation for mus, http://crbug.com/624967.
246 NOTIMPLEMENTED();
247 return nullptr;
248 }
249
236 void WmShellMus::OnOverviewModeStarting() { 250 void WmShellMus::OnOverviewModeStarting() {
237 FOR_EACH_OBSERVER(ShellObserver, *shell_observers(), 251 FOR_EACH_OBSERVER(ShellObserver, *shell_observers(),
238 OnOverviewModeStarting()); 252 OnOverviewModeStarting());
239 } 253 }
240 254
241 void WmShellMus::OnOverviewModeEnded() { 255 void WmShellMus::OnOverviewModeEnded() {
242 FOR_EACH_OBSERVER(ShellObserver, *shell_observers(), OnOverviewModeEnded()); 256 FOR_EACH_OBSERVER(ShellObserver, *shell_observers(), OnOverviewModeEnded());
243 } 257 }
244 258
245 AccessibilityDelegate* WmShellMus::GetAccessibilityDelegate() { 259 AccessibilityDelegate* WmShellMus::GetAccessibilityDelegate() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 OnWindowActivated(gained_active, lost_active)); 321 OnWindowActivated(gained_active, lost_active));
308 } 322 }
309 323
310 void WmShellMus::OnWillDestroyClient(::mus::WindowTreeClient* client) { 324 void WmShellMus::OnWillDestroyClient(::mus::WindowTreeClient* client) {
311 DCHECK_EQ(client, client_); 325 DCHECK_EQ(client, client_);
312 RemoveClientObserver(); 326 RemoveClientObserver();
313 } 327 }
314 328
315 } // namespace mus 329 } // namespace mus
316 } // namespace ash 330 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.h ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698