OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/ws/test_utils.h" | 5 #include "services/ui/ws/test_utils.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 void TestWindowTreeClient::OnWindowFocused(uint32_t focused_window_id) { | 345 void TestWindowTreeClient::OnWindowFocused(uint32_t focused_window_id) { |
346 tracker_.OnWindowFocused(focused_window_id); | 346 tracker_.OnWindowFocused(focused_window_id); |
347 } | 347 } |
348 | 348 |
349 void TestWindowTreeClient::OnWindowPredefinedCursorChanged( | 349 void TestWindowTreeClient::OnWindowPredefinedCursorChanged( |
350 uint32_t window_id, | 350 uint32_t window_id, |
351 mojom::Cursor cursor_id) { | 351 mojom::Cursor cursor_id) { |
352 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id); | 352 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id); |
353 } | 353 } |
354 | 354 |
| 355 void TestWindowTreeClient::OnDragDropStart( |
| 356 mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data) {} |
| 357 |
| 358 void TestWindowTreeClient::OnDragEnter(uint32_t window, |
| 359 uint32_t key_state, |
| 360 const gfx::Point& position, |
| 361 uint32_t effect_bitmask, |
| 362 const OnDragEnterCallback& callback) {} |
| 363 |
| 364 void TestWindowTreeClient::OnDragOver(uint32_t window, |
| 365 uint32_t key_state, |
| 366 const gfx::Point& position, |
| 367 uint32_t effect_bitmask, |
| 368 const OnDragOverCallback& callback) {} |
| 369 |
| 370 void TestWindowTreeClient::OnDragLeave(uint32_t window) {} |
| 371 |
| 372 void TestWindowTreeClient::OnCompleteDrop( |
| 373 uint32_t window, |
| 374 uint32_t key_state, |
| 375 const gfx::Point& position, |
| 376 uint32_t effect_bitmask, |
| 377 const OnCompleteDropCallback& callback) {} |
| 378 |
| 379 void TestWindowTreeClient::OnDragDropDone() {} |
| 380 |
355 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) { | 381 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) { |
356 if (record_on_change_completed_) | 382 if (record_on_change_completed_) |
357 tracker_.OnChangeCompleted(change_id, success); | 383 tracker_.OnChangeCompleted(change_id, success); |
358 } | 384 } |
359 | 385 |
360 void TestWindowTreeClient::RequestClose(uint32_t window_id) {} | 386 void TestWindowTreeClient::RequestClose(uint32_t window_id) {} |
361 | 387 |
362 void TestWindowTreeClient::GetWindowManager( | 388 void TestWindowTreeClient::GetWindowManager( |
363 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) {} | 389 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) {} |
364 | 390 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 return nullptr; | 579 return nullptr; |
554 if (!tree->AddWindow(parent_client_id, client_window_id)) | 580 if (!tree->AddWindow(parent_client_id, client_window_id)) |
555 return nullptr; | 581 return nullptr; |
556 *client_id = client_window_id; | 582 *client_id = client_window_id; |
557 return tree->GetWindowByClientId(client_window_id); | 583 return tree->GetWindowByClientId(client_window_id); |
558 } | 584 } |
559 | 585 |
560 } // namespace test | 586 } // namespace test |
561 } // namespace ws | 587 } // namespace ws |
562 } // namespace ui | 588 } // namespace ui |
OLD | NEW |