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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/accessibility_manager.cc
diff --git a/services/ui/ws/accessibility_manager.cc b/services/ui/ws/accessibility_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3b934bb4a89e0c53031230f2d8ebc929c1c335fc
--- /dev/null
+++ b/services/ui/ws/accessibility_manager.cc
@@ -0,0 +1,30 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "services/ui/ws/accessibility_manager.h"
+
+#include "services/ui/ws/window_server.h"
+
+namespace ui {
+namespace ws {
+
+AccessibilityManager::AccessibilityManager(WindowServer* window_server,
+ const UserId& user)
+ : window_server_(window_server), user_(user), binding_(this) {
+ DCHECK(window_server_);
+}
+
+AccessibilityManager::~AccessibilityManager() {}
+
+void AccessibilityManager::Bind(mojom::AccessibilityManagerRequest request) {
+ binding_.Close();
+ binding_.Bind(std::move(request));
+}
+
+void AccessibilityManager::SetHighContrastMode(bool enabled) {
+ window_server_->SetHighContrastMode(user_, enabled);
+}
+
+} // namespace ws
+} // namespace ui
« 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