Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Side by Side Diff: services/ui/public/cpp/tests/window_server_test_base.cc

Issue 2434923002: Handle modified displays in mustash. (Closed)
Patch Set: Fix PlatformScreenStub for tests. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/window_server_test_base.h ('k') | services/ui/public/cpp/window_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698