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

Unified Diff: ash/aura/shell_port_classic.cc

Issue 2857963003: Add {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom. (Closed)
Patch Set: sky comments Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/aura/shell_port_classic.h ('k') | ash/mus/bridge/shell_port_mash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/shell_port_classic.cc
diff --git a/ash/aura/shell_port_classic.cc b/ash/aura/shell_port_classic.cc
index d2eaa4b69b90175fedea77654c722a8d1f948831..0e977f51549af9273b2c31bbfd90726a4497195f 100644
--- a/ash/aura/shell_port_classic.cc
+++ b/ash/aura/shell_port_classic.cc
@@ -128,6 +128,22 @@ void ShellPortClassic::UnlockCursor() {
Shell::Get()->cursor_manager()->UnlockCursor();
}
+void ShellPortClassic::ShowCursor() {
+ Shell::Get()->cursor_manager()->ShowCursor();
+}
+
+void ShellPortClassic::HideCursor() {
+ Shell::Get()->cursor_manager()->HideCursor();
+}
+
+void ShellPortClassic::SetGlobalOverrideCursor(
+ base::Optional<ui::CursorData> cursor) {
+ // This is part of a fat interface that is only implemented on the mash side;
+ // there isn't an equivalent operation in ::wm::CursorManager. We also can't
+ // just call into ShellPortMash because of library linking issues.
+ NOTREACHED();
+}
+
bool ShellPortClassic::IsMouseEventsEnabled() {
return Shell::Get()->cursor_manager()->IsMouseEventsEnabled();
}
« no previous file with comments | « ash/aura/shell_port_classic.h ('k') | ash/mus/bridge/shell_port_mash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698