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

Side by Side Diff: ash/common/accessibility_delegate.h

Issue 2584063002: Re-land: Toggle spoken feedback if two fingers are held down. (Closed)
Patch Set: Only toggle spoken feedback on CFM devices Created 4 years 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 #ifndef ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ 5 #ifndef ASH_COMMON_ACCESSIBILITY_DELEGATE_H_
6 #define ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ 6 #define ASH_COMMON_ACCESSIBILITY_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/accessibility_types.h" 9 #include "ash/common/accessibility_types.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Gets a saved value of the zoom scale of full screen magnifier. If a value 114 // Gets a saved value of the zoom scale of full screen magnifier. If a value
115 // is not saved, return a negative value. 115 // is not saved, return a negative value.
116 virtual double GetSavedScreenMagnifierScale() = 0; 116 virtual double GetSavedScreenMagnifierScale() = 0;
117 117
118 // Triggers an accessibility alert to give the user feedback. 118 // Triggers an accessibility alert to give the user feedback.
119 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; 119 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0;
120 120
121 // Gets the last accessibility alert that was triggered. 121 // Gets the last accessibility alert that was triggered.
122 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; 122 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0;
123 123
124 // Whether or not to enable toggling spoken feedback via holding down
125 // two fingers on the screen.
126 virtual bool ShouldToggleSpokenFeedbackViaTouch() = 0;
127
128 // Play tick sound indicating spoken feedback will be toggled after countdown.
129 virtual void PlaySpokenFeedbackToggleCountdown(int tick_count) = 0;
130
124 // Plays an earcon. Earcons are brief and distinctive sounds that indicate 131 // Plays an earcon. Earcons are brief and distinctive sounds that indicate
125 // when their mapped event has occurred. The sound key enums can be found in 132 // when their mapped event has occurred. The sound key enums can be found in
126 // chromeos/audio/chromeos_sounds.h. 133 // chromeos/audio/chromeos_sounds.h.
127 virtual void PlayEarcon(int sound_key) = 0; 134 virtual void PlayEarcon(int sound_key) = 0;
128 135
129 // Initiates play of shutdown sound and returns it's duration. 136 // Initiates play of shutdown sound and returns it's duration.
130 virtual base::TimeDelta PlayShutdownSound() const = 0; 137 virtual base::TimeDelta PlayShutdownSound() const = 0;
131 138
132 // Forward an accessibility gesture from the touch exploration controller to 139 // Forward an accessibility gesture from the touch exploration controller to
133 // ChromeVox. 140 // ChromeVox.
134 virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0; 141 virtual void HandleAccessibilityGesture(ui::AXGesture gesture) = 0;
135 }; 142 };
136 143
137 } // namespace ash 144 } // namespace ash
138 145
139 #endif // ASH_COMMON_ACCESSIBILITY_DELEGATE_H_ 146 #endif // ASH_COMMON_ACCESSIBILITY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/ash_touch_exploration_manager_chromeos.cc ('k') | ash/common/default_accessibility_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698