summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_bar_view.h
diff options
context:
space:
mode:
authornsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 00:23:34 +0000
committernsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-15 00:23:34 +0000
commita1f42985d74de36d1fc4fc173b9f2f7da4391d12 (patch)
tree140ad42c9d736bdd3002fe3df7fe507df63af262 /chrome/browser/views/bookmark_bar_view.h
parentfc2d3fced2e685464564407b14e57077cad3250e (diff)
downloadchromium_src-a1f42985d74de36d1fc4fc173b9f2f7da4391d12.zip
chromium_src-a1f42985d74de36d1fc4fc173b9f2f7da4391d12.tar.gz
chromium_src-a1f42985d74de36d1fc4fc173b9f2f7da4391d12.tar.bz2
Revert change 26184, 26181 and 26178 to fix
the compile error on the toolkit builder. TBR:finnur Review URL: http://codereview.chromium.org/203064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26186 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_bar_view.h')
-rw-r--r--chrome/browser/views/bookmark_bar_view.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/chrome/browser/views/bookmark_bar_view.h b/chrome/browser/views/bookmark_bar_view.h
index 20fcc07..06b44f2 100644
--- a/chrome/browser/views/bookmark_bar_view.h
+++ b/chrome/browser/views/bookmark_bar_view.h
@@ -11,7 +11,6 @@
#include "chrome/browser/extensions/extensions_service.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/views/bookmark_menu_controller_views.h"
-#include "chrome/browser/views/detachable_toolbar_view.h"
#include "chrome/common/notification_registrar.h"
#include "views/controls/button/menu_button.h"
#include "views/controls/label.h"
@@ -34,7 +33,7 @@ class MenuItemView;
// BookmarkBarView shows the bookmarks from a specific Profile. BookmarkBarView
// waits until the HistoryService for the profile has been loaded before
// creating the BookmarkModel.
-class BookmarkBarView : public DetachableToolbarView,
+class BookmarkBarView : public views::View,
#ifdef CHROME_PERSONALIZATION
public ProfileSyncServiceObserver,
#endif
@@ -89,13 +88,6 @@ class BookmarkBarView : public DetachableToolbarView,
// the bookmark bar.
void SetPageNavigator(PageNavigator* navigator);
- // DetachableToolbarView methods:
- virtual bool IsDetached() const;
- virtual bool IsOnTop() const;
- virtual double GetAnimationValue() const {
- return size_animation_->GetCurrentValue();
- }
-
// View methods:
virtual gfx::Size GetPreferredSize();
virtual gfx::Size GetMinimumSize();
@@ -116,6 +108,9 @@ class BookmarkBarView : public DetachableToolbarView,
virtual bool GetAccessibleName(std::wstring* name);
virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
virtual void SetAccessibleName(const std::wstring& name);
+ double GetSizeAnimationValue() const {
+ return size_animation_->GetCurrentValue();
+ }
#ifdef CHROME_PERSONALIZATION
// ProfileSyncServiceObserver method.
@@ -148,11 +143,15 @@ class BookmarkBarView : public DetachableToolbarView,
// Returns the model.
BookmarkModel* GetModel() { return model_; }
+ // Returns true if the bookmark bar is drawn detached from the toolbar. This
+ // can only be true when OnNewTabPage() is true (see below).
+ bool IsDetachedStyle();
+
// Returns true if the bookmarks bar preference is set to 'always show'.
- bool IsAlwaysShown() const;
+ bool IsAlwaysShown();
// True if we're on a page where the bookmarks bar is always visible.
- bool OnNewTabPage() const;
+ bool OnNewTabPage();
// How much we want the bookmark bar to overlap the toolbar. If |return_max|
// is true, we return the maximum overlap rather than the current overlap.