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

Unified Diff: components/mus/public/cpp/window_tree_delegate.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_delegate.h
diff --git a/components/mus/public/cpp/window_tree_delegate.h b/components/mus/public/cpp/window_tree_delegate.h
index c20b5917622b6da041c50c7903ae61db5e6bace2..ff16625117b5ce41ba19b2725b21e0ec072e3c2d 100644
--- a/components/mus/public/cpp/window_tree_delegate.h
+++ b/components/mus/public/cpp/window_tree_delegate.h
@@ -10,6 +10,10 @@
#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "services/shell/public/interfaces/interface_provider.mojom.h"
+namespace ui {
+class Event;
+}
+
namespace mus {
class Window;
@@ -47,6 +51,10 @@ class WindowTreeDelegate {
// have been destroyed. |connection| is no longer valid after this call.
virtual void OnConnectionLost(WindowTreeConnection* connection) = 0;
+ // Called when the WindowTreeConnection receives an input event observed via
+ // SetEventObserver().
+ virtual void OnEventObserved(const ui::Event& event) = 0;
+
protected:
virtual ~WindowTreeDelegate() {}
};
« no previous file with comments | « components/mus/public/cpp/window_tree_connection.h ('k') | content/renderer/mus/compositor_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698