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

Side by Side Diff: components/exo/wm_helper_ash.cc

Issue 2270553002: Move ash::DisplayInfo to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 3 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 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 "components/exo/wm_helper_ash.h" 5 #include "components/exo/wm_helper_ash.h"
6 6
7 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" 7 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
8 #include "ash/common/wm_shell.h" 8 #include "ash/common/wm_shell.h"
9 #include "ash/display/display_manager.h" 9 #include "ash/display/display_manager.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 20 matching lines...) Expand all
31 aura::client::FocusClient* focus_client = 31 aura::client::FocusClient* focus_client =
32 aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow()); 32 aura::client::GetFocusClient(ash::Shell::GetPrimaryRootWindow());
33 focus_client->RemoveObserver(this); 33 focus_client->RemoveObserver(this);
34 ash::Shell::GetInstance()->activation_client()->RemoveObserver(this); 34 ash::Shell::GetInstance()->activation_client()->RemoveObserver(this);
35 ash::WmShell::Get()->RemoveShellObserver(this); 35 ash::WmShell::Get()->RemoveShellObserver(this);
36 } 36 }
37 37
38 //////////////////////////////////////////////////////////////////////////////// 38 ////////////////////////////////////////////////////////////////////////////////
39 // WMHelperAsh, private: 39 // WMHelperAsh, private:
40 40
41 const ash::DisplayInfo WMHelperAsh::GetDisplayInfo(int64_t display_id) const { 41 const ui::DisplayInfo WMHelperAsh::GetDisplayInfo(int64_t display_id) const {
42 return ash::Shell::GetInstance()->display_manager()->GetDisplayInfo( 42 return ash::Shell::GetInstance()->display_manager()->GetDisplayInfo(
43 display_id); 43 display_id);
44 } 44 }
45 45
46 aura::Window* WMHelperAsh::GetContainer(int container_id) { 46 aura::Window* WMHelperAsh::GetContainer(int container_id) {
47 return ash::Shell::GetContainer(ash::Shell::GetTargetRootWindow(), 47 return ash::Shell::GetContainer(ash::Shell::GetTargetRootWindow(),
48 container_id); 48 container_id);
49 } 49 }
50 50
51 aura::Window* WMHelperAsh::GetActiveWindow() const { 51 aura::Window* WMHelperAsh::GetActiveWindow() const {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 void WMHelperAsh::OnMaximizeModeStarted() { 111 void WMHelperAsh::OnMaximizeModeStarted() {
112 NotifyMaximizeModeStarted(); 112 NotifyMaximizeModeStarted();
113 } 113 }
114 114
115 void WMHelperAsh::OnMaximizeModeEnded() { 115 void WMHelperAsh::OnMaximizeModeEnded() {
116 NotifyMaximizeModeEnded(); 116 NotifyMaximizeModeEnded();
117 } 117 }
118 118
119 } // namespace exo 119 } // namespace exo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698