| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void TestWindowTree::SetWindowBounds( | 136 void TestWindowTree::SetWindowBounds( |
| 137 uint32_t change_id, | 137 uint32_t change_id, |
| 138 uint32_t window_id, | 138 uint32_t window_id, |
| 139 const gfx::Rect& bounds, | 139 const gfx::Rect& bounds, |
| 140 const base::Optional<cc::LocalSurfaceId>& local_surface_id) { | 140 const base::Optional<cc::LocalSurfaceId>& local_surface_id) { |
| 141 window_id_ = window_id; | 141 window_id_ = window_id; |
| 142 last_local_surface_id_ = local_surface_id; | 142 last_local_surface_id_ = local_surface_id; |
| 143 OnChangeReceived(change_id, WindowTreeChangeType::BOUNDS); | 143 OnChangeReceived(change_id, WindowTreeChangeType::BOUNDS); |
| 144 } | 144 } |
| 145 | 145 |
| 146 void TestWindowTree::RequestBeginFrames( |
| 147 Id window_id, |
| 148 cc::mojom::FrameSinkObserverPtr observer) { |
| 149 NOTIMPLEMENTED(); |
| 150 } |
| 146 void TestWindowTree::SetClientArea( | 151 void TestWindowTree::SetClientArea( |
| 147 uint32_t window_id, | 152 uint32_t window_id, |
| 148 const gfx::Insets& insets, | 153 const gfx::Insets& insets, |
| 149 const base::Optional<std::vector<gfx::Rect>>& additional_client_areas) { | 154 const base::Optional<std::vector<gfx::Rect>>& additional_client_areas) { |
| 150 last_client_area_ = insets; | 155 last_client_area_ = insets; |
| 151 } | 156 } |
| 152 | 157 |
| 153 void TestWindowTree::SetHitTestMask(uint32_t window_id, | 158 void TestWindowTree::SetHitTestMask(uint32_t window_id, |
| 154 const base::Optional<gfx::Rect>& mask) { | 159 const base::Optional<gfx::Rect>& mask) { |
| 155 last_hit_test_mask_ = mask; | 160 last_hit_test_mask_ = mask; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 void TestWindowTree::PerformWindowMove(uint32_t change_id, | 311 void TestWindowTree::PerformWindowMove(uint32_t change_id, |
| 307 uint32_t window_id, | 312 uint32_t window_id, |
| 308 ui::mojom::MoveLoopSource source, | 313 ui::mojom::MoveLoopSource source, |
| 309 const gfx::Point& cursor_location) { | 314 const gfx::Point& cursor_location) { |
| 310 OnChangeReceived(change_id); | 315 OnChangeReceived(change_id); |
| 311 } | 316 } |
| 312 | 317 |
| 313 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} | 318 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} |
| 314 | 319 |
| 315 } // namespace aura | 320 } // namespace aura |
| OLD | NEW |