summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/download_item_gtk.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-06 00:59:22 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-06 00:59:22 +0000
commit001c3c0253b58b7d9ce84d90be76a0f56645688d (patch)
tree257ad61b1d394e19284907857b30d811d26f3716 /chrome/browser/gtk/download_item_gtk.h
parent6b9980acad8f549a03b3c1df844fb803ac2439c8 (diff)
downloadchromium_src-001c3c0253b58b7d9ce84d90be76a0f56645688d.zip
chromium_src-001c3c0253b58b7d9ce84d90be76a0f56645688d.tar.gz
chromium_src-001c3c0253b58b7d9ce84d90be76a0f56645688d.tar.bz2
Create a dropdown menu for the GTK download shelf.
Review URL: http://codereview.chromium.org/39236 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/download_item_gtk.h')
-rw-r--r--chrome/browser/gtk/download_item_gtk.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/gtk/download_item_gtk.h b/chrome/browser/gtk/download_item_gtk.h
index d65f840..5044a25 100644
--- a/chrome/browser/gtk/download_item_gtk.h
+++ b/chrome/browser/gtk/download_item_gtk.h
@@ -10,6 +10,7 @@
#include "base/scoped_ptr.h"
class BaseDownloadItemModel;
+class DownloadShelfContextMenuGtk;
class NineBox;
class DownloadItemGtk {
@@ -28,6 +29,10 @@ class DownloadItemGtk {
static gboolean OnExpose(GtkWidget* widget, GdkEventExpose* e,
DownloadItemGtk* download_item);
+ static gboolean OnMenuButtonPressEvent(GtkWidget* button,
+ GdkEvent* event,
+ DownloadItemGtk* item);
+
// Nineboxes for the body area.
static NineBox* body_nine_box_normal_;
static NineBox* body_nine_box_prelight_;
@@ -48,6 +53,10 @@ class DownloadItemGtk {
// The widget that creates a dropdown menu when pressed.
GtkWidget* menu_button_;
+ // The menu that pops down when the user presses |menu_button_|. We do not
+ // create this until the first time we actually need it.
+ scoped_ptr<DownloadShelfContextMenuGtk> menu_;
+
// The download item model we represent.
scoped_ptr<BaseDownloadItemModel> download_model_;