| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 EARCON_TAB, | 32 EARCON_TAB, |
| 33 EARCON_TEXTBOX, | 33 EARCON_TEXTBOX, |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 // Class that handles the accessibility notifications and generates | 36 // Class that handles the accessibility notifications and generates |
| 37 // appropriate spoken/audio feedback. | 37 // appropriate spoken/audio feedback. |
| 38 class WizardAccessibilityHandler : public NotificationObserver { | 38 class WizardAccessibilityHandler : public NotificationObserver { |
| 39 public: | 39 public: |
| 40 WizardAccessibilityHandler() { } | 40 WizardAccessibilityHandler() { } |
| 41 | 41 |
| 42 // Speaks the specified string. | |
| 43 void Speak(const char* speak_str, bool queue, bool interruptible); | |
| 44 | |
| 45 private: | 42 private: |
| 46 // Override from NotificationObserver. | 43 // Override from NotificationObserver. |
| 47 virtual void Observe(int type, | 44 virtual void Observe(int type, |
| 48 const NotificationSource& source, | 45 const NotificationSource& source, |
| 49 const NotificationDetails& details); | 46 const NotificationDetails& details); |
| 50 | 47 |
| 51 // Get text to speak and an earcon identifier (which may be NONE) for any | 48 // Get text to speak and an earcon identifier (which may be NONE) for any |
| 52 // accessibility event. | 49 // accessibility event. |
| 53 void DescribeAccessibilityEvent(int event_type, | 50 void DescribeAccessibilityEvent(int event_type, |
| 54 const AccessibilityControlInfo* control_info, | 51 const AccessibilityControlInfo* control_info, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 friend class WizardAccessibilityHandlerTest; | 87 friend class WizardAccessibilityHandlerTest; |
| 91 FRIEND_TEST_ALL_PREFIXES(WizardAccessibilityHandlerTest, TestFocusEvents); | 88 FRIEND_TEST_ALL_PREFIXES(WizardAccessibilityHandlerTest, TestFocusEvents); |
| 92 FRIEND_TEST_ALL_PREFIXES(WizardAccessibilityHandlerTest, TestTextEvents); | 89 FRIEND_TEST_ALL_PREFIXES(WizardAccessibilityHandlerTest, TestTextEvents); |
| 93 | 90 |
| 94 DISALLOW_COPY_AND_ASSIGN(WizardAccessibilityHandler); | 91 DISALLOW_COPY_AND_ASSIGN(WizardAccessibilityHandler); |
| 95 }; | 92 }; |
| 96 | 93 |
| 97 } // namespace chromeos | 94 } // namespace chromeos |
| 98 | 95 |
| 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_ | 96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_ |
| OLD | NEW |