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

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

Issue 1352043005: mus: Implement Window Server Capture Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added capture unit tests Created 5 years, 1 month 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 69c17f1eeeb90e9dcf65af1e5411b5a335ca4b75..4c22f98f32c96c7d7aaa1ff482eabf30c1ae65be 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;
+}
+
bool WindowManagerAccessPolicy::CanSetFocus(const ServerWindow* window) const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698