1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/views/touch_uma/touch_uma.h"
7 #include "ash/touch/touch_uma.h"
10 void TouchUMA::RecordGestureAction(GestureActionType action
) {
11 ash::TouchUMA::GestureActionType type
= ash::TouchUMA::GESTURE_UNKNOWN
;
13 case GESTURE_TABSWITCH_TAP
:
14 type
= ash::TouchUMA::GESTURE_TABSWITCH_TAP
;
16 case GESTURE_TABNOSWITCH_TAP
:
17 type
= ash::TouchUMA::GESTURE_TABNOSWITCH_TAP
;
19 case GESTURE_TABCLOSE_TAP
:
20 type
= ash::TouchUMA::GESTURE_TABCLOSE_TAP
;
22 case GESTURE_NEWTAB_TAP
:
23 type
= ash::TouchUMA::GESTURE_NEWTAB_TAP
;
25 case GESTURE_ROOTVIEWTOP_TAP
:
26 type
= ash::TouchUMA::GESTURE_ROOTVIEWTOP_TAP
;
29 ash::TouchUMA::GetInstance()->RecordGestureAction(type
);