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

Unified Diff: services/ui/ws/window_manager_state.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: Renames, PointerEvent, tests etc 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_manager_state.cc
diff --git a/services/ui/ws/window_manager_state.cc b/services/ui/ws/window_manager_state.cc
index cbec88f4bf3d07554d355b0bf828ed0fe9aa3b49..5ef9f7f0eeb5155266a1fb8407a9532c41a798e1 100644
--- a/services/ui/ws/window_manager_state.cc
+++ b/services/ui/ws/window_manager_state.cc
@@ -242,8 +242,8 @@ void WindowManagerState::OnAcceleratorAck(mojom::EventResult result) {
} else {
// We're not going to process the event any further, notify event observers.
// We don't do this first to ensure we don't send an event twice to clients.
- window_server()->SendToEventObservers(*event_awaiting_input_ack_, user_id(),
- nullptr);
+ window_server()->SendToPointerWatchers(*event_awaiting_input_ack_,
+ user_id(), nullptr);
ProcessNextEventFromQueue();
}
}
@@ -355,7 +355,7 @@ void WindowManagerState::DispatchInputEventToWindowImpl(
}
// Ignore |tree| because it will receive the event via normal dispatch.
- window_server()->SendToEventObservers(event, user_id(), tree);
+ window_server()->SendToPointerWatchers(event, user_id(), tree);
tree->DispatchInputEvent(target, event);
}
@@ -527,8 +527,8 @@ ServerWindow* WindowManagerState::GetRootWindowContaining(
}
void WindowManagerState::OnEventTargetNotFound(const ui::Event& event) {
- window_server()->SendToEventObservers(event, user_id(),
- nullptr /* ignore_tree */);
+ window_server()->SendToPointerWatchers(event, user_id(),
+ nullptr /* ignore_tree */);
}
} // namespace ws

Powered by Google App Engine
This is Rietveld 408576698