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

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

Issue 2838903002: Add accessibility related notification to notification center (Closed)
Patch Set: 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
« no previous file with comments | « ash/metrics/user_metrics_action.h ('k') | ash/resources/vector_icons/BUILD.gn » ('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/shell_window_ids.h" 10 #include "ash/public/cpp/shell_window_ids.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 break; 327 break;
328 case UMA_STATUS_AREA_CONNECT_TO_VPN: 328 case UMA_STATUS_AREA_CONNECT_TO_VPN:
329 RecordAction(UserMetricsAction("StatusArea_VPN_ConnectToNetwork")); 329 RecordAction(UserMetricsAction("StatusArea_VPN_ConnectToNetwork"));
330 break; 330 break;
331 case UMA_STATUS_AREA_CHANGED_VOLUME_MENU: 331 case UMA_STATUS_AREA_CHANGED_VOLUME_MENU:
332 RecordAction(UserMetricsAction("StatusArea_Volume_ChangedMenu")); 332 RecordAction(UserMetricsAction("StatusArea_Volume_ChangedMenu"));
333 break; 333 break;
334 case UMA_STATUS_AREA_CHANGED_VOLUME_POPUP: 334 case UMA_STATUS_AREA_CHANGED_VOLUME_POPUP:
335 RecordAction(UserMetricsAction("StatusArea_Volume_ChangedPopup")); 335 RecordAction(UserMetricsAction("StatusArea_Volume_ChangedPopup"));
336 break; 336 break;
337 case UMA_STATUS_AREA_DETAILED_ACCESSABILITY: 337 case UMA_STATUS_AREA_DETAILED_ACCESSIBILITY:
338 RecordAction(UserMetricsAction("StatusArea_Accessability_DetailedView")); 338 RecordAction(UserMetricsAction("StatusArea_Accessability_DetailedView"));
339 break; 339 break;
340 case UMA_STATUS_AREA_DETAILED_AUDIO_VIEW: 340 case UMA_STATUS_AREA_DETAILED_AUDIO_VIEW:
341 RecordAction(UserMetricsAction("StatusArea_Audio_Detailed")); 341 RecordAction(UserMetricsAction("StatusArea_Audio_Detailed"));
342 break; 342 break;
343 case UMA_STATUS_AREA_DETAILED_BLUETOOTH_VIEW: 343 case UMA_STATUS_AREA_DETAILED_BLUETOOTH_VIEW:
344 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Detailed")); 344 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Detailed"));
345 break; 345 break;
346 case UMA_STATUS_AREA_DETAILED_BRIGHTNESS_VIEW: 346 case UMA_STATUS_AREA_DETAILED_BRIGHTNESS_VIEW:
347 RecordAction(UserMetricsAction("StatusArea_Brightness_Detailed")); 347 RecordAction(UserMetricsAction("StatusArea_Brightness_Detailed"));
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive(); 657 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive();
658 } 658 }
659 659
660 void UserMetricsRecorder::StartTimer() { 660 void UserMetricsRecorder::StartTimer() {
661 timer_.Start(FROM_HERE, 661 timer_.Start(FROM_HERE,
662 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), 662 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds),
663 this, &UserMetricsRecorder::RecordPeriodicMetrics); 663 this, &UserMetricsRecorder::RecordPeriodicMetrics);
664 } 664 }
665 665
666 } // namespace ash 666 } // namespace ash
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_action.h ('k') | ash/resources/vector_icons/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698