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

Side by Side Diff: services/ui/ws/test_utils.cc

Issue 2759933007: [mus]Add FrameGenerator::SetHighContrastMode(bool) (Closed)
Patch Set: Created 3 years, 9 months 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ws/test_utils.h" 5 #include "services/ui/ws/test_utils.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 TestPlatformDisplayFactory::~TestPlatformDisplayFactory() {} 153 TestPlatformDisplayFactory::~TestPlatformDisplayFactory() {}
154 154
155 std::unique_ptr<PlatformDisplay> 155 std::unique_ptr<PlatformDisplay>
156 TestPlatformDisplayFactory::CreatePlatformDisplay( 156 TestPlatformDisplayFactory::CreatePlatformDisplay(
157 ServerWindow* root_window, 157 ServerWindow* root_window,
158 const display::ViewportMetrics& metrics) { 158 const display::ViewportMetrics& metrics) {
159 return base::MakeUnique<TestPlatformDisplay>(metrics, cursor_storage_); 159 return base::MakeUnique<TestPlatformDisplay>(metrics, cursor_storage_);
160 } 160 }
161 161
162 // TestFrameGeneratorDelegate -------------------------------------------------
163
164 TestFrameGeneratorDelegate::TestFrameGeneratorDelegate() {}
165
166 TestFrameGeneratorDelegate::~TestFrameGeneratorDelegate() {}
167
168 bool TestFrameGeneratorDelegate::IsInHighContrastMode() {
169 return false;
170 }
171
172 // WindowTreeTestApi --------------------------------------------------------- 162 // WindowTreeTestApi ---------------------------------------------------------
173 163
174 WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {} 164 WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {}
175 WindowTreeTestApi::~WindowTreeTestApi() {} 165 WindowTreeTestApi::~WindowTreeTestApi() {}
176 166
177 void WindowTreeTestApi::StartPointerWatcher(bool want_moves) { 167 void WindowTreeTestApi::StartPointerWatcher(bool want_moves) {
178 tree_->StartPointerWatcher(want_moves); 168 tree_->StartPointerWatcher(want_moves);
179 } 169 }
180 170
181 void WindowTreeTestApi::StopPointerWatcher() { 171 void WindowTreeTestApi::StopPointerWatcher() {
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 if (!tree->AddWindow(parent_client_id, client_window_id)) 638 if (!tree->AddWindow(parent_client_id, client_window_id))
649 return nullptr; 639 return nullptr;
650 if (client_id) 640 if (client_id)
651 *client_id = client_window_id; 641 *client_id = client_window_id;
652 return tree->GetWindowByClientId(client_window_id); 642 return tree->GetWindowByClientId(client_window_id);
653 } 643 }
654 644
655 } // namespace test 645 } // namespace test
656 } // namespace ws 646 } // namespace ws
657 } // namespace ui 647 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698