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

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

Issue 11299047: Add constructors for SVG elements and remove static factory providers for html (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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
108 // for details. All rights reserved. Use of this source code is governed by a 108 // for details. All rights reserved. Use of this source code is governed by a
109 // BSD-style license that can be found in the LICENSE file. 109 // BSD-style license that can be found in the LICENSE file.
110 110
111 111
112 /// @domName HTMLAnchorElement 112 /// @domName HTMLAnchorElement
113 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" { 113 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" {
114 114
115 factory AnchorElement({String href}) { 115 factory AnchorElement({String href}) {
116 if (!?href) { 116 var e = document.$dom_createElement("a");
117 return _Elements.createAnchorElement(); 117 if (href != null) e.href = href;
118 } 118 return e;
119 return _Elements.createAnchorElement(href);
120 } 119 }
121 120
122 /** @domName HTMLAnchorElement.charset */ 121 /** @domName HTMLAnchorElement.charset */
123 String charset; 122 String charset;
124 123
125 /** @domName HTMLAnchorElement.coords */ 124 /** @domName HTMLAnchorElement.coords */
126 String coords; 125 String coords;
127 126
128 /** @domName HTMLAnchorElement.download */ 127 /** @domName HTMLAnchorElement.download */
129 String download; 128 String download;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 String width; 290 String width;
292 } 291 }
293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 292 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
294 // for details. All rights reserved. Use of this source code is governed by a 293 // for details. All rights reserved. Use of this source code is governed by a
295 // BSD-style license that can be found in the LICENSE file. 294 // BSD-style license that can be found in the LICENSE file.
296 295
297 296
298 /// @domName HTMLAreaElement 297 /// @domName HTMLAreaElement
299 class AreaElement extends Element implements Element native "*HTMLAreaElement" { 298 class AreaElement extends Element implements Element native "*HTMLAreaElement" {
300 299
301 factory AreaElement() => _Elements.createAreaElement(); 300 factory AreaElement() => document.$dom_createElement("area");
302 301
303 /** @domName HTMLAreaElement.alt */ 302 /** @domName HTMLAreaElement.alt */
304 String alt; 303 String alt;
305 304
306 /** @domName HTMLAreaElement.coords */ 305 /** @domName HTMLAreaElement.coords */
307 String coords; 306 String coords;
308 307
309 /** @domName HTMLAreaElement.hash */ 308 /** @domName HTMLAreaElement.hash */
310 final String hash; 309 final String hash;
311 310
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 class AudioSourceNode extends AudioNode native "*AudioSourceNode" { 755 class AudioSourceNode extends AudioNode native "*AudioSourceNode" {
757 } 756 }
758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
759 // for details. All rights reserved. Use of this source code is governed by a 758 // for details. All rights reserved. Use of this source code is governed by a
760 // BSD-style license that can be found in the LICENSE file. 759 // BSD-style license that can be found in the LICENSE file.
761 760
762 761
763 /// @domName HTMLBRElement 762 /// @domName HTMLBRElement
764 class BRElement extends Element implements Element native "*HTMLBRElement" { 763 class BRElement extends Element implements Element native "*HTMLBRElement" {
765 764
766 factory BRElement() => _Elements.createBRElement(); 765 factory BRElement() => document.$dom_createElement("br");
767 766
768 /** @domName HTMLBRElement.clear */ 767 /** @domName HTMLBRElement.clear */
769 String clear; 768 String clear;
770 } 769 }
771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
772 // for details. All rights reserved. Use of this source code is governed by a 771 // for details. All rights reserved. Use of this source code is governed by a
773 // BSD-style license that can be found in the LICENSE file. 772 // BSD-style license that can be found in the LICENSE file.
774 773
775 774
776 /// @domName BarInfo 775 /// @domName BarInfo
777 class BarInfo native "*BarInfo" { 776 class BarInfo native "*BarInfo" {
778 777
779 /** @domName BarInfo.visible */ 778 /** @domName BarInfo.visible */
780 final bool visible; 779 final bool visible;
781 } 780 }
782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
783 // for details. All rights reserved. Use of this source code is governed by a 782 // for details. All rights reserved. Use of this source code is governed by a
784 // BSD-style license that can be found in the LICENSE file. 783 // BSD-style license that can be found in the LICENSE file.
785 784
786 785
787 /// @domName HTMLBaseElement 786 /// @domName HTMLBaseElement
788 class BaseElement extends Element implements Element native "*HTMLBaseElement" { 787 class BaseElement extends Element implements Element native "*HTMLBaseElement" {
789 788
790 factory BaseElement() => _Elements.createBaseElement(); 789 factory BaseElement() => document.$dom_createElement("base");
791 790
792 /** @domName HTMLBaseElement.href */ 791 /** @domName HTMLBaseElement.href */
793 String href; 792 String href;
794 793
795 /** @domName HTMLBaseElement.target */ 794 /** @domName HTMLBaseElement.target */
796 String target; 795 String target;
797 } 796 }
798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
799 // for details. All rights reserved. Use of this source code is governed by a 798 // for details. All rights reserved. Use of this source code is governed by a
800 // BSD-style license that can be found in the LICENSE file. 799 // BSD-style license that can be found in the LICENSE file.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 Blob slice([int start, int end, String contentType]) native; 936 Blob slice([int start, int end, String contentType]) native;
938 } 937 }
939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
940 // for details. All rights reserved. Use of this source code is governed by a 939 // for details. All rights reserved. Use of this source code is governed by a
941 // BSD-style license that can be found in the LICENSE file. 940 // BSD-style license that can be found in the LICENSE file.
942 941
943 942
944 /// @domName HTMLBodyElement 943 /// @domName HTMLBodyElement
945 class BodyElement extends Element implements Element native "*HTMLBodyElement" { 944 class BodyElement extends Element implements Element native "*HTMLBodyElement" {
946 945
947 factory BodyElement() => _Elements.createBodyElement(); 946 factory BodyElement() => document.$dom_createElement("body");
948 947
949 /** 948 /**
950 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 949 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
951 */ 950 */
952 BodyElementEvents get on => 951 BodyElementEvents get on =>
953 new BodyElementEvents(this); 952 new BodyElementEvents(this);
954 953
955 /** @domName HTMLBodyElement.aLink */ 954 /** @domName HTMLBodyElement.aLink */
956 String aLink; 955 String aLink;
957 956
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 EventListenerList get unload => this['unload']; 997 EventListenerList get unload => this['unload'];
999 } 998 }
1000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1001 // for details. All rights reserved. Use of this source code is governed by a 1000 // for details. All rights reserved. Use of this source code is governed by a
1002 // BSD-style license that can be found in the LICENSE file. 1001 // BSD-style license that can be found in the LICENSE file.
1003 1002
1004 1003
1005 /// @domName HTMLButtonElement 1004 /// @domName HTMLButtonElement
1006 class ButtonElement extends Element implements Element native "*HTMLButtonElemen t" { 1005 class ButtonElement extends Element implements Element native "*HTMLButtonElemen t" {
1007 1006
1008 factory ButtonElement() => _Elements.createButtonElement(); 1007 factory ButtonElement() => document.$dom_createElement("button");
1009 1008
1010 /** @domName HTMLButtonElement.autofocus */ 1009 /** @domName HTMLButtonElement.autofocus */
1011 bool autofocus; 1010 bool autofocus;
1012 1011
1013 /** @domName HTMLButtonElement.disabled */ 1012 /** @domName HTMLButtonElement.disabled */
1014 bool disabled; 1013 bool disabled;
1015 1014
1016 /** @domName HTMLButtonElement.form */ 1015 /** @domName HTMLButtonElement.form */
1017 final FormElement form; 1016 final FormElement form;
1018 1017
(...skipping 3746 matching lines...) Expand 10 before | Expand all | Expand 10 after
4765 final int cssValueType; 4764 final int cssValueType;
4766 } 4765 }
4767 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4768 // for details. All rights reserved. Use of this source code is governed by a 4767 // for details. All rights reserved. Use of this source code is governed by a
4769 // BSD-style license that can be found in the LICENSE file. 4768 // BSD-style license that can be found in the LICENSE file.
4770 4769
4771 4770
4772 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" { 4771 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" {
4773 4772
4774 factory CanvasElement({int width, int height}) { 4773 factory CanvasElement({int width, int height}) {
4775 if (!?width) { 4774 var e = document.$dom_createElement("canvas");
4776 return _Elements.createCanvasElement(); 4775 if (width != null) e.width = width;
4777 } 4776 if (height != null) e.height = height;
4778 if (!?height) { 4777 return e;
4779 return _Elements.createCanvasElement(width);
4780 }
4781 return _Elements.createCanvasElement(width, height);
4782 } 4778 }
4783 4779
4784 /** @domName HTMLCanvasElement.height */ 4780 /** @domName HTMLCanvasElement.height */
4785 int height; 4781 int height;
4786 4782
4787 /** @domName HTMLCanvasElement.width */ 4783 /** @domName HTMLCanvasElement.width */
4788 int width; 4784 int width;
4789 4785
4790 /** @domName HTMLCanvasElement.toDataURL */ 4786 /** @domName HTMLCanvasElement.toDataURL */
4791 String toDataURL(String type, [num quality]) native; 4787 String toDataURL(String type, [num quality]) native;
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
5336 5332
5337 } 5333 }
5338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5339 // for details. All rights reserved. Use of this source code is governed by a 5335 // for details. All rights reserved. Use of this source code is governed by a
5340 // BSD-style license that can be found in the LICENSE file. 5336 // BSD-style license that can be found in the LICENSE file.
5341 5337
5342 5338
5343 /// @domName HTMLContentElement 5339 /// @domName HTMLContentElement
5344 class ContentElement extends Element implements Element native "*HTMLContentElem ent" { 5340 class ContentElement extends Element implements Element native "*HTMLContentElem ent" {
5345 5341
5346 factory ContentElement() => _Elements.createContentElement(); 5342 factory ContentElement() => document.$dom_createElement("content");
5347 5343
5348 /** @domName HTMLContentElement.resetStyleInheritance */ 5344 /** @domName HTMLContentElement.resetStyleInheritance */
5349 bool resetStyleInheritance; 5345 bool resetStyleInheritance;
5350 5346
5351 /** @domName HTMLContentElement.select */ 5347 /** @domName HTMLContentElement.select */
5352 String select; 5348 String select;
5353 5349
5354 /** @domName HTMLContentElement.getDistributedNodes */ 5350 /** @domName HTMLContentElement.getDistributedNodes */
5355 List<Node> getDistributedNodes() native; 5351 List<Node> getDistributedNodes() native;
5356 } 5352 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
5445 5441
5446 } 5442 }
5447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5448 // for details. All rights reserved. Use of this source code is governed by a 5444 // for details. All rights reserved. Use of this source code is governed by a
5449 // BSD-style license that can be found in the LICENSE file. 5445 // BSD-style license that can be found in the LICENSE file.
5450 5446
5451 5447
5452 /// @domName HTMLDListElement 5448 /// @domName HTMLDListElement
5453 class DListElement extends Element implements Element native "*HTMLDListElement" { 5449 class DListElement extends Element implements Element native "*HTMLDListElement" {
5454 5450
5455 factory DListElement() => _Elements.createDListElement(); 5451 factory DListElement() => document.$dom_createElement("dl");
5456 5452
5457 /** @domName HTMLDListElement.compact */ 5453 /** @domName HTMLDListElement.compact */
5458 bool compact; 5454 bool compact;
5459 } 5455 }
5460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5456 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5461 // for details. All rights reserved. Use of this source code is governed by a 5457 // for details. All rights reserved. Use of this source code is governed by a
5462 // BSD-style license that can be found in the LICENSE file. 5458 // BSD-style license that can be found in the LICENSE file.
5463 5459
5464 5460
5465 /// @domName DOMApplicationCache 5461 /// @domName DOMApplicationCache
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
6051 bool toggle(String token, [bool force]) native; 6047 bool toggle(String token, [bool force]) native;
6052 } 6048 }
6053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6049 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6054 // for details. All rights reserved. Use of this source code is governed by a 6050 // for details. All rights reserved. Use of this source code is governed by a
6055 // BSD-style license that can be found in the LICENSE file. 6051 // BSD-style license that can be found in the LICENSE file.
6056 6052
6057 6053
6058 /// @domName HTMLDataListElement 6054 /// @domName HTMLDataListElement
6059 class DataListElement extends Element implements Element native "*HTMLDataListEl ement" { 6055 class DataListElement extends Element implements Element native "*HTMLDataListEl ement" {
6060 6056
6061 factory DataListElement() => _Elements.createDataListElement(); 6057 factory DataListElement() => document.$dom_createElement("datalist");
6062 6058
6063 /** @domName HTMLDataListElement.options */ 6059 /** @domName HTMLDataListElement.options */
6064 final HTMLCollection options; 6060 final HTMLCollection options;
6065 } 6061 }
6066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6062 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6067 // for details. All rights reserved. Use of this source code is governed by a 6063 // for details. All rights reserved. Use of this source code is governed by a
6068 // BSD-style license that can be found in the LICENSE file. 6064 // BSD-style license that can be found in the LICENSE file.
6069 6065
6070 6066
6071 /// @domName DataTransferItem 6067 /// @domName DataTransferItem
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
6269 final AudioParam delayTime; 6265 final AudioParam delayTime;
6270 } 6266 }
6271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6272 // for details. All rights reserved. Use of this source code is governed by a 6268 // for details. All rights reserved. Use of this source code is governed by a
6273 // BSD-style license that can be found in the LICENSE file. 6269 // BSD-style license that can be found in the LICENSE file.
6274 6270
6275 6271
6276 /// @domName HTMLDetailsElement 6272 /// @domName HTMLDetailsElement
6277 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" { 6273 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" {
6278 6274
6279 factory DetailsElement() => _Elements.createDetailsElement(); 6275 factory DetailsElement() => document.$dom_createElement("details");
6280 6276
6281 /** @domName HTMLDetailsElement.open */ 6277 /** @domName HTMLDetailsElement.open */
6282 bool open; 6278 bool open;
6283 } 6279 }
6284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6285 // for details. All rights reserved. Use of this source code is governed by a 6281 // for details. All rights reserved. Use of this source code is governed by a
6286 // BSD-style license that can be found in the LICENSE file. 6282 // BSD-style license that can be found in the LICENSE file.
6287 6283
6288 6284
6289 /// @domName DeviceMotionEvent 6285 /// @domName DeviceMotionEvent
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
6441 List<EntrySync> readEntries() native; 6437 List<EntrySync> readEntries() native;
6442 } 6438 }
6443 // 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
6444 // 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
6445 // BSD-style license that can be found in the LICENSE file. 6441 // BSD-style license that can be found in the LICENSE file.
6446 6442
6447 6443
6448 /// @domName HTMLDivElement 6444 /// @domName HTMLDivElement
6449 class DivElement extends Element implements Element native "*HTMLDivElement" { 6445 class DivElement extends Element implements Element native "*HTMLDivElement" {
6450 6446
6451 factory DivElement() => _Elements.createDivElement(); 6447 factory DivElement() => document.$dom_createElement("div");
6452 } 6448 }
6453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6454 // for details. All rights reserved. Use of this source code is governed by a 6450 // for details. All rights reserved. Use of this source code is governed by a
6455 // BSD-style license that can be found in the LICENSE file. 6451 // BSD-style license that can be found in the LICENSE file.
6456 6452
6457 6453
6458 class Document extends Node native "*Document" 6454 class Document extends Node native "*Document"
6459 { 6455 {
6460 6456
6461 6457
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
8163 Element previousElementSibling; 8159 Element previousElementSibling;
8164 } 8160 }
8165 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8166 // for details. All rights reserved. Use of this source code is governed by a 8162 // for details. All rights reserved. Use of this source code is governed by a
8167 // BSD-style license that can be found in the LICENSE file. 8163 // BSD-style license that can be found in the LICENSE file.
8168 8164
8169 8165
8170 /// @domName HTMLEmbedElement 8166 /// @domName HTMLEmbedElement
8171 class EmbedElement extends Element implements Element native "*HTMLEmbedElement" { 8167 class EmbedElement extends Element implements Element native "*HTMLEmbedElement" {
8172 8168
8173 factory EmbedElement() => _Elements.createEmbedElement(); 8169 factory EmbedElement() => document.$dom_createElement("embed");
8174 8170
8175 /** @domName HTMLEmbedElement.align */ 8171 /** @domName HTMLEmbedElement.align */
8176 String align; 8172 String align;
8177 8173
8178 /** @domName HTMLEmbedElement.height */ 8174 /** @domName HTMLEmbedElement.height */
8179 String height; 8175 String height;
8180 8176
8181 /** @domName HTMLEmbedElement.name */ 8177 /** @domName HTMLEmbedElement.name */
8182 String name; 8178 String name;
8183 8179
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
8570 8566
8571 } 8567 }
8572 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8573 // for details. All rights reserved. Use of this source code is governed by a 8569 // for details. All rights reserved. Use of this source code is governed by a
8574 // BSD-style license that can be found in the LICENSE file. 8570 // BSD-style license that can be found in the LICENSE file.
8575 8571
8576 8572
8577 /// @domName HTMLFieldSetElement 8573 /// @domName HTMLFieldSetElement
8578 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl ement" { 8574 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl ement" {
8579 8575
8580 factory FieldSetElement() => _Elements.createFieldSetElement(); 8576 factory FieldSetElement() => document.$dom_createElement("fieldset");
8581 8577
8582 /** @domName HTMLFieldSetElement.disabled */ 8578 /** @domName HTMLFieldSetElement.disabled */
8583 bool disabled; 8579 bool disabled;
8584 8580
8585 /** @domName HTMLFieldSetElement.elements */ 8581 /** @domName HTMLFieldSetElement.elements */
8586 final HTMLCollection elements; 8582 final HTMLCollection elements;
8587 8583
8588 /** @domName HTMLFieldSetElement.form */ 8584 /** @domName HTMLFieldSetElement.form */
8589 final FormElement form; 8585 final FormElement form;
8590 8586
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
9200 void append(String name, String value, String filename) native; 9196 void append(String name, String value, String filename) native;
9201 } 9197 }
9202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9198 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9203 // for details. All rights reserved. Use of this source code is governed by a 9199 // for details. All rights reserved. Use of this source code is governed by a
9204 // BSD-style license that can be found in the LICENSE file. 9200 // BSD-style license that can be found in the LICENSE file.
9205 9201
9206 9202
9207 /// @domName HTMLFormElement 9203 /// @domName HTMLFormElement
9208 class FormElement extends Element implements Element native "*HTMLFormElement" { 9204 class FormElement extends Element implements Element native "*HTMLFormElement" {
9209 9205
9210 factory FormElement() => _Elements.createFormElement(); 9206 factory FormElement() => document.$dom_createElement("form");
9211 9207
9212 /** @domName HTMLFormElement.acceptCharset */ 9208 /** @domName HTMLFormElement.acceptCharset */
9213 String acceptCharset; 9209 String acceptCharset;
9214 9210
9215 /** @domName HTMLFormElement.action */ 9211 /** @domName HTMLFormElement.action */
9216 String action; 9212 String action;
9217 9213
9218 /** @domName HTMLFormElement.autocomplete */ 9214 /** @domName HTMLFormElement.autocomplete */
9219 String autocomplete; 9215 String autocomplete;
9220 9216
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
9409 final int timestamp; 9405 final int timestamp;
9410 } 9406 }
9411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9412 // for details. All rights reserved. Use of this source code is governed by a 9408 // for details. All rights reserved. Use of this source code is governed by a
9413 // BSD-style license that can be found in the LICENSE file. 9409 // BSD-style license that can be found in the LICENSE file.
9414 9410
9415 9411
9416 /// @domName HTMLHRElement 9412 /// @domName HTMLHRElement
9417 class HRElement extends Element implements Element native "*HTMLHRElement" { 9413 class HRElement extends Element implements Element native "*HTMLHRElement" {
9418 9414
9419 factory HRElement() => _Elements.createHRElement(); 9415 factory HRElement() => document.$dom_createElement("hr");
9420 9416
9421 /** @domName HTMLHRElement.align */ 9417 /** @domName HTMLHRElement.align */
9422 String align; 9418 String align;
9423 9419
9424 /** @domName HTMLHRElement.noShade */ 9420 /** @domName HTMLHRElement.noShade */
9425 bool noShade; 9421 bool noShade;
9426 9422
9427 /** @domName HTMLHRElement.size */ 9423 /** @domName HTMLHRElement.size */
9428 String size; 9424 String size;
9429 9425
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
9678 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native; 9674 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native;
9679 } 9675 }
9680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9681 // for details. All rights reserved. Use of this source code is governed by a 9677 // for details. All rights reserved. Use of this source code is governed by a
9682 // BSD-style license that can be found in the LICENSE file. 9678 // BSD-style license that can be found in the LICENSE file.
9683 9679
9684 9680
9685 /// @domName HTMLHeadElement 9681 /// @domName HTMLHeadElement
9686 class HeadElement extends Element implements Element native "*HTMLHeadElement" { 9682 class HeadElement extends Element implements Element native "*HTMLHeadElement" {
9687 9683
9688 factory HeadElement() => _Elements.createHeadElement(); 9684 factory HeadElement() => document.$dom_createElement("head");
9689 9685
9690 /** @domName HTMLHeadElement.profile */ 9686 /** @domName HTMLHeadElement.profile */
9691 String profile; 9687 String profile;
9692 } 9688 }
9693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9694 // for details. All rights reserved. Use of this source code is governed by a 9690 // for details. All rights reserved. Use of this source code is governed by a
9695 // BSD-style license that can be found in the LICENSE file. 9691 // BSD-style license that can be found in the LICENSE file.
9696 9692
9697 9693
9698 /// @domName HTMLHeadingElement 9694 /// @domName HTMLHeadingElement
9699 class HeadingElement extends Element implements Element native "*HTMLHeadingElem ent" { 9695 class HeadingElement extends Element implements Element native "*HTMLHeadingElem ent" {
9700 9696
9701 factory HeadingElement.h1() => _Elements.createHeadingElement_h1(); 9697 factory HeadingElement.h1() => document.$dom_createElement("h1");
9702 9698
9703 factory HeadingElement.h2() => _Elements.createHeadingElement_h2(); 9699 factory HeadingElement.h2() => document.$dom_createElement("h2");
9704 9700
9705 factory HeadingElement.h3() => _Elements.createHeadingElement_h3(); 9701 factory HeadingElement.h3() => document.$dom_createElement("h3");
9706 9702
9707 factory HeadingElement.h4() => _Elements.createHeadingElement_h4(); 9703 factory HeadingElement.h4() => document.$dom_createElement("h4");
9708 9704
9709 factory HeadingElement.h5() => _Elements.createHeadingElement_h5(); 9705 factory HeadingElement.h5() => document.$dom_createElement("h5");
9710 9706
9711 factory HeadingElement.h6() => _Elements.createHeadingElement_h6(); 9707 factory HeadingElement.h6() => document.$dom_createElement("h6");
9712 9708
9713 /** @domName HTMLHeadingElement.align */ 9709 /** @domName HTMLHeadingElement.align */
9714 String align; 9710 String align;
9715 } 9711 }
9716 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9712 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9717 // for details. All rights reserved. Use of this source code is governed by a 9713 // for details. All rights reserved. Use of this source code is governed by a
9718 // BSD-style license that can be found in the LICENSE file. 9714 // BSD-style license that can be found in the LICENSE file.
9719 9715
9720 // WARNING: Do not edit - generated code. 9716 // WARNING: Do not edit - generated code.
9721 9717
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
9798 String get webkitVisibilityState => document.$dom_webkitVisibilityState; 9794 String get webkitVisibilityState => document.$dom_webkitVisibilityState;
9799 } 9795 }
9800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9801 // for details. All rights reserved. Use of this source code is governed by a 9797 // for details. All rights reserved. Use of this source code is governed by a
9802 // BSD-style license that can be found in the LICENSE file. 9798 // BSD-style license that can be found in the LICENSE file.
9803 9799
9804 9800
9805 /// @domName HTMLHtmlElement 9801 /// @domName HTMLHtmlElement
9806 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" { 9802 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" {
9807 9803
9808 factory HtmlElement() => _Elements.createHtmlElement(); 9804 factory HtmlElement() => document.$dom_createElement("html");
9809 } 9805 }
9810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9811 // for details. All rights reserved. Use of this source code is governed by a 9807 // for details. All rights reserved. Use of this source code is governed by a
9812 // BSD-style license that can be found in the LICENSE file. 9808 // BSD-style license that can be found in the LICENSE file.
9813 9809
9814 9810
9815 class HttpRequest extends EventTarget native "*XMLHttpRequest" { 9811 class HttpRequest extends EventTarget native "*XMLHttpRequest" {
9816 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) => 9812 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) =>
9817 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess); 9813 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess);
9818 9814
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
10814 EventListenerList get blocked => this['blocked']; 10810 EventListenerList get blocked => this['blocked'];
10815 } 10811 }
10816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10817 // for details. All rights reserved. Use of this source code is governed by a 10813 // for details. All rights reserved. Use of this source code is governed by a
10818 // BSD-style license that can be found in the LICENSE file. 10814 // BSD-style license that can be found in the LICENSE file.
10819 10815
10820 10816
10821 /// @domName HTMLIFrameElement 10817 /// @domName HTMLIFrameElement
10822 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen t" { 10818 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen t" {
10823 10819
10824 factory IFrameElement() => _Elements.createIFrameElement(); 10820 factory IFrameElement() => document.$dom_createElement("iframe");
10825 10821
10826 /** @domName HTMLIFrameElement.align */ 10822 /** @domName HTMLIFrameElement.align */
10827 String align; 10823 String align;
10828 10824
10829 /** @domName HTMLIFrameElement.contentWindow */ 10825 /** @domName HTMLIFrameElement.contentWindow */
10830 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); 10826 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow);
10831 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); 10827 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this);
10832 10828
10833 /** @domName HTMLIFrameElement.frameBorder */ 10829 /** @domName HTMLIFrameElement.frameBorder */
10834 String frameBorder; 10830 String frameBorder;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
10906 } 10902 }
10907 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10908 // for details. All rights reserved. Use of this source code is governed by a 10904 // for details. All rights reserved. Use of this source code is governed by a
10909 // BSD-style license that can be found in the LICENSE file. 10905 // BSD-style license that can be found in the LICENSE file.
10910 10906
10911 10907
10912 /// @domName HTMLImageElement 10908 /// @domName HTMLImageElement
10913 class ImageElement extends Element implements Element native "*HTMLImageElement" { 10909 class ImageElement extends Element implements Element native "*HTMLImageElement" {
10914 10910
10915 factory ImageElement({String src, int width, int height}) { 10911 factory ImageElement({String src, int width, int height}) {
10916 if (!?src) { 10912 var e = document.$dom_createElement("img");
10917 return _Elements.createImageElement(); 10913 if (src != null) e.src = src;
10918 } 10914 if (width != null) e.width = width;
10919 if (!?width) { 10915 if (height != null) e.height = height;
10920 return _Elements.createImageElement(src); 10916 return e;
10921 }
10922 if (!?height) {
10923 return _Elements.createImageElement(src, width);
10924 }
10925 return _Elements.createImageElement(src, width, height);
10926 } 10917 }
10927 10918
10928 /** @domName HTMLImageElement.align */ 10919 /** @domName HTMLImageElement.align */
10929 String align; 10920 String align;
10930 10921
10931 /** @domName HTMLImageElement.alt */ 10922 /** @domName HTMLImageElement.alt */
10932 String alt; 10923 String alt;
10933 10924
10934 /** @domName HTMLImageElement.border */ 10925 /** @domName HTMLImageElement.border */
10935 String border; 10926 String border;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
10984 } 10975 }
10985 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10986 // for details. All rights reserved. Use of this source code is governed by a 10977 // for details. All rights reserved. Use of this source code is governed by a
10987 // BSD-style license that can be found in the LICENSE file. 10978 // BSD-style license that can be found in the LICENSE file.
10988 10979
10989 10980
10990 /// @domName HTMLInputElement 10981 /// @domName HTMLInputElement
10991 class InputElement extends Element implements Element native "*HTMLInputElement" { 10982 class InputElement extends Element implements Element native "*HTMLInputElement" {
10992 10983
10993 factory InputElement({String type}) { 10984 factory InputElement({String type}) {
10994 if (!?type) { 10985 var e = document.$dom_createElement("input");
10995 return _Elements.createInputElement(); 10986 if (type != null) e.type = type;
10996 } 10987 return e;
10997 return _Elements.createInputElement(type);
10998 } 10988 }
10999 10989
11000 /** 10990 /**
11001 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10991 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
11002 */ 10992 */
11003 InputElementEvents get on => 10993 InputElementEvents get on =>
11004 new InputElementEvents(this); 10994 new InputElementEvents(this);
11005 10995
11006 /** @domName HTMLInputElement.accept */ 10996 /** @domName HTMLInputElement.accept */
11007 String accept; 10997 String accept;
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
11597 void initKeyboardEvent(String type, bool canBubble, bool cancelable, LocalWind ow view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) native; 11587 void initKeyboardEvent(String type, bool canBubble, bool cancelable, LocalWind ow view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) native;
11598 } 11588 }
11599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11589 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11600 // for details. All rights reserved. Use of this source code is governed by a 11590 // for details. All rights reserved. Use of this source code is governed by a
11601 // BSD-style license that can be found in the LICENSE file. 11591 // BSD-style license that can be found in the LICENSE file.
11602 11592
11603 11593
11604 /// @domName HTMLKeygenElement 11594 /// @domName HTMLKeygenElement
11605 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen t" { 11595 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen t" {
11606 11596
11607 factory KeygenElement() => _Elements.createKeygenElement(); 11597 factory KeygenElement() => document.$dom_createElement("keygen");
11608 11598
11609 /** @domName HTMLKeygenElement.autofocus */ 11599 /** @domName HTMLKeygenElement.autofocus */
11610 bool autofocus; 11600 bool autofocus;
11611 11601
11612 /** @domName HTMLKeygenElement.challenge */ 11602 /** @domName HTMLKeygenElement.challenge */
11613 String challenge; 11603 String challenge;
11614 11604
11615 /** @domName HTMLKeygenElement.disabled */ 11605 /** @domName HTMLKeygenElement.disabled */
11616 bool disabled; 11606 bool disabled;
11617 11607
(...skipping 28 matching lines...) Expand all
11646 void setCustomValidity(String error) native; 11636 void setCustomValidity(String error) native;
11647 } 11637 }
11648 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11649 // for details. All rights reserved. Use of this source code is governed by a 11639 // for details. All rights reserved. Use of this source code is governed by a
11650 // BSD-style license that can be found in the LICENSE file. 11640 // BSD-style license that can be found in the LICENSE file.
11651 11641
11652 11642
11653 /// @domName HTMLLIElement 11643 /// @domName HTMLLIElement
11654 class LIElement extends Element implements Element native "*HTMLLIElement" { 11644 class LIElement extends Element implements Element native "*HTMLLIElement" {
11655 11645
11656 factory LIElement() => _Elements.createLIElement(); 11646 factory LIElement() => document.$dom_createElement("li");
11657 11647
11658 /** @domName HTMLLIElement.type */ 11648 /** @domName HTMLLIElement.type */
11659 String type; 11649 String type;
11660 11650
11661 /** @domName HTMLLIElement.value */ 11651 /** @domName HTMLLIElement.value */
11662 int value; 11652 int value;
11663 } 11653 }
11664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11665 // for details. All rights reserved. Use of this source code is governed by a 11655 // for details. All rights reserved. Use of this source code is governed by a
11666 // BSD-style license that can be found in the LICENSE file. 11656 // BSD-style license that can be found in the LICENSE file.
11667 11657
11668 11658
11669 /// @domName HTMLLabelElement 11659 /// @domName HTMLLabelElement
11670 class LabelElement extends Element implements Element native "*HTMLLabelElement" { 11660 class LabelElement extends Element implements Element native "*HTMLLabelElement" {
11671 11661
11672 factory LabelElement() => _Elements.createLabelElement(); 11662 factory LabelElement() => document.$dom_createElement("label");
11673 11663
11674 /** @domName HTMLLabelElement.control */ 11664 /** @domName HTMLLabelElement.control */
11675 final Element control; 11665 final Element control;
11676 11666
11677 /** @domName HTMLLabelElement.form */ 11667 /** @domName HTMLLabelElement.form */
11678 final FormElement form; 11668 final FormElement form;
11679 11669
11680 /** @domName HTMLLabelElement.htmlFor */ 11670 /** @domName HTMLLabelElement.htmlFor */
11681 String htmlFor; 11671 String htmlFor;
11682 } 11672 }
11683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11684 // for details. All rights reserved. Use of this source code is governed by a 11674 // for details. All rights reserved. Use of this source code is governed by a
11685 // BSD-style license that can be found in the LICENSE file. 11675 // BSD-style license that can be found in the LICENSE file.
11686 11676
11687 11677
11688 /// @domName HTMLLegendElement 11678 /// @domName HTMLLegendElement
11689 class LegendElement extends Element implements Element native "*HTMLLegendElemen t" { 11679 class LegendElement extends Element implements Element native "*HTMLLegendElemen t" {
11690 11680
11691 factory LegendElement() => _Elements.createLegendElement(); 11681 factory LegendElement() => document.$dom_createElement("legend");
11692 11682
11693 /** @domName HTMLLegendElement.align */ 11683 /** @domName HTMLLegendElement.align */
11694 String align; 11684 String align;
11695 11685
11696 /** @domName HTMLLegendElement.form */ 11686 /** @domName HTMLLegendElement.form */
11697 final FormElement form; 11687 final FormElement form;
11698 } 11688 }
11699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11700 // for details. All rights reserved. Use of this source code is governed by a 11690 // for details. All rights reserved. Use of this source code is governed by a
11701 // BSD-style license that can be found in the LICENSE file. 11691 // BSD-style license that can be found in the LICENSE file.
11702 11692
11703 11693
11704 /// @domName HTMLLinkElement 11694 /// @domName HTMLLinkElement
11705 class LinkElement extends Element implements Element native "*HTMLLinkElement" { 11695 class LinkElement extends Element implements Element native "*HTMLLinkElement" {
11706 11696
11707 factory LinkElement() => _Elements.createLinkElement(); 11697 factory LinkElement() => document.$dom_createElement("link");
11708 11698
11709 /** @domName HTMLLinkElement.charset */ 11699 /** @domName HTMLLinkElement.charset */
11710 String charset; 11700 String charset;
11711 11701
11712 /** @domName HTMLLinkElement.disabled */ 11702 /** @domName HTMLLinkElement.disabled */
11713 bool disabled; 11703 bool disabled;
11714 11704
11715 /** @domName HTMLLinkElement.href */ 11705 /** @domName HTMLLinkElement.href */
11716 String href; 11706 String href;
11717 11707
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
12404 EventListenerList get transitionEnd => this['webkitTransitionEnd']; 12394 EventListenerList get transitionEnd => this['webkitTransitionEnd'];
12405 } 12395 }
12406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12407 // for details. All rights reserved. Use of this source code is governed by a 12397 // for details. All rights reserved. Use of this source code is governed by a
12408 // BSD-style license that can be found in the LICENSE file. 12398 // BSD-style license that can be found in the LICENSE file.
12409 12399
12410 12400
12411 /// @domName HTMLMapElement 12401 /// @domName HTMLMapElement
12412 class MapElement extends Element implements Element native "*HTMLMapElement" { 12402 class MapElement extends Element implements Element native "*HTMLMapElement" {
12413 12403
12414 factory MapElement() => _Elements.createMapElement(); 12404 factory MapElement() => document.$dom_createElement("map");
12415 12405
12416 /** @domName HTMLMapElement.areas */ 12406 /** @domName HTMLMapElement.areas */
12417 final HTMLCollection areas; 12407 final HTMLCollection areas;
12418 12408
12419 /** @domName HTMLMapElement.name */ 12409 /** @domName HTMLMapElement.name */
12420 String name; 12410 String name;
12421 } 12411 }
12422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12423 // for details. All rights reserved. Use of this source code is governed by a 12413 // for details. All rights reserved. Use of this source code is governed by a
12424 // BSD-style license that can be found in the LICENSE file. 12414 // BSD-style license that can be found in the LICENSE file.
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
13097 final int usedJSHeapSize; 13087 final int usedJSHeapSize;
13098 } 13088 }
13099 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13100 // for details. All rights reserved. Use of this source code is governed by a 13090 // for details. All rights reserved. Use of this source code is governed by a
13101 // BSD-style license that can be found in the LICENSE file. 13091 // BSD-style license that can be found in the LICENSE file.
13102 13092
13103 13093
13104 /// @domName HTMLMenuElement 13094 /// @domName HTMLMenuElement
13105 class MenuElement extends Element implements Element native "*HTMLMenuElement" { 13095 class MenuElement extends Element implements Element native "*HTMLMenuElement" {
13106 13096
13107 factory MenuElement() => _Elements.createMenuElement(); 13097 factory MenuElement() => document.$dom_createElement("menu");
13108 13098
13109 /** @domName HTMLMenuElement.compact */ 13099 /** @domName HTMLMenuElement.compact */
13110 bool compact; 13100 bool compact;
13111 } 13101 }
13112 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13113 // for details. All rights reserved. Use of this source code is governed by a 13103 // for details. All rights reserved. Use of this source code is governed by a
13114 // BSD-style license that can be found in the LICENSE file. 13104 // BSD-style license that can be found in the LICENSE file.
13115 13105
13116 13106
13117 /// @domName MessageChannel 13107 /// @domName MessageChannel
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
13248 13238
13249 typedef void MetadataCallback(Metadata metadata); 13239 typedef void MetadataCallback(Metadata metadata);
13250 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13240 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13251 // for details. All rights reserved. Use of this source code is governed by a 13241 // for details. All rights reserved. Use of this source code is governed by a
13252 // BSD-style license that can be found in the LICENSE file. 13242 // BSD-style license that can be found in the LICENSE file.
13253 13243
13254 13244
13255 /// @domName HTMLMeterElement 13245 /// @domName HTMLMeterElement
13256 class MeterElement extends Element implements Element native "*HTMLMeterElement" { 13246 class MeterElement extends Element implements Element native "*HTMLMeterElement" {
13257 13247
13258 factory MeterElement() => _Elements.createMeterElement(); 13248 factory MeterElement() => document.$dom_createElement("meter");
13259 13249
13260 /** @domName HTMLMeterElement.high */ 13250 /** @domName HTMLMeterElement.high */
13261 num high; 13251 num high;
13262 13252
13263 /** @domName HTMLMeterElement.labels */ 13253 /** @domName HTMLMeterElement.labels */
13264 final List<Node> labels; 13254 final List<Node> labels;
13265 13255
13266 /** @domName HTMLMeterElement.low */ 13256 /** @domName HTMLMeterElement.low */
13267 num low; 13257 num low;
13268 13258
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
14458 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 14448 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
14459 } 14449 }
14460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14461 // for details. All rights reserved. Use of this source code is governed by a 14451 // for details. All rights reserved. Use of this source code is governed by a
14462 // BSD-style license that can be found in the LICENSE file. 14452 // BSD-style license that can be found in the LICENSE file.
14463 14453
14464 14454
14465 /// @domName HTMLOListElement 14455 /// @domName HTMLOListElement
14466 class OListElement extends Element implements Element native "*HTMLOListElement" { 14456 class OListElement extends Element implements Element native "*HTMLOListElement" {
14467 14457
14468 factory OListElement() => _Elements.createOListElement(); 14458 factory OListElement() => document.$dom_createElement("ol");
14469 14459
14470 /** @domName HTMLOListElement.compact */ 14460 /** @domName HTMLOListElement.compact */
14471 bool compact; 14461 bool compact;
14472 14462
14473 /** @domName HTMLOListElement.reversed */ 14463 /** @domName HTMLOListElement.reversed */
14474 bool reversed; 14464 bool reversed;
14475 14465
14476 /** @domName HTMLOListElement.start */ 14466 /** @domName HTMLOListElement.start */
14477 int start; 14467 int start;
14478 14468
14479 /** @domName HTMLOListElement.type */ 14469 /** @domName HTMLOListElement.type */
14480 String type; 14470 String type;
14481 } 14471 }
14482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14483 // for details. All rights reserved. Use of this source code is governed by a 14473 // for details. All rights reserved. Use of this source code is governed by a
14484 // BSD-style license that can be found in the LICENSE file. 14474 // BSD-style license that can be found in the LICENSE file.
14485 14475
14486 14476
14487 /// @domName HTMLObjectElement 14477 /// @domName HTMLObjectElement
14488 class ObjectElement extends Element implements Element native "*HTMLObjectElemen t" { 14478 class ObjectElement extends Element implements Element native "*HTMLObjectElemen t" {
14489 14479
14490 factory ObjectElement() => _Elements.createObjectElement(); 14480 factory ObjectElement() => document.$dom_createElement("object");
14491 14481
14492 /** @domName HTMLObjectElement.align */ 14482 /** @domName HTMLObjectElement.align */
14493 String align; 14483 String align;
14494 14484
14495 /** @domName HTMLObjectElement.archive */ 14485 /** @domName HTMLObjectElement.archive */
14496 String archive; 14486 String archive;
14497 14487
14498 /** @domName HTMLObjectElement.border */ 14488 /** @domName HTMLObjectElement.border */
14499 String border; 14489 String border;
14500 14490
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
14567 final AudioBuffer renderedBuffer; 14557 final AudioBuffer renderedBuffer;
14568 } 14558 }
14569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14570 // for details. All rights reserved. Use of this source code is governed by a 14560 // for details. All rights reserved. Use of this source code is governed by a
14571 // BSD-style license that can be found in the LICENSE file. 14561 // BSD-style license that can be found in the LICENSE file.
14572 14562
14573 14563
14574 /// @domName HTMLOptGroupElement 14564 /// @domName HTMLOptGroupElement
14575 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" { 14565 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" {
14576 14566
14577 factory OptGroupElement() => _Elements.createOptGroupElement(); 14567 factory OptGroupElement() => document.$dom_createElement("optgroup");
14578 14568
14579 /** @domName HTMLOptGroupElement.disabled */ 14569 /** @domName HTMLOptGroupElement.disabled */
14580 bool disabled; 14570 bool disabled;
14581 14571
14582 /** @domName HTMLOptGroupElement.label */ 14572 /** @domName HTMLOptGroupElement.label */
14583 String label; 14573 String label;
14584 } 14574 }
14585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14586 // for details. All rights reserved. Use of this source code is governed by a 14576 // for details. All rights reserved. Use of this source code is governed by a
14587 // BSD-style license that can be found in the LICENSE file. 14577 // BSD-style license that can be found in the LICENSE file.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
14675 void stop(num when) native; 14665 void stop(num when) native;
14676 } 14666 }
14677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14678 // for details. All rights reserved. Use of this source code is governed by a 14668 // for details. All rights reserved. Use of this source code is governed by a
14679 // BSD-style license that can be found in the LICENSE file. 14669 // BSD-style license that can be found in the LICENSE file.
14680 14670
14681 14671
14682 /// @domName HTMLOutputElement 14672 /// @domName HTMLOutputElement
14683 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" { 14673 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" {
14684 14674
14685 factory OutputElement() => _Elements.createOutputElement(); 14675 factory OutputElement() => document.$dom_createElement("output");
14686 14676
14687 /** @domName HTMLOutputElement.defaultValue */ 14677 /** @domName HTMLOutputElement.defaultValue */
14688 String defaultValue; 14678 String defaultValue;
14689 14679
14690 /** @domName HTMLOutputElement.form */ 14680 /** @domName HTMLOutputElement.form */
14691 final FormElement form; 14681 final FormElement form;
14692 14682
14693 /** @domName HTMLOutputElement.htmlFor */ 14683 /** @domName HTMLOutputElement.htmlFor */
14694 DOMSettableTokenList htmlFor; 14684 DOMSettableTokenList htmlFor;
14695 14685
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
14828 void setVelocity(num x, num y, num z) native; 14818 void setVelocity(num x, num y, num z) native;
14829 } 14819 }
14830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14831 // for details. All rights reserved. Use of this source code is governed by a 14821 // for details. All rights reserved. Use of this source code is governed by a
14832 // BSD-style license that can be found in the LICENSE file. 14822 // BSD-style license that can be found in the LICENSE file.
14833 14823
14834 14824
14835 /// @domName HTMLParagraphElement 14825 /// @domName HTMLParagraphElement
14836 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" { 14826 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" {
14837 14827
14838 factory ParagraphElement() => _Elements.createParagraphElement(); 14828 factory ParagraphElement() => document.$dom_createElement("p");
14839 14829
14840 /** @domName HTMLParagraphElement.align */ 14830 /** @domName HTMLParagraphElement.align */
14841 String align; 14831 String align;
14842 } 14832 }
14843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14844 // for details. All rights reserved. Use of this source code is governed by a 14834 // for details. All rights reserved. Use of this source code is governed by a
14845 // BSD-style license that can be found in the LICENSE file. 14835 // BSD-style license that can be found in the LICENSE file.
14846 14836
14847 14837
14848 /// @domName HTMLParamElement 14838 /// @domName HTMLParamElement
14849 class ParamElement extends Element implements Element native "*HTMLParamElement" { 14839 class ParamElement extends Element implements Element native "*HTMLParamElement" {
14850 14840
14851 factory ParamElement() => _Elements.createParamElement(); 14841 factory ParamElement() => document.$dom_createElement("param");
14852 14842
14853 /** @domName HTMLParamElement.name */ 14843 /** @domName HTMLParamElement.name */
14854 String name; 14844 String name;
14855 14845
14856 /** @domName HTMLParamElement.type */ 14846 /** @domName HTMLParamElement.type */
14857 String type; 14847 String type;
14858 14848
14859 /** @domName HTMLParamElement.value */ 14849 /** @domName HTMLParamElement.value */
14860 String value; 14850 String value;
14861 14851
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
15189 15179
15190 typedef void PositionErrorCallback(PositionError error); 15180 typedef void PositionErrorCallback(PositionError error);
15191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15181 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15192 // for details. All rights reserved. Use of this source code is governed by a 15182 // for details. All rights reserved. Use of this source code is governed by a
15193 // BSD-style license that can be found in the LICENSE file. 15183 // BSD-style license that can be found in the LICENSE file.
15194 15184
15195 15185
15196 /// @domName HTMLPreElement 15186 /// @domName HTMLPreElement
15197 class PreElement extends Element implements Element native "*HTMLPreElement" { 15187 class PreElement extends Element implements Element native "*HTMLPreElement" {
15198 15188
15199 factory PreElement() => _Elements.createPreElement(); 15189 factory PreElement() => document.$dom_createElement("pre");
15200 15190
15201 /** @domName HTMLPreElement.width */ 15191 /** @domName HTMLPreElement.width */
15202 int width; 15192 int width;
15203 15193
15204 /** @domName HTMLPreElement.wrap */ 15194 /** @domName HTMLPreElement.wrap */
15205 bool wrap; 15195 bool wrap;
15206 } 15196 }
15207 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15197 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15208 // for details. All rights reserved. Use of this source code is governed by a 15198 // for details. All rights reserved. Use of this source code is governed by a
15209 // BSD-style license that can be found in the LICENSE file. 15199 // BSD-style license that can be found in the LICENSE file.
(...skipping 12 matching lines...) Expand all
15222 final String target; 15212 final String target;
15223 } 15213 }
15224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15225 // for details. All rights reserved. Use of this source code is governed by a 15215 // for details. All rights reserved. Use of this source code is governed by a
15226 // BSD-style license that can be found in the LICENSE file. 15216 // BSD-style license that can be found in the LICENSE file.
15227 15217
15228 15218
15229 /// @domName HTMLProgressElement 15219 /// @domName HTMLProgressElement
15230 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" { 15220 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" {
15231 15221
15232 factory ProgressElement() => _Elements.createProgressElement(); 15222 factory ProgressElement() => document.$dom_createElement("progress");
15233 15223
15234 /** @domName HTMLProgressElement.labels */ 15224 /** @domName HTMLProgressElement.labels */
15235 final List<Node> labels; 15225 final List<Node> labels;
15236 15226
15237 /** @domName HTMLProgressElement.max */ 15227 /** @domName HTMLProgressElement.max */
15238 num max; 15228 num max;
15239 15229
15240 /** @domName HTMLProgressElement.position */ 15230 /** @domName HTMLProgressElement.position */
15241 final num position; 15231 final num position;
15242 15232
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
16072 final int width; 16062 final int width;
16073 } 16063 }
16074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16075 // for details. All rights reserved. Use of this source code is governed by a 16065 // for details. All rights reserved. Use of this source code is governed by a
16076 // BSD-style license that can be found in the LICENSE file. 16066 // BSD-style license that can be found in the LICENSE file.
16077 16067
16078 16068
16079 /// @domName HTMLScriptElement 16069 /// @domName HTMLScriptElement
16080 class ScriptElement extends Element implements Element native "*HTMLScriptElemen t" { 16070 class ScriptElement extends Element implements Element native "*HTMLScriptElemen t" {
16081 16071
16082 factory ScriptElement() => _Elements.createScriptElement(); 16072 factory ScriptElement() => document.$dom_createElement("script");
16083 16073
16084 /** @domName HTMLScriptElement.async */ 16074 /** @domName HTMLScriptElement.async */
16085 bool async; 16075 bool async;
16086 16076
16087 /** @domName HTMLScriptElement.charset */ 16077 /** @domName HTMLScriptElement.charset */
16088 String charset; 16078 String charset;
16089 16079
16090 /** @domName HTMLScriptElement.crossOrigin */ 16080 /** @domName HTMLScriptElement.crossOrigin */
16091 String crossOrigin; 16081 String crossOrigin;
16092 16082
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
16180 /** @domName ScriptProfileNode.children */ 16170 /** @domName ScriptProfileNode.children */
16181 List<ScriptProfileNode> children() native; 16171 List<ScriptProfileNode> children() native;
16182 } 16172 }
16183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16173 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16184 // for details. All rights reserved. Use of this source code is governed by a 16174 // for details. All rights reserved. Use of this source code is governed by a
16185 // BSD-style license that can be found in the LICENSE file. 16175 // BSD-style license that can be found in the LICENSE file.
16186 16176
16187 16177
16188 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" { 16178 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" {
16189 16179
16190 factory SelectElement() => _Elements.createSelectElement(); 16180 factory SelectElement() => document.$dom_createElement("select");
16191 16181
16192 /** @domName HTMLSelectElement.autofocus */ 16182 /** @domName HTMLSelectElement.autofocus */
16193 bool autofocus; 16183 bool autofocus;
16194 16184
16195 /** @domName HTMLSelectElement.disabled */ 16185 /** @domName HTMLSelectElement.disabled */
16196 bool disabled; 16186 bool disabled;
16197 16187
16198 /** @domName HTMLSelectElement.form */ 16188 /** @domName HTMLSelectElement.form */
16199 final FormElement form; 16189 final FormElement form;
16200 16190
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
16500 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 16490 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
16501 } 16491 }
16502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16503 // for details. All rights reserved. Use of this source code is governed by a 16493 // for details. All rights reserved. Use of this source code is governed by a
16504 // BSD-style license that can be found in the LICENSE file. 16494 // BSD-style license that can be found in the LICENSE file.
16505 16495
16506 16496
16507 /// @domName HTMLSourceElement 16497 /// @domName HTMLSourceElement
16508 class SourceElement extends Element implements Element native "*HTMLSourceElemen t" { 16498 class SourceElement extends Element implements Element native "*HTMLSourceElemen t" {
16509 16499
16510 factory SourceElement() => _Elements.createSourceElement(); 16500 factory SourceElement() => document.$dom_createElement("source");
16511 16501
16512 /** @domName HTMLSourceElement.media */ 16502 /** @domName HTMLSourceElement.media */
16513 String media; 16503 String media;
16514 16504
16515 /** @domName HTMLSourceElement.src */ 16505 /** @domName HTMLSourceElement.src */
16516 String src; 16506 String src;
16517 16507
16518 /** @domName HTMLSourceElement.type */ 16508 /** @domName HTMLSourceElement.type */
16519 String type; 16509 String type;
16520 } 16510 }
16521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16522 // for details. All rights reserved. Use of this source code is governed by a 16512 // for details. All rights reserved. Use of this source code is governed by a
16523 // BSD-style license that can be found in the LICENSE file. 16513 // BSD-style license that can be found in the LICENSE file.
16524 16514
16525 16515
16526 /// @domName HTMLSpanElement 16516 /// @domName HTMLSpanElement
16527 class SpanElement extends Element implements Element native "*HTMLSpanElement" { 16517 class SpanElement extends Element implements Element native "*HTMLSpanElement" {
16528 16518
16529 factory SpanElement() => _Elements.createSpanElement(); 16519 factory SpanElement() => document.$dom_createElement("span");
16530 } 16520 }
16531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16521 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16532 // for details. All rights reserved. Use of this source code is governed by a 16522 // for details. All rights reserved. Use of this source code is governed by a
16533 // BSD-style license that can be found in the LICENSE file. 16523 // BSD-style license that can be found in the LICENSE file.
16534 16524
16535 16525
16536 /// @domName SpeechGrammar 16526 /// @domName SpeechGrammar
16537 class SpeechGrammar native "*SpeechGrammar" { 16527 class SpeechGrammar native "*SpeechGrammar" {
16538 16528
16539 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar() ; 16529 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar() ;
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
16984 16974
16985 typedef void StringCallback(String data); 16975 typedef void StringCallback(String data);
16986 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16987 // for details. All rights reserved. Use of this source code is governed by a 16977 // for details. All rights reserved. Use of this source code is governed by a
16988 // BSD-style license that can be found in the LICENSE file. 16978 // BSD-style license that can be found in the LICENSE file.
16989 16979
16990 16980
16991 /// @domName HTMLStyleElement 16981 /// @domName HTMLStyleElement
16992 class StyleElement extends Element implements Element native "*HTMLStyleElement" { 16982 class StyleElement extends Element implements Element native "*HTMLStyleElement" {
16993 16983
16994 factory StyleElement() => _Elements.createStyleElement(); 16984 factory StyleElement() => document.$dom_createElement("style");
16995 16985
16996 /** @domName HTMLStyleElement.disabled */ 16986 /** @domName HTMLStyleElement.disabled */
16997 bool disabled; 16987 bool disabled;
16998 16988
16999 /** @domName HTMLStyleElement.media */ 16989 /** @domName HTMLStyleElement.media */
17000 String media; 16990 String media;
17001 16991
17002 /** @domName HTMLStyleElement.scoped */ 16992 /** @domName HTMLStyleElement.scoped */
17003 bool scoped; 16993 bool scoped;
17004 16994
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
17052 final String type; 17042 final String type;
17053 } 17043 }
17054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17044 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17055 // for details. All rights reserved. Use of this source code is governed by a 17045 // for details. All rights reserved. Use of this source code is governed by a
17056 // BSD-style license that can be found in the LICENSE file. 17046 // BSD-style license that can be found in the LICENSE file.
17057 17047
17058 17048
17059 /// @domName HTMLTableCaptionElement 17049 /// @domName HTMLTableCaptionElement
17060 class TableCaptionElement extends Element implements Element native "*HTMLTableC aptionElement" { 17050 class TableCaptionElement extends Element implements Element native "*HTMLTableC aptionElement" {
17061 17051
17062 factory TableCaptionElement() => _Elements.createTableCaptionElement(); 17052 factory TableCaptionElement() => document.$dom_createElement("caption");
17063 17053
17064 /** @domName HTMLTableCaptionElement.align */ 17054 /** @domName HTMLTableCaptionElement.align */
17065 String align; 17055 String align;
17066 } 17056 }
17067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17057 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17068 // for details. All rights reserved. Use of this source code is governed by a 17058 // for details. All rights reserved. Use of this source code is governed by a
17069 // BSD-style license that can be found in the LICENSE file. 17059 // BSD-style license that can be found in the LICENSE file.
17070 17060
17071 17061
17072 /// @domName HTMLTableCellElement 17062 /// @domName HTMLTableCellElement
17073 class TableCellElement extends Element implements Element native "*HTMLTableCell Element" { 17063 class TableCellElement extends Element implements Element native "*HTMLTableCell Element" {
17074 17064
17075 factory TableCellElement() => _Elements.createTableCellElement(); 17065 factory TableCellElement() => document.$dom_createElement("td");
17076 17066
17077 /** @domName HTMLTableCellElement.abbr */ 17067 /** @domName HTMLTableCellElement.abbr */
17078 String abbr; 17068 String abbr;
17079 17069
17080 /** @domName HTMLTableCellElement.align */ 17070 /** @domName HTMLTableCellElement.align */
17081 String align; 17071 String align;
17082 17072
17083 /** @domName HTMLTableCellElement.axis */ 17073 /** @domName HTMLTableCellElement.axis */
17084 String axis; 17074 String axis;
17085 17075
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
17120 String width; 17110 String width;
17121 } 17111 }
17122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17112 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17123 // for details. All rights reserved. Use of this source code is governed by a 17113 // for details. All rights reserved. Use of this source code is governed by a
17124 // BSD-style license that can be found in the LICENSE file. 17114 // BSD-style license that can be found in the LICENSE file.
17125 17115
17126 17116
17127 /// @domName HTMLTableColElement 17117 /// @domName HTMLTableColElement
17128 class TableColElement extends Element implements Element native "*HTMLTableColEl ement" { 17118 class TableColElement extends Element implements Element native "*HTMLTableColEl ement" {
17129 17119
17130 factory TableColElement() => _Elements.createTableColElement(); 17120 factory TableColElement() => document.$dom_createElement("col");
17131 17121
17132 /** @domName HTMLTableColElement.align */ 17122 /** @domName HTMLTableColElement.align */
17133 String align; 17123 String align;
17134 17124
17135 /** @domName HTMLTableColElement.ch */ 17125 /** @domName HTMLTableColElement.ch */
17136 String ch; 17126 String ch;
17137 17127
17138 /** @domName HTMLTableColElement.chOff */ 17128 /** @domName HTMLTableColElement.chOff */
17139 String chOff; 17129 String chOff;
17140 17130
17141 /** @domName HTMLTableColElement.span */ 17131 /** @domName HTMLTableColElement.span */
17142 int span; 17132 int span;
17143 17133
17144 /** @domName HTMLTableColElement.vAlign */ 17134 /** @domName HTMLTableColElement.vAlign */
17145 String vAlign; 17135 String vAlign;
17146 17136
17147 /** @domName HTMLTableColElement.width */ 17137 /** @domName HTMLTableColElement.width */
17148 String width; 17138 String width;
17149 } 17139 }
17150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17140 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17151 // for details. All rights reserved. Use of this source code is governed by a 17141 // for details. All rights reserved. Use of this source code is governed by a
17152 // BSD-style license that can be found in the LICENSE file. 17142 // BSD-style license that can be found in the LICENSE file.
17153 17143
17154 17144
17155 class TableElement extends Element implements Element native "*HTMLTableElement" { 17145 class TableElement extends Element implements Element native "*HTMLTableElement" {
17156 17146
17157 factory TableElement() => _Elements.createTableElement(); 17147 factory TableElement() => document.$dom_createElement("table");
17158 17148
17159 /** @domName HTMLTableElement.align */ 17149 /** @domName HTMLTableElement.align */
17160 String align; 17150 String align;
17161 17151
17162 /** @domName HTMLTableElement.bgColor */ 17152 /** @domName HTMLTableElement.bgColor */
17163 String bgColor; 17153 String bgColor;
17164 17154
17165 /** @domName HTMLTableElement.border */ 17155 /** @domName HTMLTableElement.border */
17166 String border; 17156 String border;
17167 17157
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
17235 Element _createTBody() native 'createTBody'; 17225 Element _createTBody() native 'createTBody';
17236 } 17226 }
17237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17238 // for details. All rights reserved. Use of this source code is governed by a 17228 // for details. All rights reserved. Use of this source code is governed by a
17239 // BSD-style license that can be found in the LICENSE file. 17229 // BSD-style license that can be found in the LICENSE file.
17240 17230
17241 17231
17242 /// @domName HTMLTableRowElement 17232 /// @domName HTMLTableRowElement
17243 class TableRowElement extends Element implements Element native "*HTMLTableRowEl ement" { 17233 class TableRowElement extends Element implements Element native "*HTMLTableRowEl ement" {
17244 17234
17245 factory TableRowElement() => _Elements.createTableRowElement(); 17235 factory TableRowElement() => document.$dom_createElement("tr");
17246 17236
17247 /** @domName HTMLTableRowElement.align */ 17237 /** @domName HTMLTableRowElement.align */
17248 String align; 17238 String align;
17249 17239
17250 /** @domName HTMLTableRowElement.bgColor */ 17240 /** @domName HTMLTableRowElement.bgColor */
17251 String bgColor; 17241 String bgColor;
17252 17242
17253 /** @domName HTMLTableRowElement.cells */ 17243 /** @domName HTMLTableRowElement.cells */
17254 final HTMLCollection cells; 17244 final HTMLCollection cells;
17255 17245
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
17324 17314
17325 } 17315 }
17326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17327 // for details. All rights reserved. Use of this source code is governed by a 17317 // for details. All rights reserved. Use of this source code is governed by a
17328 // BSD-style license that can be found in the LICENSE file. 17318 // BSD-style license that can be found in the LICENSE file.
17329 17319
17330 17320
17331 /// @domName HTMLTextAreaElement 17321 /// @domName HTMLTextAreaElement
17332 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl ement" { 17322 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl ement" {
17333 17323
17334 factory TextAreaElement() => _Elements.createTextAreaElement(); 17324 factory TextAreaElement() => document.$dom_createElement("textarea");
17335 17325
17336 /** @domName HTMLTextAreaElement.autofocus */ 17326 /** @domName HTMLTextAreaElement.autofocus */
17337 bool autofocus; 17327 bool autofocus;
17338 17328
17339 /** @domName HTMLTextAreaElement.cols */ 17329 /** @domName HTMLTextAreaElement.cols */
17340 int cols; 17330 int cols;
17341 17331
17342 /** @domName HTMLTextAreaElement.defaultValue */ 17332 /** @domName HTMLTextAreaElement.defaultValue */
17343 String defaultValue; 17333 String defaultValue;
17344 17334
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
17815 17805
17816 typedef void TimeoutHandler(); 17806 typedef void TimeoutHandler();
17817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17807 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17818 // for details. All rights reserved. Use of this source code is governed by a 17808 // for details. All rights reserved. Use of this source code is governed by a
17819 // BSD-style license that can be found in the LICENSE file. 17809 // BSD-style license that can be found in the LICENSE file.
17820 17810
17821 17811
17822 /// @domName HTMLTitleElement 17812 /// @domName HTMLTitleElement
17823 class TitleElement extends Element implements Element native "*HTMLTitleElement" { 17813 class TitleElement extends Element implements Element native "*HTMLTitleElement" {
17824 17814
17825 factory TitleElement() => _Elements.createTitleElement(); 17815 factory TitleElement() => document.$dom_createElement("title");
17826 } 17816 }
17827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17828 // for details. All rights reserved. Use of this source code is governed by a 17818 // for details. All rights reserved. Use of this source code is governed by a
17829 // BSD-style license that can be found in the LICENSE file. 17819 // BSD-style license that can be found in the LICENSE file.
17830 17820
17831 17821
17832 /// @domName Touch 17822 /// @domName Touch
17833 class Touch native "*Touch" { 17823 class Touch native "*Touch" {
17834 17824
17835 /** @domName Touch.clientX */ 17825 /** @domName Touch.clientX */
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
18001 Touch item(int index) native; 17991 Touch item(int index) native;
18002 } 17992 }
18003 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17993 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18004 // for details. All rights reserved. Use of this source code is governed by a 17994 // for details. All rights reserved. Use of this source code is governed by a
18005 // BSD-style license that can be found in the LICENSE file. 17995 // BSD-style license that can be found in the LICENSE file.
18006 17996
18007 17997
18008 /// @domName HTMLTrackElement 17998 /// @domName HTMLTrackElement
18009 class TrackElement extends Element implements Element native "*HTMLTrackElement" { 17999 class TrackElement extends Element implements Element native "*HTMLTrackElement" {
18010 18000
18011 factory TrackElement() => _Elements.createTrackElement(); 18001 factory TrackElement() => document.$dom_createElement("track");
18012 18002
18013 static const int ERROR = 3; 18003 static const int ERROR = 3;
18014 18004
18015 static const int LOADED = 2; 18005 static const int LOADED = 2;
18016 18006
18017 static const int LOADING = 1; 18007 static const int LOADING = 1;
18018 18008
18019 static const int NONE = 0; 18009 static const int NONE = 0;
18020 18010
18021 /** @domName HTMLTrackElement.defaultValue */ 18011 /** @domName HTMLTrackElement.defaultValue */
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
18153 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie w, int detail) native; 18143 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie w, int detail) native;
18154 } 18144 }
18155 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18156 // for details. All rights reserved. Use of this source code is governed by a 18146 // for details. All rights reserved. Use of this source code is governed by a
18157 // BSD-style license that can be found in the LICENSE file. 18147 // BSD-style license that can be found in the LICENSE file.
18158 18148
18159 18149
18160 /// @domName HTMLUListElement 18150 /// @domName HTMLUListElement
18161 class UListElement extends Element implements Element native "*HTMLUListElement" { 18151 class UListElement extends Element implements Element native "*HTMLUListElement" {
18162 18152
18163 factory UListElement() => _Elements.createUListElement(); 18153 factory UListElement() => document.$dom_createElement("ul");
18164 18154
18165 /** @domName HTMLUListElement.compact */ 18155 /** @domName HTMLUListElement.compact */
18166 bool compact; 18156 bool compact;
18167 18157
18168 /** @domName HTMLUListElement.type */ 18158 /** @domName HTMLUListElement.type */
18169 String type; 18159 String type;
18170 } 18160 }
18171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18172 // for details. All rights reserved. Use of this source code is governed by a 18162 // for details. All rights reserved. Use of this source code is governed by a
18173 // BSD-style license that can be found in the LICENSE file. 18163 // BSD-style license that can be found in the LICENSE file.
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
18588 final bool valueMissing; 18578 final bool valueMissing;
18589 } 18579 }
18590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18591 // for details. All rights reserved. Use of this source code is governed by a 18581 // for details. All rights reserved. Use of this source code is governed by a
18592 // BSD-style license that can be found in the LICENSE file. 18582 // BSD-style license that can be found in the LICENSE file.
18593 18583
18594 18584
18595 /// @domName HTMLVideoElement 18585 /// @domName HTMLVideoElement
18596 class VideoElement extends MediaElement native "*HTMLVideoElement" { 18586 class VideoElement extends MediaElement native "*HTMLVideoElement" {
18597 18587
18598 factory VideoElement() => _Elements.createVideoElement(); 18588 factory VideoElement() => document.$dom_createElement("video");
18599 18589
18600 /** @domName HTMLVideoElement.height */ 18590 /** @domName HTMLVideoElement.height */
18601 int height; 18591 int height;
18602 18592
18603 /** @domName HTMLVideoElement.poster */ 18593 /** @domName HTMLVideoElement.poster */
18604 String poster; 18594 String poster;
18605 18595
18606 /** @domName HTMLVideoElement.videoHeight */ 18596 /** @domName HTMLVideoElement.videoHeight */
18607 final int videoHeight; 18597 final int videoHeight;
18608 18598
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
21010 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); 21000 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset);
21011 } 21001 }
21012 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ; 21002 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ;
21013 } 21003 }
21014 } 21004 }
21015 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 21005 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21016 // for details. All rights reserved. Use of this source code is governed by a 21006 // for details. All rights reserved. Use of this source code is governed by a
21017 // BSD-style license that can be found in the LICENSE file. 21007 // BSD-style license that can be found in the LICENSE file.
21018 21008
21019 21009
21020 class _Elements {
21021
21022
21023 static AnchorElement createAnchorElement([String href]) {
21024 AnchorElement _e = document.$dom_createElement("a");
21025 if (href != null) _e.href = href;
21026 return _e;
21027 }
21028
21029 static AreaElement createAreaElement() {
21030 AreaElement _e = document.$dom_createElement("area");
21031 return _e;
21032 }
21033
21034 static BRElement createBRElement() {
21035 BRElement _e = document.$dom_createElement("br");
21036 return _e;
21037 }
21038
21039 static BaseElement createBaseElement() {
21040 BaseElement _e = document.$dom_createElement("base");
21041 return _e;
21042 }
21043
21044 static BodyElement createBodyElement() {
21045 BodyElement _e = document.$dom_createElement("body");
21046 return _e;
21047 }
21048
21049 static ButtonElement createButtonElement() {
21050 ButtonElement _e = document.$dom_createElement("button");
21051 return _e;
21052 }
21053
21054 static CanvasElement createCanvasElement([int width, int height]) {
21055 CanvasElement _e = document.$dom_createElement("canvas");
21056 if (width != null) _e.width = width;
21057 if (height != null) _e.height = height;
21058 return _e;
21059 }
21060
21061 static ContentElement createContentElement() {
21062 ContentElement _e = document.$dom_createElement("content");
21063 return _e;
21064 }
21065
21066 static DListElement createDListElement() {
21067 DListElement _e = document.$dom_createElement("dl");
21068 return _e;
21069 }
21070
21071 static DataListElement createDataListElement() {
21072 DataListElement _e = document.$dom_createElement("datalist");
21073 return _e;
21074 }
21075
21076 static DetailsElement createDetailsElement() {
21077 DetailsElement _e = document.$dom_createElement("details");
21078 return _e;
21079 }
21080
21081 static DivElement createDivElement() {
21082 DivElement _e = document.$dom_createElement("div");
21083 return _e;
21084 }
21085
21086 static EmbedElement createEmbedElement() {
21087 EmbedElement _e = document.$dom_createElement("embed");
21088 return _e;
21089 }
21090
21091 static FieldSetElement createFieldSetElement() {
21092 FieldSetElement _e = document.$dom_createElement("fieldset");
21093 return _e;
21094 }
21095
21096 static FormElement createFormElement() {
21097 FormElement _e = document.$dom_createElement("form");
21098 return _e;
21099 }
21100
21101 static HRElement createHRElement() {
21102 HRElement _e = document.$dom_createElement("hr");
21103 return _e;
21104 }
21105
21106 static HeadElement createHeadElement() {
21107 HeadElement _e = document.$dom_createElement("head");
21108 return _e;
21109 }
21110
21111 static HeadingElement createHeadingElement_h1() {
21112 HeadingElement _e = document.$dom_createElement("h1");
21113 return _e;
21114 }
21115
21116 static HeadingElement createHeadingElement_h2() {
21117 HeadingElement _e = document.$dom_createElement("h2");
21118 return _e;
21119 }
21120
21121 static HeadingElement createHeadingElement_h3() {
21122 HeadingElement _e = document.$dom_createElement("h3");
21123 return _e;
21124 }
21125
21126 static HeadingElement createHeadingElement_h4() {
21127 HeadingElement _e = document.$dom_createElement("h4");
21128 return _e;
21129 }
21130
21131 static HeadingElement createHeadingElement_h5() {
21132 HeadingElement _e = document.$dom_createElement("h5");
21133 return _e;
21134 }
21135
21136 static HeadingElement createHeadingElement_h6() {
21137 HeadingElement _e = document.$dom_createElement("h6");
21138 return _e;
21139 }
21140
21141 static HtmlElement createHtmlElement() {
21142 HtmlElement _e = document.$dom_createElement("html");
21143 return _e;
21144 }
21145
21146 static IFrameElement createIFrameElement() {
21147 IFrameElement _e = document.$dom_createElement("iframe");
21148 return _e;
21149 }
21150
21151 static ImageElement createImageElement([String src, int width, int height]) {
21152 ImageElement _e = document.$dom_createElement("img");
21153 if (src != null) _e.src = src;
21154 if (width != null) _e.width = width;
21155 if (height != null) _e.height = height;
21156 return _e;
21157 }
21158
21159 static InputElement createInputElement([String type]) {
21160 InputElement _e = document.$dom_createElement("input");
21161 if (type != null) _e.type = type;
21162 return _e;
21163 }
21164
21165 static KeygenElement createKeygenElement() {
21166 KeygenElement _e = document.$dom_createElement("keygen");
21167 return _e;
21168 }
21169
21170 static LIElement createLIElement() {
21171 LIElement _e = document.$dom_createElement("li");
21172 return _e;
21173 }
21174
21175 static LabelElement createLabelElement() {
21176 LabelElement _e = document.$dom_createElement("label");
21177 return _e;
21178 }
21179
21180 static LegendElement createLegendElement() {
21181 LegendElement _e = document.$dom_createElement("legend");
21182 return _e;
21183 }
21184
21185 static LinkElement createLinkElement() {
21186 LinkElement _e = document.$dom_createElement("link");
21187 return _e;
21188 }
21189
21190 static MapElement createMapElement() {
21191 MapElement _e = document.$dom_createElement("map");
21192 return _e;
21193 }
21194
21195 static MenuElement createMenuElement() {
21196 MenuElement _e = document.$dom_createElement("menu");
21197 return _e;
21198 }
21199
21200 static MeterElement createMeterElement() {
21201 MeterElement _e = document.$dom_createElement("meter");
21202 return _e;
21203 }
21204
21205 static OListElement createOListElement() {
21206 OListElement _e = document.$dom_createElement("ol");
21207 return _e;
21208 }
21209
21210 static ObjectElement createObjectElement() {
21211 ObjectElement _e = document.$dom_createElement("object");
21212 return _e;
21213 }
21214
21215 static OptGroupElement createOptGroupElement() {
21216 OptGroupElement _e = document.$dom_createElement("optgroup");
21217 return _e;
21218 }
21219
21220 static OutputElement createOutputElement() {
21221 OutputElement _e = document.$dom_createElement("output");
21222 return _e;
21223 }
21224
21225 static ParagraphElement createParagraphElement() {
21226 ParagraphElement _e = document.$dom_createElement("p");
21227 return _e;
21228 }
21229
21230 static ParamElement createParamElement() {
21231 ParamElement _e = document.$dom_createElement("param");
21232 return _e;
21233 }
21234
21235 static PreElement createPreElement() {
21236 PreElement _e = document.$dom_createElement("pre");
21237 return _e;
21238 }
21239
21240 static ProgressElement createProgressElement() {
21241 ProgressElement _e = document.$dom_createElement("progress");
21242 return _e;
21243 }
21244
21245 static ScriptElement createScriptElement() {
21246 ScriptElement _e = document.$dom_createElement("script");
21247 return _e;
21248 }
21249
21250 static SelectElement createSelectElement() {
21251 SelectElement _e = document.$dom_createElement("select");
21252 return _e;
21253 }
21254
21255 static SourceElement createSourceElement() {
21256 SourceElement _e = document.$dom_createElement("source");
21257 return _e;
21258 }
21259
21260 static SpanElement createSpanElement() {
21261 SpanElement _e = document.$dom_createElement("span");
21262 return _e;
21263 }
21264
21265 static StyleElement createStyleElement() {
21266 StyleElement _e = document.$dom_createElement("style");
21267 return _e;
21268 }
21269
21270 static TableCaptionElement createTableCaptionElement() {
21271 TableCaptionElement _e = document.$dom_createElement("caption");
21272 return _e;
21273 }
21274
21275 static TableCellElement createTableCellElement() {
21276 TableCellElement _e = document.$dom_createElement("td");
21277 return _e;
21278 }
21279
21280 static TableColElement createTableColElement() {
21281 TableColElement _e = document.$dom_createElement("col");
21282 return _e;
21283 }
21284
21285 static TableElement createTableElement() {
21286 TableElement _e = document.$dom_createElement("table");
21287 return _e;
21288 }
21289
21290 static TableRowElement createTableRowElement() {
21291 TableRowElement _e = document.$dom_createElement("tr");
21292 return _e;
21293 }
21294
21295 static TextAreaElement createTextAreaElement() {
21296 TextAreaElement _e = document.$dom_createElement("textarea");
21297 return _e;
21298 }
21299
21300 static TitleElement createTitleElement() {
21301 TitleElement _e = document.$dom_createElement("title");
21302 return _e;
21303 }
21304
21305 static TrackElement createTrackElement() {
21306 TrackElement _e = document.$dom_createElement("track");
21307 return _e;
21308 }
21309
21310 static UListElement createUListElement() {
21311 UListElement _e = document.$dom_createElement("ul");
21312 return _e;
21313 }
21314
21315 static VideoElement createVideoElement() {
21316 VideoElement _e = document.$dom_createElement("video");
21317 return _e;
21318 }
21319 }
21320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21321 // for details. All rights reserved. Use of this source code is governed by a
21322 // BSD-style license that can be found in the LICENSE file.
21323
21324
21325 /// @domName EntryArray 21010 /// @domName EntryArray
21326 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" { 21011 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" {
21327 21012
21328 /** @domName EntryArray.length */ 21013 /** @domName EntryArray.length */
21329 final int length; 21014 final int length;
21330 21015
21331 Entry operator[](int index) => JS("Entry", "#[#]", this, index); 21016 Entry operator[](int index) => JS("Entry", "#[#]", this, index);
21332 21017
21333 void operator[]=(int index, Entry value) { 21018 void operator[]=(int index, Entry value) {
21334 throw new UnsupportedError("Cannot assign element of immutable List."); 21019 throw new UnsupportedError("Cannot assign element of immutable List.");
(...skipping 4066 matching lines...) Expand 10 before | Expand all | Expand 10 after
25401 if (length < 0) throw new ArgumentError('length'); 25086 if (length < 0) throw new ArgumentError('length');
25402 if (start < 0) throw new RangeError.value(start); 25087 if (start < 0) throw new RangeError.value(start);
25403 int end = start + length; 25088 int end = start + length;
25404 if (end > a.length) throw new RangeError.value(end); 25089 if (end > a.length) throw new RangeError.value(end);
25405 for (int i = start; i < end; i++) { 25090 for (int i = start; i < end; i++) {
25406 accumulator.add(a[i]); 25091 accumulator.add(a[i]);
25407 } 25092 }
25408 return accumulator; 25093 return accumulator;
25409 } 25094 }
25410 } 25095 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | sdk/lib/html/scripts/generator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698