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

Unified Diff: services/ui/public/interfaces/window_tree.mojom

Issue 2125663002: mus: Add watcher for all touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Overload copy assignment operator for Change struct. Created 4 years, 5 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
« no previous file with comments | « services/ui/public/cpp/window_tree_client.h ('k') | services/ui/ws/test_change_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/interfaces/window_tree.mojom
diff --git a/services/ui/public/interfaces/window_tree.mojom b/services/ui/public/interfaces/window_tree.mojom
index a15f7bf5c7117e6b21cc6037a3bb34d943b92fab..9d3bd14f209ef30fd33cd2651dca4548035d5163 100644
--- a/services/ui/public/interfaces/window_tree.mojom
+++ b/services/ui/public/interfaces/window_tree.mojom
@@ -72,8 +72,11 @@ interface WindowTree {
// it to the WindowTreeClient via OnWindowInputEvent (if the event target is
// this window tree) or OnEventObserved (if the target is another tree). The
// client must supply a non-zero |observer_id|, which is reported back with
- // observed events. Set the matcher to null to clear the observer.
- SetEventObserver(EventMatcher? matcher, uint32 observer_id);
+ // observed events.
+ AddEventObserver(EventMatcher? matcher, uint32 observer_id);
sky 2016/07/08 15:41:11 In thinking about this a bit could we we implement
sadrul 2016/07/08 15:51:30 I think this would be possible (and how I was thin
riajiang 2016/07/11 20:13:22 Changed back to support only one event matcher wit
+
+ // Remove the event observer of the window tree with the observer_id.
+ RemoveEventObserver(uint32 observer_id);
// Sets the specified bounds of the specified window.
SetWindowBounds(uint32 change_id, uint32 window_id, gfx.mojom.Rect bounds);
@@ -353,12 +356,12 @@ interface WindowTreeClient {
OnWindowInputEvent(uint32 event_id,
uint32 window,
ui.mojom.Event event,
- uint32 event_observer_id);
+ array<uint32> event_observer_id);
// Invoked when an |event| is sent via the EventObserver and not targeted at a
// specific window. The |event_observer_id| is the one supplied to
// SetEventObserver. The client should not acknowledge these events.
- OnEventObserved(ui.mojom.Event event, uint32 event_observer_id);
+ OnEventObserved(ui.mojom.Event event, array<uint32> event_observer_id);
// Called in two distinct cases: when a window known to the connection gains
// focus, or when focus moves from a window known to the connection to a
« no previous file with comments | « services/ui/public/cpp/window_tree_client.h ('k') | services/ui/ws/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698