Infobar material design refresh: layout
[chromium-blink-merge.git] / chrome / browser / ui / views / touch_uma / touch_uma_ash.cc
blob14fc5d3c42b2be8f9efea1ac026ced388f2f7977
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"
9 // static
10 void TouchUMA::RecordGestureAction(GestureActionType action) {
11 ash::TouchUMA::GestureActionType type = ash::TouchUMA::GESTURE_UNKNOWN;
12 switch (action) {
13 case GESTURE_TABSWITCH_TAP:
14 type = ash::TouchUMA::GESTURE_TABSWITCH_TAP;
15 break;
16 case GESTURE_TABNOSWITCH_TAP:
17 type = ash::TouchUMA::GESTURE_TABNOSWITCH_TAP;
18 break;
19 case GESTURE_TABCLOSE_TAP:
20 type = ash::TouchUMA::GESTURE_TABCLOSE_TAP;
21 break;
22 case GESTURE_NEWTAB_TAP:
23 type = ash::TouchUMA::GESTURE_NEWTAB_TAP;
24 break;
25 case GESTURE_ROOTVIEWTOP_TAP:
26 type = ash::TouchUMA::GESTURE_ROOTVIEWTOP_TAP;
27 break;
29 ash::TouchUMA::GetInstance()->RecordGestureAction(type);