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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_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
Index: components/mus/public/cpp/lib/window_tree_client_impl.h
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.h b/components/mus/public/cpp/lib/window_tree_client_impl.h
index af224dbc0e1b6fbbe3b438aed90771c4a4cd53ee..1b1d54d5047543045c40b7e730b264330724b170 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.h
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.h
@@ -67,6 +67,7 @@ class WindowTreeClientImpl : public WindowTreeConnection,
void SetClientArea(Id window_id, const gfx::Insets& client_area);
void SetFocus(Id window_id);
void SetCanFocus(Id window_id, bool can_focus);
+ void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id);
void SetVisible(Window* window, bool visible);
void SetProperty(Window* window,
const std::string& name,
@@ -169,6 +170,8 @@ class WindowTreeClientImpl : public WindowTreeConnection,
Id window_id,
mojom::EventPtr event) override;
void OnWindowFocused(Id focused_window_id) override;
+ void OnWindowPredefinedCursorChanged(Id window_id,
+ mojom::Cursor cursor) override;
void OnChangeCompleted(uint32_t change_id, bool success) override;
void WmSetBounds(uint32_t change_id,
Id window_id,
« no previous file with comments | « components/mus/public/cpp/lib/window_private.h ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698