Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: client/html/generated/html/dartium/DOMApplicationCache.dart

Issue 9623017: Refactor the event-generation code to locate it in systemhtml.py. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 class _DOMApplicationCacheImpl extends _EventTargetImpl implements DOMApplicatio nCache { 2 class _DOMApplicationCacheImpl extends _EventTargetImpl implements DOMApplicatio nCache {
3 _DOMApplicationCacheImpl._wrap(ptr) : super._wrap(ptr); 3 _DOMApplicationCacheImpl._wrap(ptr) : super._wrap(ptr);
4 4
5 int get status() => _wrap(_ptr.status);
6
7 _DOMApplicationCacheEventsImpl get on() { 5 _DOMApplicationCacheEventsImpl get on() {
8 if (_on == null) _on = new _DOMApplicationCacheEventsImpl(this); 6 if (_on == null) _on = new _DOMApplicationCacheEventsImpl(this);
9 return _on; 7 return _on;
10 } 8 }
11 9
10 int get status() => _wrap(_ptr.status);
11
12 void abort() { 12 void abort() {
13 _ptr.abort(); 13 _ptr.abort();
14 return; 14 return;
15 } 15 }
16 16
17 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) { 17 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) {
18 if (useCapture === null) { 18 if (useCapture === null) {
19 _ptr.addEventListener(_unwrap(type), _unwrap(listener)); 19 _ptr.addEventListener(_unwrap(type), _unwrap(listener));
20 return; 20 return;
21 } else { 21 } else {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 EventListenerList get error() => _get('error'); 61 EventListenerList get error() => _get('error');
62 62
63 EventListenerList get noUpdate() => _get('noupdate'); 63 EventListenerList get noUpdate() => _get('noupdate');
64 64
65 EventListenerList get obsolete() => _get('obsolete'); 65 EventListenerList get obsolete() => _get('obsolete');
66 66
67 EventListenerList get progress() => _get('progress'); 67 EventListenerList get progress() => _get('progress');
68 68
69 EventListenerList get updateReady() => _get('updateready'); 69 EventListenerList get updateReady() => _get('updateready');
70 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698