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

Unified Diff: ui/aura/mus/window_tree_client.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_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index a84e1e2f3c97cbfd89d7b88abfb30d4c2cb50f1f..240ca17a06798deb9a11526f7b0715a9b30f7459 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1476,6 +1476,23 @@ void WindowTreeClient::OnWindowTreeHostBoundsWillChange(
window_tree_host->GetBounds(), bounds);
}
+void WindowTreeClient::OnWindowTreeHostClientAreaWillChange(
+ WindowTreeHostMus* window_tree_host,
+ const gfx::Insets& insets) {
+ SetClientArea(window_tree_host->window(), insets, std::vector<gfx::Rect>());
+}
+
+void WindowTreeClient::OnWindowTreeHostClearHitTestMask(
+ WindowTreeHostMus* window_tree_host) {
+ ClearHitTestMask(window_tree_host->window());
+}
+
+void WindowTreeClient::OnWindowTreeHostHitTestMaskWillChange(
+ WindowTreeHostMus* window_tree_host,
+ const gfx::Rect& mask_rect) {
+ SetHitTestMask(window_tree_host->window(), mask_rect);
+}
+
std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel() {
std::unique_ptr<WindowPortMus> window_port =
base::MakeUnique<WindowPortMus>(this, WindowMusType::TOP_LEVEL);

Powered by Google App Engine
This is Rietveld 408576698