diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-01 18:46:37 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-01 18:46:37 +0000 |
commit | 3a1c05aafb9bd86ce88349fb06052792b182c964 (patch) | |
tree | 163906dd98691c278d952e45fd39a3efb94546f3 /chrome/browser/gtk/bookmark_bar_gtk.h | |
parent | e085c30ad5cb73ad9497bcf566d93e48127bc48c (diff) | |
download | chromium_src-3a1c05aafb9bd86ce88349fb06052792b182c964.zip chromium_src-3a1c05aafb9bd86ce88349fb06052792b182c964.tar.gz chromium_src-3a1c05aafb9bd86ce88349fb06052792b182c964.tar.bz2 |
Make the bookmark bar closing animation less janky.
(Forgot to do this when adding the animation.)
BUG=none
TEST=Close the bookmark bar on a page with a dark background/complex elements. There should be very little annoying white stuff at the bottom.
Review URL: http://codereview.chromium.org/118066
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_bar_gtk.h')
-rw-r--r-- | chrome/browser/gtk/bookmark_bar_gtk.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.h b/chrome/browser/gtk/bookmark_bar_gtk.h index 30898e1..66bf3e0 100644 --- a/chrome/browser/gtk/bookmark_bar_gtk.h +++ b/chrome/browser/gtk/bookmark_bar_gtk.h @@ -25,7 +25,7 @@ class Profile; class BookmarkBarGtk : public AnimationDelegate, public BookmarkModelObserver { public: - explicit BookmarkBarGtk(Profile* proifle, Browser* browser); + explicit BookmarkBarGtk(Profile* profile, Browser* browser); virtual ~BookmarkBarGtk(); // Resets the profile. This removes any buttons for the current profile and @@ -57,6 +57,12 @@ class BookmarkBarGtk : public AnimationDelegate, void Show(); void Hide(); + // Get the current height of the bookmark bar. + int GetHeight(); + + // Returns true if the bookmark bar is showing the close animation. + bool IsClosing(); + // Returns true if the bookmarks bar preference is set to 'always show'. bool IsAlwaysShown(); |