diff options
author | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-04 23:06:01 +0000 |
---|---|---|
committer | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-04 23:06:01 +0000 |
commit | eff90b50fccb243ce36f940b77b4d2b69abc40a2 (patch) | |
tree | 4a15081b691f42bf892be2a3d0e5c589ffd98edd /ash | |
parent | 62ef33eaf47742141d7457421a1ba728d38f4432 (diff) | |
download | chromium_src-eff90b50fccb243ce36f940b77b4d2b69abc40a2.zip chromium_src-eff90b50fccb243ce36f940b77b4d2b69abc40a2.tar.gz chromium_src-eff90b50fccb243ce36f940b77b4d2b69abc40a2.tar.bz2 |
Disabling the first menu item
BUG=178341
TEST=visual
Review URL: https://chromiumcodereview.appspot.com/12387024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186016 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/launcher/launcher_view.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc index 0c354b7..d002ce4 100644 --- a/ash/launcher/launcher_view.cc +++ b/ash/launcher/launcher_view.cc @@ -102,6 +102,7 @@ class LauncherMenuModelAdapter // Overriding MenuModelAdapter's MenuDelegate implementation. virtual const gfx::Font* GetLabelFont(int command_id) const OVERRIDE; + virtual bool IsCommandEnabled(int id) const OVERRIDE; virtual void GetHorizontalIconMargins(int id, int icon_size, int* left_margin, @@ -133,6 +134,10 @@ const gfx::Font* LauncherMenuModelAdapter::GetLabelFont( return &rb.GetFont(ui::ResourceBundle::BoldFont); } +bool LauncherMenuModelAdapter::IsCommandEnabled(int id) const { + return id != kCommandIdOfMenuName; +} + bool LauncherMenuModelAdapter::GetBackgroundColor( int command_id, bool is_hovered, |