| 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" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 scoped_ptr<AccessibilityStatusSubscription> RegisterCallback( | 182 scoped_ptr<AccessibilityStatusSubscription> RegisterCallback( |
| 183 const AccessibilityStatusCallback& cb); | 183 const AccessibilityStatusCallback& cb); |
| 184 | 184 |
| 185 // Notify registered callbacks of a status change in an accessibility setting. | 185 // Notify registered callbacks of a status change in an accessibility setting. |
| 186 void NotifyAccessibilityStatusChanged( | 186 void NotifyAccessibilityStatusChanged( |
| 187 AccessibilityStatusEventDetails& details); | 187 AccessibilityStatusEventDetails& details); |
| 188 | 188 |
| 189 // Notify accessibility when locale changes occur. | 189 // Notify accessibility when locale changes occur. |
| 190 void OnLocaleChanged(); | 190 void OnLocaleChanged(); |
| 191 | 191 |
| 192 Profile* profile() { return profile_; } |
| 193 |
| 192 protected: | 194 protected: |
| 193 AccessibilityManager(); | 195 AccessibilityManager(); |
| 194 virtual ~AccessibilityManager(); | 196 virtual ~AccessibilityManager(); |
| 195 | 197 |
| 196 private: | 198 private: |
| 197 void LoadChromeVox(); | 199 void LoadChromeVox(); |
| 198 void LoadChromeVoxToUserScreen(); | 200 void LoadChromeVoxToUserScreen(); |
| 199 void LoadChromeVoxToLockScreen(); | 201 void LoadChromeVoxToLockScreen(); |
| 200 void UnloadChromeVox(); | 202 void UnloadChromeVox(); |
| 201 void UnloadChromeVoxFromLockScreen(); | 203 void UnloadChromeVoxFromLockScreen(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 229 virtual void OnBrailleDisplayStateChanged( | 231 virtual void OnBrailleDisplayStateChanged( |
| 230 const extensions::api::braille_display_private::DisplayState& | 232 const extensions::api::braille_display_private::DisplayState& |
| 231 display_state) OVERRIDE; | 233 display_state) OVERRIDE; |
| 232 virtual void OnBrailleKeyEvent( | 234 virtual void OnBrailleKeyEvent( |
| 233 const extensions::api::braille_display_private::KeyEvent& event) OVERRIDE; | 235 const extensions::api::braille_display_private::KeyEvent& event) OVERRIDE; |
| 234 | 236 |
| 235 // InputMethodManager::Observer | 237 // InputMethodManager::Observer |
| 236 virtual void InputMethodChanged(input_method::InputMethodManager* manager, | 238 virtual void InputMethodChanged(input_method::InputMethodManager* manager, |
| 237 bool show_message) OVERRIDE; | 239 bool show_message) OVERRIDE; |
| 238 | 240 |
| 239 | |
| 240 // Profile which has the current a11y context. | 241 // Profile which has the current a11y context. |
| 241 Profile* profile_; | 242 Profile* profile_; |
| 242 | 243 |
| 243 // Profile which ChromeVox is currently loaded to. If NULL, ChromeVox is not | 244 // Profile which ChromeVox is currently loaded to. If NULL, ChromeVox is not |
| 244 // loaded to any profile. | 245 // loaded to any profile. |
| 245 bool chrome_vox_loaded_on_lock_screen_; | 246 bool chrome_vox_loaded_on_lock_screen_; |
| 246 bool chrome_vox_loaded_on_user_screen_; | 247 bool chrome_vox_loaded_on_user_screen_; |
| 247 | 248 |
| 248 content::NotificationRegistrar notification_registrar_; | 249 content::NotificationRegistrar notification_registrar_; |
| 249 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; | 250 scoped_ptr<PrefChangeRegistrar> pref_change_registrar_; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 280 AccessibilityManager> scoped_braille_observer_; | 281 AccessibilityManager> scoped_braille_observer_; |
| 281 | 282 |
| 282 bool braille_ime_current_; | 283 bool braille_ime_current_; |
| 283 | 284 |
| 284 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 285 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
| 285 }; | 286 }; |
| 286 | 287 |
| 287 } // namespace chromeos | 288 } // namespace chromeos |
| 288 | 289 |
| 289 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 290 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |