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

Unified Diff: services/ui/ws/window_server.cc

Issue 2183163002: mus: Change PointerWatcher to observe all pointer events, with moves optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Event conversion; comments; rebase Created 4 years, 5 months 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: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 8403378fe7ed0275a8be8fa4e1d41901baadf821..29b3b55d43b8ea80dc8603093c890923a54a7192 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -426,13 +426,13 @@ void WindowServer::ProcessWillChangeWindowPredefinedCursor(ServerWindow* window,
}
}
-void WindowServer::SendToEventObservers(const ui::Event& event,
- const UserId& user_id,
- WindowTree* ignore_tree) {
+void WindowServer::SendToPointerWatchers(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);
+ tree->SendToPointerWatcher(event);
}
}

Powered by Google App Engine
This is Rietveld 408576698