| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 { |
| 8 | 8 |
| 9 static final int CLOSED = 2; | 9 static final int CLOSED = 2; |
| 10 | 10 |
| 11 static final int CONNECTING = 0; | 11 static final int CONNECTING = 0; |
| 12 | 12 |
| 13 static final int OPEN = 1; | 13 static final int OPEN = 1; |
| 14 | 14 |
| 15 String get URL(); | 15 String get URL(); |
| 16 | 16 |
| 17 int get readyState(); | 17 int get readyState(); |
| 18 | 18 |
| 19 String get url(); |
| 20 |
| 19 void addEventListener(String type, EventListener listener, [bool useCapture]); | 21 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 20 | 22 |
| 21 void close(); | 23 void close(); |
| 22 | 24 |
| 23 bool dispatchEvent(Event evt); | 25 bool dispatchEvent(Event evt); |
| 24 | 26 |
| 25 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 27 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 26 } | 28 } |
| OLD | NEW |