| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } | 191 } |
| 192 | 192 |
| 193 void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) { | 193 void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) { |
| 194 OnChangeReceived(change_id, WindowTreeChangeType::MODAL); | 194 OnChangeReceived(change_id, WindowTreeChangeType::MODAL); |
| 195 } | 195 } |
| 196 | 196 |
| 197 void TestWindowTree::ReorderWindow(uint32_t change_id, | 197 void TestWindowTree::ReorderWindow(uint32_t change_id, |
| 198 uint32_t window_id, | 198 uint32_t window_id, |
| 199 uint32_t relative_window_id, | 199 uint32_t relative_window_id, |
| 200 ui::mojom::OrderDirection direction) { | 200 ui::mojom::OrderDirection direction) { |
| 201 OnChangeReceived(change_id); | 201 OnChangeReceived(change_id, WindowTreeChangeType::REORDER); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void TestWindowTree::GetWindowTree(uint32_t window_id, | 204 void TestWindowTree::GetWindowTree(uint32_t window_id, |
| 205 const GetWindowTreeCallback& callback) {} | 205 const GetWindowTreeCallback& callback) {} |
| 206 | 206 |
| 207 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { | 207 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { |
| 208 OnChangeReceived(change_id, WindowTreeChangeType::CAPTURE); | 208 OnChangeReceived(change_id, WindowTreeChangeType::CAPTURE); |
| 209 } | 209 } |
| 210 | 210 |
| 211 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) { | 211 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 void TestWindowTree::PerformWindowMove(uint32_t change_id, | 271 void TestWindowTree::PerformWindowMove(uint32_t change_id, |
| 272 uint32_t window_id, | 272 uint32_t window_id, |
| 273 ui::mojom::MoveLoopSource source, | 273 ui::mojom::MoveLoopSource source, |
| 274 const gfx::Point& cursor_location) { | 274 const gfx::Point& cursor_location) { |
| 275 OnChangeReceived(change_id); | 275 OnChangeReceived(change_id); |
| 276 } | 276 } |
| 277 | 277 |
| 278 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} | 278 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} |
| 279 | 279 |
| 280 } // namespace aura | 280 } // namespace aura |
| OLD | NEW |