| 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..19a91341fe94d163a56cc80048b1ec2c31aa72fd 100644
|
| --- a/components/mus/ws/connection_manager.cc
|
| +++ b/components/mus/ws/connection_manager.cc
|
| @@ -338,6 +338,20 @@ void ConnectionManager::ProcessWindowDeleted(const WindowId& window) {
|
| }
|
| }
|
|
|
| +void ConnectionManager::ProcessWillChangeWindowPredefinedCursor(
|
| + ServerWindow* window,
|
| + int32_t cursor_id) {
|
| + for (auto& pair : connection_map_) {
|
| + pair.second->service()->ProcessCursorChanged(window, cursor_id,
|
| + IsOperationSource(pair.first));
|
| + }
|
| +
|
| + // Pass the cursor change to the native window.
|
| + WindowTreeHostImpl* host = GetWindowTreeHostByWindow(window);
|
| + if (host)
|
| + host->OnCursorUpdated(window);
|
| +}
|
| +
|
| void ConnectionManager::ProcessViewportMetricsChanged(
|
| const mojom::ViewportMetrics& old_metrics,
|
| const mojom::ViewportMetrics& new_metrics) {
|
| @@ -468,6 +482,14 @@ void ConnectionManager::OnWillChangeWindowVisibility(ServerWindow* window) {
|
| }
|
| }
|
|
|
| +void ConnectionManager::OnWindowPredefinedCursorChanged(ServerWindow* window,
|
| + int32_t cursor_id) {
|
| + if (in_destructor_)
|
| + return;
|
| +
|
| + ProcessWillChangeWindowPredefinedCursor(window, cursor_id);
|
| +}
|
| +
|
| void ConnectionManager::OnWindowSharedPropertyChanged(
|
| ServerWindow* window,
|
| const std::string& name,
|
|
|