summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 17:20:45 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 17:20:45 +0000
commit6c2779d1e0fa36723ac97647fce6f3dd013c6c24 (patch)
tree050f45362ed2fbf903b18c248f5068e3fdcf5c59 /chrome/browser/gtk
parent75ae542de5a321e53449c8d5da34ffd519680db5 (diff)
downloadchromium_src-6c2779d1e0fa36723ac97647fce6f3dd013c6c24.zip
chromium_src-6c2779d1e0fa36723ac97647fce6f3dd013c6c24.tar.gz
chromium_src-6c2779d1e0fa36723ac97647fce6f3dd013c6c24.tar.bz2
I missed this file in my last checkin
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/infobar_gtk.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/chrome/browser/gtk/infobar_gtk.h b/chrome/browser/gtk/infobar_gtk.h
index 684fa63..c39fceb 100644
--- a/chrome/browser/gtk/infobar_gtk.h
+++ b/chrome/browser/gtk/infobar_gtk.h
@@ -7,13 +7,14 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
+#include "chrome/browser/gtk/slide_animator_gtk.h"
#include "chrome/browser/tab_contents/infobar_delegate.h"
#include "chrome/common/owned_widget_gtk.h"
class CustomDrawButton;
class InfoBarContainerGtk;
-class InfoBar {
+class InfoBar : public SlideAnimatorGtk::Delegate {
public:
explicit InfoBar(InfoBarDelegate* delegate);
virtual ~InfoBar();
@@ -21,7 +22,7 @@ class InfoBar {
InfoBarDelegate* delegate() const { return delegate_; }
// Get the top level native GTK widget for this infobar.
- GtkWidget* widget() { return widget_.get(); }
+ GtkWidget* widget();
// Set a link to the parent InfoBarContainer. This must be set before the
// InfoBar is added to the view hierarchy.
@@ -42,13 +43,19 @@ class InfoBar {
// is called.
void Close();
+ // SlideAnimatorGtk::Delegate implementation.
+ virtual void Closed();
+
protected:
// Removes our associated InfoBarDelegate from the associated TabContents.
// (Will lead to this InfoBar being closed).
void RemoveInfoBar() const;
- // The top level GTK widget.
- OwnedWidgetGtk widget_;
+ // The top level widget of the infobar.
+ scoped_ptr<SlideAnimatorGtk> slide_widget_;
+
+ // The second highest level widget of the infobar.
+ OwnedWidgetGtk border_bin_;
// The hbox that holds infobar elements (button, text, icon, etc.).
GtkWidget* hbox_;