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

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

Issue 2215223004: mash: Migrate ShelfLayoutManager ScreenUtil usage to ash common types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore screen bounds conversion for app list. Created 4 years, 4 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/screen_util.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 <utility> 7 #include <utility>
8 8
9 #include "ash/common/accelerators/accelerator_controller.h" 9 #include "ash/common/accelerators/accelerator_controller.h"
10 #include "ash/common/display/display_info.h" 10 #include "ash/common/display/display_info.h"
(...skipping 15 matching lines...) Expand all
26 #include "ash/mus/bridge/wm_window_mus.h" 26 #include "ash/mus/bridge/wm_window_mus.h"
27 #include "ash/mus/container_ids.h" 27 #include "ash/mus/container_ids.h"
28 #include "ash/mus/drag_window_resizer.h" 28 #include "ash/mus/drag_window_resizer.h"
29 #include "ash/mus/root_window_controller.h" 29 #include "ash/mus/root_window_controller.h"
30 #include "ash/mus/window_manager.h" 30 #include "ash/mus/window_manager.h"
31 #include "base/memory/ptr_util.h" 31 #include "base/memory/ptr_util.h"
32 #include "components/user_manager/user_info_impl.h" 32 #include "components/user_manager/user_info_impl.h"
33 #include "services/ui/common/util.h" 33 #include "services/ui/common/util.h"
34 #include "services/ui/public/cpp/window.h" 34 #include "services/ui/public/cpp/window.h"
35 #include "services/ui/public/cpp/window_tree_client.h" 35 #include "services/ui/public/cpp/window_tree_client.h"
36 #include "ui/display/screen.h"
36 37
37 namespace ash { 38 namespace ash {
38 namespace mus { 39 namespace mus {
39 40
40 namespace { 41 namespace {
41 42
42 // TODO(jamescook): After ShellDelegate is ported to ash/common use 43 // TODO(jamescook): After ShellDelegate is ported to ash/common use
43 // ShellDelegate::CreateSessionStateDelegate() to construct the mus version 44 // ShellDelegate::CreateSessionStateDelegate() to construct the mus version
44 // of SessionStateDelegate. 45 // of SessionStateDelegate.
45 class SessionStateDelegateStub : public SessionStateDelegate { 46 class SessionStateDelegateStub : public SessionStateDelegate {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 204
204 WmWindow* WmShellMus::GetPrimaryRootWindow() { 205 WmWindow* WmShellMus::GetPrimaryRootWindow() {
205 return root_window_controllers_[0]->GetWindow(); 206 return root_window_controllers_[0]->GetWindow();
206 } 207 }
207 208
208 WmWindow* WmShellMus::GetRootWindowForDisplayId(int64_t display_id) { 209 WmWindow* WmShellMus::GetRootWindowForDisplayId(int64_t display_id) {
209 return GetRootWindowControllerWithDisplayId(display_id)->GetWindow(); 210 return GetRootWindowControllerWithDisplayId(display_id)->GetWindow();
210 } 211 }
211 212
212 const DisplayInfo& WmShellMus::GetDisplayInfo(int64_t display_id) const { 213 const DisplayInfo& WmShellMus::GetDisplayInfo(int64_t display_id) const {
214 // TODO(mash): implement http://crbug.com/622480.
213 NOTIMPLEMENTED(); 215 NOTIMPLEMENTED();
214 static DisplayInfo fake_info; 216 static DisplayInfo fake_info;
215 return fake_info; 217 return fake_info;
216 } 218 }
217 219
218 bool WmShellMus::IsActiveDisplayId(int64_t display_id) const { 220 bool WmShellMus::IsActiveDisplayId(int64_t display_id) const {
219 // TODO: implement http://crbug.com/622480. 221 // TODO(mash): implement http://crbug.com/622480.
220 NOTIMPLEMENTED(); 222 NOTIMPLEMENTED();
221 return true; 223 return true;
222 } 224 }
223 225
226 display::Display WmShellMus::GetFirstDisplay() const {
227 // TODO(mash): implement http://crbug.com/622480.
228 NOTIMPLEMENTED();
229 return display::Screen::GetScreen()->GetPrimaryDisplay();
230 }
231
232 bool WmShellMus::IsInUnifiedMode() const {
233 // TODO(mash): implement http://crbug.com/622480.
234 return false;
235 }
236
224 bool WmShellMus::IsForceMaximizeOnFirstRun() { 237 bool WmShellMus::IsForceMaximizeOnFirstRun() {
225 NOTIMPLEMENTED(); 238 NOTIMPLEMENTED();
226 return false; 239 return false;
227 } 240 }
228 241
229 bool WmShellMus::IsPinned() { 242 bool WmShellMus::IsPinned() {
230 NOTIMPLEMENTED(); 243 NOTIMPLEMENTED();
231 return false; 244 return false;
232 } 245 }
233 246
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 OnWindowActivated(gained_active, lost_active)); 386 OnWindowActivated(gained_active, lost_active));
374 } 387 }
375 388
376 void WmShellMus::OnDidDestroyClient(ui::WindowTreeClient* client) { 389 void WmShellMus::OnDidDestroyClient(ui::WindowTreeClient* client) {
377 DCHECK_EQ(window_tree_client(), client); 390 DCHECK_EQ(window_tree_client(), client);
378 client->RemoveObserver(this); 391 client->RemoveObserver(this);
379 } 392 }
380 393
381 } // namespace mus 394 } // namespace mus
382 } // namespace ash 395 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_shell_mus.h ('k') | ash/screen_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698