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

Unified Diff: ui/app_list/views/app_list_view.h

Issue 20656002: Add profile selector menu to app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small fixups 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: ui/app_list/views/app_list_view.h
diff --git a/ui/app_list/views/app_list_view.h b/ui/app_list/views/app_list_view.h
index eb21ceb3ed654417e46415704c500405ec5e046e..21f63777bbf50bb30e92a1c512f0f405e1f473f2 100644
--- a/ui/app_list/views/app_list_view.h
+++ b/ui/app_list/views/app_list_view.h
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "ui/app_list/app_list_export.h"
+#include "ui/app_list/app_list_model_observer.h"
#include "ui/app_list/signin_delegate_observer.h"
#include "ui/views/bubble/bubble_delegate.h"
@@ -26,7 +27,8 @@ class SigninView;
// AppListView is the top-level view and controller of app list UI. It creates
// and hosts a AppsGridView and passes AppListModel to it for display.
class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
- public SigninDelegateObserver {
+ public SigninDelegateObserver,
+ public AppListModelObserver {
public:
// Takes ownership of |delegate|.
explicit AppListView(AppListViewDelegate* delegate);
@@ -91,6 +93,9 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
// Overridden from SigninDelegateObserver:
virtual void OnSigninSuccess() OVERRIDE;
+ // Overridden from app_list::AppListModelObserver:
+ virtual void OnAppListModelProfilesChanged() OVERRIDE;
+
SigninDelegate* GetSigninDelegate();
scoped_ptr<AppListModel> model_;

Powered by Google App Engine
This is Rietveld 408576698