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

Unified Diff: 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: remove binary changes Created 7 years, 3 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
« no previous file with comments | « ui/app_list/app_list_model_observer.h ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e674d2281bb4fe7a2582dd04d9dc8bc47e778edb..3979e63684dd6aab0e12a00ffee19d9cc3f90430 100644
--- a/ui/app_list/app_list_view_delegate.h
+++ b/ui/app_list/app_list_view_delegate.h
@@ -29,9 +29,15 @@ class APP_LIST_EXPORT AppListViewDelegate {
// AppListView owns the delegate.
virtual ~AppListViewDelegate() {}
- // Invoked to set the model that AppListView uses.
+ // Sets the delegate to use the profile at |profile_path|. This is currently
+ // only used by non-Ash Windows.
+ virtual void SetProfileByPath(const base::FilePath& profile_path) = 0;
+
+ // Invoked to initialize the model that AppListView uses. This binds the given
+ // model to this AppListViewDelegate and makes the AppListViewDelegate
+ // responsible for updating the model.
// Note that AppListView owns the model.
- virtual void SetModel(AppListModel* model) = 0;
+ virtual void InitModel(AppListModel* model) = 0;
// Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate.
virtual SigninDelegate* GetSigninDelegate() = 0;
@@ -81,6 +87,9 @@ class APP_LIST_EXPORT AppListViewDelegate {
// Open the feedback UI.
virtual void OpenFeedback() = 0;
+
+ // Shows the app list for the profile specified by |profile_path|.
+ virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0;
};
} // namespace app_list
« no previous file with comments | « ui/app_list/app_list_model_observer.h ('k') | ui/app_list/cocoa/app_list_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698