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

Unified Diff: services/ui/ws/accessibility_manager.h

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
Index: services/ui/ws/accessibility_manager.h
diff --git a/services/ui/ws/accessibility_manager.h b/services/ui/ws/accessibility_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..a4d65b3f310d3ecb480d00d92d857fce4c84d190
--- /dev/null
+++ b/services/ui/ws/accessibility_manager.h
@@ -0,0 +1,36 @@
+// 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.
+
+#ifndef SERVICES_UI_WS_ACCESSIBILITY_MANAGER_H_
+#define SERVICES_UI_WS_ACCESSIBILITY_MANAGER_H_
+
+#include "mojo/public/cpp/bindings/binding.h"
+#include "services/ui/public/interfaces/accessibility_manager.mojom.h"
+
+namespace ui {
+namespace ws {
+
+class WindowServer;
+
+class AccessibilityManager : public mojom::AccessibilityManager {
+ public:
+ explicit AccessibilityManager(WindowServer* window_server);
+ ~AccessibilityManager() override;
+
+ void Bind(mojom::AccessibilityManagerRequest request);
+
+ private:
+ // mojom::AccessibilityManager:
+ void SetHighContrastMode(bool enabled) override;
+
+ WindowServer* window_server_;
+ mojo::Binding<mojom::AccessibilityManager> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(AccessibilityManager);
+};
+
+} // namespace ws
+} // namespace ui
+
+#endif // SERVICES_UI_WS_ACCESSIBILITY_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698