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

Unified Diff: components/mus/public/interfaces/window_tree.mojom

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/public/cpp/window.h ('k') | components/mus/ws/access_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/window_tree.mojom
diff --git a/components/mus/public/interfaces/window_tree.mojom b/components/mus/public/interfaces/window_tree.mojom
index e5a15f16c23aee0782e43a591ccf288a242eacd7..045a943623ebdfc928726bac68b78a8445c61aa6 100644
--- a/components/mus/public/interfaces/window_tree.mojom
+++ b/components/mus/public/interfaces/window_tree.mojom
@@ -129,6 +129,11 @@ interface WindowTree {
mojo.Insets insets,
array<mojo.Rect>? additional_client_areas);
+ // Mouse events outside a hit test mask do not hit the window. The |mask| is
+ // in window local coordinates. Pass null to clear the mask.
+ // TODO(jamescook): Convert |mask| to a path. http://crbug.com/613210
+ SetHitTestMask(uint32 window_id, mojo.Rect? mask);
+
// Sets the visibility of the specified window to |visible|. Connections are
// allowed to change the visibility of any window they have created, as well
// as any of their roots.
« no previous file with comments | « components/mus/public/cpp/window.h ('k') | components/mus/ws/access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698