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.cc | |
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.cc')
-rw-r--r-- | chrome/browser/gtk/bookmark_bar_gtk.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.cc b/chrome/browser/gtk/bookmark_bar_gtk.cc index 8c83b40..abfe6d0 100644 --- a/chrome/browser/gtk/bookmark_bar_gtk.cc +++ b/chrome/browser/gtk/bookmark_bar_gtk.cc @@ -198,6 +198,14 @@ void BookmarkBarGtk::Hide() { gtk_widget_hide(bookmark_hbox_.get()); } +int BookmarkBarGtk::GetHeight() { + return bookmark_hbox_.get()->allocation.height; +} + +bool BookmarkBarGtk::IsClosing() { + return slide_animation_->IsClosing(); +} + bool BookmarkBarGtk::OnNewTabPage() { return (browser_ && browser_->GetSelectedTabContents() && browser_->GetSelectedTabContents()->IsBookmarkBarAlwaysVisible()); |