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

Side by Side Diff: ash/wm/aura/wm_globals_aura.cc

Issue 1923983003: Makes WorkspaceLayoutManager use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix always-on-top and remove mus changes Created 4 years, 7 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 "ash/wm/aura/wm_globals_aura.h" 5 #include "ash/wm/aura/wm_globals_aura.h"
6 6
7 #include "ash/display/window_tree_host_manager.h" 7 #include "ash/display/window_tree_host_manager.h"
8 #include "ash/session/session_state_delegate.h" 8 #include "ash/session/session_state_delegate.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_delegate.h" 10 #include "ash/shell_delegate.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 std::vector<WmWindow*> wm_windows(windows.size()); 82 std::vector<WmWindow*> wm_windows(windows.size());
83 for (size_t i = 0; i < windows.size(); ++i) 83 for (size_t i = 0; i < windows.size(); ++i)
84 wm_windows[i] = WmWindowAura::Get(windows[i]); 84 wm_windows[i] = WmWindowAura::Get(windows[i]);
85 return wm_windows; 85 return wm_windows;
86 } 86 }
87 87
88 bool WmGlobalsAura::IsForceMaximizeOnFirstRun() { 88 bool WmGlobalsAura::IsForceMaximizeOnFirstRun() {
89 return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun(); 89 return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun();
90 } 90 }
91 91
92 bool WmGlobalsAura::IsScreenLocked() {
93 return Shell::GetInstance()->session_state_delegate()->IsScreenLocked();
94 }
95
92 void WmGlobalsAura::LockCursor() { 96 void WmGlobalsAura::LockCursor() {
93 ash::Shell::GetInstance()->cursor_manager()->LockCursor(); 97 ash::Shell::GetInstance()->cursor_manager()->LockCursor();
94 } 98 }
95 99
96 void WmGlobalsAura::UnlockCursor() { 100 void WmGlobalsAura::UnlockCursor() {
97 ash::Shell::GetInstance()->cursor_manager()->UnlockCursor(); 101 ash::Shell::GetInstance()->cursor_manager()->UnlockCursor();
98 } 102 }
99 103
100 std::vector<WmWindow*> WmGlobalsAura::GetAllRootWindows() { 104 std::vector<WmWindow*> WmGlobalsAura::GetAllRootWindows() {
101 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); 105 aura::Window::Windows root_windows = Shell::GetAllRootWindows();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 OnDisplayConfigurationChanged()); 161 OnDisplayConfigurationChanged());
158 } 162 }
159 163
160 void WmGlobalsAura::OnOverviewModeEnded() { 164 void WmGlobalsAura::OnOverviewModeEnded() {
161 FOR_EACH_OBSERVER(WmOverviewModeObserver, overview_mode_observers_, 165 FOR_EACH_OBSERVER(WmOverviewModeObserver, overview_mode_observers_,
162 OnOverviewModeEnded()); 166 OnOverviewModeEnded());
163 } 167 }
164 168
165 } // namespace wm 169 } // namespace wm
166 } // namespace ash 170 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698