Chromium Code Reviews| Index: chrome/browser/ui/views/touch_uma/touch_uma.h |
| diff --git a/chrome/browser/ui/views/touch_uma/touch_uma.h b/chrome/browser/ui/views/touch_uma/touch_uma.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..75dabb04d28996ff5ac377ac91a38a1f45fcdee1 |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/touch_uma/touch_uma.h |
| @@ -0,0 +1,24 @@ |
| +// 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. |
| + |
| +#ifndef CHROME_BROWSER_UI_VIEWS_TOUCH_UMA_TOUCH_UMA_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_TOUCH_UMA_TOUCH_UMA_H_ |
| + |
| +class TouchUMA { |
| + public: |
| + enum GestureActionType { |
| + GESTURE_TABSWITCH_TAP = 256, |
| + GESTURE_TABNOSWITCH_TAP, |
| + GESTURE_TABCLOSE_TAP, |
| + GESTURE_NEWTAB_TAP, |
| + GESTURE_ROOTVIEWTOP_TAP, |
| + // NOTE: Add new action types only immediately above this line. Also, |
| + // make sure the enum list in tools/histogram/histograms.xml is |
| + // updated with any change in here. |
| + }; |
| + |
| + static void RecordGestureAction(GestureActionType action); |
| +}; |
|
tdanderson
2013/06/27 22:39:33
Note I was unable to add in
private:
DISALLOW_CO
sky
2013/06/27 23:09:35
You sure you typed in right or forgot the include?
tdanderson
2013/06/28 18:45:16
Ah, forgot the include. Done.
|
| + |
| +#endif // CHROME_BROWSER_UI_VIEWS_TOUCH_UMA_TOUCH_UMA_H_ |