summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/download_shelf_gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk/download_shelf_gtk.h')
-rw-r--r--chrome/browser/gtk/download_shelf_gtk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/download_shelf_gtk.h b/chrome/browser/gtk/download_shelf_gtk.h
index ae7923b..80d7b85 100644
--- a/chrome/browser/gtk/download_shelf_gtk.h
+++ b/chrome/browser/gtk/download_shelf_gtk.h
@@ -36,6 +36,7 @@ class DownloadShelfGtk : public DownloadShelf,
virtual bool IsClosing() const;
virtual void Show();
virtual void Close();
+ virtual Browser* browser() const { return browser_; }
// Overridden from NotificationObserver:
virtual void Observe(NotificationType type,
@@ -57,6 +58,9 @@ class DownloadShelfGtk : public DownloadShelf,
static void OnButtonClick(GtkWidget* button, DownloadShelfGtk* toolbar);
+ // The browser that owns this download shelf.
+ Browser* browser_;
+
// The top level widget of the shelf.
scoped_ptr<SlideAnimatorGtk> slide_widget_;