Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5168)

Unified Diff: chrome/browser/gtk/download_item_gtk.h

Issue 40139: Put the dropdown menu button on the linux download shelf.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/download_item_gtk.cc » ('j') | chrome/browser/gtk/download_item_gtk.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/download_item_gtk.h
===================================================================
--- chrome/browser/gtk/download_item_gtk.h (revision 10937)
+++ chrome/browser/gtk/download_item_gtk.h (working copy)
@@ -14,20 +14,26 @@
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 @@
// 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_;
« no previous file with comments | « no previous file | chrome/browser/gtk/download_item_gtk.cc » ('j') | chrome/browser/gtk/download_item_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698