OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 interface MessagePort extends EventTarget { |
| 8 |
| 9 MessagePortEvents get on(); |
| 10 |
| 11 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 12 |
| 13 void close(); |
| 14 |
| 15 bool _dispatchEvent(Event evt); |
| 16 |
| 17 void postMessage(String message, [List messagePorts]); |
| 18 |
| 19 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
| 20 |
| 21 void start(); |
| 22 |
| 23 void webkitPostMessage(String message, [List transfer]); |
| 24 } |
| 25 |
| 26 interface MessagePortEvents extends Events { |
| 27 |
| 28 EventListenerList get message(); |
| 29 } |
OLD | NEW |