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

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

Issue 1898223002: Removes most aura dependencies from WindowResizer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_aura_from_window_state
Patch Set: nit and merge Created 4 years, 8 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_root_window_controller_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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_globals_aura.h ('k') | ash/wm/aura/wm_root_window_controller_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698