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/session/session_state_observer.h" | 10 #include "ash/session/session_state_observer.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 | 235 |
236 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 236 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
237 // when their mapped event has occurred. The sound key enums can be found in | 237 // when their mapped event has occurred. The sound key enums can be found in |
238 // chromeos/audio/chromeos_sounds.h. | 238 // chromeos/audio/chromeos_sounds.h. |
239 void PlayEarcon(int sound_key); | 239 void PlayEarcon(int sound_key); |
240 | 240 |
241 // Called by our widget observer when the ChromeVoxPanel is closing. | 241 // Called by our widget observer when the ChromeVoxPanel is closing. |
242 void OnChromeVoxPanelClosing(); | 242 void OnChromeVoxPanelClosing(); |
243 void OnChromeVoxPanelDestroying(); | 243 void OnChromeVoxPanelDestroying(); |
244 | 244 |
| 245 // Called when switching profiles so we can make sure the panel height |
| 246 // is set. |
| 247 void UpdateChromeVoxPanelHeight(); |
| 248 |
245 // Profile having the a11y context. | 249 // Profile having the a11y context. |
246 Profile* profile() { return profile_; } | 250 Profile* profile() { return profile_; } |
247 | 251 |
248 // Extension id of extension receiving keyboard events. | 252 // Extension id of extension receiving keyboard events. |
249 void SetKeyboardListenerExtensionId(const std::string& id, | 253 void SetKeyboardListenerExtensionId(const std::string& id, |
250 content::BrowserContext* context); | 254 content::BrowserContext* context); |
251 const std::string& keyboard_listener_extension_id() { | 255 const std::string& keyboard_listener_extension_id() { |
252 return keyboard_listener_extension_id_; | 256 return keyboard_listener_extension_id_; |
253 } | 257 } |
254 | 258 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 scoped_ptr<AccessibilityHighlightManager> accessibility_highlight_manager_; | 389 scoped_ptr<AccessibilityHighlightManager> accessibility_highlight_manager_; |
386 | 390 |
387 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 391 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
388 | 392 |
389 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 393 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
390 }; | 394 }; |
391 | 395 |
392 } // namespace chromeos | 396 } // namespace chromeos |
393 | 397 |
394 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 398 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |