OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |