summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/bookmark_bar_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 20:24:02 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 20:24:02 +0000
commit44828fa070fd4eb31bde67ccfd346bcb4ca23ce0 (patch)
tree7a35f82d53020fad270244353c4e6deaf044449f /chrome/browser/gtk/bookmark_bar_gtk.h
parentd957e586277fcba73aa00d6e4b3a971a376f22c3 (diff)
downloadchromium_src-44828fa070fd4eb31bde67ccfd346bcb4ca23ce0.zip
chromium_src-44828fa070fd4eb31bde67ccfd346bcb4ca23ce0.tar.gz
chromium_src-44828fa070fd4eb31bde67ccfd346bcb4ca23ce0.tar.bz2
linux: Bookmark bar slide animation.
also improve the look of the instructions label. Review URL: http://codereview.chromium.org/112070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17216 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_bar_gtk.h')
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.h b/chrome/browser/gtk/bookmark_bar_gtk.h
index 3395df1..30898e1 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.h
+++ b/chrome/browser/gtk/bookmark_bar_gtk.h
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include "app/slide_animation.h"
#include "chrome/common/owned_widget_gtk.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
@@ -21,7 +22,8 @@ class NineBox;
class PageNavigator;
class Profile;
-class BookmarkBarGtk : public BookmarkModelObserver {
+class BookmarkBarGtk : public AnimationDelegate,
+ public BookmarkModelObserver {
public:
explicit BookmarkBarGtk(Profile* proifle, Browser* browser);
virtual ~BookmarkBarGtk();
@@ -58,6 +60,10 @@ class BookmarkBarGtk : public BookmarkModelObserver {
// Returns true if the bookmarks bar preference is set to 'always show'.
bool IsAlwaysShown();
+ // AnimationDelegate implementation ------------------------------------------
+ virtual void AnimationProgressed(const Animation* animation);
+ virtual void AnimationEnded(const Animation* animation);
+
private:
// Helper function that sets visual properties of GtkButton |button| to the
// contents of |node|.
@@ -225,6 +231,8 @@ class BookmarkBarGtk : public BookmarkModelObserver {
// Paints the background for our bookmark bar.
scoped_ptr<NineBox> background_ninebox_;
+
+ scoped_ptr<SlideAnimation> slide_animation_;
};
#endif // CHROME_BROWSER_GTK_BOOKMARK_BAR_GTK_H_