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

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

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