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

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: tot-merge 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
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 878b93f556280c41e2517690f222324ec3e4abd1..96c2f73fe75fe7e9b36912a1be8b19bbab3d5b37 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -177,6 +177,9 @@ interface WindowTree {
// The caller must have created |window_id|. If not the request fails and the
// response is false.
//
+ // The embedder can dictate the behaviour of the embedded client by setting
+ // the appropriate embed flags (e.g. kEmbedFlagEmbedderInterceptsEvents).
+ //
// When a connection embeds a WindowTreeClient the originating connection no
// longer has privileges to access or see any of the children of the window.
// If the window had existing children the children are removed. The
@@ -192,7 +195,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 embed_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/public/interfaces/window_tree_constants.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698