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

Unified Diff: ui/aura/mus/window_tree_host_mus.cc

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: Really fix compile Created 4 years, 1 month 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: ui/aura/mus/window_tree_host_mus.cc
diff --git a/ui/aura/mus/window_tree_host_mus.cc b/ui/aura/mus/window_tree_host_mus.cc
index e458fd2be0246f90e980defd79510518d57cb44a..2041ce50c6511ff984739d5f8a44a7dead18cc7f 100644
--- a/ui/aura/mus/window_tree_host_mus.cc
+++ b/ui/aura/mus/window_tree_host_mus.cc
@@ -102,6 +102,18 @@ void WindowTreeHostMus::SetBoundsFromServer(const gfx::Rect& bounds) {
SetBounds(bounds);
}
+void WindowTreeHostMus::SetClientArea(const gfx::Insets& insets) {
+ delegate_->OnWindowTreeHostClientAreaWillChange(this, insets);
+}
+
+void WindowTreeHostMus::ClearHitTestMask() {
+ delegate_->OnWindowTreeHostClearHitTestMask(this);
+}
+
+void WindowTreeHostMus::SetHitTestMask(const gfx::Rect& rect) {
+ delegate_->OnWindowTreeHostHitTestMaskWillChange(this, rect);
+}
+
display::Display WindowTreeHostMus::GetDisplay() const {
for (const display::Display& display :
display::Screen::GetScreen()->GetAllDisplays()) {

Powered by Google App Engine
This is Rietveld 408576698