| 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 "components/mus/public/cpp/tests/test_window_tree.h" | 5 #include "components/mus/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 mus { | 9 namespace mus { |
| 10 | 10 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) { | 122 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) { |
| 123 got_change_ = true; | 123 got_change_ = true; |
| 124 change_id_ = change_id; | 124 change_id_ = change_id; |
| 125 } | 125 } |
| 126 | 126 |
| 127 void TestWindowTree::SetEventObserver(mojom::EventMatcherPtr matcher, | 127 void TestWindowTree::SetEventObserver(mojom::EventMatcherPtr matcher, |
| 128 uint32_t observer_id) {} | 128 uint32_t observer_id) {} |
| 129 | 129 |
| 130 void TestWindowTree::Embed(uint32_t window_id, | 130 void TestWindowTree::Embed(uint32_t window_id, |
| 131 mojom::WindowTreeClientPtr client, | 131 mojom::WindowTreeClientPtr client, |
| 132 uint32_t flags, |
| 132 const EmbedCallback& callback) {} | 133 const EmbedCallback& callback) {} |
| 133 | 134 |
| 134 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { | 135 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { |
| 135 got_change_ = true; | 136 got_change_ = true; |
| 136 change_id_ = change_id; | 137 change_id_ = change_id; |
| 137 } | 138 } |
| 138 | 139 |
| 139 void TestWindowTree::SetCanFocus(uint32_t window_id, bool can_focus) {} | 140 void TestWindowTree::SetCanFocus(uint32_t window_id, bool can_focus) {} |
| 140 | 141 |
| 141 void TestWindowTree::SetPredefinedCursor(uint32_t change_id, | 142 void TestWindowTree::SetPredefinedCursor(uint32_t change_id, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 157 | 158 |
| 158 void TestWindowTree::GetWindowManagerClient( | 159 void TestWindowTree::GetWindowManagerClient( |
| 159 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} | 160 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} |
| 160 | 161 |
| 161 void TestWindowTree::GetCursorLocationMemory( | 162 void TestWindowTree::GetCursorLocationMemory( |
| 162 const GetCursorLocationMemoryCallback& callback) { | 163 const GetCursorLocationMemoryCallback& callback) { |
| 163 callback.Run(mojo::ScopedSharedBufferHandle()); | 164 callback.Run(mojo::ScopedSharedBufferHandle()); |
| 164 } | 165 } |
| 165 | 166 |
| 166 } // namespace mus | 167 } // namespace mus |
| OLD | NEW |