summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/infobar_container_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/infobar_container_gtk.h')
-rw-r--r--chrome/browser/gtk/infobar_container_gtk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/gtk/infobar_container_gtk.h b/chrome/browser/gtk/infobar_container_gtk.h
index 60bd8d0..58e0c52 100644
--- a/chrome/browser/gtk/infobar_container_gtk.h
+++ b/chrome/browser/gtk/infobar_container_gtk.h
@@ -21,7 +21,7 @@ class InfoBarContainerGtk : public NotificationObserver {
virtual ~InfoBarContainerGtk();
// Get the native widget.
- GtkWidget* widget() { return container_.get(); }
+ GtkWidget* widget() const { return container_.get(); }
// Changes the TabContents for which this container is showing InfoBars. Can
// be NULL, in which case we will simply detach ourselves from the old tab
@@ -33,6 +33,10 @@ class InfoBarContainerGtk : public NotificationObserver {
// the InfoBar's close button handler.
void RemoveDelegate(InfoBarDelegate* delegate);
+ // Returns the total pixel height of all infobars in this container that
+ // are currently closing.
+ int TotalHeightOfClosingBars() const;
+
private:
// Overridden from NotificationObserver:
virtual void Observe(NotificationType type,