OLD | NEW |
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/chromeos/device_uma.h" | 5 #include "chrome/browser/chromeos/device_uma.h" |
6 | 6 |
7 #include <X11/extensions/XInput.h> | 7 #include <X11/extensions/XInput.h> |
8 #include <X11/extensions/XInput2.h> | 8 #include <X11/extensions/XInput2.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "ui/events/devices/x11/device_data_manager_x11.h" |
13 #include "ui/events/event_constants.h" | 14 #include "ui/events/event_constants.h" |
14 #include "ui/events/event_utils.h" | 15 #include "ui/events/event_utils.h" |
15 #include "ui/events/platform/platform_event_source.h" | 16 #include "ui/events/platform/platform_event_source.h" |
16 #include "ui/events/x/device_data_manager_x11.h" | |
17 | 17 |
18 // Enum type for CrOS gesture lib UMA | 18 // Enum type for CrOS gesture lib UMA |
19 enum UMACrosGestureMetricsType{ | 19 enum UMACrosGestureMetricsType{ |
20 // To give an estimated number of all interested events. | 20 // To give an estimated number of all interested events. |
21 UMA_CROS_GESTURE_METRICS_ALL_EVENTS, | 21 UMA_CROS_GESTURE_METRICS_ALL_EVENTS, |
22 UMA_CROS_GESTURE_METRICS_NOISY_GROUND, | 22 UMA_CROS_GESTURE_METRICS_NOISY_GROUND, |
23 // NOTE: Add states only immediately above this line. Make sure to | 23 // NOTE: Add states only immediately above this line. Make sure to |
24 // update the enum list in tools/metrics/histograms/histograms.xml | 24 // update the enum list in tools/metrics/histograms/histograms.xml |
25 // accordingly. | 25 // accordingly. |
26 UMA_CROS_GESTURE_METRICS_COUNT | 26 UMA_CROS_GESTURE_METRICS_COUNT |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 } | 93 } |
94 break; | 94 break; |
95 } | 95 } |
96 default: | 96 default: |
97 break; | 97 break; |
98 } | 98 } |
99 return; | 99 return; |
100 } | 100 } |
101 | 101 |
102 } // namespace chromeos | 102 } // namespace chromeos |
OLD | NEW |