| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "ash/common/accessibility_types.h" | 10 #include "ash/common/accessibility_types.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 std::unique_ptr<AccessibilityStatusSubscription> RegisterCallback( | 242 std::unique_ptr<AccessibilityStatusSubscription> RegisterCallback( |
| 243 const AccessibilityStatusCallback& cb); | 243 const AccessibilityStatusCallback& cb); |
| 244 | 244 |
| 245 // Notify registered callbacks of a status change in an accessibility setting. | 245 // Notify registered callbacks of a status change in an accessibility setting. |
| 246 void NotifyAccessibilityStatusChanged( | 246 void NotifyAccessibilityStatusChanged( |
| 247 AccessibilityStatusEventDetails& details); | 247 AccessibilityStatusEventDetails& details); |
| 248 | 248 |
| 249 // Notify accessibility when locale changes occur. | 249 // Notify accessibility when locale changes occur. |
| 250 void OnLocaleChanged(); | 250 void OnLocaleChanged(); |
| 251 | 251 |
| 252 // Play tick sound indicating spoken feedback will be toggled after countdown. | |
| 253 bool PlaySpokenFeedbackToggleCountdown(int tick_count); | |
| 254 | |
| 255 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 252 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
| 256 // when their mapped event has occurred. The sound key enums can be found in | 253 // when their mapped event has occurred. The sound key enums can be found in |
| 257 // chromeos/audio/chromeos_sounds.h. | 254 // chromeos/audio/chromeos_sounds.h. |
| 258 bool PlayEarcon(int sound_key, PlaySoundOption option); | 255 bool PlayEarcon(int sound_key, PlaySoundOption option); |
| 259 | 256 |
| 260 // Forward an accessibility gesture from the touch exploration controller | 257 // Forward an accessibility gesture from the touch exploration controller |
| 261 // to ChromeVox. | 258 // to ChromeVox. |
| 262 void HandleAccessibilityGesture(ui::AXGesture gesture); | 259 void HandleAccessibilityGesture(ui::AXGesture gesture); |
| 263 | 260 |
| 264 // Update the touch exploration controller so that synthesized | 261 // Update the touch exploration controller so that synthesized |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 std::unique_ptr<AccessibilityExtensionLoader> select_to_speak_loader_; | 410 std::unique_ptr<AccessibilityExtensionLoader> select_to_speak_loader_; |
| 414 | 411 |
| 415 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 412 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
| 416 | 413 |
| 417 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 414 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
| 418 }; | 415 }; |
| 419 | 416 |
| 420 } // namespace chromeos | 417 } // namespace chromeos |
| 421 | 418 |
| 422 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 419 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |