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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_impl.cc

Issue 1909733002: mus: Add EventObserver to allow passively listening to UI events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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: components/mus/public/cpp/lib/window_tree_client_impl.cc
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.cc b/components/mus/public/cpp/lib/window_tree_client_impl.cc
index 23cc50de852f8f286bb2f203dd2c3bc5f2442b9f..87c191f946b00142b4082c73e2287269cd87a9c8 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.cc
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.cc
@@ -885,6 +885,10 @@ void WindowTreeClientImpl::OnWindowInputEvent(uint32_t event_id,
ack_callback->Run(mojom::EventResult::UNHANDLED);
}
+void WindowTreeClientImpl::OnEventObserved(mojom::EventPtr event_in) {
+ // TODO(jamescook): Route the observed event to PointerWatchers.
+}
+
void WindowTreeClientImpl::OnWindowFocused(Id focused_window_id) {
Window* focused_window = GetWindowByServerId(focused_window_id);
InFlightFocusChange new_change(this, focused_window);

Powered by Google App Engine
This is Rietveld 408576698