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

Unified Diff: ui/aura/mus/window_manager_delegate.h

Issue 2857963003: Add {Lock,Unlock,Show,Hide}Cursor() to the window manager mojom. (Closed)
Patch Set: General cleanup. 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
Index: ui/aura/mus/window_manager_delegate.h
diff --git a/ui/aura/mus/window_manager_delegate.h b/ui/aura/mus/window_manager_delegate.h
index 9918870e9f78ee202f3b949611583e2a61d4e2e6..b0346f826cd752297d2a2d6ac14b5ca0d3c5b9c0 100644
--- a/ui/aura/mus/window_manager_delegate.h
+++ b/ui/aura/mus/window_manager_delegate.h
@@ -60,6 +60,24 @@ class AURA_EXPORT WindowManagerClient {
virtual void SetExtendedHitArea(Window* window,
const gfx::Insets& hit_area) = 0;
+ // Queues changes to the cursor instead of applying them instantly. Queued
+ // changes will be executed on UnlockCursor().
+ virtual void LockCursor() = 0;
+
+ // Executes queued changes.
+ virtual void UnlockCursor() = 0;
+
+ // Globally unhides the cursor.
+ virtual void ShowCursor() = 0;
+
+ // Globally hides the cursor.
+ virtual void HideCursor() = 0;
+
+ // Sets a cursor which is used instead of the per window cursors. Pass a
+ // nullopt in |cursor| to clear the override.
+ virtual void SetGlobalOverrideCursor(
+ base::Optional<ui::CursorData> cursor) = 0;
+
// Requests the client embedded in |window| to close the window. Only
// applicable to top-level windows. If a client is not embedded in |window|,
// this does nothing.

Powered by Google App Engine
This is Rietveld 408576698