| 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 "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "ui/chromeos/accessibility_types.h" | 10 #include "ui/chromeos/accessibility_types.h" |
| 11 #include "ui/gfx/geometry/insets.h" |
| 12 |
| 13 namespace aura { |
| 14 class Window; |
| 15 } |
| 11 | 16 |
| 12 namespace ash { | 17 namespace ash { |
| 13 | 18 |
| 14 // A delegate class to control and query accessibility features. | 19 // A delegate class to control and query accessibility features. |
| 15 class ASH_EXPORT AccessibilityDelegate { | 20 class ASH_EXPORT AccessibilityDelegate { |
| 16 public: | 21 public: |
| 17 virtual ~AccessibilityDelegate() {} | 22 virtual ~AccessibilityDelegate() {} |
| 18 | 23 |
| 19 // Invoked to toggle spoken feedback for accessibility | 24 // Invoked to toggle spoken feedback for accessibility |
| 20 virtual void ToggleSpokenFeedback( | 25 virtual void ToggleSpokenFeedback( |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // Gets the last accessibility alert that was triggered. | 86 // Gets the last accessibility alert that was triggered. |
| 82 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() = 0; | 87 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() = 0; |
| 83 | 88 |
| 84 // Plays an earcon. Earcons are brief and distinctive sounds that indicate | 89 // Plays an earcon. Earcons are brief and distinctive sounds that indicate |
| 85 // when their mapped event has occurred. The sound key enums can be found in | 90 // when their mapped event has occurred. The sound key enums can be found in |
| 86 // chromeos/audio/chromeos_sounds.h. | 91 // chromeos/audio/chromeos_sounds.h. |
| 87 virtual void PlayEarcon(int sound_key) = 0; | 92 virtual void PlayEarcon(int sound_key) = 0; |
| 88 | 93 |
| 89 // Initiates play of shutdown sound and returns it's duration. | 94 // Initiates play of shutdown sound and returns it's duration. |
| 90 virtual base::TimeDelta PlayShutdownSound() const = 0; | 95 virtual base::TimeDelta PlayShutdownSound() const = 0; |
| 96 |
| 97 // Get work area insets due to accessibility overlays on one of the |
| 98 // screen edges, for the given root window. |
| 99 virtual gfx::Insets GetWorkAreaInsets(aura::Window* root_window) const = 0; |
| 91 }; | 100 }; |
| 92 | 101 |
| 93 } // namespace ash | 102 } // namespace ash |
| 94 | 103 |
| 95 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ | 104 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ |
| OLD | NEW |