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

Unified Diff: chrome/browser/ui/profile_menu_model.h

Issue 7331017: Multi-Profiles: Add icon chooser to profiles menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 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/profile_menu_model.h
diff --git a/chrome/browser/ui/profile_menu_model.h b/chrome/browser/ui/profile_menu_model.h
index 369430453e5d2663a74542e1ccadc9923367c88c..376a68c58551288acd407fb2761b5ae99c6f41fc 100644
--- a/chrome/browser/ui/profile_menu_model.h
+++ b/chrome/browser/ui/profile_menu_model.h
@@ -10,14 +10,23 @@
class Browser;
-// ProfileMenuModel
-//
-// Menu for the multi-profile button displayed on the browser frame when the
-// user is in a multi-profile-enabled account. Stub for now. TODO(mirandac):
-// enable and fill in as part of multi-profile work.
+// Menu for the multi-profile button displayed on the browser frame.
class ProfileMenuModel : public ui::SimpleMenuModel,
public ui::SimpleMenuModel::Delegate {
public:
+ enum {
+ COMMAND_PROFILE_NAME,
+ COMMAND_CHOOSE_AVATAR_ICON,
+ COMMAND_CUSTOMIZE_PROFILE,
+ COMMAND_DELETE_PROFILE,
+ COMMAND_CREATE_NEW_PROFILE,
+ COMMAND_SWITCH_PROFILE_MENU,
+ // The profiles submenu contains a menu item for each profile. For the i'th
+ // profile the command ID is COMMAND_SWITCH_TO_PROFILE + i. Since there can
+ // be any number of profiles this must be the last command id.
+ COMMAND_SWITCH_TO_PROFILE,
+ };
+
explicit ProfileMenuModel(Browser* browser);
virtual ~ProfileMenuModel();

Powered by Google App Engine
This is Rietveld 408576698