| 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 17846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17857 } | 17857 } |
| 17858 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 17858 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 17859 // for details. All rights reserved. Use of this source code is governed by a | 17859 // for details. All rights reserved. Use of this source code is governed by a |
| 17860 // BSD-style license that can be found in the LICENSE file. | 17860 // BSD-style license that can be found in the LICENSE file. |
| 17861 | 17861 |
| 17862 | 17862 |
| 17863 @DomName('RTCIceCandidate') | 17863 @DomName('RTCIceCandidate') |
| 17864 @SupportedBrowser(SupportedBrowser.CHROME) | 17864 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17865 @Experimental | 17865 @Experimental |
| 17866 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCIceCandidate | 17866 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCIceCandidate |
| 17867 class RtcIceCandidate native "RTCIceCandidate" { | 17867 class RtcIceCandidate native "RTCIceCandidate,mozRTCIceCandidate" { |
| 17868 factory RtcIceCandidate(Map dictionary) { | 17868 factory RtcIceCandidate(Map dictionary) { |
| 17869 // TODO(efortuna): Remove this check if when you can actually construct with | 17869 // TODO(efortuna): Remove this check if when you can actually construct with |
| 17870 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, | 17870 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, |
| 17871 // but one can't be used as a constructor). | 17871 // but one can't be used as a constructor). |
| 17872 var constructorName = JS('', 'window[#]', | 17872 var constructorName = JS('', 'window[#]', |
| 17873 Device.isFirefox ? '${Device.propertyPrefix}RTCIceCandidate' : | 17873 Device.isFirefox ? '${Device.propertyPrefix}RTCIceCandidate' : |
| 17874 'RTCIceCandidate'); | 17874 'RTCIceCandidate'); |
| 17875 return JS('RtcIceCandidate', 'new #(#)', constructorName, | 17875 return JS('RtcIceCandidate', 'new #(#)', constructorName, |
| 17876 convertDartToNative_SerializedScriptValue(dictionary)); | 17876 convertDartToNative_SerializedScriptValue(dictionary)); |
| 17877 } | 17877 } |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18225 } | 18225 } |
| 18226 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 18226 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 18227 // for details. All rights reserved. Use of this source code is governed by a | 18227 // for details. All rights reserved. Use of this source code is governed by a |
| 18228 // BSD-style license that can be found in the LICENSE file. | 18228 // BSD-style license that can be found in the LICENSE file. |
| 18229 | 18229 |
| 18230 | 18230 |
| 18231 @DomName('RTCSessionDescription') | 18231 @DomName('RTCSessionDescription') |
| 18232 @SupportedBrowser(SupportedBrowser.CHROME) | 18232 @SupportedBrowser(SupportedBrowser.CHROME) |
| 18233 @Experimental | 18233 @Experimental |
| 18234 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCSessionDescriptio
n | 18234 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCSessionDescriptio
n |
| 18235 class RtcSessionDescription native "RTCSessionDescription" { | 18235 class RtcSessionDescription native "RTCSessionDescription,mozRTCSessionDescripti
on" { |
| 18236 factory RtcSessionDescription(Map dictionary) { | 18236 factory RtcSessionDescription(Map dictionary) { |
| 18237 // TODO(efortuna): Remove this check if when you can actually construct with | 18237 // TODO(efortuna): Remove this check if when you can actually construct with |
| 18238 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, | 18238 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, |
| 18239 // but one can't be used as a constructor). | 18239 // but one can't be used as a constructor). |
| 18240 var constructorName = JS('', 'window[#]', | 18240 var constructorName = JS('', 'window[#]', |
| 18241 Device.isFirefox ? '${Device.propertyPrefix}RTCSessionDescription' : | 18241 Device.isFirefox ? '${Device.propertyPrefix}RTCSessionDescription' : |
| 18242 'RTCSessionDescription'); | 18242 'RTCSessionDescription'); |
| 18243 return JS('RtcSessionDescription', | 18243 return JS('RtcSessionDescription', |
| 18244 'new #(#)', constructorName, | 18244 'new #(#)', constructorName, |
| 18245 convertDartToNative_SerializedScriptValue(dictionary)); | 18245 convertDartToNative_SerializedScriptValue(dictionary)); |
| (...skipping 11052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29298 _position = nextPosition; | 29298 _position = nextPosition; |
| 29299 return true; | 29299 return true; |
| 29300 } | 29300 } |
| 29301 _current = null; | 29301 _current = null; |
| 29302 _position = _array.length; | 29302 _position = _array.length; |
| 29303 return false; | 29303 return false; |
| 29304 } | 29304 } |
| 29305 | 29305 |
| 29306 T get current => _current; | 29306 T get current => _current; |
| 29307 } | 29307 } |
| OLD | NEW |