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

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: 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 | « services/ui/ws/window_tree.cc ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e1876e568a8db464dd6332d4987bedacab7d4a66 100644
--- a/ui/aura/mus/window_manager_delegate.h
+++ b/ui/aura/mus/window_manager_delegate.h
@@ -60,6 +60,21 @@ 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 shows or hides the cursor.
+ virtual void SetCursorVisible(bool visible) = 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.
« no previous file with comments | « services/ui/ws/window_tree.cc ('k') | ui/aura/mus/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698