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

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

Issue 14400004: First try at removing ? from HTML. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
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'; 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 18062 matching lines...) Expand 10 before | Expand all | Expand 10 after
18073 // BSD-style license that can be found in the LICENSE file. 18073 // BSD-style license that can be found in the LICENSE file.
18074 18074
18075 18075
18076 @DomName('RTCPeerConnection') 18076 @DomName('RTCPeerConnection')
18077 @SupportedBrowser(SupportedBrowser.CHROME) 18077 @SupportedBrowser(SupportedBrowser.CHROME)
18078 @Experimental 18078 @Experimental
18079 class RtcPeerConnection extends EventTarget native "RTCPeerConnection" { 18079 class RtcPeerConnection extends EventTarget native "RTCPeerConnection" {
18080 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { 18080 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) {
18081 var constructorName = JS('RtcPeerConnection', 'window[#]', 18081 var constructorName = JS('RtcPeerConnection', 'window[#]',
18082 '${Device.propertyPrefix}RTCPeerConnection'); 18082 '${Device.propertyPrefix}RTCPeerConnection');
18083 if (?mediaConstraints) { 18083 if (mediaConstraints != null) {
18084 return JS('RtcPeerConnection', 'new #(#,#)', constructorName, 18084 return JS('RtcPeerConnection', 'new #(#,#)', constructorName,
18085 convertDartToNative_SerializedScriptValue(rtcIceServers), 18085 convertDartToNative_SerializedScriptValue(rtcIceServers),
18086 convertDartToNative_SerializedScriptValue(mediaConstraints)); 18086 convertDartToNative_SerializedScriptValue(mediaConstraints));
18087 } else { 18087 } else {
18088 return JS('RtcPeerConnection', 'new #(#)', constructorName, 18088 return JS('RtcPeerConnection', 'new #(#)', constructorName,
18089 convertDartToNative_SerializedScriptValue(rtcIceServers)); 18089 convertDartToNative_SerializedScriptValue(rtcIceServers));
18090 } 18090 }
18091 } 18091 }
18092 18092
18093 /** 18093 /**
(...skipping 4510 matching lines...) Expand 10 before | Expand all | Expand 10 after
22604 * Gets an instance of the Indexed DB factory to being using Indexed DB. 22604 * Gets an instance of the Indexed DB factory to being using Indexed DB.
22605 * 22605 *
22606 * Use [IdbFactory.supported] to check if Indexed DB is supported on the 22606 * Use [IdbFactory.supported] to check if Indexed DB is supported on the
22607 * current platform. 22607 * current platform.
22608 */ 22608 */
22609 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') 22609 @SupportedBrowser(SupportedBrowser.CHROME, '23.0')
22610 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') 22610 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0')
22611 @SupportedBrowser(SupportedBrowser.IE, '10.0') 22611 @SupportedBrowser(SupportedBrowser.IE, '10.0')
22612 @Experimental 22612 @Experimental
22613 IdbFactory get indexedDB => 22613 IdbFactory get indexedDB =>
22614 JS('IdbFactory|Null', 22614 JS('IdbFactory|Null', // If not supported, returns `null`.
22615 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', 22615 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB',
22616 this, this, this); 22616 this, this, this);
22617 22617
22618 @DomName('Window.console') 22618 @DomName('Window.console')
22619 Console get console => Console.safeConsole; 22619 Console get console => Console.safeConsole;
22620 22620
22621 /// Checks if _setImmediate is supported. 22621 /// Checks if _setImmediate is supported.
22622 static bool get _supportsSetImmediate => 22622 static bool get _supportsSetImmediate =>
22623 JS('bool', '!!(window.setImmediate)'); 22623 JS('bool', '!!(window.setImmediate)');
22624 22624
(...skipping 7284 matching lines...) Expand 10 before | Expand all | Expand 10 after
29909 _position = nextPosition; 29909 _position = nextPosition;
29910 return true; 29910 return true;
29911 } 29911 }
29912 _current = null; 29912 _current = null;
29913 _position = _array.length; 29913 _position = _array.length;
29914 return false; 29914 return false;
29915 } 29915 }
29916 29916
29917 T get current => _current; 29917 T get current => _current;
29918 } 29918 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698