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

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

Issue 2068093002: mus: Allow embedder to intercept events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | « components/mus/public/cpp/window_tree_client.h ('k') | components/mus/ws/display_binding.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8aaa8b30785d759524a13f52485d20f8a4709e17..85e84f56f24e7f21dbc63b30fbe27e0166418293 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -52,6 +52,8 @@ enum EventResult {
UNHANDLED,
};
+const uint32 kEmbedFlagEmbedderInterceptsEvents = 0x01;
Ben Goodger (Google) 2016/06/16 16:53:49 1. Can you use an enum for this, and refer to it f
sadrul 2016/06/16 16:56:59 I had an enum before, but switched to using ints s
+
// Windows are identified by a uint32. The upper 16 bits are the connection id,
// and the lower 16 the id assigned by the client.
//
@@ -228,7 +230,8 @@ interface WindowTree {
// OnEmbeddedAppDisconnected().
//
// The callback returns whether the embedding was successful.
- Embed(uint32 window_id, WindowTreeClient client) => (bool success);
+ Embed(uint32 window_id, WindowTreeClient client, uint32 flags)
+ => (bool success);
// Sets focus to the specified window, use 0 to clear focus. For a window to
// get focus the following has to happen: the window is drawn, the window has
« no previous file with comments | « components/mus/public/cpp/window_tree_client.h ('k') | components/mus/ws/display_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698