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

Unified Diff: ash/accessibility_delegate.h

Issue 2808053004: Fire accessibilityPrivate events on two-finger hold gesture. (Closed)
Patch Set: Address feedback 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/ash_touch_exploration_manager_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accessibility_delegate.h
diff --git a/ash/accessibility_delegate.h b/ash/accessibility_delegate.h
index ce2674b27aefe22a7adc4261c21f9a975e9e3d19..0be79b5514ed25b66e5c0768a76b47c6c56e22ad 100644
--- a/ash/accessibility_delegate.h
+++ b/ash/accessibility_delegate.h
@@ -133,6 +133,14 @@ class ASH_EXPORT AccessibilityDelegate {
// Gets the last accessibility alert that was triggered.
virtual AccessibilityAlert GetLastAccessibilityAlert() = 0;
+ // Called when we first detect two fingers are held down, which can be
+ // used to toggle spoken feedback on some touch-only devices.
+ virtual void OnTwoFingerTouchStart() {}
+
+ // Called when the user is no longer holding down two fingers (including
+ // releasing one, holding down three, or moving them).
+ virtual void OnTwoFingerTouchStop() {}
+
// Whether or not to enable toggling spoken feedback via holding down
// two fingers on the screen.
virtual bool ShouldToggleSpokenFeedbackViaTouch() = 0;
« no previous file with comments | « no previous file | ash/ash_touch_exploration_manager_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698