Bug 1097468 - Part 1: Expose |homescreen-webapps-manage| in Apps.webidl. r=sicking

--HG--
extra : rebase_source : 593d1f1dfc46822a71691369899d51300bcc32f4
This commit is contained in:
Junior Hsu 2015-03-06 18:24:42 +08:00
Родитель 5425d56cb2
Коммит 8fd2b7dc4c
1 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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);