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

Unified Diff: chrome/browser/views/bookmark_bar_view.h

Issue 39285: Support loading extensions into the bookmark toolbar. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_bar_view.h
===================================================================
--- chrome/browser/views/bookmark_bar_view.h (revision 11270)
+++ chrome/browser/views/bookmark_bar_view.h (working copy)
@@ -7,6 +7,7 @@
#include "chrome/browser/bookmarks/bookmark_drag_data.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/extensions/extensions_service.h"
#include "chrome/common/slide_animation.h"
#include "chrome/views/label.h"
#include "chrome/views/menu.h"
@@ -384,6 +385,11 @@
// throbs.
void StopThrobbing(bool immediate);
+ // Add any extension toolstrips which may be requested by the given
+ // extensions. Views for the toolstrips are inserted after the last bookmark
+ // button. Returns true if there were any new toolstrips added.
+ bool AddExtensionToolstrips(const ExtensionList* extensions);
+
Profile* profile_;
// Used for opening urls.
@@ -436,6 +442,9 @@
// overflow_button_ or a button on the bar.
views::BaseButton* throbbing_view_;
+ // How many extension toolstrips we have showing in the toolbar.
+ int num_extension_toolstrips_;
+
DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
};
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/views/bookmark_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698