summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/slide_animator_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 18:54:11 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 18:54:11 +0000
commit1aab6b89de5989369e1ceecda0a3b6af056e2f89 (patch)
tree2f0c32501a24a81ea94702f4f1c83144959bbc9e /chrome/browser/gtk/slide_animator_gtk.h
parent501093ab1b859c11d1a89b286e46f7fc12eeb9c3 (diff)
downloadchromium_src-1aab6b89de5989369e1ceecda0a3b6af056e2f89.zip
chromium_src-1aab6b89de5989369e1ceecda0a3b6af056e2f89.tar.gz
chromium_src-1aab6b89de5989369e1ceecda0a3b6af056e2f89.tar.bz2
Add new item animation to download shelf.
Also, fix duration and tween type for download shelf open animation. Review URL: http://codereview.chromium.org/88064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/slide_animator_gtk.h')
-rw-r--r--chrome/browser/gtk/slide_animator_gtk.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/gtk/slide_animator_gtk.h b/chrome/browser/gtk/slide_animator_gtk.h
index f884913..054e9ec 100644
--- a/chrome/browser/gtk/slide_animator_gtk.h
+++ b/chrome/browser/gtk/slide_animator_gtk.h
@@ -32,9 +32,15 @@ class SlideAnimatorGtk : public AnimationDelegate {
// |child| is the widget we pack into |widget_|.
// |direction| indicates which side the contents will appear to come from.
+ // |duration| is the duration of the slide in milliseconds, or 0 for default.
+ // |linear| controls how the animation progresses. If true, the
+ // velocity of the slide is constant over time, otherwise it goes a bit faster
+ // at the beginning and slows to a halt.
// |delegate| may be NULL.
SlideAnimatorGtk(GtkWidget* child,
Direction direction,
+ int duration,
+ bool linear,
Delegate* delegate);
virtual ~SlideAnimatorGtk();