Index: Source/modules/permissions/Permissions.idl |
diff --git a/Source/modules/permissions/Permissions.idl b/Source/modules/permissions/Permissions.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4ed87270f7c0faf31f13d2d2411279575a0c2414 |
--- /dev/null |
+++ b/Source/modules/permissions/Permissions.idl |
@@ -0,0 +1,18 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+enum PermissionName { |
+ "geolocation", |
+ "notifications", |
+ "push" |
+}; |
+ |
Peter Beverloo
2014/12/01 11:30:35
Please include a link to the specification in this
mlamouri (slow - plz ping)
2014/12/01 12:36:00
Sure.
|
+[ |
+ Exposed=(Window,Worker), |
+ GarbageCollected, |
+ RuntimeEnabled=Permissions |
+] interface Permissions { |
+ [CallWith=ScriptState] |
+ static Promise<PermissionStatus> query(PermissionName permission); |
Peter Beverloo
2014/12/01 11:30:35
nit: single line
mlamouri (slow - plz ping)
2014/12/01 12:36:00
Done but I think it's really not readable in one l
|
+}; |