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

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

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (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
(Empty)
1
2 class _EventSourceImpl extends _EventTargetImpl implements EventSource {
3 _EventSourceImpl._wrap(ptr) : super._wrap(ptr);
4
5 String get URL() => _wrap(_ptr.URL);
6
7 int get readyState() => _wrap(_ptr.readyState);
8
9 String get url() => _wrap(_ptr.url);
10
11 _EventSourceEventsImpl get on() {
12 if (_on == null) _on = new _EventSourceEventsImpl(this);
13 return _on;
14 }
15
16 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) {
17 if (useCapture === null) {
18 _ptr.addEventListener(_unwrap(type), _unwrap(listener));
19 return;
20 } else {
21 _ptr.addEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture ));
22 return;
23 }
24 }
25
26 void close() {
27 _ptr.close();
28 return;
29 }
30
31 bool _dispatchEvent(Event evt) {
32 return _wrap(_ptr.dispatchEvent(_unwrap(evt)));
33 }
34
35 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) {
36 if (useCapture === null) {
37 _ptr.removeEventListener(_unwrap(type), _unwrap(listener));
38 return;
39 } else {
40 _ptr.removeEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapt ure));
41 return;
42 }
43 }
44 }
45
46 class _EventSourceEventsImpl extends _EventsImpl implements EventSourceEvents {
47 _EventSourceEventsImpl(_ptr) : super(_ptr);
48
49 EventListenerList get error() => _get('error');
50
51 EventListenerList get message() => _get('message');
52
53 EventListenerList get open() => _get('open');
54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698