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

Side by Side 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 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
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 void TestWindowTree::SetWindowBounds(uint32_t change_id, 124 void TestWindowTree::SetWindowBounds(uint32_t change_id,
125 uint32_t window_id, 125 uint32_t window_id,
126 const gfx::Rect& bounds) { 126 const gfx::Rect& bounds) {
127 OnChangeReceived(change_id, WindowTreeChangeType::BOUNDS); 127 OnChangeReceived(change_id, WindowTreeChangeType::BOUNDS);
128 } 128 }
129 129
130 void TestWindowTree::SetClientArea( 130 void TestWindowTree::SetClientArea(
131 uint32_t window_id, 131 uint32_t window_id,
132 const gfx::Insets& insets, 132 const gfx::Insets& insets,
133 const base::Optional<std::vector<gfx::Rect>>& additional_client_areas) {} 133 const base::Optional<std::vector<gfx::Rect>>& additional_client_areas) {
134 last_client_area_ = insets;
135 }
134 136
135 void TestWindowTree::SetHitTestMask(uint32_t window_id, 137 void TestWindowTree::SetHitTestMask(uint32_t window_id,
136 const base::Optional<gfx::Rect>& mask) {} 138 const base::Optional<gfx::Rect>& mask) {
139 last_hit_test_mask_ = mask;
140 }
137 141
138 void TestWindowTree::SetCanAcceptDrops(uint32_t window_id, bool accepts_drops) { 142 void TestWindowTree::SetCanAcceptDrops(uint32_t window_id, bool accepts_drops) {
139 } 143 }
140 144
141 void TestWindowTree::SetWindowVisibility(uint32_t change_id, 145 void TestWindowTree::SetWindowVisibility(uint32_t change_id,
142 uint32_t window_id, 146 uint32_t window_id,
143 bool visible) { 147 bool visible) {
144 OnChangeReceived(change_id, WindowTreeChangeType::VISIBLE); 148 OnChangeReceived(change_id, WindowTreeChangeType::VISIBLE);
145 } 149 }
146 150
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void TestWindowTree::PerformWindowMove(uint32_t change_id, 277 void TestWindowTree::PerformWindowMove(uint32_t change_id,
274 uint32_t window_id, 278 uint32_t window_id,
275 ui::mojom::MoveLoopSource source, 279 ui::mojom::MoveLoopSource source,
276 const gfx::Point& cursor_location) { 280 const gfx::Point& cursor_location) {
277 OnChangeReceived(change_id); 281 OnChangeReceived(change_id);
278 } 282 }
279 283
280 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} 284 void TestWindowTree::CancelWindowMove(uint32_t window_id) {}
281 285
282 } // namespace aura 286 } // namespace aura
OLDNEW
« 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