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

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

Issue 1991973003: mash: Preliminary support for widget hit test masks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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/event_dispatcher_unittest.cc » ('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 c6fe681ec7bc93e629467493a61dfa044fdf5f8b..c158ddb1678e46cf5d0650563cb0c7a3730832ce 100644
--- a/components/mus/ws/default_access_policy.cc
+++ b/components/mus/ws/default_access_policy.cc
@@ -144,6 +144,11 @@ bool DefaultAccessPolicy::CanSetClientArea(const ServerWindow* window) const {
delegate_->HasRootForAccessPolicy(window);
}
+bool DefaultAccessPolicy::CanSetHitTestMask(const ServerWindow* window) const {
+ return WasCreatedByThisConnection(window) ||
+ delegate_->HasRootForAccessPolicy(window);
+}
+
bool DefaultAccessPolicy::CanSetCursorProperties(
const ServerWindow* window) const {
return WasCreatedByThisConnection(window) ||
« no previous file with comments | « components/mus/ws/default_access_policy.h ('k') | components/mus/ws/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698