This source file includes following definitions.
- RecordGestureAction
#include "chrome/browser/ui/views/touch_uma/touch_uma.h"
#include "ash/touch/touch_uma.h"
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);
}