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

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

Issue 1138253002: Add user action for changing the active window in Ash overview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests added Created 5 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_recorder.h ('k') | ash/wm/overview/window_grid.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/session/session_state_delegate.h" 7 #include "ash/session/session_state_delegate.h"
8 #include "ash/shelf/shelf_delegate.h" 8 #include "ash/shelf/shelf_delegate.h"
9 #include "ash/shelf/shelf_item_types.h" 9 #include "ash/shelf/shelf_item_types.h"
10 #include "ash/shelf/shelf_layout_manager.h" 10 #include "ash/shelf/shelf_layout_manager.h"
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 case ash::UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_LEFT: 570 case ash::UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_LEFT:
571 base::RecordAction(base::UserMetricsAction("MaxButton_MaxLeft")); 571 base::RecordAction(base::UserMetricsAction("MaxButton_MaxLeft"));
572 break; 572 break;
573 case ash::UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_RIGHT: 573 case ash::UMA_WINDOW_MAXIMIZE_BUTTON_MAXIMIZE_RIGHT:
574 base::RecordAction(base::UserMetricsAction("MaxButton_MaxRight")); 574 base::RecordAction(base::UserMetricsAction("MaxButton_MaxRight"));
575 break; 575 break;
576 case ash::UMA_WINDOW_OVERVIEW: 576 case ash::UMA_WINDOW_OVERVIEW:
577 base::RecordAction( 577 base::RecordAction(
578 base::UserMetricsAction("WindowSelector_Overview")); 578 base::UserMetricsAction("WindowSelector_Overview"));
579 break; 579 break;
580 case ash::UMA_WINDOW_OVERVIEW_ACTIVE_WINDOW_CHANGED:
581 base::RecordAction(
582 base::UserMetricsAction("WindowSelector_ActiveWindowChanged"));
583 break;
580 case ash::UMA_WINDOW_OVERVIEW_ENTER_KEY: 584 case ash::UMA_WINDOW_OVERVIEW_ENTER_KEY:
581 base::RecordAction( 585 base::RecordAction(
582 base::UserMetricsAction("WindowSelector_OverviewEnterKey")); 586 base::UserMetricsAction("WindowSelector_OverviewEnterKey"));
583 break; 587 break;
584 case ash::UMA_WINDOW_CYCLE: 588 case ash::UMA_WINDOW_CYCLE:
585 base::RecordAction( 589 base::RecordAction(
586 base::UserMetricsAction("WindowCycleController_Cycle")); 590 base::UserMetricsAction("WindowCycleController_Cycle"));
587 break; 591 break;
588 } 592 }
589 } 593 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 return IsUserActive() && !IsKioskModeActive(); 627 return IsUserActive() && !IsKioskModeActive();
624 } 628 }
625 629
626 void UserMetricsRecorder::StartTimer() { 630 void UserMetricsRecorder::StartTimer() {
627 timer_.Start(FROM_HERE, 631 timer_.Start(FROM_HERE,
628 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), 632 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds),
629 this, &UserMetricsRecorder::RecordPeriodicMetrics); 633 this, &UserMetricsRecorder::RecordPeriodicMetrics);
630 } 634 }
631 635
632 } // namespace ash 636 } // namespace ash
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_recorder.h ('k') | ash/wm/overview/window_grid.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698