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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { | 117 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { |
118 got_change_ = true; | 118 got_change_ = true; |
119 change_id_ = change_id; | 119 change_id_ = change_id; |
120 } | 120 } |
121 | 121 |
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::AddEventObserver(mojom::EventMatcherPtr matcher, |
128 uint32_t observer_id) {} | 128 uint32_t observer_id) {} |
129 | 129 |
| 130 void TestWindowTree::RemoveEventObserver(uint32_t observer_id) {} |
| 131 |
130 void TestWindowTree::Embed(uint32_t window_id, | 132 void TestWindowTree::Embed(uint32_t window_id, |
131 mojom::WindowTreeClientPtr client, | 133 mojom::WindowTreeClientPtr client, |
132 uint32_t flags, | 134 uint32_t flags, |
133 const EmbedCallback& callback) {} | 135 const EmbedCallback& callback) {} |
134 | 136 |
135 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { | 137 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { |
136 got_change_ = true; | 138 got_change_ = true; |
137 change_id_ = change_id; | 139 change_id_ = change_id; |
138 } | 140 } |
139 | 141 |
(...skipping 25 matching lines...) Expand all Loading... |
165 } | 167 } |
166 | 168 |
167 void TestWindowTree::PerformWindowMove(uint32_t change_id, | 169 void TestWindowTree::PerformWindowMove(uint32_t change_id, |
168 uint32_t window_id, | 170 uint32_t window_id, |
169 mojom::MoveLoopSource source, | 171 mojom::MoveLoopSource source, |
170 const gfx::Point& cursor_location) {} | 172 const gfx::Point& cursor_location) {} |
171 | 173 |
172 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} | 174 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} |
173 | 175 |
174 } // namespace ui | 176 } // namespace ui |
OLD | NEW |