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

Unified Diff: components/mus/public/interfaces/window_tree.mojom

Issue 1883263002: mash: Repost mouse pressed event when closing Ash system tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup 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/interfaces/window_tree.mojom
diff --git a/components/mus/public/interfaces/window_tree.mojom b/components/mus/public/interfaces/window_tree.mojom
index fe110197e7d10f34b2572e8041af70c966299812..76e2f72e8ea756577ddaf5a496c25249156d0443 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -52,6 +52,15 @@ enum SurfaceType {
DEFAULT,
};
+// The result of an input event sent to a client app.
+enum EventResult {
+ HANDLED,
+ UNHANDLED,
+ // The event was not handled and should be reposted (e.g. a mouse down that
+ // closed a context menu).
+ REPOST,
+};
+
// Windows are identified by a uint32. The upper 16 bits are the connection id,
// and the lower 16 the id assigned by the client.
//
@@ -241,7 +250,7 @@ interface WindowTree {
SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state);
// See documentation for WindowTreeClient::OnWindowInputEvent().
- OnWindowInputEventAck(uint32 event_id, bool handled);
+ OnWindowInputEventAck(uint32 event_id, EventResult result);
// See description of WindowManager for details.
GetWindowManagerClient(associated WindowManagerClient& internal);
@@ -351,7 +360,7 @@ interface WindowTreeClient {
// Invoked when an event is targeted at the specified window. The client must
// call WindowTree::OnWindowInputEventAck() with the same |event_id| to notify
- // that the event has been processed, and with a boolean |handled| to notify
+ // that the event has been processed, and with an EventResult value to notify
// if the event was consumed. The client will not receive farther events until
// the event is ack'ed.
OnWindowInputEvent(uint32 event_id, uint32 window, Event event);
« no previous file with comments | « components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc ('k') | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698