| Index: tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate b/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate
|
| index edef2250882161c82f759d0c16a02e6c2eb69264..8af6b9a65ad52f57c082fe9d04c2f014931aaad2 100644
|
| --- a/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate
|
| @@ -39,6 +39,21 @@ $if DART2JS
|
| $else
|
| static bool get supported => true;
|
| $endif
|
| + Future<RtcSessionDescription> createOffer([Map mediaConstraints]) {
|
| + var completer = new Completer<RtcSessionDescription>();
|
| + _createOffer(
|
| + (value) { completer.complete(value); },
|
| + (error) { completer.completeError(error); }, mediaConstraints);
|
| + return completer.future;
|
| + }
|
| +
|
| + Future<RtcSessionDescription> createAnswer([Map mediaConstraints]) {
|
| + var completer = new Completer<RtcSessionDescription>();
|
| + _createAnswer(
|
| + (value) { completer.complete(value); },
|
| + (error) { completer.completeError(error); }, mediaConstraints);
|
| + return completer.future;
|
| + }
|
| $!MEMBERS
|
| }
|
|
|
|
|