From 001c3c0253b58b7d9ce84d90be76a0f56645688d Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Fri, 6 Mar 2009 00:59:22 +0000 Subject: 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 --- chrome/browser/gtk/download_item_gtk.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'chrome/browser/gtk/download_item_gtk.h') 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 menu_; + // The download item model we represent. scoped_ptr download_model_; -- cgit v1.1