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