| Index: chrome/browser/ui/views/touch_uma/touch_uma_ash.cc
|
| diff --git a/chrome/browser/ui/views/touch_uma/touch_uma_ash.cc b/chrome/browser/ui/views/touch_uma/touch_uma_ash.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..945d8e91bcd7346fa8d322b8ff5875c9436736b7
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/touch_uma/touch_uma_ash.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 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);
|
| +}
|
|
|