| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // Enables or disables the virtual keyboard. | 155 // Enables or disables the virtual keyboard. |
| 156 void EnableVirtualKeyboard(bool enabled); | 156 void EnableVirtualKeyboard(bool enabled); |
| 157 // Returns true if the virtual keyboard is enabled, otherwise false. | 157 // Returns true if the virtual keyboard is enabled, otherwise false. |
| 158 bool IsVirtualKeyboardEnabled(); | 158 bool IsVirtualKeyboardEnabled(); |
| 159 | 159 |
| 160 // Returns true if a braille display is connected to the system, otherwise | 160 // Returns true if a braille display is connected to the system, otherwise |
| 161 // false. | 161 // false. |
| 162 bool IsBrailleDisplayConnected() const; | 162 bool IsBrailleDisplayConnected() const; |
| 163 | 163 |
| 164 // SessionStateObserver overrides: | 164 // SessionStateObserver overrides: |
| 165 virtual void ActiveUserChanged(const std::string& user_id) OVERRIDE; | 165 virtual void ActiveUserChanged(const std::string& user_id) override; |
| 166 | 166 |
| 167 void SetProfileForTest(Profile* profile); | 167 void SetProfileForTest(Profile* profile); |
| 168 | 168 |
| 169 static void SetBrailleControllerForTest( | 169 static void SetBrailleControllerForTest( |
| 170 extensions::api::braille_display_private::BrailleController* controller); | 170 extensions::api::braille_display_private::BrailleController* controller); |
| 171 | 171 |
| 172 // Enables/disables system sounds. | 172 // Enables/disables system sounds. |
| 173 void EnableSystemSounds(bool system_sounds_enabled); | 173 void EnableSystemSounds(bool system_sounds_enabled); |
| 174 | 174 |
| 175 // Initiates play of shutdown sound and returns it's duration. | 175 // Initiates play of shutdown sound and returns it's duration. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 scoped_ptr<extensions::api::braille_display_private::DisplayState> state); | 221 scoped_ptr<extensions::api::braille_display_private::DisplayState> state); |
| 222 void UpdateBrailleImeState(); | 222 void UpdateBrailleImeState(); |
| 223 | 223 |
| 224 void SetProfile(Profile* profile); | 224 void SetProfile(Profile* profile); |
| 225 | 225 |
| 226 void UpdateChromeOSAccessibilityHistograms(); | 226 void UpdateChromeOSAccessibilityHistograms(); |
| 227 | 227 |
| 228 // content::NotificationObserver | 228 // content::NotificationObserver |
| 229 virtual void Observe(int type, | 229 virtual void Observe(int type, |
| 230 const content::NotificationSource& source, | 230 const content::NotificationSource& source, |
| 231 const content::NotificationDetails& details) OVERRIDE; | 231 const content::NotificationDetails& details) override; |
| 232 | 232 |
| 233 // extensions::api::braille_display_private::BrailleObserver implementation. | 233 // extensions::api::braille_display_private::BrailleObserver implementation. |
| 234 // Enables spoken feedback if a braille display becomes available. | 234 // Enables spoken feedback if a braille display becomes available. |
| 235 virtual void OnBrailleDisplayStateChanged( | 235 virtual void OnBrailleDisplayStateChanged( |
| 236 const extensions::api::braille_display_private::DisplayState& | 236 const extensions::api::braille_display_private::DisplayState& |
| 237 display_state) OVERRIDE; | 237 display_state) override; |
| 238 virtual void OnBrailleKeyEvent( | 238 virtual void OnBrailleKeyEvent( |
| 239 const extensions::api::braille_display_private::KeyEvent& event) OVERRIDE; | 239 const extensions::api::braille_display_private::KeyEvent& event) override; |
| 240 | 240 |
| 241 // InputMethodManager::Observer | 241 // InputMethodManager::Observer |
| 242 virtual void InputMethodChanged(input_method::InputMethodManager* manager, | 242 virtual void InputMethodChanged(input_method::InputMethodManager* manager, |
| 243 bool show_message) OVERRIDE; | 243 bool show_message) override; |
| 244 | 244 |
| 245 | 245 |
| 246 // Profile which has the current a11y context. | 246 // Profile which has the current a11y context. |
| 247 Profile* profile_; | 247 Profile* profile_; |
| 248 | 248 |
| 249 // Profile which ChromeVox is currently loaded to. If NULL, ChromeVox is not | 249 // Profile which ChromeVox is currently loaded to. If NULL, ChromeVox is not |
| 250 // loaded to any profile. | 250 // loaded to any profile. |
| 251 bool chrome_vox_loaded_on_lock_screen_; | 251 bool chrome_vox_loaded_on_lock_screen_; |
| 252 bool chrome_vox_loaded_on_user_screen_; | 252 bool chrome_vox_loaded_on_user_screen_; |
| 253 | 253 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 bool braille_ime_current_; | 286 bool braille_ime_current_; |
| 287 | 287 |
| 288 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 288 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
| 289 | 289 |
| 290 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 290 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 } // namespace chromeos | 293 } // namespace chromeos |
| 294 | 294 |
| 295 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 295 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |