OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_ | 5 #ifndef UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_ |
6 #define UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_ | 6 #define UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_ |
7 | 7 |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "ui/accessibility/ax_export.h" | 9 #include "ui/accessibility/ax_export.h" |
10 | 10 |
| 11 namespace base { |
| 12 class TaskRunner; |
| 13 } |
| 14 |
11 namespace ui { | 15 namespace ui { |
12 | 16 |
13 // This singleton class initializes ATK (accessibility toolkit) and | 17 // This singleton class initializes ATK (accessibility toolkit) and |
14 // registers an implementation of the AtkUtil class, a global class that | 18 // registers an implementation of the AtkUtil class, a global class that |
15 // every accessible application needs to register once. | 19 // every accessible application needs to register once. |
16 class AtkUtilAuraLinux { | 20 class AtkUtilAuraLinux { |
17 public: | 21 public: |
18 // Get the single instance of this class. | 22 // Get the single instance of this class. |
19 static AtkUtilAuraLinux* GetInstance(); | 23 static AtkUtilAuraLinux* GetInstance(); |
20 | 24 |
21 AtkUtilAuraLinux(); | 25 AtkUtilAuraLinux(); |
22 virtual ~AtkUtilAuraLinux(); | 26 virtual ~AtkUtilAuraLinux(); |
23 | 27 |
| 28 void Initialize(scoped_refptr<base::TaskRunner> init_task_runner); |
| 29 |
24 private: | 30 private: |
25 friend struct DefaultSingletonTraits<AtkUtilAuraLinux>; | 31 friend struct DefaultSingletonTraits<AtkUtilAuraLinux>; |
26 }; | 32 }; |
27 | 33 |
28 } // namespace ui | 34 } // namespace ui |
29 | 35 |
30 #endif // UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_ | 36 #endif // UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_ |
OLD | NEW |