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

Unified Diff: components/mus/ws/window_tree_client_unittest.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: 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_tree_client_unittest.cc
diff --git a/components/mus/ws/window_tree_client_unittest.cc b/components/mus/ws/window_tree_client_unittest.cc
index d16ffef65694e7e5ffe27306880dddc91aa72a1f..ee9e36eff4fa25885577b7d272adc46c124c958b 100644
--- a/components/mus/ws/window_tree_client_unittest.cc
+++ b/components/mus/ws/window_tree_client_unittest.cc
@@ -357,7 +357,8 @@ class TestWindowTreeClientImpl : public mojom::WindowTreeClient,
}
void OnWindowInputEvent(uint32_t event_id,
Id window_id,
- EventPtr event) override {
+ EventPtr event,
+ uint32_t event_observer_id) override {
// Ack input events to clear the state on the server. These can be received
// during test startup. X11Window::DispatchEvent sends a synthetic move
// event to notify of entry.
@@ -365,6 +366,7 @@ class TestWindowTreeClientImpl : public mojom::WindowTreeClient,
// Don't log input events as none of the tests care about them and they
// may come in at random points.
}
+ void OnEventObserved(EventPtr event, uint32_t event_observer_id) override {}
void OnWindowSharedPropertyChanged(uint32_t window,
const String& name,
Array<uint8_t> new_data) override {

Powered by Google App Engine
This is Rietveld 408576698