| 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 #include "ash/default_accessibility_delegate.h" | 5 #include "ash/default_accessibility_delegate.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 namespace ash { | 9 namespace ash { |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 | 58 |
| 59 void DefaultAccessibilityDelegate::SetVirtualKeyboardEnabled(bool enabled) { | 59 void DefaultAccessibilityDelegate::SetVirtualKeyboardEnabled(bool enabled) { |
| 60 virtual_keyboard_enabled_ = enabled; | 60 virtual_keyboard_enabled_ = enabled; |
| 61 } | 61 } |
| 62 | 62 |
| 63 bool DefaultAccessibilityDelegate::IsVirtualKeyboardEnabled() const { | 63 bool DefaultAccessibilityDelegate::IsVirtualKeyboardEnabled() const { |
| 64 return virtual_keyboard_enabled_; | 64 return virtual_keyboard_enabled_; |
| 65 } | 65 } |
| 66 | 66 |
| 67 void DefaultAccessibilityDelegate::SetMonoAudioEnabled(bool enabled) { |
| 68 mono_audio_enabled_ = enabled; |
| 69 } |
| 70 |
| 71 bool DefaultAccessibilityDelegate::IsMonoAudioEnabled() const { |
| 72 return mono_audio_enabled_; |
| 73 } |
| 74 |
| 67 void DefaultAccessibilityDelegate::SetCaretHighlightEnabled(bool enabled) { | 75 void DefaultAccessibilityDelegate::SetCaretHighlightEnabled(bool enabled) { |
| 68 caret_highlight_enabled_ = enabled; | 76 caret_highlight_enabled_ = enabled; |
| 69 } | 77 } |
| 70 | 78 |
| 71 bool DefaultAccessibilityDelegate::IsCaretHighlightEnabled() const { | 79 bool DefaultAccessibilityDelegate::IsCaretHighlightEnabled() const { |
| 72 return caret_highlight_enabled_; | 80 return caret_highlight_enabled_; |
| 73 } | 81 } |
| 74 | 82 |
| 75 void DefaultAccessibilityDelegate::SetCursorHighlightEnabled(bool enabled) { | 83 void DefaultAccessibilityDelegate::SetCursorHighlightEnabled(bool enabled) { |
| 76 cursor_highlight_enabled_ = enabled; | 84 cursor_highlight_enabled_ = enabled; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 103 bool DefaultAccessibilityDelegate::IsSwitchAccessEnabled() const { | 111 bool DefaultAccessibilityDelegate::IsSwitchAccessEnabled() const { |
| 104 return switch_access_enabled_; | 112 return switch_access_enabled_; |
| 105 } | 113 } |
| 106 | 114 |
| 107 bool DefaultAccessibilityDelegate::ShouldShowAccessibilityMenu() const { | 115 bool DefaultAccessibilityDelegate::ShouldShowAccessibilityMenu() const { |
| 108 return spoken_feedback_enabled_ || | 116 return spoken_feedback_enabled_ || |
| 109 high_contrast_enabled_ || | 117 high_contrast_enabled_ || |
| 110 screen_magnifier_enabled_ || | 118 screen_magnifier_enabled_ || |
| 111 large_cursor_enabled_ || | 119 large_cursor_enabled_ || |
| 112 autoclick_enabled_ || | 120 autoclick_enabled_ || |
| 113 virtual_keyboard_enabled_; | 121 virtual_keyboard_enabled_ || |
| 122 mono_audio_enabled_; |
| 114 } | 123 } |
| 115 | 124 |
| 116 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const { | 125 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const { |
| 117 return false; | 126 return false; |
| 118 } | 127 } |
| 119 | 128 |
| 120 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const { | 129 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const { |
| 121 } | 130 } |
| 122 | 131 |
| 123 void DefaultAccessibilityDelegate::ToggleSpokenFeedback( | 132 void DefaultAccessibilityDelegate::ToggleSpokenFeedback( |
| (...skipping 19 matching lines...) Expand all Loading... |
| 143 } | 152 } |
| 144 | 153 |
| 145 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) { | 154 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) { |
| 146 } | 155 } |
| 147 | 156 |
| 148 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { | 157 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { |
| 149 return base::TimeDelta(); | 158 return base::TimeDelta(); |
| 150 } | 159 } |
| 151 | 160 |
| 152 } // namespace ash | 161 } // namespace ash |
| OLD | NEW |