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

Issue 126092: Begin to upgrade BackForwardMenuModelViews to use new menu API.... (Closed)

Created:
11 years, 6 months ago by Ben Goodger (Google)
Modified:
9 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Upgrade BackForwardMenuModelViews to use new menu API. Also adds accelerator to the "Show Full History" item. This requires bringing the owner-draw system for native menus over from the old code. I haven't really changed anything in it other than the format of dwItemData. This code could be improved/simplified by using gfx::Canvas more, but don't want to do it here. BUG=none TEST=make sure BackForwardMenuModel tests still pass, test the menu functionality in the toolbar. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18454

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -141 lines) Patch
M chrome/browser/back_forward_menu_model.h View 3 chunks +5 lines, -12 lines 1 comment Download
M chrome/browser/back_forward_menu_model.cc View 8 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/back_forward_menu_model_unittest.cc View 3 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/back_forward_menu_model_views.h View 1 1 chunk +30 lines, -12 lines 0 comments Download
M chrome/browser/back_forward_menu_model_views.cc View 1 1 chunk +65 lines, -30 lines 0 comments Download
M chrome/browser/gtk/back_forward_menu_model_gtk.cc View 1 chunk +2 lines, -9 lines 0 comments Download
M chrome/browser/views/toolbar_view.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M views/controls/button/button_dropdown.h View 3 chunks +5 lines, -4 lines 0 comments Download
M views/controls/button/button_dropdown.cc View 4 chunks +8 lines, -25 lines 0 comments Download
M views/controls/menu/menu_2.h View 1 chunk +3 lines, -0 lines 0 comments Download
M views/controls/menu/native_menu_win.h View 1 chunk +0 lines, -4 lines 0 comments Download
M views/controls/menu/native_menu_win.cc View 1 9 chunks +146 lines, -20 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Ben Goodger (Google)
11 years, 6 months ago (2009-06-13 20:18:10 UTC) #1
sky
11 years, 6 months ago (2009-06-15 15:50:49 UTC) #2
LGTM

http://codereview.chromium.org/126092/diff/1013/22
File chrome/browser/back_forward_menu_model.h (right):

http://codereview.chromium.org/126092/diff/1013/22#newcode129
Line 129: Browser* browser_;
nit: while you're here, could you move the members after the functions.

Powered by Google App Engine
This is Rietveld 408576698