OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 enum PermissionName { | |
6 "geolocation", | |
7 "notifications", | |
8 "push" | |
9 }; | |
10 | |
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.
| |
11 [ | |
12 Exposed=(Window,Worker), | |
13 GarbageCollected, | |
14 RuntimeEnabled=Permissions | |
15 ] interface Permissions { | |
16 [CallWith=ScriptState] | |
17 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
| |
18 }; | |
OLD | NEW |