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 // Whether or not to enable toggling spoken feedback via holding down |
| 254 // two fingers on the screen. |
| 255 bool ShouldToggleSpokenFeedbackViaTouch(); |
| 256 |
| 257 // Play tick sound indicating spoken feedback will be toggled after countdown. |
| 258 bool PlaySpokenFeedbackToggleCountdown(int tick_count); |
| 259 |
253 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 260 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
254 // when their mapped event has occurred. The sound key enums can be found in | 261 // when their mapped event has occurred. The sound key enums can be found in |
255 // chromeos/audio/chromeos_sounds.h. | 262 // chromeos/audio/chromeos_sounds.h. |
256 bool PlayEarcon(int sound_key, PlaySoundOption option); | 263 bool PlayEarcon(int sound_key, PlaySoundOption option); |
257 | 264 |
258 // Forward an accessibility gesture from the touch exploration controller | 265 // Forward an accessibility gesture from the touch exploration controller |
259 // to ChromeVox. | 266 // to ChromeVox. |
260 void HandleAccessibilityGesture(ui::AXGesture gesture); | 267 void HandleAccessibilityGesture(ui::AXGesture gesture); |
261 | 268 |
262 // Update the touch exploration controller so that synthesized | 269 // Update the touch exploration controller so that synthesized |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 select_to_speak_event_handler_; | 421 select_to_speak_event_handler_; |
415 | 422 |
416 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 423 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
417 | 424 |
418 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 425 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
419 }; | 426 }; |
420 | 427 |
421 } // namespace chromeos | 428 } // namespace chromeos |
422 | 429 |
423 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 430 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |