| OLD | NEW |
| 1 | 1 |
| 2 class EventSource native "*EventSource" { | 2 class EventSource native "*EventSource" { |
| 3 | 3 |
| 4 static final int CLOSED = 2; |
| 5 |
| 6 static final int CONNECTING = 0; |
| 7 |
| 8 static final int OPEN = 1; |
| 9 |
| 4 String URL; | 10 String URL; |
| 5 | 11 |
| 6 int readyState; | 12 int readyState; |
| 7 | 13 |
| 8 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 14 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 9 | 15 |
| 10 void close() native; | 16 void close() native; |
| 11 | 17 |
| 12 bool dispatchEvent(Event evt) native; | 18 bool dispatchEvent(Event evt) native; |
| 13 | 19 |
| 14 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 20 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 15 | 21 |
| 16 var dartObjectLocalStorage; | 22 var dartObjectLocalStorage; |
| 17 | 23 |
| 18 String get typeName() native; | 24 String get typeName() native; |
| 19 } | 25 } |
| OLD | NEW |