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

Side by Side Diff: ash/shell_delegate.h

Issue 12481018: ash: Add metrics for screen lock and shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: report metric before requesting lock Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/system/date/tray_date.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 (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 #ifndef ASH_SHELL_DELEGATE_H_ 5 #ifndef ASH_SHELL_DELEGATE_H_
6 #define ASH_SHELL_DELEGATE_H_ 6 #define ASH_SHELL_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 29 matching lines...) Expand all
40 class LauncherDelegate; 40 class LauncherDelegate;
41 class LauncherModel; 41 class LauncherModel;
42 struct LauncherItem; 42 struct LauncherItem;
43 class RootWindowHostFactory; 43 class RootWindowHostFactory;
44 class SystemTrayDelegate; 44 class SystemTrayDelegate;
45 class UserWallpaperDelegate; 45 class UserWallpaperDelegate;
46 46
47 enum UserMetricsAction { 47 enum UserMetricsAction {
48 UMA_ACCEL_KEYBOARD_BRIGHTNESS_DOWN_F6, 48 UMA_ACCEL_KEYBOARD_BRIGHTNESS_DOWN_F6,
49 UMA_ACCEL_KEYBOARD_BRIGHTNESS_UP_F7, 49 UMA_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LIST_BUTTON,
65 UMA_MOUSE_DOWN, 69 UMA_MOUSE_DOWN,
66 UMA_TOGGLE_MAXIMIZE_CAPTION_CLICK, 70 UMA_TOGGLE_MAXIMIZE_CAPTION_CLICK,
67 UMA_TOGGLE_MAXIMIZE_CAPTION_GESTURE, 71 UMA_TOGGLE_MAXIMIZE_CAPTION_GESTURE,
68 UMA_TOUCHSCREEN_TAP_DOWN, 72 UMA_TOUCHSCREEN_TAP_DOWN,
73 UMA_TRAY_HELP,
74 UMA_TRAY_LOCK_SCREEN,
75 UMA_TRAY_SHUT_DOWN,
69 }; 76 };
70 77
71 enum AccessibilityNotificationVisibility { 78 enum AccessibilityNotificationVisibility {
72 A11Y_NOTIFICATION_NONE, 79 A11Y_NOTIFICATION_NONE,
73 A11Y_NOTIFICATION_SHOW, 80 A11Y_NOTIFICATION_SHOW,
74 }; 81 };
75 82
76 // Delegate of the Shell. 83 // Delegate of the Shell.
77 class ASH_EXPORT ShellDelegate { 84 class ASH_EXPORT ShellDelegate {
78 public: 85 public:
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // value. 240 // value.
234 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0; 241 virtual RootWindowHostFactory* CreateRootWindowHostFactory() = 0;
235 242
236 // Get the product name. 243 // Get the product name.
237 virtual string16 GetProductName() const = 0; 244 virtual string16 GetProductName() const = 0;
238 }; 245 };
239 246
240 } // namespace ash 247 } // namespace ash
241 248
242 #endif // ASH_SHELL_DELEGATE_H_ 249 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/system/date/tray_date.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698