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

Side by Side Diff: ash/common/default_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
« no previous file with comments | « ash/common/accessibility_delegate.h ('k') | ash/common/default_accessibility_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DEFAULT_ACCESSIBILITY_DELEGATE_H_ 5 #ifndef ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_
6 #define ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ 6 #define ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/accessibility_delegate.h" 9 #include "ash/common/accessibility_delegate.h"
10 #include "ash/common/accessibility_types.h" 10 #include "ash/common/accessibility_types.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 bool ShouldShowAccessibilityMenu() const override; 45 bool ShouldShowAccessibilityMenu() const override;
46 bool IsBrailleDisplayConnected() const override; 46 bool IsBrailleDisplayConnected() const override;
47 void SilenceSpokenFeedback() const override; 47 void SilenceSpokenFeedback() const override;
48 void ClearFocusHighlight() const override; 48 void ClearFocusHighlight() const override;
49 void ToggleSpokenFeedback( 49 void ToggleSpokenFeedback(
50 AccessibilityNotificationVisibility notify) override; 50 AccessibilityNotificationVisibility notify) override;
51 void SaveScreenMagnifierScale(double scale) override; 51 void SaveScreenMagnifierScale(double scale) override;
52 double GetSavedScreenMagnifierScale() override; 52 double GetSavedScreenMagnifierScale() override;
53 void TriggerAccessibilityAlert(AccessibilityAlert alert) override; 53 void TriggerAccessibilityAlert(AccessibilityAlert alert) override;
54 AccessibilityAlert GetLastAccessibilityAlert() override; 54 AccessibilityAlert GetLastAccessibilityAlert() override;
55 bool ShouldToggleSpokenFeedbackViaTouch() override;
56 void PlaySpokenFeedbackToggleCountdown(int tick_count) override;
55 void PlayEarcon(int sound_key) override; 57 void PlayEarcon(int sound_key) override;
56 base::TimeDelta PlayShutdownSound() const override; 58 base::TimeDelta PlayShutdownSound() const override;
57 void HandleAccessibilityGesture(ui::AXGesture gesture) override; 59 void HandleAccessibilityGesture(ui::AXGesture gesture) override;
58 60
59 private: 61 private:
60 bool spoken_feedback_enabled_ = false; 62 bool spoken_feedback_enabled_ = false;
61 bool high_contrast_enabled_ = false; 63 bool high_contrast_enabled_ = false;
62 bool screen_magnifier_enabled_ = false; 64 bool screen_magnifier_enabled_ = false;
63 MagnifierType screen_magnifier_type_ = kDefaultMagnifierType; 65 MagnifierType screen_magnifier_type_ = kDefaultMagnifierType;
64 bool large_cursor_enabled_ = false; 66 bool large_cursor_enabled_ = false;
65 bool autoclick_enabled_ = false; 67 bool autoclick_enabled_ = false;
66 bool virtual_keyboard_enabled_ = false; 68 bool virtual_keyboard_enabled_ = false;
67 bool mono_audio_enabled_ = false; 69 bool mono_audio_enabled_ = false;
68 bool caret_highlight_enabled_ = false; 70 bool caret_highlight_enabled_ = false;
69 bool cursor_highlight_enabled_ = false; 71 bool cursor_highlight_enabled_ = false;
70 bool focus_highligh_enabled_ = false; 72 bool focus_highligh_enabled_ = false;
71 bool select_to_speak_enabled_ = false; 73 bool select_to_speak_enabled_ = false;
72 bool switch_access_enabled_ = false; 74 bool switch_access_enabled_ = false;
73 AccessibilityAlert accessibility_alert_ = A11Y_ALERT_NONE; 75 AccessibilityAlert accessibility_alert_ = A11Y_ALERT_NONE;
74 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate); 76 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate);
75 }; 77 };
76 78
77 } // namespace ash 79 } // namespace ash
78 80
79 #endif // ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_ 81 #endif // ASH_COMMON_DEFAULT_ACCESSIBILITY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/accessibility_delegate.h ('k') | ash/common/default_accessibility_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698