diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 19:58:03 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-07 19:58:03 +0000 |
commit | 45e3c12431d29fc90143a03b0b318f4cf2021b4e (patch) | |
tree | e1b4009b34c64f0d2d6d60200928241910e651e3 /chrome/browser/gtk/download_item_gtk.h | |
parent | d3278a9a559f409e717c70fa926bdd3f9f39e486 (diff) | |
download | chromium_src-45e3c12431d29fc90143a03b0b318f4cf2021b4e.zip chromium_src-45e3c12431d29fc90143a03b0b318f4cf2021b4e.tar.gz chromium_src-45e3c12431d29fc90143a03b0b318f4cf2021b4e.tar.bz2 |
Disables the download item on the download-shelf when the file is opened.
This is to mitigate against multiple clicks when a file takes some time to show anything to the user when opened (typically a setup.exe).
By changing the title and disabling the button, we indicate to the user that an action was taken.
BUG=7264
TEST=Download a file (image for example). In the download shelf, press the download item. The download item text should change to "Opening..." and it should be disabled (not responsive to clicks/drag and drops).
Review URL: http://codereview.chromium.org/58014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13273 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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/gtk/download_item_gtk.h b/chrome/browser/gtk/download_item_gtk.h index 9495a97..4c6bd76 100644 --- a/chrome/browser/gtk/download_item_gtk.h +++ b/chrome/browser/gtk/download_item_gtk.h @@ -26,6 +26,7 @@ class DownloadItemGtk : DownloadItem::Observer { // DownloadItem::Observer implementation virtual void OnDownloadUpdated(DownloadItem* download); + virtual void OnDownloadOpened(DownloadItem* download) { } private: static void InitNineBoxes(); |