| 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/shelf/shelf_layout_manager.h" | 7 #include "ash/shelf/shelf_layout_manager.h" |
| 8 #include "ash/shelf/shelf_view.h" | 8 #include "ash/shelf/shelf_view.h" |
| 9 #include "ash/shelf/shelf_widget.h" | 9 #include "ash/shelf/shelf_widget.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 case ash::UMA_LAUNCHER_CLICK_ON_APP: | 72 case ash::UMA_LAUNCHER_CLICK_ON_APP: |
| 73 content::RecordAction(content::UserMetricsAction("Launcher_ClickOnApp")); | 73 content::RecordAction(content::UserMetricsAction("Launcher_ClickOnApp")); |
| 74 break; | 74 break; |
| 75 case ash::UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON: | 75 case ash::UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON: |
| 76 content::RecordAction( | 76 content::RecordAction( |
| 77 content::UserMetricsAction("Launcher_ClickOnApplistButton")); | 77 content::UserMetricsAction("Launcher_ClickOnApplistButton")); |
| 78 break; | 78 break; |
| 79 case ash::UMA_MOUSE_DOWN: | 79 case ash::UMA_MOUSE_DOWN: |
| 80 content::RecordAction(content::UserMetricsAction("Mouse_Down")); | 80 content::RecordAction(content::UserMetricsAction("Mouse_Down")); |
| 81 break; | 81 break; |
| 82 case ash::UMA_PANEL_MINIMIZE_CAPTION_CLICK: |
| 83 content::RecordAction( |
| 84 content::UserMetricsAction("Panel_Minimize_Caption_Click")); |
| 85 break; |
| 86 case ash::UMA_PANEL_MINIMIZE_CAPTION_GESTURE: |
| 87 content::RecordAction( |
| 88 content::UserMetricsAction("Panel_Minimize_Caption_Gesture")); |
| 89 break; |
| 82 case ash::UMA_SHELF_ALIGNMENT_SET_BOTTOM: | 90 case ash::UMA_SHELF_ALIGNMENT_SET_BOTTOM: |
| 83 content::RecordAction( | 91 content::RecordAction( |
| 84 content::UserMetricsAction("Shelf_AlignmentSetBottom")); | 92 content::UserMetricsAction("Shelf_AlignmentSetBottom")); |
| 85 break; | 93 break; |
| 86 case ash::UMA_SHELF_ALIGNMENT_SET_LEFT: | 94 case ash::UMA_SHELF_ALIGNMENT_SET_LEFT: |
| 87 content::RecordAction( | 95 content::RecordAction( |
| 88 content::UserMetricsAction("Shelf_AlignmentSetLeft")); | 96 content::UserMetricsAction("Shelf_AlignmentSetLeft")); |
| 89 break; | 97 break; |
| 90 case ash::UMA_SHELF_ALIGNMENT_SET_RIGHT: | 98 case ash::UMA_SHELF_ALIGNMENT_SET_RIGHT: |
| 91 content::RecordAction( | 99 content::RecordAction( |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_OTHER; | 414 active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_OTHER; |
| 407 break; | 415 break; |
| 408 } | 416 } |
| 409 } | 417 } |
| 410 UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime", | 418 UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime", |
| 411 active_window_show_type, | 419 active_window_show_type, |
| 412 ACTIVE_WINDOW_SHOW_TYPE_COUNT); | 420 ACTIVE_WINDOW_SHOW_TYPE_COUNT); |
| 413 } | 421 } |
| 414 | 422 |
| 415 } // namespace ash | 423 } // namespace ash |
| OLD | NEW |