| 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 class DOMApplicationCacheEventsImplementation extends EventsImplementation | |
| 6 implements DOMApplicationCacheEvents { | |
| 7 DOMApplicationCacheEventsImplementation._wrap(ptr) : super._wrap(ptr); | |
| 8 | |
| 9 EventListenerList get cached() => _get('cached'); | |
| 10 EventListenerList get checking() => _get('checking'); | |
| 11 EventListenerList get downloading() => _get('downloading'); | |
| 12 EventListenerList get error() => _get('error'); | |
| 13 EventListenerList get noUpdate() => _get('noupdate'); | |
| 14 EventListenerList get obsolete() => _get('obsolete'); | |
| 15 EventListenerList get progress() => _get('progress'); | |
| 16 EventListenerList get updateReady() => _get('updateready'); | |
| 17 } | |
| 18 | |
| 19 class DOMApplicationCacheWrappingImplementation extends EventTargetWrappingImple
mentation implements DOMApplicationCache { | |
| 20 DOMApplicationCacheWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
| 21 | |
| 22 int get status() => _ptr.status; | |
| 23 | |
| 24 void swapCache() { | |
| 25 _ptr.swapCache(); | |
| 26 } | |
| 27 | |
| 28 void update() { | |
| 29 _ptr.update(); | |
| 30 } | |
| 31 | |
| 32 DOMApplicationCacheEvents get on() { | |
| 33 if (_on === null) { | |
| 34 _on = new DOMApplicationCacheEventsImplementation._wrap(_ptr); | |
| 35 } | |
| 36 return _on; | |
| 37 } | |
| 38 } | |
| OLD | NEW |