Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: chrome/browser/ui/views/touch_uma/touch_uma_ash.cc

Issue 2223553003: Adds WmShell::RecordGestureAction() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gyp Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wm/workspace/workspace_event_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698