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

Unified Diff: components/mus/ws/window_server.cc

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
« no previous file with comments | « components/mus/ws/window_server.h ('k') | components/mus/ws/window_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_server.cc
diff --git a/components/mus/ws/window_server.cc b/components/mus/ws/window_server.cc
index fb6382f70af6b419a8609bba214aaa10a441d3d5..5ee158bb43518ee6971fedf9c034ddde648e6fde 100644
--- a/components/mus/ws/window_server.cc
+++ b/components/mus/ws/window_server.cc
@@ -74,10 +74,13 @@ WindowTree* WindowServer::EmbedAtWindow(
ServerWindow* root,
const UserId& user_id,
mojom::WindowTreeClientPtr client,
+ uint32_t flags,
std::unique_ptr<AccessPolicy> access_policy) {
std::unique_ptr<WindowTree> tree_ptr(
new WindowTree(this, user_id, root, std::move(access_policy)));
WindowTree* tree = tree_ptr.get();
+ if (flags & mojom::kEmbedFlagEmbedderInterceptsEvents)
+ tree->set_embedder_intercepts_events();
mojom::WindowTreePtr window_tree_ptr;
mojom::WindowTreeRequest window_tree_request = GetProxy(&window_tree_ptr);
« no previous file with comments | « components/mus/ws/window_server.h ('k') | components/mus/ws/window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698