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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_impl.cc

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/cpp/lib/window_tree_client_impl.cc
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.cc b/components/mus/public/cpp/lib/window_tree_client_impl.cc
index 7fd7995376f45a7ab0554b6dd813b4233078647f..1344d34d47e79423a5560e7fc0397563406f5230 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.cc
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.cc
@@ -313,6 +313,11 @@ void WindowTreeClientImpl::SetClientArea(
mojo::Array<mojo::RectPtr>::From(additional_client_areas));
}
+void WindowTreeClientImpl::SetHitTestMask(Id window_id, const gfx::Rect& mask) {
+ DCHECK(tree_);
+ tree_->SetHitTestMask(window_id, mojo::Rect::From(mask));
+}
+
void WindowTreeClientImpl::SetFocus(Window* window) {
// In order for us to get here we had to have exposed a window, which implies
// we got a connection.

Powered by Google App Engine
This is Rietveld 408576698