OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 ASH_ACCESSIBILITY_DELEGATE_H_ | 5 #ifndef ASH_ACCESSIBILITY_DELEGATE_H_ |
6 #define ASH_ACCESSIBILITY_DELEGATE_H_ | 6 #define ASH_ACCESSIBILITY_DELEGATE_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/magnifier/magnifier_constants.h" | 9 #include "ash/magnifier/magnifier_constants.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Gets a saved value of the zoom scale of full screen magnifier. If a value | 85 // Gets a saved value of the zoom scale of full screen magnifier. If a value |
86 // is not saved, return a negative value. | 86 // is not saved, return a negative value. |
87 virtual double GetSavedScreenMagnifierScale() = 0; | 87 virtual double GetSavedScreenMagnifierScale() = 0; |
88 | 88 |
89 // Triggers an accessibility alert to give the user feedback. | 89 // Triggers an accessibility alert to give the user feedback. |
90 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; | 90 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; |
91 | 91 |
92 // Gets the last accessibility alert that was triggered. | 92 // Gets the last accessibility alert that was triggered. |
93 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; | 93 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; |
94 | 94 |
| 95 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
| 96 // when their mapped event has occurred. The sound key enums can be found in |
| 97 // chromeos/audio/chromeos_sounds.h. |
| 98 virtual void PlayEarcon(int sound_key) = 0; |
| 99 |
95 // Initiates play of shutdown sound and returns it's duration. | 100 // Initiates play of shutdown sound and returns it's duration. |
96 virtual base::TimeDelta PlayShutdownSound() const = 0; | 101 virtual base::TimeDelta PlayShutdownSound() const = 0; |
97 }; | 102 }; |
98 | 103 |
99 } // namespace ash | 104 } // namespace ash |
100 | 105 |
101 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ | 106 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ |
OLD | NEW |