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

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

Issue 15039023: Revert "dart2js native mixin application should extend 'Interface', not 'Object'" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | sdk/lib/svg/dart2js/svg_dart2js.dart » ('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;
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;
20 import 'dart:_isolate_helper' show IsolateNatives; 19 import 'dart:_isolate_helper' show IsolateNatives;
21 import 'dart:_foreign_helper' show JS; 20 import 'dart:_foreign_helper' show JS;
22 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21 // 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 22 // 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. 23 // BSD-style license that can be found in the LICENSE file.
25 24
26 // DO NOT EDIT - unless you are editing documentation as per: 25 // DO NOT EDIT - unless you are editing documentation as per:
27 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 26 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
28 // Auto-generated dart:html library. 27 // Auto-generated dart:html library.
29 28
(...skipping 6824 matching lines...) Expand 10 before | Expand all | Expand 10 after
6854 @DocsEditable 6853 @DocsEditable
6855 String value; 6854 String value;
6856 } 6855 }
6857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6858 // for details. All rights reserved. Use of this source code is governed by a 6857 // for details. All rights reserved. Use of this source code is governed by a
6859 // BSD-style license that can be found in the LICENSE file. 6858 // BSD-style license that can be found in the LICENSE file.
6860 6859
6861 6860
6862 @DocsEditable 6861 @DocsEditable
6863 @DomName('DOMStringList') 6862 @DomName('DOMStringList')
6864 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString List" { 6863 class DomStringList extends Object with ListMixin<String>, ImmutableListMixin<St ring> implements JavaScriptIndexingBehavior, List<String> native "DOMStringList" {
6865 6864
6866 @DomName('DOMStringList.length') 6865 @DomName('DOMStringList.length')
6867 @DocsEditable 6866 @DocsEditable
6868 int get length => JS("int", "#.length", this); 6867 int get length => JS("int", "#.length", this);
6869 6868
6870 String operator[](int index) { 6869 String operator[](int index) {
6871 if (JS("bool", "# >>> 0 !== # || # >= #", index, 6870 if (JS("bool", "# >>> 0 !== # || # >= #", index,
6872 index, index, length)) 6871 index, index, length))
6873 throw new RangeError.range(index, 0, length); 6872 throw new RangeError.range(index, 0, length);
6874 return JS("String", "#[#]", this, index); 6873 return JS("String", "#[#]", this, index);
(...skipping 2712 matching lines...) Expand 10 before | Expand all | Expand 10 after
9587 @DocsEditable 9586 @DocsEditable
9588 String toString() native; 9587 String toString() native;
9589 } 9588 }
9590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9589 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9591 // for details. All rights reserved. Use of this source code is governed by a 9590 // for details. All rights reserved. Use of this source code is governed by a
9592 // BSD-style license that can be found in the LICENSE file. 9591 // BSD-style license that can be found in the LICENSE file.
9593 9592
9594 9593
9595 @DocsEditable 9594 @DocsEditable
9596 @DomName('FileList') 9595 @DomName('FileList')
9597 class FileList extends Interceptor with ListMixin<File>, ImmutableListMixin<File > implements JavaScriptIndexingBehavior, List<File> native "FileList" { 9596 class FileList extends Object with ListMixin<File>, ImmutableListMixin<File> imp lements JavaScriptIndexingBehavior, List<File> native "FileList" {
9598 9597
9599 @DomName('FileList.length') 9598 @DomName('FileList.length')
9600 @DocsEditable 9599 @DocsEditable
9601 int get length => JS("int", "#.length", this); 9600 int get length => JS("int", "#.length", this);
9602 9601
9603 File operator[](int index) { 9602 File operator[](int index) {
9604 if (JS("bool", "# >>> 0 !== # || # >= #", index, 9603 if (JS("bool", "# >>> 0 !== # || # >= #", index,
9605 index, index, length)) 9604 index, index, length))
9606 throw new RangeError.range(index, 0, length); 9605 throw new RangeError.range(index, 0, length);
9607 return JS("File", "#[#]", this, index); 9606 return JS("File", "#[#]", this, index);
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
10425 @SupportedBrowser(SupportedBrowser.SAFARI) 10424 @SupportedBrowser(SupportedBrowser.SAFARI)
10426 void replaceState(Object data, String title, [String url]) native; 10425 void replaceState(Object data, String title, [String url]) native;
10427 } 10426 }
10428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10429 // for details. All rights reserved. Use of this source code is governed by a 10428 // for details. All rights reserved. Use of this source code is governed by a
10430 // BSD-style license that can be found in the LICENSE file. 10429 // BSD-style license that can be found in the LICENSE file.
10431 10430
10432 10431
10433 @DocsEditable 10432 @DocsEditable
10434 @DomName('HTMLAllCollection') 10433 @DomName('HTMLAllCollection')
10435 class HtmlAllCollection extends Interceptor with ListMixin<Node>, ImmutableListM ixin<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllColl ection" { 10434 class HtmlAllCollection extends Object with ListMixin<Node>, ImmutableListMixin< Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllCollectio n" {
10436 10435
10437 @DomName('HTMLAllCollection.length') 10436 @DomName('HTMLAllCollection.length')
10438 @DocsEditable 10437 @DocsEditable
10439 int get length => JS("int", "#.length", this); 10438 int get length => JS("int", "#.length", this);
10440 10439
10441 Node operator[](int index) { 10440 Node operator[](int index) {
10442 if (JS("bool", "# >>> 0 !== # || # >= #", index, 10441 if (JS("bool", "# >>> 0 !== # || # >= #", index,
10443 index, index, length)) 10442 index, index, length))
10444 throw new RangeError.range(index, 0, length); 10443 throw new RangeError.range(index, 0, length);
10445 return JS("Node", "#[#]", this, index); 10444 return JS("Node", "#[#]", this, index);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
10496 @Creates('NodeList') 10495 @Creates('NodeList')
10497 List<Node> tags(String name) native; 10496 List<Node> tags(String name) native;
10498 } 10497 }
10499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10498 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10500 // for details. All rights reserved. Use of this source code is governed by a 10499 // for details. All rights reserved. Use of this source code is governed by a
10501 // BSD-style license that can be found in the LICENSE file. 10500 // BSD-style license that can be found in the LICENSE file.
10502 10501
10503 10502
10504 @DocsEditable 10503 @DocsEditable
10505 @DomName('HTMLCollection') 10504 @DomName('HTMLCollection')
10506 class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixi n<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLCollection " { 10505 class HtmlCollection extends Object with ListMixin<Node>, ImmutableListMixin<Nod e> implements JavaScriptIndexingBehavior, List<Node> native "HTMLCollection" {
10507 10506
10508 @DomName('HTMLCollection.length') 10507 @DomName('HTMLCollection.length')
10509 @DocsEditable 10508 @DocsEditable
10510 int get length => JS("int", "#.length", this); 10509 int get length => JS("int", "#.length", this);
10511 10510
10512 Node operator[](int index) { 10511 Node operator[](int index) {
10513 if (JS("bool", "# >>> 0 !== # || # >= #", index, 10512 if (JS("bool", "# >>> 0 !== # || # >= #", index,
10514 index, index, length)) 10513 index, index, length))
10515 throw new RangeError.range(index, 0, length); 10514 throw new RangeError.range(index, 0, length);
10516 return JS("Node", "#[#]", this, index); 10515 return JS("Node", "#[#]", this, index);
(...skipping 3612 matching lines...) Expand 10 before | Expand all | Expand 10 after
14129 @DocsEditable 14128 @DocsEditable
14130 final String type; 14129 final String type;
14131 } 14130 }
14132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14131 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14133 // for details. All rights reserved. Use of this source code is governed by a 14132 // for details. All rights reserved. Use of this source code is governed by a
14134 // BSD-style license that can be found in the LICENSE file. 14133 // BSD-style license that can be found in the LICENSE file.
14135 14134
14136 14135
14137 @DocsEditable 14136 @DocsEditable
14138 @DomName('MimeTypeArray') 14137 @DomName('MimeTypeArray')
14139 class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM ixin<MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "Mim eTypeArray" { 14138 class MimeTypeArray extends Object with ListMixin<MimeType>, ImmutableListMixin< MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "MimeType Array" {
14140 14139
14141 @DomName('MimeTypeArray.length') 14140 @DomName('MimeTypeArray.length')
14142 @DocsEditable 14141 @DocsEditable
14143 int get length => JS("int", "#.length", this); 14142 int get length => JS("int", "#.length", this);
14144 14143
14145 MimeType operator[](int index) { 14144 MimeType operator[](int index) {
14146 if (JS("bool", "# >>> 0 !== # || # >= #", index, 14145 if (JS("bool", "# >>> 0 !== # || # >= #", index,
14147 index, index, length)) 14146 index, index, length))
14148 throw new RangeError.range(index, 0, length); 14147 throw new RangeError.range(index, 0, length);
14149 return JS("MimeType", "#[#]", this, index); 14148 return JS("MimeType", "#[#]", this, index);
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
15418 Node previousNode() native; 15417 Node previousNode() native;
15419 15418
15420 } 15419 }
15421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15422 // for details. All rights reserved. Use of this source code is governed by a 15421 // for details. All rights reserved. Use of this source code is governed by a
15423 // BSD-style license that can be found in the LICENSE file. 15422 // BSD-style license that can be found in the LICENSE file.
15424 15423
15425 15424
15426 @DocsEditable 15425 @DocsEditable
15427 @DomName('NodeList') 15426 @DomName('NodeList')
15428 class NodeList extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node > implements JavaScriptIndexingBehavior, List<Node> native "NodeList,RadioNodeLi st" { 15427 class NodeList extends Object with ListMixin<Node>, ImmutableListMixin<Node> imp lements JavaScriptIndexingBehavior, List<Node> native "NodeList,RadioNodeList" {
15429 15428
15430 @DomName('NodeList.length') 15429 @DomName('NodeList.length')
15431 @DocsEditable 15430 @DocsEditable
15432 int get length => JS("int", "#.length", this); 15431 int get length => JS("int", "#.length", this);
15433 15432
15434 Node operator[](int index) { 15433 Node operator[](int index) {
15435 if (JS("bool", "# >>> 0 !== # || # >= #", index, 15434 if (JS("bool", "# >>> 0 !== # || # >= #", index,
15436 index, index, length)) 15435 index, index, length))
15437 throw new RangeError.range(index, 0, length); 15436 throw new RangeError.range(index, 0, length);
15438 return JS("Node", "#[#]", this, index); 15437 return JS("Node", "#[#]", this, index);
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
16442 @DocsEditable 16441 @DocsEditable
16443 MimeType namedItem(String name) native; 16442 MimeType namedItem(String name) native;
16444 } 16443 }
16445 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16444 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16446 // for details. All rights reserved. Use of this source code is governed by a 16445 // for details. All rights reserved. Use of this source code is governed by a
16447 // BSD-style license that can be found in the LICENSE file. 16446 // BSD-style license that can be found in the LICENSE file.
16448 16447
16449 16448
16450 @DocsEditable 16449 @DocsEditable
16451 @DomName('PluginArray') 16450 @DomName('PluginArray')
16452 class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin <Plugin> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray " { 16451 class PluginArray extends Object with ListMixin<Plugin>, ImmutableListMixin<Plug in> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray" {
16453 16452
16454 @DomName('PluginArray.length') 16453 @DomName('PluginArray.length')
16455 @DocsEditable 16454 @DocsEditable
16456 int get length => JS("int", "#.length", this); 16455 int get length => JS("int", "#.length", this);
16457 16456
16458 Plugin operator[](int index) { 16457 Plugin operator[](int index) {
16459 if (JS("bool", "# >>> 0 !== # || # >= #", index, 16458 if (JS("bool", "# >>> 0 !== # || # >= #", index,
16460 index, index, length)) 16459 index, index, length))
16461 throw new RangeError.range(index, 0, length); 16460 throw new RangeError.range(index, 0, length);
16462 return JS("Plugin", "#[#]", this, index); 16461 return JS("Plugin", "#[#]", this, index);
(...skipping 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after
18289 @DocsEditable 18288 @DocsEditable
18290 num weight; 18289 num weight;
18291 } 18290 }
18292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18293 // for details. All rights reserved. Use of this source code is governed by a 18292 // for details. All rights reserved. Use of this source code is governed by a
18294 // BSD-style license that can be found in the LICENSE file. 18293 // BSD-style license that can be found in the LICENSE file.
18295 18294
18296 18295
18297 @DocsEditable 18296 @DocsEditable
18298 @DomName('SpeechGrammarList') 18297 @DomName('SpeechGrammarList')
18299 class SpeechGrammarList extends Interceptor with ListMixin<SpeechGrammar>, Immut ableListMixin<SpeechGrammar> implements JavaScriptIndexingBehavior, List<SpeechG rammar> native "SpeechGrammarList" { 18298 class SpeechGrammarList extends Object with ListMixin<SpeechGrammar>, ImmutableL istMixin<SpeechGrammar> implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "SpeechGrammarList" {
18300 18299
18301 @DomName('SpeechGrammarList.SpeechGrammarList') 18300 @DomName('SpeechGrammarList.SpeechGrammarList')
18302 @DocsEditable 18301 @DocsEditable
18303 factory SpeechGrammarList() { 18302 factory SpeechGrammarList() {
18304 return SpeechGrammarList._create_1(); 18303 return SpeechGrammarList._create_1();
18305 } 18304 }
18306 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra mmarList()'); 18305 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra mmarList()');
18307 18306
18308 @DomName('SpeechGrammarList.length') 18307 @DomName('SpeechGrammarList.length')
18309 @DocsEditable 18308 @DocsEditable
(...skipping 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after
19767 @DocsEditable 19766 @DocsEditable
19768 Stream<Event> get onExit => exitEvent.forTarget(this); 19767 Stream<Event> get onExit => exitEvent.forTarget(this);
19769 } 19768 }
19770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19771 // for details. All rights reserved. Use of this source code is governed by a 19770 // for details. All rights reserved. Use of this source code is governed by a
19772 // BSD-style license that can be found in the LICENSE file. 19771 // BSD-style license that can be found in the LICENSE file.
19773 19772
19774 19773
19775 @DocsEditable 19774 @DocsEditable
19776 @DomName('TextTrackCueList') 19775 @DomName('TextTrackCueList')
19777 class TextTrackCueList extends Interceptor with ListMixin<TextTrackCue>, Immutab leListMixin<TextTrackCue> implements List<TextTrackCue>, JavaScriptIndexingBehav ior native "TextTrackCueList" { 19776 class TextTrackCueList extends Object with ListMixin<TextTrackCue>, ImmutableLis tMixin<TextTrackCue> implements List<TextTrackCue>, JavaScriptIndexingBehavior n ative "TextTrackCueList" {
19778 19777
19779 @DomName('TextTrackCueList.length') 19778 @DomName('TextTrackCueList.length')
19780 @DocsEditable 19779 @DocsEditable
19781 int get length => JS("int", "#.length", this); 19780 int get length => JS("int", "#.length", this);
19782 19781
19783 TextTrackCue operator[](int index) { 19782 TextTrackCue operator[](int index) {
19784 if (JS("bool", "# >>> 0 !== # || # >= #", index, 19783 if (JS("bool", "# >>> 0 !== # || # >= #", index,
19785 index, index, length)) 19784 index, index, length))
19786 throw new RangeError.range(index, 0, length); 19785 throw new RangeError.range(index, 0, length);
19787 return JS("TextTrackCue", "#[#]", this, index); 19786 return JS("TextTrackCue", "#[#]", this, index);
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
20124 } 20123 }
20125 } 20124 }
20126 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20125 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
20127 // for details. All rights reserved. Use of this source code is governed by a 20126 // for details. All rights reserved. Use of this source code is governed by a
20128 // BSD-style license that can be found in the LICENSE file. 20127 // BSD-style license that can be found in the LICENSE file.
20129 20128
20130 // WARNING: Do not edit - generated code. 20129 // WARNING: Do not edit - generated code.
20131 20130
20132 20131
20133 @DomName('TouchList') 20132 @DomName('TouchList')
20134 class TouchList extends Interceptor with ListMixin<Touch>, ImmutableListMixin<To uch> implements JavaScriptIndexingBehavior, List<Touch> native "TouchList" { 20133 class TouchList extends Object with ListMixin<Touch>, ImmutableListMixin<Touch> implements JavaScriptIndexingBehavior, List<Touch> native "TouchList" {
20135 /// NB: This constructor likely does not work as you might expect it to! This 20134 /// NB: This constructor likely does not work as you might expect it to! This
20136 /// constructor will simply fail (returning null) if you are not on a device 20135 /// constructor will simply fail (returning null) if you are not on a device
20137 /// with touch enabled. See dartbug.com/8314. 20136 /// with touch enabled. See dartbug.com/8314.
20138 factory TouchList() => document.$dom_createTouchList(); 20137 factory TouchList() => document.$dom_createTouchList();
20139 20138
20140 /// Checks if this type is supported on the current platform. 20139 /// Checks if this type is supported on the current platform.
20141 static bool get supported => JS('bool', '!!document.createTouchList'); 20140 static bool get supported => JS('bool', '!!document.createTouchList');
20142 20141
20143 @DomName('TouchList.length') 20142 @DomName('TouchList.length')
20144 @DocsEditable 20143 @DocsEditable
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after
22498 @DocsEditable 22497 @DocsEditable
22499 final num width; 22498 final num width;
22500 } 22499 }
22501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22502 // for details. All rights reserved. Use of this source code is governed by a 22501 // for details. All rights reserved. Use of this source code is governed by a
22503 // BSD-style license that can be found in the LICENSE file. 22502 // BSD-style license that can be found in the LICENSE file.
22504 22503
22505 22504
22506 @DocsEditable 22505 @DocsEditable
22507 @DomName('ClientRectList') 22506 @DomName('ClientRectList')
22508 class _ClientRectList extends Interceptor with ListMixin<Rect>, ImmutableListMix in<Rect> implements JavaScriptIndexingBehavior, List<Rect> native "ClientRectLis t" { 22507 class _ClientRectList extends Object with ListMixin<Rect>, ImmutableListMixin<Re ct> implements JavaScriptIndexingBehavior, List<Rect> native "ClientRectList" {
22509 22508
22510 @DomName('ClientRectList.length') 22509 @DomName('ClientRectList.length')
22511 @DocsEditable 22510 @DocsEditable
22512 int get length => JS("int", "#.length", this); 22511 int get length => JS("int", "#.length", this);
22513 22512
22514 Rect operator[](int index) { 22513 Rect operator[](int index) {
22515 if (JS("bool", "# >>> 0 !== # || # >= #", index, 22514 if (JS("bool", "# >>> 0 !== # || # >= #", index,
22516 index, index, length)) 22515 index, index, length))
22517 throw new RangeError.range(index, 0, length); 22516 throw new RangeError.range(index, 0, length);
22518 return JS("Rect", "#[#]", this, index); 22517 return JS("Rect", "#[#]", this, index);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
22568 @DomName('Counter') 22567 @DomName('Counter')
22569 abstract class _Counter native "Counter" { 22568 abstract class _Counter native "Counter" {
22570 } 22569 }
22571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22570 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22572 // for details. All rights reserved. Use of this source code is governed by a 22571 // for details. All rights reserved. Use of this source code is governed by a
22573 // BSD-style license that can be found in the LICENSE file. 22572 // BSD-style license that can be found in the LICENSE file.
22574 22573
22575 22574
22576 @DocsEditable 22575 @DocsEditable
22577 @DomName('CSSRuleList') 22576 @DomName('CSSRuleList')
22578 class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix in<CssRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRule List" { 22577 class _CssRuleList extends Object with ListMixin<CssRule>, ImmutableListMixin<Cs sRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRuleList" {
22579 22578
22580 @DomName('CSSRuleList.length') 22579 @DomName('CSSRuleList.length')
22581 @DocsEditable 22580 @DocsEditable
22582 int get length => JS("int", "#.length", this); 22581 int get length => JS("int", "#.length", this);
22583 22582
22584 CssRule operator[](int index) { 22583 CssRule operator[](int index) {
22585 if (JS("bool", "# >>> 0 !== # || # >= #", index, 22584 if (JS("bool", "# >>> 0 !== # || # >= #", index,
22586 index, index, length)) 22585 index, index, length))
22587 throw new RangeError.range(index, 0, length); 22586 throw new RangeError.range(index, 0, length);
22588 return JS("CssRule", "#[#]", this, index); 22587 return JS("CssRule", "#[#]", this, index);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
22779 @DomName('EntityReference') 22778 @DomName('EntityReference')
22780 abstract class _EntityReference extends Node native "EntityReference" { 22779 abstract class _EntityReference extends Node native "EntityReference" {
22781 } 22780 }
22782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22783 // for details. All rights reserved. Use of this source code is governed by a 22782 // for details. All rights reserved. Use of this source code is governed by a
22784 // BSD-style license that can be found in the LICENSE file. 22783 // BSD-style license that can be found in the LICENSE file.
22785 22784
22786 22785
22787 @DocsEditable 22786 @DocsEditable
22788 @DomName('EntryArray') 22787 @DomName('EntryArray')
22789 class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin< Entry> implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" { 22788 class _EntryArray extends Object with ListMixin<Entry>, ImmutableListMixin<Entry > implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" {
22790 22789
22791 @DomName('EntryArray.length') 22790 @DomName('EntryArray.length')
22792 @DocsEditable 22791 @DocsEditable
22793 int get length => JS("int", "#.length", this); 22792 int get length => JS("int", "#.length", this);
22794 22793
22795 Entry operator[](int index) { 22794 Entry operator[](int index) {
22796 if (JS("bool", "# >>> 0 !== # || # >= #", index, 22795 if (JS("bool", "# >>> 0 !== # || # >= #", index,
22797 index, index, length)) 22796 index, index, length))
22798 throw new RangeError.range(index, 0, length); 22797 throw new RangeError.range(index, 0, length);
22799 return JS("Entry", "#[#]", this, index); 22798 return JS("Entry", "#[#]", this, index);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
22840 @DocsEditable 22839 @DocsEditable
22841 Entry item(int index) native; 22840 Entry item(int index) native;
22842 } 22841 }
22843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22844 // for details. All rights reserved. Use of this source code is governed by a 22843 // for details. All rights reserved. Use of this source code is governed by a
22845 // BSD-style license that can be found in the LICENSE file. 22844 // BSD-style license that can be found in the LICENSE file.
22846 22845
22847 22846
22848 @DocsEditable 22847 @DocsEditable
22849 @DomName('EntryArraySync') 22848 @DomName('EntryArraySync')
22850 class _EntryArraySync extends Interceptor with ListMixin<_EntrySync>, ImmutableL istMixin<_EntrySync> implements JavaScriptIndexingBehavior, List<_EntrySync> nat ive "EntryArraySync" { 22849 class _EntryArraySync extends Object with ListMixin<_EntrySync>, ImmutableListMi xin<_EntrySync> implements JavaScriptIndexingBehavior, List<_EntrySync> native " EntryArraySync" {
22851 22850
22852 @DomName('EntryArraySync.length') 22851 @DomName('EntryArraySync.length')
22853 @DocsEditable 22852 @DocsEditable
22854 int get length => JS("int", "#.length", this); 22853 int get length => JS("int", "#.length", this);
22855 22854
22856 _EntrySync operator[](int index) { 22855 _EntrySync operator[](int index) {
22857 if (JS("bool", "# >>> 0 !== # || # >= #", index, 22856 if (JS("bool", "# >>> 0 !== # || # >= #", index,
22858 index, index, length)) 22857 index, index, length))
22859 throw new RangeError.range(index, 0, length); 22858 throw new RangeError.range(index, 0, length);
22860 return JS("_EntrySync", "#[#]", this, index); 22859 return JS("_EntrySync", "#[#]", this, index);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
22944 @DomName('FileWriterSync') 22943 @DomName('FileWriterSync')
22945 abstract class _FileWriterSync native "FileWriterSync" { 22944 abstract class _FileWriterSync native "FileWriterSync" {
22946 } 22945 }
22947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 22946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22948 // for details. All rights reserved. Use of this source code is governed by a 22947 // for details. All rights reserved. Use of this source code is governed by a
22949 // BSD-style license that can be found in the LICENSE file. 22948 // BSD-style license that can be found in the LICENSE file.
22950 22949
22951 22950
22952 @DocsEditable 22951 @DocsEditable
22953 @DomName('GamepadList') 22952 @DomName('GamepadList')
22954 class _GamepadList extends Interceptor with ListMixin<Gamepad>, ImmutableListMix in<Gamepad> implements JavaScriptIndexingBehavior, List<Gamepad> native "Gamepad List" { 22953 class _GamepadList extends Object with ListMixin<Gamepad>, ImmutableListMixin<Ga mepad> implements JavaScriptIndexingBehavior, List<Gamepad> native "GamepadList" {
22955 22954
22956 @DomName('GamepadList.length') 22955 @DomName('GamepadList.length')
22957 @DocsEditable 22956 @DocsEditable
22958 int get length => JS("int", "#.length", this); 22957 int get length => JS("int", "#.length", this);
22959 22958
22960 Gamepad operator[](int index) { 22959 Gamepad operator[](int index) {
22961 if (JS("bool", "# >>> 0 !== # || # >= #", index, 22960 if (JS("bool", "# >>> 0 !== # || # >= #", index,
22962 index, index, length)) 22961 index, index, length))
22963 throw new RangeError.range(index, 0, length); 22962 throw new RangeError.range(index, 0, length);
22964 return JS("Gamepad", "#[#]", this, index); 22963 return JS("Gamepad", "#[#]", this, index);
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
23068 @DomName('HTMLMarqueeElement') 23067 @DomName('HTMLMarqueeElement')
23069 abstract class _HTMLMarqueeElement extends Element native "HTMLMarqueeElement" { 23068 abstract class _HTMLMarqueeElement extends Element native "HTMLMarqueeElement" {
23070 } 23069 }
23071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23070 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23072 // for details. All rights reserved. Use of this source code is governed by a 23071 // for details. All rights reserved. Use of this source code is governed by a
23073 // BSD-style license that can be found in the LICENSE file. 23072 // BSD-style license that can be found in the LICENSE file.
23074 23073
23075 23074
23076 @DocsEditable 23075 @DocsEditable
23077 @DomName('NamedNodeMap') 23076 @DomName('NamedNodeMap')
23078 class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin <Node> implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap" { 23077 class _NamedNodeMap extends Object with ListMixin<Node>, ImmutableListMixin<Node > implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap" {
23079 23078
23080 @DomName('NamedNodeMap.length') 23079 @DomName('NamedNodeMap.length')
23081 @DocsEditable 23080 @DocsEditable
23082 int get length => JS("int", "#.length", this); 23081 int get length => JS("int", "#.length", this);
23083 23082
23084 Node operator[](int index) { 23083 Node operator[](int index) {
23085 if (JS("bool", "# >>> 0 !== # || # >= #", index, 23084 if (JS("bool", "# >>> 0 !== # || # >= #", index,
23086 index, index, length)) 23085 index, index, length))
23087 throw new RangeError.range(index, 0, length); 23086 throw new RangeError.range(index, 0, length);
23088 return JS("Node", "#[#]", this, index); 23087 return JS("Node", "#[#]", this, index);
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
23218 @DomName('SharedWorkerContext') 23217 @DomName('SharedWorkerContext')
23219 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC ontext" { 23218 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC ontext" {
23220 } 23219 }
23221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23222 // for details. All rights reserved. Use of this source code is governed by a 23221 // for details. All rights reserved. Use of this source code is governed by a
23223 // BSD-style license that can be found in the LICENSE file. 23222 // BSD-style license that can be found in the LICENSE file.
23224 23223
23225 23224
23226 @DocsEditable 23225 @DocsEditable
23227 @DomName('SpeechInputResultList') 23226 @DomName('SpeechInputResultList')
23228 class _SpeechInputResultList extends Interceptor with ListMixin<SpeechInputResul t>, ImmutableListMixin<SpeechInputResult> implements JavaScriptIndexingBehavior, List<SpeechInputResult> native "SpeechInputResultList" { 23227 class _SpeechInputResultList extends Object with ListMixin<SpeechInputResult>, I mmutableListMixin<SpeechInputResult> implements JavaScriptIndexingBehavior, List <SpeechInputResult> native "SpeechInputResultList" {
23229 23228
23230 @DomName('SpeechInputResultList.length') 23229 @DomName('SpeechInputResultList.length')
23231 @DocsEditable 23230 @DocsEditable
23232 int get length => JS("int", "#.length", this); 23231 int get length => JS("int", "#.length", this);
23233 23232
23234 SpeechInputResult operator[](int index) { 23233 SpeechInputResult operator[](int index) {
23235 if (JS("bool", "# >>> 0 !== # || # >= #", index, 23234 if (JS("bool", "# >>> 0 !== # || # >= #", index,
23236 index, index, length)) 23235 index, index, length))
23237 throw new RangeError.range(index, 0, length); 23236 throw new RangeError.range(index, 0, length);
23238 return JS("SpeechInputResult", "#[#]", this, index); 23237 return JS("SpeechInputResult", "#[#]", this, index);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
23279 @DocsEditable 23278 @DocsEditable
23280 SpeechInputResult item(int index) native; 23279 SpeechInputResult item(int index) native;
23281 } 23280 }
23282 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23281 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23283 // for details. All rights reserved. Use of this source code is governed by a 23282 // for details. All rights reserved. Use of this source code is governed by a
23284 // BSD-style license that can be found in the LICENSE file. 23283 // BSD-style license that can be found in the LICENSE file.
23285 23284
23286 23285
23287 @DocsEditable 23286 @DocsEditable
23288 @DomName('SpeechRecognitionResultList') 23287 @DomName('SpeechRecognitionResultList')
23289 class _SpeechRecognitionResultList extends Interceptor with ListMixin<SpeechReco gnitionResult>, ImmutableListMixin<SpeechRecognitionResult> implements JavaScrip tIndexingBehavior, List<SpeechRecognitionResult> native "SpeechRecognitionResult List" { 23288 class _SpeechRecognitionResultList extends Object with ListMixin<SpeechRecogniti onResult>, ImmutableListMixin<SpeechRecognitionResult> implements JavaScriptInde xingBehavior, List<SpeechRecognitionResult> native "SpeechRecognitionResultList" {
23290 23289
23291 @DomName('SpeechRecognitionResultList.length') 23290 @DomName('SpeechRecognitionResultList.length')
23292 @DocsEditable 23291 @DocsEditable
23293 int get length => JS("int", "#.length", this); 23292 int get length => JS("int", "#.length", this);
23294 23293
23295 SpeechRecognitionResult operator[](int index) { 23294 SpeechRecognitionResult operator[](int index) {
23296 if (JS("bool", "# >>> 0 !== # || # >= #", index, 23295 if (JS("bool", "# >>> 0 !== # || # >= #", index,
23297 index, index, length)) 23296 index, index, length))
23298 throw new RangeError.range(index, 0, length); 23297 throw new RangeError.range(index, 0, length);
23299 return JS("SpeechRecognitionResult", "#[#]", this, index); 23298 return JS("SpeechRecognitionResult", "#[#]", this, index);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
23340 @DocsEditable 23339 @DocsEditable
23341 SpeechRecognitionResult item(int index) native; 23340 SpeechRecognitionResult item(int index) native;
23342 } 23341 }
23343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23344 // for details. All rights reserved. Use of this source code is governed by a 23343 // for details. All rights reserved. Use of this source code is governed by a
23345 // BSD-style license that can be found in the LICENSE file. 23344 // BSD-style license that can be found in the LICENSE file.
23346 23345
23347 23346
23348 @DocsEditable 23347 @DocsEditable
23349 @DomName('StyleSheetList') 23348 @DomName('StyleSheetList')
23350 class _StyleSheetList extends Interceptor with ListMixin<StyleSheet>, ImmutableL istMixin<StyleSheet> implements JavaScriptIndexingBehavior, List<StyleSheet> nat ive "StyleSheetList" { 23349 class _StyleSheetList extends Object with ListMixin<StyleSheet>, ImmutableListMi xin<StyleSheet> implements JavaScriptIndexingBehavior, List<StyleSheet> native " StyleSheetList" {
23351 23350
23352 @DomName('StyleSheetList.length') 23351 @DomName('StyleSheetList.length')
23353 @DocsEditable 23352 @DocsEditable
23354 int get length => JS("int", "#.length", this); 23353 int get length => JS("int", "#.length", this);
23355 23354
23356 StyleSheet operator[](int index) { 23355 StyleSheet operator[](int index) {
23357 if (JS("bool", "# >>> 0 !== # || # >= #", index, 23356 if (JS("bool", "# >>> 0 !== # || # >= #", index,
23358 index, index, length)) 23357 index, index, length))
23359 throw new RangeError.range(index, 0, length); 23358 throw new RangeError.range(index, 0, length);
23360 return JS("StyleSheet", "#[#]", this, index); 23359 return JS("StyleSheet", "#[#]", this, index);
(...skipping 4574 matching lines...) Expand 10 before | Expand all | Expand 10 after
27935 _position = nextPosition; 27934 _position = nextPosition;
27936 return true; 27935 return true;
27937 } 27936 }
27938 _current = null; 27937 _current = null;
27939 _position = _array.length; 27938 _position = _array.length;
27940 return false; 27939 return false;
27941 } 27940 }
27942 27941
27943 T get current => _current; 27942 T get current => _current;
27944 } 27943 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698