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

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

Issue 115113006: Rename Launcher to Shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes 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
« no previous file with comments | « ash/launcher/launcher_unittest.cc ('k') | ash/root_window_controller.h » ('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/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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 break; 354 break;
355 case ash::UMA_WINDOW_SELECTION: 355 case ash::UMA_WINDOW_SELECTION:
356 content::RecordAction( 356 content::RecordAction(
357 content::UserMetricsAction("WindowSelector_Selection")); 357 content::UserMetricsAction("WindowSelector_Selection"));
358 break; 358 break;
359 } 359 }
360 } 360 }
361 361
362 void UserMetricsRecorder::RecordPeriodicMetrics() { 362 void UserMetricsRecorder::RecordPeriodicMetrics() {
363 internal::ShelfLayoutManager* manager = 363 internal::ShelfLayoutManager* manager =
364 internal::ShelfLayoutManager::ForLauncher(Shell::GetPrimaryRootWindow()); 364 internal::ShelfLayoutManager::ForShelf(Shell::GetPrimaryRootWindow());
365 if (manager) { 365 if (manager) {
366 UMA_HISTOGRAM_ENUMERATION("Ash.ShelfAlignmentOverTime", 366 UMA_HISTOGRAM_ENUMERATION("Ash.ShelfAlignmentOverTime",
367 manager->SelectValueForShelfAlignment( 367 manager->SelectValueForShelfAlignment(
368 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM, 368 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM,
369 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT, 369 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT,
370 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT, 370 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT,
371 -1), 371 -1),
372 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT); 372 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT);
373 } 373 }
374 374
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_OTHER; 406 active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_OTHER;
407 break; 407 break;
408 } 408 }
409 } 409 }
410 UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime", 410 UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime",
411 active_window_show_type, 411 active_window_show_type,
412 ACTIVE_WINDOW_SHOW_TYPE_COUNT); 412 ACTIVE_WINDOW_SHOW_TYPE_COUNT);
413 } 413 }
414 414
415 } // namespace ash 415 } // namespace ash
OLDNEW
« no previous file with comments | « ash/launcher/launcher_unittest.cc ('k') | ash/root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698