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