| 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 24 matching lines...) Expand all Loading... |
| 35 class SystemTray; | 35 class SystemTray; |
| 36 class SystemTrayDelegate; | 36 class SystemTrayDelegate; |
| 37 class UserWallpaperDelegate; | 37 class UserWallpaperDelegate; |
| 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, |
| 47 UMA_TOUCHSCREEN_TAP_DOWN, |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 // Delegate of the Shell. | 50 // Delegate of the Shell. |
| 49 class ASH_EXPORT ShellDelegate { | 51 class ASH_EXPORT ShellDelegate { |
| 50 public: | 52 public: |
| 51 // The Shell owns the delegate. | 53 // The Shell owns the delegate. |
| 52 virtual ~ShellDelegate() {} | 54 virtual ~ShellDelegate() {} |
| 53 | 55 |
| 54 // Returns true if user has logged in. | 56 // Returns true if user has logged in. |
| 55 virtual bool IsUserLoggedIn() = 0; | 57 virtual bool IsUserLoggedIn() = 0; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // Opens the feedback page for "Report Issue". | 133 // Opens the feedback page for "Report Issue". |
| 132 virtual void OpenFeedbackPage() = 0; | 134 virtual void OpenFeedbackPage() = 0; |
| 133 | 135 |
| 134 // Records that the user performed an action. | 136 // Records that the user performed an action. |
| 135 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; | 137 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; |
| 136 }; | 138 }; |
| 137 | 139 |
| 138 } // namespace ash | 140 } // namespace ash |
| 139 | 141 |
| 140 #endif // ASH_SHELL_DELEGATE_H_ | 142 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |