gecko-dev/dom/webidl/Permissions.webidl
Sebastian Hengst 52418f89a7 Backed out 2 changesets (bug 1197461) for various test failures. r=backout on a CLOSED TREE
Backed out changeset d776c61906c1 (bug 1197461)
Backed out changeset c046a81ab5a3 (bug 1197461)
2016-02-15 19:38:11 +01:00

30 lines
757 B
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
* https://w3c.github.io/permissions/#permissions-interface
*/
enum PermissionName {
"geolocation",
"notifications",
"push"
// Unsupported: "midi"
};
dictionary PermissionDescriptor {
required PermissionName name;
};
dictionary PushPermissionDescriptor : PermissionDescriptor {
boolean userVisible = false;
};
[Exposed=(Window)]
interface Permissions {
[Throws]
Promise<PermissionStatus> query(object permission);
};