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

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

Issue 1949823002: WIP: Eliminate event.target() usage from TrayEventFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: container delegate Created 4 years, 7 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 ff16625117b5ce41ba19b2725b21e0ec072e3c2d..f734293293f480ad91b12aaa0049c34580c64bdc 100644
--- a/components/mus/public/cpp/window_tree_delegate.h
+++ b/components/mus/public/cpp/window_tree_delegate.h
@@ -52,8 +52,10 @@ class WindowTreeDelegate {
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;
+ // SetEventObserver(). |target| may be null for events that were sent to
+ // windows owned by other processes.
+ virtual void OnEventObserved(const ui::Event& event,
+ Window* target) = 0;
protected:
virtual ~WindowTreeDelegate() {}
« no previous file with comments | « components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc ('k') | content/renderer/mus/compositor_mus_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698