From f89a6233760f8ca8033265046ed9ea38bbc20bf9 Mon Sep 17 00:00:00 2001 From: "sky@google.com" Date: Wed, 1 Oct 2008 15:21:16 +0000 Subject: Fixes a couple of bookmark bar bugs: . The folders on the bookmark bar now fade in like urls. . You can now middle click on folders to open all URLs. . If you attempt to open a folder with more than 15 urls we'll prompt before openning. BUG=242 529 1295385 TEST=middle click on a folder on the bookmark bar and make sure it opens all tabs in the background. Try this with a folder containing more than 15 bookmarks and make sure you get a message box before asking if you really want to open them all. Review URL: http://codereview.chromium.org/6020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2756 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/bookmark_bar_context_menu_controller.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'chrome/browser/bookmark_bar_context_menu_controller.h') diff --git a/chrome/browser/bookmark_bar_context_menu_controller.h b/chrome/browser/bookmark_bar_context_menu_controller.h index 9332bca..a6fd38a 100644 --- a/chrome/browser/bookmark_bar_context_menu_controller.h +++ b/chrome/browser/bookmark_bar_context_menu_controller.h @@ -7,6 +7,7 @@ #include "chrome/views/chrome_menu.h" #include "chrome/browser/views/bookmark_bar_view.h" +#include "webkit/glue/window_open_disposition.h" class BookmarkNode; class PageNavigator; @@ -17,6 +18,14 @@ class PageNavigator; class BookmarkBarContextMenuController : public ChromeViews::MenuDelegate, public BookmarkBarView::ModelChangedListener { public: + // Recursively opens all bookmarks of |node|. |initial_disposition| dictates + // how the first URL is opened, all subsequent URLs are opened as background + // tabs. + static void OpenAll(HWND parent, + PageNavigator* navigator, + BookmarkNode* node, + WindowOpenDisposition initial_disposition); + BookmarkBarContextMenuController(BookmarkBarView* view, BookmarkNode* node); -- cgit v1.1