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

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: add bug link for SkPath conversion 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
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..c73f49a07252c9af062a5aebfc7c421986387e50 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.
+ // TODO(jamescook): Convert |mask| to a path. http://crbug.com/613210
+ SetHitTestMask(uint32 window_id, mojo.Rect mask);
sky 2016/05/19 18:13:17 Add support for a null mask that clears the hit te
James Cook 2016/05/19 21:47:45 Done.
+
// 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.

Powered by Google App Engine
This is Rietveld 408576698