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

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

Issue 7054031: Mac: Use cross-platform menu model for profile button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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 | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/profile_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c1f4f6228749e951d7d1e77c64f6b56773d0ed21..bbb7071fb5767688b526b14d9d7e5b4e3554e4d9 100644
--- a/chrome/browser/ui/profile_menu_model.h
+++ b/chrome/browser/ui/profile_menu_model.h
@@ -13,16 +13,24 @@
// 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.
-class ProfileMenuModel : public ui::SimpleMenuModel {
+class ProfileMenuModel : public ui::SimpleMenuModel,
+ public ui::SimpleMenuModel::Delegate {
public:
+ explicit ProfileMenuModel();
sky 2011/05/23 14:44:38 nit: no explicit
+ virtual ~ProfileMenuModel();
+
+ // ui::SimpleMenuModel::Delegate implementation
+ virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
+ virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
+ virtual bool GetAcceleratorForCommandId(
+ int command_id, ui::Accelerator* accelerator) OVERRIDE;
+ virtual void ExecuteCommand(int command_id) OVERRIDE;
+
+ private:
enum {
COMMAND_CREATE_NEW_PROFILE,
};
- explicit ProfileMenuModel(ui::SimpleMenuModel::Delegate* delegate);
- virtual ~ProfileMenuModel();
-
- private:
DISALLOW_COPY_AND_ASSIGN(ProfileMenuModel);
};
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/profile_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698