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

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

Issue 2830703003: [views-mus] Support custom cursors. (Closed)
Patch Set: fix cast_shell_linux Created 3 years, 8 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/public/interfaces/window_manager.mojom ('k') | services/ui/ws/cursor_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/window_tree.mojom
diff --git a/services/ui/public/interfaces/window_tree.mojom b/services/ui/public/interfaces/window_tree.mojom
index b8c4fabc0416ae33fb1fac733e6e503194e17990..47c812cc250796164ad1aaa2d114650cb42fa949 100644
--- a/services/ui/public/interfaces/window_tree.mojom
+++ b/services/ui/public/interfaces/window_tree.mojom
@@ -244,12 +244,10 @@ interface WindowTree {
// Marks the specified window as being able to receive focus.
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, CursorType cursor_id);
+ // Sets the cursor when the pointer is inside |window_id|.
+ SetCursor(uint32 change_id, uint32 window_id, CursorData cursor);
- // TODO(erg): Additional cursor methods. Image based cursors, visibility,
- // and cursor locking.
+ // TODO(erg): Additional cursor methods. Visibility, and cursor locking.
// Set text input state for the given window.
SetWindowTextInputState(uint32 window_id, mojo.TextInputState state);
@@ -467,7 +465,7 @@ interface WindowTreeClient {
// initiate the change.
OnWindowFocused(uint32 focused_window_id);
- OnWindowPredefinedCursorChanged(uint32 window_id, CursorType cursor_id);
+ OnWindowCursorChanged(uint32 window_id, CursorData cursor);
// Invoked when a client window submits a new surface ID. The surface ID and
// associated information is propagated to the parent connection. The parent
« no previous file with comments | « services/ui/public/interfaces/window_manager.mojom ('k') | services/ui/ws/cursor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698