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

Unified Diff: components/mus/public/cpp/lib/window.cc

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync pass the nacl breakage 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.cc
diff --git a/components/mus/public/cpp/lib/window.cc b/components/mus/public/cpp/lib/window.cc
index 8dffc7f52d010f64002e31389124d3b7af0c2530..9fa469b6dd135d0ba53e02980e9b9b9bc4ca9c25 100644
--- a/components/mus/public/cpp/lib/window.cc
+++ b/components/mus/public/cpp/lib/window.cc
@@ -362,6 +362,11 @@ void Window::SetCanFocus(bool can_focus) {
tree_client()->SetCanFocus(id_, can_focus);
}
+void Window::SetStandardCursor(mus::mojom::Cursor cursor_id) {
+ if (connection_)
+ tree_client()->SetStandardCursor(id_, cursor_id);
sky 2015/12/01 21:48:00 In general we tend to assume the change is going t
+}
+
void Window::Embed(mus::mojom::WindowTreeClientPtr client) {
Embed(client.Pass(), mus::mojom::WindowTree::ACCESS_POLICY_DEFAULT,
base::Bind(&EmptyEmbedCallback));

Powered by Google App Engine
This is Rietveld 408576698