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

Side by Side Diff: tools/dom/doc/interface/Element.dartdoc

Issue 11961047: Remove the old hand-written HTML doc format, which has not worked for months. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « tools/dom/doc/interface/AbstractWorker.dartdoc ('k') | tools/dom/doc/interface/Event.dartdoc » ('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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // WARNING: Do not edit - generated code.
6
7 /**
8 * All your attribute manipulation needs in one place.
9 * Extends the regular Map interface by automatically coercing non-string
10 * values to strings.
11 */
12 abstract class AttributeMap implements Map<String, String> {
13 void operator []=(String key, value);
14 }
15
16 /**
17 * All your element measurement needs in one place
18 */
19 abstract class ElementRect {
20 // Relative to offsetParent
21 ClientRect get client;
22 ClientRect get offset;
23 ClientRect get scroll;
24 // In global coords
25 ClientRect get bounding;
26 // In global coords
27 List<ClientRect> get clientRects;
28 }
29
30 abstract class NodeSelector {
31 Element query(String selectors);
32 List<Element> queryAll(String selectors);
33 }
34
35 abstract class CSSClassSet implements Set<String> {
36 /**
37 * Adds the class [token] to the element if it is not on it, removes it if it
38 * is.
39 */
40 bool toggle(String token);
41
42 /**
43 * Returns [:true:] classes cannot be added or removed from this
44 * [:CSSClassSet:].
45 */
46 bool get frozen;
47 }
48
49 /// @domName Element
50 abstract class Element implements Node, NodeSelector {
51 factory Element.html(String html) =>
52 _ElementFactoryProvider.createElement_html(html);
53 factory Element.tag(String tag) =>
54 _ElementFactoryProvider.createElement_tag(tag);
55
56 AttributeMap get attributes;
57 void set attributes(Map<String, String> value);
58
59 /**
60 * @domName childElementCount, firstElementChild, lastElementChild,
61 * children, Node.nodes.add
62 */
63 List<Element> get elements;
64
65 void set elements(Collection<Element> value);
66
67 /** @domName className, classList */
68 CSSClassSet get classes;
69
70 void set classes(Collection<String> value);
71
72 AttributeMap get dataAttributes;
73 void set dataAttributes(Map<String, String> value);
74
75 /**
76 * Adds the specified text as a text node after the last child of this.
77 */
78 void addText(String text);
79
80 /**
81 * Parses the specified text as HTML and adds the resulting node after the
82 * last child of this.
83 */
84 void addHTML(String html);
85
86 /**
87 * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth,
88 * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft,
89 * scrollHeight, scrollWidth, scrollTop, scrollLeft
90 */
91 Future<ElementRect> get rect;
92
93 /** @domName Window.getComputedStyle */
94 Future<CSSStyleDeclaration> get computedStyle;
95
96 /** @domName Window.getComputedStyle */
97 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
98
99 Element clone(bool deep);
100
101 Element get parent;
102
103 /**
104 * Experimental support for [web components][wc]. This field stores a
105 * reference to the component implementation. It was inspired by Mozilla's
106 * [x-tags][] project. Please note: in the future it may be possible to
107 * `extend Element` from your class, in which case this field will be
108 * deprecated and will simply return this [Element] object.
109 *
110 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html
111 * [x-tags]: http://x-tags.org/
112 */
113 var xtag;
114
115
116 /**
117 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent
118 */
119 ElementEvents get on;
120
121 /** @domName HTMLElement.children */
122 abstract HTMLCollection get $dom_children;
123
124 /** @domName HTMLElement.contentEditable */
125 String contentEditable;
126
127 /** @domName HTMLElement.dir */
128 String dir;
129
130 /** @domName HTMLElement.draggable */
131 bool draggable;
132
133 /** @domName HTMLElement.hidden */
134 bool hidden;
135
136 /** @domName HTMLElement.id */
137 String id;
138
139 /** @domName HTMLElement.innerHTML */
140 String innerHTML;
141
142 /** @domName HTMLElement.isContentEditable */
143 abstract bool get isContentEditable;
144
145 /** @domName HTMLElement.lang */
146 String lang;
147
148 /** @domName HTMLElement.outerHTML */
149 abstract String get outerHTML;
150
151 /** @domName HTMLElement.spellcheck */
152 bool spellcheck;
153
154 /** @domName HTMLElement.tabIndex */
155 int tabIndex;
156
157 /** @domName HTMLElement.title */
158 String title;
159
160 /** @domName HTMLElement.translate */
161 bool translate;
162
163 /** @domName HTMLElement.webkitdropzone */
164 String webkitdropzone;
165
166 /** @domName HTMLElement.click */
167 void click();
168
169 /** @domName HTMLElement.insertAdjacentElement */
170 Element insertAdjacentElement(String where, Element element);
171
172 /** @domName HTMLElement.insertAdjacentHTML */
173 void insertAdjacentHTML(String where, String html);
174
175 /** @domName HTMLElement.insertAdjacentText */
176 void insertAdjacentText(String where, String text);
177
178 static const int ALLOW_KEYBOARD_INPUT = 1;
179
180 /** @domName Element.childElementCount */
181 abstract int get $dom_childElementCount;
182
183 /** @domName Element.className */
184 String $dom_className;
185
186 /** @domName Element.clientHeight */
187 abstract int get $dom_clientHeight;
188
189 /** @domName Element.clientLeft */
190 abstract int get $dom_clientLeft;
191
192 /** @domName Element.clientTop */
193 abstract int get $dom_clientTop;
194
195 /** @domName Element.clientWidth */
196 abstract int get $dom_clientWidth;
197
198 /** @domName Element.dataset */
199 abstract Map<String, String> get dataset;
200
201 /** @domName Element.firstElementChild */
202 abstract Element get $dom_firstElementChild;
203
204 /** @domName Element.lastElementChild */
205 abstract Element get $dom_lastElementChild;
206
207 /** @domName Element.nextElementSibling */
208 abstract Element get nextElementSibling;
209
210 /** @domName Element.offsetHeight */
211 abstract int get $dom_offsetHeight;
212
213 /** @domName Element.offsetLeft */
214 abstract int get $dom_offsetLeft;
215
216 /** @domName Element.offsetParent */
217 abstract Element get offsetParent;
218
219 /** @domName Element.offsetTop */
220 abstract int get $dom_offsetTop;
221
222 /** @domName Element.offsetWidth */
223 abstract int get $dom_offsetWidth;
224
225 /** @domName Element.previousElementSibling */
226 abstract Element get previousElementSibling;
227
228 /** @domName Element.scrollHeight */
229 abstract int get $dom_scrollHeight;
230
231 /** @domName Element.scrollLeft */
232 int $dom_scrollLeft;
233
234 /** @domName Element.scrollTop */
235 int $dom_scrollTop;
236
237 /** @domName Element.scrollWidth */
238 abstract int get $dom_scrollWidth;
239
240 /** @domName Element.style */
241 abstract CSSStyleDeclaration get style;
242
243 /** @domName Element.tagName */
244 abstract String get tagName;
245
246 /** @domName Element.blur */
247 void blur();
248
249 /** @domName Element.focus */
250 void focus();
251
252 /** @domName Element.getAttribute */
253 String $dom_getAttribute(String name);
254
255 /** @domName Element.getBoundingClientRect */
256 ClientRect $dom_getBoundingClientRect();
257
258 /** @domName Element.getClientRects */
259 List<ClientRect> $dom_getClientRects();
260
261 /** @domName Element.getElementsByClassName */
262 List<Node> $dom_getElementsByClassName(String name);
263
264 /** @domName Element.getElementsByTagName */
265 List<Node> $dom_getElementsByTagName(String name);
266
267 /** @domName Element.hasAttribute */
268 bool $dom_hasAttribute(String name);
269
270 /** @domName Element.querySelector */
271 Element $dom_querySelector(String selectors);
272
273 /** @domName Element.querySelectorAll */
274 List<Node> $dom_querySelectorAll(String selectors);
275
276 /** @domName Element.remove */
277 void remove();
278
279 /** @domName Element.removeAttribute */
280 void $dom_removeAttribute(String name);
281
282 /** @domName Element.scrollByLines */
283 void scrollByLines(int lines);
284
285 /** @domName Element.scrollByPages */
286 void scrollByPages(int pages);
287
288 /** @domName Element.scrollIntoViewIfNeeded */
289 void scrollIntoView([bool centerIfNeeded]);
290
291 /** @domName Element.setAttribute */
292 void $dom_setAttribute(String name, String value);
293
294 /** @domName Element.webkitMatchesSelector */
295 bool matchesSelector(String selectors);
296
297 /** @domName Element.webkitRequestFullScreen */
298 void webkitRequestFullScreen(int flags);
299
300 /** @domName Element.webkitRequestFullscreen */
301 void webkitRequestFullscreen();
302
303 /** @domName Element.webkitRequestPointerLock */
304 void webkitRequestPointerLock();
305
306 }
307
308 abstract class ElementEvents implements Events {
309
310 EventListenerList get abort;
311
312 EventListenerList get beforeCopy;
313
314 EventListenerList get beforeCut;
315
316 EventListenerList get beforePaste;
317
318 EventListenerList get blur;
319
320 EventListenerList get change;
321
322 EventListenerList get click;
323
324 EventListenerList get contextMenu;
325
326 EventListenerList get copy;
327
328 EventListenerList get cut;
329
330 EventListenerList get doubleClick;
331
332 EventListenerList get drag;
333
334 EventListenerList get dragEnd;
335
336 EventListenerList get dragEnter;
337
338 EventListenerList get dragLeave;
339
340 EventListenerList get dragOver;
341
342 EventListenerList get dragStart;
343
344 EventListenerList get drop;
345
346 EventListenerList get error;
347
348 EventListenerList get focus;
349
350 EventListenerList get input;
351
352 EventListenerList get invalid;
353
354 EventListenerList get keyDown;
355
356 EventListenerList get keyPress;
357
358 EventListenerList get keyUp;
359
360 EventListenerList get load;
361
362 EventListenerList get mouseDown;
363
364 EventListenerList get mouseMove;
365
366 EventListenerList get mouseOut;
367
368 EventListenerList get mouseOver;
369
370 EventListenerList get mouseUp;
371
372 EventListenerList get mouseWheel;
373
374 EventListenerList get paste;
375
376 EventListenerList get reset;
377
378 EventListenerList get scroll;
379
380 EventListenerList get search;
381
382 EventListenerList get select;
383
384 EventListenerList get selectStart;
385
386 EventListenerList get submit;
387
388 EventListenerList get touchCancel;
389
390 EventListenerList get touchEnd;
391
392 EventListenerList get touchEnter;
393
394 EventListenerList get touchLeave;
395
396 EventListenerList get touchMove;
397
398 EventListenerList get touchStart;
399
400 EventListenerList get transitionEnd;
401
402 EventListenerList get fullscreenChange;
403
404 EventListenerList get fullscreenError;
405 }
OLDNEW
« no previous file with comments | « tools/dom/doc/interface/AbstractWorker.dartdoc ('k') | tools/dom/doc/interface/Event.dartdoc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698