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

Side by Side Diff: third_party/WebCore/dom/Element.idl

Issue 9958151: Update script to fetch new WebCore IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 months 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 | « third_party/WebCore/dom/DocumentType.idl ('k') | third_party/WebCore/dom/Entity.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
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
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21 module core {
22
23 interface [
24 JSGenerateToNativeObject,
25 JSInlineGetOwnPropertySlot
26 ] Element : Node {
27
28 // DOM Level 1 Core
29
30 readonly attribute [TreatReturnedNullStringAs=Null] DOMString tagName;
31
32 [TreatReturnedNullStringAs=Null] DOMString getAttribute(in [Optional=Def aultIsUndefined] DOMString name);
33 [ObjCLegacyUnnamedParameters] void setAttribute(in [Optional=DefaultIsUn defined] DOMString name,
34 in [Optional=DefaultIsUndefined] DOMStr ing value)
35 raises(DOMException);
36 void removeAttribute(in [Optional=DefaultIsUndefined] DOMString name);
37 Attr getAttributeNode(in [Optional=DefaultIsUndefined] DOMString name);
38 Attr setAttributeNode(in [Optional=DefaultIsUndefined] Attr newAttr)
39 raises(DOMException);
40 Attr removeAttributeNode(in [Optional=DefaultIsUndefined] Attr oldAttr)
41 raises(DOMException);
42 NodeList getElementsByTagName(in [Optional=DefaultIsUndefined] DOMString name);
43
44 // DOM Level 2 Core
45
46 [ObjCLegacyUnnamedParameters] DOMString getAttributeNS(in [TreatNullAs=N ullString,Optional=DefaultIsUndefined] DOMString namespaceURI,
47 in [Optional=DefaultIsUndefined] DOMString localName);
48 [ObjCLegacyUnnamedParameters] void setAttributeNS(in [TreatNullAs=NullSt ring,Optional=DefaultIsUndefined] DOMString namespaceURI,
49 in [Optional=DefaultIsUndefined] DOMS tring qualifiedName,
50 in [Optional=DefaultIsUndefined] DOMS tring value)
51 raises(DOMException);
52 [ObjCLegacyUnnamedParameters] void removeAttributeNS(in [TreatNullAs=Nul lString] DOMString namespaceURI,
53 in DOMString localName);
54 [ObjCLegacyUnnamedParameters] NodeList getElementsByTagNameNS(in [TreatN ullAs=NullString,Optional=DefaultIsUndefined] DOMString namespaceURI,
55 in [Optional=DefaultIsUnd efined] DOMString localName);
56 [ObjCLegacyUnnamedParameters] Attr getAttributeNodeNS(in [TreatNullAs=Nu llString,Optional=DefaultIsUndefined] DOMString namespaceURI,
57 in [Optional=DefaultIsUndefined] DOMString localName);
58 Attr setAttributeNodeNS(in [Optional=DefaultIsUndefined] Attr newAttr)
59 raises(DOMException);
60 boolean hasAttribute(in DOMString name);
61 [ObjCLegacyUnnamedParameters] boolean hasAttributeNS(in [TreatNullAs=Nul lString,Optional=DefaultIsUndefined] DOMString namespaceURI,
62 in [Optional=DefaultIsUndefined] D OMString localName);
63
64 readonly attribute CSSStyleDeclaration style;
65
66 // Common extensions
67
68 readonly attribute long offsetLeft;
69 readonly attribute long offsetTop;
70 readonly attribute long offsetWidth;
71 readonly attribute long offsetHeight;
72 readonly attribute Element offsetParent;
73 readonly attribute long clientLeft;
74 readonly attribute long clientTop;
75 readonly attribute long clientWidth;
76 readonly attribute long clientHeight;
77 attribute long scrollLeft;
78 attribute long scrollTop;
79 readonly attribute long scrollWidth;
80 readonly attribute long scrollHeight;
81
82 void focus();
83 void blur();
84 void scrollIntoView(in [Optional] boolean alignWithTop);
85
86 // WebKit extensions
87
88 void scrollIntoViewIfNeeded(in [Optional] boolean centerIfNeeded);
89 void scrollByLines(in [Optional=DefaultIsUndefined] long lines);
90 void scrollByPages(in [Optional=DefaultIsUndefined] long pages);
91
92 #if defined(ENABLE_ANIMATION_API) && ENABLE_ANIMATION_API
93 WebKitAnimationList webkitGetAnimations();
94 #endif
95
96 // HTML 5
97 NodeList getElementsByClassName(in [Optional=DefaultIsUndefined] DOMStri ng name);
98
99 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
100 readonly attribute DOMStringMap dataset;
101 #endif
102
103 // NodeSelector - Selector API
104 Element querySelector(in DOMString selectors)
105 raises(DOMException);
106 NodeList querySelectorAll(in DOMString selectors)
107 raises(DOMException);
108
109 // WebKit extension, pending specification.
110 boolean webkitMatchesSelector(in [Optional=DefaultIsUndefined] DOMString selectors)
111 raises(DOMException);
112
113 // ElementTraversal API
114 readonly attribute Element firstElementChild;
115 readonly attribute Element lastElementChild;
116 readonly attribute Element previousElementSibling;
117 readonly attribute Element nextElementSibling;
118 readonly attribute unsigned long childElementCount;
119
120 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
121 // CSSOM View Module API
122 ClientRectList getClientRects();
123 ClientRect getBoundingClientRect();
124 #endif
125
126 #if defined(LANGUAGE_OBJECTIVE_C) && LANGUAGE_OBJECTIVE_C
127 // Objective-C extensions
128 readonly attribute DOMString innerText;
129 #endif
130
131 #if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
132 // Mozilla version
133 const unsigned short ALLOW_KEYBOARD_INPUT = 1;
134 [V8EnabledAtRuntime] void webkitRequestFullScreen(in [Optional=DefaultIs Undefined] unsigned short flags);
135
136 // W3C version
137 [V8EnabledAtRuntime] void webkitRequestFullscreen();
138 #endif
139
140 // CSS Regions API
141 readonly attribute DOMString webkitRegionOverflow;
142
143 #if !defined(LANGUAGE_OBJECTIVE_C) || !LANGUAGE_OBJECTIVE_C
144 // Event handler DOM attributes
145 attribute [NotEnumerable] EventListener onabort;
146 attribute [NotEnumerable] EventListener onblur;
147 attribute [NotEnumerable] EventListener onchange;
148 attribute [NotEnumerable] EventListener onclick;
149 attribute [NotEnumerable] EventListener oncontextmenu;
150 attribute [NotEnumerable] EventListener ondblclick;
151 attribute [NotEnumerable] EventListener ondrag;
152 attribute [NotEnumerable] EventListener ondragend;
153 attribute [NotEnumerable] EventListener ondragenter;
154 attribute [NotEnumerable] EventListener ondragleave;
155 attribute [NotEnumerable] EventListener ondragover;
156 attribute [NotEnumerable] EventListener ondragstart;
157 attribute [NotEnumerable] EventListener ondrop;
158 attribute [NotEnumerable] EventListener onerror;
159 attribute [NotEnumerable] EventListener onfocus;
160 attribute [NotEnumerable] EventListener oninput;
161 attribute [NotEnumerable] EventListener oninvalid;
162 attribute [NotEnumerable] EventListener onkeydown;
163 attribute [NotEnumerable] EventListener onkeypress;
164 attribute [NotEnumerable] EventListener onkeyup;
165 attribute [NotEnumerable] EventListener onload;
166 attribute [NotEnumerable] EventListener onmousedown;
167 attribute [NotEnumerable] EventListener onmousemove;
168 attribute [NotEnumerable] EventListener onmouseout;
169 attribute [NotEnumerable] EventListener onmouseover;
170 attribute [NotEnumerable] EventListener onmouseup;
171 attribute [NotEnumerable] EventListener onmousewheel;
172 attribute [NotEnumerable] EventListener onscroll;
173 attribute [NotEnumerable] EventListener onselect;
174 attribute [NotEnumerable] EventListener onsubmit;
175
176 // attribute [NotEnumerable] EventListener oncanplay;
177 // attribute [NotEnumerable] EventListener oncanplaythrough;
178 // attribute [NotEnumerable] EventListener ondurationchange;
179 // attribute [NotEnumerable] EventListener onemptied;
180 // attribute [NotEnumerable] EventListener onended;
181 // attribute [NotEnumerable] EventListener onloadeddata;
182 // attribute [NotEnumerable] EventListener onloadedmetadata;
183 // attribute [NotEnumerable] EventListener onloadstart;
184 // attribute [NotEnumerable] EventListener onpause;
185 // attribute [NotEnumerable] EventListener onplay;
186 // attribute [NotEnumerable] EventListener onplaying;
187 // attribute [NotEnumerable] EventListener onprogress;
188 // attribute [NotEnumerable] EventListener onratechange;
189 // attribute [NotEnumerable] EventListener onreadystatechange;
190 // attribute [NotEnumerable] EventListener onseeked;
191 // attribute [NotEnumerable] EventListener onseeking;
192 // attribute [NotEnumerable] EventListener onshow;
193 // attribute [NotEnumerable] EventListener onstalled;
194 // attribute [NotEnumerable] EventListener onsuspend;
195 // attribute [NotEnumerable] EventListener ontimeupdate;
196 // attribute [NotEnumerable] EventListener onvolumechange;
197 // attribute [NotEnumerable] EventListener onwaiting;
198
199 // WebKit extensions
200 attribute [NotEnumerable] EventListener onbeforecut;
201 attribute [NotEnumerable] EventListener oncut;
202 attribute [NotEnumerable] EventListener onbeforecopy;
203 attribute [NotEnumerable] EventListener oncopy;
204 attribute [NotEnumerable] EventListener onbeforepaste;
205 attribute [NotEnumerable] EventListener onpaste;
206 attribute [NotEnumerable] EventListener onreset;
207 attribute [NotEnumerable] EventListener onsearch;
208 attribute [NotEnumerable] EventListener onselectstart;
209 attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] Ev entListener ontouchstart;
210 attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] Ev entListener ontouchmove;
211 attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] Ev entListener ontouchend;
212 attribute [NotEnumerable,Conditional=TOUCH_EVENTS,V8EnabledAtRuntime] Ev entListener ontouchcancel;
213 attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwe bkitfullscreenchange;
214 attribute [NotEnumerable, Conditional=FULLSCREEN_API] EventListener onwe bkitfullscreenerror;
215 #endif
216 };
217
218 }
OLDNEW
« no previous file with comments | « third_party/WebCore/dom/DocumentType.idl ('k') | third_party/WebCore/dom/Entity.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698