Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3113)

Unified Diff: chrome/browser/gtk/bookmark_bar_gtk.h

Issue 112070: linux: Bookmark bar slide animation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/bookmark_bar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/bookmark_bar_gtk.h
===================================================================
--- chrome/browser/gtk/bookmark_bar_gtk.h (revision 17106)
+++ chrome/browser/gtk/bookmark_bar_gtk.h (working copy)
@@ -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 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 @@
// 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 @@
// 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_
« no previous file with comments | « no previous file | chrome/browser/gtk/bookmark_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698