Bug 697078 - Add a toast notification indicating start of download on download start [r=wesj]
authorMark Finkle <mfinkle@mozilla.com>
Wed, 26 Oct 2011 14:32:18 -0400
changeset 83277 5a87519d61739c25e3f1b46cf61698541859945d
parent 83276 186015786b5a81e81c489e76379f39e1e964de17
child 83278 5bd3a03bc11b1da3fa102eaefb7b7824bb140adb
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswesj
bugs697078
milestone10.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 697078 - Add a toast notification indicating start of download on download start [r=wesj]
mobile/chrome/content/downloads.js
mobile/locales/en-US/chrome/browser.properties
--- a/mobile/chrome/content/downloads.js
+++ b/mobile/chrome/content/downloads.js
@@ -127,16 +127,18 @@ var Downloads = {
     let msgKey = "";
     if (aTopic == "dl-start") {
       msgKey = "alertDownloadsStart";
       if (!this._progressAlert) {
         if (!this._dlmgr)
           this._dlmgr = Cc["@mozilla.org/download-manager;1"].getService(Ci.nsIDownloadManager);
         this._progressAlert = new AlertDownloadProgressListener();
         this._dlmgr.addListener(this._progressAlert);
+
+        NativeWindow.toast.show(Strings.browser.GetStringFromName("alertDownloadsToast"), "long");
       }
     } else if (aTopic == "dl-done") {
       msgKey = "alertDownloadsDone";
     }
 
     if (msgKey) {
       let download = aSubject.QueryInterface(Ci.nsIDownload);
       this.showAlert(download, Strings.browser.formatStringFromName(msgKey, [download.displayName], 1));
--- a/mobile/locales/en-US/chrome/browser.properties
+++ b/mobile/locales/en-US/chrome/browser.properties
@@ -102,16 +102,17 @@ alertLockScreen.unlocked=Unlocked
 alertAddonsDisabled=#1 incompatible add-on was disabled;#1 incompatible add-ons were disabled
 
 alertDownloads=Downloads
 alertDownloadsStart=Downloading: %S
 alertDownloadsDone=%S has finished downloading
 alertCantOpenDownload=Can't open file. Tap to save it.
 alertDownloadsSize=Download too big
 alertDownloadsNoSpace=Not enough storage space
+alertDownloadsToast=Download started…
 
 downloadCancelPromptTitle=Cancel Download
 downloadCancelPromptMessage=Do you want to cancel this download?
 
 # Notifications
 notificationRestart.normal=Restart to complete changes.
 notificationRestart.update=Add-ons updated. Restart to complete changes.
 notificationRestart.blocked=Unsafe add-ons installed. Restart to disable.