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

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.h

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/app_list_view_delegate.h
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.h b/chrome/browser/ui/app_list/app_list_view_delegate.h
index 0b5d121dfbe3c455b6759b53ff2b7932b91e774a..6afd29554557687e8c51918bae0dc1ad0cbc38d6 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.h
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.h
@@ -15,7 +15,9 @@
class AppListControllerDelegate;
class AppsModelBuilder;
+class AvatarMenuModel;
class Profile;
+struct AvatarMenuItemModel;
namespace app_list {
class SearchController;
@@ -36,7 +38,9 @@ class AppSyncUIStateWatcher;
class AppListViewDelegate : public app_list::AppListViewDelegate {
public:
// The delegate will take ownership of the controller.
tapted 2013/07/29 01:59:10 nit: the comment needs to be updated to say it tak
calamity 2013/07/30 08:42:34 N/A.
- AppListViewDelegate(AppListControllerDelegate* controller, Profile* profile);
+ AppListViewDelegate(AppListControllerDelegate* controller,
tapted 2013/07/29 01:59:10 Aand... this should probably be updated to use sco
+ Profile* profile,
+ AvatarMenuModel* avatar_menu_model);
virtual ~AppListViewDelegate();
private:
@@ -64,7 +68,10 @@ class AppListViewDelegate : public app_list::AppListViewDelegate {
virtual void OpenSettings() OVERRIDE;
virtual void OpenHelp() OVERRIDE;
virtual void OpenFeedback() OVERRIDE;
+ virtual std::vector<AvatarMenuItemModel> GetAvatarMenuItems() OVERRIDE;
+ virtual void ShowForProfileAtIndex(size_t index) OVERRIDE;
+ scoped_ptr<AvatarMenuModel> avatar_menu_model_;
scoped_ptr<app_list::SigninDelegate> signin_delegate_;
scoped_ptr<AppsModelBuilder> apps_builder_;
scoped_ptr<app_list::SearchController> search_controller_;

Powered by Google App Engine
This is Rietveld 408576698