[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 { |
| 14 | namespace internal { |
| 15 | |
| 16 | class ASH_EXPORT DefaultAccessibilityDelegate : public AccessibilityDelegate { |
| 17 | public: |
| 18 | DefaultAccessibilityDelegate(); |
| 19 | virtual ~DefaultAccessibilityDelegate(); |
| 20 | |
| 21 | virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
| 22 | virtual void ToggleHighContrast() OVERRIDE; |
| 23 | virtual bool IsHighContrastEnabled() const OVERRIDE; |
| 24 | virtual void SetMagnifierEnabled(bool enabled) OVERRIDE; |
| 25 | virtual void SetMagnifierType(MagnifierType type) OVERRIDE; |
| 26 | virtual bool IsMagnifierEnabled() const OVERRIDE; |
| 27 | virtual MagnifierType GetMagnifierType() const OVERRIDE; |
| 28 | virtual void SetLargeCursorEnabled(bool enabled) OVERRIDE; |
| 29 | virtual bool IsLargeCursorEnabled() const OVERRIDE; |
| 30 | virtual void SetAutoclickEnabled(bool enabled) OVERRIDE; |
| 31 | virtual bool IsAutoclickEnabled() const OVERRIDE; |
[email protected] | abdd0d7 | 2014-02-05 17:18:07 | [diff] [blame] | 32 | virtual void SetVirtualKeyboardEnabled(bool enabled) OVERRIDE; |
[email protected] | e1b299b | 2014-01-29 23:53:41 | [diff] [blame] | 33 | virtual bool IsVirtualKeyboardEnabled() const OVERRIDE; |
[email protected] | c2012257 | 2013-12-16 20:35:58 | [diff] [blame] | 34 | virtual bool ShouldShowAccessibilityMenu() const OVERRIDE; |
[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 35 | virtual void SilenceSpokenFeedback() const OVERRIDE; |
| 36 | virtual void ToggleSpokenFeedback( |
| 37 | AccessibilityNotificationVisibility notify) OVERRIDE; |
| 38 | virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; |
| 39 | virtual double GetSavedScreenMagnifierScale() OVERRIDE; |
[email protected] | c69ed2f | 2013-11-22 19:37:21 | [diff] [blame] | 40 | virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) OVERRIDE; |
| 41 | virtual AccessibilityAlert GetLastAccessibilityAlert() OVERRIDE; |
[email protected] | ce89d939 | 2013-12-11 21:05:20 | [diff] [blame] | 42 | virtual base::TimeDelta PlayShutdownSound() const OVERRIDE; |
[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 43 | |
| 44 | private: |
| 45 | bool spoken_feedback_enabled_; |
| 46 | bool high_contrast_enabled_; |
| 47 | bool screen_magnifier_enabled_; |
| 48 | MagnifierType screen_magnifier_type_; |
| 49 | bool large_cursor_enabled_; |
| 50 | bool autoclick_enabled_; |
[email protected] | abdd0d7 | 2014-02-05 17:18:07 | [diff] [blame] | 51 | bool virtual_keyboard_enabled_; |
[email protected] | c69ed2f | 2013-11-22 19:37:21 | [diff] [blame] | 52 | AccessibilityAlert accessibility_alert_; |
[email protected] | f3ab6eff5 | 2013-10-24 03:29:38 | [diff] [blame] | 53 | DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate); |
| 54 | }; |
| 55 | |
| 56 | } // namespace internal |
| 57 | } // namespace ash |
| 58 | |
| 59 | #endif // DEFAULT_ACCESSIBILITY_DELEGATE_H_ |