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

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

Issue 1605773004: mus: Implement Window Server Capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
Index: components/mus/ws/window_manager_access_policy.cc
diff --git a/components/mus/ws/window_manager_access_policy.cc b/components/mus/ws/window_manager_access_policy.cc
index d259ebfcbd934273f7a8078c01649af0eaee5f14..8704f17bbba442bd413c2009a655ec47581c2f60 100644
--- a/components/mus/ws/window_manager_access_policy.cc
+++ b/components/mus/ws/window_manager_access_policy.cc
@@ -103,6 +103,11 @@ bool WindowManagerAccessPolicy::CanSetWindowTextInputState(
return window->id().connection_id == connection_id_;
}
+bool WindowManagerAccessPolicy::CanSetCapture(
+ const ServerWindow* window) const {
+ return true;
sky 2016/01/29 20:47:00 Actually, you should only allow this if the WM cre
jonross 2016/02/01 18:52:22 Done.
+}
+
bool WindowManagerAccessPolicy::CanSetFocus(const ServerWindow* window) const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698