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