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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 uint32_t change_id, | 224 uint32_t change_id, |
225 ClientSpecificId requesting_client_id, | 225 ClientSpecificId requesting_client_id, |
226 const std::unordered_map<std::string, std::vector<uint8_t>>& properties) { | 226 const std::unordered_map<std::string, std::vector<uint8_t>>& properties) { |
227 got_create_top_level_window_ = true; | 227 got_create_top_level_window_ = true; |
228 change_id_ = change_id; | 228 change_id_ = change_id; |
229 } | 229 } |
230 | 230 |
231 void TestWindowManager::WmClientJankinessChanged(ClientSpecificId client_id, | 231 void TestWindowManager::WmClientJankinessChanged(ClientSpecificId client_id, |
232 bool janky) {} | 232 bool janky) {} |
233 | 233 |
| 234 void TestWindowManager::WmBuildDragImage(const gfx::Point& cursor_location, |
| 235 const SkBitmap& drag_image, |
| 236 const gfx::Vector2d& drag_image_offset, |
| 237 ui::mojom::DragEventSource source) {} |
| 238 |
| 239 void TestWindowManager::WmMoveDragImage( |
| 240 const gfx::Point& cursor_location, |
| 241 const WmMoveDragImageCallback& callback) { |
| 242 callback.Run(); |
| 243 } |
| 244 |
| 245 void TestWindowManager::WmDestroyDragImage() {} |
| 246 |
234 void TestWindowManager::WmPerformMoveLoop(uint32_t change_id, | 247 void TestWindowManager::WmPerformMoveLoop(uint32_t change_id, |
235 uint32_t window_id, | 248 uint32_t window_id, |
236 mojom::MoveLoopSource source, | 249 mojom::MoveLoopSource source, |
237 const gfx::Point& cursor_location) { | 250 const gfx::Point& cursor_location) { |
238 on_perform_move_loop_called_ = true; | 251 on_perform_move_loop_called_ = true; |
239 } | 252 } |
240 | 253 |
241 void TestWindowManager::WmCancelMoveLoop(uint32_t window_id) {} | 254 void TestWindowManager::WmCancelMoveLoop(uint32_t window_id) {} |
242 | 255 |
243 void TestWindowManager::WmDeactivateWindow(uint32_t window_id) {} | 256 void TestWindowManager::WmDeactivateWindow(uint32_t window_id) {} |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 if (!tree->AddWindow(parent_client_id, client_window_id)) | 658 if (!tree->AddWindow(parent_client_id, client_window_id)) |
646 return nullptr; | 659 return nullptr; |
647 if (client_id) | 660 if (client_id) |
648 *client_id = client_window_id; | 661 *client_id = client_window_id; |
649 return tree->GetWindowByClientId(client_window_id); | 662 return tree->GetWindowByClientId(client_window_id); |
650 } | 663 } |
651 | 664 |
652 } // namespace test | 665 } // namespace test |
653 } // namespace ws | 666 } // namespace ws |
654 } // namespace ui | 667 } // namespace ui |
OLD | NEW |