| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |