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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2667073002: mash: changes can_accept_events to an enum (Closed)
Patch Set: 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
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 2d086538d0ea7ac9e5088ec2243242877755a93b..84aa5c77e35f4b07bf5497da84b0299e384b68f7 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -848,10 +848,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,

Powered by Google App Engine
This is Rietveld 408576698