| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 mojo::TextInputStatePtr state) {} | 159 mojo::TextInputStatePtr state) {} |
| 160 | 160 |
| 161 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, | 161 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, |
| 162 ui::mojom::EventResult result) { | 162 ui::mojom::EventResult result) { |
| 163 EXPECT_FALSE(acked_events_.count(event_id)); | 163 EXPECT_FALSE(acked_events_.count(event_id)); |
| 164 acked_events_.insert(event_id); | 164 acked_events_.insert(event_id); |
| 165 } | 165 } |
| 166 | 166 |
| 167 void TestWindowTree::DeactivateWindow(uint32_t window_id) {} | 167 void TestWindowTree::DeactivateWindow(uint32_t window_id) {} |
| 168 | 168 |
| 169 void TestWindowTree::StackAtTop(uint32_t change_id, uint32_t window_id) {} |
| 170 |
| 169 void TestWindowTree::GetWindowManagerClient( | 171 void TestWindowTree::GetWindowManagerClient( |
| 170 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} | 172 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} |
| 171 | 173 |
| 172 void TestWindowTree::GetCursorLocationMemory( | 174 void TestWindowTree::GetCursorLocationMemory( |
| 173 const GetCursorLocationMemoryCallback& callback) { | 175 const GetCursorLocationMemoryCallback& callback) { |
| 174 callback.Run(mojo::ScopedSharedBufferHandle()); | 176 callback.Run(mojo::ScopedSharedBufferHandle()); |
| 175 } | 177 } |
| 176 | 178 |
| 177 void TestWindowTree::PerformDragDrop( | 179 void TestWindowTree::PerformDragDrop( |
| 178 uint32_t change_id, | 180 uint32_t change_id, |
| 179 uint32_t source_window_id, | 181 uint32_t source_window_id, |
| 180 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, | 182 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, |
| 181 uint32_t drag_operation) {} | 183 uint32_t drag_operation) {} |
| 182 | 184 |
| 183 void TestWindowTree::CancelDragDrop(uint32_t window_id) {} | 185 void TestWindowTree::CancelDragDrop(uint32_t window_id) {} |
| 184 | 186 |
| 185 void TestWindowTree::PerformWindowMove(uint32_t change_id, | 187 void TestWindowTree::PerformWindowMove(uint32_t change_id, |
| 186 uint32_t window_id, | 188 uint32_t window_id, |
| 187 mojom::MoveLoopSource source, | 189 mojom::MoveLoopSource source, |
| 188 const gfx::Point& cursor_location) {} | 190 const gfx::Point& cursor_location) {} |
| 189 | 191 |
| 190 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} | 192 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} |
| 191 | 193 |
| 192 } // namespace ui | 194 } // namespace ui |
| OLD | NEW |