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

Issue 465130: Share the code that builds the page menu in a common model, make Mac and Win ... (Closed)

Created:
11 years ago by pink (ping after 24hrs)
Modified:
9 years, 7 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews_googlegroups.com, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34179

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 28

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+782 lines, -842 lines) Patch
M app/menus/simple_menu_model.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/app/nibs/Toolbar.xib View 1 38 chunks +55 lines, -655 lines 0 comments Download
A chrome/browser/cocoa/menu_controller.h View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/menu_controller.mm View 1 2 3 1 chunk +145 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/menu_controller_unittest.mm View 1 2 3 1 chunk +177 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller.h View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/cocoa/toolbar_controller.mm View 1 2 3 4 7 chunks +50 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/toolbar_controller_unittest.mm View 2 chunks +1 line, -10 lines 0 comments Download
A chrome/browser/page_menu_model.h View 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/page_menu_model.cc View 1 2 3 1 chunk +138 lines, -0 lines 0 comments Download
A chrome/browser/page_menu_model_unittest.cc View 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/browser/views/toolbar_view.h View 4 chunks +2 lines, -43 lines 0 comments Download
M chrome/browser/views/toolbar_view.cc View 3 chunks +2 lines, -129 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
pink (ping after 24hrs)
11 years ago (2009-12-08 22:23:29 UTC) #1
viettrungluu
Looking ... but could you put a brief description of the changes to Toolbar.xib in ...
11 years ago (2009-12-08 22:32:28 UTC) #2
viettrungluu
Mostly looks good, with only a few nits. Have you run it through the try ...
11 years ago (2009-12-09 01:03:28 UTC) #3
pink (ping after 24hrs)
fixed everything and put up a new cl for perusal. http://codereview.chromium.org/465130/diff/1003/2013 File chrome/browser/cocoa/menu_controller.h (right): http://codereview.chromium.org/465130/diff/1003/2013#newcode32 ...
11 years ago (2009-12-09 16:57:16 UTC) #4
viettrungluu
11 years ago (2009-12-09 17:17:21 UTC) #5
Thanks. LGTM.

http://codereview.chromium.org/465130/diff/1003/2016
File chrome/browser/page_menu_model.cc (right):

http://codereview.chromium.org/465130/diff/1003/2016#newcode16
chrome/browser/page_menu_model.cc:16:
PageMenuModel::PageMenuModel(menus::SimpleMenuModel::Delegate* delegate,
On 2009/12/09 16:57:16, pink wrote:
> On 2009/12/09 01:03:28, viettrungluu wrote:
> > Poor PageMenuModel feels left out without a
> > /////...
> > // PageMenuModel
> > (but I'm sure it'll forgive you).
> 
> I asked, and it doesn't feel left out.

I guess it does get to be first, after all.

Powered by Google App Engine
This is Rietveld 408576698