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

Unified Diff: services/ui/ws/default_access_policy.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: Fix comments 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
« no previous file with comments | « services/ui/ws/default_access_policy.h ('k') | services/ui/ws/server_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/default_access_policy.cc
diff --git a/services/ui/ws/default_access_policy.cc b/services/ui/ws/default_access_policy.cc
index 892adc0e4e8c3ac5ac5534a246edfc42ced4ee77..5d976599cb9dda110dff72f75578a0cb68cafc5e 100644
--- a/services/ui/ws/default_access_policy.cc
+++ b/services/ui/ws/default_access_policy.cc
@@ -149,6 +149,11 @@ bool DefaultAccessPolicy::CanSetHitTestMask(const ServerWindow* window) const {
delegate_->HasRootForAccessPolicy(window);
}
+bool DefaultAccessPolicy::CanSetAcceptEvents(const ServerWindow* window) const {
+ return WasCreatedByThisClient(window) ||
+ delegate_->HasRootForAccessPolicy(window);
+}
+
bool DefaultAccessPolicy::CanSetCursorProperties(
const ServerWindow* window) const {
return WasCreatedByThisClient(window) ||
« no previous file with comments | « services/ui/ws/default_access_policy.h ('k') | services/ui/ws/server_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698