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

Unified Diff: components/mus/ws/default_access_policy.cc

Issue 1677513002: mus Window Server: implement event capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « components/mus/ws/default_access_policy.h ('k') | components/mus/ws/display_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/default_access_policy.cc
diff --git a/components/mus/ws/default_access_policy.cc b/components/mus/ws/default_access_policy.cc
index ae4b8272eb68d1bcc95246763077df521398f3d9..615b8dca7ffcc8488f367f7452f448ab27c5a6a6 100644
--- a/components/mus/ws/default_access_policy.cc
+++ b/components/mus/ws/default_access_policy.cc
@@ -123,6 +123,11 @@ bool DefaultAccessPolicy::CanSetWindowTextInputState(
delegate_->HasRootForAccessPolicy(window);
}
+bool DefaultAccessPolicy::CanSetCapture(const ServerWindow* window) const {
+ return WasCreatedByThisConnection(window) ||
+ delegate_->HasRootForAccessPolicy(window);
+}
+
bool DefaultAccessPolicy::CanSetFocus(const ServerWindow* window) const {
return WasCreatedByThisConnection(window) ||
delegate_->HasRootForAccessPolicy(window);
« no previous file with comments | « components/mus/ws/default_access_policy.h ('k') | components/mus/ws/display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698