[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef ASH_DEFAULT_ACCESSIBILITY_DELEGATE_H_ |
| 6 | #define ASH_DEFAULT_ACCESSIBILITY_DELEGATE_H_ |
| 7 | |
| 8 | #include "ash/accessibility_delegate.h" |
| 9 | #include "ash/ash_export.h" |
| 10 | #include "base/basictypes.h" |
| 11 | #include "base/compiler_specific.h" |
| 12 | |
| 13 | namespace ash { |
[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 14 | |
| 15 | class ASH_EXPORT DefaultAccessibilityDelegate : public AccessibilityDelegate { |
| 16 | public: |
| 17 | DefaultAccessibilityDelegate(); |
dcheng | 1f4538e | 2014-10-27 23:57:05 | [diff] [blame] | 18 | ~DefaultAccessibilityDelegate() override; |
[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 19 | |
dcheng | 1f4538e | 2014-10-27 23:57:05 | [diff] [blame] | 20 | bool IsSpokenFeedbackEnabled() const override; |
| 21 | void ToggleHighContrast() override; |
| 22 | bool IsHighContrastEnabled() const override; |
| 23 | void SetMagnifierEnabled(bool enabled) override; |
pkotwicz | 0991c82 | 2014-10-31 04:21:03 | [diff] [blame] | 24 | void SetMagnifierType(ui::MagnifierType type) override; |
dcheng | 1f4538e | 2014-10-27 23:57:05 | [diff] [blame] | 25 | bool IsMagnifierEnabled() const override; |
pkotwicz | 0991c82 | 2014-10-31 04:21:03 | [diff] [blame] | 26 | ui::MagnifierType GetMagnifierType() const override; |
dcheng | 1f4538e | 2014-10-27 23:57:05 | [diff] [blame] | 27 | void SetLargeCursorEnabled(bool enabled) override; |
| 28 | bool IsLargeCursorEnabled() const override; |
| 29 | void SetAutoclickEnabled(bool enabled) override; |
| 30 | bool IsAutoclickEnabled() const override; |
| 31 | void SetVirtualKeyboardEnabled(bool enabled) override; |
| 32 | bool IsVirtualKeyboardEnabled() const override; |
| 33 | bool ShouldShowAccessibilityMenu() const override; |
| 34 | bool IsBrailleDisplayConnected() const override; |
| 35 | void SilenceSpokenFeedback() const override; |
| 36 | void ToggleSpokenFeedback( |
pkotwicz | 0991c82 | 2014-10-31 04:21:03 | [diff] [blame] | 37 | ui::AccessibilityNotificationVisibility notify) override; |
dcheng | 1f4538e | 2014-10-27 23:57:05 | [diff] [blame] | 38 | void SaveScreenMagnifierScale(double scale) override; |
| 39 | double GetSavedScreenMagnifierScale() override; |
pkotwicz | 0991c82 | 2014-10-31 04:21:03 | [diff] [blame] | 40 | void TriggerAccessibilityAlert(ui::AccessibilityAlert alert) override; |
| 41 | ui::AccessibilityAlert GetLastAccessibilityAlert() override; |
dcheng | 1f4538e | 2014-10-27 23:57:05 | [diff] [blame] | 42 | void PlayEarcon(int sound_key) override; |
| 43 | base::TimeDelta PlayShutdownSound() const override; |
[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 44 | |
| 45 | private: |
| 46 | bool spoken_feedback_enabled_; |
| 47 | bool high_contrast_enabled_; |
| 48 | bool screen_magnifier_enabled_; |
pkotwicz | 0991c82 | 2014-10-31 04:21:03 | [diff] [blame] | 49 | ui::MagnifierType screen_magnifier_type_; |
[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 50 | bool large_cursor_enabled_; |
| 51 | bool autoclick_enabled_; |
[email protected] | abdd0d7 | 2014-02-05 17:18:07 | [diff] [blame] | 52 | bool virtual_keyboard_enabled_; |
pkotwicz | 0991c82 | 2014-10-31 04:21:03 | [diff] [blame] | 53 | ui::AccessibilityAlert accessibility_alert_; |
[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 54 | DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate); |
| 55 | }; |
| 56 | |
[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 57 | } // namespace ash |
| 58 | |
| 59 | #endif // DEFAULT_ACCESSIBILITY_DELEGATE_H_ |