| 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 const gfx::Point& position, | 422 const gfx::Point& position, |
| 423 uint32_t effect_bitmask, | 423 uint32_t effect_bitmask, |
| 424 const OnCompleteDropCallback& callback) {} | 424 const OnCompleteDropCallback& callback) {} |
| 425 | 425 |
| 426 void TestWindowTreeClient::OnPerformDragDropCompleted(uint32_t window, | 426 void TestWindowTreeClient::OnPerformDragDropCompleted(uint32_t window, |
| 427 bool success, | 427 bool success, |
| 428 uint32_t action_taken) {} | 428 uint32_t action_taken) {} |
| 429 | 429 |
| 430 void TestWindowTreeClient::OnDragDropDone() {} | 430 void TestWindowTreeClient::OnDragDropDone() {} |
| 431 | 431 |
| 432 void TestWindowTreeClient::OnSetWindowBoundsResponse( |
| 433 uint32_t change_id, |
| 434 const gfx::Rect& bounds, |
| 435 const cc::LocalSurfaceId& local_surface_id) { |
| 436 // TODO(fsamuel): Add a unit test. |
| 437 } |
| 438 |
| 432 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) { | 439 void TestWindowTreeClient::OnChangeCompleted(uint32_t change_id, bool success) { |
| 433 if (record_on_change_completed_) | 440 if (record_on_change_completed_) |
| 434 tracker_.OnChangeCompleted(change_id, success); | 441 tracker_.OnChangeCompleted(change_id, success); |
| 435 } | 442 } |
| 436 | 443 |
| 437 void TestWindowTreeClient::RequestClose(uint32_t window_id) {} | 444 void TestWindowTreeClient::RequestClose(uint32_t window_id) {} |
| 438 | 445 |
| 439 void TestWindowTreeClient::GetWindowManager( | 446 void TestWindowTreeClient::GetWindowManager( |
| 440 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) {} | 447 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) {} |
| 441 | 448 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 if (!tree->AddWindow(parent_client_id, client_window_id)) | 659 if (!tree->AddWindow(parent_client_id, client_window_id)) |
| 653 return nullptr; | 660 return nullptr; |
| 654 if (client_id) | 661 if (client_id) |
| 655 *client_id = client_window_id; | 662 *client_id = client_window_id; |
| 656 return tree->GetWindowByClientId(client_window_id); | 663 return tree->GetWindowByClientId(client_window_id); |
| 657 } | 664 } |
| 658 | 665 |
| 659 } // namespace test | 666 } // namespace test |
| 660 } // namespace ws | 667 } // namespace ws |
| 661 } // namespace ui | 668 } // namespace ui |
| OLD | NEW |