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

Issue 6840068: GTK: Add Recently Closed tabs to the History menu in the global menu bar. (Closed)

Created:
9 years, 8 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, Evan Martin
Visibility:
Public.

Description

GTK: Add Recently Closed tabs to the History menu in the global menu bar. This is mostly a straight port of the OSX implementation in history_menu_bridge.mm. This patch only handles the "Recently Closed" portion of the history menu and leaves accessing the HistoryService for the "Most Visited" sites to a future patch. Attempts to port the corresponding unit tests (history_menu_bridge_unittest.mm) have ended in frustration. There's some very weird timing issues that make anything dealing with menus hard to not be flaky. *cry* BUG=30213 TEST=Open some windows, close some windows. There's Recently Closed entries in the menu bar on Natty Narwhal. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83035

Patch Set 1 #

Patch Set 2 : Add bookmark menu stub for string freeze reasons #

Total comments: 15

Patch Set 3 : Check whether the menu is valid before building it #

Patch Set 4 : "GdkPixubf" #

Patch Set 5 : Fix for the Hardy trybots #

Total comments: 1

Patch Set 6 : Move history menu code into its own file. #

Patch Set 7 : Remove debugging code #

Total comments: 5

Patch Set 8 : Rewrite GlobalMenu with a common base of MenuGtk #

Patch Set 9 : Tested to work on Natty #

Patch Set 10 : Get rid of cruft #

Patch Set 11 : Whitespace nit #

Patch Set 12 : Whitespace nit #

Total comments: 9

Patch Set 13 : Out of line virtual methods #

Patch Set 14 : Maybe abandoning this way #

Total comments: 2

Patch Set 15 : Resetting to an earlier point and bringing in my Most Visited work #

Total comments: 2

Patch Set 16 : Remove current most visited section. will redo with TopSites in a different patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+778 lines, -79 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc View 2 chunks +1 line, -30 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/ui/gtk/global_history_menu.h View 1 2 3 4 5 15 1 chunk +111 lines, -0 lines 0 comments Download
A chrome/browser/ui/gtk/global_history_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +462 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/global_menu_bar.h View 1 2 3 4 5 8 9 10 11 12 13 14 4 chunks +29 lines, -11 lines 0 comments Download
M chrome/browser/ui/gtk/global_menu_bar.cc View 1 2 3 4 5 6 8 9 10 11 12 13 14 8 chunks +108 lines, -36 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_util.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/gtk_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +33 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Elliot Glaysher
estade: review evanm: FYI
9 years, 8 months ago (2011-04-14 22:51:39 UTC) #1
Evan Stade
http://codereview.chromium.org/6840068/diff/2001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/6840068/diff/2001/chrome/app/generated_resources.grd#newcode9262 chrome/app/generated_resources.grd:9262: <!-- NOTE: Some of these exist in context menus ...
9 years, 8 months ago (2011-04-15 19:00:41 UTC) #2
Elliot Glaysher
Most of your comments addressed. Others responded to. Rewrote it so we see if we ...
9 years, 8 months ago (2011-04-15 20:29:02 UTC) #3
Evan Stade
> So this comment was copied verbatim from the mac section above (though we can't ...
9 years, 8 months ago (2011-04-15 20:40:32 UTC) #4
Elliot Glaysher
Done, also haha wtf on "GdkPixubf"
9 years, 8 months ago (2011-04-15 21:21:15 UTC) #5
Elliot Glaysher
On 2011/04/15 21:21:15, Elliot Glaysher wrote: > Done, also haha wtf on "GdkPixubf" Friendly ping
9 years, 8 months ago (2011-04-18 17:25:09 UTC) #6
Evan Stade
LGTM with TabRestoreServiceDestroyed() change
9 years, 8 months ago (2011-04-18 17:50:24 UTC) #7
Elliot Glaysher
On 2011/04/18 17:50:24, Evan Stade wrote: > LGTM with TabRestoreServiceDestroyed() change I don't see any ...
9 years, 8 months ago (2011-04-18 17:55:44 UTC) #8
Evan Stade
9 years, 8 months ago (2011-04-18 18:10:17 UTC) #9
Evan Stade
dang it http://codereview.chromium.org/6840068/diff/9002/chrome/browser/ui/gtk/global_menu_bar.cc File chrome/browser/ui/gtk/global_menu_bar.cc (right): http://codereview.chromium.org/6840068/diff/9002/chrome/browser/ui/gtk/global_menu_bar.cc#newcode728 chrome/browser/ui/gtk/global_menu_bar.cc:728: // Intentionally left blank. We hold a ...
9 years, 8 months ago (2011-04-18 18:11:18 UTC) #10
Elliot Glaysher
On 2011/04/18 18:11:18, Evan Stade wrote: > dang it > > http://codereview.chromium.org/6840068/diff/9002/chrome/browser/ui/gtk/global_menu_bar.cc > File chrome/browser/ui/gtk/global_menu_bar.cc ...
9 years, 8 months ago (2011-04-19 17:57:09 UTC) #11
Evan Stade
http://codereview.chromium.org/6840068/diff/18001/chrome/browser/ui/gtk/global_history_menu.cc File chrome/browser/ui/gtk/global_history_menu.cc (right): http://codereview.chromium.org/6840068/diff/18001/chrome/browser/ui/gtk/global_history_menu.cc#newcode257 chrome/browser/ui/gtk/global_history_menu.cc:257: extra line http://codereview.chromium.org/6840068/diff/18001/chrome/browser/ui/gtk/global_menu_bar.cc File chrome/browser/ui/gtk/global_menu_bar.cc (right): http://codereview.chromium.org/6840068/diff/18001/chrome/browser/ui/gtk/global_menu_bar.cc#newcode106 chrome/browser/ui/gtk/global_menu_bar.cc:106: GlobalMenuBarCommand ...
9 years, 8 months ago (2011-04-19 18:17:10 UTC) #12
Elliot Glaysher
http://codereview.chromium.org/6840068/diff/18001/chrome/browser/ui/gtk/global_menu_bar.cc File chrome/browser/ui/gtk/global_menu_bar.cc (right): http://codereview.chromium.org/6840068/diff/18001/chrome/browser/ui/gtk/global_menu_bar.cc#newcode106 chrome/browser/ui/gtk/global_menu_bar.cc:106: GlobalMenuBarCommand history_menu[] = { On 2011/04/19 18:17:10, Evan Stade ...
9 years, 8 months ago (2011-04-19 19:52:07 UTC) #13
Evan Stade
On 2011/04/19 19:52:07, Elliot Glaysher wrote: > http://codereview.chromium.org/6840068/diff/18001/chrome/browser/ui/gtk/global_menu_bar.cc > File chrome/browser/ui/gtk/global_menu_bar.cc (right): > > http://codereview.chromium.org/6840068/diff/18001/chrome/browser/ui/gtk/global_menu_bar.cc#newcode106 ...
9 years, 8 months ago (2011-04-19 20:13:44 UTC) #14
Elliot Glaysher
On 2011/04/19 20:13:44, Evan Stade wrote: > If that's the case, wouldn't it be better ...
9 years, 8 months ago (2011-04-19 20:26:06 UTC) #15
Evan Stade
On 2011/04/19 20:26:06, Elliot Glaysher wrote: > On 2011/04/19 20:13:44, Evan Stade wrote: > > ...
9 years, 8 months ago (2011-04-19 20:54:14 UTC) #16
Elliot Glaysher
I've overhauled menu construction to use ui::SimpleMenuModels. I factored out common menu construction code so ...
9 years, 8 months ago (2011-04-20 20:13:52 UTC) #17
Evan Stade
looking better http://codereview.chromium.org/6840068/diff/18003/chrome/browser/ui/gtk/global_menu_bar.h File chrome/browser/ui/gtk/global_menu_bar.h (right): http://codereview.chromium.org/6840068/diff/18003/chrome/browser/ui/gtk/global_menu_bar.h#newcode35 chrome/browser/ui/gtk/global_menu_bar.h:35: public MenuCreator, do you think it would ...
9 years, 8 months ago (2011-04-20 22:52:10 UTC) #18
Elliot Glaysher
http://codereview.chromium.org/6840068/diff/18003/chrome/browser/ui/gtk/global_menu_bar.h File chrome/browser/ui/gtk/global_menu_bar.h (right): http://codereview.chromium.org/6840068/diff/18003/chrome/browser/ui/gtk/global_menu_bar.h#newcode35 chrome/browser/ui/gtk/global_menu_bar.h:35: public MenuCreator, On 2011/04/20 22:52:10, Evan Stade wrote: > ...
9 years, 8 months ago (2011-04-25 18:24:47 UTC) #19
Evan Stade
I don't see this code as more complex. I think it's more extensible and it ...
9 years, 8 months ago (2011-04-25 20:08:22 UTC) #20
Elliot Glaysher
I've re-uploaded a copy of the previous code I intend to commit. (With additions to ...
9 years, 8 months ago (2011-04-25 22:17:24 UTC) #21
Evan Stade
http://codereview.chromium.org/6840068/diff/12032/chrome/browser/ui/gtk/global_history_menu.cc File chrome/browser/ui/gtk/global_history_menu.cc (right): http://codereview.chromium.org/6840068/diff/12032/chrome/browser/ui/gtk/global_history_menu.cc#newcode186 chrome/browser/ui/gtk/global_history_menu.cc:186: history_service_->QuerySegmentUsageSince( why don't you use TopSites?
9 years, 8 months ago (2011-04-25 23:11:41 UTC) #22
Elliot Glaysher
http://codereview.chromium.org/6840068/diff/12032/chrome/browser/ui/gtk/global_history_menu.cc File chrome/browser/ui/gtk/global_history_menu.cc (right): http://codereview.chromium.org/6840068/diff/12032/chrome/browser/ui/gtk/global_history_menu.cc#newcode186 chrome/browser/ui/gtk/global_history_menu.cc:186: history_service_->QuerySegmentUsageSince( On 2011/04/25 23:11:41, Evan Stade wrote: > why ...
9 years, 8 months ago (2011-04-25 23:27:49 UTC) #23
Evan Stade
9 years, 8 months ago (2011-04-25 23:33:17 UTC) #24
lgtm

Powered by Google App Engine
This is Rietveld 408576698