| 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_USER_METRICS_RECORDER_H_ | 5 #ifndef ASH_USER_METRICS_RECORDER_H_ |
| 6 #define ASH_USER_METRICS_RECORDER_H_ | 6 #define ASH_USER_METRICS_RECORDER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 UMA_TOUCHSCREEN_TAP_DOWN, | 90 UMA_TOUCHSCREEN_TAP_DOWN, |
| 91 UMA_TRAY_HELP, | 91 UMA_TRAY_HELP, |
| 92 UMA_TRAY_LOCK_SCREEN, | 92 UMA_TRAY_LOCK_SCREEN, |
| 93 UMA_TRAY_SHUT_DOWN, | 93 UMA_TRAY_SHUT_DOWN, |
| 94 UMA_WINDOW_APP_CLOSE_BUTTON_CLICK, | 94 UMA_WINDOW_APP_CLOSE_BUTTON_CLICK, |
| 95 UMA_WINDOW_CLOSE_BUTTON_CLICK, | 95 UMA_WINDOW_CLOSE_BUTTON_CLICK, |
| 96 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_EXIT_FULLSCREEN, | 96 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_EXIT_FULLSCREEN, |
| 97 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_MAXIMIZE, | 97 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_MAXIMIZE, |
| 98 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_MINIMIZE, | 98 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_MINIMIZE, |
| 99 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_RESTORE, | 99 UMA_WINDOW_MAXIMIZE_BUTTON_CLICK_RESTORE, |
| 100 UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE, | |
| 101 UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_LEFT, | 100 UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_LEFT, |
| 102 UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_RIGHT, | 101 UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_RIGHT, |
| 103 UMA_WINDOW_MAXIMIZE_BUTTON_MINIMIZE, | |
| 104 UMA_WINDOW_MAXIMIZE_BUTTON_RESTORE, | |
| 105 UMA_WINDOW_MAXIMIZE_BUTTON_SHOW_BUBBLE, | |
| 106 | 102 |
| 107 // Thumbnail sized overview of windows triggered. This is a subset of | 103 // Thumbnail sized overview of windows triggered. This is a subset of |
| 108 // UMA_WINDOW_SELECTION triggered by lingering during alt+tab cycles or | 104 // UMA_WINDOW_SELECTION triggered by lingering during alt+tab cycles or |
| 109 // pressing the overview key. | 105 // pressing the overview key. |
| 110 UMA_WINDOW_OVERVIEW, | 106 UMA_WINDOW_OVERVIEW, |
| 111 | 107 |
| 112 // Window selection started by beginning an alt+tab cycle or pressing the | 108 // Window selection started by beginning an alt+tab cycle or pressing the |
| 113 // overview key. This does not count each step through an alt+tab cycle. | 109 // overview key. This does not count each step through an alt+tab cycle. |
| 114 UMA_WINDOW_SELECTION, | 110 UMA_WINDOW_SELECTION, |
| 115 }; | 111 }; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 127 void RecordUserMetricsAction(ash::UserMetricsAction action); | 123 void RecordUserMetricsAction(ash::UserMetricsAction action); |
| 128 private: | 124 private: |
| 129 void RecordPeriodicMetrics(); | 125 void RecordPeriodicMetrics(); |
| 130 | 126 |
| 131 base::RepeatingTimer<UserMetricsRecorder> timer_; | 127 base::RepeatingTimer<UserMetricsRecorder> timer_; |
| 132 }; | 128 }; |
| 133 | 129 |
| 134 } // namespace ash | 130 } // namespace ash |
| 135 | 131 |
| 136 #endif // ASH_USER_METRICS_RECORDER_H_ | 132 #endif // ASH_USER_METRICS_RECORDER_H_ |
| OLD | NEW |