OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // https://html.spec.whatwg.org/multipage/comms.html#broadcastchannel |
| 6 |
| 7 [ |
| 8 Constructor(DOMString name), |
| 9 ConstructorCallWith=ExecutionContext, |
| 10 RaisesException=Constructor, |
| 11 RuntimeEnabled=BroadcastChannel, |
| 12 Exposed=(Window,Worker), |
| 13 ActiveScriptWrappable, |
| 14 DependentLifetime, |
| 15 ] interface BroadcastChannel : EventTarget { |
| 16 readonly attribute DOMString name; |
| 17 |
| 18 [RaisesException] void postMessage(any message); |
| 19 void close(); |
| 20 |
| 21 // event handlers |
| 22 attribute EventHandler onmessage; |
| 23 }; |
OLD | NEW |