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

Unified Diff: components/mus/ws/window_tree_impl.h

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/ws/window_tree_host_impl.cc ('k') | components/mus/ws/window_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_impl.h
diff --git a/components/mus/ws/window_tree_impl.h b/components/mus/ws/window_tree_impl.h
index 0a92f4fa63d1805afcfa8e25d573e3523a83ae98..57d4bb6a3743876c15f27509980fe1de8c266927 100644
--- a/components/mus/ws/window_tree_impl.h
+++ b/components/mus/ws/window_tree_impl.h
@@ -121,6 +121,9 @@ class WindowTreeImpl : public mojom::WindowTree, public AccessPolicyDelegate {
void ProcessWindowDeleted(const WindowId& window, bool originated_change);
void ProcessWillChangeWindowVisibility(const ServerWindow* window,
bool originated_change);
+ void ProcessCursorChanged(const ServerWindow* window,
+ int32_t cursor_id,
+ bool originated_change);
void ProcessFocusChanged(const ServerWindow* old_focused_window,
const ServerWindow* new_focused_window);
void ProcessTransientWindowAdded(const ServerWindow* window,
@@ -236,6 +239,9 @@ class WindowTreeImpl : public mojom::WindowTree, public AccessPolicyDelegate {
const EmbedCallback& callback) override;
void SetFocus(uint32_t window_id) override;
void SetCanFocus(uint32_t window_id, bool can_focus) override;
+ void SetPredefinedCursor(uint32_t change_id,
+ uint32_t window_id,
+ mus::mojom::Cursor cursor_id) override;
void SetWindowTextInputState(uint32_t window_id,
mojo::TextInputStatePtr state) override;
void SetImeVisibility(Id transport_window_id,
« no previous file with comments | « components/mus/ws/window_tree_host_impl.cc ('k') | components/mus/ws/window_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698