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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/aura/wm_globals_aura.cc
diff --git a/ash/wm/aura/wm_globals_aura.cc b/ash/wm/aura/wm_globals_aura.cc
index f308d936c73544c8194ac4928a89c7c7ff7f04fd..0895ce17fda8169cb56b3f9d9b7e4b3f93a8c845 100644
--- a/ash/wm/aura/wm_globals_aura.cc
+++ b/ash/wm/aura/wm_globals_aura.cc
@@ -70,6 +70,14 @@ bool WmGlobalsAura::IsForceMaximizeOnFirstRun() {
return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun();
}
+void WmGlobalsAura::LockCursor() {
+ ash::Shell::GetInstance()->cursor_manager()->LockCursor();
+}
+
+void WmGlobalsAura::UnlockCursor() {
+ ash::Shell::GetInstance()->cursor_manager()->UnlockCursor();
+}
+
std::vector<WmWindow*> WmGlobalsAura::GetAllRootWindows() {
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
std::vector<WmWindow*> wm_windows(root_windows.size());
« 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