Chromium Code Reviews| 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/accessibility_delegate.h" | 10 #include "ash/accessibility_delegate.h" |
| 11 #include "ash/session/session_state_observer.h" | 11 #include "ash/session/session_state_observer.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/callback_list.h" | 13 #include "base/callback_list.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/prefs/pref_change_registrar.h" | 15 #include "base/prefs/pref_change_registrar.h" |
| 16 #include "base/scoped_observer.h" | 16 #include "base/scoped_observer.h" |
| 17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 18 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 18 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
| 19 #include "chrome/browser/extensions/api/braille_display_private/braille_controll er.h" | 19 #include "chrome/browser/extensions/api/braille_display_private/braille_controll er.h" |
| 20 #include "chromeos/ime/input_method_manager.h" | 20 #include "chromeos/ime/input_method_manager.h" |
| 21 #include "content/public/browser/notification_observer.h" | 21 #include "content/public/browser/notification_observer.h" |
| 22 #include "content/public/browser/notification_registrar.h" | 22 #include "content/public/browser/notification_registrar.h" |
| 23 #include "extensions/browser/event_router.h" | 23 #include "extensions/browser/event_router.h" |
| 24 #include "extensions/browser/extension_system.h" | 24 #include "extensions/browser/extension_system.h" |
| 25 #include "media/audio/sounds/sounds_manager.h" | |
| 26 | |
|
James Cook
2014/07/29 04:27:24
nit: no blank line
lisayin
2014/07/30 15:32:51
Done.
| |
| 25 | 27 |
| 26 namespace content { | 28 namespace content { |
| 27 class RenderViewHost; | 29 class RenderViewHost; |
| 28 } | 30 } |
| 29 class Profile; | 31 class Profile; |
| 30 | 32 |
| 31 namespace chromeos { | 33 namespace chromeos { |
| 32 | 34 |
| 33 enum AccessibilityNotificationType { | 35 enum AccessibilityNotificationType { |
| 34 ACCESSIBILITY_MANAGER_SHUTDOWN, | 36 ACCESSIBILITY_MANAGER_SHUTDOWN, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 183 scoped_ptr<AccessibilityStatusSubscription> RegisterCallback( | 185 scoped_ptr<AccessibilityStatusSubscription> RegisterCallback( |
| 184 const AccessibilityStatusCallback& cb); | 186 const AccessibilityStatusCallback& cb); |
| 185 | 187 |
| 186 // Notify registered callbacks of a status change in an accessibility setting. | 188 // Notify registered callbacks of a status change in an accessibility setting. |
| 187 void NotifyAccessibilityStatusChanged( | 189 void NotifyAccessibilityStatusChanged( |
| 188 AccessibilityStatusEventDetails& details); | 190 AccessibilityStatusEventDetails& details); |
| 189 | 191 |
| 190 // Notify accessibility when locale changes occur. | 192 // Notify accessibility when locale changes occur. |
| 191 void OnLocaleChanged(); | 193 void OnLocaleChanged(); |
| 192 | 194 |
| 195 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | |
| 196 // when their mapped event has occurred. | |
| 197 void PlayEarcon(media::SoundsManager::SoundKey sound_key); | |
| 198 | |
| 193 protected: | 199 protected: |
| 194 AccessibilityManager(); | 200 AccessibilityManager(); |
| 195 virtual ~AccessibilityManager(); | 201 virtual ~AccessibilityManager(); |
| 196 | 202 |
| 197 private: | 203 private: |
| 198 void LoadChromeVox(); | 204 void LoadChromeVox(); |
| 199 void LoadChromeVoxToUserScreen(const base::Closure& done_cb); | 205 void LoadChromeVoxToUserScreen(const base::Closure& done_cb); |
| 200 void LoadChromeVoxToLockScreen(const base::Closure& done_cb); | 206 void LoadChromeVoxToLockScreen(const base::Closure& done_cb); |
| 201 void UnloadChromeVox(); | 207 void UnloadChromeVox(); |
| 202 void UnloadChromeVoxFromLockScreen(); | 208 void UnloadChromeVoxFromLockScreen(); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 281 AccessibilityManager> scoped_braille_observer_; | 287 AccessibilityManager> scoped_braille_observer_; |
| 282 | 288 |
| 283 bool braille_ime_current_; | 289 bool braille_ime_current_; |
| 284 | 290 |
| 285 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 291 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
| 286 }; | 292 }; |
| 287 | 293 |
| 288 } // namespace chromeos | 294 } // namespace chromeos |
| 289 | 295 |
| 290 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 296 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |