OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
14 * | 14 * |
15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
19 */ | 19 */ |
20 | 20 |
21 [ | 21 [ |
22 CustomToV8 | 22 CustomToV8 |
23 ] interface Element : Node { | 23 ] interface Element : Node { |
24 | 24 |
25 // DOM Level 1 Core | 25 // DOM Level 1 Core |
26 | 26 |
27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing tagName; | 27 [TreatReturnedNullStringAs=Null, PerWorldBindings] readonly attribute DOMStr
ing tagName; |
28 | 28 |
29 [TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined]
optional DOMString name); | 29 [TreatReturnedNullStringAs=Null] DOMString getAttribute([Default=Undefined]
optional DOMString name); |
30 [RaisesException] void setAttribute([Default=Undefined] optional DOMString n
ame, | 30 [RaisesException, DeliverCustomElementCallbacks] void setAttribute([Default=
Undefined] optional DOMString name, |
31 [Default=Undefined] optional DOMString valu
e); | 31 [Default=Undefined] optional DOMString valu
e); |
32 void removeAttribute([Default=Undefined] optional DOMString name); | 32 [DeliverCustomElementCallbacks] void removeAttribute([Default=Undefined] opt
ional DOMString name); |
33 Attr getAttributeNode([Default=Undefined] optional DOMString name); | 33 Attr getAttributeNode([Default=Undefined] optional DOMString name); |
34 [RaisesException] Attr setAttributeNode([Default=Undefined, StrictTypeChecki
ng] optional Attr newAttr); | 34 [RaisesException, DeliverCustomElementCallbacks] Attr setAttributeNode([Defa
ult=Undefined, StrictTypeChecking] optional Attr newAttr); |
35 [RaisesException] Attr removeAttributeNode([Default=Undefined, StrictTypeChe
cking] optional Attr oldAttr); | 35 [RaisesException, DeliverCustomElementCallbacks] Attr removeAttributeNode([D
efault=Undefined, StrictTypeChecking] optional Attr oldAttr); |
36 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optiona
l DOMString name); | 36 [PerWorldBindings] NodeList getElementsByTagName([Default=Undefined] optiona
l DOMString name); |
37 | 37 |
38 // For ObjC this is defined on Node for legacy support. | 38 // For ObjC this is defined on Node for legacy support. |
39 [PerWorldBindings] readonly attribute NamedNodeMap attributes; | 39 [PerWorldBindings] readonly attribute NamedNodeMap attributes; |
40 boolean hasAttributes(); | 40 boolean hasAttributes(); |
41 | 41 |
42 // DOM Level 2 Core | 42 // DOM Level 2 Core |
43 | 43 |
44 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optiona
l DOMString namespaceURI, | 44 DOMString getAttributeNS([TreatNullAs=NullString,Default=Undefined] optiona
l DOMString namespaceURI, |
45 [Default=Undefined] optional DOMStri
ng localName); | 45 [Default=Undefined] optional DOMStri
ng localName); |
46 [RaisesException] void setAttributeNS([TreatNullAs=NullString,Default=Undef
ined] optional DOMString namespaceURI, | 46 [RaisesException, DeliverCustomElementCallbacks] void setAttributeNS([Treat
NullAs=NullString,Default=Undefined] optional DOMString namespaceURI, |
47 [Default=Undefined] optional DOMString qu
alifiedName, | 47 [Default=Undefined] optional DOMString qu
alifiedName, |
48 [Default=Undefined] optional DOMString va
lue); | 48 [Default=Undefined] optional DOMString va
lue); |
49 void removeAttributeNS([TreatNullAs=NullString] DOMString namespaceURI, | 49 [DeliverCustomElementCallbacks] void removeAttributeNS([TreatNullAs=NullStr
ing] DOMString namespaceURI, |
50 DOMString localName); | 50 DOMString localName); |
51 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined]
optional DOMString namespaceURI, | 51 NodeList getElementsByTagNameNS([TreatNullAs=NullString,Default=Undefined]
optional DOMString namespaceURI, |
52 [Default=Undefined] optional
DOMString localName); | 52 [Default=Undefined] optional
DOMString localName); |
53 Attr getAttributeNodeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, | 53 Attr getAttributeNodeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, |
54 [Default=Undefined] optional DOMStrin
g localName); | 54 [Default=Undefined] optional DOMStrin
g localName); |
55 [RaisesException] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChec
king] optional Attr newAttr); | 55 [RaisesException] Attr setAttributeNodeNS([Default=Undefined, StrictTypeChec
king] optional Attr newAttr); |
56 boolean hasAttribute(DOMString name); | 56 boolean hasAttribute(DOMString name); |
57 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, | 57 boolean hasAttributeNS([TreatNullAs=NullString,Default=Undefined] optional
DOMString namespaceURI, |
58 [Default=Undefined] optional DOMString
localName); | 58 [Default=Undefined] optional DOMString
localName); |
59 | 59 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 [PerWorldBindings] readonly attribute DOMStringMap dataset; | 94 [PerWorldBindings] readonly attribute DOMStringMap dataset; |
95 | 95 |
96 // NodeSelector - Selector API | 96 // NodeSelector - Selector API |
97 [RaisesException] Element querySelector(DOMString selectors); | 97 [RaisesException] Element querySelector(DOMString selectors); |
98 [RaisesException] NodeList querySelectorAll(DOMString selectors); | 98 [RaisesException] NodeList querySelectorAll(DOMString selectors); |
99 | 99 |
100 // WebKit extension, pending specification. | 100 // WebKit extension, pending specification. |
101 [RaisesException] boolean webkitMatchesSelector([Default=Undefined] optional
DOMString selectors); | 101 [RaisesException] boolean webkitMatchesSelector([Default=Undefined] optional
DOMString selectors); |
102 | 102 |
103 // ShadowAware API | 103 // Shadow DOM API |
104 [Reflect=pseudo, ImplementedAs=pseudo, PerWorldBindings] attribute DOMString
webkitPseudo; | 104 [EnabledAtRuntime=ShadowDOM, Reflect, PerWorldBindings] attribute DOMString
pseudo; |
105 [ImplementedAs=createShadowRoot, RaisesException] ShadowRoot webkitCreateSha
dowRoot(); | 105 [EnabledAtRuntime=ShadowDOM, RaisesException] ShadowRoot createShadowRoot(); |
106 [ImplementedAs=shadowRoot, PerWorldBindings] readonly attribute ShadowRoot w
ebkitShadowRoot; | 106 [EnabledAtRuntime=ShadowDOM, PerWorldBindings] readonly attribute ShadowRoot
shadowRoot; |
| 107 |
| 108 // To-be-deprecated prefixed Shadow DOM API |
| 109 [Reflect=pseudo, ImplementedAs=pseudo, PerWorldBindings, MeasureAs=ShadowDOM
PrefixedPseudo] attribute DOMString webkitPseudo; |
| 110 [ImplementedAs=createShadowRoot, RaisesException, MeasureAs=ShadowDOMPrefixe
dCreateShadowRoot] ShadowRoot webkitCreateShadowRoot(); |
| 111 [ImplementedAs=shadowRoot, PerWorldBindings, MeasureAs=ShadowDOMPrefixedShad
owRoot] readonly attribute ShadowRoot webkitShadowRoot; |
107 | 112 |
108 // CSSOM View Module API | 113 // CSSOM View Module API |
109 ClientRectList getClientRects(); | 114 ClientRectList getClientRects(); |
110 ClientRect getBoundingClientRect(); | 115 ClientRect getBoundingClientRect(); |
111 | 116 |
112 // Mozilla version | 117 // Mozilla version |
113 const unsigned short ALLOW_KEYBOARD_INPUT = 1; | 118 const unsigned short ALLOW_KEYBOARD_INPUT = 1; |
114 [EnabledAtRuntime=fullscreen] void webkitRequestFullScreen([Default=Undefine
d] optional unsigned short flags); | 119 [EnabledAtRuntime=fullscreen] void webkitRequestFullScreen([Default=Undefine
d] optional unsigned short flags); |
115 | 120 |
116 // W3C version | 121 // W3C version |
117 [EnabledAtRuntime=fullscreen] void webkitRequestFullscreen(); | 122 [EnabledAtRuntime=fullscreen] void webkitRequestFullscreen(); |
118 | 123 |
119 void webkitRequestPointerLock(); | 124 void webkitRequestPointerLock(); |
120 | 125 |
121 // CSS Regions API | 126 // CSS Regions API |
122 [EnabledAtRuntime=cssRegions, PerWorldBindings] readonly attribute DOMString
webkitRegionOverset; | 127 [EnabledAtRuntime=cssRegions, PerWorldBindings] readonly attribute DOMString
webkitRegionOverset; |
123 [EnabledAtRuntime=cssRegions] sequence<Range> webkitGetRegionFlowRanges(); | 128 [EnabledAtRuntime=cssRegions] sequence<Range> webkitGetRegionFlowRanges(); |
124 | 129 |
125 // Event handler DOM attributes | 130 // Event handler DOM attributes |
126 [NotEnumerable, PerWorldBindings] attribute EventListener onabort; | 131 [NotEnumerable, PerWorldBindings] attribute EventListener onabort; |
127 [NotEnumerable, PerWorldBindings] attribute EventListener onblur; | 132 [NotEnumerable, PerWorldBindings] attribute EventListener onblur; |
128 [NotEnumerable, PerWorldBindings] attribute EventListener onchange; | 133 [NotEnumerable, PerWorldBindings] attribute EventListener onchange; |
129 [NotEnumerable, PerWorldBindings] attribute EventListener onclick; | 134 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onclick; |
130 [NotEnumerable, PerWorldBindings] attribute EventListener oncontextmenu; | 135 [NotEnumerable, PerWorldBindings] attribute EventListener oncontextmenu; |
131 [NotEnumerable, PerWorldBindings] attribute EventListener ondblclick; | 136 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener ondblclick; |
132 [NotEnumerable, PerWorldBindings] attribute EventListener ondrag; | 137 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener ondrag; |
133 [NotEnumerable, PerWorldBindings] attribute EventListener ondragend; | 138 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener ondragend; |
134 [NotEnumerable, PerWorldBindings] attribute EventListener ondragenter; | 139 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener ondragenter; |
135 [NotEnumerable, PerWorldBindings] attribute EventListener ondragleave; | 140 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener ondragleave; |
136 [NotEnumerable, PerWorldBindings] attribute EventListener ondragover; | 141 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener ondragover; |
137 [NotEnumerable, PerWorldBindings] attribute EventListener ondragstart; | 142 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener ondragstart; |
138 [NotEnumerable, PerWorldBindings] attribute EventListener ondrop; | 143 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener ondrop; |
139 [NotEnumerable, PerWorldBindings] attribute EventListener onerror; | 144 [NotEnumerable, PerWorldBindings] attribute EventListener onerror; |
140 [NotEnumerable, PerWorldBindings] attribute EventListener onfocus; | 145 [NotEnumerable, PerWorldBindings] attribute EventListener onfocus; |
141 [NotEnumerable, PerWorldBindings] attribute EventListener oninput; | 146 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener oninput; |
142 [NotEnumerable, PerWorldBindings] attribute EventListener oninvalid; | 147 [NotEnumerable, PerWorldBindings] attribute EventListener oninvalid; |
143 [NotEnumerable, PerWorldBindings] attribute EventListener onkeydown; | 148 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onkeydown; |
144 [NotEnumerable, PerWorldBindings] attribute EventListener onkeypress; | 149 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onkeypress; |
145 [NotEnumerable, PerWorldBindings] attribute EventListener onkeyup; | 150 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onkeyup; |
146 [NotEnumerable, PerWorldBindings] attribute EventListener onload; | 151 [NotEnumerable, PerWorldBindings] attribute EventListener onload; |
147 [NotEnumerable, PerWorldBindings] attribute EventListener onmousedown; | 152 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onmousedown; |
148 [NotEnumerable, PerWorldBindings] attribute EventListener onmousemove; | 153 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onmouseenter; |
149 [NotEnumerable, PerWorldBindings] attribute EventListener onmouseout; | 154 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onmouseleave; |
150 [NotEnumerable, PerWorldBindings] attribute EventListener onmouseover; | 155 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onmousemove; |
151 [NotEnumerable, PerWorldBindings] attribute EventListener onmouseup; | 156 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onmouseout; |
152 [NotEnumerable, PerWorldBindings] attribute EventListener onmousewheel; | 157 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onmouseover; |
| 158 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onmouseup; |
| 159 [NotEnumerable, PerWorldBindings, ActivityLog=SetterForIsolatedWorlds] attri
bute EventListener onmousewheel; |
153 [NotEnumerable, PerWorldBindings] attribute EventListener onscroll; | 160 [NotEnumerable, PerWorldBindings] attribute EventListener onscroll; |
154 [NotEnumerable, PerWorldBindings] attribute EventListener onselect; | 161 [NotEnumerable, PerWorldBindings] attribute EventListener onselect; |
155 [NotEnumerable, PerWorldBindings] attribute EventListener onsubmit; | 162 [NotEnumerable, PerWorldBindings] attribute EventListener onsubmit; |
156 | 163 |
157 // attribute [NotEnumerable] EventListener oncanplay; | 164 // attribute [NotEnumerable] EventListener oncanplay; |
158 // attribute [NotEnumerable] EventListener oncanplaythrough; | 165 // attribute [NotEnumerable] EventListener oncanplaythrough; |
159 // attribute [NotEnumerable] EventListener ondurationchange; | 166 // attribute [NotEnumerable] EventListener ondurationchange; |
160 // attribute [NotEnumerable] EventListener onemptied; | 167 // attribute [NotEnumerable] EventListener onemptied; |
161 // attribute [NotEnumerable] EventListener onended; | 168 // attribute [NotEnumerable] EventListener onended; |
162 // attribute [NotEnumerable] EventListener onloadeddata; | 169 // attribute [NotEnumerable] EventListener onloadeddata; |
(...skipping 28 matching lines...) Expand all Loading... |
191 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventLis
tener ontouchmove; | 198 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventLis
tener ontouchmove; |
192 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventLis
tener ontouchend; | 199 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventLis
tener ontouchend; |
193 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventLis
tener ontouchcancel; | 200 [NotEnumerable, EnabledAtRuntime=touch, PerWorldBindings] attribute EventLis
tener ontouchcancel; |
194 [NotEnumerable, PerWorldBindings] attribute EventListener onwebkitfullscreen
change; | 201 [NotEnumerable, PerWorldBindings] attribute EventListener onwebkitfullscreen
change; |
195 [NotEnumerable, PerWorldBindings] attribute EventListener onwebkitfullscreen
error; | 202 [NotEnumerable, PerWorldBindings] attribute EventListener onwebkitfullscreen
error; |
196 }; | 203 }; |
197 | 204 |
198 Element implements ParentNode; | 205 Element implements ParentNode; |
199 Element implements ChildNode; | 206 Element implements ChildNode; |
200 | 207 |
OLD | NEW |