| 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 #ifndef ASH_METRICS_USER_METRICS_RECORDER_H_ | 5 #ifndef ASH_METRICS_USER_METRICS_RECORDER_H_ |
| 6 #define ASH_METRICS_USER_METRICS_RECORDER_H_ | 6 #define ASH_METRICS_USER_METRICS_RECORDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 UMA_TRAY_SHUT_DOWN, | 120 UMA_TRAY_SHUT_DOWN, |
| 121 UMA_WINDOW_APP_CLOSE_BUTTON_CLICK, | 121 UMA_WINDOW_APP_CLOSE_BUTTON_CLICK, |
| 122 UMA_WINDOW_CLOSE_BUTTON_CLICK, | 122 UMA_WINDOW_CLOSE_BUTTON_CLICK, |
| 123 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_EXIT_FULLSCREEN, | 123 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_EXIT_FULLSCREEN, |
| 124 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_MAXIMIZE, | 124 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_MAXIMIZE, |
| 125 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_MINIMIZE, | 125 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_MINIMIZE, |
| 126 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_RESTORE, | 126 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_RESTORE, |
| 127 UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_LEFT, | 127 UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_LEFT, |
| 128 UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_RIGHT, | 128 UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_RIGHT, |
| 129 | 129 |
| 130 // Thumbnail sized overview of windows triggered by pressing the overview key. | |
| 131 UMA_WINDOW_OVERVIEW, | |
| 132 | |
| 133 // User selected a window in overview mode different from the | |
| 134 // previously-active window. | |
| 135 UMA_WINDOW_OVERVIEW_ACTIVE_WINDOW_CHANGED, | |
| 136 | |
| 137 // Selecting a window in overview mode by pressing the enter key. | |
| 138 UMA_WINDOW_OVERVIEW_ENTER_KEY, | |
| 139 | |
| 140 // Window selection started by beginning an alt+tab cycle. This does not count | 130 // Window selection started by beginning an alt+tab cycle. This does not count |
| 141 // each step through an alt+tab cycle. | 131 // each step through an alt+tab cycle. |
| 142 UMA_WINDOW_CYCLE, | 132 UMA_WINDOW_CYCLE, |
| 143 }; | 133 }; |
| 144 | 134 |
| 145 // User Metrics Recorder provides a repeating callback (RecordPeriodicMetrics) | 135 // User Metrics Recorder provides a repeating callback (RecordPeriodicMetrics) |
| 146 // on a timer to allow recording of state data over time to the UMA records. | 136 // on a timer to allow recording of state data over time to the UMA records. |
| 147 // Any additional states (in ash) that require monitoring can be added to | 137 // Any additional states (in ash) that require monitoring can be added to |
| 148 // this class. As well calls to record on action metrics | 138 // this class. As well calls to record on action metrics |
| 149 // (RecordUserMetricsAction) are passed through the UserMetricsRecorder. | 139 // (RecordUserMetricsAction) are passed through the UserMetricsRecorder. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 // clicks or touchscreen taps. | 189 // clicks or touchscreen taps. |
| 200 std::unique_ptr<DesktopTaskSwitchMetricRecorder> | 190 std::unique_ptr<DesktopTaskSwitchMetricRecorder> |
| 201 desktop_task_switch_metric_recorder_; | 191 desktop_task_switch_metric_recorder_; |
| 202 | 192 |
| 203 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorder); | 193 DISALLOW_COPY_AND_ASSIGN(UserMetricsRecorder); |
| 204 }; | 194 }; |
| 205 | 195 |
| 206 } // namespace ash | 196 } // namespace ash |
| 207 | 197 |
| 208 #endif // ASH_METRICS_USER_METRICS_RECORDER_H_ | 198 #endif // ASH_METRICS_USER_METRICS_RECORDER_H_ |
| OLD | NEW |