| 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 11733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29592 _position = nextPosition; | 29592 _position = nextPosition; |
| 29593 return true; | 29593 return true; |
| 29594 } | 29594 } |
| 29595 _current = null; | 29595 _current = null; |
| 29596 _position = _array.length; | 29596 _position = _array.length; |
| 29597 return false; | 29597 return false; |
| 29598 } | 29598 } |
| 29599 | 29599 |
| 29600 T get current => _current; | 29600 T get current => _current; |
| 29601 } | 29601 } |
| OLD | NEW |