OLD | NEW |
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 } | 200 } |
201 | 201 |
202 void TestWindowTree::RemoveTransientWindowFromParent( | 202 void TestWindowTree::RemoveTransientWindowFromParent( |
203 uint32_t change_id, | 203 uint32_t change_id, |
204 uint32_t transient_window_id) { | 204 uint32_t transient_window_id) { |
205 transient_data_.parent_id = kInvalidServerId; | 205 transient_data_.parent_id = kInvalidServerId; |
206 transient_data_.child_id = transient_window_id; | 206 transient_data_.child_id = transient_window_id; |
207 OnChangeReceived(change_id, WindowTreeChangeType::REMOVE_TRANSIENT); | 207 OnChangeReceived(change_id, WindowTreeChangeType::REMOVE_TRANSIENT); |
208 } | 208 } |
209 | 209 |
210 void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) { | 210 void TestWindowTree::SetModalType(uint32_t change_id, |
| 211 uint32_t window_id, |
| 212 ui::ModalType modal_type) { |
211 OnChangeReceived(change_id, WindowTreeChangeType::MODAL); | 213 OnChangeReceived(change_id, WindowTreeChangeType::MODAL); |
212 } | 214 } |
213 | 215 |
214 void TestWindowTree::ReorderWindow(uint32_t change_id, | 216 void TestWindowTree::ReorderWindow(uint32_t change_id, |
215 uint32_t window_id, | 217 uint32_t window_id, |
216 uint32_t relative_window_id, | 218 uint32_t relative_window_id, |
217 ui::mojom::OrderDirection direction) { | 219 ui::mojom::OrderDirection direction) { |
218 OnChangeReceived(change_id, WindowTreeChangeType::REORDER); | 220 OnChangeReceived(change_id, WindowTreeChangeType::REORDER); |
219 } | 221 } |
220 | 222 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 void TestWindowTree::PerformWindowMove(uint32_t change_id, | 298 void TestWindowTree::PerformWindowMove(uint32_t change_id, |
297 uint32_t window_id, | 299 uint32_t window_id, |
298 ui::mojom::MoveLoopSource source, | 300 ui::mojom::MoveLoopSource source, |
299 const gfx::Point& cursor_location) { | 301 const gfx::Point& cursor_location) { |
300 OnChangeReceived(change_id); | 302 OnChangeReceived(change_id); |
301 } | 303 } |
302 | 304 |
303 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} | 305 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} |
304 | 306 |
305 } // namespace aura | 307 } // namespace aura |
OLD | NEW |