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

Side by Side Diff: services/ui/ws/accessibility_manager.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/accessibility_manager.h ('k') | services/ui/ws/display.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "services/ui/ws/accessibility_manager.h"
6
7 #include "services/ui/ws/window_server.h"
8
9 namespace ui {
10 namespace ws {
11
12 AccessibilityManager::AccessibilityManager(WindowServer* window_server,
13 const UserId& user)
14 : window_server_(window_server), user_(user), binding_(this) {
15 DCHECK(window_server_);
16 }
17
18 AccessibilityManager::~AccessibilityManager() {}
19
20 void AccessibilityManager::Bind(mojom::AccessibilityManagerRequest request) {
21 binding_.Close();
22 binding_.Bind(std::move(request));
23 }
24
25 void AccessibilityManager::SetHighContrastMode(bool enabled) {
26 window_server_->SetHighContrastMode(user_, enabled);
27 }
28
29 } // namespace ws
30 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/accessibility_manager.h ('k') | services/ui/ws/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698