From 3a1c05aafb9bd86ce88349fb06052792b182c964 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Mon, 1 Jun 2009 18:46:37 +0000 Subject: 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 --- app/slide_animation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/slide_animation.h b/app/slide_animation.h index 4bbcd2e..edb7d57 100644 --- a/app/slide_animation.h +++ b/app/slide_animation.h @@ -74,6 +74,7 @@ class SlideAnimation : public Animation { double GetCurrentValue() const { return value_current_; } bool IsShowing() const { return showing_; } + bool IsClosing() const { return value_end_ < value_current_; } private: // Overridden from Animation. -- cgit v1.1