summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_bar_view.h
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 21:50:18 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-09 21:50:18 +0000
commita0810b268b459d6d451882123ad12513dafb11f1 (patch)
tree8fc9f94225c477124ada36efc4dda0b3a67672ea /chrome/browser/views/bookmark_bar_view.h
parent58272e9c823cf9dda2712414d261af85dd8f03a7 (diff)
downloadchromium_src-a0810b268b459d6d451882123ad12513dafb11f1.zip
chromium_src-a0810b268b459d6d451882123ad12513dafb11f1.tar.gz
chromium_src-a0810b268b459d6d451882123ad12513dafb11f1.tar.bz2
Support loading extensions into the bookmark toolbar.
Misc cleanup: - remove duplicate comments on Extension accessors - remove useless function in ExtensionsService Review URL: http://codereview.chromium.org/39285 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11294 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_bar_view.h')
-rw-r--r--chrome/browser/views/bookmark_bar_view.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/views/bookmark_bar_view.h b/chrome/browser/views/bookmark_bar_view.h
index 06b9e6c6..909af16 100644
--- a/chrome/browser/views/bookmark_bar_view.h
+++ b/chrome/browser/views/bookmark_bar_view.h
@@ -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 @@ class BookmarkBarView : public views::View,
// 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 @@ class BookmarkBarView : public views::View,
// 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);
};