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

Unified Diff: components/mus/default_access_policy.cc

Issue 1352043005: mus: Implement Window Server Capture Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a test Created 5 years, 3 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: components/mus/default_access_policy.cc
diff --git a/components/mus/default_access_policy.cc b/components/mus/default_access_policy.cc
index f5ffd78dbdb46c510e7077e7d6e31b77ea7a9361..00a79d8de305c7769108cc8da2530aa75bbb0579 100644
--- a/components/mus/default_access_policy.cc
+++ b/components/mus/default_access_policy.cc
@@ -96,6 +96,11 @@ bool DefaultAccessPolicy::CanSetViewTextInputState(
delegate_->IsRootForAccessPolicy(view->id());
}
+bool DefaultAccessPolicy::CanSetCapture(const ServerView* view) const {
+ return WasCreatedByThisConnection(view) ||
+ delegate_->IsRootForAccessPolicy(view->id());
+}
+
bool DefaultAccessPolicy::CanSetFocus(const ServerView* view) const {
return WasCreatedByThisConnection(view) ||
delegate_->IsRootForAccessPolicy(view->id());

Powered by Google App Engine
This is Rietveld 408576698