1/*
2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
20module window {
21
22 // FIXME: Most of this could/should be generated from make_names.pl/HTMLNames.in
23 // to reduce the chance that we forget a constructor when adding a new element.
24 interface [
25 Supplemental=DOMWindow
26 ] DOMWindowHTML {
27
28 attribute HTMLDocumentConstructor HTMLDocument;
29
30 attribute HTMLElementConstructor HTMLElement;
31 attribute HTMLAnchorElementConstructor HTMLAnchorElement;
32 attribute HTMLAppletElementConstructor HTMLAppletElement;
33 attribute HTMLAreaElementConstructor HTMLAreaElement;
34 attribute HTMLBRElementConstructor HTMLBRElement;
35 attribute HTMLBaseElementConstructor HTMLBaseElement;
36 attribute HTMLBaseFontElementConstructor HTMLBaseFontElement;
37 attribute HTMLBodyElementConstructor HTMLBodyElement;
38 attribute HTMLButtonElementConstructor HTMLButtonElement;
39 attribute HTMLCanvasElementConstructor HTMLCanvasElement;
40 attribute HTMLDListElementConstructor HTMLDListElement;
41 attribute HTMLDirectoryElementConstructor HTMLDirectoryElement;
42 attribute HTMLDivElementConstructor HTMLDivElement;
43 attribute HTMLEmbedElementConstructor HTMLEmbedElement;
44 attribute HTMLFieldSetElementConstructor HTMLFieldSetElement;
45 attribute HTMLFontElementConstructor HTMLFontElement;
46 attribute HTMLFormElementConstructor HTMLFormElement;
47 attribute HTMLFrameElementConstructor HTMLFrameElement;
48 attribute HTMLFrameSetElementConstructor HTMLFrameSetElement;
49 attribute HTMLHRElementConstructor HTMLHRElement;
50 attribute HTMLHeadElementConstructor HTMLHeadElement;
51 attribute HTMLHeadingElementConstructor HTMLHeadingElement;
52 attribute HTMLHtmlElementConstructor HTMLHtmlElement;
53 attribute HTMLIFrameElementConstructor HTMLIFrameElement;
54 attribute HTMLImageElementConstructor HTMLImageElement;
55 attribute HTMLInputElementConstructor HTMLInputElement;
56 attribute HTMLKeygenElementConstructor HTMLKeygenElement;
57 attribute HTMLLIElementConstructor HTMLLIElement;
58 attribute HTMLLabelElementConstructor HTMLLabelElement;
59 attribute HTMLLegendElementConstructor HTMLLegendElement;
60 attribute HTMLLinkElementConstructor HTMLLinkElement;
61 attribute HTMLMapElementConstructor HTMLMapElement;
62 attribute HTMLMarqueeElementConstructor HTMLMarqueeElement;
63 attribute HTMLMenuElementConstructor HTMLMenuElement;
64 attribute HTMLMetaElementConstructor HTMLMetaElement;
65#if defined(ENABLE_METER_TAG) && ENABLE_METER_TAG
66 attribute HTMLMeterElementConstructor HTMLMeterElement;
67#endif
68 attribute HTMLModElementConstructor HTMLModElement;
69 attribute HTMLOListElementConstructor HTMLOListElement;
70 attribute HTMLObjectElementConstructor HTMLObjectElement;
71 attribute HTMLOptGroupElementConstructor HTMLOptGroupElement;
72 attribute HTMLOptionElementConstructor HTMLOptionElement;
73 attribute HTMLOutputElementConstructor HTMLOutputElement;
74 attribute HTMLParagraphElementConstructor HTMLParagraphElement;
75 attribute HTMLParamElementConstructor HTMLParamElement;
76 attribute HTMLPreElementConstructor HTMLPreElement;
77#if defined(ENABLE_PROGRESS_TAG) && ENABLE_PROGRESS_TAG
78 attribute HTMLProgressElementConstructor HTMLProgressElement;
79#endif
80 attribute HTMLQuoteElementConstructor HTMLQuoteElement;
81 attribute HTMLScriptElementConstructor HTMLScriptElement;
82 attribute HTMLSelectElementConstructor HTMLSelectElement;
83 attribute HTMLSpanElementConstructor HTMLSpanElement;
84 attribute HTMLStyleElementConstructor HTMLStyleElement;
85 attribute HTMLTableCaptionElementConstructor HTMLTableCaptionElement;
86 attribute HTMLTableCellElementConstructor HTMLTableCellElement;
87 attribute HTMLTableColElementConstructor HTMLTableColElement;
88 attribute HTMLTableElementConstructor HTMLTableElement;
89 attribute HTMLTableRowElementConstructor HTMLTableRowElement;
90 attribute HTMLTableSectionElementConstructor HTMLTableSectionElement;
91 attribute HTMLTextAreaElementConstructor HTMLTextAreaElement;
92 attribute HTMLTitleElementConstructor HTMLTitleElement;
93 attribute HTMLUListElementConstructor HTMLUListElement;
94
95 attribute HTMLCollectionConstructor HTMLCollection;
96 attribute HTMLAllCollectionConstructor HTMLAllCollection;
97 attribute [Conditional=MICRODATA] HTMLPropertiesCollectionConstructor HTMLPropertiesCollection;
98 attribute HTMLUnknownElementConstructor HTMLUnknownElement;
99
100 attribute [JSCustomGetter, CustomConstructor] HTMLImageElementConstructorConstructor Image; // Usable with new operator
101 attribute [JSCustomGetter] HTMLOptionElementConstructorConstructor Option; // Usable with new operator
102
103 };
104
105}