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

Unified Diff: components/mus/ws/test_utils.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/test_utils.h ('k') | components/mus/ws/window_manager_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_utils.cc
diff --git a/components/mus/ws/test_utils.cc b/components/mus/ws/test_utils.cc
index ada01b34fbe754b6fa565795dd91c4bc7170dd44..78f7d4714d3b3f4bcf929a74d29b63563c53b941 100644
--- a/components/mus/ws/test_utils.cc
+++ b/components/mus/ws/test_utils.cc
@@ -145,9 +145,10 @@ int EventDispatcherTestApi::NumberPointerTargetsForWindow(
// TestDisplayBinding ---------------------------------------------------------
WindowTree* TestDisplayBinding::CreateWindowTree(ServerWindow* root) {
+ const uint32_t embed_flags = 0;
WindowTree* tree = window_server_->EmbedAtWindow(
root, shell::mojom::kRootUserID, mus::mojom::WindowTreeClientPtr(),
- base::WrapUnique(new WindowManagerAccessPolicy));
+ embed_flags, base::WrapUnique(new WindowManagerAccessPolicy));
tree->ConfigureWindowManager();
return tree;
}
@@ -396,7 +397,8 @@ ServerWindow* WindowEventTargetingHelper::CreatePrimaryTree(
mojom::WindowTreeClientPtr client;
mojom::WindowTreeClientRequest client_request = GetProxy(&client);
wm_client_->Bind(std::move(client_request));
- wm_tree->Embed(embed_window_id, std::move(client));
+ const uint32_t embed_flags = 0;
+ wm_tree->Embed(embed_window_id, std::move(client), embed_flags);
ServerWindow* embed_window = wm_tree->GetWindowByClientId(embed_window_id);
WindowTree* tree1 = window_server_->GetTreeWithRoot(embed_window);
EXPECT_NE(nullptr, tree1);
« no previous file with comments | « components/mus/ws/test_utils.h ('k') | components/mus/ws/window_manager_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698