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

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
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_server.h » ('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 "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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698