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

Unified Diff: ui/aura/mus/window_tree_client.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 | « ui/aura/mus/window_tree_client.h ('k') | ui/aura/test/mus/test_window_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 90a74132bd1c1fc9ca77888cb11e3d37569f1e4e..75ff387eb6fb0b403970cd28a8d5a6c998592708 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -827,10 +827,11 @@ void WindowTreeClient::SetCanAcceptDrops(Id window_id, bool can_accept_drops) {
tree_->SetCanAcceptDrops(window_id, can_accept_drops);
}
-void WindowTreeClient::SetCanAcceptEvents(WindowMus* window,
- bool can_accept_events) {
+void WindowTreeClient::SetEventTargetingPolicy(
+ WindowMus* window,
+ ui::mojom::EventTargetingPolicy policy) {
DCHECK(tree_);
- tree_->SetCanAcceptEvents(window->server_id(), can_accept_events);
+ tree_->SetEventTargetingPolicy(window->server_id(), policy);
}
void WindowTreeClient::OnEmbed(ClientSpecificId client_id,
« no previous file with comments | « ui/aura/mus/window_tree_client.h ('k') | ui/aura/test/mus/test_window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698