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

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

Issue 114643003: Use a single ToplevelWindowEventHandler for the ash::Shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
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/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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 case ash::UMA_LAUNCHER_CLICK_ON_APP: 71 case ash::UMA_LAUNCHER_CLICK_ON_APP:
72 content::RecordAction(content::UserMetricsAction("Launcher_ClickOnApp")); 72 content::RecordAction(content::UserMetricsAction("Launcher_ClickOnApp"));
73 break; 73 break;
74 case ash::UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON: 74 case ash::UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON:
75 content::RecordAction( 75 content::RecordAction(
76 content::UserMetricsAction("Launcher_ClickOnApplistButton")); 76 content::UserMetricsAction("Launcher_ClickOnApplistButton"));
77 break; 77 break;
78 case ash::UMA_MOUSE_DOWN: 78 case ash::UMA_MOUSE_DOWN:
79 content::RecordAction(content::UserMetricsAction("Mouse_Down")); 79 content::RecordAction(content::UserMetricsAction("Mouse_Down"));
80 break; 80 break;
81 case ash::UMA_PANEL_MINIMIZE_CAPTION_CLICK:
82 content::RecordAction(
83 content::UserMetricsAction("Panel_Minimize_Caption_Click"));
84 break;
85 case ash::UMA_PANEL_MINIMIZE_CAPTION_GESTURE:
86 content::RecordAction(
87 content::UserMetricsAction("Panel_Minimize_Caption_Gesture"));
88 break;
81 case ash::UMA_SHELF_ALIGNMENT_SET_BOTTOM: 89 case ash::UMA_SHELF_ALIGNMENT_SET_BOTTOM:
82 content::RecordAction( 90 content::RecordAction(
83 content::UserMetricsAction("Shelf_AlignmentSetBottom")); 91 content::UserMetricsAction("Shelf_AlignmentSetBottom"));
84 break; 92 break;
85 case ash::UMA_SHELF_ALIGNMENT_SET_LEFT: 93 case ash::UMA_SHELF_ALIGNMENT_SET_LEFT:
86 content::RecordAction( 94 content::RecordAction(
87 content::UserMetricsAction("Shelf_AlignmentSetLeft")); 95 content::UserMetricsAction("Shelf_AlignmentSetLeft"));
88 break; 96 break;
89 case ash::UMA_SHELF_ALIGNMENT_SET_RIGHT: 97 case ash::UMA_SHELF_ALIGNMENT_SET_RIGHT:
90 content::RecordAction( 98 content::RecordAction(
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 manager->SelectValueForShelfAlignment( 374 manager->SelectValueForShelfAlignment(
367 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM, 375 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM,
368 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT, 376 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT,
369 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT, 377 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT,
370 -1), 378 -1),
371 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT); 379 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT);
372 } 380 }
373 } 381 }
374 382
375 } // namespace ash 383 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698