summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/downloads_dom_handler.h
diff options
context:
space:
mode:
authormhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 02:54:54 +0000
committermhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 02:54:54 +0000
commitd9013fffb12777b7e6e0a61d5adcbd1c2c21736b (patch)
treed938a84224af1ef97810a4cc28df6bccb149e589 /chrome/browser/dom_ui/downloads_dom_handler.h
parent47867d38b6a879ac715780d69efe1e072dd32bf0 (diff)
downloadchromium_src-d9013fffb12777b7e6e0a61d5adcbd1c2c21736b.zip
chromium_src-d9013fffb12777b7e6e0a61d5adcbd1c2c21736b.tar.gz
chromium_src-d9013fffb12777b7e6e0a61d5adcbd1c2c21736b.tar.bz2
Add "Remove from list" for each download in domui page.
A "Remove from list" link would be added to the download items and once clicked, it will remove it from the shelf and list. BUG=60 (http://crbug.com/60) TEST=Download a file from the net, CTRL+J. Click on "Remove from list". The item removes from the list and download shelf. Review URL: http://codereview.chromium.org/155750 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22138 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/downloads_dom_handler.h')
-rw-r--r--chrome/browser/dom_ui/downloads_dom_handler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/downloads_dom_handler.h b/chrome/browser/dom_ui/downloads_dom_handler.h
index a0158c4..cb5063e 100644
--- a/chrome/browser/dom_ui/downloads_dom_handler.h
+++ b/chrome/browser/dom_ui/downloads_dom_handler.h
@@ -58,6 +58,10 @@ class DownloadsDOMHandler : public DOMMessageHandler,
// Callback for the "pause" message - pauses the file download.
void HandlePause(const Value* value);
+ // Callback for the "remove" message - removes the file download from shelf
+ // and list.
+ void HandleRemove(const Value* value);
+
// Callback for the "cancel" message - cancels the download.
void HandleCancel(const Value* value);