summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_util.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-01 16:30:47 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-01 16:30:47 +0000
commit6a7fb04b7475b355cb571c9aca6b192d2a96ca5f (patch)
tree189b6f31c49e34874d3308cbffb9beb6becd8b26 /chrome/browser/download/download_util.h
parentc702d70890ab023ce723dde7aea8c66adb7ef98e (diff)
downloadchromium_src-6a7fb04b7475b355cb571c9aca6b192d2a96ca5f.zip
chromium_src-6a7fb04b7475b355cb571c9aca6b192d2a96ca5f.tar.gz
chromium_src-6a7fb04b7475b355cb571c9aca6b192d2a96ca5f.tar.bz2
Add temporary download progress overlay to the dock icon for the Mac (real UI coming soon), and provide the hooks for the Win7 implementation.
BUG=http://crbug.com/8039 TEST=download; see progress in the dock icon Review URL: http://codereview.chromium.org/545157 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37698 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_util.h')
-rw-r--r--chrome/browser/download/download_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/download/download_util.h b/chrome/browser/download/download_util.h
index 93114fe..f14be9a 100644
--- a/chrome/browser/download/download_util.h
+++ b/chrome/browser/download/download_util.h
@@ -144,6 +144,15 @@ DictionaryValue* CreateDownloadItemValue(DownloadItem* download, int id);
// Get the localized status text for an in-progress download.
std::wstring GetProgressStatusText(DownloadItem* download);
+// Update the application icon to indicate overall download progress.
+// |download_count| is the number of downloads currently in progress. If
+// |progress_known| is false, then at least one download is of indeterminate
+// size and |progress| is invalid, otherwise |progress| indicates the overall
+// download progress (float value from 0..1).
+void UpdateAppIconDownloadProgress(int download_count,
+ bool progress_known,
+ float progress);
+
} // namespace download_util
#endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_