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 "services/ui/public/cpp/tests/test_window_tree.h" | 5 #include "services/ui/public/cpp/tests/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 ui { | 9 namespace ui { |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 | 52 |
53 void TestWindowTree::SetClientArea( | 53 void TestWindowTree::SetClientArea( |
54 uint32_t window_id, | 54 uint32_t window_id, |
55 const gfx::Insets& insets, | 55 const gfx::Insets& insets, |
56 mojo::Array<gfx::Rect> additional_client_areas) {} | 56 mojo::Array<gfx::Rect> additional_client_areas) {} |
57 | 57 |
58 void TestWindowTree::SetHitTestMask(uint32_t window_id, | 58 void TestWindowTree::SetHitTestMask(uint32_t window_id, |
59 const base::Optional<gfx::Rect>& mask) {} | 59 const base::Optional<gfx::Rect>& mask) {} |
60 | 60 |
| 61 void TestWindowTree::SetCanAcceptDrops(uint32_t window_id, bool accepts_drops) { |
| 62 } |
| 63 |
61 void TestWindowTree::SetWindowVisibility(uint32_t change_id, | 64 void TestWindowTree::SetWindowVisibility(uint32_t change_id, |
62 uint32_t window_id, | 65 uint32_t window_id, |
63 bool visible) { | 66 bool visible) { |
64 got_change_ = true; | 67 got_change_ = true; |
65 change_id_ = change_id; | 68 change_id_ = change_id; |
66 } | 69 } |
67 | 70 |
68 void TestWindowTree::SetWindowProperty(uint32_t change_id, | 71 void TestWindowTree::SetWindowProperty(uint32_t change_id, |
69 uint32_t window_id, | 72 uint32_t window_id, |
70 const mojo::String& name, | 73 const mojo::String& name, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 } | 164 } |
162 | 165 |
163 void TestWindowTree::GetWindowManagerClient( | 166 void TestWindowTree::GetWindowManagerClient( |
164 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} | 167 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} |
165 | 168 |
166 void TestWindowTree::GetCursorLocationMemory( | 169 void TestWindowTree::GetCursorLocationMemory( |
167 const GetCursorLocationMemoryCallback& callback) { | 170 const GetCursorLocationMemoryCallback& callback) { |
168 callback.Run(mojo::ScopedSharedBufferHandle()); | 171 callback.Run(mojo::ScopedSharedBufferHandle()); |
169 } | 172 } |
170 | 173 |
| 174 void TestWindowTree::PerformDragDrop( |
| 175 uint32_t change_id, |
| 176 uint32_t source_window_id, |
| 177 int32_t drag_pointer, |
| 178 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, |
| 179 uint32_t drag_operation) {} |
| 180 |
171 void TestWindowTree::PerformWindowMove(uint32_t change_id, | 181 void TestWindowTree::PerformWindowMove(uint32_t change_id, |
172 uint32_t window_id, | 182 uint32_t window_id, |
173 mojom::MoveLoopSource source, | 183 mojom::MoveLoopSource source, |
174 const gfx::Point& cursor_location) {} | 184 const gfx::Point& cursor_location) {} |
175 | 185 |
176 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} | 186 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} |
177 | 187 |
178 } // namespace ui | 188 } // namespace ui |
OLD | NEW |