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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 } | 364 } |
365 | 365 |
366 void TestWindowTreeClient::OnWindowPredefinedCursorChanged( | 366 void TestWindowTreeClient::OnWindowPredefinedCursorChanged( |
367 uint32_t window_id, | 367 uint32_t window_id, |
368 mojom::Cursor cursor_id) { | 368 mojom::Cursor cursor_id) { |
369 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id); | 369 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id); |
370 } | 370 } |
371 | 371 |
372 void TestWindowTreeClient::OnWindowSurfaceChanged( | 372 void TestWindowTreeClient::OnWindowSurfaceChanged( |
373 Id window_id, | 373 Id window_id, |
374 const cc::SurfaceId& surface_id, | 374 const cc::SurfaceInfo& surface_info) {} |
375 const gfx::Size& frame_size, | |
376 float device_scale_factor) {} | |
377 | 375 |
378 void TestWindowTreeClient::OnDragDropStart( | 376 void TestWindowTreeClient::OnDragDropStart( |
379 const std::unordered_map<std::string, std::vector<uint8_t>>& mime_data) {} | 377 const std::unordered_map<std::string, std::vector<uint8_t>>& mime_data) {} |
380 | 378 |
381 void TestWindowTreeClient::OnDragEnter(uint32_t window, | 379 void TestWindowTreeClient::OnDragEnter(uint32_t window, |
382 uint32_t key_state, | 380 uint32_t key_state, |
383 const gfx::Point& position, | 381 const gfx::Point& position, |
384 uint32_t effect_bitmask, | 382 uint32_t effect_bitmask, |
385 const OnDragEnterCallback& callback) {} | 383 const OnDragEnterCallback& callback) {} |
386 | 384 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 return nullptr; | 622 return nullptr; |
625 if (!tree->AddWindow(parent_client_id, client_window_id)) | 623 if (!tree->AddWindow(parent_client_id, client_window_id)) |
626 return nullptr; | 624 return nullptr; |
627 *client_id = client_window_id; | 625 *client_id = client_window_id; |
628 return tree->GetWindowByClientId(client_window_id); | 626 return tree->GetWindowByClientId(client_window_id); |
629 } | 627 } |
630 | 628 |
631 } // namespace test | 629 } // namespace test |
632 } // namespace ws | 630 } // namespace ws |
633 } // namespace ui | 631 } // namespace ui |
OLD | NEW |