diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-01 15:21:16 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-01 15:21:16 +0000 |
commit | f89a6233760f8ca8033265046ed9ea38bbc20bf9 (patch) | |
tree | a438abfbbfd918fd0cff1862ab4b26ce7507484c /chrome/browser/bookmark_bar_context_menu_controller.h | |
parent | f9b05c2dd900aa1850111c4a052db0da6e060a5a (diff) | |
download | chromium_src-f89a6233760f8ca8033265046ed9ea38bbc20bf9.zip chromium_src-f89a6233760f8ca8033265046ed9ea38bbc20bf9.tar.gz chromium_src-f89a6233760f8ca8033265046ed9ea38bbc20bf9.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/bookmark_bar_context_menu_controller.h')
-rw-r--r-- | chrome/browser/bookmark_bar_context_menu_controller.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); |