OLD | NEW |
(Empty) | |
| 1 |
| 2 class _DOMApplicationCacheImpl extends _EventTargetImpl implements DOMApplicatio
nCache native "*DOMApplicationCache" { |
| 3 |
| 4 static final int CHECKING = 2; |
| 5 |
| 6 static final int DOWNLOADING = 3; |
| 7 |
| 8 static final int IDLE = 1; |
| 9 |
| 10 static final int OBSOLETE = 5; |
| 11 |
| 12 static final int UNCACHED = 0; |
| 13 |
| 14 static final int UPDATEREADY = 4; |
| 15 |
| 16 final int status; |
| 17 |
| 18 _DOMApplicationCacheEventsImpl get on() => |
| 19 new _DOMApplicationCacheEventsImpl(this); |
| 20 |
| 21 void abort() native; |
| 22 |
| 23 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) native "this.addEventListener(type, listener, useCapture);"; |
| 24 |
| 25 bool _dispatchEvent(_EventImpl evt) native "return this.dispatchEvent(evt);"; |
| 26 |
| 27 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) native "this.removeEventListener(type, listener, useCapture);"; |
| 28 |
| 29 void swapCache() native; |
| 30 |
| 31 void update() native; |
| 32 } |
| 33 |
| 34 class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicati
onCacheEvents { |
| 35 _DOMApplicationCacheEventsImpl(_ptr) : super(_ptr); |
| 36 |
| 37 EventListenerList get cached() => _get('cached'); |
| 38 |
| 39 EventListenerList get checking() => _get('checking'); |
| 40 |
| 41 EventListenerList get downloading() => _get('downloading'); |
| 42 |
| 43 EventListenerList get error() => _get('error'); |
| 44 |
| 45 EventListenerList get noUpdate() => _get('noupdate'); |
| 46 |
| 47 EventListenerList get obsolete() => _get('obsolete'); |
| 48 |
| 49 EventListenerList get progress() => _get('progress'); |
| 50 |
| 51 EventListenerList get updateReady() => _get('updateready'); |
| 52 } |
OLD | NEW |