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

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

Issue 1891413002: mash: Convert OnWindowInputEventAck to use an enum for handled status (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed a file 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..eb2ef580ef31b7b8fb99e0eab0494d16f6976ed4 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -52,6 +52,12 @@ enum SurfaceType {
DEFAULT,
};
+// The result of an input event sent to a client app.
+enum EventResult {
+ HANDLED,
+ UNHANDLED,
+};
+
// 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 +247,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 +357,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/window_manager_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698