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

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

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do it the other way + explicit checks that it is a mouse pointer. Created 5 years 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 0a9cb241599f5832039db490b27f42fcffa3a0b2..2c7a89a35f7ddf3e7e446a2d15236ea2dffc918d 100644
--- a/components/mus/ws/default_access_policy.cc
+++ b/components/mus/ws/default_access_policy.cc
@@ -133,6 +133,12 @@ bool DefaultAccessPolicy::CanSetClientArea(const ServerWindow* window) const {
delegate_->IsRootForAccessPolicy(window->id());
}
+bool DefaultAccessPolicy::CanSetCursorProperties(
+ const ServerWindow* window) const {
+ return WasCreatedByThisConnection(window) ||
+ delegate_->IsRootForAccessPolicy(window->id());
+}
+
bool DefaultAccessPolicy::ShouldNotifyOnHierarchyChange(
const ServerWindow* window,
const ServerWindow** new_parent,
« 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