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-05-21 17:55:40 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-21 17:55:40 +0000
commit9d8ad763d1cc3b0665f6feb9bf66b4f6480a4ace (patch)
treeba305bd7e284e3fc6362478511bec15cc74b9db6 /chrome/browser/gtk/download_item_gtk.h
parent66556c41055ac04e7adbbf47b2578e2ca389a1be (diff)
downloadchromium_src-9d8ad763d1cc3b0665f6feb9bf66b4f6480a4ace.zip
chromium_src-9d8ad763d1cc3b0665f6feb9bf66b4f6480a4ace.tar.gz
chromium_src-9d8ad763d1cc3b0665f6feb9bf66b4f6480a4ace.tar.bz2
Activate download shelf button while the menu is showing.
TEST=download something. Press the down arrow button on the right of the item. A menu should popup and the button should appear to depress. The button should pop back when you close the menu (either by clicking away from it or by choosing an item in it). Review URL: http://codereview.chromium.org/113684 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/download_item_gtk.h')
-rw-r--r--chrome/browser/gtk/download_item_gtk.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/gtk/download_item_gtk.h b/chrome/browser/gtk/download_item_gtk.h
index fd21680..0a8a09cd 100644
--- a/chrome/browser/gtk/download_item_gtk.h
+++ b/chrome/browser/gtk/download_item_gtk.h
@@ -42,6 +42,8 @@ class DownloadItemGtk : public DownloadItem::Observer,
void OnLoadIconComplete(IconManager::Handle handle, SkBitmap* icon_bitmap);
private:
+ friend class DownloadShelfContextMenuGtk;
+
// Functions for controlling the progress animation.
// Repaint the download progress.
void UpdateDownloadProgress();
@@ -103,6 +105,10 @@ class DownloadItemGtk : public DownloadItem::Observer,
// The widget that creates a dropdown menu when pressed.
GtkWidget* menu_button_;
+ // Whether the menu is currently showing for |menu_button_|. Affects how we
+ // draw the button.
+ bool menu_showing_;
+
// The widget that contains the animation progress and the file's icon
// (as well as the complete animation).
GtkWidget* progress_area_;