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

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

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Early return Created 4 years, 5 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: services/ui/ws/window_tree.cc
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc
index 8a62bdd534534c4c4b111647511e306071068afe..ca962da817cb0a6694f1af823ec8d797cb4f1ca4 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -347,6 +347,15 @@ bool WindowTree::SetFocus(const ClientWindowId& window_id) {
return success;
}
+void WindowTree::SetCanAcceptEvents(Id transport_window_id,
+ bool can_accept_events) {
+ 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);
+}
+
bool WindowTree::Embed(const ClientWindowId& window_id,
mojom::WindowTreeClientPtr client,
uint32_t flags) {

Powered by Google App Engine
This is Rietveld 408576698