Chromium Code Reviews| Index: ui/app_list/app_list_view_delegate.h |
| diff --git a/ui/app_list/app_list_view_delegate.h b/ui/app_list/app_list_view_delegate.h |
| index bd7e3d3837f75193f4d69cffe578b1c006a48ef5..3c3f2df7599841a46a86ad202bd9712903626ef3 100644 |
| --- a/ui/app_list/app_list_view_delegate.h |
| +++ b/ui/app_list/app_list_view_delegate.h |
| @@ -9,6 +9,9 @@ |
| #include "base/strings/string16.h" |
| #include "ui/app_list/app_list_export.h" |
| +struct AvatarMenuItemModel; |
| +class Profile; |
|
tapted
2013/07/31 05:43:53
src/ui shouldn't care about Profile* - I don't thi
calamity
2013/08/01 08:35:45
Done.
|
| + |
| namespace base { |
| class FilePath; |
| } |
| @@ -29,6 +32,8 @@ class APP_LIST_EXPORT AppListViewDelegate { |
| // AppListView owns the delegate. |
| virtual ~AppListViewDelegate() {} |
| + virtual void SetProfile(Profile* profile) = 0; |
|
benwells
2013/07/31 05:47:13
I don't think we want to add profile here. Do you
calamity
2013/08/01 08:35:45
Done.
|
| + |
| // Invoked to set the model that AppListView uses. |
| // Note that AppListView owns the model. |
| virtual void SetModel(AppListModel* model) = 0; |
| @@ -76,12 +81,6 @@ class APP_LIST_EXPORT AppListViewDelegate { |
| // Returns the icon to be displayed in the window and taskbar. |
| virtual gfx::ImageSkia GetWindowIcon() = 0; |
| - // Returns the name of the current user. |
| - virtual base::string16 GetCurrentUserName() = 0; |
| - |
| - // Returns the email of the current user. |
| - virtual base::string16 GetCurrentUserEmail() = 0; |
| - |
| // Open the settings UI. |
| virtual void OpenSettings() = 0; |
| @@ -90,6 +89,13 @@ class APP_LIST_EXPORT AppListViewDelegate { |
| // Open the feedback UI. |
| virtual void OpenFeedback() = 0; |
| + |
| + // Shows the app list for the profile at position |index| in the |
| + // ProfileInfoCache. |
|
benwells
2013/07/31 05:47:13
ProfileInfoCache is a chrome concept. Having index
calamity
2013/08/01 08:35:45
Done.
|
| + virtual void ShowForProfileAtIndex(size_t index) = 0; |
| + |
| + // Rebuilds the avatar menu items from the profile info cache. |
|
benwells
2013/07/31 05:47:13
Again, profile info cache is a chrome concept and
calamity
2013/08/01 08:35:45
Done.
|
| + virtual void RebuildAvatarMenuItems(app_list::AppListModel* model) = 0; |
| }; |
| } // namespace app_list |