Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: ash/default_accessibility_delegate.cc

Issue 682943002: Make chrome/browser/chromeos/accessibility compile on Athena with use_ash=0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash41_scroll_end_effect
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
11 DefaultAccessibilityDelegate::DefaultAccessibilityDelegate() 11 DefaultAccessibilityDelegate::DefaultAccessibilityDelegate()
12 : spoken_feedback_enabled_(false), 12 : spoken_feedback_enabled_(false),
13 high_contrast_enabled_(false), 13 high_contrast_enabled_(false),
14 screen_magnifier_enabled_(false), 14 screen_magnifier_enabled_(false),
15 screen_magnifier_type_(kDefaultMagnifierType), 15 screen_magnifier_type_(ui::kDefaultMagnifierType),
16 large_cursor_enabled_(false), 16 large_cursor_enabled_(false),
17 autoclick_enabled_(false), 17 autoclick_enabled_(false),
18 virtual_keyboard_enabled_(false), 18 virtual_keyboard_enabled_(false),
19 accessibility_alert_(A11Y_ALERT_NONE) { 19 accessibility_alert_(ui::A11Y_ALERT_NONE) {
20 } 20 }
21 21
22 DefaultAccessibilityDelegate::~DefaultAccessibilityDelegate() {} 22 DefaultAccessibilityDelegate::~DefaultAccessibilityDelegate() {}
23 23
24 bool DefaultAccessibilityDelegate::IsSpokenFeedbackEnabled() const { 24 bool DefaultAccessibilityDelegate::IsSpokenFeedbackEnabled() const {
25 return spoken_feedback_enabled_; 25 return spoken_feedback_enabled_;
26 } 26 }
27 27
28 void DefaultAccessibilityDelegate::ToggleHighContrast() { 28 void DefaultAccessibilityDelegate::ToggleHighContrast() {
29 high_contrast_enabled_ = !high_contrast_enabled_; 29 high_contrast_enabled_ = !high_contrast_enabled_;
30 } 30 }
31 31
32 bool DefaultAccessibilityDelegate::IsHighContrastEnabled() const { 32 bool DefaultAccessibilityDelegate::IsHighContrastEnabled() const {
33 return high_contrast_enabled_; 33 return high_contrast_enabled_;
34 } 34 }
35 35
36 void DefaultAccessibilityDelegate::SetMagnifierEnabled(bool enabled) { 36 void DefaultAccessibilityDelegate::SetMagnifierEnabled(bool enabled) {
37 screen_magnifier_enabled_ = enabled; 37 screen_magnifier_enabled_ = enabled;
38 } 38 }
39 39
40 void DefaultAccessibilityDelegate::SetMagnifierType(MagnifierType type) { 40 void DefaultAccessibilityDelegate::SetMagnifierType(ui::MagnifierType type) {
41 screen_magnifier_type_ = type; 41 screen_magnifier_type_ = type;
42 } 42 }
43 43
44 bool DefaultAccessibilityDelegate::IsMagnifierEnabled() const { 44 bool DefaultAccessibilityDelegate::IsMagnifierEnabled() const {
45 return screen_magnifier_enabled_; 45 return screen_magnifier_enabled_;
46 } 46 }
47 47
48 MagnifierType DefaultAccessibilityDelegate::GetMagnifierType() const { 48 ui::MagnifierType DefaultAccessibilityDelegate::GetMagnifierType() const {
49 return screen_magnifier_type_; 49 return screen_magnifier_type_;
50 } 50 }
51 51
52 void DefaultAccessibilityDelegate::SetLargeCursorEnabled(bool enabled) { 52 void DefaultAccessibilityDelegate::SetLargeCursorEnabled(bool enabled) {
53 large_cursor_enabled_ = enabled; 53 large_cursor_enabled_ = enabled;
54 } 54 }
55 55
56 bool DefaultAccessibilityDelegate::IsLargeCursorEnabled() const { 56 bool DefaultAccessibilityDelegate::IsLargeCursorEnabled() const {
57 return large_cursor_enabled_; 57 return large_cursor_enabled_;
58 } 58 }
(...skipping 24 matching lines...) Expand all
83 } 83 }
84 84
85 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const { 85 bool DefaultAccessibilityDelegate::IsBrailleDisplayConnected() const {
86 return false; 86 return false;
87 } 87 }
88 88
89 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const { 89 void DefaultAccessibilityDelegate::SilenceSpokenFeedback() const {
90 } 90 }
91 91
92 void DefaultAccessibilityDelegate::ToggleSpokenFeedback( 92 void DefaultAccessibilityDelegate::ToggleSpokenFeedback(
93 AccessibilityNotificationVisibility notify) { 93 ui::AccessibilityNotificationVisibility notify) {
94 spoken_feedback_enabled_ = !spoken_feedback_enabled_; 94 spoken_feedback_enabled_ = !spoken_feedback_enabled_;
95 } 95 }
96 96
97 void DefaultAccessibilityDelegate::SaveScreenMagnifierScale(double scale) { 97 void DefaultAccessibilityDelegate::SaveScreenMagnifierScale(double scale) {
98 } 98 }
99 99
100 double DefaultAccessibilityDelegate::GetSavedScreenMagnifierScale() { 100 double DefaultAccessibilityDelegate::GetSavedScreenMagnifierScale() {
101 return std::numeric_limits<double>::min(); 101 return std::numeric_limits<double>::min();
102 } 102 }
103 103
104 void DefaultAccessibilityDelegate::TriggerAccessibilityAlert( 104 void DefaultAccessibilityDelegate::TriggerAccessibilityAlert(
105 AccessibilityAlert alert) { 105 ui::AccessibilityAlert alert) {
106 accessibility_alert_ = alert; 106 accessibility_alert_ = alert;
107 } 107 }
108 108
109 AccessibilityAlert DefaultAccessibilityDelegate::GetLastAccessibilityAlert() { 109 ui::AccessibilityAlert
110 DefaultAccessibilityDelegate::GetLastAccessibilityAlert() {
110 return accessibility_alert_; 111 return accessibility_alert_;
111 } 112 }
112 113
113 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) { 114 void DefaultAccessibilityDelegate::PlayEarcon(int sound_key) {
114 } 115 }
115 116
116 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const { 117 base::TimeDelta DefaultAccessibilityDelegate::PlayShutdownSound() const {
117 return base::TimeDelta(); 118 return base::TimeDelta();
118 } 119 }
119 120
120 } // namespace ash 121 } // namespace ash
OLDNEW
« no previous file with comments | « ash/default_accessibility_delegate.h ('k') | ash/magnifier/magnification_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698