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

Unified Diff: services/ui/ws/test_utils.cc

Issue 2667073002: mash: changes can_accept_events to an enum (Closed)
Patch Set: merge Created 3 years, 11 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 | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.cc
diff --git a/services/ui/ws/test_utils.cc b/services/ui/ws/test_utils.cc
index 5d87a75389fd6d894288ef6ea05d9b7b8ccc88de..acfbae9c4c9fdbf8e71371c3e6a6f7eb7188df8b 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -525,6 +525,8 @@ ServerWindow* WindowEventTargetingHelper::CreatePrimaryTree(
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);
+ embed_window->set_event_targeting_policy(
+ mojom::EventTargetingPolicy::DESCENDANTS_ONLY);
WindowTree* tree1 = window_server()->GetTreeWithRoot(embed_window);
EXPECT_NE(nullptr, tree1);
EXPECT_NE(tree1, wm_tree);
@@ -554,7 +556,6 @@ void WindowEventTargetingHelper::CreateSecondaryTree(
child1->SetVisible(true);
child1->SetBounds(window_bounds);
- EnableHitTest(child1);
TestWindowTreeClient* embed_client =
ws_test_helper_.window_server_delegate()->last_client();
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698