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 2651843002: FrameGenerator should receive SurfaceInfo and use it in frame generation (Closed)
Patch Set: c Created 3 years, 11 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
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 TestPlatformDisplayFactory::~TestPlatformDisplayFactory() {} 147 TestPlatformDisplayFactory::~TestPlatformDisplayFactory() {}
148 148
149 std::unique_ptr<PlatformDisplay> 149 std::unique_ptr<PlatformDisplay>
150 TestPlatformDisplayFactory::CreatePlatformDisplay( 150 TestPlatformDisplayFactory::CreatePlatformDisplay(
151 const PlatformDisplayInitParams& init_params) { 151 const PlatformDisplayInitParams& init_params) {
152 return base::MakeUnique<TestPlatformDisplay>(init_params, cursor_storage_); 152 return base::MakeUnique<TestPlatformDisplay>(init_params, cursor_storage_);
153 } 153 }
154 154
155 // TestFrameGeneratorDelegate ------------------------------------------------- 155 // TestFrameGeneratorDelegate -------------------------------------------------
156 156
157 TestFrameGeneratorDelegate::TestFrameGeneratorDelegate( 157 TestFrameGeneratorDelegate::TestFrameGeneratorDelegate() {}
158 ServerWindow* root_window)
159 : root_window_(root_window) {}
160 158
161 TestFrameGeneratorDelegate::~TestFrameGeneratorDelegate() {} 159 TestFrameGeneratorDelegate::~TestFrameGeneratorDelegate() {}
162 160
163 ServerWindow* TestFrameGeneratorDelegate::GetActiveRootWindow() {
164 return root_window_;
165 }
166
167 bool TestFrameGeneratorDelegate::IsInHighContrastMode() { 161 bool TestFrameGeneratorDelegate::IsInHighContrastMode() {
168 return false; 162 return false;
169 } 163 }
170 164
171 // WindowTreeTestApi --------------------------------------------------------- 165 // WindowTreeTestApi ---------------------------------------------------------
172 166
173 WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {} 167 WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {}
174 WindowTreeTestApi::~WindowTreeTestApi() {} 168 WindowTreeTestApi::~WindowTreeTestApi() {}
175 169
176 void WindowTreeTestApi::StartPointerWatcher(bool want_moves) { 170 void WindowTreeTestApi::StartPointerWatcher(bool want_moves) {
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 return nullptr; 627 return nullptr;
634 if (!tree->AddWindow(parent_client_id, client_window_id)) 628 if (!tree->AddWindow(parent_client_id, client_window_id))
635 return nullptr; 629 return nullptr;
636 *client_id = client_window_id; 630 *client_id = client_window_id;
637 return tree->GetWindowByClientId(client_window_id); 631 return tree->GetWindowByClientId(client_window_id);
638 } 632 }
639 633
640 } // namespace test 634 } // namespace test
641 } // namespace ws 635 } // namespace ws
642 } // namespace ui 636 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698