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

Unified Diff: components/mus/ws/window_server.h

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: rebase 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/ws/window_server.h
diff --git a/components/mus/ws/window_server.h b/components/mus/ws/window_server.h
index 21b464e634d19350abb0993cd3fc50e4d3855412..23d00c6dac52352ecb9f0ce12c9313e1af30c98e 100644
--- a/components/mus/ws/window_server.h
+++ b/components/mus/ws/window_server.h
@@ -188,6 +188,12 @@ class WindowServer : public ServerWindowDelegate,
void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window,
int32_t cursor_id);
+ // Sends an |event| to all WindowTrees belonging to |user_id| that might be
+ // observing events. Skips |ignore_tree| if it is non-null.
+ void SendToEventObservers(const ui::Event& event,
+ const UserId& user_id,
+ WindowTree* ignore_tree);
+
// Sets a callback to be called whenever a ServerWindow is scheduled for
// a [re]paint. This should only be called in a test configuration.
void SetPaintCallback(const base::Callback<void(ServerWindow*)>& callback);

Powered by Google App Engine
This is Rietveld 408576698