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

Unified Diff: components/mus/public/cpp/window_tree_connection.h

Issue 1921673005: mus: Add PointerWatcher for passively observing mouse and touch 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/public/cpp/window_tree_connection.h
diff --git a/components/mus/public/cpp/window_tree_connection.h b/components/mus/public/cpp/window_tree_connection.h
index daa2f682a8dd683c688fc25033fd7f2ab80e52b9..b4b235154b68b31d294e01f847a1478af457d3ad 100644
--- a/components/mus/public/cpp/window_tree_connection.h
+++ b/components/mus/public/cpp/window_tree_connection.h
@@ -12,6 +12,7 @@
#include <vector>
#include "components/mus/common/types.h"
+#include "components/mus/public/interfaces/input_event_constants.mojom.h"
#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "mojo/public/cpp/bindings/interface_request.h"
@@ -77,6 +78,11 @@ class WindowTreeConnection {
// Sets focus to null. This does nothing if focus is currently null.
virtual void ClearFocus() = 0;
+ // See description in window_tree.mojom. When an existing event observer is
+ // updated or cleared then any future events from the server for that observer
+ // will be ignored.
+ virtual void SetEventObserver(mojom::EventMatcherPtr matcher) = 0;
+
// Creates and returns a new Window (which is owned by the window server).
// Windows are initially hidden, use SetVisible(true) to show.
Window* NewWindow() { return NewWindow(nullptr); }
« no previous file with comments | « components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc ('k') | components/mus/public/cpp/window_tree_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698