Chromium Code Reviews| 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/scoped_ptr.h" | |
| 8 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 9 #include "ui/accessibility/ax_export.h" | 10 #include "ui/accessibility/ax_export.h" |
| 10 | 11 |
| 12 namespace base { | |
| 13 class Thread; | |
| 14 } | |
| 15 | |
| 11 namespace ui { | 16 namespace ui { |
| 12 | 17 |
| 13 // This singleton class initializes ATK (accessibility toolkit) and | 18 // This singleton class initializes ATK (accessibility toolkit) and |
| 14 // registers an implementation of the AtkUtil class, a global class that | 19 // registers an implementation of the AtkUtil class, a global class that |
| 15 // every accessible application needs to register once. | 20 // every accessible application needs to register once. |
| 16 class AtkUtilAuraLinux { | 21 class AtkUtilAuraLinux { |
| 17 public: | 22 public: |
| 18 // Get the single instance of this class. | 23 // Get the single instance of this class. |
| 19 static AtkUtilAuraLinux* GetInstance(); | 24 static AtkUtilAuraLinux* GetInstance(); |
| 20 | 25 |
| 21 AtkUtilAuraLinux(); | 26 AtkUtilAuraLinux(); |
| 22 virtual ~AtkUtilAuraLinux(); | 27 virtual ~AtkUtilAuraLinux(); |
| 23 | 28 |
| 29 void ShouldAccessibilityBeEnabled(); | |
| 30 void CheckAtSpiIsEnabledProperty(); | |
| 31 | |
| 24 private: | 32 private: |
| 25 friend struct DefaultSingletonTraits<AtkUtilAuraLinux>; | 33 friend struct DefaultSingletonTraits<AtkUtilAuraLinux>; |
| 34 scoped_ptr<base::Thread> dbusThread_; | |
|
dmazzoni
2015/04/15 16:48:35
this should be dbus_thread_
| |
| 26 }; | 35 }; |
| 27 | 36 |
| 28 } // namespace ui | 37 } // namespace ui |
| 29 | 38 |
| 30 #endif // UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_ | 39 #endif // UI_ACCESSIBILITY_AX_UTIL_AURALINUX_H_ |
| OLD | NEW |