OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // https://html.spec.whatwg.org/multipage/comms.html#broadcastchannel | 5 // https://html.spec.whatwg.org/multipage/comms.html#broadcastchannel |
6 | 6 |
7 [ | 7 [ |
8 Constructor(DOMString name), | 8 Constructor(DOMString name), |
9 ConstructorCallWith=ExecutionContext, | 9 ConstructorCallWith=ExecutionContext, |
10 RaisesException=Constructor, | 10 RaisesException=Constructor, |
11 RuntimeEnabled=BroadcastChannel, | 11 RuntimeEnabled=BroadcastChannel, |
12 Exposed=(Window,Worker), | 12 Exposed=(Window,Worker), |
13 ActiveScriptWrappable, | 13 ActiveScriptWrappable, |
14 DependentLifetime, | 14 DependentLifetime, |
15 Measure, | 15 Measure, |
16 ] interface BroadcastChannel : EventTarget { | 16 ] interface BroadcastChannel : EventTarget { |
17 readonly attribute DOMString name; | 17 [Measure] readonly attribute DOMString name; |
18 | 18 |
19 [RaisesException, Measure] void postMessage(any message); | 19 [RaisesException, Measure] void postMessage(any message); |
20 [Measure] void close(); | 20 [Measure] void close(); |
21 | 21 |
22 // event handlers | 22 // event handlers |
23 attribute EventHandler onmessage; | 23 [Measure] attribute EventHandler onmessage; |
24 }; | 24 }; |
OLD | NEW |