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

Unified Diff: chrome/browser/ui/views/profile_menu_button.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
Index: chrome/browser/ui/views/profile_menu_button.h
diff --git a/chrome/browser/ui/views/profile_menu_button.h b/chrome/browser/ui/views/profile_menu_button.h
index e9161fa388c799fd01220153621769aef4e00790..262a9a60b3086e2d455bc6d13ab4667edeee5944 100644
--- a/chrome/browser/ui/views/profile_menu_button.h
+++ b/chrome/browser/ui/views/profile_menu_button.h
@@ -34,8 +34,7 @@ class Menu2;
// underneath that displays the profile tag.
class ProfileMenuButton : public views::MenuButton,
- public views::ViewMenuDelegate,
- public ui::SimpleMenuModel::Delegate {
+ public views::ViewMenuDelegate {
public:
// DefaultActiveTextShadow is a darkened blue color that works with Windows
// default theme background coloring.
@@ -54,13 +53,6 @@ class ProfileMenuButton : public views::MenuButton,
// Override MenuButton to clamp text at kMaxTextWidth.
virtual void SetText(const std::wstring& text) OVERRIDE;
- // 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:
// Overridden from views::ViewMenuDelegate:
virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698