diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 17:12:53 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-21 17:12:53 +0000 |
commit | 08f75ed78a7f1823b850aa8cc0c90d4f760fc6ca (patch) | |
tree | f2ac1138b71e215c89d27926a440d8516562e38f /chrome/browser/gtk/download_shelf_gtk.h | |
parent | 9bf98f6112f3780034f8e8e3914f08ac7e5fabd5 (diff) | |
download | chromium_src-08f75ed78a7f1823b850aa8cc0c90d4f760fc6ca.zip chromium_src-08f75ed78a7f1823b850aa8cc0c90d4f760fc6ca.tar.gz chromium_src-08f75ed78a7f1823b850aa8cc0c90d4f760fc6ca.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/gtk/download_shelf_gtk.h')
-rw-r--r-- | chrome/browser/gtk/download_shelf_gtk.h | 15 |
1 files changed, 7 insertions, 8 deletions
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<SlideAnimatorGtk> 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. |