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 "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "cc/output/copy_output_request.h" | 8 #include "cc/output/copy_output_request.h" |
9 #include "services/shell/public/interfaces/connector.mojom.h" | 9 #include "services/shell/public/interfaces/connector.mojom.h" |
10 #include "services/ui/surfaces/surfaces_state.h" | 10 #include "services/ui/surfaces/surfaces_state.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 TestFrameGeneratorDelegate::TestFrameGeneratorDelegate( | 113 TestFrameGeneratorDelegate::TestFrameGeneratorDelegate( |
114 std::unique_ptr<ServerWindow> root) | 114 std::unique_ptr<ServerWindow> root) |
115 : root_(std::move(root)) {} | 115 : root_(std::move(root)) {} |
116 | 116 |
117 TestFrameGeneratorDelegate::~TestFrameGeneratorDelegate() {} | 117 TestFrameGeneratorDelegate::~TestFrameGeneratorDelegate() {} |
118 | 118 |
119 ServerWindow* TestFrameGeneratorDelegate::GetRootWindow() { | 119 ServerWindow* TestFrameGeneratorDelegate::GetRootWindow() { |
120 return root_.get(); | 120 return root_.get(); |
121 } | 121 } |
122 | 122 |
| 123 bool TestFrameGeneratorDelegate::IsInHighContrastMode() { |
| 124 return false; |
| 125 } |
| 126 |
123 const ViewportMetrics& TestFrameGeneratorDelegate::GetViewportMetrics() { | 127 const ViewportMetrics& TestFrameGeneratorDelegate::GetViewportMetrics() { |
124 return metrics_; | 128 return metrics_; |
125 } | 129 } |
126 | 130 |
127 // WindowTreeTestApi --------------------------------------------------------- | 131 // WindowTreeTestApi --------------------------------------------------------- |
128 | 132 |
129 WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {} | 133 WindowTreeTestApi::WindowTreeTestApi(WindowTree* tree) : tree_(tree) {} |
130 WindowTreeTestApi::~WindowTreeTestApi() {} | 134 WindowTreeTestApi::~WindowTreeTestApi() {} |
131 | 135 |
132 void WindowTreeTestApi::SetEventObserver(mojom::EventMatcherPtr matcher, | 136 void WindowTreeTestApi::SetEventObserver(mojom::EventMatcherPtr matcher, |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 return nullptr; | 518 return nullptr; |
515 if (!tree->AddWindow(parent_client_id, client_window_id)) | 519 if (!tree->AddWindow(parent_client_id, client_window_id)) |
516 return nullptr; | 520 return nullptr; |
517 *client_id = client_window_id; | 521 *client_id = client_window_id; |
518 return tree->GetWindowByClientId(client_window_id); | 522 return tree->GetWindowByClientId(client_window_id); |
519 } | 523 } |
520 | 524 |
521 } // namespace test | 525 } // namespace test |
522 } // namespace ws | 526 } // namespace ws |
523 } // namespace ui | 527 } // namespace ui |
OLD | NEW |