OLD | NEW |
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 #ifndef ASH_MUS_ACCESSIBILITY_DELEGATE_MUS_H_ | 5 #ifndef ASH_MUS_ACCESSIBILITY_DELEGATE_MUS_H_ |
6 #define ASH_MUS_ACCESSIBILITY_DELEGATE_MUS_H_ | 6 #define ASH_MUS_ACCESSIBILITY_DELEGATE_MUS_H_ |
7 | 7 |
8 #include "ash/common/default_accessibility_delegate.h" | 8 #include "ash/default_accessibility_delegate.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "services/ui/public/interfaces/accessibility_manager.mojom.h" | 10 #include "services/ui/public/interfaces/accessibility_manager.mojom.h" |
11 | 11 |
12 namespace service_manager { | 12 namespace service_manager { |
13 class Connector; | 13 class Connector; |
14 } | 14 } |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 | 17 |
18 class AccessibilityDelegateMus : public DefaultAccessibilityDelegate { | 18 class AccessibilityDelegateMus : public DefaultAccessibilityDelegate { |
19 public: | 19 public: |
20 explicit AccessibilityDelegateMus(service_manager::Connector* connector); | 20 explicit AccessibilityDelegateMus(service_manager::Connector* connector); |
21 ~AccessibilityDelegateMus() override; | 21 ~AccessibilityDelegateMus() override; |
22 | 22 |
23 private: | 23 private: |
24 ui::mojom::AccessibilityManager* GetAccessibilityManager(); | 24 ui::mojom::AccessibilityManager* GetAccessibilityManager(); |
25 | 25 |
26 // DefaultAccessibilityDelegate: | 26 // DefaultAccessibilityDelegate: |
27 void ToggleHighContrast() override; | 27 void ToggleHighContrast() override; |
28 | 28 |
29 ui::mojom::AccessibilityManagerPtr accessibility_manager_ptr_; | 29 ui::mojom::AccessibilityManagerPtr accessibility_manager_ptr_; |
30 service_manager::Connector* connector_; | 30 service_manager::Connector* connector_; |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateMus); | 32 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateMus); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace ash | 35 } // namespace ash |
36 | 36 |
37 #endif // ASH_MUS_ACCESSIBILITY_DELEGATE_MUS_H_ | 37 #endif // ASH_MUS_ACCESSIBILITY_DELEGATE_MUS_H_ |
OLD | NEW |