| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 std::vector<WmWindow*> wm_windows(windows.size()); | 63 std::vector<WmWindow*> wm_windows(windows.size()); |
| 64 for (size_t i = 0; i < windows.size(); ++i) | 64 for (size_t i = 0; i < windows.size(); ++i) |
| 65 wm_windows[i] = WmWindowAura::Get(windows[i]); | 65 wm_windows[i] = WmWindowAura::Get(windows[i]); |
| 66 return wm_windows; | 66 return wm_windows; |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool WmGlobalsAura::IsForceMaximizeOnFirstRun() { | 69 bool WmGlobalsAura::IsForceMaximizeOnFirstRun() { |
| 70 return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun(); | 70 return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void WmGlobalsAura::LockCursor() { |
| 74 ash::Shell::GetInstance()->cursor_manager()->LockCursor(); |
| 75 } |
| 76 |
| 77 void WmGlobalsAura::UnlockCursor() { |
| 78 ash::Shell::GetInstance()->cursor_manager()->UnlockCursor(); |
| 79 } |
| 80 |
| 73 std::vector<WmWindow*> WmGlobalsAura::GetAllRootWindows() { | 81 std::vector<WmWindow*> WmGlobalsAura::GetAllRootWindows() { |
| 74 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); | 82 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); |
| 75 std::vector<WmWindow*> wm_windows(root_windows.size()); | 83 std::vector<WmWindow*> wm_windows(root_windows.size()); |
| 76 for (size_t i = 0; i < root_windows.size(); ++i) | 84 for (size_t i = 0; i < root_windows.size(); ++i) |
| 77 wm_windows[i] = WmWindowAura::Get(root_windows[i]); | 85 wm_windows[i] = WmWindowAura::Get(root_windows[i]); |
| 78 return wm_windows; | 86 return wm_windows; |
| 79 } | 87 } |
| 80 | 88 |
| 81 } // namespace wm | 89 } // namespace wm |
| 82 } // namespace ash | 90 } // namespace ash |
| OLD | NEW |