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

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: 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
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..6c51c75d3b5f60f4b152656abb275493771fc3e8 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,16 @@ 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::ClearHitTestMask(Id window_id) {
+ DCHECK(tree_);
+ tree_->SetHitTestMask(window_id, nullptr);
+}
+
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.
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.h ('k') | components/mus/public/cpp/tests/test_window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698