OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/ash/chrome_shell_delegate.h" | 5 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h" |
6 | 6 |
7 #include "ash/launcher/launcher_types.h" | 7 #include "ash/launcher/launcher_types.h" |
8 #include "ash/system/tray/system_tray_delegate.h" | 8 #include "ash/system/tray/system_tray_delegate.h" |
9 #include "ash/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 break; | 340 break; |
341 case ash::UMA_ACCEL_NEXTWINDOW_F5: | 341 case ash::UMA_ACCEL_NEXTWINDOW_F5: |
342 content::RecordAction(content::UserMetricsAction("Accel_NextWindow_F5")); | 342 content::RecordAction(content::UserMetricsAction("Accel_NextWindow_F5")); |
343 break; | 343 break; |
344 case ash::UMA_ACCEL_NEWTAB_T: | 344 case ash::UMA_ACCEL_NEWTAB_T: |
345 content::RecordAction(content::UserMetricsAction("Accel_NewTab_T")); | 345 content::RecordAction(content::UserMetricsAction("Accel_NewTab_T")); |
346 break; | 346 break; |
347 case ash::UMA_ACCEL_SEARCH_LWIN: | 347 case ash::UMA_ACCEL_SEARCH_LWIN: |
348 content::RecordAction(content::UserMetricsAction("Accel_Search_LWin")); | 348 content::RecordAction(content::UserMetricsAction("Accel_Search_LWin")); |
349 break; | 349 break; |
| 350 case ash::UMA_MOUSE_DOWN: |
| 351 content::RecordAction(content::UserMetricsAction("Mouse_Down")); |
| 352 break; |
| 353 case ash::UMA_TOUCHSCREEN_TAP_DOWN: |
| 354 content::RecordAction(content::UserMetricsAction("Touchscreen_Down")); |
| 355 break; |
350 } | 356 } |
351 } | 357 } |
352 | 358 |
353 void ChromeShellDelegate::Observe(int type, | 359 void ChromeShellDelegate::Observe(int type, |
354 const content::NotificationSource& source, | 360 const content::NotificationSource& source, |
355 const content::NotificationDetails& details) { | 361 const content::NotificationDetails& details) { |
356 #if defined(OS_CHROMEOS) | 362 #if defined(OS_CHROMEOS) |
357 switch (type) { | 363 switch (type) { |
358 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: | 364 case chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED: |
359 ash::Shell::GetInstance()->CreateLauncher(); | 365 ash::Shell::GetInstance()->CreateLauncher(); |
360 break; | 366 break; |
361 case chrome::NOTIFICATION_SESSION_STARTED: | 367 case chrome::NOTIFICATION_SESSION_STARTED: |
362 ash::Shell::GetInstance()->ShowLauncher(); | 368 ash::Shell::GetInstance()->ShowLauncher(); |
363 break; | 369 break; |
364 default: | 370 default: |
365 NOTREACHED() << "Unexpected notification " << type; | 371 NOTREACHED() << "Unexpected notification " << type; |
366 } | 372 } |
367 #else | 373 #else |
368 // MSVC++ warns about switch statements without any cases. | 374 // MSVC++ warns about switch statements without any cases. |
369 NOTREACHED() << "Unexpected notification " << type; | 375 NOTREACHED() << "Unexpected notification " << type; |
370 #endif | 376 #endif |
371 } | 377 } |
OLD | NEW |