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

Side by Side Diff: ui/aura/test/mus/test_window_tree.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/aura/test/mus/test_window_tree.h" 5 #include "ui/aura/test/mus/test_window_tree.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace aura { 9 namespace aura {
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 void TestWindowTree::SetWindowBounds(uint32_t change_id, 123 void TestWindowTree::SetWindowBounds(uint32_t change_id,
124 uint32_t window_id, 124 uint32_t window_id,
125 const gfx::Rect& bounds) { 125 const gfx::Rect& bounds) {
126 OnChangeReceived(change_id, WindowTreeChangeType::BOUNDS); 126 OnChangeReceived(change_id, WindowTreeChangeType::BOUNDS);
127 } 127 }
128 128
129 void TestWindowTree::SetClientArea( 129 void TestWindowTree::SetClientArea(
130 uint32_t window_id, 130 uint32_t window_id,
131 const gfx::Insets& insets, 131 const gfx::Insets& insets,
132 mojo::Array<gfx::Rect> additional_client_areas) {} 132 mojo::Array<gfx::Rect> additional_client_areas) {
133 last_client_area_ = insets;
134 }
133 135
134 void TestWindowTree::SetHitTestMask(uint32_t window_id, 136 void TestWindowTree::SetHitTestMask(uint32_t window_id,
135 const base::Optional<gfx::Rect>& mask) {} 137 const base::Optional<gfx::Rect>& mask) {
138 last_hit_test_mask_ = mask;
139 }
136 140
137 void TestWindowTree::SetCanAcceptDrops(uint32_t window_id, bool accepts_drops) { 141 void TestWindowTree::SetCanAcceptDrops(uint32_t window_id, bool accepts_drops) {
138 } 142 }
139 143
140 void TestWindowTree::SetWindowVisibility(uint32_t change_id, 144 void TestWindowTree::SetWindowVisibility(uint32_t change_id,
141 uint32_t window_id, 145 uint32_t window_id,
142 bool visible) { 146 bool visible) {
143 OnChangeReceived(change_id, WindowTreeChangeType::VISIBLE); 147 OnChangeReceived(change_id, WindowTreeChangeType::VISIBLE);
144 } 148 }
145 149
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void TestWindowTree::PerformWindowMove(uint32_t change_id, 275 void TestWindowTree::PerformWindowMove(uint32_t change_id,
272 uint32_t window_id, 276 uint32_t window_id,
273 ui::mojom::MoveLoopSource source, 277 ui::mojom::MoveLoopSource source,
274 const gfx::Point& cursor_location) { 278 const gfx::Point& cursor_location) {
275 OnChangeReceived(change_id); 279 OnChangeReceived(change_id);
276 } 280 }
277 281
278 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} 282 void TestWindowTree::CancelWindowMove(uint32_t window_id) {}
279 283
280 } // namespace aura 284 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698