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

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

Issue 1954523002: Refactors StackingController::GetDefaultParent to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update gyp 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
« no previous file with comments | « ash/wm/aura/wm_globals_aura.h ('k') | ash/wm/aura/wm_window_aura.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/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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 std::vector<WmWindow*> wm_windows(windows.size()); 67 std::vector<WmWindow*> wm_windows(windows.size());
68 for (size_t i = 0; i < windows.size(); ++i) 68 for (size_t i = 0; i < windows.size(); ++i)
69 wm_windows[i] = WmWindowAura::Get(windows[i]); 69 wm_windows[i] = WmWindowAura::Get(windows[i]);
70 return wm_windows; 70 return wm_windows;
71 } 71 }
72 72
73 bool WmGlobalsAura::IsForceMaximizeOnFirstRun() { 73 bool WmGlobalsAura::IsForceMaximizeOnFirstRun() {
74 return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun(); 74 return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun();
75 } 75 }
76 76
77 bool WmGlobalsAura::IsUserSessionBlocked() {
78 return Shell::GetInstance()->session_state_delegate()->IsUserSessionBlocked();
79 }
80
77 bool WmGlobalsAura::IsScreenLocked() { 81 bool WmGlobalsAura::IsScreenLocked() {
78 return Shell::GetInstance()->session_state_delegate()->IsScreenLocked(); 82 return Shell::GetInstance()->session_state_delegate()->IsScreenLocked();
79 } 83 }
80 84
81 void WmGlobalsAura::LockCursor() { 85 void WmGlobalsAura::LockCursor() {
82 ash::Shell::GetInstance()->cursor_manager()->LockCursor(); 86 ash::Shell::GetInstance()->cursor_manager()->LockCursor();
83 } 87 }
84 88
85 void WmGlobalsAura::UnlockCursor() { 89 void WmGlobalsAura::UnlockCursor() {
86 ash::Shell::GetInstance()->cursor_manager()->UnlockCursor(); 90 ash::Shell::GetInstance()->cursor_manager()->UnlockCursor();
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 OnDisplayConfigurationChanged()); 171 OnDisplayConfigurationChanged());
168 } 172 }
169 173
170 void WmGlobalsAura::OnOverviewModeEnded() { 174 void WmGlobalsAura::OnOverviewModeEnded() {
171 FOR_EACH_OBSERVER(WmOverviewModeObserver, overview_mode_observers_, 175 FOR_EACH_OBSERVER(WmOverviewModeObserver, overview_mode_observers_,
172 OnOverviewModeEnded()); 176 OnOverviewModeEnded());
173 } 177 }
174 178
175 } // namespace wm 179 } // namespace wm
176 } // namespace ash 180 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_globals_aura.h ('k') | ash/wm/aura/wm_window_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698