OLD | NEW |
(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 #ifndef SERVICES_UI_WS_ACCESSIBILITY_MANAGER_H_ |
| 6 #define SERVICES_UI_WS_ACCESSIBILITY_MANAGER_H_ |
| 7 |
| 8 #include "mojo/public/cpp/bindings/binding.h" |
| 9 #include "services/ui/public/interfaces/accessibility_manager.mojom.h" |
| 10 #include "services/ui/ws/user_id.h" |
| 11 |
| 12 namespace ui { |
| 13 namespace ws { |
| 14 |
| 15 class WindowServer; |
| 16 |
| 17 class AccessibilityManager : public mojom::AccessibilityManager { |
| 18 public: |
| 19 AccessibilityManager(WindowServer* window_server, const UserId& user); |
| 20 ~AccessibilityManager() override; |
| 21 |
| 22 void Bind(mojom::AccessibilityManagerRequest request); |
| 23 |
| 24 private: |
| 25 // mojom::AccessibilityManager: |
| 26 void SetHighContrastMode(bool enabled) override; |
| 27 |
| 28 WindowServer* window_server_; |
| 29 const UserId user_; |
| 30 mojo::Binding<mojom::AccessibilityManager> binding_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
| 33 }; |
| 34 |
| 35 } // namespace ws |
| 36 } // namespace ui |
| 37 |
| 38 #endif // SERVICES_UI_WS_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |