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

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

Issue 2127383003: mus: Introduce high-contrast mode in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 "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
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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 return nullptr; 517 return nullptr;
514 if (!tree->AddWindow(parent_client_id, client_window_id)) 518 if (!tree->AddWindow(parent_client_id, client_window_id))
515 return nullptr; 519 return nullptr;
516 *client_id = client_window_id; 520 *client_id = client_window_id;
517 return tree->GetWindowByClientId(client_window_id); 521 return tree->GetWindowByClientId(client_window_id);
518 } 522 }
519 523
520 } // namespace test 524 } // namespace test
521 } // namespace ws 525 } // namespace ws
522 } // namespace ui 526 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698