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

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

Issue 11293292: Add constructors for SVG elements and remove static factory providers for html elements. (Closed) Base URL: http://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
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void getFloatFrequencyData(Float32Array array) native; 105 void getFloatFrequencyData(Float32Array array) native;
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) 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 3358 matching lines...) Expand 10 before | Expand all | Expand 10 after
4377 /** @domName CSSValue.cssValueType */ 4376 /** @domName CSSValue.cssValueType */
4378 final int cssValueType; 4377 final int cssValueType;
4379 } 4378 }
4380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4381 // for details. All rights reserved. Use of this source code is governed by a 4380 // for details. All rights reserved. Use of this source code is governed by a
4382 // BSD-style license that can be found in the LICENSE file. 4381 // BSD-style license that can be found in the LICENSE file.
4383 4382
4384 4383
4385 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" { 4384 class CanvasElement extends Element implements Element native "*HTMLCanvasElemen t" {
4386 4385
4387 factory CanvasElement({int width, int height}) { 4386 factory CanvasElement([int width, int height]) {
4388 if (!?width) { 4387 var e = document.$dom_createElement("canvas");
4389 return _Elements.createCanvasElement(); 4388 if (!?width) e.width = width;
4390 } 4389 if (!?height) e.height = height;
4391 if (!?height) { 4390 return e;
4392 return _Elements.createCanvasElement(width);
4393 }
4394 return _Elements.createCanvasElement(width, height);
4395 } 4391 }
4396 4392
4397 /** @domName HTMLCanvasElement.height */ 4393 /** @domName HTMLCanvasElement.height */
4398 int height; 4394 int height;
4399 4395
4400 /** @domName HTMLCanvasElement.width */ 4396 /** @domName HTMLCanvasElement.width */
4401 int width; 4397 int width;
4402 4398
4403 /** @domName HTMLCanvasElement.toDataURL */ 4399 /** @domName HTMLCanvasElement.toDataURL */
4404 String toDataURL(String type, [num quality]) native; 4400 String toDataURL(String type, [num quality]) native;
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
4949 4945
4950 } 4946 }
4951 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4952 // for details. All rights reserved. Use of this source code is governed by a 4948 // for details. All rights reserved. Use of this source code is governed by a
4953 // BSD-style license that can be found in the LICENSE file. 4949 // BSD-style license that can be found in the LICENSE file.
4954 4950
4955 4951
4956 /// @domName HTMLContentElement 4952 /// @domName HTMLContentElement
4957 class ContentElement extends Element implements Element native "*HTMLContentElem ent" { 4953 class ContentElement extends Element implements Element native "*HTMLContentElem ent" {
4958 4954
4959 factory ContentElement() => _Elements.createContentElement(); 4955 factory ContentElement() => document.$dom_createElement("content");
4960 4956
4961 /** @domName HTMLContentElement.resetStyleInheritance */ 4957 /** @domName HTMLContentElement.resetStyleInheritance */
4962 bool resetStyleInheritance; 4958 bool resetStyleInheritance;
4963 4959
4964 /** @domName HTMLContentElement.select */ 4960 /** @domName HTMLContentElement.select */
4965 String select; 4961 String select;
4966 4962
4967 /** @domName HTMLContentElement.getDistributedNodes */ 4963 /** @domName HTMLContentElement.getDistributedNodes */
4968 List<Node> getDistributedNodes() native; 4964 List<Node> getDistributedNodes() native;
4969 } 4965 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
5058 5054
5059 } 5055 }
5060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5061 // for details. All rights reserved. Use of this source code is governed by a 5057 // for details. All rights reserved. Use of this source code is governed by a
5062 // BSD-style license that can be found in the LICENSE file. 5058 // BSD-style license that can be found in the LICENSE file.
5063 5059
5064 5060
5065 /// @domName HTMLDListElement 5061 /// @domName HTMLDListElement
5066 class DListElement extends Element implements Element native "*HTMLDListElement" { 5062 class DListElement extends Element implements Element native "*HTMLDListElement" {
5067 5063
5068 factory DListElement() => _Elements.createDListElement(); 5064 factory DListElement() => document.$dom_createElement("dl");
5069 5065
5070 /** @domName HTMLDListElement.compact */ 5066 /** @domName HTMLDListElement.compact */
5071 bool compact; 5067 bool compact;
5072 } 5068 }
5073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5074 // for details. All rights reserved. Use of this source code is governed by a 5070 // for details. All rights reserved. Use of this source code is governed by a
5075 // BSD-style license that can be found in the LICENSE file. 5071 // BSD-style license that can be found in the LICENSE file.
5076 5072
5077 5073
5078 /// @domName DOMApplicationCache 5074 /// @domName DOMApplicationCache
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
5660 bool toggle(String token, [bool force]) native; 5656 bool toggle(String token, [bool force]) native;
5661 } 5657 }
5662 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5663 // for details. All rights reserved. Use of this source code is governed by a 5659 // for details. All rights reserved. Use of this source code is governed by a
5664 // BSD-style license that can be found in the LICENSE file. 5660 // BSD-style license that can be found in the LICENSE file.
5665 5661
5666 5662
5667 /// @domName HTMLDataListElement 5663 /// @domName HTMLDataListElement
5668 class DataListElement extends Element implements Element native "*HTMLDataListEl ement" { 5664 class DataListElement extends Element implements Element native "*HTMLDataListEl ement" {
5669 5665
5670 factory DataListElement() => _Elements.createDataListElement(); 5666 factory DataListElement() => document.$dom_createElement("datalist");
5671 5667
5672 /** @domName HTMLDataListElement.options */ 5668 /** @domName HTMLDataListElement.options */
5673 final HTMLCollection options; 5669 final HTMLCollection options;
5674 } 5670 }
5675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5676 // for details. All rights reserved. Use of this source code is governed by a 5672 // for details. All rights reserved. Use of this source code is governed by a
5677 // BSD-style license that can be found in the LICENSE file. 5673 // BSD-style license that can be found in the LICENSE file.
5678 5674
5679 5675
5680 /// @domName DataTransferItem 5676 /// @domName DataTransferItem
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
5878 final AudioParam delayTime; 5874 final AudioParam delayTime;
5879 } 5875 }
5880 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5876 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5881 // for details. All rights reserved. Use of this source code is governed by a 5877 // for details. All rights reserved. Use of this source code is governed by a
5882 // BSD-style license that can be found in the LICENSE file. 5878 // BSD-style license that can be found in the LICENSE file.
5883 5879
5884 5880
5885 /// @domName HTMLDetailsElement 5881 /// @domName HTMLDetailsElement
5886 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" { 5882 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" {
5887 5883
5888 factory DetailsElement() => _Elements.createDetailsElement(); 5884 factory DetailsElement() => document.$dom_createElement("details");
5889 5885
5890 /** @domName HTMLDetailsElement.open */ 5886 /** @domName HTMLDetailsElement.open */
5891 bool open; 5887 bool open;
5892 } 5888 }
5893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5889 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5894 // for details. All rights reserved. Use of this source code is governed by a 5890 // for details. All rights reserved. Use of this source code is governed by a
5895 // BSD-style license that can be found in the LICENSE file. 5891 // BSD-style license that can be found in the LICENSE file.
5896 5892
5897 5893
5898 /// @domName DeviceMotionEvent 5894 /// @domName DeviceMotionEvent
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
6050 List<EntrySync> readEntries() native; 6046 List<EntrySync> readEntries() native;
6051 } 6047 }
6052 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6048 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6053 // for details. All rights reserved. Use of this source code is governed by a 6049 // for details. All rights reserved. Use of this source code is governed by a
6054 // BSD-style license that can be found in the LICENSE file. 6050 // BSD-style license that can be found in the LICENSE file.
6055 6051
6056 6052
6057 /// @domName HTMLDivElement 6053 /// @domName HTMLDivElement
6058 class DivElement extends Element implements Element native "*HTMLDivElement" { 6054 class DivElement extends Element implements Element native "*HTMLDivElement" {
6059 6055
6060 factory DivElement() => _Elements.createDivElement(); 6056 factory DivElement() => document.$dom_createElement("div");
6061 6057
6062 /** @domName HTMLDivElement.align */ 6058 /** @domName HTMLDivElement.align */
6063 String align; 6059 String align;
6064 } 6060 }
6065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6066 // for details. All rights reserved. Use of this source code is governed by a 6062 // for details. All rights reserved. Use of this source code is governed by a
6067 // BSD-style license that can be found in the LICENSE file. 6063 // BSD-style license that can be found in the LICENSE file.
6068 6064
6069 6065
6070 class Document extends Node 6066 class Document extends Node
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
7781 Element previousElementSibling; 7777 Element previousElementSibling;
7782 } 7778 }
7783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7779 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7784 // for details. All rights reserved. Use of this source code is governed by a 7780 // for details. All rights reserved. Use of this source code is governed by a
7785 // BSD-style license that can be found in the LICENSE file. 7781 // BSD-style license that can be found in the LICENSE file.
7786 7782
7787 7783
7788 /// @domName HTMLEmbedElement 7784 /// @domName HTMLEmbedElement
7789 class EmbedElement extends Element implements Element native "*HTMLEmbedElement" { 7785 class EmbedElement extends Element implements Element native "*HTMLEmbedElement" {
7790 7786
7791 factory EmbedElement() => _Elements.createEmbedElement(); 7787 factory EmbedElement() => document.$dom_createElement("embed");
7792 7788
7793 /** @domName HTMLEmbedElement.align */ 7789 /** @domName HTMLEmbedElement.align */
7794 String align; 7790 String align;
7795 7791
7796 /** @domName HTMLEmbedElement.height */ 7792 /** @domName HTMLEmbedElement.height */
7797 String height; 7793 String height;
7798 7794
7799 /** @domName HTMLEmbedElement.name */ 7795 /** @domName HTMLEmbedElement.name */
7800 String name; 7796 String name;
7801 7797
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
8188 8184
8189 } 8185 }
8190 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8191 // for details. All rights reserved. Use of this source code is governed by a 8187 // for details. All rights reserved. Use of this source code is governed by a
8192 // BSD-style license that can be found in the LICENSE file. 8188 // BSD-style license that can be found in the LICENSE file.
8193 8189
8194 8190
8195 /// @domName HTMLFieldSetElement 8191 /// @domName HTMLFieldSetElement
8196 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl ement" { 8192 class FieldSetElement extends Element implements Element native "*HTMLFieldSetEl ement" {
8197 8193
8198 factory FieldSetElement() => _Elements.createFieldSetElement(); 8194 factory FieldSetElement() => document.$dom_createElement("fieldset");
8199 8195
8200 /** @domName HTMLFieldSetElement.disabled */ 8196 /** @domName HTMLFieldSetElement.disabled */
8201 bool disabled; 8197 bool disabled;
8202 8198
8203 /** @domName HTMLFieldSetElement.elements */ 8199 /** @domName HTMLFieldSetElement.elements */
8204 final HTMLCollection elements; 8200 final HTMLCollection elements;
8205 8201
8206 /** @domName HTMLFieldSetElement.form */ 8202 /** @domName HTMLFieldSetElement.form */
8207 final FormElement form; 8203 final FormElement form;
8208 8204
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
8814 void append(String name, String value, String filename) native; 8810 void append(String name, String value, String filename) native;
8815 } 8811 }
8816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8817 // for details. All rights reserved. Use of this source code is governed by a 8813 // for details. All rights reserved. Use of this source code is governed by a
8818 // BSD-style license that can be found in the LICENSE file. 8814 // BSD-style license that can be found in the LICENSE file.
8819 8815
8820 8816
8821 /// @domName HTMLFormElement 8817 /// @domName HTMLFormElement
8822 class FormElement extends Element implements Element native "*HTMLFormElement" { 8818 class FormElement extends Element implements Element native "*HTMLFormElement" {
8823 8819
8824 factory FormElement() => _Elements.createFormElement(); 8820 factory FormElement() => document.$dom_createElement("form");
8825 8821
8826 /** @domName HTMLFormElement.acceptCharset */ 8822 /** @domName HTMLFormElement.acceptCharset */
8827 String acceptCharset; 8823 String acceptCharset;
8828 8824
8829 /** @domName HTMLFormElement.action */ 8825 /** @domName HTMLFormElement.action */
8830 String action; 8826 String action;
8831 8827
8832 /** @domName HTMLFormElement.autocomplete */ 8828 /** @domName HTMLFormElement.autocomplete */
8833 String autocomplete; 8829 String autocomplete;
8834 8830
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
9023 final int timestamp; 9019 final int timestamp;
9024 } 9020 }
9025 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9021 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9026 // for details. All rights reserved. Use of this source code is governed by a 9022 // for details. All rights reserved. Use of this source code is governed by a
9027 // BSD-style license that can be found in the LICENSE file. 9023 // BSD-style license that can be found in the LICENSE file.
9028 9024
9029 9025
9030 /// @domName HTMLHRElement 9026 /// @domName HTMLHRElement
9031 class HRElement extends Element implements Element native "*HTMLHRElement" { 9027 class HRElement extends Element implements Element native "*HTMLHRElement" {
9032 9028
9033 factory HRElement() => _Elements.createHRElement(); 9029 factory HRElement() => document.$dom_createElement("hr");
9034 9030
9035 /** @domName HTMLHRElement.align */ 9031 /** @domName HTMLHRElement.align */
9036 String align; 9032 String align;
9037 9033
9038 /** @domName HTMLHRElement.noShade */ 9034 /** @domName HTMLHRElement.noShade */
9039 bool noShade; 9035 bool noShade;
9040 9036
9041 /** @domName HTMLHRElement.size */ 9037 /** @domName HTMLHRElement.size */
9042 String size; 9038 String size;
9043 9039
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
9288 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native; 9284 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native;
9289 } 9285 }
9290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9291 // for details. All rights reserved. Use of this source code is governed by a 9287 // for details. All rights reserved. Use of this source code is governed by a
9292 // BSD-style license that can be found in the LICENSE file. 9288 // BSD-style license that can be found in the LICENSE file.
9293 9289
9294 9290
9295 /// @domName HTMLHeadElement 9291 /// @domName HTMLHeadElement
9296 class HeadElement extends Element implements Element native "*HTMLHeadElement" { 9292 class HeadElement extends Element implements Element native "*HTMLHeadElement" {
9297 9293
9298 factory HeadElement() => _Elements.createHeadElement(); 9294 factory HeadElement() => document.$dom_createElement("head");
9299 9295
9300 /** @domName HTMLHeadElement.profile */ 9296 /** @domName HTMLHeadElement.profile */
9301 String profile; 9297 String profile;
9302 } 9298 }
9303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9299 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9304 // for details. All rights reserved. Use of this source code is governed by a 9300 // for details. All rights reserved. Use of this source code is governed by a
9305 // BSD-style license that can be found in the LICENSE file. 9301 // BSD-style license that can be found in the LICENSE file.
9306 9302
9307 9303
9308 /// @domName HTMLHeadingElement 9304 /// @domName HTMLHeadingElement
9309 class HeadingElement extends Element implements Element native "*HTMLHeadingElem ent" { 9305 class HeadingElement extends Element implements Element native "*HTMLHeadingElem ent" {
9310 9306
9311 factory HeadingElement.h1() => _Elements.createHeadingElement_h1(); 9307 factory HeadingElement.h1() => document.$dom_createElement("h1");
9312 9308
9313 factory HeadingElement.h2() => _Elements.createHeadingElement_h2(); 9309 factory HeadingElement.h2() => document.$dom_createElement("h2");
9314 9310
9315 factory HeadingElement.h3() => _Elements.createHeadingElement_h3(); 9311 factory HeadingElement.h3() => document.$dom_createElement("h3");
9316 9312
9317 factory HeadingElement.h4() => _Elements.createHeadingElement_h4(); 9313 factory HeadingElement.h4() => document.$dom_createElement("h4");
9318 9314
9319 factory HeadingElement.h5() => _Elements.createHeadingElement_h5(); 9315 factory HeadingElement.h5() => document.$dom_createElement("h5");
9320 9316
9321 factory HeadingElement.h6() => _Elements.createHeadingElement_h6(); 9317 factory HeadingElement.h6() => document.$dom_createElement("h6");
9322 9318
9323 /** @domName HTMLHeadingElement.align */ 9319 /** @domName HTMLHeadingElement.align */
9324 String align; 9320 String align;
9325 } 9321 }
9326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9327 // for details. All rights reserved. Use of this source code is governed by a 9323 // for details. All rights reserved. Use of this source code is governed by a
9328 // BSD-style license that can be found in the LICENSE file. 9324 // BSD-style license that can be found in the LICENSE file.
9329 9325
9330 9326
9331 /// @domName HTMLHtmlElement 9327 /// @domName HTMLHtmlElement
9332 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" { 9328 class HtmlElement extends Element implements Element native "*HTMLHtmlElement" {
9333 9329
9334 factory HtmlElement() => _Elements.createHtmlElement(); 9330 factory HtmlElement() => document.$dom_createElement("html");
9335 } 9331 }
9336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 9332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9337 // for details. All rights reserved. Use of this source code is governed by a 9333 // for details. All rights reserved. Use of this source code is governed by a
9338 // BSD-style license that can be found in the LICENSE file. 9334 // BSD-style license that can be found in the LICENSE file.
9339 9335
9340 9336
9341 class HttpRequest extends EventTarget native "*XMLHttpRequest" { 9337 class HttpRequest extends EventTarget native "*XMLHttpRequest" {
9342 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) => 9338 factory HttpRequest.get(String url, onSuccess(HttpRequest request)) =>
9343 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess); 9339 _HttpRequestFactoryProvider.createHttpRequest_get(url, onSuccess);
9344 9340
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
10340 EventListenerList get blocked => this['blocked']; 10336 EventListenerList get blocked => this['blocked'];
10341 } 10337 }
10342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10343 // for details. All rights reserved. Use of this source code is governed by a 10339 // for details. All rights reserved. Use of this source code is governed by a
10344 // BSD-style license that can be found in the LICENSE file. 10340 // BSD-style license that can be found in the LICENSE file.
10345 10341
10346 10342
10347 /// @domName HTMLIFrameElement 10343 /// @domName HTMLIFrameElement
10348 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen t" { 10344 class IFrameElement extends Element implements Element native "*HTMLIFrameElemen t" {
10349 10345
10350 factory IFrameElement() => _Elements.createIFrameElement(); 10346 factory IFrameElement() => document.$dom_createElement("iframe");
10351 10347
10352 /** @domName HTMLIFrameElement.align */ 10348 /** @domName HTMLIFrameElement.align */
10353 String align; 10349 String align;
10354 10350
10355 /** @domName HTMLIFrameElement.contentWindow */ 10351 /** @domName HTMLIFrameElement.contentWindow */
10356 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); 10352 Window get contentWindow => _convertNativeToDart_Window(this._contentWindow);
10357 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); 10353 dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this);
10358 10354
10359 /** @domName HTMLIFrameElement.frameBorder */ 10355 /** @domName HTMLIFrameElement.frameBorder */
10360 String frameBorder; 10356 String frameBorder;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
10431 final int width; 10427 final int width;
10432 } 10428 }
10433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10434 // for details. All rights reserved. Use of this source code is governed by a 10430 // for details. All rights reserved. Use of this source code is governed by a
10435 // BSD-style license that can be found in the LICENSE file. 10431 // BSD-style license that can be found in the LICENSE file.
10436 10432
10437 10433
10438 /// @domName HTMLImageElement 10434 /// @domName HTMLImageElement
10439 class ImageElement extends Element implements Element native "*HTMLImageElement" { 10435 class ImageElement extends Element implements Element native "*HTMLImageElement" {
10440 10436
10441 factory ImageElement({String src, int width, int height}) { 10437 factory ImageElement([String src, int width, int height]) {
10442 if (!?src) { 10438 var e = document.$dom_createElement("img");
10443 return _Elements.createImageElement(); 10439 if (!?src) e.src = src;
10444 } 10440 if (!?width) e.width = width;
10445 if (!?width) { 10441 if (!?height) e.height = height;
10446 return _Elements.createImageElement(src); 10442 return e;
10447 }
10448 if (!?height) {
10449 return _Elements.createImageElement(src, width);
10450 }
10451 return _Elements.createImageElement(src, width, height);
10452 } 10443 }
10453 10444
10454 /** @domName HTMLImageElement.align */ 10445 /** @domName HTMLImageElement.align */
10455 String align; 10446 String align;
10456 10447
10457 /** @domName HTMLImageElement.alt */ 10448 /** @domName HTMLImageElement.alt */
10458 String alt; 10449 String alt;
10459 10450
10460 /** @domName HTMLImageElement.border */ 10451 /** @domName HTMLImageElement.border */
10461 String border; 10452 String border;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
10509 final int y; 10500 final int y;
10510 } 10501 }
10511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10512 // for details. All rights reserved. Use of this source code is governed by a 10503 // for details. All rights reserved. Use of this source code is governed by a
10513 // BSD-style license that can be found in the LICENSE file. 10504 // BSD-style license that can be found in the LICENSE file.
10514 10505
10515 10506
10516 /// @domName HTMLInputElement 10507 /// @domName HTMLInputElement
10517 class InputElement extends Element implements Element native "*HTMLInputElement" { 10508 class InputElement extends Element implements Element native "*HTMLInputElement" {
10518 10509
10519 factory InputElement({String type}) { 10510 factory InputElement([String type]) {
10520 if (!?type) { 10511 var e = document.$dom_createElement("input");
10521 return _Elements.createInputElement(); 10512 if (!?type) e.type = type;
10522 } 10513 return e;
10523 return _Elements.createInputElement(type);
10524 } 10514 }
10525 10515
10526 /** 10516 /**
10527 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent 10517 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
10528 */ 10518 */
10529 InputElementEvents get on => 10519 InputElementEvents get on =>
10530 new InputElementEvents(this); 10520 new InputElementEvents(this);
10531 10521
10532 /** @domName HTMLInputElement.accept */ 10522 /** @domName HTMLInputElement.accept */
10533 String accept; 10523 String accept;
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
11117 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; 11107 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;
11118 } 11108 }
11119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11120 // for details. All rights reserved. Use of this source code is governed by a 11110 // for details. All rights reserved. Use of this source code is governed by a
11121 // BSD-style license that can be found in the LICENSE file. 11111 // BSD-style license that can be found in the LICENSE file.
11122 11112
11123 11113
11124 /// @domName HTMLKeygenElement 11114 /// @domName HTMLKeygenElement
11125 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen t" { 11115 class KeygenElement extends Element implements Element native "*HTMLKeygenElemen t" {
11126 11116
11127 factory KeygenElement() => _Elements.createKeygenElement(); 11117 factory KeygenElement() => document.$dom_createElement("keygen");
11128 11118
11129 /** @domName HTMLKeygenElement.autofocus */ 11119 /** @domName HTMLKeygenElement.autofocus */
11130 bool autofocus; 11120 bool autofocus;
11131 11121
11132 /** @domName HTMLKeygenElement.challenge */ 11122 /** @domName HTMLKeygenElement.challenge */
11133 String challenge; 11123 String challenge;
11134 11124
11135 /** @domName HTMLKeygenElement.disabled */ 11125 /** @domName HTMLKeygenElement.disabled */
11136 bool disabled; 11126 bool disabled;
11137 11127
(...skipping 28 matching lines...) Expand all
11166 void setCustomValidity(String error) native; 11156 void setCustomValidity(String error) native;
11167 } 11157 }
11168 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11158 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11169 // for details. All rights reserved. Use of this source code is governed by a 11159 // for details. All rights reserved. Use of this source code is governed by a
11170 // BSD-style license that can be found in the LICENSE file. 11160 // BSD-style license that can be found in the LICENSE file.
11171 11161
11172 11162
11173 /// @domName HTMLLIElement 11163 /// @domName HTMLLIElement
11174 class LIElement extends Element implements Element native "*HTMLLIElement" { 11164 class LIElement extends Element implements Element native "*HTMLLIElement" {
11175 11165
11176 factory LIElement() => _Elements.createLIElement(); 11166 factory LIElement() => document.$dom_createElement("li");
11177 11167
11178 /** @domName HTMLLIElement.type */ 11168 /** @domName HTMLLIElement.type */
11179 String type; 11169 String type;
11180 11170
11181 /** @domName HTMLLIElement.value */ 11171 /** @domName HTMLLIElement.value */
11182 int value; 11172 int value;
11183 } 11173 }
11184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11174 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11185 // for details. All rights reserved. Use of this source code is governed by a 11175 // for details. All rights reserved. Use of this source code is governed by a
11186 // BSD-style license that can be found in the LICENSE file. 11176 // BSD-style license that can be found in the LICENSE file.
11187 11177
11188 11178
11189 /// @domName HTMLLabelElement 11179 /// @domName HTMLLabelElement
11190 class LabelElement extends Element implements Element native "*HTMLLabelElement" { 11180 class LabelElement extends Element implements Element native "*HTMLLabelElement" {
11191 11181
11192 factory LabelElement() => _Elements.createLabelElement(); 11182 factory LabelElement() => document.$dom_createElement("label");
11193 11183
11194 /** @domName HTMLLabelElement.control */ 11184 /** @domName HTMLLabelElement.control */
11195 final Element control; 11185 final Element control;
11196 11186
11197 /** @domName HTMLLabelElement.form */ 11187 /** @domName HTMLLabelElement.form */
11198 final FormElement form; 11188 final FormElement form;
11199 11189
11200 /** @domName HTMLLabelElement.htmlFor */ 11190 /** @domName HTMLLabelElement.htmlFor */
11201 String htmlFor; 11191 String htmlFor;
11202 } 11192 }
11203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11204 // for details. All rights reserved. Use of this source code is governed by a 11194 // for details. All rights reserved. Use of this source code is governed by a
11205 // BSD-style license that can be found in the LICENSE file. 11195 // BSD-style license that can be found in the LICENSE file.
11206 11196
11207 11197
11208 /// @domName HTMLLegendElement 11198 /// @domName HTMLLegendElement
11209 class LegendElement extends Element implements Element native "*HTMLLegendElemen t" { 11199 class LegendElement extends Element implements Element native "*HTMLLegendElemen t" {
11210 11200
11211 factory LegendElement() => _Elements.createLegendElement(); 11201 factory LegendElement() => document.$dom_createElement("legend");
11212 11202
11213 /** @domName HTMLLegendElement.align */ 11203 /** @domName HTMLLegendElement.align */
11214 String align; 11204 String align;
11215 11205
11216 /** @domName HTMLLegendElement.form */ 11206 /** @domName HTMLLegendElement.form */
11217 final FormElement form; 11207 final FormElement form;
11218 } 11208 }
11219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11220 // for details. All rights reserved. Use of this source code is governed by a 11210 // for details. All rights reserved. Use of this source code is governed by a
11221 // BSD-style license that can be found in the LICENSE file. 11211 // BSD-style license that can be found in the LICENSE file.
11222 11212
11223 11213
11224 /// @domName HTMLLinkElement 11214 /// @domName HTMLLinkElement
11225 class LinkElement extends Element implements Element native "*HTMLLinkElement" { 11215 class LinkElement extends Element implements Element native "*HTMLLinkElement" {
11226 11216
11227 factory LinkElement() => _Elements.createLinkElement(); 11217 factory LinkElement() => document.$dom_createElement("link");
11228 11218
11229 /** @domName HTMLLinkElement.charset */ 11219 /** @domName HTMLLinkElement.charset */
11230 String charset; 11220 String charset;
11231 11221
11232 /** @domName HTMLLinkElement.disabled */ 11222 /** @domName HTMLLinkElement.disabled */
11233 bool disabled; 11223 bool disabled;
11234 11224
11235 /** @domName HTMLLinkElement.href */ 11225 /** @domName HTMLLinkElement.href */
11236 String href; 11226 String href;
11237 11227
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
11930 EventListenerList get transitionEnd => this['webkitTransitionEnd']; 11920 EventListenerList get transitionEnd => this['webkitTransitionEnd'];
11931 } 11921 }
11932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11933 // for details. All rights reserved. Use of this source code is governed by a 11923 // for details. All rights reserved. Use of this source code is governed by a
11934 // BSD-style license that can be found in the LICENSE file. 11924 // BSD-style license that can be found in the LICENSE file.
11935 11925
11936 11926
11937 /// @domName HTMLMapElement 11927 /// @domName HTMLMapElement
11938 class MapElement extends Element implements Element native "*HTMLMapElement" { 11928 class MapElement extends Element implements Element native "*HTMLMapElement" {
11939 11929
11940 factory MapElement() => _Elements.createMapElement(); 11930 factory MapElement() => document.$dom_createElement("map");
11941 11931
11942 /** @domName HTMLMapElement.areas */ 11932 /** @domName HTMLMapElement.areas */
11943 final HTMLCollection areas; 11933 final HTMLCollection areas;
11944 11934
11945 /** @domName HTMLMapElement.name */ 11935 /** @domName HTMLMapElement.name */
11946 String name; 11936 String name;
11947 } 11937 }
11948 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 11938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
11949 // for details. All rights reserved. Use of this source code is governed by a 11939 // for details. All rights reserved. Use of this source code is governed by a
11950 // BSD-style license that can be found in the LICENSE file. 11940 // BSD-style license that can be found in the LICENSE file.
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
12623 final int usedJSHeapSize; 12613 final int usedJSHeapSize;
12624 } 12614 }
12625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12626 // for details. All rights reserved. Use of this source code is governed by a 12616 // for details. All rights reserved. Use of this source code is governed by a
12627 // BSD-style license that can be found in the LICENSE file. 12617 // BSD-style license that can be found in the LICENSE file.
12628 12618
12629 12619
12630 /// @domName HTMLMenuElement 12620 /// @domName HTMLMenuElement
12631 class MenuElement extends Element implements Element native "*HTMLMenuElement" { 12621 class MenuElement extends Element implements Element native "*HTMLMenuElement" {
12632 12622
12633 factory MenuElement() => _Elements.createMenuElement(); 12623 factory MenuElement() => document.$dom_createElement("menu");
12634 12624
12635 /** @domName HTMLMenuElement.compact */ 12625 /** @domName HTMLMenuElement.compact */
12636 bool compact; 12626 bool compact;
12637 } 12627 }
12638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12639 // for details. All rights reserved. Use of this source code is governed by a 12629 // for details. All rights reserved. Use of this source code is governed by a
12640 // BSD-style license that can be found in the LICENSE file. 12630 // BSD-style license that can be found in the LICENSE file.
12641 12631
12642 12632
12643 /// @domName MessageChannel 12633 /// @domName MessageChannel
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
12774 12764
12775 typedef void MetadataCallback(Metadata metadata); 12765 typedef void MetadataCallback(Metadata metadata);
12776 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12777 // for details. All rights reserved. Use of this source code is governed by a 12767 // for details. All rights reserved. Use of this source code is governed by a
12778 // BSD-style license that can be found in the LICENSE file. 12768 // BSD-style license that can be found in the LICENSE file.
12779 12769
12780 12770
12781 /// @domName HTMLMeterElement 12771 /// @domName HTMLMeterElement
12782 class MeterElement extends Element implements Element native "*HTMLMeterElement" { 12772 class MeterElement extends Element implements Element native "*HTMLMeterElement" {
12783 12773
12784 factory MeterElement() => _Elements.createMeterElement(); 12774 factory MeterElement() => document.$dom_createElement("meter");
12785 12775
12786 /** @domName HTMLMeterElement.high */ 12776 /** @domName HTMLMeterElement.high */
12787 num high; 12777 num high;
12788 12778
12789 /** @domName HTMLMeterElement.labels */ 12779 /** @domName HTMLMeterElement.labels */
12790 final List<Node> labels; 12780 final List<Node> labels;
12791 12781
12792 /** @domName HTMLMeterElement.low */ 12782 /** @domName HTMLMeterElement.low */
12793 num low; 12783 num low;
12794 12784
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
13982 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native; 13972 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) native;
13983 } 13973 }
13984 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13985 // for details. All rights reserved. Use of this source code is governed by a 13975 // for details. All rights reserved. Use of this source code is governed by a
13986 // BSD-style license that can be found in the LICENSE file. 13976 // BSD-style license that can be found in the LICENSE file.
13987 13977
13988 13978
13989 /// @domName HTMLOListElement 13979 /// @domName HTMLOListElement
13990 class OListElement extends Element implements Element native "*HTMLOListElement" { 13980 class OListElement extends Element implements Element native "*HTMLOListElement" {
13991 13981
13992 factory OListElement() => _Elements.createOListElement(); 13982 factory OListElement() => document.$dom_createElement("ol");
13993 13983
13994 /** @domName HTMLOListElement.compact */ 13984 /** @domName HTMLOListElement.compact */
13995 bool compact; 13985 bool compact;
13996 13986
13997 /** @domName HTMLOListElement.reversed */ 13987 /** @domName HTMLOListElement.reversed */
13998 bool reversed; 13988 bool reversed;
13999 13989
14000 /** @domName HTMLOListElement.start */ 13990 /** @domName HTMLOListElement.start */
14001 int start; 13991 int start;
14002 13992
14003 /** @domName HTMLOListElement.type */ 13993 /** @domName HTMLOListElement.type */
14004 String type; 13994 String type;
14005 } 13995 }
14006 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13996 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14007 // for details. All rights reserved. Use of this source code is governed by a 13997 // for details. All rights reserved. Use of this source code is governed by a
14008 // BSD-style license that can be found in the LICENSE file. 13998 // BSD-style license that can be found in the LICENSE file.
14009 13999
14010 14000
14011 /// @domName HTMLObjectElement 14001 /// @domName HTMLObjectElement
14012 class ObjectElement extends Element implements Element native "*HTMLObjectElemen t" { 14002 class ObjectElement extends Element implements Element native "*HTMLObjectElemen t" {
14013 14003
14014 factory ObjectElement() => _Elements.createObjectElement(); 14004 factory ObjectElement() => document.$dom_createElement("object");
14015 14005
14016 /** @domName HTMLObjectElement.align */ 14006 /** @domName HTMLObjectElement.align */
14017 String align; 14007 String align;
14018 14008
14019 /** @domName HTMLObjectElement.archive */ 14009 /** @domName HTMLObjectElement.archive */
14020 String archive; 14010 String archive;
14021 14011
14022 /** @domName HTMLObjectElement.border */ 14012 /** @domName HTMLObjectElement.border */
14023 String border; 14013 String border;
14024 14014
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
14091 final AudioBuffer renderedBuffer; 14081 final AudioBuffer renderedBuffer;
14092 } 14082 }
14093 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14094 // for details. All rights reserved. Use of this source code is governed by a 14084 // for details. All rights reserved. Use of this source code is governed by a
14095 // BSD-style license that can be found in the LICENSE file. 14085 // BSD-style license that can be found in the LICENSE file.
14096 14086
14097 14087
14098 /// @domName HTMLOptGroupElement 14088 /// @domName HTMLOptGroupElement
14099 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" { 14089 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" {
14100 14090
14101 factory OptGroupElement() => _Elements.createOptGroupElement(); 14091 factory OptGroupElement() => document.$dom_createElement("optgroup");
14102 14092
14103 /** @domName HTMLOptGroupElement.disabled */ 14093 /** @domName HTMLOptGroupElement.disabled */
14104 bool disabled; 14094 bool disabled;
14105 14095
14106 /** @domName HTMLOptGroupElement.label */ 14096 /** @domName HTMLOptGroupElement.label */
14107 String label; 14097 String label;
14108 } 14098 }
14109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14099 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14110 // for details. All rights reserved. Use of this source code is governed by a 14100 // for details. All rights reserved. Use of this source code is governed by a
14111 // BSD-style license that can be found in the LICENSE file. 14101 // BSD-style license that can be found in the LICENSE file.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
14199 void stop(num when) native; 14189 void stop(num when) native;
14200 } 14190 }
14201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14202 // for details. All rights reserved. Use of this source code is governed by a 14192 // for details. All rights reserved. Use of this source code is governed by a
14203 // BSD-style license that can be found in the LICENSE file. 14193 // BSD-style license that can be found in the LICENSE file.
14204 14194
14205 14195
14206 /// @domName HTMLOutputElement 14196 /// @domName HTMLOutputElement
14207 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" { 14197 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" {
14208 14198
14209 factory OutputElement() => _Elements.createOutputElement(); 14199 factory OutputElement() => document.$dom_createElement("output");
14210 14200
14211 /** @domName HTMLOutputElement.defaultValue */ 14201 /** @domName HTMLOutputElement.defaultValue */
14212 String defaultValue; 14202 String defaultValue;
14213 14203
14214 /** @domName HTMLOutputElement.form */ 14204 /** @domName HTMLOutputElement.form */
14215 final FormElement form; 14205 final FormElement form;
14216 14206
14217 /** @domName HTMLOutputElement.htmlFor */ 14207 /** @domName HTMLOutputElement.htmlFor */
14218 DOMSettableTokenList htmlFor; 14208 DOMSettableTokenList htmlFor;
14219 14209
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
14352 void setVelocity(num x, num y, num z) native; 14342 void setVelocity(num x, num y, num z) native;
14353 } 14343 }
14354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14355 // for details. All rights reserved. Use of this source code is governed by a 14345 // for details. All rights reserved. Use of this source code is governed by a
14356 // BSD-style license that can be found in the LICENSE file. 14346 // BSD-style license that can be found in the LICENSE file.
14357 14347
14358 14348
14359 /// @domName HTMLParagraphElement 14349 /// @domName HTMLParagraphElement
14360 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" { 14350 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" {
14361 14351
14362 factory ParagraphElement() => _Elements.createParagraphElement(); 14352 factory ParagraphElement() => document.$dom_createElement("p");
14363 14353
14364 /** @domName HTMLParagraphElement.align */ 14354 /** @domName HTMLParagraphElement.align */
14365 String align; 14355 String align;
14366 } 14356 }
14367 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14368 // for details. All rights reserved. Use of this source code is governed by a 14358 // for details. All rights reserved. Use of this source code is governed by a
14369 // BSD-style license that can be found in the LICENSE file. 14359 // BSD-style license that can be found in the LICENSE file.
14370 14360
14371 14361
14372 /// @domName HTMLParamElement 14362 /// @domName HTMLParamElement
14373 class ParamElement extends Element implements Element native "*HTMLParamElement" { 14363 class ParamElement extends Element implements Element native "*HTMLParamElement" {
14374 14364
14375 factory ParamElement() => _Elements.createParamElement(); 14365 factory ParamElement() => document.$dom_createElement("param");
14376 14366
14377 /** @domName HTMLParamElement.name */ 14367 /** @domName HTMLParamElement.name */
14378 String name; 14368 String name;
14379 14369
14380 /** @domName HTMLParamElement.type */ 14370 /** @domName HTMLParamElement.type */
14381 String type; 14371 String type;
14382 14372
14383 /** @domName HTMLParamElement.value */ 14373 /** @domName HTMLParamElement.value */
14384 String value; 14374 String value;
14385 14375
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
14713 14703
14714 typedef void PositionErrorCallback(PositionError error); 14704 typedef void PositionErrorCallback(PositionError error);
14715 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14716 // for details. All rights reserved. Use of this source code is governed by a 14706 // for details. All rights reserved. Use of this source code is governed by a
14717 // BSD-style license that can be found in the LICENSE file. 14707 // BSD-style license that can be found in the LICENSE file.
14718 14708
14719 14709
14720 /// @domName HTMLPreElement 14710 /// @domName HTMLPreElement
14721 class PreElement extends Element implements Element native "*HTMLPreElement" { 14711 class PreElement extends Element implements Element native "*HTMLPreElement" {
14722 14712
14723 factory PreElement() => _Elements.createPreElement(); 14713 factory PreElement() => document.$dom_createElement("pre");
14724 14714
14725 /** @domName HTMLPreElement.width */ 14715 /** @domName HTMLPreElement.width */
14726 int width; 14716 int width;
14727 14717
14728 /** @domName HTMLPreElement.wrap */ 14718 /** @domName HTMLPreElement.wrap */
14729 bool wrap; 14719 bool wrap;
14730 } 14720 }
14731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14732 // for details. All rights reserved. Use of this source code is governed by a 14722 // for details. All rights reserved. Use of this source code is governed by a
14733 // BSD-style license that can be found in the LICENSE file. 14723 // BSD-style license that can be found in the LICENSE file.
(...skipping 12 matching lines...) Expand all
14746 final String target; 14736 final String target;
14747 } 14737 }
14748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14738 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14749 // for details. All rights reserved. Use of this source code is governed by a 14739 // for details. All rights reserved. Use of this source code is governed by a
14750 // BSD-style license that can be found in the LICENSE file. 14740 // BSD-style license that can be found in the LICENSE file.
14751 14741
14752 14742
14753 /// @domName HTMLProgressElement 14743 /// @domName HTMLProgressElement
14754 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" { 14744 class ProgressElement extends Element implements Element native "*HTMLProgressEl ement" {
14755 14745
14756 factory ProgressElement() => _Elements.createProgressElement(); 14746 factory ProgressElement() => document.$dom_createElement("progress");
14757 14747
14758 /** @domName HTMLProgressElement.labels */ 14748 /** @domName HTMLProgressElement.labels */
14759 final List<Node> labels; 14749 final List<Node> labels;
14760 14750
14761 /** @domName HTMLProgressElement.max */ 14751 /** @domName HTMLProgressElement.max */
14762 num max; 14752 num max;
14763 14753
14764 /** @domName HTMLProgressElement.position */ 14754 /** @domName HTMLProgressElement.position */
14765 final num position; 14755 final num position;
14766 14756
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
15594 final int width; 15584 final int width;
15595 } 15585 }
15596 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15597 // for details. All rights reserved. Use of this source code is governed by a 15587 // for details. All rights reserved. Use of this source code is governed by a
15598 // BSD-style license that can be found in the LICENSE file. 15588 // BSD-style license that can be found in the LICENSE file.
15599 15589
15600 15590
15601 /// @domName HTMLScriptElement 15591 /// @domName HTMLScriptElement
15602 class ScriptElement extends Element implements Element native "*HTMLScriptElemen t" { 15592 class ScriptElement extends Element implements Element native "*HTMLScriptElemen t" {
15603 15593
15604 factory ScriptElement() => _Elements.createScriptElement(); 15594 factory ScriptElement() => document.$dom_createElement("script");
15605 15595
15606 /** @domName HTMLScriptElement.async */ 15596 /** @domName HTMLScriptElement.async */
15607 bool async; 15597 bool async;
15608 15598
15609 /** @domName HTMLScriptElement.charset */ 15599 /** @domName HTMLScriptElement.charset */
15610 String charset; 15600 String charset;
15611 15601
15612 /** @domName HTMLScriptElement.crossOrigin */ 15602 /** @domName HTMLScriptElement.crossOrigin */
15613 String crossOrigin; 15603 String crossOrigin;
15614 15604
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
15702 /** @domName ScriptProfileNode.children */ 15692 /** @domName ScriptProfileNode.children */
15703 List<ScriptProfileNode> children() native; 15693 List<ScriptProfileNode> children() native;
15704 } 15694 }
15705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15706 // for details. All rights reserved. Use of this source code is governed by a 15696 // for details. All rights reserved. Use of this source code is governed by a
15707 // BSD-style license that can be found in the LICENSE file. 15697 // BSD-style license that can be found in the LICENSE file.
15708 15698
15709 15699
15710 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" { 15700 class SelectElement extends Element implements Element native "*HTMLSelectElemen t" {
15711 15701
15712 factory SelectElement() => _Elements.createSelectElement(); 15702 factory SelectElement() => document.$dom_createElement("select");
15713 15703
15714 /** @domName HTMLSelectElement.autofocus */ 15704 /** @domName HTMLSelectElement.autofocus */
15715 bool autofocus; 15705 bool autofocus;
15716 15706
15717 /** @domName HTMLSelectElement.disabled */ 15707 /** @domName HTMLSelectElement.disabled */
15718 bool disabled; 15708 bool disabled;
15719 15709
15720 /** @domName HTMLSelectElement.form */ 15710 /** @domName HTMLSelectElement.form */
15721 final FormElement form; 15711 final FormElement form;
15722 15712
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
16020 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener"; 16010 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native "removeEventListener";
16021 } 16011 }
16022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16012 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16023 // for details. All rights reserved. Use of this source code is governed by a 16013 // for details. All rights reserved. Use of this source code is governed by a
16024 // BSD-style license that can be found in the LICENSE file. 16014 // BSD-style license that can be found in the LICENSE file.
16025 16015
16026 16016
16027 /// @domName HTMLSourceElement 16017 /// @domName HTMLSourceElement
16028 class SourceElement extends Element implements Element native "*HTMLSourceElemen t" { 16018 class SourceElement extends Element implements Element native "*HTMLSourceElemen t" {
16029 16019
16030 factory SourceElement() => _Elements.createSourceElement(); 16020 factory SourceElement() => document.$dom_createElement("source");
16031 16021
16032 /** @domName HTMLSourceElement.media */ 16022 /** @domName HTMLSourceElement.media */
16033 String media; 16023 String media;
16034 16024
16035 /** @domName HTMLSourceElement.src */ 16025 /** @domName HTMLSourceElement.src */
16036 String src; 16026 String src;
16037 16027
16038 /** @domName HTMLSourceElement.type */ 16028 /** @domName HTMLSourceElement.type */
16039 String type; 16029 String type;
16040 } 16030 }
16041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16031 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16042 // for details. All rights reserved. Use of this source code is governed by a 16032 // for details. All rights reserved. Use of this source code is governed by a
16043 // BSD-style license that can be found in the LICENSE file. 16033 // BSD-style license that can be found in the LICENSE file.
16044 16034
16045 16035
16046 /// @domName HTMLSpanElement 16036 /// @domName HTMLSpanElement
16047 class SpanElement extends Element implements Element native "*HTMLSpanElement" { 16037 class SpanElement extends Element implements Element native "*HTMLSpanElement" {
16048 16038
16049 factory SpanElement() => _Elements.createSpanElement(); 16039 factory SpanElement() => document.$dom_createElement("span");
16050 } 16040 }
16051 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16052 // for details. All rights reserved. Use of this source code is governed by a 16042 // for details. All rights reserved. Use of this source code is governed by a
16053 // BSD-style license that can be found in the LICENSE file. 16043 // BSD-style license that can be found in the LICENSE file.
16054 16044
16055 16045
16056 /// @domName SpeechGrammar 16046 /// @domName SpeechGrammar
16057 class SpeechGrammar native "*SpeechGrammar" { 16047 class SpeechGrammar native "*SpeechGrammar" {
16058 16048
16059 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar() ; 16049 factory SpeechGrammar() => _SpeechGrammarFactoryProvider.createSpeechGrammar() ;
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
16502 16492
16503 typedef void StringCallback(String data); 16493 typedef void StringCallback(String data);
16504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16494 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16505 // for details. All rights reserved. Use of this source code is governed by a 16495 // for details. All rights reserved. Use of this source code is governed by a
16506 // BSD-style license that can be found in the LICENSE file. 16496 // BSD-style license that can be found in the LICENSE file.
16507 16497
16508 16498
16509 /// @domName HTMLStyleElement 16499 /// @domName HTMLStyleElement
16510 class StyleElement extends Element implements Element native "*HTMLStyleElement" { 16500 class StyleElement extends Element implements Element native "*HTMLStyleElement" {
16511 16501
16512 factory StyleElement() => _Elements.createStyleElement(); 16502 factory StyleElement() => document.$dom_createElement("style");
16513 16503
16514 /** @domName HTMLStyleElement.disabled */ 16504 /** @domName HTMLStyleElement.disabled */
16515 bool disabled; 16505 bool disabled;
16516 16506
16517 /** @domName HTMLStyleElement.media */ 16507 /** @domName HTMLStyleElement.media */
16518 String media; 16508 String media;
16519 16509
16520 /** @domName HTMLStyleElement.scoped */ 16510 /** @domName HTMLStyleElement.scoped */
16521 bool scoped; 16511 bool scoped;
16522 16512
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
16570 final String type; 16560 final String type;
16571 } 16561 }
16572 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16562 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16573 // for details. All rights reserved. Use of this source code is governed by a 16563 // for details. All rights reserved. Use of this source code is governed by a
16574 // BSD-style license that can be found in the LICENSE file. 16564 // BSD-style license that can be found in the LICENSE file.
16575 16565
16576 16566
16577 /// @domName HTMLTableCaptionElement 16567 /// @domName HTMLTableCaptionElement
16578 class TableCaptionElement extends Element implements Element native "*HTMLTableC aptionElement" { 16568 class TableCaptionElement extends Element implements Element native "*HTMLTableC aptionElement" {
16579 16569
16580 factory TableCaptionElement() => _Elements.createTableCaptionElement(); 16570 factory TableCaptionElement() => document.$dom_createElement("caption");
16581 16571
16582 /** @domName HTMLTableCaptionElement.align */ 16572 /** @domName HTMLTableCaptionElement.align */
16583 String align; 16573 String align;
16584 } 16574 }
16585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16586 // for details. All rights reserved. Use of this source code is governed by a 16576 // for details. All rights reserved. Use of this source code is governed by a
16587 // BSD-style license that can be found in the LICENSE file. 16577 // BSD-style license that can be found in the LICENSE file.
16588 16578
16589 16579
16590 /// @domName HTMLTableCellElement 16580 /// @domName HTMLTableCellElement
16591 class TableCellElement extends Element implements Element native "*HTMLTableCell Element" { 16581 class TableCellElement extends Element implements Element native "*HTMLTableCell Element" {
16592 16582
16593 factory TableCellElement() => _Elements.createTableCellElement(); 16583 factory TableCellElement() => document.$dom_createElement("td");
16594 16584
16595 /** @domName HTMLTableCellElement.abbr */ 16585 /** @domName HTMLTableCellElement.abbr */
16596 String abbr; 16586 String abbr;
16597 16587
16598 /** @domName HTMLTableCellElement.align */ 16588 /** @domName HTMLTableCellElement.align */
16599 String align; 16589 String align;
16600 16590
16601 /** @domName HTMLTableCellElement.axis */ 16591 /** @domName HTMLTableCellElement.axis */
16602 String axis; 16592 String axis;
16603 16593
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
16638 String width; 16628 String width;
16639 } 16629 }
16640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16641 // for details. All rights reserved. Use of this source code is governed by a 16631 // for details. All rights reserved. Use of this source code is governed by a
16642 // BSD-style license that can be found in the LICENSE file. 16632 // BSD-style license that can be found in the LICENSE file.
16643 16633
16644 16634
16645 /// @domName HTMLTableColElement 16635 /// @domName HTMLTableColElement
16646 class TableColElement extends Element implements Element native "*HTMLTableColEl ement" { 16636 class TableColElement extends Element implements Element native "*HTMLTableColEl ement" {
16647 16637
16648 factory TableColElement() => _Elements.createTableColElement(); 16638 factory TableColElement() => document.$dom_createElement("col");
16649 16639
16650 /** @domName HTMLTableColElement.align */ 16640 /** @domName HTMLTableColElement.align */
16651 String align; 16641 String align;
16652 16642
16653 /** @domName HTMLTableColElement.ch */ 16643 /** @domName HTMLTableColElement.ch */
16654 String ch; 16644 String ch;
16655 16645
16656 /** @domName HTMLTableColElement.chOff */ 16646 /** @domName HTMLTableColElement.chOff */
16657 String chOff; 16647 String chOff;
16658 16648
16659 /** @domName HTMLTableColElement.span */ 16649 /** @domName HTMLTableColElement.span */
16660 int span; 16650 int span;
16661 16651
16662 /** @domName HTMLTableColElement.vAlign */ 16652 /** @domName HTMLTableColElement.vAlign */
16663 String vAlign; 16653 String vAlign;
16664 16654
16665 /** @domName HTMLTableColElement.width */ 16655 /** @domName HTMLTableColElement.width */
16666 String width; 16656 String width;
16667 } 16657 }
16668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16669 // for details. All rights reserved. Use of this source code is governed by a 16659 // for details. All rights reserved. Use of this source code is governed by a
16670 // BSD-style license that can be found in the LICENSE file. 16660 // BSD-style license that can be found in the LICENSE file.
16671 16661
16672 16662
16673 class TableElement extends Element implements Element native "*HTMLTableElement" { 16663 class TableElement extends Element implements Element native "*HTMLTableElement" {
16674 16664
16675 factory TableElement() => _Elements.createTableElement(); 16665 factory TableElement() => document.$dom_createElement("table");
16676 16666
16677 /** @domName HTMLTableElement.align */ 16667 /** @domName HTMLTableElement.align */
16678 String align; 16668 String align;
16679 16669
16680 /** @domName HTMLTableElement.bgColor */ 16670 /** @domName HTMLTableElement.bgColor */
16681 String bgColor; 16671 String bgColor;
16682 16672
16683 /** @domName HTMLTableElement.border */ 16673 /** @domName HTMLTableElement.border */
16684 String border; 16674 String border;
16685 16675
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
16753 Element _createTBody() native 'createTBody'; 16743 Element _createTBody() native 'createTBody';
16754 } 16744 }
16755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16756 // for details. All rights reserved. Use of this source code is governed by a 16746 // for details. All rights reserved. Use of this source code is governed by a
16757 // BSD-style license that can be found in the LICENSE file. 16747 // BSD-style license that can be found in the LICENSE file.
16758 16748
16759 16749
16760 /// @domName HTMLTableRowElement 16750 /// @domName HTMLTableRowElement
16761 class TableRowElement extends Element implements Element native "*HTMLTableRowEl ement" { 16751 class TableRowElement extends Element implements Element native "*HTMLTableRowEl ement" {
16762 16752
16763 factory TableRowElement() => _Elements.createTableRowElement(); 16753 factory TableRowElement() => document.$dom_createElement("tr");
16764 16754
16765 /** @domName HTMLTableRowElement.align */ 16755 /** @domName HTMLTableRowElement.align */
16766 String align; 16756 String align;
16767 16757
16768 /** @domName HTMLTableRowElement.bgColor */ 16758 /** @domName HTMLTableRowElement.bgColor */
16769 String bgColor; 16759 String bgColor;
16770 16760
16771 /** @domName HTMLTableRowElement.cells */ 16761 /** @domName HTMLTableRowElement.cells */
16772 final HTMLCollection cells; 16762 final HTMLCollection cells;
16773 16763
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
16842 16832
16843 } 16833 }
16844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16845 // for details. All rights reserved. Use of this source code is governed by a 16835 // for details. All rights reserved. Use of this source code is governed by a
16846 // BSD-style license that can be found in the LICENSE file. 16836 // BSD-style license that can be found in the LICENSE file.
16847 16837
16848 16838
16849 /// @domName HTMLTextAreaElement 16839 /// @domName HTMLTextAreaElement
16850 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl ement" { 16840 class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl ement" {
16851 16841
16852 factory TextAreaElement() => _Elements.createTextAreaElement(); 16842 factory TextAreaElement() => document.$dom_createElement("textarea");
16853 16843
16854 /** @domName HTMLTextAreaElement.autofocus */ 16844 /** @domName HTMLTextAreaElement.autofocus */
16855 bool autofocus; 16845 bool autofocus;
16856 16846
16857 /** @domName HTMLTextAreaElement.cols */ 16847 /** @domName HTMLTextAreaElement.cols */
16858 int cols; 16848 int cols;
16859 16849
16860 /** @domName HTMLTextAreaElement.defaultValue */ 16850 /** @domName HTMLTextAreaElement.defaultValue */
16861 String defaultValue; 16851 String defaultValue;
16862 16852
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
17329 17319
17330 typedef void TimeoutHandler(); 17320 typedef void TimeoutHandler();
17331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17332 // for details. All rights reserved. Use of this source code is governed by a 17322 // for details. All rights reserved. Use of this source code is governed by a
17333 // BSD-style license that can be found in the LICENSE file. 17323 // BSD-style license that can be found in the LICENSE file.
17334 17324
17335 17325
17336 /// @domName HTMLTitleElement 17326 /// @domName HTMLTitleElement
17337 class TitleElement extends Element implements Element native "*HTMLTitleElement" { 17327 class TitleElement extends Element implements Element native "*HTMLTitleElement" {
17338 17328
17339 factory TitleElement() => _Elements.createTitleElement(); 17329 factory TitleElement() => document.$dom_createElement("title");
17340 } 17330 }
17341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17342 // for details. All rights reserved. Use of this source code is governed by a 17332 // for details. All rights reserved. Use of this source code is governed by a
17343 // BSD-style license that can be found in the LICENSE file. 17333 // BSD-style license that can be found in the LICENSE file.
17344 17334
17345 17335
17346 /// @domName Touch 17336 /// @domName Touch
17347 class Touch native "*Touch" { 17337 class Touch native "*Touch" {
17348 17338
17349 /** @domName Touch.clientX */ 17339 /** @domName Touch.clientX */
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
17513 Touch item(int index) native; 17503 Touch item(int index) native;
17514 } 17504 }
17515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17516 // for details. All rights reserved. Use of this source code is governed by a 17506 // for details. All rights reserved. Use of this source code is governed by a
17517 // BSD-style license that can be found in the LICENSE file. 17507 // BSD-style license that can be found in the LICENSE file.
17518 17508
17519 17509
17520 /// @domName HTMLTrackElement 17510 /// @domName HTMLTrackElement
17521 class TrackElement extends Element implements Element native "*HTMLTrackElement" { 17511 class TrackElement extends Element implements Element native "*HTMLTrackElement" {
17522 17512
17523 factory TrackElement() => _Elements.createTrackElement(); 17513 factory TrackElement() => document.$dom_createElement("track");
17524 17514
17525 static const int ERROR = 3; 17515 static const int ERROR = 3;
17526 17516
17527 static const int LOADED = 2; 17517 static const int LOADED = 2;
17528 17518
17529 static const int LOADING = 1; 17519 static const int LOADING = 1;
17530 17520
17531 static const int NONE = 0; 17521 static const int NONE = 0;
17532 17522
17533 /** @domName HTMLTrackElement.defaultValue */ 17523 /** @domName HTMLTrackElement.defaultValue */
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
17665 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie w, int detail) native; 17655 void initUIEvent(String type, bool canBubble, bool cancelable, LocalWindow vie w, int detail) native;
17666 } 17656 }
17667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17668 // for details. All rights reserved. Use of this source code is governed by a 17658 // for details. All rights reserved. Use of this source code is governed by a
17669 // BSD-style license that can be found in the LICENSE file. 17659 // BSD-style license that can be found in the LICENSE file.
17670 17660
17671 17661
17672 /// @domName HTMLUListElement 17662 /// @domName HTMLUListElement
17673 class UListElement extends Element implements Element native "*HTMLUListElement" { 17663 class UListElement extends Element implements Element native "*HTMLUListElement" {
17674 17664
17675 factory UListElement() => _Elements.createUListElement(); 17665 factory UListElement() => document.$dom_createElement("ul");
17676 17666
17677 /** @domName HTMLUListElement.compact */ 17667 /** @domName HTMLUListElement.compact */
17678 bool compact; 17668 bool compact;
17679 17669
17680 /** @domName HTMLUListElement.type */ 17670 /** @domName HTMLUListElement.type */
17681 String type; 17671 String type;
17682 } 17672 }
17683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
17684 // for details. All rights reserved. Use of this source code is governed by a 17674 // for details. All rights reserved. Use of this source code is governed by a
17685 // BSD-style license that can be found in the LICENSE file. 17675 // BSD-style license that can be found in the LICENSE file.
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
18094 final bool valueMissing; 18084 final bool valueMissing;
18095 } 18085 }
18096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18097 // for details. All rights reserved. Use of this source code is governed by a 18087 // for details. All rights reserved. Use of this source code is governed by a
18098 // BSD-style license that can be found in the LICENSE file. 18088 // BSD-style license that can be found in the LICENSE file.
18099 18089
18100 18090
18101 /// @domName HTMLVideoElement 18091 /// @domName HTMLVideoElement
18102 class VideoElement extends MediaElement native "*HTMLVideoElement" { 18092 class VideoElement extends MediaElement native "*HTMLVideoElement" {
18103 18093
18104 factory VideoElement() => _Elements.createVideoElement(); 18094 factory VideoElement() => document.$dom_createElement("video");
18105 18095
18106 /** @domName HTMLVideoElement.height */ 18096 /** @domName HTMLVideoElement.height */
18107 int height; 18097 int height;
18108 18098
18109 /** @domName HTMLVideoElement.poster */ 18099 /** @domName HTMLVideoElement.poster */
18110 String poster; 18100 String poster;
18111 18101
18112 /** @domName HTMLVideoElement.videoHeight */ 18102 /** @domName HTMLVideoElement.videoHeight */
18113 final int videoHeight; 18103 final int videoHeight;
18114 18104
(...skipping 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after
20508 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); 20498 return JS('DataView', 'new DataView(#,#)', buffer, byteOffset);
20509 } 20499 }
20510 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ; 20500 return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength) ;
20511 } 20501 }
20512 } 20502 }
20513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 20503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20514 // for details. All rights reserved. Use of this source code is governed by a 20504 // for details. All rights reserved. Use of this source code is governed by a
20515 // BSD-style license that can be found in the LICENSE file. 20505 // BSD-style license that can be found in the LICENSE file.
20516 20506
20517 20507
20518 class _Elements {
20519
20520
20521 static AnchorElement createAnchorElement([String href]) {
20522 AnchorElement _e = document.$dom_createElement("a");
20523 if (href != null) _e.href = href;
20524 return _e;
20525 }
20526
20527 static AreaElement createAreaElement() {
20528 AreaElement _e = document.$dom_createElement("area");
20529 return _e;
20530 }
20531
20532 static BRElement createBRElement() {
20533 BRElement _e = document.$dom_createElement("br");
20534 return _e;
20535 }
20536
20537 static BaseElement createBaseElement() {
20538 BaseElement _e = document.$dom_createElement("base");
20539 return _e;
20540 }
20541
20542 static BodyElement createBodyElement() {
20543 BodyElement _e = document.$dom_createElement("body");
20544 return _e;
20545 }
20546
20547 static ButtonElement createButtonElement() {
20548 ButtonElement _e = document.$dom_createElement("button");
20549 return _e;
20550 }
20551
20552 static CanvasElement createCanvasElement([int width, int height]) {
20553 CanvasElement _e = document.$dom_createElement("canvas");
20554 if (width != null) _e.width = width;
20555 if (height != null) _e.height = height;
20556 return _e;
20557 }
20558
20559 static ContentElement createContentElement() {
20560 ContentElement _e = document.$dom_createElement("content");
20561 return _e;
20562 }
20563
20564 static DListElement createDListElement() {
20565 DListElement _e = document.$dom_createElement("dl");
20566 return _e;
20567 }
20568
20569 static DataListElement createDataListElement() {
20570 DataListElement _e = document.$dom_createElement("datalist");
20571 return _e;
20572 }
20573
20574 static DetailsElement createDetailsElement() {
20575 DetailsElement _e = document.$dom_createElement("details");
20576 return _e;
20577 }
20578
20579 static DivElement createDivElement() {
20580 DivElement _e = document.$dom_createElement("div");
20581 return _e;
20582 }
20583
20584 static EmbedElement createEmbedElement() {
20585 EmbedElement _e = document.$dom_createElement("embed");
20586 return _e;
20587 }
20588
20589 static FieldSetElement createFieldSetElement() {
20590 FieldSetElement _e = document.$dom_createElement("fieldset");
20591 return _e;
20592 }
20593
20594 static FormElement createFormElement() {
20595 FormElement _e = document.$dom_createElement("form");
20596 return _e;
20597 }
20598
20599 static HRElement createHRElement() {
20600 HRElement _e = document.$dom_createElement("hr");
20601 return _e;
20602 }
20603
20604 static HeadElement createHeadElement() {
20605 HeadElement _e = document.$dom_createElement("head");
20606 return _e;
20607 }
20608
20609 static HeadingElement createHeadingElement_h1() {
20610 HeadingElement _e = document.$dom_createElement("h1");
20611 return _e;
20612 }
20613
20614 static HeadingElement createHeadingElement_h2() {
20615 HeadingElement _e = document.$dom_createElement("h2");
20616 return _e;
20617 }
20618
20619 static HeadingElement createHeadingElement_h3() {
20620 HeadingElement _e = document.$dom_createElement("h3");
20621 return _e;
20622 }
20623
20624 static HeadingElement createHeadingElement_h4() {
20625 HeadingElement _e = document.$dom_createElement("h4");
20626 return _e;
20627 }
20628
20629 static HeadingElement createHeadingElement_h5() {
20630 HeadingElement _e = document.$dom_createElement("h5");
20631 return _e;
20632 }
20633
20634 static HeadingElement createHeadingElement_h6() {
20635 HeadingElement _e = document.$dom_createElement("h6");
20636 return _e;
20637 }
20638
20639 static HtmlElement createHtmlElement() {
20640 HtmlElement _e = document.$dom_createElement("html");
20641 return _e;
20642 }
20643
20644 static IFrameElement createIFrameElement() {
20645 IFrameElement _e = document.$dom_createElement("iframe");
20646 return _e;
20647 }
20648
20649 static ImageElement createImageElement([String src, int width, int height]) {
20650 ImageElement _e = document.$dom_createElement("img");
20651 if (src != null) _e.src = src;
20652 if (width != null) _e.width = width;
20653 if (height != null) _e.height = height;
20654 return _e;
20655 }
20656
20657 static InputElement createInputElement([String type]) {
20658 InputElement _e = document.$dom_createElement("input");
20659 if (type != null) _e.type = type;
20660 return _e;
20661 }
20662
20663 static KeygenElement createKeygenElement() {
20664 KeygenElement _e = document.$dom_createElement("keygen");
20665 return _e;
20666 }
20667
20668 static LIElement createLIElement() {
20669 LIElement _e = document.$dom_createElement("li");
20670 return _e;
20671 }
20672
20673 static LabelElement createLabelElement() {
20674 LabelElement _e = document.$dom_createElement("label");
20675 return _e;
20676 }
20677
20678 static LegendElement createLegendElement() {
20679 LegendElement _e = document.$dom_createElement("legend");
20680 return _e;
20681 }
20682
20683 static LinkElement createLinkElement() {
20684 LinkElement _e = document.$dom_createElement("link");
20685 return _e;
20686 }
20687
20688 static MapElement createMapElement() {
20689 MapElement _e = document.$dom_createElement("map");
20690 return _e;
20691 }
20692
20693 static MenuElement createMenuElement() {
20694 MenuElement _e = document.$dom_createElement("menu");
20695 return _e;
20696 }
20697
20698 static MeterElement createMeterElement() {
20699 MeterElement _e = document.$dom_createElement("meter");
20700 return _e;
20701 }
20702
20703 static OListElement createOListElement() {
20704 OListElement _e = document.$dom_createElement("ol");
20705 return _e;
20706 }
20707
20708 static ObjectElement createObjectElement() {
20709 ObjectElement _e = document.$dom_createElement("object");
20710 return _e;
20711 }
20712
20713 static OptGroupElement createOptGroupElement() {
20714 OptGroupElement _e = document.$dom_createElement("optgroup");
20715 return _e;
20716 }
20717
20718 static OutputElement createOutputElement() {
20719 OutputElement _e = document.$dom_createElement("output");
20720 return _e;
20721 }
20722
20723 static ParagraphElement createParagraphElement() {
20724 ParagraphElement _e = document.$dom_createElement("p");
20725 return _e;
20726 }
20727
20728 static ParamElement createParamElement() {
20729 ParamElement _e = document.$dom_createElement("param");
20730 return _e;
20731 }
20732
20733 static PreElement createPreElement() {
20734 PreElement _e = document.$dom_createElement("pre");
20735 return _e;
20736 }
20737
20738 static ProgressElement createProgressElement() {
20739 ProgressElement _e = document.$dom_createElement("progress");
20740 return _e;
20741 }
20742
20743 static ScriptElement createScriptElement() {
20744 ScriptElement _e = document.$dom_createElement("script");
20745 return _e;
20746 }
20747
20748 static SelectElement createSelectElement() {
20749 SelectElement _e = document.$dom_createElement("select");
20750 return _e;
20751 }
20752
20753 static SourceElement createSourceElement() {
20754 SourceElement _e = document.$dom_createElement("source");
20755 return _e;
20756 }
20757
20758 static SpanElement createSpanElement() {
20759 SpanElement _e = document.$dom_createElement("span");
20760 return _e;
20761 }
20762
20763 static StyleElement createStyleElement() {
20764 StyleElement _e = document.$dom_createElement("style");
20765 return _e;
20766 }
20767
20768 static TableCaptionElement createTableCaptionElement() {
20769 TableCaptionElement _e = document.$dom_createElement("caption");
20770 return _e;
20771 }
20772
20773 static TableCellElement createTableCellElement() {
20774 TableCellElement _e = document.$dom_createElement("td");
20775 return _e;
20776 }
20777
20778 static TableColElement createTableColElement() {
20779 TableColElement _e = document.$dom_createElement("col");
20780 return _e;
20781 }
20782
20783 static TableElement createTableElement() {
20784 TableElement _e = document.$dom_createElement("table");
20785 return _e;
20786 }
20787
20788 static TableRowElement createTableRowElement() {
20789 TableRowElement _e = document.$dom_createElement("tr");
20790 return _e;
20791 }
20792
20793 static TextAreaElement createTextAreaElement() {
20794 TextAreaElement _e = document.$dom_createElement("textarea");
20795 return _e;
20796 }
20797
20798 static TitleElement createTitleElement() {
20799 TitleElement _e = document.$dom_createElement("title");
20800 return _e;
20801 }
20802
20803 static TrackElement createTrackElement() {
20804 TrackElement _e = document.$dom_createElement("track");
20805 return _e;
20806 }
20807
20808 static UListElement createUListElement() {
20809 UListElement _e = document.$dom_createElement("ul");
20810 return _e;
20811 }
20812
20813 static VideoElement createVideoElement() {
20814 VideoElement _e = document.$dom_createElement("video");
20815 return _e;
20816 }
20817 }
20818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20819 // for details. All rights reserved. Use of this source code is governed by a
20820 // BSD-style license that can be found in the LICENSE file.
20821
20822
20823 /// @domName EntryArray 20508 /// @domName EntryArray
20824 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" { 20509 class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*En tryArray" {
20825 20510
20826 /** @domName EntryArray.length */ 20511 /** @domName EntryArray.length */
20827 final int length; 20512 final int length;
20828 20513
20829 Entry operator[](int index) => JS("Entry", "#[#]", this, index); 20514 Entry operator[](int index) => JS("Entry", "#[#]", this, index);
20830 20515
20831 void operator[]=(int index, Entry value) { 20516 void operator[]=(int index, Entry value) {
20832 throw new UnsupportedError("Cannot assign element of immutable List."); 20517 throw new UnsupportedError("Cannot assign element of immutable List.");
(...skipping 4022 matching lines...) Expand 10 before | Expand all | Expand 10 after
24855 if (length < 0) throw new ArgumentError('length'); 24540 if (length < 0) throw new ArgumentError('length');
24856 if (start < 0) throw new RangeError.value(start); 24541 if (start < 0) throw new RangeError.value(start);
24857 int end = start + length; 24542 int end = start + length;
24858 if (end > a.length) throw new RangeError.value(end); 24543 if (end > a.length) throw new RangeError.value(end);
24859 for (int i = start; i < end; i++) { 24544 for (int i = start; i < end; i++) {
24860 accumulator.add(a[i]); 24545 accumulator.add(a[i]);
24861 } 24546 }
24862 return accumulator; 24547 return accumulator;
24863 } 24548 }
24864 } 24549 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698