| 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 ApplicationCache extends EventTarget { | 7 interface ApplicationCache extends EventTarget { |
| 8 | 8 |
| 9 EventListener get oncached(); | |
| 10 | |
| 11 void set oncached(EventListener value); | |
| 12 | |
| 13 EventListener get onchecking(); | |
| 14 | |
| 15 void set onchecking(EventListener value); | |
| 16 | |
| 17 EventListener get ondownloading(); | |
| 18 | |
| 19 void set ondownloading(EventListener value); | |
| 20 | |
| 21 EventListener get onerror(); | |
| 22 | |
| 23 void set onerror(EventListener value); | |
| 24 | |
| 25 EventListener get onnoupdate(); | |
| 26 | |
| 27 void set onnoupdate(EventListener value); | |
| 28 | |
| 29 EventListener get onobsolete(); | |
| 30 | |
| 31 void set onobsolete(EventListener value); | |
| 32 | |
| 33 EventListener get onprogress(); | |
| 34 | |
| 35 void set onprogress(EventListener value); | |
| 36 | |
| 37 EventListener get onupdateready(); | |
| 38 | |
| 39 void set onupdateready(EventListener value); | |
| 40 | |
| 41 int get status(); | 9 int get status(); |
| 42 | 10 |
| 43 void addEventListener(String type, EventListener listener, [bool useCapture]); | 11 void addEventListener(String type, EventListener listener, [bool useCapture]); |
| 44 | 12 |
| 45 bool dispatchEvent(Event evt); | 13 bool dispatchEvent(Event evt); |
| 46 | 14 |
| 47 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 15 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
| 48 | 16 |
| 49 void swapCache(); | 17 void swapCache(); |
| 50 | 18 |
| 51 void update(); | 19 void update(); |
| 52 } | 20 } |
| 53 | 21 |
| 54 interface DOMApplicationCache extends ApplicationCache { | 22 interface DOMApplicationCache extends ApplicationCache { |
| 55 | 23 |
| 56 static final int CHECKING = 2; | 24 static final int CHECKING = 2; |
| 57 | 25 |
| 58 static final int DOWNLOADING = 3; | 26 static final int DOWNLOADING = 3; |
| 59 | 27 |
| 60 static final int IDLE = 1; | 28 static final int IDLE = 1; |
| 61 | 29 |
| 62 static final int OBSOLETE = 5; | 30 static final int OBSOLETE = 5; |
| 63 | 31 |
| 64 static final int UNCACHED = 0; | 32 static final int UNCACHED = 0; |
| 65 | 33 |
| 66 static final int UPDATEREADY = 4; | 34 static final int UPDATEREADY = 4; |
| 67 } | 35 } |
| OLD | NEW |