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 UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
7 | 7 |
| 8 #include "base/string16.h" |
8 #include "ui/app_list/app_list_export.h" | 9 #include "ui/app_list/app_list_export.h" |
9 | 10 |
10 namespace gfx { | 11 namespace gfx { |
11 class ImageSkia; | 12 class ImageSkia; |
12 } | 13 } |
13 | 14 |
14 namespace app_list { | 15 namespace app_list { |
15 | 16 |
16 class AppListItemModel; | 17 class AppListItemModel; |
17 class AppListModel; | 18 class AppListModel; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 virtual void Dismiss() = 0; | 58 virtual void Dismiss() = 0; |
58 | 59 |
59 // Invoked when the app list is closing. | 60 // Invoked when the app list is closing. |
60 virtual void ViewClosing() = 0; | 61 virtual void ViewClosing() = 0; |
61 | 62 |
62 // Invoked when the app list's activated state changes. | 63 // Invoked when the app list's activated state changes. |
63 virtual void ViewActivationChanged(bool active) = 0; | 64 virtual void ViewActivationChanged(bool active) = 0; |
64 | 65 |
65 // Returns the icon to be displayed in the window and taskbar. | 66 // Returns the icon to be displayed in the window and taskbar. |
66 virtual gfx::ImageSkia GetWindowIcon() = 0; | 67 virtual gfx::ImageSkia GetWindowIcon() = 0; |
| 68 |
| 69 // Returns the name of the current user. |
| 70 virtual string16 GetCurrentUserName() = 0; |
| 71 |
| 72 // Returns the email of the current user. |
| 73 virtual string16 GetCurrentUserEmail() = 0; |
| 74 |
| 75 // Open the settings UI. |
| 76 virtual void OpenSettings() = 0; |
| 77 |
| 78 // Open the feedback UI. |
| 79 virtual void OpenFeedback() = 0; |
67 }; | 80 }; |
68 | 81 |
69 } // namespace app_list | 82 } // namespace app_list |
70 | 83 |
71 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 84 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |