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

Unified Diff: ui/chromeos/touch_exploration_controller.h

Issue 420073003: Two Finger Tap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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_exploration_controller.h
diff --git a/ui/chromeos/touch_exploration_controller.h b/ui/chromeos/touch_exploration_controller.h
index 59ff11444f54a4cf7bbd0b1a057e8de65ebfe23e..72286e1ce64638b002dbd2c98d046d1b8984f252 100644
--- a/ui/chromeos/touch_exploration_controller.h
+++ b/ui/chromeos/touch_exploration_controller.h
@@ -40,6 +40,9 @@ class TouchExplorationControllerDelegate {
// Takes an int from 0.0 to 100.0 that indicates the percent the volume
// should be set to.
virtual void SetOutputLevel(int volume) = 0;
+
+ // Silences spoken feedback.
+ virtual void SilenceSpokenFeedback() = 0;
};
// TouchExplorationController is used in tandem with "Spoken Feedback" to
@@ -183,6 +186,8 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
ui::EventRewriteStatus InSlideGesture(
const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
+ ui::EventRewriteStatus InTwoFingerTap(
+ const ui::TouchEvent& event, scoped_ptr<ui::Event>* rewritten_event);
// Returns the current time of the tick clock.
base::TimeDelta Now();
@@ -314,6 +319,9 @@ class UI_CHROMEOS_EXPORT TouchExplorationController
// including corners, then the resulting movements will be interpreted as
// slide gestures.
SLIDE_GESTURE,
+
+ // If the user makes a two finger tap, silence spoken feedback.
+ TWO_FINGER_TAP,
};
enum ScreenLocation {

Powered by Google App Engine
This is Rietveld 408576698