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

Issue 501168: Make back forward menu model a MenuModel.... (Closed)

Created:
11 years ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr., ben+cc_chromium.org
Visibility:
Public.

Description

Make back forward menu model a MenuModel. On Linux, implement just enough MenuModel support in GtkMenu. On Linux + windows, remove wrapper classes. On Mac, just change a few function calls around. BUG=none TEST=unit test + manually clicking around on it in debug mode Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35389

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 9

Patch Set 3 : '' #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -527 lines) Patch
M chrome/browser/back_forward_menu_model.h View 1 6 chunks +51 lines, -40 lines 2 comments Download
M chrome/browser/back_forward_menu_model.cc View 1 2 4 chunks +160 lines, -98 lines 13 comments Download
M chrome/browser/back_forward_menu_model_unittest.cc View 1 5 chunks +66 lines, -65 lines 0 comments Download
D chrome/browser/back_forward_menu_model_views.h View 1 chunk +0 lines, -53 lines 0 comments Download
M chrome/browser/back_forward_menu_model_views.cc View 1 1 chunk +0 lines, -99 lines 0 comments Download
M chrome/browser/chromeos/compact_navigation_bar.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/compact_navigation_bar.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/cocoa/back_forward_menu_controller.mm View 2 4 chunks +9 lines, -11 lines 0 comments Download
M chrome/browser/gtk/back_forward_button_gtk.h View 1 2 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/gtk/back_forward_button_gtk.cc View 1 4 chunks +22 lines, -8 lines 0 comments Download
D chrome/browser/gtk/back_forward_menu_model_gtk.h View 1 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/browser/gtk/back_forward_menu_model_gtk.cc View 1 1 chunk +0 lines, -60 lines 0 comments Download
M chrome/browser/gtk/menu_gtk.h View 1 2 5 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/gtk/menu_gtk.cc View 1 2 5 chunks +21 lines, -14 lines 0 comments Download
M chrome/browser/views/toolbar_view.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/toolbar_view.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Evan Stade
thakis/trungl for mac side erg/evan for the rest (lots of reviewers because I don't know ...
10 years, 12 months ago (2009-12-29 22:39:43 UTC) #1
Evan Martin
This seems fine, but it's not my area; Elliot might be better. Are you doing ...
10 years, 12 months ago (2009-12-29 22:52:30 UTC) #2
viettrungluu
Some quick corrections; I'll take a closer look in a bit. http://codereview.chromium.org/501168/diff/2001/2018 File chrome/browser/cocoa/back_forward_menu_controller.mm (right): ...
10 years, 12 months ago (2009-12-29 23:04:43 UTC) #3
Evan Stade
http://codereview.chromium.org/501168/diff/2001/2002 File chrome/browser/back_forward_menu_model.cc (right): http://codereview.chromium.org/501168/diff/2001/2002#newcode108 chrome/browser/back_forward_menu_model.cc:108: TabContents* contents = GetTabContents(); On 2009/12/29 22:52:31, Evan Martin ...
10 years, 12 months ago (2009-12-29 23:16:36 UTC) #4
Evan Stade
> Are you doing this to unify the page actions menu stuff? I briefly glanced ...
10 years, 12 months ago (2009-12-29 23:25:39 UTC) #5
viettrungluu
LGTM with comments addressed on the model and the Mac part. http://codereview.chromium.org/501168/diff/3004/2019 File chrome/browser/back_forward_menu_model.cc (right): ...
10 years, 12 months ago (2009-12-30 00:54:26 UTC) #6
Evan Stade
http://codereview.chromium.org/501168/diff/3004/2019 File chrome/browser/back_forward_menu_model.cc (right): http://codereview.chromium.org/501168/diff/3004/2019#newcode97 chrome/browser/back_forward_menu_model.cc:97: return index < GetTotalItemCount() && !IsSeparator(index); On 2009/12/30 00:54:26, ...
10 years, 12 months ago (2009-12-30 01:12:10 UTC) #7
viettrungluu
LGTM (on the aforementioned parts). After all, one shouldn't be expected to fix/clean-up/re-think all the ...
10 years, 12 months ago (2009-12-30 01:20:33 UTC) #8
Evan Stade
On Tue, Dec 29, 2009 at 5:20 PM, <viettrungluu@chromium.org> wrote: > LGTM (on the aforementioned ...
10 years, 12 months ago (2009-12-30 01:32:49 UTC) #9
Evan Stade
Evan, can you continue with the review as it seems Elliot is gone? thanks
10 years, 11 months ago (2009-12-30 18:18:40 UTC) #10
Evan Martin
LGTM http://codereview.chromium.org/501168/diff/3004/2019 File chrome/browser/back_forward_menu_model.cc (right): http://codereview.chromium.org/501168/diff/3004/2019#newcode307 chrome/browser/back_forward_menu_model.cc:307: int BackForwardMenuModel::MenuIdToNavEntryIndex(int index) const { This is a ...
10 years, 11 months ago (2009-12-30 19:29:30 UTC) #11
Evan Stade
10 years, 11 months ago (2009-12-30 20:32:30 UTC) #12
http://codereview.chromium.org/501168/diff/3004/2019
File chrome/browser/back_forward_menu_model.cc (right):

http://codereview.chromium.org/501168/diff/3004/2019#newcode307
chrome/browser/back_forward_menu_model.cc:307: int
BackForwardMenuModel::MenuIdToNavEntryIndex(int index) const {
On 2009/12/30 19:29:30, Evan Martin wrote:
> This is a bit weird, that the function name says it takes an id and you
renamed
> it to "index".

will rename the function

Powered by Google App Engine
This is Rietveld 408576698