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

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

Issue 2838903002: Add accessibility related notification to notification center (Closed)
Patch Set: fix nits Created 3 years, 7 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
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/shell_window_ids.h" 10 #include "ash/public/cpp/shell_window_ids.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 break; 328 break;
329 case UMA_STATUS_AREA_CONNECT_TO_VPN: 329 case UMA_STATUS_AREA_CONNECT_TO_VPN:
330 RecordAction(UserMetricsAction("StatusArea_VPN_ConnectToNetwork")); 330 RecordAction(UserMetricsAction("StatusArea_VPN_ConnectToNetwork"));
331 break; 331 break;
332 case UMA_STATUS_AREA_CHANGED_VOLUME_MENU: 332 case UMA_STATUS_AREA_CHANGED_VOLUME_MENU:
333 RecordAction(UserMetricsAction("StatusArea_Volume_ChangedMenu")); 333 RecordAction(UserMetricsAction("StatusArea_Volume_ChangedMenu"));
334 break; 334 break;
335 case UMA_STATUS_AREA_CHANGED_VOLUME_POPUP: 335 case UMA_STATUS_AREA_CHANGED_VOLUME_POPUP:
336 RecordAction(UserMetricsAction("StatusArea_Volume_ChangedPopup")); 336 RecordAction(UserMetricsAction("StatusArea_Volume_ChangedPopup"));
337 break; 337 break;
338 case UMA_STATUS_AREA_DETAILED_ACCESSABILITY: 338 case UMA_STATUS_AREA_DETAILED_ACCESSIBILITY:
339 RecordAction(UserMetricsAction("StatusArea_Accessability_DetailedView")); 339 RecordAction(UserMetricsAction("StatusArea_Accessability_DetailedView"));
340 break; 340 break;
341 case UMA_STATUS_AREA_DETAILED_AUDIO_VIEW: 341 case UMA_STATUS_AREA_DETAILED_AUDIO_VIEW:
342 RecordAction(UserMetricsAction("StatusArea_Audio_Detailed")); 342 RecordAction(UserMetricsAction("StatusArea_Audio_Detailed"));
343 break; 343 break;
344 case UMA_STATUS_AREA_DETAILED_BLUETOOTH_VIEW: 344 case UMA_STATUS_AREA_DETAILED_BLUETOOTH_VIEW:
345 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Detailed")); 345 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Detailed"));
346 break; 346 break;
347 case UMA_STATUS_AREA_DETAILED_BRIGHTNESS_VIEW: 347 case UMA_STATUS_AREA_DETAILED_BRIGHTNESS_VIEW:
348 RecordAction(UserMetricsAction("StatusArea_Brightness_Detailed")); 348 RecordAction(UserMetricsAction("StatusArea_Brightness_Detailed"));
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive(); 655 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive();
656 } 656 }
657 657
658 void UserMetricsRecorder::StartTimer() { 658 void UserMetricsRecorder::StartTimer() {
659 timer_.Start(FROM_HERE, 659 timer_.Start(FROM_HERE,
660 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), 660 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds),
661 this, &UserMetricsRecorder::RecordPeriodicMetrics); 661 this, &UserMetricsRecorder::RecordPeriodicMetrics);
662 } 662 }
663 663
664 } // namespace ash 664 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698