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 // WARNING: Do not edit - generated code. | |
6 | |
7 class _PeerConnectionWrappingImplementation extends DOMWrapperBase implements Pe
erConnection { | |
8 _PeerConnectionWrappingImplementation() : super() {} | |
9 | |
10 static create__PeerConnectionWrappingImplementation() native { | |
11 return new _PeerConnectionWrappingImplementation(); | |
12 } | |
13 | |
14 MediaStreamList get localStreams() { return _get_localStreams(this); } | |
15 static MediaStreamList _get_localStreams(var _this) native; | |
16 | |
17 EventListener get onaddstream() { return _get_onaddstream(this); } | |
18 static EventListener _get_onaddstream(var _this) native; | |
19 | |
20 void set onaddstream(EventListener value) { _set_onaddstream(this, value); } | |
21 static void _set_onaddstream(var _this, EventListener value) native; | |
22 | |
23 EventListener get onconnecting() { return _get_onconnecting(this); } | |
24 static EventListener _get_onconnecting(var _this) native; | |
25 | |
26 void set onconnecting(EventListener value) { _set_onconnecting(this, value); } | |
27 static void _set_onconnecting(var _this, EventListener value) native; | |
28 | |
29 EventListener get onmessage() { return _get_onmessage(this); } | |
30 static EventListener _get_onmessage(var _this) native; | |
31 | |
32 void set onmessage(EventListener value) { _set_onmessage(this, value); } | |
33 static void _set_onmessage(var _this, EventListener value) native; | |
34 | |
35 EventListener get onopen() { return _get_onopen(this); } | |
36 static EventListener _get_onopen(var _this) native; | |
37 | |
38 void set onopen(EventListener value) { _set_onopen(this, value); } | |
39 static void _set_onopen(var _this, EventListener value) native; | |
40 | |
41 EventListener get onremovestream() { return _get_onremovestream(this); } | |
42 static EventListener _get_onremovestream(var _this) native; | |
43 | |
44 void set onremovestream(EventListener value) { _set_onremovestream(this, value
); } | |
45 static void _set_onremovestream(var _this, EventListener value) native; | |
46 | |
47 EventListener get onstatechange() { return _get_onstatechange(this); } | |
48 static EventListener _get_onstatechange(var _this) native; | |
49 | |
50 void set onstatechange(EventListener value) { _set_onstatechange(this, value);
} | |
51 static void _set_onstatechange(var _this, EventListener value) native; | |
52 | |
53 int get readyState() { return _get_readyState(this); } | |
54 static int _get_readyState(var _this) native; | |
55 | |
56 MediaStreamList get remoteStreams() { return _get_remoteStreams(this); } | |
57 static MediaStreamList _get_remoteStreams(var _this) native; | |
58 | |
59 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
60 if (useCapture === null) { | |
61 _addEventListener(this, type, listener); | |
62 return; | |
63 } else { | |
64 _addEventListener_2(this, type, listener, useCapture); | |
65 return; | |
66 } | |
67 } | |
68 static void _addEventListener(receiver, type, listener) native; | |
69 static void _addEventListener_2(receiver, type, listener, useCapture) native; | |
70 | |
71 void addStream(MediaStream stream) { | |
72 _addStream(this, stream); | |
73 return; | |
74 } | |
75 static void _addStream(receiver, stream) native; | |
76 | |
77 void close() { | |
78 _close(this); | |
79 return; | |
80 } | |
81 static void _close(receiver) native; | |
82 | |
83 bool dispatchEvent(Event event) { | |
84 return _dispatchEvent(this, event); | |
85 } | |
86 static bool _dispatchEvent(receiver, event) native; | |
87 | |
88 void processSignalingMessage(String message) { | |
89 _processSignalingMessage(this, message); | |
90 return; | |
91 } | |
92 static void _processSignalingMessage(receiver, message) native; | |
93 | |
94 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
95 if (useCapture === null) { | |
96 _removeEventListener(this, type, listener); | |
97 return; | |
98 } else { | |
99 _removeEventListener_2(this, type, listener, useCapture); | |
100 return; | |
101 } | |
102 } | |
103 static void _removeEventListener(receiver, type, listener) native; | |
104 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
105 | |
106 void removeStream(MediaStream stream) { | |
107 _removeStream(this, stream); | |
108 return; | |
109 } | |
110 static void _removeStream(receiver, stream) native; | |
111 | |
112 void send(String text) { | |
113 _send(this, text); | |
114 return; | |
115 } | |
116 static void _send(receiver, text) native; | |
117 | |
118 String get typeName() { return "PeerConnection"; } | |
119 } | |
OLD | NEW |