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

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: fix sky's comment 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..cf42052039a2941f7c66d6b850890829e650ff0a 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,
@@ -201,8 +202,10 @@ UMAEventType UMAEventTypeFromEvent(const ui::Event& event) {
int tap_count = gesture.details().tap_count();
if (tap_count == 1)
return UMA_ET_GESTURE_TAP;
- else if (tap_count == 2)
+ if (tap_count == 2)
return UMA_ET_GESTURE_DOUBLE_TAP;
+ 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