OLD | NEW |
(Empty) | |
| 1 |
| 2 class _DOMApplicationCacheImpl extends _EventTargetImpl implements DOMApplicatio
nCache { |
| 3 _DOMApplicationCacheImpl._wrap(ptr) : super._wrap(ptr); |
| 4 |
| 5 int get status() => _wrap(_ptr.status); |
| 6 |
| 7 _DOMApplicationCacheEventsImpl get on() { |
| 8 if (_on == null) _on = new _DOMApplicationCacheEventsImpl(this); |
| 9 return _on; |
| 10 } |
| 11 |
| 12 void abort() { |
| 13 _ptr.abort(); |
| 14 return; |
| 15 } |
| 16 |
| 17 void _addEventListener(String type, EventListener listener, [bool useCapture =
null]) { |
| 18 if (useCapture === null) { |
| 19 _ptr.addEventListener(_unwrap(type), _unwrap(listener)); |
| 20 return; |
| 21 } else { |
| 22 _ptr.addEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture
)); |
| 23 return; |
| 24 } |
| 25 } |
| 26 |
| 27 bool _dispatchEvent(Event evt) { |
| 28 return _wrap(_ptr.dispatchEvent(_unwrap(evt))); |
| 29 } |
| 30 |
| 31 void _removeEventListener(String type, EventListener listener, [bool useCaptur
e = null]) { |
| 32 if (useCapture === null) { |
| 33 _ptr.removeEventListener(_unwrap(type), _unwrap(listener)); |
| 34 return; |
| 35 } else { |
| 36 _ptr.removeEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapt
ure)); |
| 37 return; |
| 38 } |
| 39 } |
| 40 |
| 41 void swapCache() { |
| 42 _ptr.swapCache(); |
| 43 return; |
| 44 } |
| 45 |
| 46 void update() { |
| 47 _ptr.update(); |
| 48 return; |
| 49 } |
| 50 } |
| 51 |
| 52 class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicati
onCacheEvents { |
| 53 _DOMApplicationCacheEventsImpl(_ptr) : super(_ptr); |
| 54 |
| 55 EventListenerList get cached() => _get('cached'); |
| 56 |
| 57 EventListenerList get checking() => _get('checking'); |
| 58 |
| 59 EventListenerList get downloading() => _get('downloading'); |
| 60 |
| 61 EventListenerList get error() => _get('error'); |
| 62 |
| 63 EventListenerList get noUpdate() => _get('noupdate'); |
| 64 |
| 65 EventListenerList get obsolete() => _get('obsolete'); |
| 66 |
| 67 EventListenerList get progress() => _get('progress'); |
| 68 |
| 69 EventListenerList get updateReady() => _get('updateready'); |
| 70 } |
OLD | NEW |