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/window_server_test_base.h" | 5 #include "services/ui/public/cpp/tests/window_server_test_base.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 const display::Display& display) { | 152 const display::Display& display) { |
153 if (window_manager_delegate_) | 153 if (window_manager_delegate_) |
154 window_manager_delegate_->OnWmNewDisplay(window, display); | 154 window_manager_delegate_->OnWmNewDisplay(window, display); |
155 } | 155 } |
156 | 156 |
157 void WindowServerTestBase::OnWmDisplayRemoved(Window* window) { | 157 void WindowServerTestBase::OnWmDisplayRemoved(Window* window) { |
158 if (window_manager_delegate_) | 158 if (window_manager_delegate_) |
159 window_manager_delegate_->OnWmDisplayRemoved(window); | 159 window_manager_delegate_->OnWmDisplayRemoved(window); |
160 } | 160 } |
161 | 161 |
| 162 void WindowServerTestBase::OnWmDisplayModified( |
| 163 const display::Display& display) { |
| 164 if (window_manager_delegate_) |
| 165 window_manager_delegate_->OnWmDisplayModified(display); |
| 166 } |
| 167 |
162 void WindowServerTestBase::OnWmPerformMoveLoop( | 168 void WindowServerTestBase::OnWmPerformMoveLoop( |
163 Window* window, | 169 Window* window, |
164 mojom::MoveLoopSource source, | 170 mojom::MoveLoopSource source, |
165 const gfx::Point& cursor_location, | 171 const gfx::Point& cursor_location, |
166 const base::Callback<void(bool)>& on_done) { | 172 const base::Callback<void(bool)>& on_done) { |
167 if (window_manager_delegate_) { | 173 if (window_manager_delegate_) { |
168 window_manager_delegate_->OnWmPerformMoveLoop(window, source, | 174 window_manager_delegate_->OnWmPerformMoveLoop(window, source, |
169 cursor_location, on_done); | 175 cursor_location, on_done); |
170 } | 176 } |
171 } | 177 } |
(...skipping 11 matching lines...) Expand all Loading... |
183 } | 189 } |
184 | 190 |
185 void WindowServerTestBase::Create( | 191 void WindowServerTestBase::Create( |
186 const service_manager::Identity& remote_identity, | 192 const service_manager::Identity& remote_identity, |
187 mojom::WindowTreeClientRequest request) { | 193 mojom::WindowTreeClientRequest request) { |
188 window_tree_clients_.insert( | 194 window_tree_clients_.insert( |
189 base::MakeUnique<WindowTreeClient>(this, nullptr, std::move(request))); | 195 base::MakeUnique<WindowTreeClient>(this, nullptr, std::move(request))); |
190 } | 196 } |
191 | 197 |
192 } // namespace ui | 198 } // namespace ui |
OLD | NEW |