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

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

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: Merge with tot 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 9fbd03f3146a5073be224f61347b7fda5e2a2c63..61ecab8c04674937bc991f0b2737e3243a462570 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1503,6 +1503,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>());
sky 2016/11/19 15:29:31 optional: I don't think anyone else is calling Set
Elliot Glaysher 2016/11/22 00:48:07 Done.
+}
+
+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