diff options
author | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 20:48:14 +0000 |
---|---|---|
committer | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-21 20:48:14 +0000 |
commit | 1ca48cc9a5cc6a20364d02785db22c392b5f3693 (patch) | |
tree | 013dbc1fb9b71d2b758530251080c4844a10c7dc /chrome/browser/dom_ui | |
parent | 5009d3cf8903290b8238c6fcd20b3573d5dad967 (diff) | |
download | chromium_src-1ca48cc9a5cc6a20364d02785db22c392b5f3693.zip chromium_src-1ca48cc9a5cc6a20364d02785db22c392b5f3693.tar.gz chromium_src-1ca48cc9a5cc6a20364d02785db22c392b5f3693.tar.bz2 |
NNTP: Merge the recent activities into one list and show more items
when the section is larger.
Make the window menu look and behave more like a tooltip.
Return more recently closed windows and tabs when using the NNTP.
BUG=16539, 16835, 14963
TEST=Hide and show the tips section. More items (if there are more
items) should be shown. Hover over a closed window and the tooltip
should look like a tooltip on Vista/Win7
Review URL: http://codereview.chromium.org/155865
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21214 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/new_tab_ui.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc index 1787ae5..8f8c6f7 100644 --- a/chrome/browser/dom_ui/new_tab_ui.cc +++ b/chrome/browser/dom_ui/new_tab_ui.cc @@ -1218,12 +1218,13 @@ void RecentlyClosedTabsHandler::TabRestoreServiceChanged( const TabRestoreService::Entries& entries = service->entries(); ListValue list_value; int added_count = 0; + const int max_count = NewTabUI::UseOldNewTabPage() ? 3 : 6; // We filter the list of recently closed to only show 'interesting' entries, // where an interesting entry is either a closed window or a closed tab // whose selected navigation is not the new tab ui. for (TabRestoreService::Entries::const_iterator it = entries.begin(); - it != entries.end() && added_count < 3; ++it) { + it != entries.end() && added_count < max_count; ++it) { TabRestoreService::Entry* entry = *it; DictionaryValue* value = new DictionaryValue(); if ((entry->type == TabRestoreService::TAB && |