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 int get status(); | 9 int get status(); |
10 | 10 |
| 11 void abort(); |
| 12 |
11 void addEventListener(String type, EventListener listener, [bool useCapture]); | 13 void addEventListener(String type, EventListener listener, [bool useCapture]); |
12 | 14 |
13 bool dispatchEvent(Event evt); | 15 bool dispatchEvent(Event evt); |
14 | 16 |
15 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 17 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
16 | 18 |
17 void swapCache(); | 19 void swapCache(); |
18 | 20 |
19 void update(); | 21 void update(); |
20 } | 22 } |
21 | 23 |
22 interface DOMApplicationCache extends ApplicationCache { | 24 interface DOMApplicationCache extends ApplicationCache { |
23 | 25 |
24 static final int CHECKING = 2; | 26 static final int CHECKING = 2; |
25 | 27 |
26 static final int DOWNLOADING = 3; | 28 static final int DOWNLOADING = 3; |
27 | 29 |
28 static final int IDLE = 1; | 30 static final int IDLE = 1; |
29 | 31 |
30 static final int OBSOLETE = 5; | 32 static final int OBSOLETE = 5; |
31 | 33 |
32 static final int UNCACHED = 0; | 34 static final int UNCACHED = 0; |
33 | 35 |
34 static final int UPDATEREADY = 4; | 36 static final int UPDATEREADY = 4; |
35 } | 37 } |
OLD | NEW |