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

Unified Diff: components/mus/public/interfaces/window_tree.mojom

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do it the other way + explicit checks that it is a mouse pointer. Created 5 years 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 | « components/mus/public/interfaces/cursor.mojom ('k') | components/mus/ws/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/window_tree.mojom
diff --git a/components/mus/public/interfaces/window_tree.mojom b/components/mus/public/interfaces/window_tree.mojom
index 9c64bb8581e0ef69cfdb8db8258b416e27f67d89..19b6adbe271589d413e642fb7a995615fb3965c3 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -5,6 +5,7 @@
module mus.mojom;
import "components/mus/public/interfaces/compositor_frame.mojom";
+import "components/mus/public/interfaces/cursor.mojom";
import "components/mus/public/interfaces/input_events.mojom";
import "components/mus/public/interfaces/mus_constants.mojom";
import "components/mus/public/interfaces/surface_id.mojom";
@@ -204,6 +205,13 @@ interface WindowTree {
SetFocus(uint32 window_id);
SetCanFocus(uint32 window_id, bool can_focus);
+ // Sets the cursor when the pointer is inside |window_id| to a system standard
+ // cursor provided by the window manager.
+ SetPredefinedCursor(uint32 change_id, uint32 window_id, Cursor cursor_id);
+
+ // TODO(erg): Additional cursor methods. Image based cursors, visibility,
+ // and cursor locking.
+
// Set text input state for the given window.
SetWindowTextInputState(uint32 window_id, mojo.TextInputState state);
@@ -316,6 +324,8 @@ interface WindowTreeClient {
OnWindowFocused(uint32 focused_window_id);
+ OnWindowPredefinedCursorChanged(uint32 window_id, Cursor cursor_id);
+
// A change initiated from the client has completed. See description of
// change ids for details.
OnChangeCompleted(uint32 change_id, bool success);
« no previous file with comments | « components/mus/public/interfaces/cursor.mojom ('k') | components/mus/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698