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

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

Issue 14619026: 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') | tests/html/node_test.dart » ('J')
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'; 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;
11 import 'dart:math'; 11 import 'dart:math';
12 import 'dart:typed_data'; 12 import 'dart:typed_data';
13 import 'dart:svg' as svg; 13 import 'dart:svg' as svg;
14 import 'dart:web_audio' as web_audio; 14 import 'dart:web_audio' as web_audio;
15 import 'dart:web_gl' as gl; 15 import 'dart:web_gl' as gl;
16 import 'dart:web_sql'; 16 import 'dart:web_sql';
17 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin gBehavior, JSName, Null, Returns; 17 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin gBehavior, JSName, Null, Returns;
18 import 'dart:_interceptors' show Interceptor;
18 import 'dart:_isolate_helper' show IsolateNatives; 19 import 'dart:_isolate_helper' show IsolateNatives;
19 import 'dart:_foreign_helper' show JS; 20 import 'dart:_foreign_helper' show JS;
20 // 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
21 // 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
22 // BSD-style license that can be found in the LICENSE file. 23 // BSD-style license that can be found in the LICENSE file.
23 24
24 // DO NOT EDIT - unless you are editing documentation as per: 25 // DO NOT EDIT - unless you are editing documentation as per:
25 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 26 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
26 // Auto-generated dart:html library. 27 // Auto-generated dart:html library.
27 28
(...skipping 6786 matching lines...) Expand 10 before | Expand all | Expand 10 after
6814 @DocsEditable 6815 @DocsEditable
6815 String value; 6816 String value;
6816 } 6817 }
6817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6818 // for details. All rights reserved. Use of this source code is governed by a 6819 // for details. All rights reserved. Use of this source code is governed by a
6819 // BSD-style license that can be found in the LICENSE file. 6820 // BSD-style license that can be found in the LICENSE file.
6820 6821
6821 6822
6822 @DocsEditable 6823 @DocsEditable
6823 @DomName('DOMStringList') 6824 @DomName('DOMStringList')
6824 class DomStringList extends Object with ListMixin<String>, ImmutableListMixin<St ring> implements JavaScriptIndexingBehavior, List<String> native "DOMStringList" { 6825 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString List" {
6825 6826
6826 @DomName('DOMStringList.length') 6827 @DomName('DOMStringList.length')
6827 @DocsEditable 6828 @DocsEditable
6828 int get length => JS("int", "#.length", this); 6829 int get length => JS("int", "#.length", this);
6829 6830
6830 String operator[](int index) => JS("String", "#[#]", this, index); 6831 String operator[](int index) => JS("String", "#[#]", this, index);
6831 6832
6832 void operator[]=(int index, String value) { 6833 void operator[]=(int index, String value) {
6833 throw new UnsupportedError("Cannot assign element of immutable List."); 6834 throw new UnsupportedError("Cannot assign element of immutable List.");
6834 } 6835 }
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after
9180 @DocsEditable 9181 @DocsEditable
9181 String toString() native; 9182 String toString() native;
9182 } 9183 }
9183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9184 // for details. All rights reserved. Use of this source code is governed by a 9185 // for details. All rights reserved. Use of this source code is governed by a
9185 // BSD-style license that can be found in the LICENSE file. 9186 // BSD-style license that can be found in the LICENSE file.
9186 9187
9187 9188
9188 @DocsEditable 9189 @DocsEditable
9189 @DomName('FileList') 9190 @DomName('FileList')
9190 class FileList extends Object with ListMixin<File>, ImmutableListMixin<File> imp lements JavaScriptIndexingBehavior, List<File> native "FileList" { 9191 class FileList extends Interceptor with ListMixin<File>, ImmutableListMixin<File > implements JavaScriptIndexingBehavior, List<File> native "FileList" {
9191 9192
9192 @DomName('FileList.length') 9193 @DomName('FileList.length')
9193 @DocsEditable 9194 @DocsEditable
9194 int get length => JS("int", "#.length", this); 9195 int get length => JS("int", "#.length", this);
9195 9196
9196 File operator[](int index) => JS("File", "#[#]", this, index); 9197 File operator[](int index) => JS("File", "#[#]", this, index);
9197 9198
9198 void operator[]=(int index, File value) { 9199 void operator[]=(int index, File value) {
9199 throw new UnsupportedError("Cannot assign element of immutable List."); 9200 throw new UnsupportedError("Cannot assign element of immutable List.");
9200 } 9201 }
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
9977 @SupportedBrowser(SupportedBrowser.SAFARI) 9978 @SupportedBrowser(SupportedBrowser.SAFARI)
9978 void replaceState(Object data, String title, [String url]) native; 9979 void replaceState(Object data, String title, [String url]) native;
9979 } 9980 }
9980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9981 // for details. All rights reserved. Use of this source code is governed by a 9982 // for details. All rights reserved. Use of this source code is governed by a
9982 // BSD-style license that can be found in the LICENSE file. 9983 // BSD-style license that can be found in the LICENSE file.
9983 9984
9984 9985
9985 @DocsEditable 9986 @DocsEditable
9986 @DomName('HTMLAllCollection') 9987 @DomName('HTMLAllCollection')
9987 class HtmlAllCollection extends Object with ListMixin<Node>, ImmutableListMixin< Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllCollectio n" { 9988 class HtmlAllCollection extends Interceptor with ListMixin<Node>, ImmutableListM ixin<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllColl ection" {
9988 9989
9989 @DomName('HTMLAllCollection.length') 9990 @DomName('HTMLAllCollection.length')
9990 @DocsEditable 9991 @DocsEditable
9991 int get length => JS("int", "#.length", this); 9992 int get length => JS("int", "#.length", this);
9992 9993
9993 Node operator[](int index) => JS("Node", "#[#]", this, index); 9994 Node operator[](int index) => JS("Node", "#[#]", this, index);
9994 9995
9995 void operator[]=(int index, Node value) { 9996 void operator[]=(int index, Node value) {
9996 throw new UnsupportedError("Cannot assign element of immutable List."); 9997 throw new UnsupportedError("Cannot assign element of immutable List.");
9997 } 9998 }
(...skipping 21 matching lines...) Expand all
10019 @Creates('NodeList') 10020 @Creates('NodeList')
10020 List<Node> tags(String name) native; 10021 List<Node> tags(String name) native;
10021 } 10022 }
10022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10023 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10023 // for details. All rights reserved. Use of this source code is governed by a 10024 // for details. All rights reserved. Use of this source code is governed by a
10024 // BSD-style license that can be found in the LICENSE file. 10025 // BSD-style license that can be found in the LICENSE file.
10025 10026
10026 10027
10027 @DocsEditable 10028 @DocsEditable
10028 @DomName('HTMLCollection') 10029 @DomName('HTMLCollection')
10029 class HtmlCollection extends Object with ListMixin<Node>, ImmutableListMixin<Nod e> implements JavaScriptIndexingBehavior, List<Node> native "HTMLCollection" { 10030 class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixi n<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLCollection " {
10030 10031
10031 @DomName('HTMLCollection.length') 10032 @DomName('HTMLCollection.length')
10032 @DocsEditable 10033 @DocsEditable
10033 int get length => JS("int", "#.length", this); 10034 int get length => JS("int", "#.length", this);
10034 10035
10035 Node operator[](int index) => JS("Node", "#[#]", this, index); 10036 Node operator[](int index) => JS("Node", "#[#]", this, index);
10036 10037
10037 void operator[]=(int index, Node value) { 10038 void operator[]=(int index, Node value) {
10038 throw new UnsupportedError("Cannot assign element of immutable List."); 10039 throw new UnsupportedError("Cannot assign element of immutable List.");
10039 } 10040 }
(...skipping 3457 matching lines...) Expand 10 before | Expand all | Expand 10 after
13497 @DocsEditable 13498 @DocsEditable
13498 final String type; 13499 final String type;
13499 } 13500 }
13500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13501 // for details. All rights reserved. Use of this source code is governed by a 13502 // for details. All rights reserved. Use of this source code is governed by a
13502 // BSD-style license that can be found in the LICENSE file. 13503 // BSD-style license that can be found in the LICENSE file.
13503 13504
13504 13505
13505 @DocsEditable 13506 @DocsEditable
13506 @DomName('MimeTypeArray') 13507 @DomName('MimeTypeArray')
13507 class MimeTypeArray extends Object with ListMixin<MimeType>, ImmutableListMixin< MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "MimeType Array" { 13508 class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM ixin<MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "Mim eTypeArray" {
13508 13509
13509 @DomName('MimeTypeArray.length') 13510 @DomName('MimeTypeArray.length')
13510 @DocsEditable 13511 @DocsEditable
13511 int get length => JS("int", "#.length", this); 13512 int get length => JS("int", "#.length", this);
13512 13513
13513 MimeType operator[](int index) => JS("MimeType", "#[#]", this, index); 13514 MimeType operator[](int index) => JS("MimeType", "#[#]", this, index);
13514 13515
13515 void operator[]=(int index, MimeType value) { 13516 void operator[]=(int index, MimeType value) {
13516 throw new UnsupportedError("Cannot assign element of immutable List."); 13517 throw new UnsupportedError("Cannot assign element of immutable List.");
13517 } 13518 }
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after
14749 Node previousNode() native; 14750 Node previousNode() native;
14750 14751
14751 } 14752 }
14752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14753 // for details. All rights reserved. Use of this source code is governed by a 14754 // for details. All rights reserved. Use of this source code is governed by a
14754 // BSD-style license that can be found in the LICENSE file. 14755 // BSD-style license that can be found in the LICENSE file.
14755 14756
14756 14757
14757 @DocsEditable 14758 @DocsEditable
14758 @DomName('NodeList') 14759 @DomName('NodeList')
14759 class NodeList extends Object with ListMixin<Node>, ImmutableListMixin<Node> imp lements JavaScriptIndexingBehavior, List<Node> native "NodeList,RadioNodeList" { 14760 class NodeList extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node > implements JavaScriptIndexingBehavior, List<Node> native "NodeList,RadioNodeLi st" {
14760 14761
14761 @DomName('NodeList.length') 14762 @DomName('NodeList.length')
14762 @DocsEditable 14763 @DocsEditable
14763 int get length => JS("int", "#.length", this); 14764 int get length => JS("int", "#.length", this);
14764 14765
14765 Node operator[](int index) => JS("Node", "#[#]", this, index); 14766 Node operator[](int index) => JS("Node", "#[#]", this, index);
14766 14767
14767 void operator[]=(int index, Node value) { 14768 void operator[]=(int index, Node value) {
14768 throw new UnsupportedError("Cannot assign element of immutable List."); 14769 throw new UnsupportedError("Cannot assign element of immutable List.");
14769 } 14770 }
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
15730 @DocsEditable 15731 @DocsEditable
15731 MimeType namedItem(String name) native; 15732 MimeType namedItem(String name) native;
15732 } 15733 }
15733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15734 // for details. All rights reserved. Use of this source code is governed by a 15735 // for details. All rights reserved. Use of this source code is governed by a
15735 // BSD-style license that can be found in the LICENSE file. 15736 // BSD-style license that can be found in the LICENSE file.
15736 15737
15737 15738
15738 @DocsEditable 15739 @DocsEditable
15739 @DomName('PluginArray') 15740 @DomName('PluginArray')
15740 class PluginArray extends Object with ListMixin<Plugin>, ImmutableListMixin<Plug in> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray" { 15741 class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin <Plugin> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray " {
15741 15742
15742 @DomName('PluginArray.length') 15743 @DomName('PluginArray.length')
15743 @DocsEditable 15744 @DocsEditable
15744 int get length => JS("int", "#.length", this); 15745 int get length => JS("int", "#.length", this);
15745 15746
15746 Plugin operator[](int index) => JS("Plugin", "#[#]", this, index); 15747 Plugin operator[](int index) => JS("Plugin", "#[#]", this, index);
15747 15748
15748 void operator[]=(int index, Plugin value) { 15749 void operator[]=(int index, Plugin value) {
15749 throw new UnsupportedError("Cannot assign element of immutable List."); 15750 throw new UnsupportedError("Cannot assign element of immutable List.");
15750 } 15751 }
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after
17493 @DocsEditable 17494 @DocsEditable
17494 num weight; 17495 num weight;
17495 } 17496 }
17496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17497 // for details. All rights reserved. Use of this source code is governed by a 17498 // for details. All rights reserved. Use of this source code is governed by a
17498 // BSD-style license that can be found in the LICENSE file. 17499 // BSD-style license that can be found in the LICENSE file.
17499 17500
17500 17501
17501 @DocsEditable 17502 @DocsEditable
17502 @DomName('SpeechGrammarList') 17503 @DomName('SpeechGrammarList')
17503 class SpeechGrammarList extends Object with ListMixin<SpeechGrammar>, ImmutableL istMixin<SpeechGrammar> implements JavaScriptIndexingBehavior, List<SpeechGramma r> native "SpeechGrammarList" { 17504 class SpeechGrammarList extends Interceptor with ListMixin<SpeechGrammar>, Immut ableListMixin<SpeechGrammar> implements JavaScriptIndexingBehavior, List<SpeechG rammar> native "SpeechGrammarList" {
17504 17505
17505 @DomName('SpeechGrammarList.SpeechGrammarList') 17506 @DomName('SpeechGrammarList.SpeechGrammarList')
17506 @DocsEditable 17507 @DocsEditable
17507 factory SpeechGrammarList() { 17508 factory SpeechGrammarList() {
17508 return SpeechGrammarList._create_1(); 17509 return SpeechGrammarList._create_1();
17509 } 17510 }
17510 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra mmarList()'); 17511 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra mmarList()');
17511 17512
17512 @DomName('SpeechGrammarList.length') 17513 @DomName('SpeechGrammarList.length')
17513 @DocsEditable 17514 @DocsEditable
(...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
18791 @DocsEditable 18792 @DocsEditable
18792 Stream<Event> get onExit => exitEvent.forTarget(this); 18793 Stream<Event> get onExit => exitEvent.forTarget(this);
18793 } 18794 }
18794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18795 // for details. All rights reserved. Use of this source code is governed by a 18796 // for details. All rights reserved. Use of this source code is governed by a
18796 // BSD-style license that can be found in the LICENSE file. 18797 // BSD-style license that can be found in the LICENSE file.
18797 18798
18798 18799
18799 @DocsEditable 18800 @DocsEditable
18800 @DomName('TextTrackCueList') 18801 @DomName('TextTrackCueList')
18801 class TextTrackCueList extends Object with ListMixin<TextTrackCue>, ImmutableLis tMixin<TextTrackCue> implements List<TextTrackCue>, JavaScriptIndexingBehavior n ative "TextTrackCueList" { 18802 class TextTrackCueList extends Interceptor with ListMixin<TextTrackCue>, Immutab leListMixin<TextTrackCue> implements List<TextTrackCue>, JavaScriptIndexingBehav ior native "TextTrackCueList" {
18802 18803
18803 @DomName('TextTrackCueList.length') 18804 @DomName('TextTrackCueList.length')
18804 @DocsEditable 18805 @DocsEditable
18805 int get length => JS("int", "#.length", this); 18806 int get length => JS("int", "#.length", this);
18806 18807
18807 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index); 18808 TextTrackCue operator[](int index) => JS("TextTrackCue", "#[#]", this, index);
18808 18809
18809 void operator[]=(int index, TextTrackCue value) { 18810 void operator[]=(int index, TextTrackCue value) {
18810 throw new UnsupportedError("Cannot assign element of immutable List."); 18811 throw new UnsupportedError("Cannot assign element of immutable List.");
18811 } 18812 }
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
19090 } 19091 }
19091 } 19092 }
19092 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 19093 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
19093 // for details. All rights reserved. Use of this source code is governed by a 19094 // for details. All rights reserved. Use of this source code is governed by a
19094 // BSD-style license that can be found in the LICENSE file. 19095 // BSD-style license that can be found in the LICENSE file.
19095 19096
19096 // WARNING: Do not edit - generated code. 19097 // WARNING: Do not edit - generated code.
19097 19098
19098 19099
19099 @DomName('TouchList') 19100 @DomName('TouchList')
19100 class TouchList extends Object with ListMixin<Touch>, ImmutableListMixin<Touch> implements JavaScriptIndexingBehavior, List<Touch> native "TouchList" { 19101 class TouchList extends Interceptor with ListMixin<Touch>, ImmutableListMixin<To uch> implements JavaScriptIndexingBehavior, List<Touch> native "TouchList" {
19101 /// NB: This constructor likely does not work as you might expect it to! This 19102 /// NB: This constructor likely does not work as you might expect it to! This
19102 /// constructor will simply fail (returning null) if you are not on a device 19103 /// constructor will simply fail (returning null) if you are not on a device
19103 /// with touch enabled. See dartbug.com/8314. 19104 /// with touch enabled. See dartbug.com/8314.
19104 factory TouchList() => document.$dom_createTouchList(); 19105 factory TouchList() => document.$dom_createTouchList();
19105 19106
19106 /// Checks if this type is supported on the current platform. 19107 /// Checks if this type is supported on the current platform.
19107 static bool get supported => JS('bool', '!!document.createTouchList'); 19108 static bool get supported => JS('bool', '!!document.createTouchList');
19108 19109
19109 @DomName('TouchList.length') 19110 @DomName('TouchList.length')
19110 @DocsEditable 19111 @DocsEditable
(...skipping 2274 matching lines...) Expand 10 before | Expand all | Expand 10 after
21385 @DocsEditable 21386 @DocsEditable
21386 final num width; 21387 final num width;
21387 } 21388 }
21388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21389 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21389 // for details. All rights reserved. Use of this source code is governed by a 21390 // for details. All rights reserved. Use of this source code is governed by a
21390 // BSD-style license that can be found in the LICENSE file. 21391 // BSD-style license that can be found in the LICENSE file.
21391 21392
21392 21393
21393 @DocsEditable 21394 @DocsEditable
21394 @DomName('ClientRectList') 21395 @DomName('ClientRectList')
21395 class _ClientRectList extends Object with ListMixin<Rect>, ImmutableListMixin<Re ct> implements JavaScriptIndexingBehavior, List<Rect> native "ClientRectList" { 21396 class _ClientRectList extends Interceptor with ListMixin<Rect>, ImmutableListMix in<Rect> implements JavaScriptIndexingBehavior, List<Rect> native "ClientRectLis t" {
21396 21397
21397 @DomName('ClientRectList.length') 21398 @DomName('ClientRectList.length')
21398 @DocsEditable 21399 @DocsEditable
21399 int get length => JS("int", "#.length", this); 21400 int get length => JS("int", "#.length", this);
21400 21401
21401 Rect operator[](int index) => JS("Rect", "#[#]", this, index); 21402 Rect operator[](int index) => JS("Rect", "#[#]", this, index);
21402 21403
21403 void operator[]=(int index, Rect value) { 21404 void operator[]=(int index, Rect value) {
21404 throw new UnsupportedError("Cannot assign element of immutable List."); 21405 throw new UnsupportedError("Cannot assign element of immutable List.");
21405 } 21406 }
(...skipping 20 matching lines...) Expand all
21426 @DomName('Counter') 21427 @DomName('Counter')
21427 abstract class _Counter native "Counter" { 21428 abstract class _Counter native "Counter" {
21428 } 21429 }
21429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21430 // for details. All rights reserved. Use of this source code is governed by a 21431 // for details. All rights reserved. Use of this source code is governed by a
21431 // BSD-style license that can be found in the LICENSE file. 21432 // BSD-style license that can be found in the LICENSE file.
21432 21433
21433 21434
21434 @DocsEditable 21435 @DocsEditable
21435 @DomName('CSSRuleList') 21436 @DomName('CSSRuleList')
21436 class _CssRuleList extends Object with ListMixin<CssRule>, ImmutableListMixin<Cs sRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRuleList" { 21437 class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix in<CssRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRule List" {
21437 21438
21438 @DomName('CSSRuleList.length') 21439 @DomName('CSSRuleList.length')
21439 @DocsEditable 21440 @DocsEditable
21440 int get length => JS("int", "#.length", this); 21441 int get length => JS("int", "#.length", this);
21441 21442
21442 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index); 21443 CssRule operator[](int index) => JS("CssRule", "#[#]", this, index);
21443 21444
21444 void operator[]=(int index, CssRule value) { 21445 void operator[]=(int index, CssRule value) {
21445 throw new UnsupportedError("Cannot assign element of immutable List."); 21446 throw new UnsupportedError("Cannot assign element of immutable List.");
21446 } 21447 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
21579 @DomName('EntityReference') 21580 @DomName('EntityReference')
21580 abstract class _EntityReference extends Node native "EntityReference" { 21581 abstract class _EntityReference extends Node native "EntityReference" {
21581 } 21582 }
21582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21583 // for details. All rights reserved. Use of this source code is governed by a 21584 // for details. All rights reserved. Use of this source code is governed by a
21584 // BSD-style license that can be found in the LICENSE file. 21585 // BSD-style license that can be found in the LICENSE file.
21585 21586
21586 21587
21587 @DocsEditable 21588 @DocsEditable
21588 @DomName('EntryArray') 21589 @DomName('EntryArray')
21589 class _EntryArray extends Object with ListMixin<Entry>, ImmutableListMixin<Entry > implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" { 21590 class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin< Entry> implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" {
21590 21591
21591 @DomName('EntryArray.length') 21592 @DomName('EntryArray.length')
21592 @DocsEditable 21593 @DocsEditable
21593 int get length => JS("int", "#.length", this); 21594 int get length => JS("int", "#.length", this);
21594 21595
21595 Entry operator[](int index) => JS("Entry", "#[#]", this, index); 21596 Entry operator[](int index) => JS("Entry", "#[#]", this, index);
21596 21597
21597 void operator[]=(int index, Entry value) { 21598 void operator[]=(int index, Entry value) {
21598 throw new UnsupportedError("Cannot assign element of immutable List."); 21599 throw new UnsupportedError("Cannot assign element of immutable List.");
21599 } 21600 }
(...skipping 11 matching lines...) Expand all
21611 @DocsEditable 21612 @DocsEditable
21612 Entry item(int index) native; 21613 Entry item(int index) native;
21613 } 21614 }
21614 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21615 // for details. All rights reserved. Use of this source code is governed by a 21616 // for details. All rights reserved. Use of this source code is governed by a
21616 // BSD-style license that can be found in the LICENSE file. 21617 // BSD-style license that can be found in the LICENSE file.
21617 21618
21618 21619
21619 @DocsEditable 21620 @DocsEditable
21620 @DomName('EntryArraySync') 21621 @DomName('EntryArraySync')
21621 class _EntryArraySync extends Object with ListMixin<_EntrySync>, ImmutableListMi xin<_EntrySync> implements JavaScriptIndexingBehavior, List<_EntrySync> native " EntryArraySync" { 21622 class _EntryArraySync extends Interceptor with ListMixin<_EntrySync>, ImmutableL istMixin<_EntrySync> implements JavaScriptIndexingBehavior, List<_EntrySync> nat ive "EntryArraySync" {
21622 21623
21623 @DomName('EntryArraySync.length') 21624 @DomName('EntryArraySync.length')
21624 @DocsEditable 21625 @DocsEditable
21625 int get length => JS("int", "#.length", this); 21626 int get length => JS("int", "#.length", this);
21626 21627
21627 _EntrySync operator[](int index) => JS("_EntrySync", "#[#]", this, index); 21628 _EntrySync operator[](int index) => JS("_EntrySync", "#[#]", this, index);
21628 21629
21629 void operator[]=(int index, _EntrySync value) { 21630 void operator[]=(int index, _EntrySync value) {
21630 throw new UnsupportedError("Cannot assign element of immutable List."); 21631 throw new UnsupportedError("Cannot assign element of immutable List.");
21631 } 21632 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
21686 @DomName('FileWriterSync') 21687 @DomName('FileWriterSync')
21687 abstract class _FileWriterSync native "FileWriterSync" { 21688 abstract class _FileWriterSync native "FileWriterSync" {
21688 } 21689 }
21689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21690 // for details. All rights reserved. Use of this source code is governed by a 21691 // for details. All rights reserved. Use of this source code is governed by a
21691 // BSD-style license that can be found in the LICENSE file. 21692 // BSD-style license that can be found in the LICENSE file.
21692 21693
21693 21694
21694 @DocsEditable 21695 @DocsEditable
21695 @DomName('GamepadList') 21696 @DomName('GamepadList')
21696 class _GamepadList extends Object with ListMixin<Gamepad>, ImmutableListMixin<Ga mepad> implements JavaScriptIndexingBehavior, List<Gamepad> native "GamepadList" { 21697 class _GamepadList extends Interceptor with ListMixin<Gamepad>, ImmutableListMix in<Gamepad> implements JavaScriptIndexingBehavior, List<Gamepad> native "Gamepad List" {
21697 21698
21698 @DomName('GamepadList.length') 21699 @DomName('GamepadList.length')
21699 @DocsEditable 21700 @DocsEditable
21700 int get length => JS("int", "#.length", this); 21701 int get length => JS("int", "#.length", this);
21701 21702
21702 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index); 21703 Gamepad operator[](int index) => JS("Gamepad", "#[#]", this, index);
21703 21704
21704 void operator[]=(int index, Gamepad value) { 21705 void operator[]=(int index, Gamepad value) {
21705 throw new UnsupportedError("Cannot assign element of immutable List."); 21706 throw new UnsupportedError("Cannot assign element of immutable List.");
21706 } 21707 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
21781 @DomName('HTMLMarqueeElement') 21782 @DomName('HTMLMarqueeElement')
21782 abstract class _HTMLMarqueeElement extends Element native "HTMLMarqueeElement" { 21783 abstract class _HTMLMarqueeElement extends Element native "HTMLMarqueeElement" {
21783 } 21784 }
21784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21785 // for details. All rights reserved. Use of this source code is governed by a 21786 // for details. All rights reserved. Use of this source code is governed by a
21786 // BSD-style license that can be found in the LICENSE file. 21787 // BSD-style license that can be found in the LICENSE file.
21787 21788
21788 21789
21789 @DocsEditable 21790 @DocsEditable
21790 @DomName('NamedNodeMap') 21791 @DomName('NamedNodeMap')
21791 class _NamedNodeMap extends Object with ListMixin<Node>, ImmutableListMixin<Node > implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap" { 21792 class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin <Node> implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap" {
21792 21793
21793 @DomName('NamedNodeMap.length') 21794 @DomName('NamedNodeMap.length')
21794 @DocsEditable 21795 @DocsEditable
21795 int get length => JS("int", "#.length", this); 21796 int get length => JS("int", "#.length", this);
21796 21797
21797 Node operator[](int index) => JS("Node", "#[#]", this, index); 21798 Node operator[](int index) => JS("Node", "#[#]", this, index);
21798 21799
21799 void operator[]=(int index, Node value) { 21800 void operator[]=(int index, Node value) {
21800 throw new UnsupportedError("Cannot assign element of immutable List."); 21801 throw new UnsupportedError("Cannot assign element of immutable List.");
21801 } 21802 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
21902 @DomName('SharedWorkerContext') 21903 @DomName('SharedWorkerContext')
21903 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC ontext" { 21904 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC ontext" {
21904 } 21905 }
21905 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21906 // for details. All rights reserved. Use of this source code is governed by a 21907 // for details. All rights reserved. Use of this source code is governed by a
21907 // BSD-style license that can be found in the LICENSE file. 21908 // BSD-style license that can be found in the LICENSE file.
21908 21909
21909 21910
21910 @DocsEditable 21911 @DocsEditable
21911 @DomName('SpeechInputResultList') 21912 @DomName('SpeechInputResultList')
21912 class _SpeechInputResultList extends Object with ListMixin<SpeechInputResult>, I mmutableListMixin<SpeechInputResult> implements JavaScriptIndexingBehavior, List <SpeechInputResult> native "SpeechInputResultList" { 21913 class _SpeechInputResultList extends Interceptor with ListMixin<SpeechInputResul t>, ImmutableListMixin<SpeechInputResult> implements JavaScriptIndexingBehavior, List<SpeechInputResult> native "SpeechInputResultList" {
21913 21914
21914 @DomName('SpeechInputResultList.length') 21915 @DomName('SpeechInputResultList.length')
21915 @DocsEditable 21916 @DocsEditable
21916 int get length => JS("int", "#.length", this); 21917 int get length => JS("int", "#.length", this);
21917 21918
21918 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index); 21919 SpeechInputResult operator[](int index) => JS("SpeechInputResult", "#[#]", thi s, index);
21919 21920
21920 void operator[]=(int index, SpeechInputResult value) { 21921 void operator[]=(int index, SpeechInputResult value) {
21921 throw new UnsupportedError("Cannot assign element of immutable List."); 21922 throw new UnsupportedError("Cannot assign element of immutable List.");
21922 } 21923 }
(...skipping 11 matching lines...) Expand all
21934 @DocsEditable 21935 @DocsEditable
21935 SpeechInputResult item(int index) native; 21936 SpeechInputResult item(int index) native;
21936 } 21937 }
21937 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21938 // for details. All rights reserved. Use of this source code is governed by a 21939 // for details. All rights reserved. Use of this source code is governed by a
21939 // BSD-style license that can be found in the LICENSE file. 21940 // BSD-style license that can be found in the LICENSE file.
21940 21941
21941 21942
21942 @DocsEditable 21943 @DocsEditable
21943 @DomName('SpeechRecognitionResultList') 21944 @DomName('SpeechRecognitionResultList')
21944 class _SpeechRecognitionResultList extends Object with ListMixin<SpeechRecogniti onResult>, ImmutableListMixin<SpeechRecognitionResult> implements JavaScriptInde xingBehavior, List<SpeechRecognitionResult> native "SpeechRecognitionResultList" { 21945 class _SpeechRecognitionResultList extends Interceptor with ListMixin<SpeechReco gnitionResult>, ImmutableListMixin<SpeechRecognitionResult> implements JavaScrip tIndexingBehavior, List<SpeechRecognitionResult> native "SpeechRecognitionResult List" {
21945 21946
21946 @DomName('SpeechRecognitionResultList.length') 21947 @DomName('SpeechRecognitionResultList.length')
21947 @DocsEditable 21948 @DocsEditable
21948 int get length => JS("int", "#.length", this); 21949 int get length => JS("int", "#.length", this);
21949 21950
21950 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index); 21951 SpeechRecognitionResult operator[](int index) => JS("SpeechRecognitionResult", "#[#]", this, index);
21951 21952
21952 void operator[]=(int index, SpeechRecognitionResult value) { 21953 void operator[]=(int index, SpeechRecognitionResult value) {
21953 throw new UnsupportedError("Cannot assign element of immutable List."); 21954 throw new UnsupportedError("Cannot assign element of immutable List.");
21954 } 21955 }
(...skipping 11 matching lines...) Expand all
21966 @DocsEditable 21967 @DocsEditable
21967 SpeechRecognitionResult item(int index) native; 21968 SpeechRecognitionResult item(int index) native;
21968 } 21969 }
21969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21970 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21970 // for details. All rights reserved. Use of this source code is governed by a 21971 // for details. All rights reserved. Use of this source code is governed by a
21971 // BSD-style license that can be found in the LICENSE file. 21972 // BSD-style license that can be found in the LICENSE file.
21972 21973
21973 21974
21974 @DocsEditable 21975 @DocsEditable
21975 @DomName('StyleSheetList') 21976 @DomName('StyleSheetList')
21976 class _StyleSheetList extends Object with ListMixin<StyleSheet>, ImmutableListMi xin<StyleSheet> implements JavaScriptIndexingBehavior, List<StyleSheet> native " StyleSheetList" { 21977 class _StyleSheetList extends Interceptor with ListMixin<StyleSheet>, ImmutableL istMixin<StyleSheet> implements JavaScriptIndexingBehavior, List<StyleSheet> nat ive "StyleSheetList" {
21977 21978
21978 @DomName('StyleSheetList.length') 21979 @DomName('StyleSheetList.length')
21979 @DocsEditable 21980 @DocsEditable
21980 int get length => JS("int", "#.length", this); 21981 int get length => JS("int", "#.length", this);
21981 21982
21982 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index); 21983 StyleSheet operator[](int index) => JS("StyleSheet", "#[#]", this, index);
21983 21984
21984 void operator[]=(int index, StyleSheet value) { 21985 void operator[]=(int index, StyleSheet value) {
21985 throw new UnsupportedError("Cannot assign element of immutable List."); 21986 throw new UnsupportedError("Cannot assign element of immutable List.");
21986 } 21987 }
(...skipping 3583 matching lines...) Expand 10 before | Expand all | Expand 10 after
25570 _position = nextPosition; 25571 _position = nextPosition;
25571 return true; 25572 return true;
25572 } 25573 }
25573 _current = null; 25574 _current = null;
25574 _position = _array.length; 25575 _position = _array.length;
25575 return false; 25576 return false;
25576 } 25577 }
25577 25578
25578 T get current => _current; 25579 T get current => _current;
25579 } 25580 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/svg/dart2js/svg_dart2js.dart » ('j') | tests/html/node_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698