| 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'; | 6 import 'dart:_collection-dev'; |
| 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 17827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17838 // BSD-style license that can be found in the LICENSE file. | 17838 // BSD-style license that can be found in the LICENSE file. |
| 17839 | 17839 |
| 17840 | 17840 |
| 17841 @DomName('RTCPeerConnection') | 17841 @DomName('RTCPeerConnection') |
| 17842 @SupportedBrowser(SupportedBrowser.CHROME) | 17842 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17843 @Experimental | 17843 @Experimental |
| 17844 class RtcPeerConnection extends EventTarget native "RTCPeerConnection" { | 17844 class RtcPeerConnection extends EventTarget native "RTCPeerConnection" { |
| 17845 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { | 17845 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { |
| 17846 var constructorName = JS('RtcPeerConnection', 'window[#]', | 17846 var constructorName = JS('RtcPeerConnection', 'window[#]', |
| 17847 '${Device.propertyPrefix}RTCPeerConnection'); | 17847 '${Device.propertyPrefix}RTCPeerConnection'); |
| 17848 if (?mediaConstraints) { | 17848 if (mediaConstraints != null) { |
| 17849 return JS('RtcPeerConnection', 'new #(#,#)', constructorName, | 17849 return JS('RtcPeerConnection', 'new #(#,#)', constructorName, |
| 17850 convertDartToNative_SerializedScriptValue(rtcIceServers), | 17850 convertDartToNative_SerializedScriptValue(rtcIceServers), |
| 17851 convertDartToNative_SerializedScriptValue(mediaConstraints)); | 17851 convertDartToNative_SerializedScriptValue(mediaConstraints)); |
| 17852 } else { | 17852 } else { |
| 17853 return JS('RtcPeerConnection', 'new #(#)', constructorName, | 17853 return JS('RtcPeerConnection', 'new #(#)', constructorName, |
| 17854 convertDartToNative_SerializedScriptValue(rtcIceServers)); | 17854 convertDartToNative_SerializedScriptValue(rtcIceServers)); |
| 17855 } | 17855 } |
| 17856 } | 17856 } |
| 17857 | 17857 |
| 17858 /** | 17858 /** |
| (...skipping 11745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29604 _position = nextPosition; | 29604 _position = nextPosition; |
| 29605 return true; | 29605 return true; |
| 29606 } | 29606 } |
| 29607 _current = null; | 29607 _current = null; |
| 29608 _position = _array.length; | 29608 _position = _array.length; |
| 29609 return false; | 29609 return false; |
| 29610 } | 29610 } |
| 29611 | 29611 |
| 29612 T get current => _current; | 29612 T get current => _current; |
| 29613 } | 29613 } |
| OLD | NEW |