OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |