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

Side by Side Diff: ash/default_accessibility_delegate.h

Issue 2808053004: Fire accessibilityPrivate events on two-finger hold gesture. (Closed)
Patch Set: Rebase Created 3 years, 8 months 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_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/accessibility_types.h" 9 #include "ash/accessibility_types.h"
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool ShouldShowAccessibilityMenu() const override; 49 bool ShouldShowAccessibilityMenu() const override;
50 bool IsBrailleDisplayConnected() const override; 50 bool IsBrailleDisplayConnected() const override;
51 void SilenceSpokenFeedback() const override; 51 void SilenceSpokenFeedback() const override;
52 void ClearFocusHighlight() const override; 52 void ClearFocusHighlight() const override;
53 void ToggleSpokenFeedback( 53 void ToggleSpokenFeedback(
54 AccessibilityNotificationVisibility notify) override; 54 AccessibilityNotificationVisibility notify) override;
55 void SaveScreenMagnifierScale(double scale) override; 55 void SaveScreenMagnifierScale(double scale) override;
56 double GetSavedScreenMagnifierScale() override; 56 double GetSavedScreenMagnifierScale() override;
57 void TriggerAccessibilityAlert(AccessibilityAlert alert) override; 57 void TriggerAccessibilityAlert(AccessibilityAlert alert) override;
58 AccessibilityAlert GetLastAccessibilityAlert() override; 58 AccessibilityAlert GetLastAccessibilityAlert() override;
59 void OnTwoFingerTouchStart() override;
60 void OnTwoFingerTouchStop() override;
oshima 2017/04/10 18:32:08 do you need these?
dmazzoni 2017/04/11 05:49:40 No. Looks like an opportunity for cleanup, as most
59 bool ShouldToggleSpokenFeedbackViaTouch() override; 61 bool ShouldToggleSpokenFeedbackViaTouch() override;
60 void PlaySpokenFeedbackToggleCountdown(int tick_count) override; 62 void PlaySpokenFeedbackToggleCountdown(int tick_count) override;
61 void PlayEarcon(int sound_key) override; 63 void PlayEarcon(int sound_key) override;
62 base::TimeDelta PlayShutdownSound() const override; 64 base::TimeDelta PlayShutdownSound() const override;
63 void HandleAccessibilityGesture(ui::AXGesture gesture) override; 65 void HandleAccessibilityGesture(ui::AXGesture gesture) override;
64 66
65 private: 67 private:
66 bool spoken_feedback_enabled_ = false; 68 bool spoken_feedback_enabled_ = false;
67 bool high_contrast_enabled_ = false; 69 bool high_contrast_enabled_ = false;
68 bool screen_magnifier_enabled_ = false; 70 bool screen_magnifier_enabled_ = false;
69 MagnifierType screen_magnifier_type_ = kDefaultMagnifierType; 71 MagnifierType screen_magnifier_type_ = kDefaultMagnifierType;
70 bool large_cursor_enabled_ = false; 72 bool large_cursor_enabled_ = false;
71 bool autoclick_enabled_ = false; 73 bool autoclick_enabled_ = false;
72 bool virtual_keyboard_enabled_ = false; 74 bool virtual_keyboard_enabled_ = false;
73 bool mono_audio_enabled_ = false; 75 bool mono_audio_enabled_ = false;
74 bool caret_highlight_enabled_ = false; 76 bool caret_highlight_enabled_ = false;
75 bool cursor_highlight_enabled_ = false; 77 bool cursor_highlight_enabled_ = false;
76 bool focus_highligh_enabled_ = false; 78 bool focus_highligh_enabled_ = false;
77 bool sticky_keys_enabled_ = false; 79 bool sticky_keys_enabled_ = false;
78 bool tap_dragging_enabled_ = false; 80 bool tap_dragging_enabled_ = false;
79 bool select_to_speak_enabled_ = false; 81 bool select_to_speak_enabled_ = false;
80 bool switch_access_enabled_ = false; 82 bool switch_access_enabled_ = false;
81 AccessibilityAlert accessibility_alert_ = A11Y_ALERT_NONE; 83 AccessibilityAlert accessibility_alert_ = A11Y_ALERT_NONE;
82 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate); 84 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate);
83 }; 85 };
84 86
85 } // namespace ash 87 } // namespace ash
86 88
87 #endif // ASH_DEFAULT_ACCESSIBILITY_DELEGATE_H_ 89 #endif // ASH_DEFAULT_ACCESSIBILITY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698