diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 15:44:20 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 15:44:20 +0000 |
commit | 0dad8074499c8a2784505f826505bd8862d618a1 (patch) | |
tree | 810223f3f6cdb45f9faaad7d1e713b89d2f345cc /app | |
parent | 3eaf0ecd7a4882482d6234f7a115d1b019c13339 (diff) | |
download | chromium_src-0dad8074499c8a2784505f826505bd8862d618a1.zip chromium_src-0dad8074499c8a2784505f826505bd8862d618a1.tar.gz chromium_src-0dad8074499c8a2784505f826505bd8862d618a1.tar.bz2 |
[Mac] Put buttons into the new unified Wrench menu.
This also makes changes to MenuController to support NIB-based initialization.
Screen shots: http://cl.ly/1cyU (en) and http://cl.ly/1cyE (ru).
BUG=47848
TEST=Click on Wrench menu and see buttons. Buttons perform their function.
Review URL: http://codereview.chromium.org/2923009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r-- | app/menus/simple_menu_model.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/menus/simple_menu_model.cc b/app/menus/simple_menu_model.cc index 3e51986..291aa5a 100644 --- a/app/menus/simple_menu_model.cc +++ b/app/menus/simple_menu_model.cc @@ -57,7 +57,8 @@ void SimpleMenuModel::AddRadioItemWithStringId(int command_id, int string_id, void SimpleMenuModel::AddButtonItem(int command_id, ButtonMenuItemModel* model) { - Item item = { 0, string16(), SkBitmap(), TYPE_BUTTON_ITEM, -1, NULL, model }; + Item item = { command_id, string16(), SkBitmap(), TYPE_BUTTON_ITEM, -1, NULL, + model }; AppendItem(item); } |