Index: Source/modules/permissions/PermissionStatus.idl |
diff --git a/Source/modules/permissions/PermissionStatus.idl b/Source/modules/permissions/PermissionStatus.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d8e711aff2d8ee676c296e97bc426be863989490 |
--- /dev/null |
+++ b/Source/modules/permissions/PermissionStatus.idl |
@@ -0,0 +1,17 @@ |
+// 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 PermissionState { |
+ "granted", |
+ "denied", |
+ "prompt" |
+}; |
+ |
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.
mlamouri (slow - plz ping)
2014/12/01 12:36:00
Sure.
|
+[ |
+ Exposed=(Window,Worker), |
+ RuntimeEnabled=Permissions, |
+] interface PermissionStatus : EventTarget { |
+ readonly attribute PermissionState status; |
+ attribute EventHandler onchange; |
+}; |