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

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

Issue 2617603002: Revert of Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embeded content. (Closed)
Patch Set: 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') | ui/aura/BUILD.gn » ('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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 TestPlatformDisplayFactory::~TestPlatformDisplayFactory() {} 144 TestPlatformDisplayFactory::~TestPlatformDisplayFactory() {}
145 145
146 std::unique_ptr<PlatformDisplay> 146 std::unique_ptr<PlatformDisplay>
147 TestPlatformDisplayFactory::CreatePlatformDisplay( 147 TestPlatformDisplayFactory::CreatePlatformDisplay(
148 const PlatformDisplayInitParams& init_params) { 148 const PlatformDisplayInitParams& init_params) {
149 return base::MakeUnique<TestPlatformDisplay>(init_params, cursor_storage_); 149 return base::MakeUnique<TestPlatformDisplay>(init_params, cursor_storage_);
150 } 150 }
151 151
152 // TestFrameGeneratorDelegate ------------------------------------------------- 152 // TestFrameGeneratorDelegate -------------------------------------------------
153 153
154 TestFrameGeneratorDelegate::TestFrameGeneratorDelegate( 154 TestFrameGeneratorDelegate::TestFrameGeneratorDelegate() {}
155 ServerWindow* root_window)
156 : root_window_(root_window) {}
157 155
158 TestFrameGeneratorDelegate::~TestFrameGeneratorDelegate() {} 156 TestFrameGeneratorDelegate::~TestFrameGeneratorDelegate() {}
159 157
160 ServerWindow* TestFrameGeneratorDelegate::GetActiveRootWindow() {
161 return root_window_;
162 }
163
164 bool TestFrameGeneratorDelegate::IsInHighContrastMode() { 158 bool TestFrameGeneratorDelegate::IsInHighContrastMode() {
165 return false; 159 return false;
166 } 160 }
167 161
168 // WindowTreeTestApi --------------------------------------------------------- 162 // WindowTreeTestApi ---------------------------------------------------------
169 163
170 WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {} 164 WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {}
171 WindowTreeTestApi::~WindowTreeTestApi() {} 165 WindowTreeTestApi::~WindowTreeTestApi() {}
172 166
173 void WindowTreeTestApi::StartPointerWatcher(bool want_moves) { 167 void WindowTreeTestApi::StartPointerWatcher(bool want_moves) {
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 return nullptr; 622 return nullptr;
629 if (!tree->AddWindow(parent_client_id, client_window_id)) 623 if (!tree->AddWindow(parent_client_id, client_window_id))
630 return nullptr; 624 return nullptr;
631 *client_id = client_window_id; 625 *client_id = client_window_id;
632 return tree->GetWindowByClientId(client_window_id); 626 return tree->GetWindowByClientId(client_window_id);
633 } 627 }
634 628
635 } // namespace test 629 } // namespace test
636 } // namespace ws 630 } // namespace ws
637 } // namespace ui 631 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | ui/aura/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698