From 08f75ed78a7f1823b850aa8cc0c90d4f760fc6ca Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Tue, 21 Apr 2009 17:12:53 +0000 Subject: Add open/close animations to infobar, download shelf. Animations are implemented by packing the native widget structure into a GtkFixed which resizes and moves its contents around based on AnimationDelegate callbacks. Review URL: http://codereview.chromium.org/88005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14116 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/download_shelf_gtk.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'chrome/browser/gtk/download_shelf_gtk.h') diff --git a/chrome/browser/gtk/download_shelf_gtk.h b/chrome/browser/gtk/download_shelf_gtk.h index 78297d1..76ff640 100644 --- a/chrome/browser/gtk/download_shelf_gtk.h +++ b/chrome/browser/gtk/download_shelf_gtk.h @@ -11,11 +11,13 @@ #include "base/scoped_ptr.h" #include "chrome/browser/download/download_shelf.h" +#include "chrome/common/owned_widget_gtk.h" class BaseDownloadItemModel; class CustomDrawButton; class DownloadItemGtk; class LinkButtonGtk; +class SlideAnimatorGtk; class DownloadShelfGtk : public DownloadShelf { public: @@ -28,20 +30,17 @@ class DownloadShelfGtk : public DownloadShelf { virtual bool IsShowing() const; private: - // Show the shelf. - void Show(); - - // Hide the shelf. - void Hide(); - static void OnButtonClick(GtkWidget* button, DownloadShelfGtk* toolbar); + // The top level widget of the shelf. + scoped_ptr slide_widget_; + // |hbox_| holds the download items and buttons of the shelf. GtkWidget* hbox_; - // |shelf_| is the highest level widget of the shelf. See the constructor + // |shelf_| is the second highest level widget. See the constructor // for an explanation of the widget layout. - GtkWidget* shelf_; + OwnedWidgetGtk shelf_; // This hbox holds the link text and download icon. It also holds the // distinction of being the leftmost non-download item widget on the shelf. -- cgit v1.1