Chromium Code Reviews| 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_DEFAULT_ACCESSIBILITY_DELEGATE_H_ | 5 #ifndef ASH_DEFAULT_ACCESSIBILITY_DELEGATE_H_ |
| 6 #define ASH_DEFAULT_ACCESSIBILITY_DELEGATE_H_ | 6 #define ASH_DEFAULT_ACCESSIBILITY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/accessibility_delegate.h" | 8 #include "ash/accessibility_delegate.h" |
| 9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "media/audio/sounds/sounds_manager.h" | |
|
James Cook
2014/07/29 04:27:24
Not needed. In general, if a superclass definition
lisayin
2014/07/30 15:32:51
Done.
| |
| 12 | 13 |
| 13 namespace ash { | 14 namespace ash { |
| 14 | 15 |
| 15 class ASH_EXPORT DefaultAccessibilityDelegate : public AccessibilityDelegate { | 16 class ASH_EXPORT DefaultAccessibilityDelegate : public AccessibilityDelegate { |
| 16 public: | 17 public: |
| 17 DefaultAccessibilityDelegate(); | 18 DefaultAccessibilityDelegate(); |
| 18 virtual ~DefaultAccessibilityDelegate(); | 19 virtual ~DefaultAccessibilityDelegate(); |
| 19 | 20 |
| 20 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; | 21 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; |
| 21 virtual void ToggleHighContrast() OVERRIDE; | 22 virtual void ToggleHighContrast() OVERRIDE; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 32 virtual bool IsVirtualKeyboardEnabled() const OVERRIDE; | 33 virtual bool IsVirtualKeyboardEnabled() const OVERRIDE; |
| 33 virtual bool ShouldShowAccessibilityMenu() const OVERRIDE; | 34 virtual bool ShouldShowAccessibilityMenu() const OVERRIDE; |
| 34 virtual bool IsBrailleDisplayConnected() const OVERRIDE; | 35 virtual bool IsBrailleDisplayConnected() const OVERRIDE; |
| 35 virtual void SilenceSpokenFeedback() const OVERRIDE; | 36 virtual void SilenceSpokenFeedback() const OVERRIDE; |
| 36 virtual void ToggleSpokenFeedback( | 37 virtual void ToggleSpokenFeedback( |
| 37 AccessibilityNotificationVisibility notify) OVERRIDE; | 38 AccessibilityNotificationVisibility notify) OVERRIDE; |
| 38 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; | 39 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; |
| 39 virtual double GetSavedScreenMagnifierScale() OVERRIDE; | 40 virtual double GetSavedScreenMagnifierScale() OVERRIDE; |
| 40 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) OVERRIDE; | 41 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) OVERRIDE; |
| 41 virtual AccessibilityAlert GetLastAccessibilityAlert() OVERRIDE; | 42 virtual AccessibilityAlert GetLastAccessibilityAlert() OVERRIDE; |
| 43 virtual void PlayEarcon(media::SoundsManager::SoundKey sound_key) OVERRIDE; | |
| 42 virtual base::TimeDelta PlayShutdownSound() const OVERRIDE; | 44 virtual base::TimeDelta PlayShutdownSound() const OVERRIDE; |
| 43 | 45 |
| 44 private: | 46 private: |
| 45 bool spoken_feedback_enabled_; | 47 bool spoken_feedback_enabled_; |
| 46 bool high_contrast_enabled_; | 48 bool high_contrast_enabled_; |
| 47 bool screen_magnifier_enabled_; | 49 bool screen_magnifier_enabled_; |
| 48 MagnifierType screen_magnifier_type_; | 50 MagnifierType screen_magnifier_type_; |
| 49 bool large_cursor_enabled_; | 51 bool large_cursor_enabled_; |
| 50 bool autoclick_enabled_; | 52 bool autoclick_enabled_; |
| 51 bool virtual_keyboard_enabled_; | 53 bool virtual_keyboard_enabled_; |
| 52 AccessibilityAlert accessibility_alert_; | 54 AccessibilityAlert accessibility_alert_; |
| 53 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate); |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace ash | 58 } // namespace ash |
| 57 | 59 |
| 58 #endif // DEFAULT_ACCESSIBILITY_DELEGATE_H_ | 60 #endif // DEFAULT_ACCESSIBILITY_DELEGATE_H_ |
| OLD | NEW |