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