| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef UI_EVENTS_GESTURE_DETECTION_GESTURE_TOUCH_UMA_HISTOGRAM_H_ | 5 #ifndef UI_EVENTS_GESTURE_DETECTION_GESTURE_TOUCH_UMA_HISTOGRAM_H_ |
| 6 #define UI_EVENTS_GESTURE_DETECTION_GESTURE_TOUCH_UMA_HISTOGRAM_H_ | 6 #define UI_EVENTS_GESTURE_DETECTION_GESTURE_TOUCH_UMA_HISTOGRAM_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "ui/events/gesture_detection/gesture_detection_export.h" | 9 #include "ui/events/gesture_detection/gesture_detection_export.h" |
| 10 #include "ui/events/gesture_detection/gesture_event_data.h" | 10 #include "ui/events/gesture_detection/gesture_event_data.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 UMA_ET_GESTURE_SWIPE_3 = 24, // Swipe with 3 fingers | 42 UMA_ET_GESTURE_SWIPE_3 = 24, // Swipe with 3 fingers |
| 43 UMA_ET_GESTURE_SWIPE_4P = 25, // Swipe with 4+ fingers | 43 UMA_ET_GESTURE_SWIPE_4P = 25, // Swipe with 4+ fingers |
| 44 UMA_ET_GESTURE_SCROLL_UPDATE_2 = 26, | 44 UMA_ET_GESTURE_SCROLL_UPDATE_2 = 26, |
| 45 UMA_ET_GESTURE_SCROLL_UPDATE_3 = 27, | 45 UMA_ET_GESTURE_SCROLL_UPDATE_3 = 27, |
| 46 UMA_ET_GESTURE_SCROLL_UPDATE_4P = 28, | 46 UMA_ET_GESTURE_SCROLL_UPDATE_4P = 28, |
| 47 UMA_ET_GESTURE_PINCH_UPDATE_3 = 29, | 47 UMA_ET_GESTURE_PINCH_UPDATE_3 = 29, |
| 48 UMA_ET_GESTURE_PINCH_UPDATE_4P = 30, | 48 UMA_ET_GESTURE_PINCH_UPDATE_4P = 30, |
| 49 UMA_ET_GESTURE_LONG_TAP = 31, | 49 UMA_ET_GESTURE_LONG_TAP = 31, |
| 50 UMA_ET_GESTURE_SHOW_PRESS = 32, | 50 UMA_ET_GESTURE_SHOW_PRESS = 32, |
| 51 UMA_ET_GESTURE_TAP_CANCEL = 33, | 51 UMA_ET_GESTURE_TAP_CANCEL = 33, |
| 52 UMA_ET_GESTURE_WIN8_EDGE_SWIPE = 34, | 52 UMA_ET_GESTURE_WIN8_EDGE_SWIPE = 34, // Deprecated. Do not remove. |
| 53 UMA_ET_GESTURE_SWIPE_1 = 35, // Swipe with 1 finger | 53 UMA_ET_GESTURE_SWIPE_1 = 35, // Swipe with 1 finger |
| 54 UMA_ET_GESTURE_TAP_UNCONFIRMED = 36, | 54 UMA_ET_GESTURE_TAP_UNCONFIRMED = 36, |
| 55 // NOTE: Add new event types only immediately above this line. Make sure to | 55 // NOTE: Add new event types only immediately above this line. Make sure to |
| 56 // update the UIEventType enum in tools/metrics/histograms/histograms.xml | 56 // update the UIEventType enum in tools/metrics/histograms/histograms.xml |
| 57 // accordingly. | 57 // accordingly. |
| 58 UMA_ET_COUNT | 58 UMA_ET_COUNT |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 // Records some touch/gesture event specific details (e.g. what gestures are | 61 // Records some touch/gesture event specific details (e.g. what gestures are |
| 62 // targetted to which components etc.) | 62 // targetted to which components etc.) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 77 gfx::Point start_touch_position_; | 77 gfx::Point start_touch_position_; |
| 78 // The maximum distance the first touch point travelled from its starting | 78 // The maximum distance the first touch point travelled from its starting |
| 79 // location in pixels. | 79 // location in pixels. |
| 80 float max_distance_from_start_squared_; | 80 float max_distance_from_start_squared_; |
| 81 bool is_single_finger_; | 81 bool is_single_finger_; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace ui | 84 } // namespace ui |
| 85 | 85 |
| 86 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_TOUCH_UMA_HISTOGRAM_H_ | 86 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_TOUCH_UMA_HISTOGRAM_H_ |
| OLD | NEW |