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

Unified Diff: ui/chromeos/touch_accessibility_enabler.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 side-by-side diff with in-line comments
Download patch
Index: ui/chromeos/touch_accessibility_enabler.h
diff --git a/ui/chromeos/touch_accessibility_enabler.h b/ui/chromeos/touch_accessibility_enabler.h
index 1b25990a105b1562ec5aa46863057ae089567f87..67cba2b78fcbd1817fbf002c29678bf9b4cfc98b 100644
--- a/ui/chromeos/touch_accessibility_enabler.h
+++ b/ui/chromeos/touch_accessibility_enabler.h
@@ -30,6 +30,13 @@ class TouchAccessibilityEnablerDelegate {
public:
virtual ~TouchAccessibilityEnablerDelegate() {}
+ // Called when we first detect two fingers are held down.
+ 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() {}
+
oshima 2017/04/10 18:32:08 one suggestion. ash can use ui/chromeos, and chrom
dmazzoni 2017/04/10 18:54:50 To clarify, you're saying AccessibiliiyManager (in
// While the user holds down two fingers on a touch screen, which is the
// gesture to enable spoken feedback (if held down long enough), play a sound
// every "tick" (approximately every half-second) to warn the user something

Powered by Google App Engine
This is Rietveld 408576698