From 273865aa130f61f321d3eeafc0ea5a2a6dc9adf8 Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Wed, 9 Dec 2009 19:56:30 +0000 Subject: Share the code that builds the page menu in a common model, make Mac and Win use it. Implement a mac menu controller that takes this model and generates an NSMenu. Remove the Page Menu NSMenu from Toolbar.xib since it's now created in code. BUG=22646 TEST=page menu should work as before Review URL: http://codereview.chromium.org/465130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34179 0039d316-1c4b-4281-b951-d872f2087c98 --- app/menus/simple_menu_model.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/menus') diff --git a/app/menus/simple_menu_model.h b/app/menus/simple_menu_model.h index 7d73703..e093bb2 100644 --- a/app/menus/simple_menu_model.h +++ b/app/menus/simple_menu_model.h @@ -87,6 +87,8 @@ class SimpleMenuModel : public MenuModel { // returns what it's passed. virtual int FlipIndex(int index) const { return index; } + Delegate* delegate() { return delegate_; } + private: struct Item { int command_id; -- cgit v1.1