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

Unified Diff: services/ui/public/interfaces/window_manager.mojom

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/wm/lock_state_controller.cc ('k') | services/ui/ws/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/window_manager.mojom
diff --git a/services/ui/public/interfaces/window_manager.mojom b/services/ui/public/interfaces/window_manager.mojom
index 91f87baeb33b7db1b2c885573ee7029e1560da33..74b437d9fb1cfdd917986c08e8154b7eb58a6a04 100644
--- a/services/ui/public/interfaces/window_manager.mojom
+++ b/services/ui/public/interfaces/window_manager.mojom
@@ -299,6 +299,18 @@ interface WindowManagerClient {
// Sets the cursor that the non-client areas of the window should use.
WmSetNonClientCursor(uint32 window_id, CursorData cursor);
+ // Locks and unlocks the cursor globally. Used during window management tasks
+ // where the cursor shouldn't change.
+ WmLockCursor();
+ WmUnlockCursor();
+
+ // Shows and hides the cursor globally. Used during window management tasks.
+ WmSetCursorVisible(bool visible);
+
+ // Sets a global cursor which overrides per-window cursors. Pass null to
+ // clear.
+ WmSetGlobalOverrideCursor(CursorData? cursor);
+
// Response from WmCreateTopLevelWindow() informing the client of the id for
// the new window.
OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | services/ui/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698