From 1da6992c3661849b2698860b17d7e41b4e7af3d1 Mon Sep 17 00:00:00 2001 From: Mark Finkle Date: Mon, 7 Jun 2010 15:46:54 -0400 Subject: [PATCH] Bug 570156 - Convert download dialog to a nsIPromptService prompt [r=mbrubeck] --- mobile/chrome/content/browser.js | 39 ------------- mobile/chrome/content/browser.xul | 12 ---- mobile/components/HelperAppDialog.js | 55 +++++++++++++++++-- mobile/locales/en-US/chrome/browser.dtd | 5 -- .../locales/en-US/chrome/browser.properties | 8 +++ mobile/themes/hildon/platform.css | 1 + 6 files changed, 59 insertions(+), 61 deletions(-) diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index 5c01c771cdf..07d67760b38 100644 --- a/mobile/chrome/content/browser.js +++ b/mobile/chrome/content/browser.js @@ -2718,45 +2718,6 @@ var AlertsHelper = { } }; -var HelperAppDialog = { - _launcher: null, - _container: null, - - show: function had_show(aLauncher) { - this._launcher = aLauncher; - document.getElementById("helperapp-target").value = this._launcher.suggestedFileName; - - if (!this._launcher.MIMEInfo.hasDefaultHandler) - document.getElementById("helperapp-open").disabled = true; - - this._container = document.getElementById("helperapp-container"); - this._container.hidden = false; - - let rect = this._container.getBoundingClientRect(); - this._container.top = (window.innerHeight - rect.height) / 2; - this._container.left = (window.innerWidth - rect.width) / 2; - - BrowserUI.pushPopup(this, this._container); - }, - - save: function had_save() { - this._launcher.saveToDisk(null, false); - this.hide(); - }, - - open: function had_open() { - this._launcher.launchWithApplication(null, false); - this.hide(); - }, - - hide: function had_hide() { - document.getElementById("helperapp-target").value = ""; - this._container.hidden = true; - - BrowserUI.popPopup(); - } -}; - function ProgressController(tab) { this._tab = tab; diff --git a/mobile/chrome/content/browser.xul b/mobile/chrome/content/browser.xul index bb4a0b8b8c5..1304d0b4002 100644 --- a/mobile/chrome/content/browser.xul +++ b/mobile/chrome/content/browser.xul @@ -497,18 +497,6 @@ - -