| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 298           base::UserMetricsAction("StatusArea_Network_ConnectionDetails")); | 298           base::UserMetricsAction("StatusArea_Network_ConnectionDetails")); | 
| 299       break; | 299       break; | 
| 300     case ash::UMA_STATUS_AREA_SHOW_VPN_CONNECTION_DETAILS: | 300     case ash::UMA_STATUS_AREA_SHOW_VPN_CONNECTION_DETAILS: | 
| 301       base::RecordAction( | 301       base::RecordAction( | 
| 302           base::UserMetricsAction("StatusArea_VPN_ConnectionDetails")); | 302           base::UserMetricsAction("StatusArea_VPN_ConnectionDetails")); | 
| 303       break; | 303       break; | 
| 304     case ash::UMA_STATUS_AREA_SIGN_OUT: | 304     case ash::UMA_STATUS_AREA_SIGN_OUT: | 
| 305       base::RecordAction( | 305       base::RecordAction( | 
| 306           base::UserMetricsAction("StatusArea_SignOut")); | 306           base::UserMetricsAction("StatusArea_SignOut")); | 
| 307       break; | 307       break; | 
| 308     case ash::UMA_STATUS_AREA_VPN_JOIN_OTHER_CLICKED: | 308     case ash::UMA_STATUS_AREA_VPN_ADD_BUILT_IN_CLICKED: | 
|  | 309       base::RecordAction(base::UserMetricsAction("StatusArea_VPN_AddBuiltIn")); | 
|  | 310       break; | 
|  | 311     case ash::UMA_STATUS_AREA_VPN_ADD_THIRD_PARTY_CLICKED: | 
| 309       base::RecordAction( | 312       base::RecordAction( | 
| 310           base::UserMetricsAction("StatusArea_VPN_JoinOther")); | 313           base::UserMetricsAction("StatusArea_VPN_AddThirdParty")); | 
|  | 314       break; | 
|  | 315     case ash::UMA_STATUS_AREA_VPN_DISCONNECT_CLICKED: | 
|  | 316       base::RecordAction(base::UserMetricsAction("StatusArea_VPN_Disconnect")); | 
| 311       break; | 317       break; | 
| 312     case ash::UMA_STATUS_AREA_VPN_SETTINGS_CLICKED: | 318     case ash::UMA_STATUS_AREA_VPN_SETTINGS_CLICKED: | 
| 313       base::RecordAction( | 319       base::RecordAction( | 
| 314           base::UserMetricsAction("StatusArea_VPN_Settings")); | 320           base::UserMetricsAction("StatusArea_VPN_Settings")); | 
| 315       break; | 321       break; | 
| 316     case ash::UMA_TOGGLE_MAXIMIZE_CAPTION_CLICK: | 322     case ash::UMA_TOGGLE_MAXIMIZE_CAPTION_CLICK: | 
| 317       base::RecordAction( | 323       base::RecordAction( | 
| 318           base::UserMetricsAction("Caption_ClickTogglesMaximize")); | 324           base::UserMetricsAction("Caption_ClickTogglesMaximize")); | 
| 319       break; | 325       break; | 
| 320     case ash::UMA_TOGGLE_MAXIMIZE_CAPTION_GESTURE: | 326     case ash::UMA_TOGGLE_MAXIMIZE_CAPTION_GESTURE: | 
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 434         active_window_state_type = ACTIVE_WINDOW_STATE_TYPE_OTHER; | 440         active_window_state_type = ACTIVE_WINDOW_STATE_TYPE_OTHER; | 
| 435         break; | 441         break; | 
| 436     } | 442     } | 
| 437   } | 443   } | 
| 438   UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime", | 444   UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime", | 
| 439                             active_window_state_type, | 445                             active_window_state_type, | 
| 440                             ACTIVE_WINDOW_STATE_TYPE_COUNT); | 446                             ACTIVE_WINDOW_STATE_TYPE_COUNT); | 
| 441 } | 447 } | 
| 442 | 448 | 
| 443 }  // namespace ash | 449 }  // namespace ash | 
| OLD | NEW | 
|---|