OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 interface EventSource extends EventTarget { | 7 interface EventSource extends EventTarget default _EventSourceFactoryProvider { |
| 8 |
| 9 EventSource(String scriptUrl); |
8 | 10 |
9 static final int CLOSED = 2; | 11 static final int CLOSED = 2; |
10 | 12 |
11 static final int CONNECTING = 0; | 13 static final int CONNECTING = 0; |
12 | 14 |
13 static final int OPEN = 1; | 15 static final int OPEN = 1; |
14 | 16 |
15 final String URL; | 17 final String URL; |
16 | 18 |
17 final int readyState; | 19 final int readyState; |
18 | 20 |
19 final String url; | 21 final String url; |
20 | 22 |
21 void addEventListener(String type, EventListener listener, [bool useCapture]); | 23 void addEventListener(String type, EventListener listener, [bool useCapture]); |
22 | 24 |
23 void close(); | 25 void close(); |
24 | 26 |
25 bool dispatchEvent(Event evt); | 27 bool dispatchEvent(Event evt); |
26 | 28 |
27 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 29 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
28 } | 30 } |
OLD | NEW |