Chromium Code Reviews| 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 "ash/metrics/user_metrics_recorder.h" | 5 #include "ash/metrics/user_metrics_recorder.h" |
| 6 | 6 |
| 7 #include "ash/session/session_state_delegate.h" | 7 #include "ash/session/session_state_delegate.h" |
| 8 #include "ash/shelf/shelf_delegate.h" | 8 #include "ash/shelf/shelf_delegate.h" |
| 9 #include "ash/shelf/shelf_item_types.h" | 9 #include "ash/shelf/shelf_item_types.h" |
| 10 #include "ash/shelf/shelf_layout_manager.h" | 10 #include "ash/shelf/shelf_layout_manager.h" |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 287 base::RecordAction(base::UserMetricsAction("Mouse_Down")); | 287 base::RecordAction(base::UserMetricsAction("Mouse_Down")); |
| 288 break; | 288 break; |
| 289 case ash::UMA_PANEL_MINIMIZE_CAPTION_CLICK: | 289 case ash::UMA_PANEL_MINIMIZE_CAPTION_CLICK: |
| 290 base::RecordAction( | 290 base::RecordAction( |
| 291 base::UserMetricsAction("Panel_Minimize_Caption_Click")); | 291 base::UserMetricsAction("Panel_Minimize_Caption_Click")); |
| 292 break; | 292 break; |
| 293 case ash::UMA_PANEL_MINIMIZE_CAPTION_GESTURE: | 293 case ash::UMA_PANEL_MINIMIZE_CAPTION_GESTURE: |
| 294 base::RecordAction( | 294 base::RecordAction( |
| 295 base::UserMetricsAction("Panel_Minimize_Caption_Gesture")); | 295 base::UserMetricsAction("Panel_Minimize_Caption_Gesture")); |
| 296 break; | 296 break; |
| 297 case ash::UMA_SCREEN_EVENT_SWITCH_TASK: | |
| 298 base::RecordAction(base::UserMetricsAction("ScreenEvent_SwitchTask")); | |
|
tdanderson
2015/05/26 21:13:52
don't forget to update actions.xml
bruthig
2015/06/03 21:59:31
Done.
| |
| 299 task_switch_metrics_recorder_.OnTaskSwitch( | |
| 300 TaskSwitchMetricsRecorder::kScreen); | |
| 301 break; | |
| 297 case ash::UMA_SHELF_ALIGNMENT_SET_BOTTOM: | 302 case ash::UMA_SHELF_ALIGNMENT_SET_BOTTOM: |
| 298 base::RecordAction( | 303 base::RecordAction( |
| 299 base::UserMetricsAction("Shelf_AlignmentSetBottom")); | 304 base::UserMetricsAction("Shelf_AlignmentSetBottom")); |
| 300 break; | 305 break; |
| 301 case ash::UMA_SHELF_ALIGNMENT_SET_LEFT: | 306 case ash::UMA_SHELF_ALIGNMENT_SET_LEFT: |
| 302 base::RecordAction( | 307 base::RecordAction( |
| 303 base::UserMetricsAction("Shelf_AlignmentSetLeft")); | 308 base::UserMetricsAction("Shelf_AlignmentSetLeft")); |
| 304 break; | 309 break; |
| 305 case ash::UMA_SHELF_ALIGNMENT_SET_RIGHT: | 310 case ash::UMA_SHELF_ALIGNMENT_SET_RIGHT: |
| 306 base::RecordAction( | 311 base::RecordAction( |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 633 return IsUserActive() && !IsKioskModeActive(); | 638 return IsUserActive() && !IsKioskModeActive(); |
| 634 } | 639 } |
| 635 | 640 |
| 636 void UserMetricsRecorder::StartTimer() { | 641 void UserMetricsRecorder::StartTimer() { |
| 637 timer_.Start(FROM_HERE, | 642 timer_.Start(FROM_HERE, |
| 638 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), | 643 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), |
| 639 this, &UserMetricsRecorder::RecordPeriodicMetrics); | 644 this, &UserMetricsRecorder::RecordPeriodicMetrics); |
| 640 } | 645 } |
| 641 | 646 |
| 642 } // namespace ash | 647 } // namespace ash |
| OLD | NEW |