зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1097468 - Part 1: Expose |homescreen-webapps-manage| in Apps.webidl. r=sicking
--HG-- extra : rebase_source : 593d1f1dfc46822a71691369899d51300bcc32f4
This commit is contained in:
Родитель
5425d56cb2
Коммит
8fd2b7dc4c
|
@ -24,7 +24,7 @@ enum LocaleResourceType {
|
|||
[NoInterfaceObject, NavigatorProperty="mozApps",
|
||||
JSImplementation="@mozilla.org/webapps;1"]
|
||||
interface DOMApplicationsRegistry {
|
||||
[CheckPermissions="webapps-manage"]
|
||||
[CheckPermissions="webapps-manage homescreen-webapps-manage"]
|
||||
readonly attribute DOMApplicationsManager mgmt;
|
||||
DOMRequest install(DOMString url, optional InstallParameters params);
|
||||
DOMRequest installPackage(DOMString url, optional InstallParameters params);
|
||||
|
@ -116,16 +116,22 @@ interface DOMApplication : EventTarget {
|
|||
|
||||
[JSImplementation="@mozilla.org/webapps/manager;1",
|
||||
ChromeOnly,
|
||||
CheckPermissions="webapps-manage"]
|
||||
CheckPermissions="webapps-manage homescreen-webapps-manage"]
|
||||
interface DOMApplicationsManager : EventTarget {
|
||||
DOMRequest getAll();
|
||||
|
||||
[CheckPermissions="webapps-manage"]
|
||||
DOMRequest getNotInstalled();
|
||||
[CheckPermissions="webapps-manage"]
|
||||
void applyDownload(DOMApplication app);
|
||||
DOMRequest uninstall(DOMApplication app);
|
||||
|
||||
[CheckPermissions="webapps-manage"]
|
||||
Promise<DOMApplication> import(Blob blob);
|
||||
[CheckPermissions="webapps-manage"]
|
||||
Promise<any> extractManifest(Blob blob);
|
||||
|
||||
[CheckPermissions="webapps-manage"]
|
||||
void setEnabled(DOMApplication app, boolean state);
|
||||
Promise<Blob> getIcon(DOMApplication app, DOMString iconID,
|
||||
optional DOMString entryPoint);
|
||||
|
|
Загрузка…
Ссылка в новой задаче