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

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

Issue 11415067: Add annotations on native fields and methods (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library html; 1 library html;
2 2
3 import 'dart:isolate'; 3 import 'dart:isolate';
4 import 'dart:json'; 4 import 'dart:json';
5 import 'dart:svg' as svg; 5 import 'dart:svg' as svg;
6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7 // for details. All rights reserved. Use of this source code is governed by a 7 // for details. All rights reserved. Use of this source code is governed by a
8 // BSD-style license that can be found in the LICENSE file. 8 // BSD-style license that can be found in the LICENSE file.
9 9
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 /** @domName HTMLButtonElement.formMethod */ 1024 /** @domName HTMLButtonElement.formMethod */
1025 String formMethod; 1025 String formMethod;
1026 1026
1027 /** @domName HTMLButtonElement.formNoValidate */ 1027 /** @domName HTMLButtonElement.formNoValidate */
1028 bool formNoValidate; 1028 bool formNoValidate;
1029 1029
1030 /** @domName HTMLButtonElement.formTarget */ 1030 /** @domName HTMLButtonElement.formTarget */
1031 String formTarget; 1031 String formTarget;
1032 1032
1033 /** @domName HTMLButtonElement.labels */ 1033 /** @domName HTMLButtonElement.labels */
1034 @Returns('_NodeList') @Creates('_NodeList')
1034 final List<Node> labels; 1035 final List<Node> labels;
1035 1036
1036 /** @domName HTMLButtonElement.name */ 1037 /** @domName HTMLButtonElement.name */
1037 String name; 1038 String name;
1038 1039
1039 /** @domName HTMLButtonElement.type */ 1040 /** @domName HTMLButtonElement.type */
1040 String type; 1041 String type;
1041 1042
1042 /** @domName HTMLButtonElement.validationMessage */ 1043 /** @domName HTMLButtonElement.validationMessage */
1043 final String validationMessage; 1044 final String validationMessage;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 } 1121 }
1121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1122 // for details. All rights reserved. Use of this source code is governed by a 1123 // for details. All rights reserved. Use of this source code is governed by a
1123 // BSD-style license that can be found in the LICENSE file. 1124 // BSD-style license that can be found in the LICENSE file.
1124 1125
1125 1126
1126 /// @domName WebKitCSSKeyframesRule 1127 /// @domName WebKitCSSKeyframesRule
1127 class CSSKeyframesRule extends CSSRule native "*WebKitCSSKeyframesRule" { 1128 class CSSKeyframesRule extends CSSRule native "*WebKitCSSKeyframesRule" {
1128 1129
1129 /** @domName WebKitCSSKeyframesRule.cssRules */ 1130 /** @domName WebKitCSSKeyframesRule.cssRules */
1131 @Returns('_CSSRuleList') @Creates('_CSSRuleList')
vsm 2012/11/20 18:33:46 Does @Returns imply @Creates?
sra1 2012/11/20 19:26:33 No. There is no cross-use of the annotations. I c
1130 final List<CSSRule> cssRules; 1132 final List<CSSRule> cssRules;
1131 1133
1132 /** @domName WebKitCSSKeyframesRule.name */ 1134 /** @domName WebKitCSSKeyframesRule.name */
1133 String name; 1135 String name;
1134 1136
1135 /** @domName WebKitCSSKeyframesRule.deleteRule */ 1137 /** @domName WebKitCSSKeyframesRule.deleteRule */
1136 void deleteRule(String key) native; 1138 void deleteRule(String key) native;
1137 1139
1138 /** @domName WebKitCSSKeyframesRule.findRule */ 1140 /** @domName WebKitCSSKeyframesRule.findRule */
1139 CSSKeyframeRule findRule(String key) native; 1141 CSSKeyframeRule findRule(String key) native;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 } 1256 }
1255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1257 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1256 // for details. All rights reserved. Use of this source code is governed by a 1258 // for details. All rights reserved. Use of this source code is governed by a
1257 // BSD-style license that can be found in the LICENSE file. 1259 // BSD-style license that can be found in the LICENSE file.
1258 1260
1259 1261
1260 /// @domName CSSMediaRule 1262 /// @domName CSSMediaRule
1261 class CSSMediaRule extends CSSRule native "*CSSMediaRule" { 1263 class CSSMediaRule extends CSSRule native "*CSSMediaRule" {
1262 1264
1263 /** @domName CSSMediaRule.cssRules */ 1265 /** @domName CSSMediaRule.cssRules */
1266 @Returns('_CSSRuleList') @Creates('_CSSRuleList')
1264 final List<CSSRule> cssRules; 1267 final List<CSSRule> cssRules;
1265 1268
1266 /** @domName CSSMediaRule.media */ 1269 /** @domName CSSMediaRule.media */
1267 final MediaList media; 1270 final MediaList media;
1268 1271
1269 /** @domName CSSMediaRule.deleteRule */ 1272 /** @domName CSSMediaRule.deleteRule */
1270 void deleteRule(int index) native; 1273 void deleteRule(int index) native;
1271 1274
1272 /** @domName CSSMediaRule.insertRule */ 1275 /** @domName CSSMediaRule.insertRule */
1273 int insertRule(String rule, int index) native; 1276 int insertRule(String rule, int index) native;
(...skipping 3379 matching lines...) Expand 10 before | Expand all | Expand 10 after
4653 } 4656 }
4654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4655 // for details. All rights reserved. Use of this source code is governed by a 4658 // for details. All rights reserved. Use of this source code is governed by a
4656 // BSD-style license that can be found in the LICENSE file. 4659 // BSD-style license that can be found in the LICENSE file.
4657 4660
4658 4661
4659 /// @domName CSSStyleSheet 4662 /// @domName CSSStyleSheet
4660 class CSSStyleSheet extends StyleSheet native "*CSSStyleSheet" { 4663 class CSSStyleSheet extends StyleSheet native "*CSSStyleSheet" {
4661 4664
4662 /** @domName CSSStyleSheet.cssRules */ 4665 /** @domName CSSStyleSheet.cssRules */
4666 @Returns('_CSSRuleList') @Creates('_CSSRuleList')
4663 final List<CSSRule> cssRules; 4667 final List<CSSRule> cssRules;
4664 4668
4665 /** @domName CSSStyleSheet.ownerRule */ 4669 /** @domName CSSStyleSheet.ownerRule */
4666 final CSSRule ownerRule; 4670 final CSSRule ownerRule;
4667 4671
4668 /** @domName CSSStyleSheet.rules */ 4672 /** @domName CSSStyleSheet.rules */
4673 @Returns('_CSSRuleList') @Creates('_CSSRuleList')
4669 final List<CSSRule> rules; 4674 final List<CSSRule> rules;
4670 4675
4671 /** @domName CSSStyleSheet.addRule */ 4676 /** @domName CSSStyleSheet.addRule */
4672 int addRule(String selector, String style, [int index]) native; 4677 int addRule(String selector, String style, [int index]) native;
4673 4678
4674 /** @domName CSSStyleSheet.deleteRule */ 4679 /** @domName CSSStyleSheet.deleteRule */
4675 void deleteRule(int index) native; 4680 void deleteRule(int index) native;
4676 4681
4677 /** @domName CSSStyleSheet.insertRule */ 4682 /** @domName CSSStyleSheet.insertRule */
4678 int insertRule(String rule, int index) native; 4683 int insertRule(String rule, int index) native;
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
5196 /// @domName Clipboard 5201 /// @domName Clipboard
5197 class Clipboard native "*Clipboard" { 5202 class Clipboard native "*Clipboard" {
5198 5203
5199 /** @domName Clipboard.dropEffect */ 5204 /** @domName Clipboard.dropEffect */
5200 String dropEffect; 5205 String dropEffect;
5201 5206
5202 /** @domName Clipboard.effectAllowed */ 5207 /** @domName Clipboard.effectAllowed */
5203 String effectAllowed; 5208 String effectAllowed;
5204 5209
5205 /** @domName Clipboard.files */ 5210 /** @domName Clipboard.files */
5211 @Returns('_FileList') @Creates('_FileList')
5206 final List<File> files; 5212 final List<File> files;
5207 5213
5208 /** @domName Clipboard.items */ 5214 /** @domName Clipboard.items */
5209 final DataTransferItemList items; 5215 final DataTransferItemList items;
5210 5216
5211 /** @domName Clipboard.types */ 5217 /** @domName Clipboard.types */
5212 final List types; 5218 final List types;
5213 5219
5214 /** @domName Clipboard.clearData */ 5220 /** @domName Clipboard.clearData */
5215 void clearData([String type]) native; 5221 void clearData([String type]) native;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
5345 5351
5346 factory ContentElement() => document.$dom_createElement("content"); 5352 factory ContentElement() => document.$dom_createElement("content");
5347 5353
5348 /** @domName HTMLContentElement.resetStyleInheritance */ 5354 /** @domName HTMLContentElement.resetStyleInheritance */
5349 bool resetStyleInheritance; 5355 bool resetStyleInheritance;
5350 5356
5351 /** @domName HTMLContentElement.select */ 5357 /** @domName HTMLContentElement.select */
5352 String select; 5358 String select;
5353 5359
5354 /** @domName HTMLContentElement.getDistributedNodes */ 5360 /** @domName HTMLContentElement.getDistributedNodes */
5361 @Returns('_NodeList') @Creates('_NodeList')
5355 List<Node> getDistributedNodes() native; 5362 List<Node> getDistributedNodes() native;
5356 } 5363 }
5357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5358 // for details. All rights reserved. Use of this source code is governed by a 5365 // for details. All rights reserved. Use of this source code is governed by a
5359 // BSD-style license that can be found in the LICENSE file. 5366 // BSD-style license that can be found in the LICENSE file.
5360 5367
5361 5368
5362 /// @domName ConvolverNode 5369 /// @domName ConvolverNode
5363 class ConvolverNode extends AudioNode native "*ConvolverNode" { 5370 class ConvolverNode extends AudioNode native "*ConvolverNode" {
5364 5371
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
6431 } 6438 }
6432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6433 // for details. All rights reserved. Use of this source code is governed by a 6440 // for details. All rights reserved. Use of this source code is governed by a
6434 // BSD-style license that can be found in the LICENSE file. 6441 // BSD-style license that can be found in the LICENSE file.
6435 6442
6436 6443
6437 /// @domName DirectoryReaderSync 6444 /// @domName DirectoryReaderSync
6438 class DirectoryReaderSync native "*DirectoryReaderSync" { 6445 class DirectoryReaderSync native "*DirectoryReaderSync" {
6439 6446
6440 /** @domName DirectoryReaderSync.readEntries */ 6447 /** @domName DirectoryReaderSync.readEntries */
6448 @Returns('_EntryArraySync') @Creates('_EntryArraySync')
6441 List<EntrySync> readEntries() native; 6449 List<EntrySync> readEntries() native;
6442 } 6450 }
6443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6444 // for details. All rights reserved. Use of this source code is governed by a 6452 // for details. All rights reserved. Use of this source code is governed by a
6445 // BSD-style license that can be found in the LICENSE file. 6453 // BSD-style license that can be found in the LICENSE file.
6446 6454
6447 6455
6448 /// @domName HTMLDivElement 6456 /// @domName HTMLDivElement
6449 class DivElement extends Element implements Element native "*HTMLDivElement" { 6457 class DivElement extends Element implements Element native "*HTMLDivElement" {
6450 6458
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
6504 /** @domName Document.readyState */ 6512 /** @domName Document.readyState */
6505 final String readyState; 6513 final String readyState;
6506 6514
6507 /** @domName Document.referrer */ 6515 /** @domName Document.referrer */
6508 String get $dom_referrer => JS("String", "#.referrer", this); 6516 String get $dom_referrer => JS("String", "#.referrer", this);
6509 6517
6510 /** @domName Document.selectedStylesheetSet */ 6518 /** @domName Document.selectedStylesheetSet */
6511 String selectedStylesheetSet; 6519 String selectedStylesheetSet;
6512 6520
6513 /** @domName Document.styleSheets */ 6521 /** @domName Document.styleSheets */
6514 List<StyleSheet> get $dom_styleSheets => JS("List<StyleSheet>", "#.styleSheets ", this); 6522 List<StyleSheet> get $dom_styleSheets => JS("_StyleSheetList", "#.styleSheets" , this);
6515 6523
6516 /** @domName Document.title */ 6524 /** @domName Document.title */
6517 String get $dom_title => JS("String", "#.title", this); 6525 String get $dom_title => JS("String", "#.title", this);
6518 6526
6519 /** @domName Document.title */ 6527 /** @domName Document.title */
6520 void set $dom_title(String value) { 6528 void set $dom_title(String value) {
6521 JS("void", "#.title = #", this, value); 6529 JS("void", "#.title = #", this, value);
6522 } 6530 }
6523 6531
6524 /** @domName Document.webkitFullscreenElement */ 6532 /** @domName Document.webkitFullscreenElement */
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
6579 /** @domName Document.execCommand */ 6587 /** @domName Document.execCommand */
6580 bool execCommand(String command, bool userInterface, String value) native; 6588 bool execCommand(String command, bool userInterface, String value) native;
6581 6589
6582 /** @domName Document.getCSSCanvasContext */ 6590 /** @domName Document.getCSSCanvasContext */
6583 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int width, int height) native; 6591 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int width, int height) native;
6584 6592
6585 /** @domName Document.getElementById */ 6593 /** @domName Document.getElementById */
6586 Element $dom_getElementById(String elementId) native "getElementById"; 6594 Element $dom_getElementById(String elementId) native "getElementById";
6587 6595
6588 /** @domName Document.getElementsByClassName */ 6596 /** @domName Document.getElementsByClassName */
6597 @Returns('_NodeList') @Creates('_NodeList')
6589 List<Node> $dom_getElementsByClassName(String tagname) native "getElementsByCl assName"; 6598 List<Node> $dom_getElementsByClassName(String tagname) native "getElementsByCl assName";
6590 6599
6591 /** @domName Document.getElementsByName */ 6600 /** @domName Document.getElementsByName */
6601 @Returns('_NodeList') @Creates('_NodeList')
6592 List<Node> $dom_getElementsByName(String elementName) native "getElementsByNam e"; 6602 List<Node> $dom_getElementsByName(String elementName) native "getElementsByNam e";
6593 6603
6594 /** @domName Document.getElementsByTagName */ 6604 /** @domName Document.getElementsByTagName */
6605 @Returns('_NodeList') @Creates('_NodeList')
6595 List<Node> $dom_getElementsByTagName(String tagname) native "getElementsByTagN ame"; 6606 List<Node> $dom_getElementsByTagName(String tagname) native "getElementsByTagN ame";
6596 6607
6597 /** @domName Document.queryCommandEnabled */ 6608 /** @domName Document.queryCommandEnabled */
6598 bool queryCommandEnabled(String command) native; 6609 bool queryCommandEnabled(String command) native;
6599 6610
6600 /** @domName Document.queryCommandIndeterm */ 6611 /** @domName Document.queryCommandIndeterm */
6601 bool queryCommandIndeterm(String command) native; 6612 bool queryCommandIndeterm(String command) native;
6602 6613
6603 /** @domName Document.queryCommandState */ 6614 /** @domName Document.queryCommandState */
6604 bool queryCommandState(String command) native; 6615 bool queryCommandState(String command) native;
6605 6616
6606 /** @domName Document.queryCommandSupported */ 6617 /** @domName Document.queryCommandSupported */
6607 bool queryCommandSupported(String command) native; 6618 bool queryCommandSupported(String command) native;
6608 6619
6609 /** @domName Document.queryCommandValue */ 6620 /** @domName Document.queryCommandValue */
6610 String queryCommandValue(String command) native; 6621 String queryCommandValue(String command) native;
6611 6622
6612 /** @domName Document.querySelector */ 6623 /** @domName Document.querySelector */
6613 Element $dom_querySelector(String selectors) native "querySelector"; 6624 Element $dom_querySelector(String selectors) native "querySelector";
6614 6625
6615 /** @domName Document.querySelectorAll */ 6626 /** @domName Document.querySelectorAll */
6627 @Returns('_NodeList') @Creates('_NodeList')
6616 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; 6628 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll";
6617 6629
6618 /** @domName Document.webkitCancelFullScreen */ 6630 /** @domName Document.webkitCancelFullScreen */
6619 void $dom_webkitCancelFullScreen() native "webkitCancelFullScreen"; 6631 void $dom_webkitCancelFullScreen() native "webkitCancelFullScreen";
6620 6632
6621 /** @domName Document.webkitExitFullscreen */ 6633 /** @domName Document.webkitExitFullscreen */
6622 void $dom_webkitExitFullscreen() native "webkitExitFullscreen"; 6634 void $dom_webkitExitFullscreen() native "webkitExitFullscreen";
6623 6635
6624 /** @domName Document.webkitExitPointerLock */ 6636 /** @domName Document.webkitExitPointerLock */
6625 void $dom_webkitExitPointerLock() native "webkitExitPointerLock"; 6637 void $dom_webkitExitPointerLock() native "webkitExitPointerLock";
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
7025 /** 7037 /**
7026 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 7038 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
7027 */ 7039 */
7028 ElementEvents get on => 7040 ElementEvents get on =>
7029 new ElementEvents(this); 7041 new ElementEvents(this);
7030 7042
7031 /** @domName DocumentFragment.querySelector */ 7043 /** @domName DocumentFragment.querySelector */
7032 Element $dom_querySelector(String selectors) native "querySelector"; 7044 Element $dom_querySelector(String selectors) native "querySelector";
7033 7045
7034 /** @domName DocumentFragment.querySelectorAll */ 7046 /** @domName DocumentFragment.querySelectorAll */
7047 @Returns('_NodeList') @Creates('_NodeList')
7035 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; 7048 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll";
7036 7049
7037 } 7050 }
7038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7051 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7039 // for details. All rights reserved. Use of this source code is governed by a 7052 // for details. All rights reserved. Use of this source code is governed by a
7040 // BSD-style license that can be found in the LICENSE file. 7053 // BSD-style license that can be found in the LICENSE file.
7041 7054
7042 7055
7043 /// @domName DocumentType 7056 /// @domName DocumentType
7044 class DocumentType extends Node native "*DocumentType" { 7057 class DocumentType extends Node native "*DocumentType" {
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
7713 /** 7726 /**
7714 * Experimental support for [web components][wc]. This field stores a 7727 * Experimental support for [web components][wc]. This field stores a
7715 * reference to the component implementation. It was inspired by Mozilla's 7728 * reference to the component implementation. It was inspired by Mozilla's
7716 * [x-tags][] project. Please note: in the future it may be possible to 7729 * [x-tags][] project. Please note: in the future it may be possible to
7717 * `extend Element` from your class, in which case this field will be 7730 * `extend Element` from your class, in which case this field will be
7718 * deprecated and will simply return this [Element] object. 7731 * deprecated and will simply return this [Element] object.
7719 * 7732 *
7720 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html 7733 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html
7721 * [x-tags]: http://x-tags.org/ 7734 * [x-tags]: http://x-tags.org/
7722 */ 7735 */
7736 @Creates('Null') // Set from Dart code; does not instantiate a native type.
7723 var xtag; 7737 var xtag;
7724 7738
7725 // TODO(vsm): Implement noSuchMethod or similar for dart2js. 7739 // TODO(vsm): Implement noSuchMethod or similar for dart2js.
7726 7740
7727 /** @domName Element.insertAdjacentText */ 7741 /** @domName Element.insertAdjacentText */
7728 void insertAdjacentText(String where, String text) { 7742 void insertAdjacentText(String where, String text) {
7729 if (JS('bool', '!!#.insertAdjacentText', this)) { 7743 if (JS('bool', '!!#.insertAdjacentText', this)) {
7730 _insertAdjacentText(where, text); 7744 _insertAdjacentText(where, text);
7731 } else { 7745 } else {
7732 _insertAdjacentNode(where, new Text(text)); 7746 _insertAdjacentNode(where, new Text(text));
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
7915 /** @domName Element.focus */ 7929 /** @domName Element.focus */
7916 void focus() native; 7930 void focus() native;
7917 7931
7918 /** @domName Element.getAttribute */ 7932 /** @domName Element.getAttribute */
7919 String $dom_getAttribute(String name) native "getAttribute"; 7933 String $dom_getAttribute(String name) native "getAttribute";
7920 7934
7921 /** @domName Element.getBoundingClientRect */ 7935 /** @domName Element.getBoundingClientRect */
7922 ClientRect getBoundingClientRect() native; 7936 ClientRect getBoundingClientRect() native;
7923 7937
7924 /** @domName Element.getClientRects */ 7938 /** @domName Element.getClientRects */
7939 @Returns('_ClientRectList') @Creates('_ClientRectList')
7925 List<ClientRect> getClientRects() native; 7940 List<ClientRect> getClientRects() native;
7926 7941
7927 /** @domName Element.getElementsByClassName */ 7942 /** @domName Element.getElementsByClassName */
7943 @Returns('_NodeList') @Creates('_NodeList')
7928 List<Node> $dom_getElementsByClassName(String name) native "getElementsByClass Name"; 7944 List<Node> $dom_getElementsByClassName(String name) native "getElementsByClass Name";
7929 7945
7930 /** @domName Element.getElementsByTagName */ 7946 /** @domName Element.getElementsByTagName */
7947 @Returns('_NodeList') @Creates('_NodeList')
7931 List<Node> $dom_getElementsByTagName(String name) native "getElementsByTagName "; 7948 List<Node> $dom_getElementsByTagName(String name) native "getElementsByTagName ";
7932 7949
7933 /** @domName Element.hasAttribute */ 7950 /** @domName Element.hasAttribute */
7934 bool $dom_hasAttribute(String name) native "hasAttribute"; 7951 bool $dom_hasAttribute(String name) native "hasAttribute";
7935 7952
7936 /** @domName Element.querySelector */ 7953 /** @domName Element.querySelector */
7937 Element $dom_querySelector(String selectors) native "querySelector"; 7954 Element $dom_querySelector(String selectors) native "querySelector";
7938 7955
7939 /** @domName Element.querySelectorAll */ 7956 /** @domName Element.querySelectorAll */
7957 @Returns('_NodeList') @Creates('_NodeList')
7940 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; 7958 List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll";
7941 7959
7942 /** @domName Element.removeAttribute */ 7960 /** @domName Element.removeAttribute */
7943 void $dom_removeAttribute(String name) native "removeAttribute"; 7961 void $dom_removeAttribute(String name) native "removeAttribute";
7944 7962
7945 /** @domName Element.scrollByLines */ 7963 /** @domName Element.scrollByLines */
7946 void scrollByLines(int lines) native; 7964 void scrollByLines(int lines) native;
7947 7965
7948 /** @domName Element.scrollByPages */ 7966 /** @domName Element.scrollByPages */
7949 void scrollByPages(int pages) native; 7967 void scrollByPages(int pages) native;
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
9545 9563
9546 // -- end List<Node> mixins. 9564 // -- end List<Node> mixins.
9547 9565
9548 /** @domName HTMLAllCollection.item */ 9566 /** @domName HTMLAllCollection.item */
9549 Node item(int index) native; 9567 Node item(int index) native;
9550 9568
9551 /** @domName HTMLAllCollection.namedItem */ 9569 /** @domName HTMLAllCollection.namedItem */
9552 Node namedItem(String name) native; 9570 Node namedItem(String name) native;
9553 9571
9554 /** @domName HTMLAllCollection.tags */ 9572 /** @domName HTMLAllCollection.tags */
9573 @Returns('_NodeList') @Creates('_NodeList')
9555 List<Node> tags(String name) native; 9574 List<Node> tags(String name) native;
9556 } 9575 }
9557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9558 // for details. All rights reserved. Use of this source code is governed by a 9577 // for details. All rights reserved. Use of this source code is governed by a
9559 // BSD-style license that can be found in the LICENSE file. 9578 // BSD-style license that can be found in the LICENSE file.
9560 9579
9561 9580
9562 /// @domName HTMLCollection 9581 /// @domName HTMLCollection
9563 class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" { 9582 class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "* HTMLCollection" {
9564 9583
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
10138 /** 10157 /**
10139 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10158 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
10140 */ 10159 */
10141 IDBDatabaseEvents get on => 10160 IDBDatabaseEvents get on =>
10142 new IDBDatabaseEvents(this); 10161 new IDBDatabaseEvents(this);
10143 10162
10144 /** @domName IDBDatabase.name */ 10163 /** @domName IDBDatabase.name */
10145 final String name; 10164 final String name;
10146 10165
10147 /** @domName IDBDatabase.objectStoreNames */ 10166 /** @domName IDBDatabase.objectStoreNames */
10167 @Returns('_DOMStringList') @Creates('_DOMStringList')
10148 final List<String> objectStoreNames; 10168 final List<String> objectStoreNames;
10149 10169
10150 /** @domName IDBDatabase.version */ 10170 /** @domName IDBDatabase.version */
10151 final dynamic version; 10171 final dynamic version;
10152 10172
10153 /** @domName IDBDatabase.addEventListener */ 10173 /** @domName IDBDatabase.addEventListener */
10154 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 10174 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
10155 10175
10156 /** @domName IDBDatabase.close */ 10176 /** @domName IDBDatabase.close */
10157 void close() native; 10177 void close() native;
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
10520 // BSD-style license that can be found in the LICENSE file. 10540 // BSD-style license that can be found in the LICENSE file.
10521 10541
10522 10542
10523 /// @domName IDBObjectStore 10543 /// @domName IDBObjectStore
10524 class IDBObjectStore native "*IDBObjectStore" { 10544 class IDBObjectStore native "*IDBObjectStore" {
10525 10545
10526 /** @domName IDBObjectStore.autoIncrement */ 10546 /** @domName IDBObjectStore.autoIncrement */
10527 final bool autoIncrement; 10547 final bool autoIncrement;
10528 10548
10529 /** @domName IDBObjectStore.indexNames */ 10549 /** @domName IDBObjectStore.indexNames */
10550 @Returns('_DOMStringList') @Creates('_DOMStringList')
10530 final List<String> indexNames; 10551 final List<String> indexNames;
10531 10552
10532 /** @domName IDBObjectStore.keyPath */ 10553 /** @domName IDBObjectStore.keyPath */
10533 final dynamic keyPath; 10554 final dynamic keyPath;
10534 10555
10535 /** @domName IDBObjectStore.name */ 10556 /** @domName IDBObjectStore.name */
10536 final String name; 10557 final String name;
10537 10558
10538 /** @domName IDBObjectStore.transaction */ 10559 /** @domName IDBObjectStore.transaction */
10539 final IDBTransaction transaction; 10560 final IDBTransaction transaction;
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
11070 /** @domName HTMLInputElement.defaultValue */ 11091 /** @domName HTMLInputElement.defaultValue */
11071 String defaultValue; 11092 String defaultValue;
11072 11093
11073 /** @domName HTMLInputElement.dirName */ 11094 /** @domName HTMLInputElement.dirName */
11074 String dirName; 11095 String dirName;
11075 11096
11076 /** @domName HTMLInputElement.disabled */ 11097 /** @domName HTMLInputElement.disabled */
11077 bool disabled; 11098 bool disabled;
11078 11099
11079 /** @domName HTMLInputElement.files */ 11100 /** @domName HTMLInputElement.files */
11101 @Returns('_FileList') @Creates('_FileList')
11080 List<File> files; 11102 List<File> files;
11081 11103
11082 /** @domName HTMLInputElement.form */ 11104 /** @domName HTMLInputElement.form */
11083 final FormElement form; 11105 final FormElement form;
11084 11106
11085 /** @domName HTMLInputElement.formAction */ 11107 /** @domName HTMLInputElement.formAction */
11086 String formAction; 11108 String formAction;
11087 11109
11088 /** @domName HTMLInputElement.formEnctype */ 11110 /** @domName HTMLInputElement.formEnctype */
11089 String formEnctype; 11111 String formEnctype;
(...skipping 10 matching lines...) Expand all
11100 /** @domName HTMLInputElement.height */ 11122 /** @domName HTMLInputElement.height */
11101 int height; 11123 int height;
11102 11124
11103 /** @domName HTMLInputElement.incremental */ 11125 /** @domName HTMLInputElement.incremental */
11104 bool incremental; 11126 bool incremental;
11105 11127
11106 /** @domName HTMLInputElement.indeterminate */ 11128 /** @domName HTMLInputElement.indeterminate */
11107 bool indeterminate; 11129 bool indeterminate;
11108 11130
11109 /** @domName HTMLInputElement.labels */ 11131 /** @domName HTMLInputElement.labels */
11132 @Returns('_NodeList') @Creates('_NodeList')
11110 final List<Node> labels; 11133 final List<Node> labels;
11111 11134
11112 /** @domName HTMLInputElement.list */ 11135 /** @domName HTMLInputElement.list */
11113 final Element list; 11136 final Element list;
11114 11137
11115 /** @domName HTMLInputElement.max */ 11138 /** @domName HTMLInputElement.max */
11116 String max; 11139 String max;
11117 11140
11118 /** @domName HTMLInputElement.maxLength */ 11141 /** @domName HTMLInputElement.maxLength */
11119 int maxLength; 11142 int maxLength;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
11172 /** @domName HTMLInputElement.value */ 11195 /** @domName HTMLInputElement.value */
11173 String value; 11196 String value;
11174 11197
11175 /** @domName HTMLInputElement.valueAsDate */ 11198 /** @domName HTMLInputElement.valueAsDate */
11176 Date valueAsDate; 11199 Date valueAsDate;
11177 11200
11178 /** @domName HTMLInputElement.valueAsNumber */ 11201 /** @domName HTMLInputElement.valueAsNumber */
11179 num valueAsNumber; 11202 num valueAsNumber;
11180 11203
11181 /** @domName HTMLInputElement.webkitEntries */ 11204 /** @domName HTMLInputElement.webkitEntries */
11205 @Returns('_EntryArray') @Creates('_EntryArray')
11182 final List<Entry> webkitEntries; 11206 final List<Entry> webkitEntries;
11183 11207
11184 /** @domName HTMLInputElement.webkitGrammar */ 11208 /** @domName HTMLInputElement.webkitGrammar */
11185 bool webkitGrammar; 11209 bool webkitGrammar;
11186 11210
11187 /** @domName HTMLInputElement.webkitSpeech */ 11211 /** @domName HTMLInputElement.webkitSpeech */
11188 bool webkitSpeech; 11212 bool webkitSpeech;
11189 11213
11190 /** @domName HTMLInputElement.webkitdirectory */ 11214 /** @domName HTMLInputElement.webkitdirectory */
11191 bool webkitdirectory; 11215 bool webkitdirectory;
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
11655 /** @domName HTMLKeygenElement.disabled */ 11679 /** @domName HTMLKeygenElement.disabled */
11656 bool disabled; 11680 bool disabled;
11657 11681
11658 /** @domName HTMLKeygenElement.form */ 11682 /** @domName HTMLKeygenElement.form */
11659 final FormElement form; 11683 final FormElement form;
11660 11684
11661 /** @domName HTMLKeygenElement.keytype */ 11685 /** @domName HTMLKeygenElement.keytype */
11662 String keytype; 11686 String keytype;
11663 11687
11664 /** @domName HTMLKeygenElement.labels */ 11688 /** @domName HTMLKeygenElement.labels */
11689 @Returns('_NodeList') @Creates('_NodeList')
11665 final List<Node> labels; 11690 final List<Node> labels;
11666 11691
11667 /** @domName HTMLKeygenElement.name */ 11692 /** @domName HTMLKeygenElement.name */
11668 String name; 11693 String name;
11669 11694
11670 /** @domName HTMLKeygenElement.type */ 11695 /** @domName HTMLKeygenElement.type */
11671 final String type; 11696 final String type;
11672 11697
11673 /** @domName HTMLKeygenElement.validationMessage */ 11698 /** @domName HTMLKeygenElement.validationMessage */
11674 final String validationMessage; 11699 final String validationMessage;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
11810 } 11835 }
11811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11812 // for details. All rights reserved. Use of this source code is governed by a 11837 // for details. All rights reserved. Use of this source code is governed by a
11813 // BSD-style license that can be found in the LICENSE file. 11838 // BSD-style license that can be found in the LICENSE file.
11814 11839
11815 11840
11816 /// @domName Location 11841 /// @domName Location
11817 class LocalLocation implements Location native "*Location" { 11842 class LocalLocation implements Location native "*Location" {
11818 11843
11819 /** @domName Location.ancestorOrigins */ 11844 /** @domName Location.ancestorOrigins */
11845 @Returns('_DOMStringList') @Creates('_DOMStringList')
11820 final List<String> ancestorOrigins; 11846 final List<String> ancestorOrigins;
11821 11847
11822 /** @domName Location.hash */ 11848 /** @domName Location.hash */
11823 String hash; 11849 String hash;
11824 11850
11825 /** @domName Location.host */ 11851 /** @domName Location.host */
11826 String host; 11852 String host;
11827 11853
11828 /** @domName Location.hostname */ 11854 /** @domName Location.hostname */
11829 String hostname; 11855 String hostname;
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
12202 /** @domName Window.find */ 12228 /** @domName Window.find */
12203 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native; 12229 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native;
12204 12230
12205 /** @domName Window.focus */ 12231 /** @domName Window.focus */
12206 void focus() native; 12232 void focus() native;
12207 12233
12208 /** @domName Window.getComputedStyle */ 12234 /** @domName Window.getComputedStyle */
12209 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native "getComputedStyle"; 12235 CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen t) native "getComputedStyle";
12210 12236
12211 /** @domName Window.getMatchedCSSRules */ 12237 /** @domName Window.getMatchedCSSRules */
12238 @Returns('_CSSRuleList') @Creates('_CSSRuleList')
12212 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native ; 12239 List<CSSRule> getMatchedCSSRules(Element element, String pseudoElement) native ;
12213 12240
12214 /** @domName Window.getSelection */ 12241 /** @domName Window.getSelection */
12215 DOMSelection getSelection() native; 12242 DOMSelection getSelection() native;
12216 12243
12217 /** @domName Window.matchMedia */ 12244 /** @domName Window.matchMedia */
12218 MediaQueryList matchMedia(String query) native; 12245 MediaQueryList matchMedia(String query) native;
12219 12246
12220 /** @domName Window.moveBy */ 12247 /** @domName Window.moveBy */
12221 void moveBy(num x, num y) native; 12248 void moveBy(num x, num y) native;
12222 12249
12223 /** @domName Window.moveTo */ 12250 /** @domName Window.moveTo */
12224 void moveTo(num x, num y) native; 12251 void moveTo(num x, num y) native;
12225 12252
12226 /** @domName DOMWindow.openDatabase */ 12253 /** @domName DOMWindow.openDatabase */
12254 @Creates('Database') @Creates('DatabaseSync')
vsm 2012/11/20 18:33:46 FWIW, the first is redundant with the return type.
sra1 2012/11/20 19:26:33 1. If you give any Creates annotation, you must gi
12227 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native; 12255 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]) native;
12228 12256
12229 /** @domName Window.postMessage */ 12257 /** @domName Window.postMessage */
12230 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) { 12258 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List messagePorts]) {
12231 if (?message && 12259 if (?message &&
12232 !?messagePorts) { 12260 !?messagePorts) {
12233 var message_1 = _convertDartToNative_SerializedScriptValue(message); 12261 var message_1 = _convertDartToNative_SerializedScriptValue(message);
12234 _postMessage_1(message_1, targetOrigin); 12262 _postMessage_1(message_1, targetOrigin);
12235 return; 12263 return;
12236 } 12264 }
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
13177 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data); 13205 dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data);
13178 dynamic get _data => JS("dynamic", "#.data", this); 13206 dynamic get _data => JS("dynamic", "#.data", this);
13179 13207
13180 /** @domName MessageEvent.lastEventId */ 13208 /** @domName MessageEvent.lastEventId */
13181 final String lastEventId; 13209 final String lastEventId;
13182 13210
13183 /** @domName MessageEvent.origin */ 13211 /** @domName MessageEvent.origin */
13184 final String origin; 13212 final String origin;
13185 13213
13186 /** @domName MessageEvent.ports */ 13214 /** @domName MessageEvent.ports */
13215 @Creates('=List')
vsm 2012/11/20 18:33:46 What's the significance of the "="?
sra1 2012/11/20 19:26:33 =List is a special hack to name JavaScript Array.
13187 final List ports; 13216 final List ports;
13188 13217
13189 /** @domName MessageEvent.source */ 13218 /** @domName MessageEvent.source */
13190 Window get source => _convertNativeToDart_Window(this._source); 13219 Window get source => _convertNativeToDart_Window(this._source);
13191 dynamic get _source => JS("dynamic", "#.source", this); 13220 dynamic get _source => JS("dynamic", "#.source", this);
13192 13221
13193 /** @domName MessageEvent.initMessageEvent */ 13222 /** @domName MessageEvent.initMessageEvent */
13194 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, L ist messagePorts) native; 13223 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, L ist messagePorts) native;
13195 13224
13196 /** @domName MessageEvent.webkitInitMessageEvent */ 13225 /** @domName MessageEvent.webkitInitMessageEvent */
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
13294 13323
13295 /// @domName HTMLMeterElement 13324 /// @domName HTMLMeterElement
13296 class MeterElement extends Element implements Element native "*HTMLMeterElement" { 13325 class MeterElement extends Element implements Element native "*HTMLMeterElement" {
13297 13326
13298 factory MeterElement() => document.$dom_createElement("meter"); 13327 factory MeterElement() => document.$dom_createElement("meter");
13299 13328
13300 /** @domName HTMLMeterElement.high */ 13329 /** @domName HTMLMeterElement.high */
13301 num high; 13330 num high;
13302 13331
13303 /** @domName HTMLMeterElement.labels */ 13332 /** @domName HTMLMeterElement.labels */
13333 @Returns('_NodeList') @Creates('_NodeList')
13304 final List<Node> labels; 13334 final List<Node> labels;
13305 13335
13306 /** @domName HTMLMeterElement.low */ 13336 /** @domName HTMLMeterElement.low */
13307 num low; 13337 num low;
13308 13338
13309 /** @domName HTMLMeterElement.max */ 13339 /** @domName HTMLMeterElement.max */
13310 num max; 13340 num max;
13311 13341
13312 /** @domName HTMLMeterElement.min */ 13342 /** @domName HTMLMeterElement.min */
13313 num min; 13343 num min;
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
13564 } 13594 }
13565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13566 // for details. All rights reserved. Use of this source code is governed by a 13596 // for details. All rights reserved. Use of this source code is governed by a
13567 // BSD-style license that can be found in the LICENSE file. 13597 // BSD-style license that can be found in the LICENSE file.
13568 13598
13569 13599
13570 /// @domName MutationRecord 13600 /// @domName MutationRecord
13571 class MutationRecord native "*MutationRecord" { 13601 class MutationRecord native "*MutationRecord" {
13572 13602
13573 /** @domName MutationRecord.addedNodes */ 13603 /** @domName MutationRecord.addedNodes */
13604 @Returns('_NodeList') @Creates('_NodeList')
13574 final List<Node> addedNodes; 13605 final List<Node> addedNodes;
13575 13606
13576 /** @domName MutationRecord.attributeName */ 13607 /** @domName MutationRecord.attributeName */
13577 final String attributeName; 13608 final String attributeName;
13578 13609
13579 /** @domName MutationRecord.attributeNamespace */ 13610 /** @domName MutationRecord.attributeNamespace */
13580 final String attributeNamespace; 13611 final String attributeNamespace;
13581 13612
13582 /** @domName MutationRecord.nextSibling */ 13613 /** @domName MutationRecord.nextSibling */
13583 final Node nextSibling; 13614 final Node nextSibling;
13584 13615
13585 /** @domName MutationRecord.oldValue */ 13616 /** @domName MutationRecord.oldValue */
13586 final String oldValue; 13617 final String oldValue;
13587 13618
13588 /** @domName MutationRecord.previousSibling */ 13619 /** @domName MutationRecord.previousSibling */
13589 final Node previousSibling; 13620 final Node previousSibling;
13590 13621
13591 /** @domName MutationRecord.removedNodes */ 13622 /** @domName MutationRecord.removedNodes */
13623 @Returns('_NodeList') @Creates('_NodeList')
13592 final List<Node> removedNodes; 13624 final List<Node> removedNodes;
13593 13625
13594 /** @domName MutationRecord.target */ 13626 /** @domName MutationRecord.target */
13595 final Node target; 13627 final Node target;
13596 13628
13597 /** @domName MutationRecord.type */ 13629 /** @domName MutationRecord.type */
13598 final String type; 13630 final String type;
13599 } 13631 }
13600 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13601 // for details. All rights reserved. Use of this source code is governed by a 13633 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
13770 /** @domName Navigator.webkitBattery */ 13802 /** @domName Navigator.webkitBattery */
13771 final BatteryManager webkitBattery; 13803 final BatteryManager webkitBattery;
13772 13804
13773 /** @domName Navigator.getStorageUpdates */ 13805 /** @domName Navigator.getStorageUpdates */
13774 void getStorageUpdates() native; 13806 void getStorageUpdates() native;
13775 13807
13776 /** @domName Navigator.javaEnabled */ 13808 /** @domName Navigator.javaEnabled */
13777 bool javaEnabled() native; 13809 bool javaEnabled() native;
13778 13810
13779 /** @domName Navigator.webkitGetGamepads */ 13811 /** @domName Navigator.webkitGetGamepads */
13812 @Returns('_GamepadList') @Creates('_GamepadList')
13780 List<Gamepad> webkitGetGamepads() native; 13813 List<Gamepad> webkitGetGamepads() native;
13781 13814
13782 /** @domName Navigator.webkitGetUserMedia */ 13815 /** @domName Navigator.webkitGetUserMedia */
13783 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) { 13816 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success Callback, [NavigatorUserMediaErrorCallback errorCallback]) {
13784 if (?errorCallback) { 13817 if (?errorCallback) {
13785 var options_1 = _convertDartToNative_Dictionary(options); 13818 var options_1 = _convertDartToNative_Dictionary(options);
13786 _webkitGetUserMedia_1(options_1, successCallback, errorCallback); 13819 _webkitGetUserMedia_1(options_1, successCallback, errorCallback);
13787 return; 13820 return;
13788 } 13821 }
13789 var options_2 = _convertDartToNative_Dictionary(options); 13822 var options_2 = _convertDartToNative_Dictionary(options);
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
14006 static const int NOTATION_NODE = 12; 14039 static const int NOTATION_NODE = 12;
14007 14040
14008 static const int PROCESSING_INSTRUCTION_NODE = 7; 14041 static const int PROCESSING_INSTRUCTION_NODE = 7;
14009 14042
14010 static const int TEXT_NODE = 3; 14043 static const int TEXT_NODE = 3;
14011 14044
14012 /** @domName Node.attributes */ 14045 /** @domName Node.attributes */
14013 NamedNodeMap get $dom_attributes => JS("NamedNodeMap", "#.attributes", this); 14046 NamedNodeMap get $dom_attributes => JS("NamedNodeMap", "#.attributes", this);
14014 14047
14015 /** @domName Node.childNodes */ 14048 /** @domName Node.childNodes */
14016 List<Node> get $dom_childNodes => JS("List<Node>", "#.childNodes", this); 14049 List<Node> get $dom_childNodes => JS("_NodeList", "#.childNodes", this);
14017 14050
14018 /** @domName Node.firstChild */ 14051 /** @domName Node.firstChild */
14019 Node get $dom_firstChild => JS("Node", "#.firstChild", this); 14052 Node get $dom_firstChild => JS("Node", "#.firstChild", this);
14020 14053
14021 /** @domName Node.lastChild */ 14054 /** @domName Node.lastChild */
14022 Node get $dom_lastChild => JS("Node", "#.lastChild", this); 14055 Node get $dom_lastChild => JS("Node", "#.lastChild", this);
14023 14056
14024 /** @domName Node.nextSibling */ 14057 /** @domName Node.nextSibling */
14025 Node get nextNode => JS("Node", "#.nextSibling", this); 14058 Node get nextNode => JS("Node", "#.nextSibling", this);
14026 14059
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
14541 /** @domName HTMLOutputElement.defaultValue */ 14574 /** @domName HTMLOutputElement.defaultValue */
14542 String defaultValue; 14575 String defaultValue;
14543 14576
14544 /** @domName HTMLOutputElement.form */ 14577 /** @domName HTMLOutputElement.form */
14545 final FormElement form; 14578 final FormElement form;
14546 14579
14547 /** @domName HTMLOutputElement.htmlFor */ 14580 /** @domName HTMLOutputElement.htmlFor */
14548 DOMSettableTokenList htmlFor; 14581 DOMSettableTokenList htmlFor;
14549 14582
14550 /** @domName HTMLOutputElement.labels */ 14583 /** @domName HTMLOutputElement.labels */
14584 @Returns('_NodeList') @Creates('_NodeList')
14551 final List<Node> labels; 14585 final List<Node> labels;
14552 14586
14553 /** @domName HTMLOutputElement.name */ 14587 /** @domName HTMLOutputElement.name */
14554 String name; 14588 String name;
14555 14589
14556 /** @domName HTMLOutputElement.type */ 14590 /** @domName HTMLOutputElement.type */
14557 final String type; 14591 final String type;
14558 14592
14559 /** @domName HTMLOutputElement.validationMessage */ 14593 /** @domName HTMLOutputElement.validationMessage */
14560 final String validationMessage; 14594 final String validationMessage;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
14760 14794
14761 static const int SDP_PRANSWER = 0x200; 14795 static const int SDP_PRANSWER = 0x200;
14762 14796
14763 /** @domName PeerConnection00.iceState */ 14797 /** @domName PeerConnection00.iceState */
14764 final int iceState; 14798 final int iceState;
14765 14799
14766 /** @domName PeerConnection00.localDescription */ 14800 /** @domName PeerConnection00.localDescription */
14767 final SessionDescription localDescription; 14801 final SessionDescription localDescription;
14768 14802
14769 /** @domName PeerConnection00.localStreams */ 14803 /** @domName PeerConnection00.localStreams */
14804 @Returns('_MediaStreamList') @Creates('_MediaStreamList')
14770 final List<MediaStream> localStreams; 14805 final List<MediaStream> localStreams;
14771 14806
14772 /** @domName PeerConnection00.readyState */ 14807 /** @domName PeerConnection00.readyState */
14773 final int readyState; 14808 final int readyState;
14774 14809
14775 /** @domName PeerConnection00.remoteDescription */ 14810 /** @domName PeerConnection00.remoteDescription */
14776 final SessionDescription remoteDescription; 14811 final SessionDescription remoteDescription;
14777 14812
14778 /** @domName PeerConnection00.remoteStreams */ 14813 /** @domName PeerConnection00.remoteStreams */
14814 @Returns('_MediaStreamList') @Creates('_MediaStreamList')
14779 final List<MediaStream> remoteStreams; 14815 final List<MediaStream> remoteStreams;
14780 14816
14781 /** @domName PeerConnection00.addEventListener */ 14817 /** @domName PeerConnection00.addEventListener */
14782 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 14818 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
14783 14819
14784 /** @domName PeerConnection00.addStream */ 14820 /** @domName PeerConnection00.addStream */
14785 void addStream(MediaStream stream, [Map mediaStreamHints]) { 14821 void addStream(MediaStream stream, [Map mediaStreamHints]) {
14786 if (?mediaStreamHints) { 14822 if (?mediaStreamHints) {
14787 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints) ; 14823 var mediaStreamHints_1 = _convertDartToNative_Dictionary(mediaStreamHints) ;
14788 _addStream_1(stream, mediaStreamHints_1); 14824 _addStream_1(stream, mediaStreamHints_1);
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
15079 // for details. All rights reserved. Use of this source code is governed by a 15115 // for details. All rights reserved. Use of this source code is governed by a
15080 // BSD-style license that can be found in the LICENSE file. 15116 // BSD-style license that can be found in the LICENSE file.
15081 15117
15082 15118
15083 /// @domName HTMLProgressElement 15119 /// @domName HTMLProgressElement
15084 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" { 15120 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" {
15085 15121
15086 factory ProgressElement() => document.$dom_createElement("progress"); 15122 factory ProgressElement() => document.$dom_createElement("progress");
15087 15123
15088 /** @domName HTMLProgressElement.labels */ 15124 /** @domName HTMLProgressElement.labels */
15125 @Returns('_NodeList') @Creates('_NodeList')
15089 final List<Node> labels; 15126 final List<Node> labels;
15090 15127
15091 /** @domName HTMLProgressElement.max */ 15128 /** @domName HTMLProgressElement.max */
15092 num max; 15129 num max;
15093 15130
15094 /** @domName HTMLProgressElement.position */ 15131 /** @domName HTMLProgressElement.position */
15095 final num position; 15132 final num position;
15096 15133
15097 /** @domName HTMLProgressElement.value */ 15134 /** @domName HTMLProgressElement.value */
15098 num value; 15135 num value;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
15268 RTCPeerConnectionEvents get on => 15305 RTCPeerConnectionEvents get on =>
15269 new RTCPeerConnectionEvents(this); 15306 new RTCPeerConnectionEvents(this);
15270 15307
15271 /** @domName RTCPeerConnection.iceState */ 15308 /** @domName RTCPeerConnection.iceState */
15272 final String iceState; 15309 final String iceState;
15273 15310
15274 /** @domName RTCPeerConnection.localDescription */ 15311 /** @domName RTCPeerConnection.localDescription */
15275 final RTCSessionDescription localDescription; 15312 final RTCSessionDescription localDescription;
15276 15313
15277 /** @domName RTCPeerConnection.localStreams */ 15314 /** @domName RTCPeerConnection.localStreams */
15315 @Returns('_MediaStreamList') @Creates('_MediaStreamList')
15278 final List<MediaStream> localStreams; 15316 final List<MediaStream> localStreams;
15279 15317
15280 /** @domName RTCPeerConnection.readyState */ 15318 /** @domName RTCPeerConnection.readyState */
15281 final String readyState; 15319 final String readyState;
15282 15320
15283 /** @domName RTCPeerConnection.remoteDescription */ 15321 /** @domName RTCPeerConnection.remoteDescription */
15284 final RTCSessionDescription remoteDescription; 15322 final RTCSessionDescription remoteDescription;
15285 15323
15286 /** @domName RTCPeerConnection.remoteStreams */ 15324 /** @domName RTCPeerConnection.remoteStreams */
15325 @Returns('_MediaStreamList') @Creates('_MediaStreamList')
15287 final List<MediaStream> remoteStreams; 15326 final List<MediaStream> remoteStreams;
15288 15327
15289 /** @domName RTCPeerConnection.addEventListener */ 15328 /** @domName RTCPeerConnection.addEventListener */
15290 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 15329 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
15291 15330
15292 /** @domName RTCPeerConnection.addIceCandidate */ 15331 /** @domName RTCPeerConnection.addIceCandidate */
15293 void addIceCandidate(RTCIceCandidate candidate) native; 15332 void addIceCandidate(RTCIceCandidate candidate) native;
15294 15333
15295 /** @domName RTCPeerConnection.addStream */ 15334 /** @domName RTCPeerConnection.addStream */
15296 void addStream(MediaStream stream, [Map mediaConstraints]) { 15335 void addStream(MediaStream stream, [Map mediaConstraints]) {
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
15552 /** @domName Range.expand */ 15591 /** @domName Range.expand */
15553 void expand(String unit) native; 15592 void expand(String unit) native;
15554 15593
15555 /** @domName Range.extractContents */ 15594 /** @domName Range.extractContents */
15556 DocumentFragment extractContents() native; 15595 DocumentFragment extractContents() native;
15557 15596
15558 /** @domName Range.getBoundingClientRect */ 15597 /** @domName Range.getBoundingClientRect */
15559 ClientRect getBoundingClientRect() native; 15598 ClientRect getBoundingClientRect() native;
15560 15599
15561 /** @domName Range.getClientRects */ 15600 /** @domName Range.getClientRects */
15601 @Returns('_ClientRectList') @Creates('_ClientRectList')
15562 List<ClientRect> getClientRects() native; 15602 List<ClientRect> getClientRects() native;
15563 15603
15564 /** @domName Range.insertNode */ 15604 /** @domName Range.insertNode */
15565 void insertNode(Node newNode) native; 15605 void insertNode(Node newNode) native;
15566 15606
15567 /** @domName Range.intersectsNode */ 15607 /** @domName Range.intersectsNode */
15568 bool intersectsNode(Node refNode) native; 15608 bool intersectsNode(Node refNode) native;
15569 15609
15570 /** @domName Range.isPointInRange */ 15610 /** @domName Range.isPointInRange */
15571 bool isPointInRange(Node refNode, int offset) native; 15611 bool isPointInRange(Node refNode, int offset) native;
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
16047 /** @domName HTMLSelectElement.autofocus */ 16087 /** @domName HTMLSelectElement.autofocus */
16048 bool autofocus; 16088 bool autofocus;
16049 16089
16050 /** @domName HTMLSelectElement.disabled */ 16090 /** @domName HTMLSelectElement.disabled */
16051 bool disabled; 16091 bool disabled;
16052 16092
16053 /** @domName HTMLSelectElement.form */ 16093 /** @domName HTMLSelectElement.form */
16054 final FormElement form; 16094 final FormElement form;
16055 16095
16056 /** @domName HTMLSelectElement.labels */ 16096 /** @domName HTMLSelectElement.labels */
16097 @Returns('_NodeList') @Creates('_NodeList')
16057 final List<Node> labels; 16098 final List<Node> labels;
16058 16099
16059 /** @domName HTMLSelectElement.length */ 16100 /** @domName HTMLSelectElement.length */
16060 int length; 16101 int length;
16061 16102
16062 /** @domName HTMLSelectElement.multiple */ 16103 /** @domName HTMLSelectElement.multiple */
16063 bool multiple; 16104 bool multiple;
16064 16105
16065 /** @domName HTMLSelectElement.name */ 16106 /** @domName HTMLSelectElement.name */
16066 String name; 16107 String name;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
16167 /** @domName ShadowRoot.resetStyleInheritance */ 16208 /** @domName ShadowRoot.resetStyleInheritance */
16168 bool resetStyleInheritance; 16209 bool resetStyleInheritance;
16169 16210
16170 /** @domName ShadowRoot.cloneNode */ 16211 /** @domName ShadowRoot.cloneNode */
16171 Node clone(bool deep) native "cloneNode"; 16212 Node clone(bool deep) native "cloneNode";
16172 16213
16173 /** @domName ShadowRoot.getElementById */ 16214 /** @domName ShadowRoot.getElementById */
16174 Element $dom_getElementById(String elementId) native "getElementById"; 16215 Element $dom_getElementById(String elementId) native "getElementById";
16175 16216
16176 /** @domName ShadowRoot.getElementsByClassName */ 16217 /** @domName ShadowRoot.getElementsByClassName */
16218 @Returns('_NodeList') @Creates('_NodeList')
16177 List<Node> $dom_getElementsByClassName(String className) native "getElementsBy ClassName"; 16219 List<Node> $dom_getElementsByClassName(String className) native "getElementsBy ClassName";
16178 16220
16179 /** @domName ShadowRoot.getElementsByTagName */ 16221 /** @domName ShadowRoot.getElementsByTagName */
16222 @Returns('_NodeList') @Creates('_NodeList')
16180 List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagN ame"; 16223 List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagN ame";
16181 16224
16182 /** @domName ShadowRoot.getSelection */ 16225 /** @domName ShadowRoot.getSelection */
16183 DOMSelection getSelection() native; 16226 DOMSelection getSelection() native;
16184 16227
16185 static bool get supported => 16228 static bool get supported =>
16186 JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)'); 16229 JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)');
16187 } 16230 }
16188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16231 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16189 // for details. All rights reserved. Use of this source code is governed by a 16232 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
16508 } 16551 }
16509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16510 // for details. All rights reserved. Use of this source code is governed by a 16553 // for details. All rights reserved. Use of this source code is governed by a
16511 // BSD-style license that can be found in the LICENSE file. 16554 // BSD-style license that can be found in the LICENSE file.
16512 16555
16513 16556
16514 /// @domName SpeechInputEvent 16557 /// @domName SpeechInputEvent
16515 class SpeechInputEvent extends Event native "*SpeechInputEvent" { 16558 class SpeechInputEvent extends Event native "*SpeechInputEvent" {
16516 16559
16517 /** @domName SpeechInputEvent.results */ 16560 /** @domName SpeechInputEvent.results */
16561 @Returns('_SpeechInputResultList') @Creates('_SpeechInputResultList')
16518 final List<SpeechInputResult> results; 16562 final List<SpeechInputResult> results;
16519 } 16563 }
16520 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16521 // for details. All rights reserved. Use of this source code is governed by a 16565 // for details. All rights reserved. Use of this source code is governed by a
16522 // BSD-style license that can be found in the LICENSE file. 16566 // BSD-style license that can be found in the LICENSE file.
16523 16567
16524 16568
16525 /// @domName SpeechInputResult 16569 /// @domName SpeechInputResult
16526 class SpeechInputResult native "*SpeechInputResult" { 16570 class SpeechInputResult native "*SpeechInputResult" {
16527 16571
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
16657 // BSD-style license that can be found in the LICENSE file. 16701 // BSD-style license that can be found in the LICENSE file.
16658 16702
16659 16703
16660 /// @domName SpeechRecognitionEvent 16704 /// @domName SpeechRecognitionEvent
16661 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { 16705 class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" {
16662 16706
16663 /** @domName SpeechRecognitionEvent.result */ 16707 /** @domName SpeechRecognitionEvent.result */
16664 final SpeechRecognitionResult result; 16708 final SpeechRecognitionResult result;
16665 16709
16666 /** @domName SpeechRecognitionEvent.resultHistory */ 16710 /** @domName SpeechRecognitionEvent.resultHistory */
16711 @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultLis t')
16667 final List<SpeechRecognitionResult> resultHistory; 16712 final List<SpeechRecognitionResult> resultHistory;
16668 16713
16669 /** @domName SpeechRecognitionEvent.resultIndex */ 16714 /** @domName SpeechRecognitionEvent.resultIndex */
16670 final int resultIndex; 16715 final int resultIndex;
16671 } 16716 }
16672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16673 // for details. All rights reserved. Use of this source code is governed by a 16718 // for details. All rights reserved. Use of this source code is governed by a
16674 // BSD-style license that can be found in the LICENSE file. 16719 // BSD-style license that can be found in the LICENSE file.
16675 16720
16676 16721
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
17200 /** @domName HTMLTextAreaElement.dirName */ 17245 /** @domName HTMLTextAreaElement.dirName */
17201 String dirName; 17246 String dirName;
17202 17247
17203 /** @domName HTMLTextAreaElement.disabled */ 17248 /** @domName HTMLTextAreaElement.disabled */
17204 bool disabled; 17249 bool disabled;
17205 17250
17206 /** @domName HTMLTextAreaElement.form */ 17251 /** @domName HTMLTextAreaElement.form */
17207 final FormElement form; 17252 final FormElement form;
17208 17253
17209 /** @domName HTMLTextAreaElement.labels */ 17254 /** @domName HTMLTextAreaElement.labels */
17255 @Returns('_NodeList') @Creates('_NodeList')
17210 final List<Node> labels; 17256 final List<Node> labels;
17211 17257
17212 /** @domName HTMLTextAreaElement.maxLength */ 17258 /** @domName HTMLTextAreaElement.maxLength */
17213 int maxLength; 17259 int maxLength;
17214 17260
17215 /** @domName HTMLTextAreaElement.name */ 17261 /** @domName HTMLTextAreaElement.name */
17216 String name; 17262 String name;
17217 17263
17218 /** @domName HTMLTextAreaElement.placeholder */ 17264 /** @domName HTMLTextAreaElement.placeholder */
17219 String placeholder; 17265 String placeholder;
(...skipping 2636 matching lines...) Expand 10 before | Expand all | Expand 10 after
19856 /** @domName WebKitNamedFlow.overset */ 19902 /** @domName WebKitNamedFlow.overset */
19857 final bool overset; 19903 final bool overset;
19858 19904
19859 /** @domName WebKitNamedFlow.addEventListener */ 19905 /** @domName WebKitNamedFlow.addEventListener */
19860 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener"; 19906 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "addEventListener";
19861 19907
19862 /** @domName WebKitNamedFlow.dispatchEvent */ 19908 /** @domName WebKitNamedFlow.dispatchEvent */
19863 bool $dom_dispatchEvent(Event event) native "dispatchEvent"; 19909 bool $dom_dispatchEvent(Event event) native "dispatchEvent";
19864 19910
19865 /** @domName WebKitNamedFlow.getContent */ 19911 /** @domName WebKitNamedFlow.getContent */
19912 @Returns('_NodeList') @Creates('_NodeList')
19866 List<Node> getContent() native; 19913 List<Node> getContent() native;
19867 19914
19868 /** @domName WebKitNamedFlow.getRegions */ 19915 /** @domName WebKitNamedFlow.getRegions */
19916 @Returns('_NodeList') @Creates('_NodeList')
19869 List<Node> getRegions() native; 19917 List<Node> getRegions() native;
19870 19918
19871 /** @domName WebKitNamedFlow.getRegionsByContent */ 19919 /** @domName WebKitNamedFlow.getRegionsByContent */
19920 @Returns('_NodeList') @Creates('_NodeList')
19872 List<Node> getRegionsByContent(Node contentNode) native; 19921 List<Node> getRegionsByContent(Node contentNode) native;
19873 19922
19874 /** @domName WebKitNamedFlow.removeEventListener */ 19923 /** @domName WebKitNamedFlow.removeEventListener */
19875 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 19924 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
19876 } 19925 }
19877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19878 // for details. All rights reserved. Use of this source code is governed by a 19927 // for details. All rights reserved. Use of this source code is governed by a
19879 // BSD-style license that can be found in the LICENSE file. 19928 // BSD-style license that can be found in the LICENSE file.
19880 19929
19881 // WARNING: Do not edit - generated code. 19930 // WARNING: Do not edit - generated code.
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
21458 class _MessageChannelFactoryProvider { 21507 class _MessageChannelFactoryProvider {
21459 static MessageChannel createMessageChannel() => 21508 static MessageChannel createMessageChannel() =>
21460 JS('MessageChannel', 'new MessageChannel()' ); 21509 JS('MessageChannel', 'new MessageChannel()' );
21461 } 21510 }
21462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21463 // for details. All rights reserved. Use of this source code is governed by a 21512 // for details. All rights reserved. Use of this source code is governed by a
21464 // BSD-style license that can be found in the LICENSE file. 21513 // BSD-style license that can be found in the LICENSE file.
21465 21514
21466 21515
21467 class _MutationObserverFactoryProvider { 21516 class _MutationObserverFactoryProvider {
21468 static MutationObserver createMutationObserver(MutationCallback callback) {
21469 21517
21470 // This is a hack to cause MutationRecord to appear to be instantiated. 21518 @Creates('MutationObserver')
21471 // 21519 @Creates('MutationRecord')
21472 // MutationCallback has a parameter type List<MutationRecord>. From this we 21520 static MutationObserver createMutationObserver(MutationCallback callback) nati ve '''
21473 // infer a list is created in the browser, but not the element type, because
21474 // other native fields and methods return plain List which is too general
21475 // and would imply creating anything. This statement is a work-around.
21476 JS('MutationRecord','0');
21477
21478 return _createMutationObserver(callback);
21479 }
21480
21481 static MutationObserver _createMutationObserver(MutationCallback callback) nat ive '''
21482 var constructor = 21521 var constructor =
21483 window.MutationObserver || window.WebKitMutationObserver || 21522 window.MutationObserver || window.WebKitMutationObserver ||
21484 window.MozMutationObserver; 21523 window.MozMutationObserver;
21485 return new constructor(callback); 21524 return new constructor(callback);
21486 '''; 21525 ''';
21487 21526
21488 // TODO(sra): Dart2js inserts a conversion when a Dart function (i.e. an 21527 // TODO(sra): Dart2js inserts a conversion when a Dart function (i.e. an
21489 // object with a call method) is passed to a native method. This is so the 21528 // object with a call method) is passed to a native method. This is so the
21490 // native code sees a JavaScript function. 21529 // native code sees a JavaScript function.
21491 // 21530 //
(...skipping 3572 matching lines...) Expand 10 before | Expand all | Expand 10 after
25064 if (length < 0) throw new ArgumentError('length'); 25103 if (length < 0) throw new ArgumentError('length');
25065 if (start < 0) throw new RangeError.value(start); 25104 if (start < 0) throw new RangeError.value(start);
25066 int end = start + length; 25105 int end = start + length;
25067 if (end > a.length) throw new RangeError.value(end); 25106 if (end > a.length) throw new RangeError.value(end);
25068 for (int i = start; i < end; i++) { 25107 for (int i = start; i < end; i++) {
25069 accumulator.add(a[i]); 25108 accumulator.add(a[i]);
25070 } 25109 }
25071 return accumulator; 25110 return accumulator;
25072 } 25111 }
25073 } 25112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698