diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 03:28:22 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 03:28:22 +0000 |
commit | 3a164a1633cc2c8136aa385223a8ebdbda407150 (patch) | |
tree | 67d84aae45d092d6c787426ba53709a225e350c0 /chrome/browser/gtk/download_item_gtk.h | |
parent | 01ac79343211c46314a1fa7fd9d013b6aa683335 (diff) | |
download | chromium_src-3a164a1633cc2c8136aa385223a8ebdbda407150.zip chromium_src-3a164a1633cc2c8136aa385223a8ebdbda407150.tar.gz chromium_src-3a164a1633cc2c8136aa385223a8ebdbda407150.tar.bz2 |
Put the dropdown menu button on the linux download shelf.
Also set the background color.
Also extend NineBox a little bit.
Review URL: http://codereview.chromium.org/40139
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10969 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/download_item_gtk.h')
-rw-r--r-- | chrome/browser/gtk/download_item_gtk.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/chrome/browser/gtk/download_item_gtk.h b/chrome/browser/gtk/download_item_gtk.h index f9b15e8..397e41c 100644 --- a/chrome/browser/gtk/download_item_gtk.h +++ b/chrome/browser/gtk/download_item_gtk.h @@ -14,19 +14,25 @@ class NineBox; class DownloadItemGtk { public: - // DownloadItemGtk takes ownership of |download_item_model|; + // DownloadItemGtk takes ownership of |download_item_model|. DownloadItemGtk(BaseDownloadItemModel* download_item_model, GtkWidget* parent_shelf); private: static void InitNineBoxes(); - static gboolean OnBodyExpose(GtkWidget* widget, GdkEventExpose* e, - DownloadItemGtk* download_item); + static gboolean OnExpose(GtkWidget* widget, GdkEventExpose* e, + DownloadItemGtk* download_item); - static NineBox* nine_box_normal_; - static NineBox* nine_box_prelight_; - static NineBox* nine_box_active_; + // Nineboxes for the body area. + static NineBox* body_nine_box_normal_; + static NineBox* body_nine_box_prelight_; + static NineBox* body_nine_box_active_; + + // Nineboxes for the menu button. + static NineBox* menu_nine_box_normal_; + static NineBox* menu_nine_box_prelight_; + static NineBox* menu_nine_box_active_; // The widget that contains the body and menu dropdown. GtkWidget* hbox_; @@ -35,6 +41,9 @@ class DownloadItemGtk { // animation. GtkWidget* body_; + // The widget that creates a dropdown menu when pressed. + GtkWidget* menu_button_; + // The download item model we represent. scoped_ptr<BaseDownloadItemModel> download_model_; |