OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 interface DOMApplicationCacheEvents extends Events { | |
6 EventListenerList get cached(); | |
7 EventListenerList get checking(); | |
8 EventListenerList get downloading(); | |
9 EventListenerList get error(); | |
10 EventListenerList get noUpdate(); | |
11 EventListenerList get obsolete(); | |
12 EventListenerList get progress(); | |
13 EventListenerList get updateReady(); | |
14 } | |
15 | |
16 interface DOMApplicationCache extends EventTarget { | |
17 | |
18 static final int CHECKING = 2; | |
19 | |
20 static final int DOWNLOADING = 3; | |
21 | |
22 static final int IDLE = 1; | |
23 | |
24 static final int OBSOLETE = 5; | |
25 | |
26 static final int UNCACHED = 0; | |
27 | |
28 static final int UPDATEREADY = 4; | |
29 | |
30 int get status(); | |
31 | |
32 void swapCache(); | |
33 | |
34 void update(); | |
35 | |
36 DOMApplicationCacheEvents get on(); | |
37 } | |
OLD | NEW |