summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 19:58:03 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-07 19:58:03 +0000
commit45e3c12431d29fc90143a03b0b318f4cf2021b4e (patch)
treee1b4009b34c64f0d2d6d60200928241910e651e3 /chrome/browser/dom_ui
parentd3278a9a559f409e717c70fa926bdd3f9f39e486 (diff)
downloadchromium_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/dom_ui')
-rw-r--r--chrome/browser/dom_ui/downloads_ui.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/downloads_ui.cc b/chrome/browser/dom_ui/downloads_ui.cc
index 009d65b..3e52879 100644
--- a/chrome/browser/dom_ui/downloads_ui.cc
+++ b/chrome/browser/dom_ui/downloads_ui.cc
@@ -128,6 +128,7 @@ class DownloadsDOMHandler : public DOMMessageHandler,
// DownloadItem::Observer interface
virtual void OnDownloadUpdated(DownloadItem* download);
+ virtual void OnDownloadOpened(DownloadItem* download) { }
// DownloadManager::Observer interface
virtual void ModelChanged();