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

Unified Diff: services/ui/ws/window_tree.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/window_tree.h ('k') | services/ui/ws/window_tree_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_tree.cc
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc
index 55838d32e09bd8bc3454c16fc939fb64d5ea82ce..53224669f80d28dedf688fec7b56e0b581f1be56 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -1564,13 +1564,13 @@ void WindowTree::SetCanFocus(Id transport_window_id, bool can_focus) {
}
}
-void WindowTree::SetCanAcceptEvents(Id transport_window_id,
- bool can_accept_events) {
+void WindowTree::SetEventTargetingPolicy(Id transport_window_id,
+ mojom::EventTargetingPolicy policy) {
ServerWindow* window =
GetWindowByClientId(ClientWindowId(transport_window_id));
// TODO(riajiang): check |event_queue_| is empty for |window|.
- if (window && access_policy_->CanSetAcceptEvents(window))
- window->set_can_accept_events(can_accept_events);
+ if (window && access_policy_->CanSetEventTargetingPolicy(window))
+ window->set_event_targeting_policy(policy);
}
void WindowTree::SetPredefinedCursor(uint32_t change_id,
« no previous file with comments | « services/ui/ws/window_tree.h ('k') | services/ui/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698