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

Side by Side Diff: client/html/generated/html/dartium/PeerConnection.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 _PeerConnectionImpl extends _DOMTypeBase implements PeerConnection {
3 _PeerConnectionImpl._wrap(ptr) : super._wrap(ptr);
4
5 MediaStreamList get localStreams() => _wrap(_ptr.localStreams);
6
7 EventListener get onaddstream() => _wrap(_ptr.onaddstream);
8
9 void set onaddstream(EventListener value) { _ptr.onaddstream = _unwrap(value); }
10
11 EventListener get onconnecting() => _wrap(_ptr.onconnecting);
12
13 void set onconnecting(EventListener value) { _ptr.onconnecting = _unwrap(value ); }
14
15 EventListener get onmessage() => _wrap(_ptr.onmessage);
16
17 void set onmessage(EventListener value) { _ptr.onmessage = _unwrap(value); }
18
19 EventListener get onopen() => _wrap(_ptr.onopen);
20
21 void set onopen(EventListener value) { _ptr.onopen = _unwrap(value); }
22
23 EventListener get onremovestream() => _wrap(_ptr.onremovestream);
24
25 void set onremovestream(EventListener value) { _ptr.onremovestream = _unwrap(v alue); }
26
27 EventListener get onstatechange() => _wrap(_ptr.onstatechange);
28
29 void set onstatechange(EventListener value) { _ptr.onstatechange = _unwrap(val ue); }
30
31 int get readyState() => _wrap(_ptr.readyState);
32
33 MediaStreamList get remoteStreams() => _wrap(_ptr.remoteStreams);
34
35 void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
36 if (useCapture === null) {
37 _ptr.addEventListener(_unwrap(type), _unwrap(listener));
38 return;
39 } else {
40 _ptr.addEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture ));
41 return;
42 }
43 }
44
45 void addStream(MediaStream stream) {
46 _ptr.addStream(_unwrap(stream));
47 return;
48 }
49
50 void close() {
51 _ptr.close();
52 return;
53 }
54
55 bool dispatchEvent(Event event) {
56 return _wrap(_ptr.dispatchEvent(_unwrap(event)));
57 }
58
59 void processSignalingMessage(String message) {
60 _ptr.processSignalingMessage(_unwrap(message));
61 return;
62 }
63
64 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
65 if (useCapture === null) {
66 _ptr.removeEventListener(_unwrap(type), _unwrap(listener));
67 return;
68 } else {
69 _ptr.removeEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapt ure));
70 return;
71 }
72 }
73
74 void removeStream(MediaStream stream) {
75 _ptr.removeStream(_unwrap(stream));
76 return;
77 }
78
79 void send(String text) {
80 _ptr.send(_unwrap(text));
81 return;
82 }
83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698