| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 17895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17906 } | 17906 } |
| 17907 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 17907 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 17908 // for details. All rights reserved. Use of this source code is governed by a | 17908 // for details. All rights reserved. Use of this source code is governed by a |
| 17909 // BSD-style license that can be found in the LICENSE file. | 17909 // BSD-style license that can be found in the LICENSE file. |
| 17910 | 17910 |
| 17911 | 17911 |
| 17912 @DomName('RTCPeerConnection') | 17912 @DomName('RTCPeerConnection') |
| 17913 @SupportedBrowser(SupportedBrowser.CHROME) | 17913 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17914 @Experimental | 17914 @Experimental |
| 17915 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCPeerConnection | 17915 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCPeerConnection |
| 17916 class RtcPeerConnection extends EventTarget native "RTCPeerConnection" { | 17916 class RtcPeerConnection extends EventTarget native "RTCPeerConnection,mozRTCPeer
Connection" { |
| 17917 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { | 17917 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { |
| 17918 var constructorName = JS('RtcPeerConnection', 'window[#]', | 17918 var constructorName = JS('RtcPeerConnection', 'window[#]', |
| 17919 '${Device.propertyPrefix}RTCPeerConnection'); | 17919 '${Device.propertyPrefix}RTCPeerConnection'); |
| 17920 if (mediaConstraints != null) { | 17920 if (mediaConstraints != null) { |
| 17921 return JS('RtcPeerConnection', 'new #(#,#)', constructorName, | 17921 return JS('RtcPeerConnection', 'new #(#,#)', constructorName, |
| 17922 convertDartToNative_SerializedScriptValue(rtcIceServers), | 17922 convertDartToNative_SerializedScriptValue(rtcIceServers), |
| 17923 convertDartToNative_SerializedScriptValue(mediaConstraints)); | 17923 convertDartToNative_SerializedScriptValue(mediaConstraints)); |
| 17924 } else { | 17924 } else { |
| 17925 return JS('RtcPeerConnection', 'new #(#)', constructorName, | 17925 return JS('RtcPeerConnection', 'new #(#)', constructorName, |
| 17926 convertDartToNative_SerializedScriptValue(rtcIceServers)); | 17926 convertDartToNative_SerializedScriptValue(rtcIceServers)); |
| (...skipping 11368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29295 _position = nextPosition; | 29295 _position = nextPosition; |
| 29296 return true; | 29296 return true; |
| 29297 } | 29297 } |
| 29298 _current = null; | 29298 _current = null; |
| 29299 _position = _array.length; | 29299 _position = _array.length; |
| 29300 return false; | 29300 return false; |
| 29301 } | 29301 } |
| 29302 | 29302 |
| 29303 T get current => _current; | 29303 T get current => _current; |
| 29304 } | 29304 } |
| OLD | NEW |