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 #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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 27 matching lines...) Expand all Loading... | |
38 | 38 |
39 enum UserMetricsAction { | 39 enum UserMetricsAction { |
40 UMA_ACCEL_PREVWINDOW_TAB, | 40 UMA_ACCEL_PREVWINDOW_TAB, |
41 UMA_ACCEL_NEXTWINDOW_TAB, | 41 UMA_ACCEL_NEXTWINDOW_TAB, |
42 UMA_ACCEL_PREVWINDOW_F5, | 42 UMA_ACCEL_PREVWINDOW_F5, |
43 UMA_ACCEL_NEXTWINDOW_F5, | 43 UMA_ACCEL_NEXTWINDOW_F5, |
44 UMA_ACCEL_NEWTAB_T, | 44 UMA_ACCEL_NEWTAB_T, |
45 UMA_ACCEL_SEARCH_LWIN, | 45 UMA_ACCEL_SEARCH_LWIN, |
46 UMA_MOUSE_DOWN, | 46 UMA_MOUSE_DOWN, |
47 UMA_TOUCHSCREEN_TAP_DOWN, | 47 UMA_TOUCHSCREEN_TAP_DOWN, |
48 UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON, | |
sky
2012/08/10 22:22:51
Can you sort all of these.
| |
49 UMA_LAUNCHER_CLICK_ON_APP, | |
48 }; | 50 }; |
49 | 51 |
50 // Delegate of the Shell. | 52 // Delegate of the Shell. |
51 class ASH_EXPORT ShellDelegate { | 53 class ASH_EXPORT ShellDelegate { |
52 public: | 54 public: |
53 // The Shell owns the delegate. | 55 // The Shell owns the delegate. |
54 virtual ~ShellDelegate() {} | 56 virtual ~ShellDelegate() {} |
55 | 57 |
56 // Returns true if user has logged in. | 58 // Returns true if user has logged in. |
57 virtual bool IsUserLoggedIn() = 0; | 59 virtual bool IsUserLoggedIn() = 0; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
133 // Opens the feedback page for "Report Issue". | 135 // Opens the feedback page for "Report Issue". |
134 virtual void OpenFeedbackPage() = 0; | 136 virtual void OpenFeedbackPage() = 0; |
135 | 137 |
136 // Records that the user performed an action. | 138 // Records that the user performed an action. |
137 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; | 139 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; |
138 }; | 140 }; |
139 | 141 |
140 } // namespace ash | 142 } // namespace ash |
141 | 143 |
142 #endif // ASH_SHELL_DELEGATE_H_ | 144 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |