зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1557490 - Remove the nsIUpdatePrompt interface. r=bytesized
It isn't necessary and isn't used consistently Differential Revision: https://phabricator.services.mozilla.com/D34043 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
0cccf3e16e
Коммит
10f14122a5
|
@ -4672,29 +4672,4 @@ Downloader.prototype = {
|
|||
Ci.nsIInterfaceRequestor]),
|
||||
};
|
||||
|
||||
/**
|
||||
* UpdatePrompt
|
||||
* An object which can prompt the user with information about updates, request
|
||||
* action, etc. Embedding clients can override this component with one that
|
||||
* invokes a native front end.
|
||||
* @constructor
|
||||
*/
|
||||
function UpdatePrompt() {
|
||||
}
|
||||
UpdatePrompt.prototype = {
|
||||
/**
|
||||
* See nsIUpdateService.idl
|
||||
*/
|
||||
showUpdateHistory: function UP_showUpdateHistory(parent) {
|
||||
let uri = "chrome://mozapps/content/update/history.xul";
|
||||
let features = "chrome,centerscreen,resizable=no,titlebar,toolbar=no,dialog=yes,modal";
|
||||
Services.ww.openWindow(parent, uri, "Update:Elevation", features, null);
|
||||
},
|
||||
|
||||
classDescription: "Update Prompt",
|
||||
contractID: "@mozilla.org/updates/update-prompt;1",
|
||||
classID: Components.ID("{27ABA825-35B5-4018-9FDD-F99250A0E722}"),
|
||||
QueryInterface: ChromeUtils.generateQI([Ci.nsIUpdatePrompt]),
|
||||
};
|
||||
|
||||
var EXPORTED_SYMBOLS = ["UpdateService", "Checker", "UpdatePrompt", "UpdateManager"];
|
||||
var EXPORTED_SYMBOLS = ["UpdateService", "Checker", "UpdateManager"];
|
||||
|
|
|
@ -23,12 +23,6 @@ Classes = [
|
|||
'jsm': 'resource://gre/modules/UpdateService.jsm',
|
||||
'constructor': 'Checker',
|
||||
},
|
||||
{
|
||||
'cid': '{27ABA825-35B5-4018-9FDD-F99250A0E722}',
|
||||
'contract_ids': ['@mozilla.org/updates/update-prompt;1'],
|
||||
'jsm': 'resource://gre/modules/UpdateService.jsm',
|
||||
'constructor': 'UpdatePrompt',
|
||||
},
|
||||
|
||||
{
|
||||
'cid': '{e43b0010-04ba-4da6-b523-1f92580bc150}',
|
||||
|
|
|
@ -477,18 +477,3 @@ interface nsIUpdateManager : nsISupports
|
|||
*/
|
||||
void cleanupActiveUpdate();
|
||||
};
|
||||
|
||||
/**
|
||||
* An interface describing an object that can show various kinds of Update
|
||||
* notification UI to the user.
|
||||
*/
|
||||
[scriptable, uuid(cee3bd60-c564-42ff-a2bf-d442cb15f75c)]
|
||||
interface nsIUpdatePrompt : nsISupports
|
||||
{
|
||||
/**
|
||||
* Shows a list of all updates installed to date.
|
||||
* @param parent
|
||||
* An nsIDOMWindow to set as the parent for this window. Can be null.
|
||||
*/
|
||||
void showUpdateHistory(in nsIDOMWindow parent);
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче