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 EventSource extends EventTarget { |
| 8 |
| 9 static final int CLOSED = 2; |
| 10 |
| 11 static final int CONNECTING = 0; |
| 12 |
| 13 static final int OPEN = 1; |
| 14 |
| 15 final String URL; |
| 16 |
| 17 final int readyState; |
| 18 |
| 19 final String url; |
| 20 |
| 21 EventSourceEvents get on(); |
| 22 |
| 23 void _addEventListener(String type, EventListener listener, [bool useCapture])
; |
| 24 |
| 25 void close(); |
| 26 |
| 27 bool _dispatchEvent(Event evt); |
| 28 |
| 29 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e]); |
| 30 } |
| 31 |
| 32 interface EventSourceEvents extends Events { |
| 33 |
| 34 EventListenerList get error(); |
| 35 |
| 36 EventListenerList get message(); |
| 37 |
| 38 EventListenerList get open(); |
| 39 } |
OLD | NEW |