| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, 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 // WARNING: Do not edit - generated code. |
| 6 |
| 7 /// @domName DOMApplicationCache |
| 8 interface DOMApplicationCache extends EventTarget { |
| 9 |
| 10 /** |
| 11 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 12 */ |
| 13 DOMApplicationCacheEvents get on(); |
| 14 |
| 15 static final int CHECKING = 2; |
| 16 |
| 17 static final int DOWNLOADING = 3; |
| 18 |
| 19 static final int IDLE = 1; |
| 20 |
| 21 static final int OBSOLETE = 5; |
| 22 |
| 23 static final int UNCACHED = 0; |
| 24 |
| 25 static final int UPDATEREADY = 4; |
| 26 |
| 27 /** @domName DOMApplicationCache.status */ |
| 28 final int status; |
| 29 |
| 30 /** @domName DOMApplicationCache.abort */ |
| 31 void abort(); |
| 32 |
| 33 /** @domName DOMApplicationCache.addEventListener */ |
| 34 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]); |
| 35 |
| 36 /** @domName DOMApplicationCache.dispatchEvent */ |
| 37 bool $dom_dispatchEvent(Event evt); |
| 38 |
| 39 /** @domName DOMApplicationCache.removeEventListener */ |
| 40 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]); |
| 41 |
| 42 /** @domName DOMApplicationCache.swapCache */ |
| 43 void swapCache(); |
| 44 |
| 45 /** @domName DOMApplicationCache.update */ |
| 46 void update(); |
| 47 } |
| 48 |
| 49 interface DOMApplicationCacheEvents extends Events { |
| 50 |
| 51 EventListenerList get cached(); |
| 52 |
| 53 EventListenerList get checking(); |
| 54 |
| 55 EventListenerList get downloading(); |
| 56 |
| 57 EventListenerList get error(); |
| 58 |
| 59 EventListenerList get noUpdate(); |
| 60 |
| 61 EventListenerList get obsolete(); |
| 62 |
| 63 EventListenerList get progress(); |
| 64 |
| 65 EventListenerList get updateReady(); |
| 66 } |
| OLD | NEW |