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

Unified Diff: ash/touch/touch_uma.cc

Issue 16018006: Generate tap gesture with tap_count = 3 for triple-tap (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: refator Created 7 years, 7 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 | ui/aura/gestures/gesture_recognizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_uma.cc
diff --git a/ash/touch/touch_uma.cc b/ash/touch/touch_uma.cc
index 8279bf65ed08f19379fd3a002e317607d3e1e253..ed234e0c2d776c24447acfb35d6239d7d5be2159 100644
--- a/ash/touch/touch_uma.cc
+++ b/ash/touch/touch_uma.cc
@@ -57,6 +57,7 @@ enum UMAEventType {
UMA_ET_GESTURE_BEGIN,
UMA_ET_GESTURE_END,
UMA_ET_GESTURE_DOUBLE_TAP,
+ UMA_ET_GESTURE_TRIPLE_TAP,
UMA_ET_GESTURE_TWO_FINGER_TAP,
UMA_ET_GESTURE_PINCH_BEGIN,
UMA_ET_GESTURE_PINCH_END,
@@ -203,6 +204,8 @@ UMAEventType UMAEventTypeFromEvent(const ui::Event& event) {
return UMA_ET_GESTURE_TAP;
else if (tap_count == 2)
sky 2013/05/28 21:08:37 nit: style guide says no else for ifs that return,
return UMA_ET_GESTURE_DOUBLE_TAP;
+ else if (tap_count == 3)
+ return UMA_ET_GESTURE_TRIPLE_TAP;
NOTREACHED() << "Received tap with tapcount " << tap_count;
return UMA_ET_UNKNOWN;
}
« no previous file with comments | « no previous file | ui/aura/gestures/gesture_recognizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698