| Index: components/mus/ws/window_server.cc
|
| diff --git a/components/mus/ws/window_server.cc b/components/mus/ws/window_server.cc
|
| index bcdbff9132007111cbae1e6f20b42c0727b48763..fe891871623daba759cd090fb7ea27aa5e7269e7 100644
|
| --- a/components/mus/ws/window_server.cc
|
| +++ b/components/mus/ws/window_server.cc
|
| @@ -411,6 +411,16 @@ void WindowServer::ProcessWillChangeWindowPredefinedCursor(ServerWindow* window,
|
| display->OnCursorUpdated(window);
|
| }
|
|
|
| +void WindowServer::SendToEventObservers(const ui::Event& event,
|
| + const UserId& user_id,
|
| + WindowTree* ignore_tree) {
|
| + for (auto& pair : tree_map_) {
|
| + WindowTree* tree = pair.second.get();
|
| + if (tree->user_id() == user_id && tree != ignore_tree)
|
| + tree->SendToEventObserver(event);
|
| + }
|
| +}
|
| +
|
| void WindowServer::SetPaintCallback(
|
| const base::Callback<void(ServerWindow*)>& callback) {
|
| DCHECK(delegate_->IsTestConfig()) << "Paint callbacks are expensive, and "
|
|
|