| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 void TestWindowTree::SetImeVisibility(uint32_t window_id, | 259 void TestWindowTree::SetImeVisibility(uint32_t window_id, |
| 260 bool visible, | 260 bool visible, |
| 261 mojo::TextInputStatePtr state) {} | 261 mojo::TextInputStatePtr state) {} |
| 262 | 262 |
| 263 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, | 263 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, |
| 264 ui::mojom::EventResult result) { | 264 ui::mojom::EventResult result) { |
| 265 EXPECT_FALSE(WasEventAcked(event_id)); | 265 EXPECT_FALSE(WasEventAcked(event_id)); |
| 266 acked_events_.push_back({event_id, result}); | 266 acked_events_.push_back({event_id, result}); |
| 267 } | 267 } |
| 268 | 268 |
| 269 void TestWindowTree::DeactivateWindow(uint32_t window_id) {} |
| 270 |
| 269 void TestWindowTree::GetWindowManagerClient( | 271 void TestWindowTree::GetWindowManagerClient( |
| 270 mojo::AssociatedInterfaceRequest<ui::mojom::WindowManagerClient> internal) { | 272 mojo::AssociatedInterfaceRequest<ui::mojom::WindowManagerClient> internal) { |
| 271 } | 273 } |
| 272 | 274 |
| 273 void TestWindowTree::GetCursorLocationMemory( | 275 void TestWindowTree::GetCursorLocationMemory( |
| 274 const GetCursorLocationMemoryCallback& callback) { | 276 const GetCursorLocationMemoryCallback& callback) { |
| 275 callback.Run(mojo::ScopedSharedBufferHandle()); | 277 callback.Run(mojo::ScopedSharedBufferHandle()); |
| 276 } | 278 } |
| 277 | 279 |
| 278 void TestWindowTree::PerformDragDrop( | 280 void TestWindowTree::PerformDragDrop( |
| 279 uint32_t change_id, | 281 uint32_t change_id, |
| 280 uint32_t source_window_id, | 282 uint32_t source_window_id, |
| 281 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, | 283 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, |
| 282 uint32_t drag_operation) { | 284 uint32_t drag_operation) { |
| 283 OnChangeReceived(change_id); | 285 OnChangeReceived(change_id); |
| 284 } | 286 } |
| 285 | 287 |
| 286 void TestWindowTree::CancelDragDrop(uint32_t window_id) {} | 288 void TestWindowTree::CancelDragDrop(uint32_t window_id) {} |
| 287 | 289 |
| 288 void TestWindowTree::PerformWindowMove(uint32_t change_id, | 290 void TestWindowTree::PerformWindowMove(uint32_t change_id, |
| 289 uint32_t window_id, | 291 uint32_t window_id, |
| 290 ui::mojom::MoveLoopSource source, | 292 ui::mojom::MoveLoopSource source, |
| 291 const gfx::Point& cursor_location) { | 293 const gfx::Point& cursor_location) { |
| 292 OnChangeReceived(change_id); | 294 OnChangeReceived(change_id); |
| 293 } | 295 } |
| 294 | 296 |
| 295 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} | 297 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} |
| 296 | 298 |
| 297 } // namespace aura | 299 } // namespace aura |
| OLD | NEW |