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

Unified Diff: components/mus/ws/connection_manager.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/ws/connection_manager.cc
diff --git a/components/mus/ws/connection_manager.cc b/components/mus/ws/connection_manager.cc
index 3c8bea5c1aa646153857d713339b7c5d663dc5d5..0fec1f90d24b31f3dbb9d3ea1595ade72c13eaaa 100644
--- a/components/mus/ws/connection_manager.cc
+++ b/components/mus/ws/connection_manager.cc
@@ -468,6 +468,22 @@ void ConnectionManager::OnWillChangeWindowVisibility(ServerWindow* window) {
}
}
+void ConnectionManager::OnWindowCursorChanged(ServerWindow* window,
+ int32_t cursor_id) {
+ if (in_destructor_)
+ return;
+
+ for (auto& pair : connection_map_) {
+ pair.second->service()->ProcessCursorChanged(
+ window, cursor_id, IsOperationSource(pair.first));
+ }
+
+ // Pass the cursor change to our native window.
sky 2015/12/01 21:48:00 out->the (as there may be more than one native win
Elliot Glaysher 2015/12/02 20:01:32 Done.
+ WindowTreeHostImpl* host = GetWindowTreeHostByWindow(window);
+ if (host)
+ host->OnCursorUpdated(window);
+}
+
void ConnectionManager::OnWindowSharedPropertyChanged(
ServerWindow* window,
const std::string& name,

Powered by Google App Engine
This is Rietveld 408576698