Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 15901006: Add mozRTCPeerConnection to JS names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/dom/scripts/generator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698