Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: ash/metrics/user_metrics_recorder.cc

Issue 2946543002: Cros Tablet: Add UMA stats for the user close actions in tablet mode. (Closed)
Patch Set: Address asvitkine@'s comments. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/metrics/user_metrics_action.h ('k') | ash/wm/overview/window_selector_item.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/metrics/desktop_task_switch_metric_recorder.h" 7 #include "ash/metrics/desktop_task_switch_metric_recorder.h"
8 #include "ash/metrics/pointer_metrics_recorder.h" 8 #include "ash/metrics/pointer_metrics_recorder.h"
9 #include "ash/public/cpp/shelf_item.h" 9 #include "ash/public/cpp/shelf_item.h"
10 #include "ash/public/cpp/shelf_model.h" 10 #include "ash/public/cpp/shelf_model.h"
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 break; 514 break;
515 case UMA_STATUS_AREA_VPN_ADD_THIRD_PARTY_CLICKED: 515 case UMA_STATUS_AREA_VPN_ADD_THIRD_PARTY_CLICKED:
516 RecordAction(UserMetricsAction("StatusArea_VPN_AddThirdParty")); 516 RecordAction(UserMetricsAction("StatusArea_VPN_AddThirdParty"));
517 break; 517 break;
518 case UMA_STATUS_AREA_VPN_DISCONNECT_CLICKED: 518 case UMA_STATUS_AREA_VPN_DISCONNECT_CLICKED:
519 RecordAction(UserMetricsAction("StatusArea_VPN_Disconnect")); 519 RecordAction(UserMetricsAction("StatusArea_VPN_Disconnect"));
520 break; 520 break;
521 case UMA_STATUS_AREA_VPN_SETTINGS_OPENED: 521 case UMA_STATUS_AREA_VPN_SETTINGS_OPENED:
522 RecordAction(UserMetricsAction("StatusArea_VPN_Settings")); 522 RecordAction(UserMetricsAction("StatusArea_VPN_Settings"));
523 break; 523 break;
524 case UMA_TABLET_WINDOW_CLOSE_THROUGH_CONTXT_MENU:
525 RecordAction(UserMetricsAction("Tablet_WindowCloseFromContextMenu"));
526 break;
527 case UMA_TABLET_WINDOW_CLOSE_THROUGH_CAPTION_BUTTON:
528 RecordAction(UserMetricsAction("Tablet_WindowCloseFromCaptionButton"));
529 break;
530 case UMA_TABLET_WINDOW_CLOSE_THROUGH_OVERVIEW_CLOSE_BUTTON:
531 RecordAction(UserMetricsAction("Tablet_WindowCloseFromOverviewButton"));
532 break;
524 case UMA_TOGGLE_MAXIMIZE_CAPTION_CLICK: 533 case UMA_TOGGLE_MAXIMIZE_CAPTION_CLICK:
525 RecordAction(UserMetricsAction("Caption_ClickTogglesMaximize")); 534 RecordAction(UserMetricsAction("Caption_ClickTogglesMaximize"));
526 break; 535 break;
527 case UMA_TOGGLE_MAXIMIZE_CAPTION_GESTURE: 536 case UMA_TOGGLE_MAXIMIZE_CAPTION_GESTURE:
528 RecordAction(UserMetricsAction("Caption_GestureTogglesMaximize")); 537 RecordAction(UserMetricsAction("Caption_GestureTogglesMaximize"));
529 break; 538 break;
530 case UMA_TOGGLE_SINGLE_AXIS_MAXIMIZE_BORDER_CLICK: 539 case UMA_TOGGLE_SINGLE_AXIS_MAXIMIZE_BORDER_CLICK:
531 RecordAction( 540 RecordAction(
532 UserMetricsAction("WindowBorder_ClickTogglesSingleAxisMaximize")); 541 UserMetricsAction("WindowBorder_ClickTogglesSingleAxisMaximize"));
533 break; 542 break;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive(); 663 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive();
655 } 664 }
656 665
657 void UserMetricsRecorder::StartTimer() { 666 void UserMetricsRecorder::StartTimer() {
658 timer_.Start(FROM_HERE, 667 timer_.Start(FROM_HERE,
659 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), 668 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds),
660 this, &UserMetricsRecorder::RecordPeriodicMetrics); 669 this, &UserMetricsRecorder::RecordPeriodicMetrics);
661 } 670 }
662 671
663 } // namespace ash 672 } // namespace ash
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_action.h ('k') | ash/wm/overview/window_selector_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698