| 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 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 | 12 |
| 13 enum AccessibilityNotificationVisibility { | 13 enum AccessibilityNotificationVisibility { |
| 14 A11Y_NOTIFICATION_NONE, | 14 A11Y_NOTIFICATION_NONE, |
| 15 A11Y_NOTIFICATION_SHOW, | 15 A11Y_NOTIFICATION_SHOW, |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 enum AccessibilityAlert { |
| 19 A11Y_ALERT_NONE, |
| 20 A11Y_ALERT_WINDOW_NEEDED |
| 21 }; |
| 22 |
| 18 // A deletate class to control accessibility features. | 23 // A deletate class to control accessibility features. |
| 19 class ASH_EXPORT AccessibilityDelegate { | 24 class ASH_EXPORT AccessibilityDelegate { |
| 20 public: | 25 public: |
| 21 virtual ~AccessibilityDelegate() {} | 26 virtual ~AccessibilityDelegate() {} |
| 22 | 27 |
| 23 // Invoked to toggle spoken feedback for accessibility | 28 // Invoked to toggle spoken feedback for accessibility |
| 24 virtual void ToggleSpokenFeedback( | 29 virtual void ToggleSpokenFeedback( |
| 25 AccessibilityNotificationVisibility notify) = 0; | 30 AccessibilityNotificationVisibility notify) = 0; |
| 26 | 31 |
| 27 // Returns true if spoken feedback is enabled. | 32 // Returns true if spoken feedback is enabled. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 68 |
| 64 // Cancel all current and queued speech immediately. | 69 // Cancel all current and queued speech immediately. |
| 65 virtual void SilenceSpokenFeedback() const = 0; | 70 virtual void SilenceSpokenFeedback() const = 0; |
| 66 | 71 |
| 67 // Saves the zoom scale of the full screen magnifier. | 72 // Saves the zoom scale of the full screen magnifier. |
| 68 virtual void SaveScreenMagnifierScale(double scale) = 0; | 73 virtual void SaveScreenMagnifierScale(double scale) = 0; |
| 69 | 74 |
| 70 // Gets a saved value of the zoom scale of full screen magnifier. If a value | 75 // Gets a saved value of the zoom scale of full screen magnifier. If a value |
| 71 // is not saved, return a negative value. | 76 // is not saved, return a negative value. |
| 72 virtual double GetSavedScreenMagnifierScale() = 0; | 77 virtual double GetSavedScreenMagnifierScale() = 0; |
| 78 |
| 79 // Triggers an accessibility alert to give the user feedback. |
| 80 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; |
| 81 |
| 82 // Gets the last accessibility alert that was triggered. |
| 83 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; |
| 73 }; | 84 }; |
| 74 | 85 |
| 75 } // namespace ash | 86 } // namespace ash |
| 76 | 87 |
| 77 #endif // ASH_ACCESSIBILITYDELEGATE_H_ | 88 #endif // ASH_ACCESSIBILITYDELEGATE_H_ |
| OLD | NEW |