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

Unified Diff: ui/aura/test/mus/test_window_tree.cc

Issue 2507963002: Implement hit tests/client area. (Closed)
Patch Set: add it back 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
« no previous file with comments | « ui/aura/test/mus/test_window_tree.h ('k') | ui/views/mus/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/mus/test_window_tree.cc
diff --git a/ui/aura/test/mus/test_window_tree.cc b/ui/aura/test/mus/test_window_tree.cc
index 2b2d9d52658ba6729125db8fe478c7a68a0a163e..7f8dda76f47eccab093471017ca40d9e5ca4c382 100644
--- a/ui/aura/test/mus/test_window_tree.cc
+++ b/ui/aura/test/mus/test_window_tree.cc
@@ -130,10 +130,14 @@ void TestWindowTree::SetWindowBounds(uint32_t change_id,
void TestWindowTree::SetClientArea(
uint32_t window_id,
const gfx::Insets& insets,
- const base::Optional<std::vector<gfx::Rect>>& additional_client_areas) {}
+ const base::Optional<std::vector<gfx::Rect>>& additional_client_areas) {
+ last_client_area_ = insets;
+}
void TestWindowTree::SetHitTestMask(uint32_t window_id,
- const base::Optional<gfx::Rect>& mask) {}
+ const base::Optional<gfx::Rect>& mask) {
+ last_hit_test_mask_ = mask;
+}
void TestWindowTree::SetCanAcceptDrops(uint32_t window_id, bool accepts_drops) {
}
« no previous file with comments | « ui/aura/test/mus/test_window_tree.h ('k') | ui/views/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698