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

Unified Diff: ui/app_list/app_list_view_delegate.h

Issue 63283003: Move AppListModel::Users to AppListViewDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac fixes Created 7 years, 1 month 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_unittest.cc ('k') | ui/app_list/app_list_view_delegate.cc » ('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 1989d087853db4df67e79ff07df4c06a5c2a58e7..a240c992fc14d36c897d663bd643c97490f4cb78 100644
--- a/ui/app_list/app_list_view_delegate.h
+++ b/ui/app_list/app_list_view_delegate.h
@@ -5,7 +5,11 @@
#ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
#define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
+#include <vector>
+
#include "base/callback_forward.h"
+#include "base/files/file_path.h"
+#include "base/strings/string16.h"
#include "base/strings/string16.h"
#include "ui/app_list/app_list_export.h"
@@ -30,6 +34,25 @@ class SigninDelegate;
class APP_LIST_EXPORT AppListViewDelegate {
public:
+ // A user of the app list.
+ struct APP_LIST_EXPORT User {
+ User();
+ ~User();
+
+ // Whether or not this user is the current user of the app list.
+ bool active;
+
+ // The name of this user.
+ base::string16 name;
+
+ // The email address of this user.
+ base::string16 email;
+
+ // The path to this user's profile directory.
+ base::FilePath profile_path;
+ };
+ typedef std::vector<User> Users;
+
// AppListView owns the delegate.
virtual ~AppListViewDelegate() {}
@@ -93,6 +116,9 @@ class APP_LIST_EXPORT AppListViewDelegate {
// Get the start page web contents. Owned by the AppListViewDelegate.
virtual content::WebContents* GetStartPageContents() = 0;
+
+ // Returns the list of users (for AppListMenu).
+ virtual const Users& GetUsers() const = 0;
};
} // namespace app_list
« no previous file with comments | « ui/app_list/app_list_model_unittest.cc ('k') | ui/app_list/app_list_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698