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

Side by Side Diff: client/html/generated/html/dartium/Notification.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: Code review changes 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 _NotificationImpl extends _EventTargetImpl implements Notification { 2 class _NotificationImpl extends _EventTargetImpl implements Notification {
3 _NotificationImpl._wrap(ptr) : super._wrap(ptr); 3 _NotificationImpl._wrap(ptr) : super._wrap(ptr);
4 4
5 _NotificationEventsImpl get on() {
6 if (_on == null) _on = new _NotificationEventsImpl(this);
7 return _on;
8 }
9
5 String get dir() => _wrap(_ptr.dir); 10 String get dir() => _wrap(_ptr.dir);
6 11
7 void set dir(String value) { _ptr.dir = _unwrap(value); } 12 void set dir(String value) { _ptr.dir = _unwrap(value); }
8 13
9 String get replaceId() => _wrap(_ptr.replaceId); 14 String get replaceId() => _wrap(_ptr.replaceId);
10 15
11 void set replaceId(String value) { _ptr.replaceId = _unwrap(value); } 16 void set replaceId(String value) { _ptr.replaceId = _unwrap(value); }
12 17
13 _NotificationEventsImpl get on() {
14 if (_on == null) _on = new _NotificationEventsImpl(this);
15 return _on;
16 }
17
18 void cancel() { 18 void cancel() {
19 _ptr.cancel(); 19 _ptr.cancel();
20 return; 20 return;
21 } 21 }
22 22
23 void show() { 23 void show() {
24 _ptr.show(); 24 _ptr.show();
25 return; 25 return;
26 } 26 }
27 } 27 }
28 28
29 class _NotificationEventsImpl extends _EventsImpl implements NotificationEvents { 29 class _NotificationEventsImpl extends _EventsImpl implements NotificationEvents {
30 _NotificationEventsImpl(_ptr) : super(_ptr); 30 _NotificationEventsImpl(_ptr) : super(_ptr);
31 31
32 EventListenerList get click() => _get('click'); 32 EventListenerList get click() => _get('click');
33 33
34 EventListenerList get close() => _get('close'); 34 EventListenerList get close() => _get('close');
35 35
36 EventListenerList get display() => _get('display'); 36 EventListenerList get display() => _get('display');
37 37
38 EventListenerList get error() => _get('error'); 38 EventListenerList get error() => _get('error');
39 39
40 EventListenerList get show() => _get('show'); 40 EventListenerList get show() => _get('show');
41 } 41 }
OLDNEW
« no previous file with comments | « client/html/generated/html/dartium/InputElement.dart ('k') | client/html/generated/html/dartium/SVGElementInstance.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698