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

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

Issue 17301008: Remove =List in JS, use JSExtendableArray instead. (Closed) Base URL: http://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
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;
11 import 'dart:math'; 11 import 'dart:math';
12 import 'dart:mdv_observe_impl'; 12 import 'dart:mdv_observe_impl';
13 import 'dart:typed_data'; 13 import 'dart:typed_data';
14 import 'dart:svg' as svg; 14 import 'dart:svg' as svg;
15 import 'dart:web_audio' as web_audio; 15 import 'dart:web_audio' as web_audio;
16 import 'dart:web_gl' as gl; 16 import 'dart:web_gl' as gl;
17 import 'dart:web_sql'; 17 import 'dart:web_sql';
18 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin gBehavior, JSName, Null, Returns; 18 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin gBehavior, JSName, Null, Returns;
19 import 'dart:_interceptors' show Interceptor; 19 import 'dart:_interceptors' show Interceptor, JSExtendableArray;
20 import 'dart:_isolate_helper' show IsolateNatives; 20 import 'dart:_isolate_helper' show IsolateNatives;
21 import 'dart:_foreign_helper' show JS; 21 import 'dart:_foreign_helper' show JS;
22 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23 // for details. All rights reserved. Use of this source code is governed by a 23 // for details. All rights reserved. Use of this source code is governed by a
24 // BSD-style license that can be found in the LICENSE file. 24 // BSD-style license that can be found in the LICENSE file.
25 25
26 // DO NOT EDIT - unless you are editing documentation as per: 26 // DO NOT EDIT - unless you are editing documentation as per:
27 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 27 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
28 // Auto-generated dart:html library. 28 // Auto-generated dart:html library.
29 29
(...skipping 11953 matching lines...) Expand 10 before | Expand all | Expand 10 after
11983 * The data could be in the 11983 * The data could be in the
11984 * form of a [String], [ArrayBuffer], [Document], [Blob], or json (also a 11984 * form of a [String], [ArrayBuffer], [Document], [Blob], or json (also a
11985 * [String]). `null` indicates request failure. 11985 * [String]). `null` indicates request failure.
11986 */ 11986 */
11987 @DomName('XMLHttpRequest.response') 11987 @DomName('XMLHttpRequest.response')
11988 @DocsEditable 11988 @DocsEditable
11989 @SupportedBrowser(SupportedBrowser.CHROME) 11989 @SupportedBrowser(SupportedBrowser.CHROME)
11990 @SupportedBrowser(SupportedBrowser.FIREFOX) 11990 @SupportedBrowser(SupportedBrowser.FIREFOX)
11991 @SupportedBrowser(SupportedBrowser.IE, '10') 11991 @SupportedBrowser(SupportedBrowser.IE, '10')
11992 @SupportedBrowser(SupportedBrowser.SAFARI) 11992 @SupportedBrowser(SupportedBrowser.SAFARI)
11993 @Creates('ByteBuffer|Blob|Document|=Object|=List|String|num') 11993 @Creates('ByteBuffer|Blob|Document|=Object|JSExtendableArray|String|num')
11994 final Object response; 11994 final Object response;
11995 11995
11996 /** 11996 /**
11997 * The response in string form or `null on failure. 11997 * The response in string form or `null on failure.
11998 */ 11998 */
11999 @DomName('XMLHttpRequest.responseText') 11999 @DomName('XMLHttpRequest.responseText')
12000 @DocsEditable 12000 @DocsEditable
12001 final String responseText; 12001 final String responseText;
12002 12002
12003 /** 12003 /**
(...skipping 3118 matching lines...) Expand 10 before | Expand all | Expand 10 after
15122 @Unstable 15122 @Unstable
15123 final String lastEventId; 15123 final String lastEventId;
15124 15124
15125 @DomName('MessageEvent.origin') 15125 @DomName('MessageEvent.origin')
15126 @DocsEditable 15126 @DocsEditable
15127 final String origin; 15127 final String origin;
15128 15128
15129 @DomName('MessageEvent.ports') 15129 @DomName('MessageEvent.ports')
15130 @DocsEditable 15130 @DocsEditable
15131 @Unstable 15131 @Unstable
15132 @Creates('=List') 15132 @Creates('JSExtendableArray')
15133 final List<MessagePort> ports; 15133 final List<MessagePort> ports;
15134 15134
15135 WindowBase get source => _convertNativeToDart_Window(this._get_source); 15135 WindowBase get source => _convertNativeToDart_Window(this._get_source);
15136 @JSName('source') 15136 @JSName('source')
15137 @DomName('MessageEvent.source') 15137 @DomName('MessageEvent.source')
15138 @DocsEditable 15138 @DocsEditable
15139 @Creates('Window|=Object') 15139 @Creates('Window|=Object')
15140 @Returns('Window|=Object') 15140 @Returns('Window|=Object')
15141 final dynamic _get_source; 15141 final dynamic _get_source;
15142 15142
(...skipping 14454 matching lines...) Expand 10 before | Expand all | Expand 10 after
29597 _position = nextPosition; 29597 _position = nextPosition;
29598 return true; 29598 return true;
29599 } 29599 }
29600 _current = null; 29600 _current = null;
29601 _position = _array.length; 29601 _position = _array.length;
29602 return false; 29602 return false;
29603 } 29603 }
29604 29604
29605 T get current => _current; 29605 T get current => _current;
29606 } 29606 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698