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" |
11 #include "media/audio/sounds/sounds_manager.h" | |
11 | 12 |
12 namespace ash { | 13 namespace ash { |
13 | 14 |
14 enum AccessibilityNotificationVisibility { | 15 enum AccessibilityNotificationVisibility { |
15 A11Y_NOTIFICATION_NONE, | 16 A11Y_NOTIFICATION_NONE, |
16 A11Y_NOTIFICATION_SHOW, | 17 A11Y_NOTIFICATION_SHOW, |
17 }; | 18 }; |
18 | 19 |
19 enum AccessibilityAlert { | 20 enum AccessibilityAlert { |
20 A11Y_ALERT_NONE, | 21 A11Y_ALERT_NONE, |
(...skipping 64 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 | 86 // Gets a saved value of the zoom scale of full screen magnifier. If a value |
86 // is not saved, return a negative value. | 87 // is not saved, return a negative value. |
87 virtual double GetSavedScreenMagnifierScale() = 0; | 88 virtual double GetSavedScreenMagnifierScale() = 0; |
88 | 89 |
89 // Triggers an accessibility alert to give the user feedback. | 90 // Triggers an accessibility alert to give the user feedback. |
90 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; | 91 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; |
91 | 92 |
92 // Gets the last accessibility alert that was triggered. | 93 // Gets the last accessibility alert that was triggered. |
93 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; | 94 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; |
94 | 95 |
96 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | |
97 // when their mapped event has occurred. | |
98 virtual void PlayEarcon(media::SoundsManager::SoundKey sound_key) = 0; | |
James Cook
2014/07/29 04:27:24
I would prefer you keep this an "int". I prefer in
dmazzoni
2014/07/29 05:47:49
That's a good reason. How about a comment here spe
lisayin
2014/07/30 15:32:51
Done.
| |
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 |