OLD | NEW |
| (Empty) |
1 #library('html'); | |
2 | |
3 #import('dart:dom', prefix:'dom'); | |
4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5 // for details. All rights reserved. Use of this source code is governed by a | |
6 // BSD-style license that can be found in the LICENSE file. | |
7 | |
8 // DO NOT EDIT | |
9 // Auto-generated Dart HTML library. | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18 // for details. All rights reserved. Use of this source code is governed by a | |
19 // BSD-style license that can be found in the LICENSE file. | |
20 | |
21 // WARNING: Do not edit - generated code. | |
22 | |
23 interface AnchorElement extends Element { | |
24 | |
25 String get accessKey(); | |
26 | |
27 void set accessKey(String value); | |
28 | |
29 String get charset(); | |
30 | |
31 void set charset(String value); | |
32 | |
33 String get coords(); | |
34 | |
35 void set coords(String value); | |
36 | |
37 String get download(); | |
38 | |
39 void set download(String value); | |
40 | |
41 String get hash(); | |
42 | |
43 void set hash(String value); | |
44 | |
45 String get host(); | |
46 | |
47 void set host(String value); | |
48 | |
49 String get hostname(); | |
50 | |
51 void set hostname(String value); | |
52 | |
53 String get href(); | |
54 | |
55 void set href(String value); | |
56 | |
57 String get hreflang(); | |
58 | |
59 void set hreflang(String value); | |
60 | |
61 String get name(); | |
62 | |
63 void set name(String value); | |
64 | |
65 String get origin(); | |
66 | |
67 String get pathname(); | |
68 | |
69 void set pathname(String value); | |
70 | |
71 String get ping(); | |
72 | |
73 void set ping(String value); | |
74 | |
75 String get port(); | |
76 | |
77 void set port(String value); | |
78 | |
79 String get protocol(); | |
80 | |
81 void set protocol(String value); | |
82 | |
83 String get rel(); | |
84 | |
85 void set rel(String value); | |
86 | |
87 String get rev(); | |
88 | |
89 void set rev(String value); | |
90 | |
91 String get search(); | |
92 | |
93 void set search(String value); | |
94 | |
95 String get shape(); | |
96 | |
97 void set shape(String value); | |
98 | |
99 String get target(); | |
100 | |
101 void set target(String value); | |
102 | |
103 String get text(); | |
104 | |
105 String get type(); | |
106 | |
107 void set type(String value); | |
108 | |
109 String getParameter(String name); | |
110 } | |
111 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
112 // for details. All rights reserved. Use of this source code is governed by a | |
113 // BSD-style license that can be found in the LICENSE file. | |
114 | |
115 // WARNING: Do not edit - generated code. | |
116 | |
117 interface Animation { | |
118 | |
119 static final int DIRECTION_ALTERNATE = 1; | |
120 | |
121 static final int DIRECTION_NORMAL = 0; | |
122 | |
123 static final int FILL_BACKWARDS = 1; | |
124 | |
125 static final int FILL_BOTH = 3; | |
126 | |
127 static final int FILL_FORWARDS = 2; | |
128 | |
129 static final int FILL_NONE = 0; | |
130 | |
131 num get delay(); | |
132 | |
133 int get direction(); | |
134 | |
135 num get duration(); | |
136 | |
137 num get elapsedTime(); | |
138 | |
139 void set elapsedTime(num value); | |
140 | |
141 bool get ended(); | |
142 | |
143 int get fillMode(); | |
144 | |
145 int get iterationCount(); | |
146 | |
147 String get name(); | |
148 | |
149 bool get paused(); | |
150 | |
151 void pause(); | |
152 | |
153 void play(); | |
154 } | |
155 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
156 // for details. All rights reserved. Use of this source code is governed by a | |
157 // BSD-style license that can be found in the LICENSE file. | |
158 | |
159 // WARNING: Do not edit - generated code. | |
160 | |
161 interface AnimationEvent extends Event { | |
162 | |
163 String get animationName(); | |
164 | |
165 num get elapsedTime(); | |
166 | |
167 void initWebKitAnimationEvent(String typeArg, bool canBubbleArg, bool cancelab
leArg, String animationNameArg, num elapsedTimeArg); | |
168 } | |
169 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
170 // for details. All rights reserved. Use of this source code is governed by a | |
171 // BSD-style license that can be found in the LICENSE file. | |
172 | |
173 // WARNING: Do not edit - generated code. | |
174 | |
175 interface AnimationList { | |
176 | |
177 int get length(); | |
178 | |
179 Animation item(int index); | |
180 } | |
181 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
182 // for details. All rights reserved. Use of this source code is governed by a | |
183 // BSD-style license that can be found in the LICENSE file. | |
184 | |
185 // WARNING: Do not edit - generated code. | |
186 | |
187 interface AreaElement extends Element { | |
188 | |
189 String get accessKey(); | |
190 | |
191 void set accessKey(String value); | |
192 | |
193 String get alt(); | |
194 | |
195 void set alt(String value); | |
196 | |
197 String get coords(); | |
198 | |
199 void set coords(String value); | |
200 | |
201 String get hash(); | |
202 | |
203 String get host(); | |
204 | |
205 String get hostname(); | |
206 | |
207 String get href(); | |
208 | |
209 void set href(String value); | |
210 | |
211 bool get noHref(); | |
212 | |
213 void set noHref(bool value); | |
214 | |
215 String get pathname(); | |
216 | |
217 String get ping(); | |
218 | |
219 void set ping(String value); | |
220 | |
221 String get port(); | |
222 | |
223 String get protocol(); | |
224 | |
225 String get search(); | |
226 | |
227 String get shape(); | |
228 | |
229 void set shape(String value); | |
230 | |
231 String get target(); | |
232 | |
233 void set target(String value); | |
234 } | |
235 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
236 // for details. All rights reserved. Use of this source code is governed by a | |
237 // BSD-style license that can be found in the LICENSE file. | |
238 | |
239 // WARNING: Do not edit - generated code. | |
240 | |
241 interface ArrayBuffer { | |
242 | |
243 int get byteLength(); | |
244 } | |
245 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
246 // for details. All rights reserved. Use of this source code is governed by a | |
247 // BSD-style license that can be found in the LICENSE file. | |
248 | |
249 // WARNING: Do not edit - generated code. | |
250 | |
251 interface ArrayBufferView { | |
252 | |
253 ArrayBuffer get buffer(); | |
254 | |
255 int get byteLength(); | |
256 | |
257 int get byteOffset(); | |
258 } | |
259 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
260 // for details. All rights reserved. Use of this source code is governed by a | |
261 // BSD-style license that can be found in the LICENSE file. | |
262 | |
263 // WARNING: Do not edit - generated code. | |
264 | |
265 interface AudioElement extends MediaElement { | |
266 } | |
267 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
268 // for details. All rights reserved. Use of this source code is governed by a | |
269 // BSD-style license that can be found in the LICENSE file. | |
270 | |
271 // WARNING: Do not edit - generated code. | |
272 | |
273 interface BRElement extends Element { | |
274 | |
275 String get clear(); | |
276 | |
277 void set clear(String value); | |
278 } | |
279 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
280 // for details. All rights reserved. Use of this source code is governed by a | |
281 // BSD-style license that can be found in the LICENSE file. | |
282 | |
283 // WARNING: Do not edit - generated code. | |
284 | |
285 interface BarInfo { | |
286 | |
287 bool get visible(); | |
288 } | |
289 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
290 // for details. All rights reserved. Use of this source code is governed by a | |
291 // BSD-style license that can be found in the LICENSE file. | |
292 | |
293 // WARNING: Do not edit - generated code. | |
294 | |
295 interface BaseElement extends Element { | |
296 | |
297 String get href(); | |
298 | |
299 void set href(String value); | |
300 | |
301 String get target(); | |
302 | |
303 void set target(String value); | |
304 } | |
305 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
306 // for details. All rights reserved. Use of this source code is governed by a | |
307 // BSD-style license that can be found in the LICENSE file. | |
308 | |
309 // WARNING: Do not edit - generated code. | |
310 | |
311 interface BeforeLoadEvent extends Event { | |
312 | |
313 String get url(); | |
314 | |
315 void initBeforeLoadEvent(String type, bool canBubble, bool cancelable, String
url); | |
316 } | |
317 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
318 // for details. All rights reserved. Use of this source code is governed by a | |
319 // BSD-style license that can be found in the LICENSE file. | |
320 | |
321 // WARNING: Do not edit - generated code. | |
322 | |
323 interface Blob { | |
324 | |
325 int get size(); | |
326 | |
327 String get type(); | |
328 } | |
329 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
330 // for details. All rights reserved. Use of this source code is governed by a | |
331 // BSD-style license that can be found in the LICENSE file. | |
332 | |
333 // WARNING: Do not edit - generated code. | |
334 | |
335 interface BlobBuilder { | |
336 | |
337 void append(var blob_OR_value, [String endings]); | |
338 | |
339 Blob getBlob([String contentType]); | |
340 } | |
341 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
342 // for details. All rights reserved. Use of this source code is governed by a | |
343 // BSD-style license that can be found in the LICENSE file. | |
344 | |
345 // WARNING: Do not edit - generated code. | |
346 | |
347 interface ButtonElement extends Element { | |
348 | |
349 String get accessKey(); | |
350 | |
351 void set accessKey(String value); | |
352 | |
353 bool get autofocus(); | |
354 | |
355 void set autofocus(bool value); | |
356 | |
357 bool get disabled(); | |
358 | |
359 void set disabled(bool value); | |
360 | |
361 FormElement get form(); | |
362 | |
363 String get formAction(); | |
364 | |
365 void set formAction(String value); | |
366 | |
367 String get formEnctype(); | |
368 | |
369 void set formEnctype(String value); | |
370 | |
371 String get formMethod(); | |
372 | |
373 void set formMethod(String value); | |
374 | |
375 bool get formNoValidate(); | |
376 | |
377 void set formNoValidate(bool value); | |
378 | |
379 String get formTarget(); | |
380 | |
381 void set formTarget(String value); | |
382 | |
383 ElementList get labels(); | |
384 | |
385 String get name(); | |
386 | |
387 void set name(String value); | |
388 | |
389 String get type(); | |
390 | |
391 String get validationMessage(); | |
392 | |
393 ValidityState get validity(); | |
394 | |
395 String get value(); | |
396 | |
397 void set value(String value); | |
398 | |
399 bool get willValidate(); | |
400 | |
401 bool checkValidity(); | |
402 | |
403 void click(); | |
404 | |
405 void setCustomValidity(String error); | |
406 } | |
407 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
408 // for details. All rights reserved. Use of this source code is governed by a | |
409 // BSD-style license that can be found in the LICENSE file. | |
410 | |
411 // WARNING: Do not edit - generated code. | |
412 | |
413 interface CDATASection extends Text { | |
414 } | |
415 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
416 // for details. All rights reserved. Use of this source code is governed by a | |
417 // BSD-style license that can be found in the LICENSE file. | |
418 | |
419 // WARNING: Do not edit - generated code. | |
420 | |
421 interface CSSCharsetRule extends CSSRule { | |
422 | |
423 String get encoding(); | |
424 | |
425 void set encoding(String value); | |
426 } | |
427 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
428 // for details. All rights reserved. Use of this source code is governed by a | |
429 // BSD-style license that can be found in the LICENSE file. | |
430 | |
431 // WARNING: Do not edit - generated code. | |
432 | |
433 interface CSSFontFaceRule extends CSSRule { | |
434 | |
435 CSSStyleDeclaration get style(); | |
436 } | |
437 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
438 // for details. All rights reserved. Use of this source code is governed by a | |
439 // BSD-style license that can be found in the LICENSE file. | |
440 | |
441 // WARNING: Do not edit - generated code. | |
442 | |
443 interface CSSImportRule extends CSSRule { | |
444 | |
445 String get href(); | |
446 | |
447 MediaList get media(); | |
448 | |
449 CSSStyleSheet get styleSheet(); | |
450 } | |
451 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
452 // for details. All rights reserved. Use of this source code is governed by a | |
453 // BSD-style license that can be found in the LICENSE file. | |
454 | |
455 // WARNING: Do not edit - generated code. | |
456 | |
457 interface CSSKeyframeRule extends CSSRule { | |
458 | |
459 String get keyText(); | |
460 | |
461 void set keyText(String value); | |
462 | |
463 CSSStyleDeclaration get style(); | |
464 } | |
465 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
466 // for details. All rights reserved. Use of this source code is governed by a | |
467 // BSD-style license that can be found in the LICENSE file. | |
468 | |
469 // WARNING: Do not edit - generated code. | |
470 | |
471 interface CSSKeyframesRule extends CSSRule { | |
472 | |
473 CSSRuleList get cssRules(); | |
474 | |
475 String get name(); | |
476 | |
477 void set name(String value); | |
478 | |
479 void deleteRule(String key); | |
480 | |
481 CSSKeyframeRule findRule(String key); | |
482 | |
483 void insertRule(String rule); | |
484 } | |
485 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
486 // for details. All rights reserved. Use of this source code is governed by a | |
487 // BSD-style license that can be found in the LICENSE file. | |
488 | |
489 // WARNING: Do not edit - generated code. | |
490 | |
491 interface CSSMatrix factory _CSSMatrixFactoryProvider { | |
492 | |
493 CSSMatrix([String spec]); | |
494 | |
495 num get a(); | |
496 | |
497 void set a(num value); | |
498 | |
499 num get b(); | |
500 | |
501 void set b(num value); | |
502 | |
503 num get c(); | |
504 | |
505 void set c(num value); | |
506 | |
507 num get d(); | |
508 | |
509 void set d(num value); | |
510 | |
511 num get e(); | |
512 | |
513 void set e(num value); | |
514 | |
515 num get f(); | |
516 | |
517 void set f(num value); | |
518 | |
519 num get m11(); | |
520 | |
521 void set m11(num value); | |
522 | |
523 num get m12(); | |
524 | |
525 void set m12(num value); | |
526 | |
527 num get m13(); | |
528 | |
529 void set m13(num value); | |
530 | |
531 num get m14(); | |
532 | |
533 void set m14(num value); | |
534 | |
535 num get m21(); | |
536 | |
537 void set m21(num value); | |
538 | |
539 num get m22(); | |
540 | |
541 void set m22(num value); | |
542 | |
543 num get m23(); | |
544 | |
545 void set m23(num value); | |
546 | |
547 num get m24(); | |
548 | |
549 void set m24(num value); | |
550 | |
551 num get m31(); | |
552 | |
553 void set m31(num value); | |
554 | |
555 num get m32(); | |
556 | |
557 void set m32(num value); | |
558 | |
559 num get m33(); | |
560 | |
561 void set m33(num value); | |
562 | |
563 num get m34(); | |
564 | |
565 void set m34(num value); | |
566 | |
567 num get m41(); | |
568 | |
569 void set m41(num value); | |
570 | |
571 num get m42(); | |
572 | |
573 void set m42(num value); | |
574 | |
575 num get m43(); | |
576 | |
577 void set m43(num value); | |
578 | |
579 num get m44(); | |
580 | |
581 void set m44(num value); | |
582 | |
583 CSSMatrix inverse(); | |
584 | |
585 CSSMatrix multiply(CSSMatrix secondMatrix); | |
586 | |
587 CSSMatrix rotate(num rotX, num rotY, num rotZ); | |
588 | |
589 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle); | |
590 | |
591 CSSMatrix scale(num scaleX, num scaleY, num scaleZ); | |
592 | |
593 void setMatrixValue(String string); | |
594 | |
595 CSSMatrix skewX(num angle); | |
596 | |
597 CSSMatrix skewY(num angle); | |
598 | |
599 String toString(); | |
600 | |
601 CSSMatrix translate(num x, num y, num z); | |
602 } | |
603 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
604 // for details. All rights reserved. Use of this source code is governed by a | |
605 // BSD-style license that can be found in the LICENSE file. | |
606 | |
607 // WARNING: Do not edit - generated code. | |
608 | |
609 interface CSSMediaRule extends CSSRule { | |
610 | |
611 CSSRuleList get cssRules(); | |
612 | |
613 MediaList get media(); | |
614 | |
615 void deleteRule(int index); | |
616 | |
617 int insertRule(String rule, int index); | |
618 } | |
619 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
620 // for details. All rights reserved. Use of this source code is governed by a | |
621 // BSD-style license that can be found in the LICENSE file. | |
622 | |
623 // WARNING: Do not edit - generated code. | |
624 | |
625 interface CSSPageRule extends CSSRule { | |
626 | |
627 String get selectorText(); | |
628 | |
629 void set selectorText(String value); | |
630 | |
631 CSSStyleDeclaration get style(); | |
632 } | |
633 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
634 // for details. All rights reserved. Use of this source code is governed by a | |
635 // BSD-style license that can be found in the LICENSE file. | |
636 | |
637 // WARNING: Do not edit - generated code. | |
638 | |
639 interface CSSPrimitiveValue extends CSSValue { | |
640 | |
641 static final int CSS_ATTR = 22; | |
642 | |
643 static final int CSS_CM = 6; | |
644 | |
645 static final int CSS_COUNTER = 23; | |
646 | |
647 static final int CSS_DEG = 11; | |
648 | |
649 static final int CSS_DIMENSION = 18; | |
650 | |
651 static final int CSS_EMS = 3; | |
652 | |
653 static final int CSS_EXS = 4; | |
654 | |
655 static final int CSS_GRAD = 13; | |
656 | |
657 static final int CSS_HZ = 16; | |
658 | |
659 static final int CSS_IDENT = 21; | |
660 | |
661 static final int CSS_IN = 8; | |
662 | |
663 static final int CSS_KHZ = 17; | |
664 | |
665 static final int CSS_MM = 7; | |
666 | |
667 static final int CSS_MS = 14; | |
668 | |
669 static final int CSS_NUMBER = 1; | |
670 | |
671 static final int CSS_PC = 10; | |
672 | |
673 static final int CSS_PERCENTAGE = 2; | |
674 | |
675 static final int CSS_PT = 9; | |
676 | |
677 static final int CSS_PX = 5; | |
678 | |
679 static final int CSS_RAD = 12; | |
680 | |
681 static final int CSS_RECT = 24; | |
682 | |
683 static final int CSS_RGBCOLOR = 25; | |
684 | |
685 static final int CSS_S = 15; | |
686 | |
687 static final int CSS_STRING = 19; | |
688 | |
689 static final int CSS_UNKNOWN = 0; | |
690 | |
691 static final int CSS_URI = 20; | |
692 | |
693 int get primitiveType(); | |
694 | |
695 Counter getCounterValue(); | |
696 | |
697 num getFloatValue(int unitType); | |
698 | |
699 RGBColor getRGBColorValue(); | |
700 | |
701 Rect getRectValue(); | |
702 | |
703 String getStringValue(); | |
704 | |
705 void setFloatValue(int unitType, num floatValue); | |
706 | |
707 void setStringValue(int stringType, String stringValue); | |
708 } | |
709 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
710 // for details. All rights reserved. Use of this source code is governed by a | |
711 // BSD-style license that can be found in the LICENSE file. | |
712 | |
713 // WARNING: Do not edit - generated code. | |
714 | |
715 interface CSSRule { | |
716 | |
717 static final int CHARSET_RULE = 2; | |
718 | |
719 static final int FONT_FACE_RULE = 5; | |
720 | |
721 static final int IMPORT_RULE = 3; | |
722 | |
723 static final int MEDIA_RULE = 4; | |
724 | |
725 static final int PAGE_RULE = 6; | |
726 | |
727 static final int STYLE_RULE = 1; | |
728 | |
729 static final int UNKNOWN_RULE = 0; | |
730 | |
731 static final int WEBKIT_KEYFRAMES_RULE = 8; | |
732 | |
733 static final int WEBKIT_KEYFRAME_RULE = 9; | |
734 | |
735 String get cssText(); | |
736 | |
737 void set cssText(String value); | |
738 | |
739 CSSRule get parentRule(); | |
740 | |
741 CSSStyleSheet get parentStyleSheet(); | |
742 | |
743 int get type(); | |
744 } | |
745 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
746 // for details. All rights reserved. Use of this source code is governed by a | |
747 // BSD-style license that can be found in the LICENSE file. | |
748 | |
749 // WARNING: Do not edit - generated code. | |
750 | |
751 interface CSSRuleList { | |
752 | |
753 int get length(); | |
754 | |
755 CSSRule item(int index); | |
756 } | |
757 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
758 // for details. All rights reserved. Use of this source code is governed by a | |
759 // BSD-style license that can be found in the LICENSE file. | |
760 | |
761 // WARNING: Do not edit - generated code. | |
762 | |
763 interface CSSStyleRule extends CSSRule { | |
764 | |
765 String get selectorText(); | |
766 | |
767 void set selectorText(String value); | |
768 | |
769 CSSStyleDeclaration get style(); | |
770 } | |
771 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
772 // 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. | |
774 | |
775 // WARNING: Do not edit - generated code. | |
776 | |
777 interface CSSStyleSheet extends StyleSheet { | |
778 | |
779 CSSRuleList get cssRules(); | |
780 | |
781 CSSRule get ownerRule(); | |
782 | |
783 CSSRuleList get rules(); | |
784 | |
785 int addRule(String selector, String style, [int index]); | |
786 | |
787 void deleteRule(int index); | |
788 | |
789 int insertRule(String rule, int index); | |
790 | |
791 void removeRule(int index); | |
792 } | |
793 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
794 // for details. All rights reserved. Use of this source code is governed by a | |
795 // BSD-style license that can be found in the LICENSE file. | |
796 | |
797 // WARNING: Do not edit - generated code. | |
798 | |
799 interface CSSTransformValue extends CSSValueList { | |
800 | |
801 static final int CSS_MATRIX = 11; | |
802 | |
803 static final int CSS_MATRIX3D = 21; | |
804 | |
805 static final int CSS_PERSPECTIVE = 20; | |
806 | |
807 static final int CSS_ROTATE = 4; | |
808 | |
809 static final int CSS_ROTATE3D = 17; | |
810 | |
811 static final int CSS_ROTATEX = 14; | |
812 | |
813 static final int CSS_ROTATEY = 15; | |
814 | |
815 static final int CSS_ROTATEZ = 16; | |
816 | |
817 static final int CSS_SCALE = 5; | |
818 | |
819 static final int CSS_SCALE3D = 19; | |
820 | |
821 static final int CSS_SCALEX = 6; | |
822 | |
823 static final int CSS_SCALEY = 7; | |
824 | |
825 static final int CSS_SCALEZ = 18; | |
826 | |
827 static final int CSS_SKEW = 8; | |
828 | |
829 static final int CSS_SKEWX = 9; | |
830 | |
831 static final int CSS_SKEWY = 10; | |
832 | |
833 static final int CSS_TRANSLATE = 1; | |
834 | |
835 static final int CSS_TRANSLATE3D = 13; | |
836 | |
837 static final int CSS_TRANSLATEX = 2; | |
838 | |
839 static final int CSS_TRANSLATEY = 3; | |
840 | |
841 static final int CSS_TRANSLATEZ = 12; | |
842 | |
843 int get operationType(); | |
844 } | |
845 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
846 // for details. All rights reserved. Use of this source code is governed by a | |
847 // BSD-style license that can be found in the LICENSE file. | |
848 | |
849 // WARNING: Do not edit - generated code. | |
850 | |
851 interface CSSUnknownRule extends CSSRule { | |
852 } | |
853 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
854 // for details. All rights reserved. Use of this source code is governed by a | |
855 // BSD-style license that can be found in the LICENSE file. | |
856 | |
857 // WARNING: Do not edit - generated code. | |
858 | |
859 interface CSSValue { | |
860 | |
861 static final int CSS_CUSTOM = 3; | |
862 | |
863 static final int CSS_INHERIT = 0; | |
864 | |
865 static final int CSS_PRIMITIVE_VALUE = 1; | |
866 | |
867 static final int CSS_VALUE_LIST = 2; | |
868 | |
869 String get cssText(); | |
870 | |
871 void set cssText(String value); | |
872 | |
873 int get cssValueType(); | |
874 } | |
875 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
876 // for details. All rights reserved. Use of this source code is governed by a | |
877 // BSD-style license that can be found in the LICENSE file. | |
878 | |
879 // WARNING: Do not edit - generated code. | |
880 | |
881 interface CSSValueList extends CSSValue { | |
882 | |
883 int get length(); | |
884 | |
885 CSSValue item(int index); | |
886 } | |
887 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
888 // for details. All rights reserved. Use of this source code is governed by a | |
889 // BSD-style license that can be found in the LICENSE file. | |
890 | |
891 // WARNING: Do not edit - generated code. | |
892 | |
893 interface CanvasElement extends Element { | |
894 | |
895 int get height(); | |
896 | |
897 void set height(int value); | |
898 | |
899 int get width(); | |
900 | |
901 void set width(int value); | |
902 | |
903 CanvasRenderingContext getContext([String contextId]); | |
904 | |
905 String toDataURL(String type); | |
906 } | |
907 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
908 // for details. All rights reserved. Use of this source code is governed by a | |
909 // BSD-style license that can be found in the LICENSE file. | |
910 | |
911 // WARNING: Do not edit - generated code. | |
912 | |
913 interface CanvasGradient { | |
914 | |
915 void addColorStop(num offset, String color); | |
916 } | |
917 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
918 // for details. All rights reserved. Use of this source code is governed by a | |
919 // BSD-style license that can be found in the LICENSE file. | |
920 | |
921 // WARNING: Do not edit - generated code. | |
922 | |
923 interface CanvasPattern { | |
924 } | |
925 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
926 // for details. All rights reserved. Use of this source code is governed by a | |
927 // BSD-style license that can be found in the LICENSE file. | |
928 | |
929 // WARNING: Do not edit - generated code. | |
930 | |
931 interface CanvasPixelArray extends List<int> { | |
932 | |
933 int get length(); | |
934 | |
935 int item(int index); | |
936 } | |
937 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
938 // for details. All rights reserved. Use of this source code is governed by a | |
939 // BSD-style license that can be found in the LICENSE file. | |
940 | |
941 // WARNING: Do not edit - generated code. | |
942 | |
943 interface CanvasRenderingContext { | |
944 | |
945 CanvasElement get canvas(); | |
946 } | |
947 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
948 // for details. All rights reserved. Use of this source code is governed by a | |
949 // BSD-style license that can be found in the LICENSE file. | |
950 | |
951 // WARNING: Do not edit - generated code. | |
952 | |
953 interface CanvasRenderingContext2D extends CanvasRenderingContext { | |
954 | |
955 String get font(); | |
956 | |
957 void set font(String value); | |
958 | |
959 num get globalAlpha(); | |
960 | |
961 void set globalAlpha(num value); | |
962 | |
963 String get globalCompositeOperation(); | |
964 | |
965 void set globalCompositeOperation(String value); | |
966 | |
967 String get lineCap(); | |
968 | |
969 void set lineCap(String value); | |
970 | |
971 String get lineJoin(); | |
972 | |
973 void set lineJoin(String value); | |
974 | |
975 num get lineWidth(); | |
976 | |
977 void set lineWidth(num value); | |
978 | |
979 num get miterLimit(); | |
980 | |
981 void set miterLimit(num value); | |
982 | |
983 num get shadowBlur(); | |
984 | |
985 void set shadowBlur(num value); | |
986 | |
987 String get shadowColor(); | |
988 | |
989 void set shadowColor(String value); | |
990 | |
991 num get shadowOffsetX(); | |
992 | |
993 void set shadowOffsetX(num value); | |
994 | |
995 num get shadowOffsetY(); | |
996 | |
997 void set shadowOffsetY(num value); | |
998 | |
999 String get textAlign(); | |
1000 | |
1001 void set textAlign(String value); | |
1002 | |
1003 String get textBaseline(); | |
1004 | |
1005 void set textBaseline(String value); | |
1006 | |
1007 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise); | |
1008 | |
1009 void arcTo(num x1, num y1, num x2, num y2, num radius); | |
1010 | |
1011 void beginPath(); | |
1012 | |
1013 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y); | |
1014 | |
1015 void clearRect(num x, num y, num width, num height); | |
1016 | |
1017 void clearShadow(); | |
1018 | |
1019 void clip(); | |
1020 | |
1021 void closePath(); | |
1022 | |
1023 ImageData createImageData(var imagedata_OR_sw, [num sh]); | |
1024 | |
1025 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1); | |
1026 | |
1027 CanvasPattern createPattern(var canvas_OR_image, String repetitionType); | |
1028 | |
1029 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1); | |
1030 | |
1031 void drawImage(var canvas_OR_image, num sx_OR_x, num sy_OR_y, [num sw_OR_width
, num height_OR_sh, num dx, num dy, num dw, num dh]); | |
1032 | |
1033 void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, nu
m dx, num dy, num dw, num dh, String compositeOperation]); | |
1034 | |
1035 void fill(); | |
1036 | |
1037 void fillRect(num x, num y, num width, num height); | |
1038 | |
1039 void fillText(String text, num x, num y, [num maxWidth]); | |
1040 | |
1041 ImageData getImageData(num sx, num sy, num sw, num sh); | |
1042 | |
1043 bool isPointInPath(num x, num y); | |
1044 | |
1045 void lineTo(num x, num y); | |
1046 | |
1047 TextMetrics measureText(String text); | |
1048 | |
1049 void moveTo(num x, num y); | |
1050 | |
1051 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]); | |
1052 | |
1053 void quadraticCurveTo(num cpx, num cpy, num x, num y); | |
1054 | |
1055 void rect(num x, num y, num width, num height); | |
1056 | |
1057 void restore(); | |
1058 | |
1059 void rotate(num angle); | |
1060 | |
1061 void save(); | |
1062 | |
1063 void scale(num sx, num sy); | |
1064 | |
1065 void setAlpha(num alpha); | |
1066 | |
1067 void setCompositeOperation(String compositeOperation); | |
1068 | |
1069 void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, num
b_OR_y, num a_OR_k, num a]); | |
1070 | |
1071 void setFillStyle(var color_OR_gradient_OR_pattern); | |
1072 | |
1073 void setLineCap(String cap); | |
1074 | |
1075 void setLineJoin(String join); | |
1076 | |
1077 void setLineWidth(num width); | |
1078 | |
1079 void setMiterLimit(num limit); | |
1080 | |
1081 void setShadow(num width, num height, num blur, [var c_OR_color_OR_grayLevel_O
R_r, num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]); | |
1082 | |
1083 void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, nu
m b_OR_y, num a_OR_k, num a]); | |
1084 | |
1085 void setStrokeStyle(var color_OR_gradient_OR_pattern); | |
1086 | |
1087 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy); | |
1088 | |
1089 void stroke(); | |
1090 | |
1091 void strokeRect(num x, num y, num width, num height, [num lineWidth]); | |
1092 | |
1093 void strokeText(String text, num x, num y, [num maxWidth]); | |
1094 | |
1095 void transform(num m11, num m12, num m21, num m22, num dx, num dy); | |
1096 | |
1097 void translate(num tx, num ty); | |
1098 } | |
1099 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1100 // for details. All rights reserved. Use of this source code is governed by a | |
1101 // BSD-style license that can be found in the LICENSE file. | |
1102 | |
1103 // WARNING: Do not edit - generated code. | |
1104 | |
1105 interface CharacterData extends Node { | |
1106 | |
1107 String get data(); | |
1108 | |
1109 void set data(String value); | |
1110 | |
1111 int get length(); | |
1112 | |
1113 void appendData(String data); | |
1114 | |
1115 void deleteData(int offset, int length); | |
1116 | |
1117 void insertData(int offset, String data); | |
1118 | |
1119 void replaceData(int offset, int length, String data); | |
1120 | |
1121 String substringData(int offset, int length); | |
1122 } | |
1123 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1124 // for details. All rights reserved. Use of this source code is governed by a | |
1125 // BSD-style license that can be found in the LICENSE file. | |
1126 | |
1127 // WARNING: Do not edit - generated code. | |
1128 | |
1129 interface ClientRect { | |
1130 | |
1131 num get bottom(); | |
1132 | |
1133 num get height(); | |
1134 | |
1135 num get left(); | |
1136 | |
1137 num get right(); | |
1138 | |
1139 num get top(); | |
1140 | |
1141 num get width(); | |
1142 } | |
1143 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1144 // for details. All rights reserved. Use of this source code is governed by a | |
1145 // BSD-style license that can be found in the LICENSE file. | |
1146 | |
1147 // WARNING: Do not edit - generated code. | |
1148 | |
1149 interface ClientRectList { | |
1150 | |
1151 int get length(); | |
1152 | |
1153 ClientRect item(int index); | |
1154 } | |
1155 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1156 // for details. All rights reserved. Use of this source code is governed by a | |
1157 // BSD-style license that can be found in the LICENSE file. | |
1158 | |
1159 // WARNING: Do not edit - generated code. | |
1160 | |
1161 interface Clipboard { | |
1162 | |
1163 String get dropEffect(); | |
1164 | |
1165 void set dropEffect(String value); | |
1166 | |
1167 String get effectAllowed(); | |
1168 | |
1169 void set effectAllowed(String value); | |
1170 | |
1171 FileList get files(); | |
1172 | |
1173 DataTransferItems get items(); | |
1174 | |
1175 void clearData([String type]); | |
1176 | |
1177 void getData(String type); | |
1178 | |
1179 bool setData(String type, String data); | |
1180 | |
1181 void setDragImage(ImageElement image, int x, int y); | |
1182 } | |
1183 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1184 // for details. All rights reserved. Use of this source code is governed by a | |
1185 // BSD-style license that can be found in the LICENSE file. | |
1186 | |
1187 // WARNING: Do not edit - generated code. | |
1188 | |
1189 interface CloseEvent extends Event { | |
1190 | |
1191 int get code(); | |
1192 | |
1193 String get reason(); | |
1194 | |
1195 bool get wasClean(); | |
1196 | |
1197 void initCloseEvent(String typeArg, bool canBubbleArg, bool cancelableArg, boo
l wasCleanArg, int codeArg, String reasonArg); | |
1198 } | |
1199 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1200 // for details. All rights reserved. Use of this source code is governed by a | |
1201 // BSD-style license that can be found in the LICENSE file. | |
1202 | |
1203 // WARNING: Do not edit - generated code. | |
1204 | |
1205 interface Comment extends CharacterData { | |
1206 } | |
1207 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1208 // for details. All rights reserved. Use of this source code is governed by a | |
1209 // BSD-style license that can be found in the LICENSE file. | |
1210 | |
1211 // WARNING: Do not edit - generated code. | |
1212 | |
1213 interface CompositionEvent extends UIEvent { | |
1214 | |
1215 String get data(); | |
1216 | |
1217 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Window viewArg, String dataArg); | |
1218 } | |
1219 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1220 // for details. All rights reserved. Use of this source code is governed by a | |
1221 // BSD-style license that can be found in the LICENSE file. | |
1222 | |
1223 // WARNING: Do not edit - generated code. | |
1224 | |
1225 interface Console { | |
1226 | |
1227 void count(); | |
1228 | |
1229 void debug(Object arg); | |
1230 | |
1231 void dir(); | |
1232 | |
1233 void dirxml(); | |
1234 | |
1235 void error(Object arg); | |
1236 | |
1237 void group(); | |
1238 | |
1239 void groupCollapsed(); | |
1240 | |
1241 void groupEnd(); | |
1242 | |
1243 void info(Object arg); | |
1244 | |
1245 void log(Object arg); | |
1246 | |
1247 void markTimeline(); | |
1248 | |
1249 void time(String title); | |
1250 | |
1251 void timeEnd(String title); | |
1252 | |
1253 void timeStamp(); | |
1254 | |
1255 void trace(Object arg); | |
1256 | |
1257 void warn(Object arg); | |
1258 } | |
1259 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1260 // for details. All rights reserved. Use of this source code is governed by a | |
1261 // BSD-style license that can be found in the LICENSE file. | |
1262 | |
1263 // WARNING: Do not edit - generated code. | |
1264 | |
1265 interface Coordinates { | |
1266 | |
1267 num get accuracy(); | |
1268 | |
1269 num get altitude(); | |
1270 | |
1271 num get altitudeAccuracy(); | |
1272 | |
1273 num get heading(); | |
1274 | |
1275 num get latitude(); | |
1276 | |
1277 num get longitude(); | |
1278 | |
1279 num get speed(); | |
1280 } | |
1281 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1282 // for details. All rights reserved. Use of this source code is governed by a | |
1283 // BSD-style license that can be found in the LICENSE file. | |
1284 | |
1285 // WARNING: Do not edit - generated code. | |
1286 | |
1287 interface Counter { | |
1288 | |
1289 String get identifier(); | |
1290 | |
1291 String get listStyle(); | |
1292 | |
1293 String get separator(); | |
1294 } | |
1295 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1296 // for details. All rights reserved. Use of this source code is governed by a | |
1297 // BSD-style license that can be found in the LICENSE file. | |
1298 | |
1299 // WARNING: Do not edit - generated code. | |
1300 | |
1301 interface Crypto { | |
1302 | |
1303 void getRandomValues(ArrayBufferView array); | |
1304 } | |
1305 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1306 // for details. All rights reserved. Use of this source code is governed by a | |
1307 // BSD-style license that can be found in the LICENSE file. | |
1308 | |
1309 // WARNING: Do not edit - generated code. | |
1310 | |
1311 interface CustomEvent extends Event { | |
1312 | |
1313 String get detail(); | |
1314 | |
1315 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob
ject detailArg); | |
1316 } | |
1317 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1318 // for details. All rights reserved. Use of this source code is governed by a | |
1319 // BSD-style license that can be found in the LICENSE file. | |
1320 | |
1321 // WARNING: Do not edit - generated code. | |
1322 | |
1323 interface DListElement extends Element { | |
1324 | |
1325 bool get compact(); | |
1326 | |
1327 void set compact(bool value); | |
1328 } | |
1329 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1330 // for details. All rights reserved. Use of this source code is governed by a | |
1331 // BSD-style license that can be found in the LICENSE file. | |
1332 | |
1333 // WARNING: Do not edit - generated code. | |
1334 | |
1335 interface DOMException { | |
1336 | |
1337 static final int ABORT_ERR = 20; | |
1338 | |
1339 static final int DATA_CLONE_ERR = 25; | |
1340 | |
1341 static final int DOMSTRING_SIZE_ERR = 2; | |
1342 | |
1343 static final int HIERARCHY_REQUEST_ERR = 3; | |
1344 | |
1345 static final int INDEX_SIZE_ERR = 1; | |
1346 | |
1347 static final int INUSE_ATTRIBUTE_ERR = 10; | |
1348 | |
1349 static final int INVALID_ACCESS_ERR = 15; | |
1350 | |
1351 static final int INVALID_CHARACTER_ERR = 5; | |
1352 | |
1353 static final int INVALID_MODIFICATION_ERR = 13; | |
1354 | |
1355 static final int INVALID_NODE_TYPE_ERR = 24; | |
1356 | |
1357 static final int INVALID_STATE_ERR = 11; | |
1358 | |
1359 static final int NAMESPACE_ERR = 14; | |
1360 | |
1361 static final int NETWORK_ERR = 19; | |
1362 | |
1363 static final int NOT_FOUND_ERR = 8; | |
1364 | |
1365 static final int NOT_SUPPORTED_ERR = 9; | |
1366 | |
1367 static final int NO_DATA_ALLOWED_ERR = 6; | |
1368 | |
1369 static final int NO_MODIFICATION_ALLOWED_ERR = 7; | |
1370 | |
1371 static final int QUOTA_EXCEEDED_ERR = 22; | |
1372 | |
1373 static final int SECURITY_ERR = 18; | |
1374 | |
1375 static final int SYNTAX_ERR = 12; | |
1376 | |
1377 static final int TIMEOUT_ERR = 23; | |
1378 | |
1379 static final int TYPE_MISMATCH_ERR = 17; | |
1380 | |
1381 static final int URL_MISMATCH_ERR = 21; | |
1382 | |
1383 static final int VALIDATION_ERR = 16; | |
1384 | |
1385 static final int WRONG_DOCUMENT_ERR = 4; | |
1386 | |
1387 int get code(); | |
1388 | |
1389 String get message(); | |
1390 | |
1391 String get name(); | |
1392 } | |
1393 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1394 // for details. All rights reserved. Use of this source code is governed by a | |
1395 // BSD-style license that can be found in the LICENSE file. | |
1396 | |
1397 // WARNING: Do not edit - generated code. | |
1398 | |
1399 interface DOMFileSystem { | |
1400 | |
1401 String get name(); | |
1402 | |
1403 DirectoryEntry get root(); | |
1404 } | |
1405 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1406 // for details. All rights reserved. Use of this source code is governed by a | |
1407 // BSD-style license that can be found in the LICENSE file. | |
1408 | |
1409 // WARNING: Do not edit - generated code. | |
1410 | |
1411 interface DOMFileSystemSync { | |
1412 | |
1413 String get name(); | |
1414 | |
1415 DirectoryEntrySync get root(); | |
1416 } | |
1417 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1418 // for details. All rights reserved. Use of this source code is governed by a | |
1419 // BSD-style license that can be found in the LICENSE file. | |
1420 | |
1421 // WARNING: Do not edit - generated code. | |
1422 | |
1423 interface DOMFormData { | |
1424 | |
1425 void append(String name, String value); | |
1426 } | |
1427 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1428 // for details. All rights reserved. Use of this source code is governed by a | |
1429 // BSD-style license that can be found in the LICENSE file. | |
1430 | |
1431 // WARNING: Do not edit - generated code. | |
1432 | |
1433 interface DOMMimeType { | |
1434 | |
1435 String get description(); | |
1436 | |
1437 DOMPlugin get enabledPlugin(); | |
1438 | |
1439 String get suffixes(); | |
1440 | |
1441 String get type(); | |
1442 } | |
1443 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1444 // for details. All rights reserved. Use of this source code is governed by a | |
1445 // BSD-style license that can be found in the LICENSE file. | |
1446 | |
1447 // WARNING: Do not edit - generated code. | |
1448 | |
1449 interface DOMMimeTypeArray { | |
1450 | |
1451 int get length(); | |
1452 | |
1453 DOMMimeType item(int index); | |
1454 | |
1455 DOMMimeType namedItem(String name); | |
1456 } | |
1457 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1458 // for details. All rights reserved. Use of this source code is governed by a | |
1459 // BSD-style license that can be found in the LICENSE file. | |
1460 | |
1461 // WARNING: Do not edit - generated code. | |
1462 | |
1463 interface DOMParser { | |
1464 | |
1465 Document parseFromString(String str, String contentType); | |
1466 } | |
1467 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1468 // for details. All rights reserved. Use of this source code is governed by a | |
1469 // BSD-style license that can be found in the LICENSE file. | |
1470 | |
1471 // WARNING: Do not edit - generated code. | |
1472 | |
1473 interface DOMPlugin { | |
1474 | |
1475 String get description(); | |
1476 | |
1477 String get filename(); | |
1478 | |
1479 int get length(); | |
1480 | |
1481 String get name(); | |
1482 | |
1483 DOMMimeType item(int index); | |
1484 | |
1485 DOMMimeType namedItem(String name); | |
1486 } | |
1487 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1488 // for details. All rights reserved. Use of this source code is governed by a | |
1489 // BSD-style license that can be found in the LICENSE file. | |
1490 | |
1491 // WARNING: Do not edit - generated code. | |
1492 | |
1493 interface DOMPluginArray { | |
1494 | |
1495 int get length(); | |
1496 | |
1497 DOMPlugin item(int index); | |
1498 | |
1499 DOMPlugin namedItem(String name); | |
1500 | |
1501 void refresh(bool reload); | |
1502 } | |
1503 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1504 // for details. All rights reserved. Use of this source code is governed by a | |
1505 // BSD-style license that can be found in the LICENSE file. | |
1506 | |
1507 // WARNING: Do not edit - generated code. | |
1508 | |
1509 interface DOMSelection { | |
1510 | |
1511 Node get anchorNode(); | |
1512 | |
1513 int get anchorOffset(); | |
1514 | |
1515 Node get baseNode(); | |
1516 | |
1517 int get baseOffset(); | |
1518 | |
1519 Node get extentNode(); | |
1520 | |
1521 int get extentOffset(); | |
1522 | |
1523 Node get focusNode(); | |
1524 | |
1525 int get focusOffset(); | |
1526 | |
1527 bool get isCollapsed(); | |
1528 | |
1529 int get rangeCount(); | |
1530 | |
1531 String get type(); | |
1532 | |
1533 void addRange(Range range); | |
1534 | |
1535 void collapse(Node node, int index); | |
1536 | |
1537 void collapseToEnd(); | |
1538 | |
1539 void collapseToStart(); | |
1540 | |
1541 bool containsNode(Node node, bool allowPartial); | |
1542 | |
1543 void deleteFromDocument(); | |
1544 | |
1545 void empty(); | |
1546 | |
1547 void extend(Node node, int offset); | |
1548 | |
1549 Range getRangeAt(int index); | |
1550 | |
1551 void modify(String alter, String direction, String granularity); | |
1552 | |
1553 void removeAllRanges(); | |
1554 | |
1555 void selectAllChildren(Node node); | |
1556 | |
1557 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset); | |
1558 | |
1559 void setPosition(Node node, int offset); | |
1560 } | |
1561 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1562 // for details. All rights reserved. Use of this source code is governed by a | |
1563 // BSD-style license that can be found in the LICENSE file. | |
1564 | |
1565 // WARNING: Do not edit - generated code. | |
1566 | |
1567 interface DOMSettableTokenList extends DOMTokenList { | |
1568 | |
1569 String get value(); | |
1570 | |
1571 void set value(String value); | |
1572 } | |
1573 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1574 // for details. All rights reserved. Use of this source code is governed by a | |
1575 // BSD-style license that can be found in the LICENSE file. | |
1576 | |
1577 // WARNING: Do not edit - generated code. | |
1578 | |
1579 interface DOMTokenList { | |
1580 | |
1581 int get length(); | |
1582 | |
1583 void add(String token); | |
1584 | |
1585 bool contains(String token); | |
1586 | |
1587 String item(int index); | |
1588 | |
1589 void remove(String token); | |
1590 | |
1591 bool toggle(String token); | |
1592 } | |
1593 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1594 // for details. All rights reserved. Use of this source code is governed by a | |
1595 // BSD-style license that can be found in the LICENSE file. | |
1596 | |
1597 // WARNING: Do not edit - generated code. | |
1598 | |
1599 interface DOMURL { | |
1600 | |
1601 String createObjectURL(Blob blob); | |
1602 | |
1603 void revokeObjectURL(String url); | |
1604 } | |
1605 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1606 // for details. All rights reserved. Use of this source code is governed by a | |
1607 // BSD-style license that can be found in the LICENSE file. | |
1608 | |
1609 // WARNING: Do not edit - generated code. | |
1610 | |
1611 interface DataListElement extends Element { | |
1612 | |
1613 ElementList get options(); | |
1614 } | |
1615 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1616 // for details. All rights reserved. Use of this source code is governed by a | |
1617 // BSD-style license that can be found in the LICENSE file. | |
1618 | |
1619 // WARNING: Do not edit - generated code. | |
1620 | |
1621 interface DataTransferItem { | |
1622 | |
1623 String get kind(); | |
1624 | |
1625 String get type(); | |
1626 | |
1627 Blob getAsFile(); | |
1628 | |
1629 void getAsString(StringCallback callback); | |
1630 } | |
1631 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1632 // for details. All rights reserved. Use of this source code is governed by a | |
1633 // BSD-style license that can be found in the LICENSE file. | |
1634 | |
1635 // WARNING: Do not edit - generated code. | |
1636 | |
1637 interface DataTransferItems { | |
1638 | |
1639 int get length(); | |
1640 | |
1641 void add(String data, String type); | |
1642 | |
1643 void clear(); | |
1644 | |
1645 DataTransferItem item(int index); | |
1646 } | |
1647 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1648 // for details. All rights reserved. Use of this source code is governed by a | |
1649 // BSD-style license that can be found in the LICENSE file. | |
1650 | |
1651 // WARNING: Do not edit - generated code. | |
1652 | |
1653 interface DataView extends ArrayBufferView { | |
1654 | |
1655 num getFloat32(int byteOffset, [bool littleEndian]); | |
1656 | |
1657 num getFloat64(int byteOffset, [bool littleEndian]); | |
1658 | |
1659 int getInt16(int byteOffset, [bool littleEndian]); | |
1660 | |
1661 int getInt32(int byteOffset, [bool littleEndian]); | |
1662 | |
1663 int getInt8(); | |
1664 | |
1665 int getUint16(int byteOffset, [bool littleEndian]); | |
1666 | |
1667 int getUint32(int byteOffset, [bool littleEndian]); | |
1668 | |
1669 int getUint8(); | |
1670 | |
1671 void setFloat32(int byteOffset, num value, [bool littleEndian]); | |
1672 | |
1673 void setFloat64(int byteOffset, num value, [bool littleEndian]); | |
1674 | |
1675 void setInt16(int byteOffset, int value, [bool littleEndian]); | |
1676 | |
1677 void setInt32(int byteOffset, int value, [bool littleEndian]); | |
1678 | |
1679 void setInt8(); | |
1680 | |
1681 void setUint16(int byteOffset, int value, [bool littleEndian]); | |
1682 | |
1683 void setUint32(int byteOffset, int value, [bool littleEndian]); | |
1684 | |
1685 void setUint8(); | |
1686 } | |
1687 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1688 // for details. All rights reserved. Use of this source code is governed by a | |
1689 // BSD-style license that can be found in the LICENSE file. | |
1690 | |
1691 // WARNING: Do not edit - generated code. | |
1692 | |
1693 interface DetailsElement extends Element { | |
1694 | |
1695 bool get open(); | |
1696 | |
1697 void set open(bool value); | |
1698 } | |
1699 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1700 // for details. All rights reserved. Use of this source code is governed by a | |
1701 // BSD-style license that can be found in the LICENSE file. | |
1702 | |
1703 // WARNING: Do not edit - generated code. | |
1704 | |
1705 interface DeviceMotionEvent extends Event { | |
1706 | |
1707 num get interval(); | |
1708 } | |
1709 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1710 // for details. All rights reserved. Use of this source code is governed by a | |
1711 // BSD-style license that can be found in the LICENSE file. | |
1712 | |
1713 // WARNING: Do not edit - generated code. | |
1714 | |
1715 interface DeviceOrientationEvent extends Event { | |
1716 | |
1717 num get alpha(); | |
1718 | |
1719 num get beta(); | |
1720 | |
1721 num get gamma(); | |
1722 | |
1723 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma); | |
1724 } | |
1725 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1726 // for details. All rights reserved. Use of this source code is governed by a | |
1727 // BSD-style license that can be found in the LICENSE file. | |
1728 | |
1729 // WARNING: Do not edit - generated code. | |
1730 | |
1731 interface DirectoryEntry extends Entry { | |
1732 | |
1733 DirectoryReader createReader(); | |
1734 | |
1735 void getDirectory(String path, [Flags flags, EntryCallback successCallback, Er
rorCallback errorCallback]); | |
1736 | |
1737 void getFile(String path, [Flags flags, EntryCallback successCallback, ErrorCa
llback errorCallback]); | |
1738 | |
1739 void removeRecursively([VoidCallback successCallback, ErrorCallback errorCallb
ack]); | |
1740 } | |
1741 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1742 // for details. All rights reserved. Use of this source code is governed by a | |
1743 // BSD-style license that can be found in the LICENSE file. | |
1744 | |
1745 // WARNING: Do not edit - generated code. | |
1746 | |
1747 interface DirectoryEntrySync extends EntrySync { | |
1748 | |
1749 DirectoryReaderSync createReader(); | |
1750 | |
1751 DirectoryEntrySync getDirectory(String path, Flags flags); | |
1752 | |
1753 FileEntrySync getFile(String path, Flags flags); | |
1754 | |
1755 void removeRecursively(); | |
1756 } | |
1757 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1758 // for details. All rights reserved. Use of this source code is governed by a | |
1759 // BSD-style license that can be found in the LICENSE file. | |
1760 | |
1761 // WARNING: Do not edit - generated code. | |
1762 | |
1763 interface DirectoryReader { | |
1764 | |
1765 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
]); | |
1766 } | |
1767 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1768 // for details. All rights reserved. Use of this source code is governed by a | |
1769 // BSD-style license that can be found in the LICENSE file. | |
1770 | |
1771 // WARNING: Do not edit - generated code. | |
1772 | |
1773 interface DirectoryReaderSync { | |
1774 | |
1775 EntryArraySync readEntries(); | |
1776 } | |
1777 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1778 // for details. All rights reserved. Use of this source code is governed by a | |
1779 // BSD-style license that can be found in the LICENSE file. | |
1780 | |
1781 // WARNING: Do not edit - generated code. | |
1782 | |
1783 interface DivElement extends Element { | |
1784 | |
1785 String get align(); | |
1786 | |
1787 void set align(String value); | |
1788 } | |
1789 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1790 // for details. All rights reserved. Use of this source code is governed by a | |
1791 // BSD-style license that can be found in the LICENSE file. | |
1792 | |
1793 // WARNING: Do not edit - generated code. | |
1794 | |
1795 interface EmbedElement extends Element { | |
1796 | |
1797 String get align(); | |
1798 | |
1799 void set align(String value); | |
1800 | |
1801 int get height(); | |
1802 | |
1803 void set height(int value); | |
1804 | |
1805 String get name(); | |
1806 | |
1807 void set name(String value); | |
1808 | |
1809 String get src(); | |
1810 | |
1811 void set src(String value); | |
1812 | |
1813 String get type(); | |
1814 | |
1815 void set type(String value); | |
1816 | |
1817 int get width(); | |
1818 | |
1819 void set width(int value); | |
1820 } | |
1821 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1822 // for details. All rights reserved. Use of this source code is governed by a | |
1823 // BSD-style license that can be found in the LICENSE file. | |
1824 | |
1825 // WARNING: Do not edit - generated code. | |
1826 | |
1827 interface Entity extends Node { | |
1828 | |
1829 String get notationName(); | |
1830 | |
1831 String get publicId(); | |
1832 | |
1833 String get systemId(); | |
1834 } | |
1835 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1836 // for details. All rights reserved. Use of this source code is governed by a | |
1837 // BSD-style license that can be found in the LICENSE file. | |
1838 | |
1839 // WARNING: Do not edit - generated code. | |
1840 | |
1841 interface EntityReference extends Node { | |
1842 } | |
1843 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1844 // for details. All rights reserved. Use of this source code is governed by a | |
1845 // BSD-style license that can be found in the LICENSE file. | |
1846 | |
1847 // WARNING: Do not edit - generated code. | |
1848 | |
1849 interface EntriesCallback { | |
1850 | |
1851 bool handleEvent(EntryArray entries); | |
1852 } | |
1853 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1854 // for details. All rights reserved. Use of this source code is governed by a | |
1855 // BSD-style license that can be found in the LICENSE file. | |
1856 | |
1857 // WARNING: Do not edit - generated code. | |
1858 | |
1859 interface Entry { | |
1860 | |
1861 DOMFileSystem get filesystem(); | |
1862 | |
1863 String get fullPath(); | |
1864 | |
1865 bool get isDirectory(); | |
1866 | |
1867 bool get isFile(); | |
1868 | |
1869 String get name(); | |
1870 | |
1871 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]); | |
1872 | |
1873 void getMetadata([MetadataCallback successCallback, ErrorCallback errorCallbac
k]); | |
1874 | |
1875 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]); | |
1876 | |
1877 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]); | |
1878 | |
1879 void remove([VoidCallback successCallback, ErrorCallback errorCallback]); | |
1880 | |
1881 String toURL(); | |
1882 } | |
1883 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1884 // for details. All rights reserved. Use of this source code is governed by a | |
1885 // BSD-style license that can be found in the LICENSE file. | |
1886 | |
1887 // WARNING: Do not edit - generated code. | |
1888 | |
1889 interface EntryArray { | |
1890 | |
1891 int get length(); | |
1892 | |
1893 Entry item(int index); | |
1894 } | |
1895 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1896 // for details. All rights reserved. Use of this source code is governed by a | |
1897 // BSD-style license that can be found in the LICENSE file. | |
1898 | |
1899 // WARNING: Do not edit - generated code. | |
1900 | |
1901 interface EntryArraySync { | |
1902 | |
1903 int get length(); | |
1904 | |
1905 EntrySync item(int index); | |
1906 } | |
1907 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1908 // for details. All rights reserved. Use of this source code is governed by a | |
1909 // BSD-style license that can be found in the LICENSE file. | |
1910 | |
1911 // WARNING: Do not edit - generated code. | |
1912 | |
1913 interface EntryCallback { | |
1914 | |
1915 bool handleEvent(Entry entry); | |
1916 } | |
1917 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1918 // for details. All rights reserved. Use of this source code is governed by a | |
1919 // BSD-style license that can be found in the LICENSE file. | |
1920 | |
1921 // WARNING: Do not edit - generated code. | |
1922 | |
1923 interface EntrySync { | |
1924 | |
1925 DOMFileSystemSync get filesystem(); | |
1926 | |
1927 String get fullPath(); | |
1928 | |
1929 bool get isDirectory(); | |
1930 | |
1931 bool get isFile(); | |
1932 | |
1933 String get name(); | |
1934 | |
1935 EntrySync copyTo(DirectoryEntrySync parent, String name); | |
1936 | |
1937 Metadata getMetadata(); | |
1938 | |
1939 DirectoryEntrySync getParent(); | |
1940 | |
1941 EntrySync moveTo(DirectoryEntrySync parent, String name); | |
1942 | |
1943 void remove(); | |
1944 | |
1945 String toURL(); | |
1946 } | |
1947 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1948 // for details. All rights reserved. Use of this source code is governed by a | |
1949 // BSD-style license that can be found in the LICENSE file. | |
1950 | |
1951 // WARNING: Do not edit - generated code. | |
1952 | |
1953 interface ErrorCallback { | |
1954 | |
1955 bool handleEvent(FileError error); | |
1956 } | |
1957 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1958 // for details. All rights reserved. Use of this source code is governed by a | |
1959 // BSD-style license that can be found in the LICENSE file. | |
1960 | |
1961 // WARNING: Do not edit - generated code. | |
1962 | |
1963 interface ErrorEvent extends Event { | |
1964 | |
1965 String get filename(); | |
1966 | |
1967 int get lineno(); | |
1968 | |
1969 String get message(); | |
1970 | |
1971 void initErrorEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Str
ing messageArg, String filenameArg, int linenoArg); | |
1972 } | |
1973 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
1974 // for details. All rights reserved. Use of this source code is governed by a | |
1975 // BSD-style license that can be found in the LICENSE file. | |
1976 | |
1977 // WARNING: Do not edit - generated code. | |
1978 | |
1979 interface Event { | |
1980 | |
1981 static final int AT_TARGET = 2; | |
1982 | |
1983 static final int BLUR = 8192; | |
1984 | |
1985 static final int BUBBLING_PHASE = 3; | |
1986 | |
1987 static final int CAPTURING_PHASE = 1; | |
1988 | |
1989 static final int CHANGE = 32768; | |
1990 | |
1991 static final int CLICK = 64; | |
1992 | |
1993 static final int DBLCLICK = 128; | |
1994 | |
1995 static final int DRAGDROP = 2048; | |
1996 | |
1997 static final int FOCUS = 4096; | |
1998 | |
1999 static final int KEYDOWN = 256; | |
2000 | |
2001 static final int KEYPRESS = 1024; | |
2002 | |
2003 static final int KEYUP = 512; | |
2004 | |
2005 static final int MOUSEDOWN = 1; | |
2006 | |
2007 static final int MOUSEDRAG = 32; | |
2008 | |
2009 static final int MOUSEMOVE = 16; | |
2010 | |
2011 static final int MOUSEOUT = 8; | |
2012 | |
2013 static final int MOUSEOVER = 4; | |
2014 | |
2015 static final int MOUSEUP = 2; | |
2016 | |
2017 static final int SELECT = 16384; | |
2018 | |
2019 bool get bubbles(); | |
2020 | |
2021 bool get cancelBubble(); | |
2022 | |
2023 void set cancelBubble(bool value); | |
2024 | |
2025 bool get cancelable(); | |
2026 | |
2027 EventTarget get currentTarget(); | |
2028 | |
2029 bool get defaultPrevented(); | |
2030 | |
2031 int get eventPhase(); | |
2032 | |
2033 bool get returnValue(); | |
2034 | |
2035 void set returnValue(bool value); | |
2036 | |
2037 EventTarget get srcElement(); | |
2038 | |
2039 EventTarget get target(); | |
2040 | |
2041 int get timeStamp(); | |
2042 | |
2043 String get type(); | |
2044 | |
2045 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg); | |
2046 | |
2047 void preventDefault(); | |
2048 | |
2049 void stopImmediatePropagation(); | |
2050 | |
2051 void stopPropagation(); | |
2052 } | |
2053 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2054 // for details. All rights reserved. Use of this source code is governed by a | |
2055 // BSD-style license that can be found in the LICENSE file. | |
2056 | |
2057 // WARNING: Do not edit - generated code. | |
2058 | |
2059 interface EventException { | |
2060 | |
2061 static final int DISPATCH_REQUEST_ERR = 1; | |
2062 | |
2063 static final int UNSPECIFIED_EVENT_TYPE_ERR = 0; | |
2064 | |
2065 int get code(); | |
2066 | |
2067 String get message(); | |
2068 | |
2069 String get name(); | |
2070 } | |
2071 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2072 // for details. All rights reserved. Use of this source code is governed by a | |
2073 // BSD-style license that can be found in the LICENSE file. | |
2074 | |
2075 // WARNING: Do not edit - generated code. | |
2076 | |
2077 interface FieldSetElement extends Element { | |
2078 | |
2079 FormElement get form(); | |
2080 | |
2081 String get validationMessage(); | |
2082 | |
2083 ValidityState get validity(); | |
2084 | |
2085 bool get willValidate(); | |
2086 | |
2087 bool checkValidity(); | |
2088 | |
2089 void setCustomValidity(String error); | |
2090 } | |
2091 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2092 // for details. All rights reserved. Use of this source code is governed by a | |
2093 // BSD-style license that can be found in the LICENSE file. | |
2094 | |
2095 // WARNING: Do not edit - generated code. | |
2096 | |
2097 interface File extends Blob { | |
2098 | |
2099 String get fileName(); | |
2100 | |
2101 int get fileSize(); | |
2102 | |
2103 Date get lastModifiedDate(); | |
2104 | |
2105 String get name(); | |
2106 } | |
2107 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2108 // for details. All rights reserved. Use of this source code is governed by a | |
2109 // BSD-style license that can be found in the LICENSE file. | |
2110 | |
2111 // WARNING: Do not edit - generated code. | |
2112 | |
2113 interface FileCallback { | |
2114 | |
2115 bool handleEvent(File file); | |
2116 } | |
2117 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2118 // for details. All rights reserved. Use of this source code is governed by a | |
2119 // BSD-style license that can be found in the LICENSE file. | |
2120 | |
2121 // WARNING: Do not edit - generated code. | |
2122 | |
2123 interface FileEntry extends Entry { | |
2124 | |
2125 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back]); | |
2126 | |
2127 void file(FileCallback successCallback, [ErrorCallback errorCallback]); | |
2128 } | |
2129 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2130 // for details. All rights reserved. Use of this source code is governed by a | |
2131 // BSD-style license that can be found in the LICENSE file. | |
2132 | |
2133 // WARNING: Do not edit - generated code. | |
2134 | |
2135 interface FileEntrySync extends EntrySync { | |
2136 | |
2137 FileWriterSync createWriter(); | |
2138 | |
2139 File file(); | |
2140 } | |
2141 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2142 // for details. All rights reserved. Use of this source code is governed by a | |
2143 // BSD-style license that can be found in the LICENSE file. | |
2144 | |
2145 // WARNING: Do not edit - generated code. | |
2146 | |
2147 interface FileError { | |
2148 | |
2149 static final int ABORT_ERR = 3; | |
2150 | |
2151 static final int ENCODING_ERR = 5; | |
2152 | |
2153 static final int INVALID_MODIFICATION_ERR = 9; | |
2154 | |
2155 static final int INVALID_STATE_ERR = 7; | |
2156 | |
2157 static final int NOT_FOUND_ERR = 1; | |
2158 | |
2159 static final int NOT_READABLE_ERR = 4; | |
2160 | |
2161 static final int NO_MODIFICATION_ALLOWED_ERR = 6; | |
2162 | |
2163 static final int PATH_EXISTS_ERR = 12; | |
2164 | |
2165 static final int QUOTA_EXCEEDED_ERR = 10; | |
2166 | |
2167 static final int SECURITY_ERR = 2; | |
2168 | |
2169 static final int SYNTAX_ERR = 8; | |
2170 | |
2171 static final int TYPE_MISMATCH_ERR = 11; | |
2172 | |
2173 int get code(); | |
2174 } | |
2175 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2176 // for details. All rights reserved. Use of this source code is governed by a | |
2177 // BSD-style license that can be found in the LICENSE file. | |
2178 | |
2179 // WARNING: Do not edit - generated code. | |
2180 | |
2181 interface FileException { | |
2182 | |
2183 static final int ABORT_ERR = 3; | |
2184 | |
2185 static final int ENCODING_ERR = 5; | |
2186 | |
2187 static final int INVALID_MODIFICATION_ERR = 9; | |
2188 | |
2189 static final int INVALID_STATE_ERR = 7; | |
2190 | |
2191 static final int NOT_FOUND_ERR = 1; | |
2192 | |
2193 static final int NOT_READABLE_ERR = 4; | |
2194 | |
2195 static final int NO_MODIFICATION_ALLOWED_ERR = 6; | |
2196 | |
2197 static final int PATH_EXISTS_ERR = 12; | |
2198 | |
2199 static final int QUOTA_EXCEEDED_ERR = 10; | |
2200 | |
2201 static final int SECURITY_ERR = 2; | |
2202 | |
2203 static final int SYNTAX_ERR = 8; | |
2204 | |
2205 static final int TYPE_MISMATCH_ERR = 11; | |
2206 | |
2207 int get code(); | |
2208 | |
2209 String get message(); | |
2210 | |
2211 String get name(); | |
2212 } | |
2213 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2214 // for details. All rights reserved. Use of this source code is governed by a | |
2215 // BSD-style license that can be found in the LICENSE file. | |
2216 | |
2217 // WARNING: Do not edit - generated code. | |
2218 | |
2219 interface FileList { | |
2220 | |
2221 int get length(); | |
2222 | |
2223 File item(int index); | |
2224 } | |
2225 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2226 // for details. All rights reserved. Use of this source code is governed by a | |
2227 // BSD-style license that can be found in the LICENSE file. | |
2228 | |
2229 // WARNING: Do not edit - generated code. | |
2230 | |
2231 interface FileReader factory _FileReaderFactoryProvider { | |
2232 | |
2233 FileReader(); | |
2234 | |
2235 static final int DONE = 2; | |
2236 | |
2237 static final int EMPTY = 0; | |
2238 | |
2239 static final int LOADING = 1; | |
2240 | |
2241 FileError get error(); | |
2242 | |
2243 EventListener get onabort(); | |
2244 | |
2245 void set onabort(EventListener value); | |
2246 | |
2247 EventListener get onerror(); | |
2248 | |
2249 void set onerror(EventListener value); | |
2250 | |
2251 EventListener get onload(); | |
2252 | |
2253 void set onload(EventListener value); | |
2254 | |
2255 EventListener get onloadend(); | |
2256 | |
2257 void set onloadend(EventListener value); | |
2258 | |
2259 EventListener get onloadstart(); | |
2260 | |
2261 void set onloadstart(EventListener value); | |
2262 | |
2263 EventListener get onprogress(); | |
2264 | |
2265 void set onprogress(EventListener value); | |
2266 | |
2267 int get readyState(); | |
2268 | |
2269 String get result(); | |
2270 | |
2271 void abort(); | |
2272 | |
2273 void readAsArrayBuffer(Blob blob); | |
2274 | |
2275 void readAsBinaryString(Blob blob); | |
2276 | |
2277 void readAsDataURL(Blob blob); | |
2278 | |
2279 void readAsText(Blob blob, [String encoding]); | |
2280 } | |
2281 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2282 // for details. All rights reserved. Use of this source code is governed by a | |
2283 // BSD-style license that can be found in the LICENSE file. | |
2284 | |
2285 // WARNING: Do not edit - generated code. | |
2286 | |
2287 interface FileReaderSync { | |
2288 | |
2289 ArrayBuffer readAsArrayBuffer(Blob blob); | |
2290 | |
2291 String readAsBinaryString(Blob blob); | |
2292 | |
2293 String readAsDataURL(Blob blob); | |
2294 | |
2295 String readAsText(Blob blob, [String encoding]); | |
2296 } | |
2297 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2298 // for details. All rights reserved. Use of this source code is governed by a | |
2299 // BSD-style license that can be found in the LICENSE file. | |
2300 | |
2301 // WARNING: Do not edit - generated code. | |
2302 | |
2303 interface FileSystemCallback { | |
2304 | |
2305 bool handleEvent(DOMFileSystem fileSystem); | |
2306 } | |
2307 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2308 // for details. All rights reserved. Use of this source code is governed by a | |
2309 // BSD-style license that can be found in the LICENSE file. | |
2310 | |
2311 // WARNING: Do not edit - generated code. | |
2312 | |
2313 interface FileWriter { | |
2314 | |
2315 static final int DONE = 2; | |
2316 | |
2317 static final int INIT = 0; | |
2318 | |
2319 static final int WRITING = 1; | |
2320 | |
2321 FileError get error(); | |
2322 | |
2323 int get length(); | |
2324 | |
2325 EventListener get onabort(); | |
2326 | |
2327 void set onabort(EventListener value); | |
2328 | |
2329 EventListener get onerror(); | |
2330 | |
2331 void set onerror(EventListener value); | |
2332 | |
2333 EventListener get onprogress(); | |
2334 | |
2335 void set onprogress(EventListener value); | |
2336 | |
2337 EventListener get onwrite(); | |
2338 | |
2339 void set onwrite(EventListener value); | |
2340 | |
2341 EventListener get onwriteend(); | |
2342 | |
2343 void set onwriteend(EventListener value); | |
2344 | |
2345 EventListener get onwritestart(); | |
2346 | |
2347 void set onwritestart(EventListener value); | |
2348 | |
2349 int get position(); | |
2350 | |
2351 int get readyState(); | |
2352 | |
2353 void abort(); | |
2354 | |
2355 void seek(int position); | |
2356 | |
2357 void truncate(int size); | |
2358 | |
2359 void write(Blob data); | |
2360 } | |
2361 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2362 // for details. All rights reserved. Use of this source code is governed by a | |
2363 // BSD-style license that can be found in the LICENSE file. | |
2364 | |
2365 // WARNING: Do not edit - generated code. | |
2366 | |
2367 interface FileWriterCallback { | |
2368 | |
2369 bool handleEvent(FileWriter fileWriter); | |
2370 } | |
2371 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2372 // for details. All rights reserved. Use of this source code is governed by a | |
2373 // BSD-style license that can be found in the LICENSE file. | |
2374 | |
2375 // WARNING: Do not edit - generated code. | |
2376 | |
2377 interface FileWriterSync { | |
2378 | |
2379 int get length(); | |
2380 | |
2381 int get position(); | |
2382 | |
2383 void seek(int position); | |
2384 | |
2385 void truncate(int size); | |
2386 | |
2387 void write(Blob data); | |
2388 } | |
2389 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2390 // for details. All rights reserved. Use of this source code is governed by a | |
2391 // BSD-style license that can be found in the LICENSE file. | |
2392 | |
2393 // WARNING: Do not edit - generated code. | |
2394 | |
2395 interface Flags { | |
2396 | |
2397 bool get create(); | |
2398 | |
2399 void set create(bool value); | |
2400 | |
2401 bool get exclusive(); | |
2402 | |
2403 void set exclusive(bool value); | |
2404 } | |
2405 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2406 // for details. All rights reserved. Use of this source code is governed by a | |
2407 // BSD-style license that can be found in the LICENSE file. | |
2408 | |
2409 // WARNING: Do not edit - generated code. | |
2410 | |
2411 interface Float32Array extends ArrayBufferView { | |
2412 | |
2413 static final int BYTES_PER_ELEMENT = 4; | |
2414 | |
2415 int get length(); | |
2416 | |
2417 Float32Array subarray(int start, [int end]); | |
2418 } | |
2419 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2420 // for details. All rights reserved. Use of this source code is governed by a | |
2421 // BSD-style license that can be found in the LICENSE file. | |
2422 | |
2423 // WARNING: Do not edit - generated code. | |
2424 | |
2425 interface Float64Array extends ArrayBufferView { | |
2426 | |
2427 static final int BYTES_PER_ELEMENT = 8; | |
2428 | |
2429 int get length(); | |
2430 | |
2431 Float64Array subarray(int start, [int end]); | |
2432 } | |
2433 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2434 // for details. All rights reserved. Use of this source code is governed by a | |
2435 // BSD-style license that can be found in the LICENSE file. | |
2436 | |
2437 // WARNING: Do not edit - generated code. | |
2438 | |
2439 interface FontElement extends Element { | |
2440 | |
2441 String get color(); | |
2442 | |
2443 void set color(String value); | |
2444 | |
2445 String get face(); | |
2446 | |
2447 void set face(String value); | |
2448 | |
2449 String get size(); | |
2450 | |
2451 void set size(String value); | |
2452 } | |
2453 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2454 // for details. All rights reserved. Use of this source code is governed by a | |
2455 // BSD-style license that can be found in the LICENSE file. | |
2456 | |
2457 // WARNING: Do not edit - generated code. | |
2458 | |
2459 interface FormElement extends Element { | |
2460 | |
2461 String get acceptCharset(); | |
2462 | |
2463 void set acceptCharset(String value); | |
2464 | |
2465 String get action(); | |
2466 | |
2467 void set action(String value); | |
2468 | |
2469 String get autocomplete(); | |
2470 | |
2471 void set autocomplete(String value); | |
2472 | |
2473 String get encoding(); | |
2474 | |
2475 void set encoding(String value); | |
2476 | |
2477 String get enctype(); | |
2478 | |
2479 void set enctype(String value); | |
2480 | |
2481 int get length(); | |
2482 | |
2483 String get method(); | |
2484 | |
2485 void set method(String value); | |
2486 | |
2487 String get name(); | |
2488 | |
2489 void set name(String value); | |
2490 | |
2491 bool get noValidate(); | |
2492 | |
2493 void set noValidate(bool value); | |
2494 | |
2495 String get target(); | |
2496 | |
2497 void set target(String value); | |
2498 | |
2499 bool checkValidity(); | |
2500 | |
2501 void reset(); | |
2502 | |
2503 void submit(); | |
2504 } | |
2505 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2506 // for details. All rights reserved. Use of this source code is governed by a | |
2507 // BSD-style license that can be found in the LICENSE file. | |
2508 | |
2509 // WARNING: Do not edit - generated code. | |
2510 | |
2511 interface Geolocation { | |
2512 | |
2513 void clearWatch(int watchId); | |
2514 | |
2515 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback]); | |
2516 | |
2517 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback]); | |
2518 } | |
2519 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2520 // for details. All rights reserved. Use of this source code is governed by a | |
2521 // BSD-style license that can be found in the LICENSE file. | |
2522 | |
2523 // WARNING: Do not edit - generated code. | |
2524 | |
2525 interface Geoposition { | |
2526 | |
2527 Coordinates get coords(); | |
2528 | |
2529 int get timestamp(); | |
2530 } | |
2531 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2532 // for details. All rights reserved. Use of this source code is governed by a | |
2533 // BSD-style license that can be found in the LICENSE file. | |
2534 | |
2535 // WARNING: Do not edit - generated code. | |
2536 | |
2537 interface HRElement extends Element { | |
2538 | |
2539 String get align(); | |
2540 | |
2541 void set align(String value); | |
2542 | |
2543 bool get noShade(); | |
2544 | |
2545 void set noShade(bool value); | |
2546 | |
2547 String get size(); | |
2548 | |
2549 void set size(String value); | |
2550 | |
2551 String get width(); | |
2552 | |
2553 void set width(String value); | |
2554 } | |
2555 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2556 // for details. All rights reserved. Use of this source code is governed by a | |
2557 // BSD-style license that can be found in the LICENSE file. | |
2558 | |
2559 // WARNING: Do not edit - generated code. | |
2560 | |
2561 interface HTMLAllCollection { | |
2562 | |
2563 int get length(); | |
2564 | |
2565 Node item(int index); | |
2566 | |
2567 Node namedItem(String name); | |
2568 | |
2569 ElementList tags(String name); | |
2570 } | |
2571 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2572 // for details. All rights reserved. Use of this source code is governed by a | |
2573 // BSD-style license that can be found in the LICENSE file. | |
2574 | |
2575 // WARNING: Do not edit - generated code. | |
2576 | |
2577 interface HashChangeEvent extends Event { | |
2578 | |
2579 String get newURL(); | |
2580 | |
2581 String get oldURL(); | |
2582 | |
2583 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL); | |
2584 } | |
2585 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2586 // for details. All rights reserved. Use of this source code is governed by a | |
2587 // BSD-style license that can be found in the LICENSE file. | |
2588 | |
2589 // WARNING: Do not edit - generated code. | |
2590 | |
2591 interface HeadElement extends Element { | |
2592 | |
2593 String get profile(); | |
2594 | |
2595 void set profile(String value); | |
2596 } | |
2597 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2598 // for details. All rights reserved. Use of this source code is governed by a | |
2599 // BSD-style license that can be found in the LICENSE file. | |
2600 | |
2601 // WARNING: Do not edit - generated code. | |
2602 | |
2603 interface HeadingElement extends Element { | |
2604 | |
2605 String get align(); | |
2606 | |
2607 void set align(String value); | |
2608 } | |
2609 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2610 // for details. All rights reserved. Use of this source code is governed by a | |
2611 // BSD-style license that can be found in the LICENSE file. | |
2612 | |
2613 // WARNING: Do not edit - generated code. | |
2614 | |
2615 interface History { | |
2616 | |
2617 int get length(); | |
2618 | |
2619 void back(); | |
2620 | |
2621 void forward(); | |
2622 | |
2623 void go(int distance); | |
2624 | |
2625 void pushState(Object data, String title, [String url]); | |
2626 | |
2627 void replaceState(Object data, String title, [String url]); | |
2628 } | |
2629 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2630 // for details. All rights reserved. Use of this source code is governed by a | |
2631 // BSD-style license that can be found in the LICENSE file. | |
2632 | |
2633 // WARNING: Do not edit - generated code. | |
2634 | |
2635 interface HtmlElement extends Element { | |
2636 | |
2637 String get manifest(); | |
2638 | |
2639 void set manifest(String value); | |
2640 | |
2641 String get version(); | |
2642 | |
2643 void set version(String value); | |
2644 } | |
2645 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2646 // for details. All rights reserved. Use of this source code is governed by a | |
2647 // BSD-style license that can be found in the LICENSE file. | |
2648 | |
2649 // WARNING: Do not edit - generated code. | |
2650 | |
2651 interface IDBAny { | |
2652 } | |
2653 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2654 // for details. All rights reserved. Use of this source code is governed by a | |
2655 // BSD-style license that can be found in the LICENSE file. | |
2656 | |
2657 // WARNING: Do not edit - generated code. | |
2658 | |
2659 interface IDBCursor { | |
2660 | |
2661 static final int NEXT = 0; | |
2662 | |
2663 static final int NEXT_NO_DUPLICATE = 1; | |
2664 | |
2665 static final int PREV = 2; | |
2666 | |
2667 static final int PREV_NO_DUPLICATE = 3; | |
2668 | |
2669 int get direction(); | |
2670 | |
2671 IDBKey get key(); | |
2672 | |
2673 IDBKey get primaryKey(); | |
2674 | |
2675 IDBAny get source(); | |
2676 | |
2677 void continueFunction([IDBKey key]); | |
2678 | |
2679 IDBRequest delete(); | |
2680 | |
2681 IDBRequest update(String value); | |
2682 } | |
2683 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2684 // for details. All rights reserved. Use of this source code is governed by a | |
2685 // BSD-style license that can be found in the LICENSE file. | |
2686 | |
2687 // WARNING: Do not edit - generated code. | |
2688 | |
2689 interface IDBCursorWithValue extends IDBCursor { | |
2690 | |
2691 String get value(); | |
2692 } | |
2693 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2694 // for details. All rights reserved. Use of this source code is governed by a | |
2695 // BSD-style license that can be found in the LICENSE file. | |
2696 | |
2697 // WARNING: Do not edit - generated code. | |
2698 | |
2699 interface IDBDatabase { | |
2700 | |
2701 String get name(); | |
2702 | |
2703 EventListener get onabort(); | |
2704 | |
2705 void set onabort(EventListener value); | |
2706 | |
2707 EventListener get onerror(); | |
2708 | |
2709 void set onerror(EventListener value); | |
2710 | |
2711 EventListener get onversionchange(); | |
2712 | |
2713 void set onversionchange(EventListener value); | |
2714 | |
2715 String get version(); | |
2716 | |
2717 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
2718 | |
2719 void close(); | |
2720 | |
2721 IDBObjectStore createObjectStore(String name); | |
2722 | |
2723 void deleteObjectStore(String name); | |
2724 | |
2725 bool dispatchEvent(Event evt); | |
2726 | |
2727 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
2728 | |
2729 IDBVersionChangeRequest setVersion(String version); | |
2730 } | |
2731 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2732 // for details. All rights reserved. Use of this source code is governed by a | |
2733 // BSD-style license that can be found in the LICENSE file. | |
2734 | |
2735 // WARNING: Do not edit - generated code. | |
2736 | |
2737 interface IDBDatabaseError { | |
2738 | |
2739 int get code(); | |
2740 | |
2741 void set code(int value); | |
2742 | |
2743 String get message(); | |
2744 | |
2745 void set message(String value); | |
2746 } | |
2747 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2748 // for details. All rights reserved. Use of this source code is governed by a | |
2749 // BSD-style license that can be found in the LICENSE file. | |
2750 | |
2751 // WARNING: Do not edit - generated code. | |
2752 | |
2753 interface IDBDatabaseException { | |
2754 | |
2755 static final int ABORT_ERR = 13; | |
2756 | |
2757 static final int CONSTRAINT_ERR = 4; | |
2758 | |
2759 static final int DATA_ERR = 5; | |
2760 | |
2761 static final int DEADLOCK_ERR = 11; | |
2762 | |
2763 static final int NON_TRANSIENT_ERR = 2; | |
2764 | |
2765 static final int NOT_ALLOWED_ERR = 6; | |
2766 | |
2767 static final int NOT_FOUND_ERR = 3; | |
2768 | |
2769 static final int NO_ERR = 0; | |
2770 | |
2771 static final int READ_ONLY_ERR = 12; | |
2772 | |
2773 static final int RECOVERABLE_ERR = 8; | |
2774 | |
2775 static final int SERIAL_ERR = 7; | |
2776 | |
2777 static final int TIMEOUT_ERR = 10; | |
2778 | |
2779 static final int TRANSIENT_ERR = 9; | |
2780 | |
2781 static final int UNKNOWN_ERR = 1; | |
2782 | |
2783 int get code(); | |
2784 | |
2785 String get message(); | |
2786 | |
2787 String get name(); | |
2788 } | |
2789 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2790 // for details. All rights reserved. Use of this source code is governed by a | |
2791 // BSD-style license that can be found in the LICENSE file. | |
2792 | |
2793 // WARNING: Do not edit - generated code. | |
2794 | |
2795 interface IDBFactory { | |
2796 | |
2797 IDBRequest getDatabaseNames(); | |
2798 | |
2799 IDBRequest open(String name); | |
2800 } | |
2801 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2802 // for details. All rights reserved. Use of this source code is governed by a | |
2803 // BSD-style license that can be found in the LICENSE file. | |
2804 | |
2805 // WARNING: Do not edit - generated code. | |
2806 | |
2807 interface IDBIndex { | |
2808 | |
2809 String get keyPath(); | |
2810 | |
2811 String get name(); | |
2812 | |
2813 IDBObjectStore get objectStore(); | |
2814 | |
2815 bool get unique(); | |
2816 | |
2817 IDBRequest getObject(IDBKey key); | |
2818 | |
2819 IDBRequest getKey(IDBKey key); | |
2820 | |
2821 IDBRequest openCursor([IDBKeyRange range, int direction]); | |
2822 | |
2823 IDBRequest openKeyCursor([IDBKeyRange range, int direction]); | |
2824 } | |
2825 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2826 // for details. All rights reserved. Use of this source code is governed by a | |
2827 // BSD-style license that can be found in the LICENSE file. | |
2828 | |
2829 // WARNING: Do not edit - generated code. | |
2830 | |
2831 interface IDBKey { | |
2832 } | |
2833 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2834 // for details. All rights reserved. Use of this source code is governed by a | |
2835 // BSD-style license that can be found in the LICENSE file. | |
2836 | |
2837 // WARNING: Do not edit - generated code. | |
2838 | |
2839 interface IDBKeyRange { | |
2840 | |
2841 IDBKey get lower(); | |
2842 | |
2843 bool get lowerOpen(); | |
2844 | |
2845 IDBKey get upper(); | |
2846 | |
2847 bool get upperOpen(); | |
2848 | |
2849 IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen, bool upperOpen]
); | |
2850 | |
2851 IDBKeyRange lowerBound(IDBKey bound, [bool open]); | |
2852 | |
2853 IDBKeyRange only(IDBKey value); | |
2854 | |
2855 IDBKeyRange upperBound(IDBKey bound, [bool open]); | |
2856 } | |
2857 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2858 // for details. All rights reserved. Use of this source code is governed by a | |
2859 // BSD-style license that can be found in the LICENSE file. | |
2860 | |
2861 // WARNING: Do not edit - generated code. | |
2862 | |
2863 interface IDBObjectStore { | |
2864 | |
2865 String get keyPath(); | |
2866 | |
2867 String get name(); | |
2868 | |
2869 IDBRequest add(String value, [IDBKey key]); | |
2870 | |
2871 IDBRequest clear(); | |
2872 | |
2873 IDBIndex createIndex(String name, String keyPath); | |
2874 | |
2875 IDBRequest delete(IDBKey key); | |
2876 | |
2877 void deleteIndex(String name); | |
2878 | |
2879 IDBRequest getObject(IDBKey key); | |
2880 | |
2881 IDBIndex index(String name); | |
2882 | |
2883 IDBRequest openCursor([IDBKeyRange range, int direction]); | |
2884 | |
2885 IDBRequest put(String value, [IDBKey key]); | |
2886 } | |
2887 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2888 // for details. All rights reserved. Use of this source code is governed by a | |
2889 // BSD-style license that can be found in the LICENSE file. | |
2890 | |
2891 // WARNING: Do not edit - generated code. | |
2892 | |
2893 interface IDBRequest { | |
2894 | |
2895 static final int DONE = 2; | |
2896 | |
2897 static final int LOADING = 1; | |
2898 | |
2899 int get errorCode(); | |
2900 | |
2901 EventListener get onerror(); | |
2902 | |
2903 void set onerror(EventListener value); | |
2904 | |
2905 EventListener get onsuccess(); | |
2906 | |
2907 void set onsuccess(EventListener value); | |
2908 | |
2909 int get readyState(); | |
2910 | |
2911 IDBAny get result(); | |
2912 | |
2913 IDBAny get source(); | |
2914 | |
2915 IDBTransaction get transaction(); | |
2916 | |
2917 String get webkitErrorMessage(); | |
2918 | |
2919 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
2920 | |
2921 bool dispatchEvent(Event evt); | |
2922 | |
2923 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
2924 } | |
2925 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2926 // for details. All rights reserved. Use of this source code is governed by a | |
2927 // BSD-style license that can be found in the LICENSE file. | |
2928 | |
2929 // WARNING: Do not edit - generated code. | |
2930 | |
2931 interface IDBTransaction { | |
2932 | |
2933 static final int READ_ONLY = 0; | |
2934 | |
2935 static final int READ_WRITE = 1; | |
2936 | |
2937 static final int VERSION_CHANGE = 2; | |
2938 | |
2939 IDBDatabase get db(); | |
2940 | |
2941 int get mode(); | |
2942 | |
2943 EventListener get onabort(); | |
2944 | |
2945 void set onabort(EventListener value); | |
2946 | |
2947 EventListener get oncomplete(); | |
2948 | |
2949 void set oncomplete(EventListener value); | |
2950 | |
2951 EventListener get onerror(); | |
2952 | |
2953 void set onerror(EventListener value); | |
2954 | |
2955 void abort(); | |
2956 | |
2957 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
2958 | |
2959 bool dispatchEvent(Event evt); | |
2960 | |
2961 IDBObjectStore objectStore(String name); | |
2962 | |
2963 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
2964 } | |
2965 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2966 // for details. All rights reserved. Use of this source code is governed by a | |
2967 // BSD-style license that can be found in the LICENSE file. | |
2968 | |
2969 // WARNING: Do not edit - generated code. | |
2970 | |
2971 interface IDBVersionChangeEvent extends Event { | |
2972 | |
2973 String get version(); | |
2974 } | |
2975 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2976 // for details. All rights reserved. Use of this source code is governed by a | |
2977 // BSD-style license that can be found in the LICENSE file. | |
2978 | |
2979 // WARNING: Do not edit - generated code. | |
2980 | |
2981 interface IDBVersionChangeRequest extends IDBRequest { | |
2982 | |
2983 EventListener get onblocked(); | |
2984 | |
2985 void set onblocked(EventListener value); | |
2986 } | |
2987 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2988 // for details. All rights reserved. Use of this source code is governed by a | |
2989 // BSD-style license that can be found in the LICENSE file. | |
2990 | |
2991 // WARNING: Do not edit - generated code. | |
2992 | |
2993 interface IFrameElement extends Element { | |
2994 | |
2995 String get align(); | |
2996 | |
2997 void set align(String value); | |
2998 | |
2999 Document get contentDocument(); | |
3000 | |
3001 Window get contentWindow(); | |
3002 | |
3003 String get frameBorder(); | |
3004 | |
3005 void set frameBorder(String value); | |
3006 | |
3007 String get height(); | |
3008 | |
3009 void set height(String value); | |
3010 | |
3011 String get longDesc(); | |
3012 | |
3013 void set longDesc(String value); | |
3014 | |
3015 String get marginHeight(); | |
3016 | |
3017 void set marginHeight(String value); | |
3018 | |
3019 String get marginWidth(); | |
3020 | |
3021 void set marginWidth(String value); | |
3022 | |
3023 String get name(); | |
3024 | |
3025 void set name(String value); | |
3026 | |
3027 String get sandbox(); | |
3028 | |
3029 void set sandbox(String value); | |
3030 | |
3031 String get scrolling(); | |
3032 | |
3033 void set scrolling(String value); | |
3034 | |
3035 String get src(); | |
3036 | |
3037 void set src(String value); | |
3038 | |
3039 String get width(); | |
3040 | |
3041 void set width(String value); | |
3042 } | |
3043 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3044 // for details. All rights reserved. Use of this source code is governed by a | |
3045 // BSD-style license that can be found in the LICENSE file. | |
3046 | |
3047 // WARNING: Do not edit - generated code. | |
3048 | |
3049 interface ImageData { | |
3050 | |
3051 CanvasPixelArray get data(); | |
3052 | |
3053 int get height(); | |
3054 | |
3055 int get width(); | |
3056 } | |
3057 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3058 // for details. All rights reserved. Use of this source code is governed by a | |
3059 // BSD-style license that can be found in the LICENSE file. | |
3060 | |
3061 // WARNING: Do not edit - generated code. | |
3062 | |
3063 interface ImageElement extends Element { | |
3064 | |
3065 String get align(); | |
3066 | |
3067 void set align(String value); | |
3068 | |
3069 String get alt(); | |
3070 | |
3071 void set alt(String value); | |
3072 | |
3073 String get border(); | |
3074 | |
3075 void set border(String value); | |
3076 | |
3077 bool get complete(); | |
3078 | |
3079 String get crossOrigin(); | |
3080 | |
3081 void set crossOrigin(String value); | |
3082 | |
3083 int get height(); | |
3084 | |
3085 void set height(int value); | |
3086 | |
3087 int get hspace(); | |
3088 | |
3089 void set hspace(int value); | |
3090 | |
3091 bool get isMap(); | |
3092 | |
3093 void set isMap(bool value); | |
3094 | |
3095 String get longDesc(); | |
3096 | |
3097 void set longDesc(String value); | |
3098 | |
3099 String get lowsrc(); | |
3100 | |
3101 void set lowsrc(String value); | |
3102 | |
3103 String get name(); | |
3104 | |
3105 void set name(String value); | |
3106 | |
3107 int get naturalHeight(); | |
3108 | |
3109 int get naturalWidth(); | |
3110 | |
3111 String get src(); | |
3112 | |
3113 void set src(String value); | |
3114 | |
3115 String get useMap(); | |
3116 | |
3117 void set useMap(String value); | |
3118 | |
3119 int get vspace(); | |
3120 | |
3121 void set vspace(int value); | |
3122 | |
3123 int get width(); | |
3124 | |
3125 void set width(int value); | |
3126 | |
3127 int get x(); | |
3128 | |
3129 int get y(); | |
3130 } | |
3131 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3132 // for details. All rights reserved. Use of this source code is governed by a | |
3133 // BSD-style license that can be found in the LICENSE file. | |
3134 | |
3135 // WARNING: Do not edit - generated code. | |
3136 | |
3137 interface InputElement extends Element { | |
3138 | |
3139 String get accept(); | |
3140 | |
3141 void set accept(String value); | |
3142 | |
3143 String get accessKey(); | |
3144 | |
3145 void set accessKey(String value); | |
3146 | |
3147 String get align(); | |
3148 | |
3149 void set align(String value); | |
3150 | |
3151 String get alt(); | |
3152 | |
3153 void set alt(String value); | |
3154 | |
3155 String get autocomplete(); | |
3156 | |
3157 void set autocomplete(String value); | |
3158 | |
3159 bool get autofocus(); | |
3160 | |
3161 void set autofocus(bool value); | |
3162 | |
3163 bool get checked(); | |
3164 | |
3165 void set checked(bool value); | |
3166 | |
3167 bool get defaultChecked(); | |
3168 | |
3169 void set defaultChecked(bool value); | |
3170 | |
3171 String get defaultValue(); | |
3172 | |
3173 void set defaultValue(String value); | |
3174 | |
3175 bool get disabled(); | |
3176 | |
3177 void set disabled(bool value); | |
3178 | |
3179 FileList get files(); | |
3180 | |
3181 FormElement get form(); | |
3182 | |
3183 String get formAction(); | |
3184 | |
3185 void set formAction(String value); | |
3186 | |
3187 String get formEnctype(); | |
3188 | |
3189 void set formEnctype(String value); | |
3190 | |
3191 String get formMethod(); | |
3192 | |
3193 void set formMethod(String value); | |
3194 | |
3195 bool get formNoValidate(); | |
3196 | |
3197 void set formNoValidate(bool value); | |
3198 | |
3199 String get formTarget(); | |
3200 | |
3201 void set formTarget(String value); | |
3202 | |
3203 bool get incremental(); | |
3204 | |
3205 void set incremental(bool value); | |
3206 | |
3207 bool get indeterminate(); | |
3208 | |
3209 void set indeterminate(bool value); | |
3210 | |
3211 ElementList get labels(); | |
3212 | |
3213 Element get list(); | |
3214 | |
3215 String get max(); | |
3216 | |
3217 void set max(String value); | |
3218 | |
3219 int get maxLength(); | |
3220 | |
3221 void set maxLength(int value); | |
3222 | |
3223 String get min(); | |
3224 | |
3225 void set min(String value); | |
3226 | |
3227 bool get multiple(); | |
3228 | |
3229 void set multiple(bool value); | |
3230 | |
3231 String get name(); | |
3232 | |
3233 void set name(String value); | |
3234 | |
3235 EventListener get onwebkitspeechchange(); | |
3236 | |
3237 void set onwebkitspeechchange(EventListener value); | |
3238 | |
3239 String get pattern(); | |
3240 | |
3241 void set pattern(String value); | |
3242 | |
3243 String get placeholder(); | |
3244 | |
3245 void set placeholder(String value); | |
3246 | |
3247 bool get readOnly(); | |
3248 | |
3249 void set readOnly(bool value); | |
3250 | |
3251 bool get required(); | |
3252 | |
3253 void set required(bool value); | |
3254 | |
3255 OptionElement get selectedOption(); | |
3256 | |
3257 String get selectionDirection(); | |
3258 | |
3259 void set selectionDirection(String value); | |
3260 | |
3261 int get selectionEnd(); | |
3262 | |
3263 void set selectionEnd(int value); | |
3264 | |
3265 int get selectionStart(); | |
3266 | |
3267 void set selectionStart(int value); | |
3268 | |
3269 int get size(); | |
3270 | |
3271 void set size(int value); | |
3272 | |
3273 String get src(); | |
3274 | |
3275 void set src(String value); | |
3276 | |
3277 String get step(); | |
3278 | |
3279 void set step(String value); | |
3280 | |
3281 String get type(); | |
3282 | |
3283 void set type(String value); | |
3284 | |
3285 String get useMap(); | |
3286 | |
3287 void set useMap(String value); | |
3288 | |
3289 String get validationMessage(); | |
3290 | |
3291 ValidityState get validity(); | |
3292 | |
3293 String get value(); | |
3294 | |
3295 void set value(String value); | |
3296 | |
3297 Date get valueAsDate(); | |
3298 | |
3299 void set valueAsDate(Date value); | |
3300 | |
3301 num get valueAsNumber(); | |
3302 | |
3303 void set valueAsNumber(num value); | |
3304 | |
3305 bool get webkitGrammar(); | |
3306 | |
3307 void set webkitGrammar(bool value); | |
3308 | |
3309 bool get webkitSpeech(); | |
3310 | |
3311 void set webkitSpeech(bool value); | |
3312 | |
3313 bool get webkitdirectory(); | |
3314 | |
3315 void set webkitdirectory(bool value); | |
3316 | |
3317 bool get willValidate(); | |
3318 | |
3319 bool checkValidity(); | |
3320 | |
3321 void click(); | |
3322 | |
3323 void select(); | |
3324 | |
3325 void setCustomValidity(String error); | |
3326 | |
3327 void setSelectionRange(int start, int end, [String direction]); | |
3328 | |
3329 void setValueForUser(String value); | |
3330 | |
3331 void stepDown([int n]); | |
3332 | |
3333 void stepUp([int n]); | |
3334 } | |
3335 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3336 // for details. All rights reserved. Use of this source code is governed by a | |
3337 // BSD-style license that can be found in the LICENSE file. | |
3338 | |
3339 // WARNING: Do not edit - generated code. | |
3340 | |
3341 interface Int16Array extends ArrayBufferView { | |
3342 | |
3343 static final int BYTES_PER_ELEMENT = 2; | |
3344 | |
3345 int get length(); | |
3346 | |
3347 Int16Array subarray(int start, [int end]); | |
3348 } | |
3349 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3350 // for details. All rights reserved. Use of this source code is governed by a | |
3351 // BSD-style license that can be found in the LICENSE file. | |
3352 | |
3353 // WARNING: Do not edit - generated code. | |
3354 | |
3355 interface Int32Array extends ArrayBufferView { | |
3356 | |
3357 static final int BYTES_PER_ELEMENT = 4; | |
3358 | |
3359 int get length(); | |
3360 | |
3361 Int32Array subarray(int start, [int end]); | |
3362 } | |
3363 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3364 // for details. All rights reserved. Use of this source code is governed by a | |
3365 // BSD-style license that can be found in the LICENSE file. | |
3366 | |
3367 // WARNING: Do not edit - generated code. | |
3368 | |
3369 interface Int8Array extends ArrayBufferView { | |
3370 | |
3371 static final int BYTES_PER_ELEMENT = 1; | |
3372 | |
3373 int get length(); | |
3374 | |
3375 Int8Array subarray(int start, [int end]); | |
3376 } | |
3377 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3378 // for details. All rights reserved. Use of this source code is governed by a | |
3379 // BSD-style license that can be found in the LICENSE file. | |
3380 | |
3381 // WARNING: Do not edit - generated code. | |
3382 | |
3383 interface KeyboardEvent extends UIEvent { | |
3384 | |
3385 static final int KEY_LOCATION_LEFT = 0x01; | |
3386 | |
3387 static final int KEY_LOCATION_NUMPAD = 0x03; | |
3388 | |
3389 static final int KEY_LOCATION_RIGHT = 0x02; | |
3390 | |
3391 static final int KEY_LOCATION_STANDARD = 0x00; | |
3392 | |
3393 bool get altGraphKey(); | |
3394 | |
3395 bool get altKey(); | |
3396 | |
3397 bool get ctrlKey(); | |
3398 | |
3399 String get keyIdentifier(); | |
3400 | |
3401 int get keyLocation(); | |
3402 | |
3403 bool get metaKey(); | |
3404 | |
3405 bool get shiftKey(); | |
3406 | |
3407 bool getModifierState(String keyIdentifierArg); | |
3408 | |
3409 void initKeyboardEvent(String type, bool canBubble, bool cancelable, Window vi
ew, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shift
Key, bool metaKey, bool altGraphKey); | |
3410 } | |
3411 | |
3412 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3413 // for details. All rights reserved. Use of this source code is governed by a | |
3414 // BSD-style license that can be found in the LICENSE file. | |
3415 | |
3416 /** | |
3417 * Defines the standard key locations returned by | |
3418 * KeyboardEvent.getKeyLocation. | |
3419 */ | |
3420 interface KeyLocation { | |
3421 | |
3422 /** | |
3423 * The event key is not distinguished as the left or right version | |
3424 * of the key, and did not originate from the numeric keypad (or did not | |
3425 * originate with a virtual key corresponding to the numeric keypad). | |
3426 */ | |
3427 static final int STANDARD = 0; | |
3428 | |
3429 /** | |
3430 * The event key is in the left key location. | |
3431 */ | |
3432 static final int LEFT = 1; | |
3433 | |
3434 /** | |
3435 * The event key is in the right key location. | |
3436 */ | |
3437 static final int RIGHT = 2; | |
3438 | |
3439 /** | |
3440 * The event key originated on the numeric keypad or with a virtual key | |
3441 * corresponding to the numeric keypad. | |
3442 */ | |
3443 static final int NUMPAD = 3; | |
3444 | |
3445 /** | |
3446 * The event key originated on a mobile device, either on a physical | |
3447 * keypad or a virtual keyboard. | |
3448 */ | |
3449 static final int MOBILE = 4; | |
3450 | |
3451 /** | |
3452 * The event key originated on a game controller or a joystick on a mobile | |
3453 * device. | |
3454 */ | |
3455 static final int JOYSTICK = 5; | |
3456 } | |
3457 | |
3458 /** | |
3459 * Defines the standard keyboard identifier names for keys that are returned | |
3460 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct | |
3461 * unicode mapping. | |
3462 */ | |
3463 interface KeyName { | |
3464 | |
3465 /** The Accept (Commit, OK) key */ | |
3466 static final String ACCEPT = "Accept"; | |
3467 | |
3468 /** The Add key */ | |
3469 static final String ADD = "Add"; | |
3470 | |
3471 /** The Again key */ | |
3472 static final String AGAIN = "Again"; | |
3473 | |
3474 /** The All Candidates key */ | |
3475 static final String ALL_CANDIDATES = "AllCandidates"; | |
3476 | |
3477 /** The Alphanumeric key */ | |
3478 static final String ALPHANUMERIC = "Alphanumeric"; | |
3479 | |
3480 /** The Alt (Menu) key */ | |
3481 static final String ALT = "Alt"; | |
3482 | |
3483 /** The Alt-Graph key */ | |
3484 static final String ALT_GRAPH = "AltGraph"; | |
3485 | |
3486 /** The Application key */ | |
3487 static final String APPS = "Apps"; | |
3488 | |
3489 /** The ATTN key */ | |
3490 static final String ATTN = "Attn"; | |
3491 | |
3492 /** The Browser Back key */ | |
3493 static final String BROWSER_BACK = "BrowserBack"; | |
3494 | |
3495 /** The Browser Favorites key */ | |
3496 static final String BROWSER_FAVORTIES = "BrowserFavorites"; | |
3497 | |
3498 /** The Browser Forward key */ | |
3499 static final String BROWSER_FORWARD = "BrowserForward"; | |
3500 | |
3501 /** The Browser Home key */ | |
3502 static final String BROWSER_NAME = "BrowserHome"; | |
3503 | |
3504 /** The Browser Refresh key */ | |
3505 static final String BROWSER_REFRESH = "BrowserRefresh"; | |
3506 | |
3507 /** The Browser Search key */ | |
3508 static final String BROWSER_SEARCH = "BrowserSearch"; | |
3509 | |
3510 /** The Browser Stop key */ | |
3511 static final String BROWSER_STOP = "BrowserStop"; | |
3512 | |
3513 /** The Camera key */ | |
3514 static final String CAMERA = "Camera"; | |
3515 | |
3516 /** The Caps Lock (Capital) key */ | |
3517 static final String CAPS_LOCK = "CapsLock"; | |
3518 | |
3519 /** The Clear key */ | |
3520 static final String CLEAR = "Clear"; | |
3521 | |
3522 /** The Code Input key */ | |
3523 static final String CODE_INPUT = "CodeInput"; | |
3524 | |
3525 /** The Compose key */ | |
3526 static final String COMPOSE = "Compose"; | |
3527 | |
3528 /** The Control (Ctrl) key */ | |
3529 static final String CONTROL = "Control"; | |
3530 | |
3531 /** The Crsel key */ | |
3532 static final String CRSEL = "Crsel"; | |
3533 | |
3534 /** The Convert key */ | |
3535 static final String CONVERT = "Convert"; | |
3536 | |
3537 /** The Copy key */ | |
3538 static final String COPY = "Copy"; | |
3539 | |
3540 /** The Cut key */ | |
3541 static final String CUT = "Cut"; | |
3542 | |
3543 /** The Decimal key */ | |
3544 static final String DECIMAL = "Decimal"; | |
3545 | |
3546 /** The Divide key */ | |
3547 static final String DIVIDE = "Divide"; | |
3548 | |
3549 /** The Down Arrow key */ | |
3550 static final String DOWN = "Down"; | |
3551 | |
3552 /** The diagonal Down-Left Arrow key */ | |
3553 static final String DOWN_LEFT = "DownLeft"; | |
3554 | |
3555 /** The diagonal Down-Right Arrow key */ | |
3556 static final String DOWN_RIGHT = "DownRight"; | |
3557 | |
3558 /** The Eject key */ | |
3559 static final String EJECT = "Eject"; | |
3560 | |
3561 /** The End key */ | |
3562 static final String END = "End"; | |
3563 | |
3564 /** | |
3565 * The Enter key. Note: This key value must also be used for the Return | |
3566 * (Macintosh numpad) key | |
3567 */ | |
3568 static final String ENTER = "Enter"; | |
3569 | |
3570 /** The Erase EOF key */ | |
3571 static final String ERASE_EOF= "EraseEof"; | |
3572 | |
3573 /** The Execute key */ | |
3574 static final String EXECUTE = "Execute"; | |
3575 | |
3576 /** The Exsel key */ | |
3577 static final String EXSEL = "Exsel"; | |
3578 | |
3579 /** The Function switch key */ | |
3580 static final String FN = "Fn"; | |
3581 | |
3582 /** The F1 key */ | |
3583 static final String F1 = "F1"; | |
3584 | |
3585 /** The F2 key */ | |
3586 static final String F2 = "F2"; | |
3587 | |
3588 /** The F3 key */ | |
3589 static final String F3 = "F3"; | |
3590 | |
3591 /** The F4 key */ | |
3592 static final String F4 = "F4"; | |
3593 | |
3594 /** The F5 key */ | |
3595 static final String F5 = "F5"; | |
3596 | |
3597 /** The F6 key */ | |
3598 static final String F6 = "F6"; | |
3599 | |
3600 /** The F7 key */ | |
3601 static final String F7 = "F7"; | |
3602 | |
3603 /** The F8 key */ | |
3604 static final String F8 = "F8"; | |
3605 | |
3606 /** The F9 key */ | |
3607 static final String F9 = "F9"; | |
3608 | |
3609 /** The F10 key */ | |
3610 static final String F10 = "F10"; | |
3611 | |
3612 /** The F11 key */ | |
3613 static final String F11 = "F11"; | |
3614 | |
3615 /** The F12 key */ | |
3616 static final String F12 = "F12"; | |
3617 | |
3618 /** The F13 key */ | |
3619 static final String F13 = "F13"; | |
3620 | |
3621 /** The F14 key */ | |
3622 static final String F14 = "F14"; | |
3623 | |
3624 /** The F15 key */ | |
3625 static final String F15 = "F15"; | |
3626 | |
3627 /** The F16 key */ | |
3628 static final String F16 = "F16"; | |
3629 | |
3630 /** The F17 key */ | |
3631 static final String F17 = "F17"; | |
3632 | |
3633 /** The F18 key */ | |
3634 static final String F18 = "F18"; | |
3635 | |
3636 /** The F19 key */ | |
3637 static final String F19 = "F19"; | |
3638 | |
3639 /** The F20 key */ | |
3640 static final String F20 = "F20"; | |
3641 | |
3642 /** The F21 key */ | |
3643 static final String F21 = "F21"; | |
3644 | |
3645 /** The F22 key */ | |
3646 static final String F22 = "F22"; | |
3647 | |
3648 /** The F23 key */ | |
3649 static final String F23 = "F23"; | |
3650 | |
3651 /** The F24 key */ | |
3652 static final String F24 = "F24"; | |
3653 | |
3654 /** The Final Mode (Final) key used on some asian keyboards */ | |
3655 static final String FINAL_MODE = "FinalMode"; | |
3656 | |
3657 /** The Find key */ | |
3658 static final String FIND = "Find"; | |
3659 | |
3660 /** The Full-Width Characters key */ | |
3661 static final String FULL_WIDTH = "FullWidth"; | |
3662 | |
3663 /** The Half-Width Characters key */ | |
3664 static final String HALF_WIDTH = "HalfWidth"; | |
3665 | |
3666 /** The Hangul (Korean characters) Mode key */ | |
3667 static final String HANGUL_MODE = "HangulMode"; | |
3668 | |
3669 /** The Hanja (Korean characters) Mode key */ | |
3670 static final String HANJA_MODE = "HanjaMode"; | |
3671 | |
3672 /** The Help key */ | |
3673 static final String HELP = "Help"; | |
3674 | |
3675 /** The Hiragana (Japanese Kana characters) key */ | |
3676 static final String HIRAGANA = "Hiragana"; | |
3677 | |
3678 /** The Home key */ | |
3679 static final String HOME = "Home"; | |
3680 | |
3681 /** The Insert (Ins) key */ | |
3682 static final String INSERT = "Insert"; | |
3683 | |
3684 /** The Japanese-Hiragana key */ | |
3685 static final String JAPANESE_HIRAGANA = "JapaneseHiragana"; | |
3686 | |
3687 /** The Japanese-Katakana key */ | |
3688 static final String JAPANESE_KATAKANA = "JapaneseKatakana"; | |
3689 | |
3690 /** The Japanese-Romaji key */ | |
3691 static final String JAPANESE_ROMAJI = "JapaneseRomaji"; | |
3692 | |
3693 /** The Junja Mode key */ | |
3694 static final String JUNJA_MODE = "JunjaMode"; | |
3695 | |
3696 /** The Kana Mode (Kana Lock) key */ | |
3697 static final String KANA_MODE = "KanaMode"; | |
3698 | |
3699 /** | |
3700 * The Kanji (Japanese name for ideographic characters of Chinese origin) | |
3701 * Mode key | |
3702 */ | |
3703 static final String KANJI_MODE = "KanjiMode"; | |
3704 | |
3705 /** The Katakana (Japanese Kana characters) key */ | |
3706 static final String KATAKANA = "Katakana"; | |
3707 | |
3708 /** The Start Application One key */ | |
3709 static final String LAUNCH_APPLICATION_1 = "LaunchApplication1"; | |
3710 | |
3711 /** The Start Application Two key */ | |
3712 static final String LAUNCH_APPLICATION_2 = "LaunchApplication2"; | |
3713 | |
3714 /** The Start Mail key */ | |
3715 static final String LAUNCH_MAIL = "LaunchMail"; | |
3716 | |
3717 /** The Left Arrow key */ | |
3718 static final String LEFT = "Left"; | |
3719 | |
3720 /** The Menu key */ | |
3721 static final String MENU = "Menu"; | |
3722 | |
3723 /** | |
3724 * The Meta key. Note: This key value shall be also used for the Apple | |
3725 * Command key | |
3726 */ | |
3727 static final String META = "Meta"; | |
3728 | |
3729 /** The Media Next Track key */ | |
3730 static final String MEDIA_NEXT_TRACK = "MediaNextTrack"; | |
3731 | |
3732 /** The Media Play Pause key */ | |
3733 static final String MEDIA_PAUSE_PLAY = "MediaPlayPause"; | |
3734 | |
3735 /** The Media Previous Track key */ | |
3736 static final String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack"; | |
3737 | |
3738 /** The Media Stop key */ | |
3739 static final String MEDIA_STOP = "MediaStop"; | |
3740 | |
3741 /** The Mode Change key */ | |
3742 static final String MODE_CHANGE = "ModeChange"; | |
3743 | |
3744 /** The Next Candidate function key */ | |
3745 static final String NEXT_CANDIDATE = "NextCandidate"; | |
3746 | |
3747 /** The Nonconvert (Don't Convert) key */ | |
3748 static final String NON_CONVERT = "Nonconvert"; | |
3749 | |
3750 /** The Number Lock key */ | |
3751 static final String NUM_LOCK = "NumLock"; | |
3752 | |
3753 /** The Page Down (Next) key */ | |
3754 static final String PAGE_DOWN = "PageDown"; | |
3755 | |
3756 /** The Page Up key */ | |
3757 static final String PAGE_UP = "PageUp"; | |
3758 | |
3759 /** The Paste key */ | |
3760 static final String PASTE = "Paste"; | |
3761 | |
3762 /** The Pause key */ | |
3763 static final String PAUSE = "Pause"; | |
3764 | |
3765 /** The Play key */ | |
3766 static final String PLAY = "Play"; | |
3767 | |
3768 /** | |
3769 * The Power key. Note: Some devices may not expose this key to the | |
3770 * operating environment | |
3771 */ | |
3772 static final String POWER = "Power"; | |
3773 | |
3774 /** The Previous Candidate function key */ | |
3775 static final String PREVIOUS_CANDIDATE = "PreviousCandidate"; | |
3776 | |
3777 /** The Print Screen (PrintScrn, SnapShot) key */ | |
3778 static final String PRINT_SCREEN = "PrintScreen"; | |
3779 | |
3780 /** The Process key */ | |
3781 static final String PROCESS = "Process"; | |
3782 | |
3783 /** The Props key */ | |
3784 static final String PROPS = "Props"; | |
3785 | |
3786 /** The Right Arrow key */ | |
3787 static final String RIGHT = "Right"; | |
3788 | |
3789 /** The Roman Characters function key */ | |
3790 static final String ROMAN_CHARACTERS = "RomanCharacters"; | |
3791 | |
3792 /** The Scroll Lock key */ | |
3793 static final String SCROLL = "Scroll"; | |
3794 | |
3795 /** The Select key */ | |
3796 static final String SELECT = "Select"; | |
3797 | |
3798 /** The Select Media key */ | |
3799 static final String SELECT_MEDIA = "SelectMedia"; | |
3800 | |
3801 /** The Separator key */ | |
3802 static final String SEPARATOR = "Separator"; | |
3803 | |
3804 /** The Shift key */ | |
3805 static final String SHIFT = "Shift"; | |
3806 | |
3807 /** The Soft1 key */ | |
3808 static final String SOFT_1 = "Soft1"; | |
3809 | |
3810 /** The Soft2 key */ | |
3811 static final String SOFT_2 = "Soft2"; | |
3812 | |
3813 /** The Soft3 key */ | |
3814 static final String SOFT_3 = "Soft3"; | |
3815 | |
3816 /** The Soft4 key */ | |
3817 static final String SOFT_4 = "Soft4"; | |
3818 | |
3819 /** The Stop key */ | |
3820 static final String STOP = "Stop"; | |
3821 | |
3822 /** The Subtract key */ | |
3823 static final String SUBTRACT = "Subtract"; | |
3824 | |
3825 /** The Symbol Lock key */ | |
3826 static final String SYMBOL_LOCK = "SymbolLock"; | |
3827 | |
3828 /** The Up Arrow key */ | |
3829 static final String UP = "Up"; | |
3830 | |
3831 /** The diagonal Up-Left Arrow key */ | |
3832 static final String UP_LEFT = "UpLeft"; | |
3833 | |
3834 /** The diagonal Up-Right Arrow key */ | |
3835 static final String UP_RIGHT = "UpRight"; | |
3836 | |
3837 /** The Undo key */ | |
3838 static final String UNDO = "Undo"; | |
3839 | |
3840 /** The Volume Down key */ | |
3841 static final String VOLUME_DOWN = "VolumeDown"; | |
3842 | |
3843 /** The Volume Mute key */ | |
3844 static final String VOLUMN_MUTE = "VolumeMute"; | |
3845 | |
3846 /** The Volume Up key */ | |
3847 static final String VOLUMN_UP = "VolumeUp"; | |
3848 | |
3849 /** The Windows Logo key */ | |
3850 static final String WIN = "Win"; | |
3851 | |
3852 /** The Zoom key */ | |
3853 static final String ZOOM = "Zoom"; | |
3854 | |
3855 /** | |
3856 * The Backspace (Back) key. Note: This key value shall be also used for the | |
3857 * key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key | |
3858 */ | |
3859 static final String BACKSPACE = "Backspace"; | |
3860 | |
3861 /** The Horizontal Tabulation (Tab) key */ | |
3862 static final String TAB = "Tab"; | |
3863 | |
3864 /** The Cancel key */ | |
3865 static final String CANCEL = "Cancel"; | |
3866 | |
3867 /** The Escape (Esc) key */ | |
3868 static final String ESC = "Esc"; | |
3869 | |
3870 /** The Space (Spacebar) key: */ | |
3871 static final String SPACEBAR = "Spacebar"; | |
3872 | |
3873 /** | |
3874 * The Delete (Del) Key. Note: This key value shall be also used for the key | |
3875 * labeled 'delete' MacOS keyboards when modified by the 'Fn' key | |
3876 */ | |
3877 static final String DEL = "Del"; | |
3878 | |
3879 /** The Combining Grave Accent (Greek Varia, Dead Grave) key */ | |
3880 static final String DEAD_GRAVE = "DeadGrave"; | |
3881 | |
3882 /** | |
3883 * The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute) | |
3884 * key | |
3885 */ | |
3886 static final String DEAD_EACUTE = "DeadEacute"; | |
3887 | |
3888 /** The Combining Circumflex Accent (Hat, Dead Circumflex) key */ | |
3889 static final String DEAD_CIRCUMFLEX = "DeadCircumflex"; | |
3890 | |
3891 /** The Combining Tilde (Dead Tilde) key */ | |
3892 static final String DEAD_TILDE = "DeadTilde"; | |
3893 | |
3894 /** The Combining Macron (Long, Dead Macron) key */ | |
3895 static final String DEAD_MACRON = "DeadMacron"; | |
3896 | |
3897 /** The Combining Breve (Short, Dead Breve) key */ | |
3898 static final String DEAD_BREVE = "DeadBreve"; | |
3899 | |
3900 /** The Combining Dot Above (Derivative, Dead Above Dot) key */ | |
3901 static final String DEAD_ABOVE_DOT = "DeadAboveDot"; | |
3902 | |
3903 /** | |
3904 * The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika, | |
3905 * Double Derivative, Dead Diaeresis) key | |
3906 */ | |
3907 static final String DEAD_UMLAUT = "DeadUmlaut"; | |
3908 | |
3909 /** The Combining Ring Above (Dead Above Ring) key */ | |
3910 static final String DEAD_ABOVE_RING = "DeadAboveRing"; | |
3911 | |
3912 /** The Combining Double Acute Accent (Dead Doubleacute) key */ | |
3913 static final String DEAD_DOUBLEACUTE = "DeadDoubleacute"; | |
3914 | |
3915 /** The Combining Caron (Hacek, V Above, Dead Caron) key */ | |
3916 static final String DEAD_CARON = "DeadCaron"; | |
3917 | |
3918 /** The Combining Cedilla (Dead Cedilla) key */ | |
3919 static final String DEAD_CEDILLA = "DeadCedilla"; | |
3920 | |
3921 /** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */ | |
3922 static final String DEAD_OGONEK = "DeadOgonek"; | |
3923 | |
3924 /** | |
3925 * The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota | |
3926 * Subscript, Dead Iota) key | |
3927 */ | |
3928 static final String DEAD_IOTA = "DeadIota"; | |
3929 | |
3930 /** | |
3931 * The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key | |
3932 */ | |
3933 static final String DEAD_VOICED_SOUND = "DeadVoicedSound"; | |
3934 | |
3935 /** | |
3936 * The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced | |
3937 * Sound) key | |
3938 */ | |
3939 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; | |
3940 | |
3941 /** | |
3942 * Key value used when an implementation is unable to identify another key | |
3943 * value, due to either hardware, platform, or software constraints | |
3944 */ | |
3945 static final String UNIDENTIFIED = "Unidentified"; | |
3946 } | |
3947 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3948 // for details. All rights reserved. Use of this source code is governed by a | |
3949 // BSD-style license that can be found in the LICENSE file. | |
3950 | |
3951 // WARNING: Do not edit - generated code. | |
3952 | |
3953 interface KeygenElement extends Element { | |
3954 | |
3955 bool get autofocus(); | |
3956 | |
3957 void set autofocus(bool value); | |
3958 | |
3959 String get challenge(); | |
3960 | |
3961 void set challenge(String value); | |
3962 | |
3963 bool get disabled(); | |
3964 | |
3965 void set disabled(bool value); | |
3966 | |
3967 FormElement get form(); | |
3968 | |
3969 String get keytype(); | |
3970 | |
3971 void set keytype(String value); | |
3972 | |
3973 ElementList get labels(); | |
3974 | |
3975 String get name(); | |
3976 | |
3977 void set name(String value); | |
3978 | |
3979 String get type(); | |
3980 | |
3981 String get validationMessage(); | |
3982 | |
3983 ValidityState get validity(); | |
3984 | |
3985 bool get willValidate(); | |
3986 | |
3987 bool checkValidity(); | |
3988 | |
3989 void setCustomValidity(String error); | |
3990 } | |
3991 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
3992 // for details. All rights reserved. Use of this source code is governed by a | |
3993 // BSD-style license that can be found in the LICENSE file. | |
3994 | |
3995 // WARNING: Do not edit - generated code. | |
3996 | |
3997 interface LIElement extends Element { | |
3998 | |
3999 String get type(); | |
4000 | |
4001 void set type(String value); | |
4002 | |
4003 int get value(); | |
4004 | |
4005 void set value(int value); | |
4006 } | |
4007 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4008 // for details. All rights reserved. Use of this source code is governed by a | |
4009 // BSD-style license that can be found in the LICENSE file. | |
4010 | |
4011 // WARNING: Do not edit - generated code. | |
4012 | |
4013 interface LabelElement extends Element { | |
4014 | |
4015 String get accessKey(); | |
4016 | |
4017 void set accessKey(String value); | |
4018 | |
4019 Element get control(); | |
4020 | |
4021 FormElement get form(); | |
4022 | |
4023 String get htmlFor(); | |
4024 | |
4025 void set htmlFor(String value); | |
4026 } | |
4027 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4028 // for details. All rights reserved. Use of this source code is governed by a | |
4029 // BSD-style license that can be found in the LICENSE file. | |
4030 | |
4031 // WARNING: Do not edit - generated code. | |
4032 | |
4033 interface LegendElement extends Element { | |
4034 | |
4035 String get accessKey(); | |
4036 | |
4037 void set accessKey(String value); | |
4038 | |
4039 String get align(); | |
4040 | |
4041 void set align(String value); | |
4042 | |
4043 FormElement get form(); | |
4044 } | |
4045 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4046 // for details. All rights reserved. Use of this source code is governed by a | |
4047 // BSD-style license that can be found in the LICENSE file. | |
4048 | |
4049 // WARNING: Do not edit - generated code. | |
4050 | |
4051 interface LinkElement extends Element { | |
4052 | |
4053 String get charset(); | |
4054 | |
4055 void set charset(String value); | |
4056 | |
4057 bool get disabled(); | |
4058 | |
4059 void set disabled(bool value); | |
4060 | |
4061 String get href(); | |
4062 | |
4063 void set href(String value); | |
4064 | |
4065 String get hreflang(); | |
4066 | |
4067 void set hreflang(String value); | |
4068 | |
4069 String get media(); | |
4070 | |
4071 void set media(String value); | |
4072 | |
4073 String get rel(); | |
4074 | |
4075 void set rel(String value); | |
4076 | |
4077 String get rev(); | |
4078 | |
4079 void set rev(String value); | |
4080 | |
4081 StyleSheet get sheet(); | |
4082 | |
4083 String get target(); | |
4084 | |
4085 void set target(String value); | |
4086 | |
4087 String get type(); | |
4088 | |
4089 void set type(String value); | |
4090 } | |
4091 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4092 // for details. All rights reserved. Use of this source code is governed by a | |
4093 // BSD-style license that can be found in the LICENSE file. | |
4094 | |
4095 // WARNING: Do not edit - generated code. | |
4096 | |
4097 interface LocalMediaStream extends MediaStream { | |
4098 | |
4099 void stop(); | |
4100 } | |
4101 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4102 // for details. All rights reserved. Use of this source code is governed by a | |
4103 // BSD-style license that can be found in the LICENSE file. | |
4104 | |
4105 // WARNING: Do not edit - generated code. | |
4106 | |
4107 interface Location { | |
4108 | |
4109 String get hash(); | |
4110 | |
4111 void set hash(String value); | |
4112 | |
4113 String get host(); | |
4114 | |
4115 void set host(String value); | |
4116 | |
4117 String get hostname(); | |
4118 | |
4119 void set hostname(String value); | |
4120 | |
4121 String get href(); | |
4122 | |
4123 void set href(String value); | |
4124 | |
4125 String get origin(); | |
4126 | |
4127 String get pathname(); | |
4128 | |
4129 void set pathname(String value); | |
4130 | |
4131 String get port(); | |
4132 | |
4133 void set port(String value); | |
4134 | |
4135 String get protocol(); | |
4136 | |
4137 void set protocol(String value); | |
4138 | |
4139 String get search(); | |
4140 | |
4141 void set search(String value); | |
4142 | |
4143 void assign(String url); | |
4144 | |
4145 String getParameter(String name); | |
4146 | |
4147 void reload(); | |
4148 | |
4149 void replace(String url); | |
4150 } | |
4151 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4152 // for details. All rights reserved. Use of this source code is governed by a | |
4153 // BSD-style license that can be found in the LICENSE file. | |
4154 | |
4155 // WARNING: Do not edit - generated code. | |
4156 | |
4157 interface LoseContext { | |
4158 | |
4159 void loseContext(); | |
4160 | |
4161 void restoreContext(); | |
4162 } | |
4163 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4164 // for details. All rights reserved. Use of this source code is governed by a | |
4165 // BSD-style license that can be found in the LICENSE file. | |
4166 | |
4167 // WARNING: Do not edit - generated code. | |
4168 | |
4169 interface MapElement extends Element { | |
4170 | |
4171 ElementList get areas(); | |
4172 | |
4173 String get name(); | |
4174 | |
4175 void set name(String value); | |
4176 } | |
4177 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4178 // for details. All rights reserved. Use of this source code is governed by a | |
4179 // BSD-style license that can be found in the LICENSE file. | |
4180 | |
4181 // WARNING: Do not edit - generated code. | |
4182 | |
4183 interface MarqueeElement extends Element { | |
4184 | |
4185 String get behavior(); | |
4186 | |
4187 void set behavior(String value); | |
4188 | |
4189 String get bgColor(); | |
4190 | |
4191 void set bgColor(String value); | |
4192 | |
4193 String get direction(); | |
4194 | |
4195 void set direction(String value); | |
4196 | |
4197 String get height(); | |
4198 | |
4199 void set height(String value); | |
4200 | |
4201 int get hspace(); | |
4202 | |
4203 void set hspace(int value); | |
4204 | |
4205 int get loop(); | |
4206 | |
4207 void set loop(int value); | |
4208 | |
4209 int get scrollAmount(); | |
4210 | |
4211 void set scrollAmount(int value); | |
4212 | |
4213 int get scrollDelay(); | |
4214 | |
4215 void set scrollDelay(int value); | |
4216 | |
4217 bool get trueSpeed(); | |
4218 | |
4219 void set trueSpeed(bool value); | |
4220 | |
4221 int get vspace(); | |
4222 | |
4223 void set vspace(int value); | |
4224 | |
4225 String get width(); | |
4226 | |
4227 void set width(String value); | |
4228 | |
4229 void start(); | |
4230 | |
4231 void stop(); | |
4232 } | |
4233 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4234 // for details. All rights reserved. Use of this source code is governed by a | |
4235 // BSD-style license that can be found in the LICENSE file. | |
4236 | |
4237 // WARNING: Do not edit - generated code. | |
4238 | |
4239 interface MediaElement extends Element { | |
4240 | |
4241 static final int HAVE_CURRENT_DATA = 2; | |
4242 | |
4243 static final int HAVE_ENOUGH_DATA = 4; | |
4244 | |
4245 static final int HAVE_FUTURE_DATA = 3; | |
4246 | |
4247 static final int HAVE_METADATA = 1; | |
4248 | |
4249 static final int HAVE_NOTHING = 0; | |
4250 | |
4251 static final int NETWORK_EMPTY = 0; | |
4252 | |
4253 static final int NETWORK_IDLE = 1; | |
4254 | |
4255 static final int NETWORK_LOADING = 2; | |
4256 | |
4257 static final int NETWORK_NO_SOURCE = 3; | |
4258 | |
4259 bool get autoplay(); | |
4260 | |
4261 void set autoplay(bool value); | |
4262 | |
4263 TimeRanges get buffered(); | |
4264 | |
4265 bool get controls(); | |
4266 | |
4267 void set controls(bool value); | |
4268 | |
4269 String get currentSrc(); | |
4270 | |
4271 num get currentTime(); | |
4272 | |
4273 void set currentTime(num value); | |
4274 | |
4275 bool get defaultMuted(); | |
4276 | |
4277 void set defaultMuted(bool value); | |
4278 | |
4279 num get defaultPlaybackRate(); | |
4280 | |
4281 void set defaultPlaybackRate(num value); | |
4282 | |
4283 num get duration(); | |
4284 | |
4285 bool get ended(); | |
4286 | |
4287 MediaError get error(); | |
4288 | |
4289 num get initialTime(); | |
4290 | |
4291 bool get loop(); | |
4292 | |
4293 void set loop(bool value); | |
4294 | |
4295 bool get muted(); | |
4296 | |
4297 void set muted(bool value); | |
4298 | |
4299 int get networkState(); | |
4300 | |
4301 bool get paused(); | |
4302 | |
4303 num get playbackRate(); | |
4304 | |
4305 void set playbackRate(num value); | |
4306 | |
4307 TimeRanges get played(); | |
4308 | |
4309 String get preload(); | |
4310 | |
4311 void set preload(String value); | |
4312 | |
4313 int get readyState(); | |
4314 | |
4315 TimeRanges get seekable(); | |
4316 | |
4317 bool get seeking(); | |
4318 | |
4319 String get src(); | |
4320 | |
4321 void set src(String value); | |
4322 | |
4323 num get startTime(); | |
4324 | |
4325 num get volume(); | |
4326 | |
4327 void set volume(num value); | |
4328 | |
4329 int get webkitAudioDecodedByteCount(); | |
4330 | |
4331 bool get webkitClosedCaptionsVisible(); | |
4332 | |
4333 void set webkitClosedCaptionsVisible(bool value); | |
4334 | |
4335 bool get webkitHasClosedCaptions(); | |
4336 | |
4337 bool get webkitPreservesPitch(); | |
4338 | |
4339 void set webkitPreservesPitch(bool value); | |
4340 | |
4341 int get webkitVideoDecodedByteCount(); | |
4342 | |
4343 String canPlayType(String type); | |
4344 | |
4345 void load(); | |
4346 | |
4347 void pause(); | |
4348 | |
4349 void play(); | |
4350 } | |
4351 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4352 // for details. All rights reserved. Use of this source code is governed by a | |
4353 // BSD-style license that can be found in the LICENSE file. | |
4354 | |
4355 // WARNING: Do not edit - generated code. | |
4356 | |
4357 interface MediaError { | |
4358 | |
4359 static final int MEDIA_ERR_ABORTED = 1; | |
4360 | |
4361 static final int MEDIA_ERR_DECODE = 3; | |
4362 | |
4363 static final int MEDIA_ERR_NETWORK = 2; | |
4364 | |
4365 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | |
4366 | |
4367 int get code(); | |
4368 } | |
4369 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4370 // for details. All rights reserved. Use of this source code is governed by a | |
4371 // BSD-style license that can be found in the LICENSE file. | |
4372 | |
4373 // WARNING: Do not edit - generated code. | |
4374 | |
4375 interface MediaList extends List<String> { | |
4376 | |
4377 int get length(); | |
4378 | |
4379 String get mediaText(); | |
4380 | |
4381 void set mediaText(String value); | |
4382 | |
4383 void appendMedium(String newMedium); | |
4384 | |
4385 void deleteMedium(String oldMedium); | |
4386 | |
4387 String item(int index); | |
4388 } | |
4389 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4390 // for details. All rights reserved. Use of this source code is governed by a | |
4391 // BSD-style license that can be found in the LICENSE file. | |
4392 | |
4393 // WARNING: Do not edit - generated code. | |
4394 | |
4395 interface MediaQueryList { | |
4396 | |
4397 bool get matches(); | |
4398 | |
4399 String get media(); | |
4400 | |
4401 void addListener(MediaQueryListListener listener); | |
4402 | |
4403 void removeListener(MediaQueryListListener listener); | |
4404 } | |
4405 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4406 // for details. All rights reserved. Use of this source code is governed by a | |
4407 // BSD-style license that can be found in the LICENSE file. | |
4408 | |
4409 // WARNING: Do not edit - generated code. | |
4410 | |
4411 interface MediaQueryListListener { | |
4412 | |
4413 void queryChanged(MediaQueryList list); | |
4414 } | |
4415 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4416 // for details. All rights reserved. Use of this source code is governed by a | |
4417 // BSD-style license that can be found in the LICENSE file. | |
4418 | |
4419 // WARNING: Do not edit - generated code. | |
4420 | |
4421 interface MediaStream { | |
4422 | |
4423 static final int ENDED = 2; | |
4424 | |
4425 static final int LIVE = 1; | |
4426 | |
4427 String get label(); | |
4428 | |
4429 EventListener get onended(); | |
4430 | |
4431 void set onended(EventListener value); | |
4432 | |
4433 int get readyState(); | |
4434 | |
4435 MediaStreamTrackList get tracks(); | |
4436 | |
4437 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
4438 | |
4439 bool dispatchEvent(Event event); | |
4440 | |
4441 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
4442 } | |
4443 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4444 // for details. All rights reserved. Use of this source code is governed by a | |
4445 // BSD-style license that can be found in the LICENSE file. | |
4446 | |
4447 // WARNING: Do not edit - generated code. | |
4448 | |
4449 interface MediaStreamList { | |
4450 | |
4451 int get length(); | |
4452 | |
4453 MediaStream item(int index); | |
4454 } | |
4455 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4456 // for details. All rights reserved. Use of this source code is governed by a | |
4457 // BSD-style license that can be found in the LICENSE file. | |
4458 | |
4459 // WARNING: Do not edit - generated code. | |
4460 | |
4461 interface MediaStreamTrack { | |
4462 | |
4463 bool get enabled(); | |
4464 | |
4465 void set enabled(bool value); | |
4466 | |
4467 String get kind(); | |
4468 | |
4469 String get label(); | |
4470 } | |
4471 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4472 // for details. All rights reserved. Use of this source code is governed by a | |
4473 // BSD-style license that can be found in the LICENSE file. | |
4474 | |
4475 // WARNING: Do not edit - generated code. | |
4476 | |
4477 interface MediaStreamTrackList { | |
4478 | |
4479 int get length(); | |
4480 | |
4481 MediaStreamTrack item(int index); | |
4482 } | |
4483 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4484 // for details. All rights reserved. Use of this source code is governed by a | |
4485 // BSD-style license that can be found in the LICENSE file. | |
4486 | |
4487 // WARNING: Do not edit - generated code. | |
4488 | |
4489 interface MenuElement extends Element { | |
4490 | |
4491 bool get compact(); | |
4492 | |
4493 void set compact(bool value); | |
4494 } | |
4495 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4496 // for details. All rights reserved. Use of this source code is governed by a | |
4497 // BSD-style license that can be found in the LICENSE file. | |
4498 | |
4499 // WARNING: Do not edit - generated code. | |
4500 | |
4501 interface MessageChannel { | |
4502 | |
4503 MessagePort get port1(); | |
4504 | |
4505 MessagePort get port2(); | |
4506 } | |
4507 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4508 // for details. All rights reserved. Use of this source code is governed by a | |
4509 // BSD-style license that can be found in the LICENSE file. | |
4510 | |
4511 // WARNING: Do not edit - generated code. | |
4512 | |
4513 interface MessageEvent extends Event { | |
4514 | |
4515 String get data(); | |
4516 | |
4517 String get lastEventId(); | |
4518 | |
4519 MessagePort get messagePort(); | |
4520 | |
4521 String get origin(); | |
4522 | |
4523 Window get source(); | |
4524 | |
4525 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring dataArg, String originArg, String lastEventIdArg, Window sourceArg, Messag
ePort messagePort); | |
4526 } | |
4527 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4528 // for details. All rights reserved. Use of this source code is governed by a | |
4529 // BSD-style license that can be found in the LICENSE file. | |
4530 | |
4531 // WARNING: Do not edit - generated code. | |
4532 | |
4533 interface MetaElement extends Element { | |
4534 | |
4535 String get content(); | |
4536 | |
4537 void set content(String value); | |
4538 | |
4539 String get httpEquiv(); | |
4540 | |
4541 void set httpEquiv(String value); | |
4542 | |
4543 String get name(); | |
4544 | |
4545 void set name(String value); | |
4546 | |
4547 String get scheme(); | |
4548 | |
4549 void set scheme(String value); | |
4550 } | |
4551 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4552 // for details. All rights reserved. Use of this source code is governed by a | |
4553 // BSD-style license that can be found in the LICENSE file. | |
4554 | |
4555 // WARNING: Do not edit - generated code. | |
4556 | |
4557 interface Metadata { | |
4558 | |
4559 Date get modificationTime(); | |
4560 } | |
4561 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4562 // for details. All rights reserved. Use of this source code is governed by a | |
4563 // BSD-style license that can be found in the LICENSE file. | |
4564 | |
4565 // WARNING: Do not edit - generated code. | |
4566 | |
4567 interface MetadataCallback { | |
4568 | |
4569 bool handleEvent(Metadata metadata); | |
4570 } | |
4571 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4572 // for details. All rights reserved. Use of this source code is governed by a | |
4573 // BSD-style license that can be found in the LICENSE file. | |
4574 | |
4575 // WARNING: Do not edit - generated code. | |
4576 | |
4577 interface MeterElement extends Element { | |
4578 | |
4579 FormElement get form(); | |
4580 | |
4581 num get high(); | |
4582 | |
4583 void set high(num value); | |
4584 | |
4585 ElementList get labels(); | |
4586 | |
4587 num get low(); | |
4588 | |
4589 void set low(num value); | |
4590 | |
4591 num get max(); | |
4592 | |
4593 void set max(num value); | |
4594 | |
4595 num get min(); | |
4596 | |
4597 void set min(num value); | |
4598 | |
4599 num get optimum(); | |
4600 | |
4601 void set optimum(num value); | |
4602 | |
4603 num get value(); | |
4604 | |
4605 void set value(num value); | |
4606 } | |
4607 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4608 // for details. All rights reserved. Use of this source code is governed by a | |
4609 // BSD-style license that can be found in the LICENSE file. | |
4610 | |
4611 // WARNING: Do not edit - generated code. | |
4612 | |
4613 interface ModElement extends Element { | |
4614 | |
4615 String get cite(); | |
4616 | |
4617 void set cite(String value); | |
4618 | |
4619 String get dateTime(); | |
4620 | |
4621 void set dateTime(String value); | |
4622 } | |
4623 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4624 // for details. All rights reserved. Use of this source code is governed by a | |
4625 // BSD-style license that can be found in the LICENSE file. | |
4626 | |
4627 // WARNING: Do not edit - generated code. | |
4628 | |
4629 interface MouseEvent extends UIEvent { | |
4630 | |
4631 bool get altKey(); | |
4632 | |
4633 int get button(); | |
4634 | |
4635 int get clientX(); | |
4636 | |
4637 int get clientY(); | |
4638 | |
4639 bool get ctrlKey(); | |
4640 | |
4641 Node get fromElement(); | |
4642 | |
4643 bool get metaKey(); | |
4644 | |
4645 int get offsetX(); | |
4646 | |
4647 int get offsetY(); | |
4648 | |
4649 EventTarget get relatedTarget(); | |
4650 | |
4651 int get screenX(); | |
4652 | |
4653 int get screenY(); | |
4654 | |
4655 bool get shiftKey(); | |
4656 | |
4657 Node get toElement(); | |
4658 | |
4659 int get x(); | |
4660 | |
4661 int get y(); | |
4662 | |
4663 void initMouseEvent(String type, bool canBubble, bool cancelable, Window view,
int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, b
ool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget); | |
4664 } | |
4665 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4666 // for details. All rights reserved. Use of this source code is governed by a | |
4667 // BSD-style license that can be found in the LICENSE file. | |
4668 | |
4669 // WARNING: Do not edit - generated code. | |
4670 | |
4671 interface MutationEvent extends Event { | |
4672 | |
4673 static final int ADDITION = 2; | |
4674 | |
4675 static final int MODIFICATION = 1; | |
4676 | |
4677 static final int REMOVAL = 3; | |
4678 | |
4679 int get attrChange(); | |
4680 | |
4681 String get attrName(); | |
4682 | |
4683 String get newValue(); | |
4684 | |
4685 String get prevValue(); | |
4686 | |
4687 Node get relatedNode(); | |
4688 | |
4689 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela
tedNode, String prevValue, String newValue, String attrName, int attrChange); | |
4690 } | |
4691 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4692 // for details. All rights reserved. Use of this source code is governed by a | |
4693 // BSD-style license that can be found in the LICENSE file. | |
4694 | |
4695 // WARNING: Do not edit - generated code. | |
4696 | |
4697 interface MutationRecord { | |
4698 | |
4699 ElementList get addedNodes(); | |
4700 | |
4701 String get attributeName(); | |
4702 | |
4703 String get attributeNamespace(); | |
4704 | |
4705 Node get nextSibling(); | |
4706 | |
4707 String get oldValue(); | |
4708 | |
4709 Node get previousSibling(); | |
4710 | |
4711 ElementList get removedNodes(); | |
4712 | |
4713 Node get target(); | |
4714 | |
4715 String get type(); | |
4716 } | |
4717 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4718 // for details. All rights reserved. Use of this source code is governed by a | |
4719 // BSD-style license that can be found in the LICENSE file. | |
4720 | |
4721 // WARNING: Do not edit - generated code. | |
4722 | |
4723 interface Navigator { | |
4724 | |
4725 String get appCodeName(); | |
4726 | |
4727 String get appName(); | |
4728 | |
4729 String get appVersion(); | |
4730 | |
4731 bool get cookieEnabled(); | |
4732 | |
4733 String get language(); | |
4734 | |
4735 DOMMimeTypeArray get mimeTypes(); | |
4736 | |
4737 bool get onLine(); | |
4738 | |
4739 String get platform(); | |
4740 | |
4741 DOMPluginArray get plugins(); | |
4742 | |
4743 String get product(); | |
4744 | |
4745 String get productSub(); | |
4746 | |
4747 String get userAgent(); | |
4748 | |
4749 String get vendor(); | |
4750 | |
4751 String get vendorSub(); | |
4752 | |
4753 void getStorageUpdates(); | |
4754 | |
4755 bool javaEnabled(); | |
4756 } | |
4757 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4758 // for details. All rights reserved. Use of this source code is governed by a | |
4759 // BSD-style license that can be found in the LICENSE file. | |
4760 | |
4761 // WARNING: Do not edit - generated code. | |
4762 | |
4763 interface NavigatorUserMediaError { | |
4764 | |
4765 static final int PERMISSION_DENIED = 1; | |
4766 | |
4767 int get code(); | |
4768 } | |
4769 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4770 // for details. All rights reserved. Use of this source code is governed by a | |
4771 // BSD-style license that can be found in the LICENSE file. | |
4772 | |
4773 // WARNING: Do not edit - generated code. | |
4774 | |
4775 interface NavigatorUserMediaErrorCallback { | |
4776 | |
4777 bool handleEvent(NavigatorUserMediaError error); | |
4778 } | |
4779 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4780 // for details. All rights reserved. Use of this source code is governed by a | |
4781 // BSD-style license that can be found in the LICENSE file. | |
4782 | |
4783 // WARNING: Do not edit - generated code. | |
4784 | |
4785 interface NavigatorUserMediaSuccessCallback { | |
4786 | |
4787 bool handleEvent(LocalMediaStream stream); | |
4788 } | |
4789 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4790 // for details. All rights reserved. Use of this source code is governed by a | |
4791 // BSD-style license that can be found in the LICENSE file. | |
4792 | |
4793 // WARNING: Do not edit - generated code. | |
4794 | |
4795 interface Notation extends Node { | |
4796 | |
4797 String get publicId(); | |
4798 | |
4799 String get systemId(); | |
4800 } | |
4801 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4802 // for details. All rights reserved. Use of this source code is governed by a | |
4803 // BSD-style license that can be found in the LICENSE file. | |
4804 | |
4805 // WARNING: Do not edit - generated code. | |
4806 | |
4807 interface NotificationCenter { | |
4808 | |
4809 int checkPermission(); | |
4810 | |
4811 Notification createHTMLNotification(String url); | |
4812 | |
4813 Notification createNotification(String iconUrl, String title, String body); | |
4814 | |
4815 void requestPermission(VoidCallback callback); | |
4816 } | |
4817 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4818 // for details. All rights reserved. Use of this source code is governed by a | |
4819 // BSD-style license that can be found in the LICENSE file. | |
4820 | |
4821 // WARNING: Do not edit - generated code. | |
4822 | |
4823 interface OESStandardDerivatives { | |
4824 | |
4825 static final int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | |
4826 } | |
4827 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4828 // for details. All rights reserved. Use of this source code is governed by a | |
4829 // BSD-style license that can be found in the LICENSE file. | |
4830 | |
4831 // WARNING: Do not edit - generated code. | |
4832 | |
4833 interface OESTextureFloat { | |
4834 } | |
4835 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4836 // for details. All rights reserved. Use of this source code is governed by a | |
4837 // BSD-style license that can be found in the LICENSE file. | |
4838 | |
4839 // WARNING: Do not edit - generated code. | |
4840 | |
4841 interface OESVertexArrayObject { | |
4842 | |
4843 static final int VERTEX_ARRAY_BINDING_OES = 0x85B5; | |
4844 | |
4845 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject); | |
4846 | |
4847 WebGLVertexArrayObjectOES createVertexArrayOES(); | |
4848 | |
4849 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject); | |
4850 | |
4851 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject); | |
4852 } | |
4853 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4854 // for details. All rights reserved. Use of this source code is governed by a | |
4855 // BSD-style license that can be found in the LICENSE file. | |
4856 | |
4857 // WARNING: Do not edit - generated code. | |
4858 | |
4859 interface OListElement extends Element { | |
4860 | |
4861 bool get compact(); | |
4862 | |
4863 void set compact(bool value); | |
4864 | |
4865 int get start(); | |
4866 | |
4867 void set start(int value); | |
4868 | |
4869 String get type(); | |
4870 | |
4871 void set type(String value); | |
4872 } | |
4873 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4874 // for details. All rights reserved. Use of this source code is governed by a | |
4875 // BSD-style license that can be found in the LICENSE file. | |
4876 | |
4877 // WARNING: Do not edit - generated code. | |
4878 | |
4879 interface ObjectElement extends Element { | |
4880 | |
4881 String get align(); | |
4882 | |
4883 void set align(String value); | |
4884 | |
4885 String get archive(); | |
4886 | |
4887 void set archive(String value); | |
4888 | |
4889 String get border(); | |
4890 | |
4891 void set border(String value); | |
4892 | |
4893 String get code(); | |
4894 | |
4895 void set code(String value); | |
4896 | |
4897 String get codeBase(); | |
4898 | |
4899 void set codeBase(String value); | |
4900 | |
4901 String get codeType(); | |
4902 | |
4903 void set codeType(String value); | |
4904 | |
4905 Document get contentDocument(); | |
4906 | |
4907 String get data(); | |
4908 | |
4909 void set data(String value); | |
4910 | |
4911 bool get declare(); | |
4912 | |
4913 void set declare(bool value); | |
4914 | |
4915 FormElement get form(); | |
4916 | |
4917 String get height(); | |
4918 | |
4919 void set height(String value); | |
4920 | |
4921 int get hspace(); | |
4922 | |
4923 void set hspace(int value); | |
4924 | |
4925 String get name(); | |
4926 | |
4927 void set name(String value); | |
4928 | |
4929 String get standby(); | |
4930 | |
4931 void set standby(String value); | |
4932 | |
4933 String get type(); | |
4934 | |
4935 void set type(String value); | |
4936 | |
4937 String get useMap(); | |
4938 | |
4939 void set useMap(String value); | |
4940 | |
4941 String get validationMessage(); | |
4942 | |
4943 ValidityState get validity(); | |
4944 | |
4945 int get vspace(); | |
4946 | |
4947 void set vspace(int value); | |
4948 | |
4949 String get width(); | |
4950 | |
4951 void set width(String value); | |
4952 | |
4953 bool get willValidate(); | |
4954 | |
4955 bool checkValidity(); | |
4956 | |
4957 void setCustomValidity(String error); | |
4958 } | |
4959 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4960 // for details. All rights reserved. Use of this source code is governed by a | |
4961 // BSD-style license that can be found in the LICENSE file. | |
4962 | |
4963 // WARNING: Do not edit - generated code. | |
4964 | |
4965 interface OperationNotAllowedException { | |
4966 | |
4967 static final int NOT_ALLOWED_ERR = 1; | |
4968 | |
4969 int get code(); | |
4970 | |
4971 String get message(); | |
4972 | |
4973 String get name(); | |
4974 } | |
4975 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4976 // for details. All rights reserved. Use of this source code is governed by a | |
4977 // BSD-style license that can be found in the LICENSE file. | |
4978 | |
4979 // WARNING: Do not edit - generated code. | |
4980 | |
4981 interface OptGroupElement extends Element { | |
4982 | |
4983 bool get disabled(); | |
4984 | |
4985 void set disabled(bool value); | |
4986 | |
4987 String get label(); | |
4988 | |
4989 void set label(String value); | |
4990 } | |
4991 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
4992 // for details. All rights reserved. Use of this source code is governed by a | |
4993 // BSD-style license that can be found in the LICENSE file. | |
4994 | |
4995 // WARNING: Do not edit - generated code. | |
4996 | |
4997 interface OptionElement extends Element { | |
4998 | |
4999 bool get defaultSelected(); | |
5000 | |
5001 void set defaultSelected(bool value); | |
5002 | |
5003 bool get disabled(); | |
5004 | |
5005 void set disabled(bool value); | |
5006 | |
5007 FormElement get form(); | |
5008 | |
5009 int get index(); | |
5010 | |
5011 String get label(); | |
5012 | |
5013 void set label(String value); | |
5014 | |
5015 bool get selected(); | |
5016 | |
5017 void set selected(bool value); | |
5018 | |
5019 String get text(); | |
5020 | |
5021 String get value(); | |
5022 | |
5023 void set value(String value); | |
5024 } | |
5025 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5026 // for details. All rights reserved. Use of this source code is governed by a | |
5027 // BSD-style license that can be found in the LICENSE file. | |
5028 | |
5029 // WARNING: Do not edit - generated code. | |
5030 | |
5031 interface OutputElement extends Element { | |
5032 | |
5033 String get defaultValue(); | |
5034 | |
5035 void set defaultValue(String value); | |
5036 | |
5037 FormElement get form(); | |
5038 | |
5039 DOMSettableTokenList get htmlFor(); | |
5040 | |
5041 void set htmlFor(DOMSettableTokenList value); | |
5042 | |
5043 ElementList get labels(); | |
5044 | |
5045 String get name(); | |
5046 | |
5047 void set name(String value); | |
5048 | |
5049 String get type(); | |
5050 | |
5051 String get validationMessage(); | |
5052 | |
5053 ValidityState get validity(); | |
5054 | |
5055 String get value(); | |
5056 | |
5057 void set value(String value); | |
5058 | |
5059 bool get willValidate(); | |
5060 | |
5061 bool checkValidity(); | |
5062 | |
5063 void setCustomValidity(String error); | |
5064 } | |
5065 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5066 // for details. All rights reserved. Use of this source code is governed by a | |
5067 // BSD-style license that can be found in the LICENSE file. | |
5068 | |
5069 // WARNING: Do not edit - generated code. | |
5070 | |
5071 interface OverflowEvent extends Event { | |
5072 | |
5073 static final int BOTH = 2; | |
5074 | |
5075 static final int HORIZONTAL = 0; | |
5076 | |
5077 static final int VERTICAL = 1; | |
5078 | |
5079 bool get horizontalOverflow(); | |
5080 | |
5081 int get orient(); | |
5082 | |
5083 bool get verticalOverflow(); | |
5084 | |
5085 void initOverflowEvent(int orient, bool horizontalOverflow, bool verticalOverf
low); | |
5086 } | |
5087 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5088 // for details. All rights reserved. Use of this source code is governed by a | |
5089 // BSD-style license that can be found in the LICENSE file. | |
5090 | |
5091 // WARNING: Do not edit - generated code. | |
5092 | |
5093 interface PageTransitionEvent extends Event { | |
5094 | |
5095 bool get persisted(); | |
5096 | |
5097 void initPageTransitionEvent(String typeArg, bool canBubbleArg, bool cancelabl
eArg, bool persisted); | |
5098 } | |
5099 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5100 // for details. All rights reserved. Use of this source code is governed by a | |
5101 // BSD-style license that can be found in the LICENSE file. | |
5102 | |
5103 // WARNING: Do not edit - generated code. | |
5104 | |
5105 interface ParagraphElement extends Element { | |
5106 | |
5107 String get align(); | |
5108 | |
5109 void set align(String value); | |
5110 } | |
5111 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5112 // for details. All rights reserved. Use of this source code is governed by a | |
5113 // BSD-style license that can be found in the LICENSE file. | |
5114 | |
5115 // WARNING: Do not edit - generated code. | |
5116 | |
5117 interface ParamElement extends Element { | |
5118 | |
5119 String get name(); | |
5120 | |
5121 void set name(String value); | |
5122 | |
5123 String get type(); | |
5124 | |
5125 void set type(String value); | |
5126 | |
5127 String get value(); | |
5128 | |
5129 void set value(String value); | |
5130 | |
5131 String get valueType(); | |
5132 | |
5133 void set valueType(String value); | |
5134 } | |
5135 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5136 // for details. All rights reserved. Use of this source code is governed by a | |
5137 // BSD-style license that can be found in the LICENSE file. | |
5138 | |
5139 // WARNING: Do not edit - generated code. | |
5140 | |
5141 interface Point factory _PointFactoryProvider { | |
5142 | |
5143 Point(num x, num y); | |
5144 | |
5145 num get x(); | |
5146 | |
5147 void set x(num value); | |
5148 | |
5149 num get y(); | |
5150 | |
5151 void set y(num value); | |
5152 } | |
5153 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5154 // for details. All rights reserved. Use of this source code is governed by a | |
5155 // BSD-style license that can be found in the LICENSE file. | |
5156 | |
5157 // WARNING: Do not edit - generated code. | |
5158 | |
5159 interface PopStateEvent extends Event { | |
5160 | |
5161 String get state(); | |
5162 | |
5163 void initPopStateEvent(String typeArg, bool canBubbleArg, bool cancelableArg,
Object stateArg); | |
5164 } | |
5165 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5166 // for details. All rights reserved. Use of this source code is governed by a | |
5167 // BSD-style license that can be found in the LICENSE file. | |
5168 | |
5169 // WARNING: Do not edit - generated code. | |
5170 | |
5171 interface PositionCallback { | |
5172 | |
5173 bool handleEvent(Geoposition position); | |
5174 } | |
5175 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5176 // for details. All rights reserved. Use of this source code is governed by a | |
5177 // BSD-style license that can be found in the LICENSE file. | |
5178 | |
5179 // WARNING: Do not edit - generated code. | |
5180 | |
5181 interface PositionError { | |
5182 | |
5183 static final int PERMISSION_DENIED = 1; | |
5184 | |
5185 static final int POSITION_UNAVAILABLE = 2; | |
5186 | |
5187 static final int TIMEOUT = 3; | |
5188 | |
5189 int get code(); | |
5190 | |
5191 String get message(); | |
5192 } | |
5193 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5194 // for details. All rights reserved. Use of this source code is governed by a | |
5195 // BSD-style license that can be found in the LICENSE file. | |
5196 | |
5197 // WARNING: Do not edit - generated code. | |
5198 | |
5199 interface PositionErrorCallback { | |
5200 | |
5201 bool handleEvent(PositionError error); | |
5202 } | |
5203 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5204 // for details. All rights reserved. Use of this source code is governed by a | |
5205 // BSD-style license that can be found in the LICENSE file. | |
5206 | |
5207 // WARNING: Do not edit - generated code. | |
5208 | |
5209 interface PreElement extends Element { | |
5210 | |
5211 int get width(); | |
5212 | |
5213 void set width(int value); | |
5214 | |
5215 bool get wrap(); | |
5216 | |
5217 void set wrap(bool value); | |
5218 } | |
5219 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5220 // for details. All rights reserved. Use of this source code is governed by a | |
5221 // BSD-style license that can be found in the LICENSE file. | |
5222 | |
5223 // WARNING: Do not edit - generated code. | |
5224 | |
5225 interface ProcessingInstruction extends Node { | |
5226 | |
5227 String get data(); | |
5228 | |
5229 void set data(String value); | |
5230 | |
5231 StyleSheet get sheet(); | |
5232 | |
5233 String get target(); | |
5234 } | |
5235 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5236 // for details. All rights reserved. Use of this source code is governed by a | |
5237 // BSD-style license that can be found in the LICENSE file. | |
5238 | |
5239 // WARNING: Do not edit - generated code. | |
5240 | |
5241 interface ProgressElement extends Element { | |
5242 | |
5243 FormElement get form(); | |
5244 | |
5245 ElementList get labels(); | |
5246 | |
5247 num get max(); | |
5248 | |
5249 void set max(num value); | |
5250 | |
5251 num get position(); | |
5252 | |
5253 num get value(); | |
5254 | |
5255 void set value(num value); | |
5256 } | |
5257 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5258 // for details. All rights reserved. Use of this source code is governed by a | |
5259 // BSD-style license that can be found in the LICENSE file. | |
5260 | |
5261 // WARNING: Do not edit - generated code. | |
5262 | |
5263 interface ProgressEvent extends Event { | |
5264 | |
5265 bool get lengthComputable(); | |
5266 | |
5267 int get loaded(); | |
5268 | |
5269 int get total(); | |
5270 | |
5271 void initProgressEvent(String typeArg, bool canBubbleArg, bool cancelableArg,
bool lengthComputableArg, int loadedArg, int totalArg); | |
5272 } | |
5273 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5274 // for details. All rights reserved. Use of this source code is governed by a | |
5275 // BSD-style license that can be found in the LICENSE file. | |
5276 | |
5277 // WARNING: Do not edit - generated code. | |
5278 | |
5279 interface QuoteElement extends Element { | |
5280 | |
5281 String get cite(); | |
5282 | |
5283 void set cite(String value); | |
5284 } | |
5285 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5286 // for details. All rights reserved. Use of this source code is governed by a | |
5287 // BSD-style license that can be found in the LICENSE file. | |
5288 | |
5289 // WARNING: Do not edit - generated code. | |
5290 | |
5291 interface RGBColor { | |
5292 | |
5293 CSSPrimitiveValue get alpha(); | |
5294 | |
5295 CSSPrimitiveValue get blue(); | |
5296 | |
5297 CSSPrimitiveValue get green(); | |
5298 | |
5299 CSSPrimitiveValue get red(); | |
5300 } | |
5301 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5302 // for details. All rights reserved. Use of this source code is governed by a | |
5303 // BSD-style license that can be found in the LICENSE file. | |
5304 | |
5305 // WARNING: Do not edit - generated code. | |
5306 | |
5307 interface Range { | |
5308 | |
5309 static final int END_TO_END = 2; | |
5310 | |
5311 static final int END_TO_START = 3; | |
5312 | |
5313 static final int NODE_AFTER = 1; | |
5314 | |
5315 static final int NODE_BEFORE = 0; | |
5316 | |
5317 static final int NODE_BEFORE_AND_AFTER = 2; | |
5318 | |
5319 static final int NODE_INSIDE = 3; | |
5320 | |
5321 static final int START_TO_END = 1; | |
5322 | |
5323 static final int START_TO_START = 0; | |
5324 | |
5325 bool get collapsed(); | |
5326 | |
5327 Node get commonAncestorContainer(); | |
5328 | |
5329 Node get endContainer(); | |
5330 | |
5331 int get endOffset(); | |
5332 | |
5333 Node get startContainer(); | |
5334 | |
5335 int get startOffset(); | |
5336 | |
5337 String get text(); | |
5338 | |
5339 DocumentFragment cloneContents(); | |
5340 | |
5341 Range cloneRange(); | |
5342 | |
5343 void collapse(bool toStart); | |
5344 | |
5345 int compareNode(Node refNode); | |
5346 | |
5347 int comparePoint(Node refNode, int offset); | |
5348 | |
5349 DocumentFragment createContextualFragment(String html); | |
5350 | |
5351 void deleteContents(); | |
5352 | |
5353 void detach(); | |
5354 | |
5355 void expand(String unit); | |
5356 | |
5357 DocumentFragment extractContents(); | |
5358 | |
5359 void insertNode(Node newNode); | |
5360 | |
5361 bool intersectsNode(Node refNode); | |
5362 | |
5363 bool isPointInRange(Node refNode, int offset); | |
5364 | |
5365 void selectNode(Node refNode); | |
5366 | |
5367 void selectNodeContents(Node refNode); | |
5368 | |
5369 void setEnd(Node refNode, int offset); | |
5370 | |
5371 void setEndAfter(Node refNode); | |
5372 | |
5373 void setEndBefore(Node refNode); | |
5374 | |
5375 void setStart(Node refNode, int offset); | |
5376 | |
5377 void setStartAfter(Node refNode); | |
5378 | |
5379 void setStartBefore(Node refNode); | |
5380 | |
5381 void surroundContents(Node newParent); | |
5382 | |
5383 String toString(); | |
5384 } | |
5385 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5386 // for details. All rights reserved. Use of this source code is governed by a | |
5387 // BSD-style license that can be found in the LICENSE file. | |
5388 | |
5389 // WARNING: Do not edit - generated code. | |
5390 | |
5391 interface RangeException { | |
5392 | |
5393 static final int BAD_BOUNDARYPOINTS_ERR = 1; | |
5394 | |
5395 static final int INVALID_NODE_TYPE_ERR = 2; | |
5396 | |
5397 int get code(); | |
5398 | |
5399 String get message(); | |
5400 | |
5401 String get name(); | |
5402 } | |
5403 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5404 // for details. All rights reserved. Use of this source code is governed by a | |
5405 // BSD-style license that can be found in the LICENSE file. | |
5406 | |
5407 // WARNING: Do not edit - generated code. | |
5408 | |
5409 interface Rect { | |
5410 | |
5411 CSSPrimitiveValue get bottom(); | |
5412 | |
5413 CSSPrimitiveValue get left(); | |
5414 | |
5415 CSSPrimitiveValue get right(); | |
5416 | |
5417 CSSPrimitiveValue get top(); | |
5418 } | |
5419 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5420 // for details. All rights reserved. Use of this source code is governed by a | |
5421 // BSD-style license that can be found in the LICENSE file. | |
5422 | |
5423 // WARNING: Do not edit - generated code. | |
5424 | |
5425 interface Screen { | |
5426 | |
5427 int get availHeight(); | |
5428 | |
5429 int get availLeft(); | |
5430 | |
5431 int get availTop(); | |
5432 | |
5433 int get availWidth(); | |
5434 | |
5435 int get colorDepth(); | |
5436 | |
5437 int get height(); | |
5438 | |
5439 int get pixelDepth(); | |
5440 | |
5441 int get width(); | |
5442 } | |
5443 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5444 // for details. All rights reserved. Use of this source code is governed by a | |
5445 // BSD-style license that can be found in the LICENSE file. | |
5446 | |
5447 // WARNING: Do not edit - generated code. | |
5448 | |
5449 interface ScriptElement extends Element { | |
5450 | |
5451 bool get async(); | |
5452 | |
5453 void set async(bool value); | |
5454 | |
5455 String get charset(); | |
5456 | |
5457 void set charset(String value); | |
5458 | |
5459 bool get defer(); | |
5460 | |
5461 void set defer(bool value); | |
5462 | |
5463 String get event(); | |
5464 | |
5465 void set event(String value); | |
5466 | |
5467 String get htmlFor(); | |
5468 | |
5469 void set htmlFor(String value); | |
5470 | |
5471 String get src(); | |
5472 | |
5473 void set src(String value); | |
5474 | |
5475 String get text(); | |
5476 | |
5477 void set text(String value); | |
5478 | |
5479 String get type(); | |
5480 | |
5481 void set type(String value); | |
5482 } | |
5483 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5484 // for details. All rights reserved. Use of this source code is governed by a | |
5485 // BSD-style license that can be found in the LICENSE file. | |
5486 | |
5487 // WARNING: Do not edit - generated code. | |
5488 | |
5489 interface SelectElement extends Element { | |
5490 | |
5491 bool get autofocus(); | |
5492 | |
5493 void set autofocus(bool value); | |
5494 | |
5495 bool get disabled(); | |
5496 | |
5497 void set disabled(bool value); | |
5498 | |
5499 FormElement get form(); | |
5500 | |
5501 ElementList get labels(); | |
5502 | |
5503 int get length(); | |
5504 | |
5505 void set length(int value); | |
5506 | |
5507 bool get multiple(); | |
5508 | |
5509 void set multiple(bool value); | |
5510 | |
5511 String get name(); | |
5512 | |
5513 void set name(String value); | |
5514 | |
5515 ElementList get options(); | |
5516 | |
5517 bool get required(); | |
5518 | |
5519 void set required(bool value); | |
5520 | |
5521 int get selectedIndex(); | |
5522 | |
5523 void set selectedIndex(int value); | |
5524 | |
5525 int get size(); | |
5526 | |
5527 void set size(int value); | |
5528 | |
5529 String get type(); | |
5530 | |
5531 String get validationMessage(); | |
5532 | |
5533 ValidityState get validity(); | |
5534 | |
5535 String get value(); | |
5536 | |
5537 void set value(String value); | |
5538 | |
5539 bool get willValidate(); | |
5540 | |
5541 void add(Element element, Element before); | |
5542 | |
5543 bool checkValidity(); | |
5544 | |
5545 Node item(int index); | |
5546 | |
5547 Node namedItem(String name); | |
5548 | |
5549 void setCustomValidity(String error); | |
5550 } | |
5551 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5552 // for details. All rights reserved. Use of this source code is governed by a | |
5553 // BSD-style license that can be found in the LICENSE file. | |
5554 | |
5555 // WARNING: Do not edit - generated code. | |
5556 | |
5557 interface SourceElement extends Element { | |
5558 | |
5559 String get media(); | |
5560 | |
5561 void set media(String value); | |
5562 | |
5563 String get src(); | |
5564 | |
5565 void set src(String value); | |
5566 | |
5567 String get type(); | |
5568 | |
5569 void set type(String value); | |
5570 } | |
5571 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5572 // for details. All rights reserved. Use of this source code is governed by a | |
5573 // BSD-style license that can be found in the LICENSE file. | |
5574 | |
5575 // WARNING: Do not edit - generated code. | |
5576 | |
5577 interface SpanElement extends Element { | |
5578 } | |
5579 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5580 // for details. All rights reserved. Use of this source code is governed by a | |
5581 // BSD-style license that can be found in the LICENSE file. | |
5582 | |
5583 // WARNING: Do not edit - generated code. | |
5584 | |
5585 interface SpeechInputEvent extends Event { | |
5586 | |
5587 SpeechInputResultList get results(); | |
5588 } | |
5589 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5590 // for details. All rights reserved. Use of this source code is governed by a | |
5591 // BSD-style license that can be found in the LICENSE file. | |
5592 | |
5593 // WARNING: Do not edit - generated code. | |
5594 | |
5595 interface SpeechInputResult { | |
5596 | |
5597 num get confidence(); | |
5598 | |
5599 String get utterance(); | |
5600 } | |
5601 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5602 // for details. All rights reserved. Use of this source code is governed by a | |
5603 // BSD-style license that can be found in the LICENSE file. | |
5604 | |
5605 // WARNING: Do not edit - generated code. | |
5606 | |
5607 interface SpeechInputResultList { | |
5608 | |
5609 int get length(); | |
5610 | |
5611 SpeechInputResult item(int index); | |
5612 } | |
5613 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5614 // for details. All rights reserved. Use of this source code is governed by a | |
5615 // BSD-style license that can be found in the LICENSE file. | |
5616 | |
5617 // WARNING: Do not edit - generated code. | |
5618 | |
5619 interface Storage { | |
5620 | |
5621 int get length(); | |
5622 | |
5623 void clear(); | |
5624 | |
5625 String getItem(String key); | |
5626 | |
5627 String key(int index); | |
5628 | |
5629 void removeItem(String key); | |
5630 | |
5631 void setItem(String key, String data); | |
5632 } | |
5633 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5634 // for details. All rights reserved. Use of this source code is governed by a | |
5635 // BSD-style license that can be found in the LICENSE file. | |
5636 | |
5637 // WARNING: Do not edit - generated code. | |
5638 | |
5639 interface StorageEvent extends Event { | |
5640 | |
5641 String get key(); | |
5642 | |
5643 String get newValue(); | |
5644 | |
5645 String get oldValue(); | |
5646 | |
5647 Storage get storageArea(); | |
5648 | |
5649 String get url(); | |
5650 | |
5651 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg); | |
5652 } | |
5653 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5654 // for details. All rights reserved. Use of this source code is governed by a | |
5655 // BSD-style license that can be found in the LICENSE file. | |
5656 | |
5657 // WARNING: Do not edit - generated code. | |
5658 | |
5659 interface StorageInfo { | |
5660 | |
5661 static final int PERSISTENT = 1; | |
5662 | |
5663 static final int TEMPORARY = 0; | |
5664 | |
5665 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]); | |
5666 | |
5667 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]); | |
5668 } | |
5669 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5670 // for details. All rights reserved. Use of this source code is governed by a | |
5671 // BSD-style license that can be found in the LICENSE file. | |
5672 | |
5673 // WARNING: Do not edit - generated code. | |
5674 | |
5675 interface StorageInfoErrorCallback { | |
5676 | |
5677 bool handleEvent(DOMException error); | |
5678 } | |
5679 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5680 // for details. All rights reserved. Use of this source code is governed by a | |
5681 // BSD-style license that can be found in the LICENSE file. | |
5682 | |
5683 // WARNING: Do not edit - generated code. | |
5684 | |
5685 interface StorageInfoQuotaCallback { | |
5686 | |
5687 bool handleEvent(int grantedQuotaInBytes); | |
5688 } | |
5689 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5690 // for details. All rights reserved. Use of this source code is governed by a | |
5691 // BSD-style license that can be found in the LICENSE file. | |
5692 | |
5693 // WARNING: Do not edit - generated code. | |
5694 | |
5695 interface StorageInfoUsageCallback { | |
5696 | |
5697 bool handleEvent(int currentUsageInBytes, int currentQuotaInBytes); | |
5698 } | |
5699 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5700 // for details. All rights reserved. Use of this source code is governed by a | |
5701 // BSD-style license that can be found in the LICENSE file. | |
5702 | |
5703 // WARNING: Do not edit - generated code. | |
5704 | |
5705 interface StringCallback { | |
5706 | |
5707 bool handleEvent(String data); | |
5708 } | |
5709 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5710 // for details. All rights reserved. Use of this source code is governed by a | |
5711 // BSD-style license that can be found in the LICENSE file. | |
5712 | |
5713 // WARNING: Do not edit - generated code. | |
5714 | |
5715 interface StyleElement extends Element { | |
5716 | |
5717 bool get disabled(); | |
5718 | |
5719 void set disabled(bool value); | |
5720 | |
5721 String get media(); | |
5722 | |
5723 void set media(String value); | |
5724 | |
5725 StyleSheet get sheet(); | |
5726 | |
5727 String get type(); | |
5728 | |
5729 void set type(String value); | |
5730 } | |
5731 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5732 // for details. All rights reserved. Use of this source code is governed by a | |
5733 // BSD-style license that can be found in the LICENSE file. | |
5734 | |
5735 // WARNING: Do not edit - generated code. | |
5736 | |
5737 interface StyleMedia { | |
5738 | |
5739 String get type(); | |
5740 | |
5741 bool matchMedium(String mediaquery); | |
5742 } | |
5743 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5744 // for details. All rights reserved. Use of this source code is governed by a | |
5745 // BSD-style license that can be found in the LICENSE file. | |
5746 | |
5747 // WARNING: Do not edit - generated code. | |
5748 | |
5749 interface StyleSheet { | |
5750 | |
5751 bool get disabled(); | |
5752 | |
5753 void set disabled(bool value); | |
5754 | |
5755 String get href(); | |
5756 | |
5757 MediaList get media(); | |
5758 | |
5759 Node get ownerNode(); | |
5760 | |
5761 StyleSheet get parentStyleSheet(); | |
5762 | |
5763 String get title(); | |
5764 | |
5765 String get type(); | |
5766 } | |
5767 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5768 // for details. All rights reserved. Use of this source code is governed by a | |
5769 // BSD-style license that can be found in the LICENSE file. | |
5770 | |
5771 // WARNING: Do not edit - generated code. | |
5772 | |
5773 interface StyleSheetList extends List<StyleSheet> { | |
5774 | |
5775 int get length(); | |
5776 | |
5777 StyleSheet item(int index); | |
5778 } | |
5779 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5780 // for details. All rights reserved. Use of this source code is governed by a | |
5781 // BSD-style license that can be found in the LICENSE file. | |
5782 | |
5783 // WARNING: Do not edit - generated code. | |
5784 | |
5785 interface TableCaptionElement extends Element { | |
5786 | |
5787 String get align(); | |
5788 | |
5789 void set align(String value); | |
5790 } | |
5791 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5792 // for details. All rights reserved. Use of this source code is governed by a | |
5793 // BSD-style license that can be found in the LICENSE file. | |
5794 | |
5795 // WARNING: Do not edit - generated code. | |
5796 | |
5797 interface TableCellElement extends Element { | |
5798 | |
5799 String get abbr(); | |
5800 | |
5801 void set abbr(String value); | |
5802 | |
5803 String get align(); | |
5804 | |
5805 void set align(String value); | |
5806 | |
5807 String get axis(); | |
5808 | |
5809 void set axis(String value); | |
5810 | |
5811 String get bgColor(); | |
5812 | |
5813 void set bgColor(String value); | |
5814 | |
5815 int get cellIndex(); | |
5816 | |
5817 String get ch(); | |
5818 | |
5819 void set ch(String value); | |
5820 | |
5821 String get chOff(); | |
5822 | |
5823 void set chOff(String value); | |
5824 | |
5825 int get colSpan(); | |
5826 | |
5827 void set colSpan(int value); | |
5828 | |
5829 String get headers(); | |
5830 | |
5831 void set headers(String value); | |
5832 | |
5833 String get height(); | |
5834 | |
5835 void set height(String value); | |
5836 | |
5837 bool get noWrap(); | |
5838 | |
5839 void set noWrap(bool value); | |
5840 | |
5841 int get rowSpan(); | |
5842 | |
5843 void set rowSpan(int value); | |
5844 | |
5845 String get scope(); | |
5846 | |
5847 void set scope(String value); | |
5848 | |
5849 String get vAlign(); | |
5850 | |
5851 void set vAlign(String value); | |
5852 | |
5853 String get width(); | |
5854 | |
5855 void set width(String value); | |
5856 } | |
5857 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5858 // for details. All rights reserved. Use of this source code is governed by a | |
5859 // BSD-style license that can be found in the LICENSE file. | |
5860 | |
5861 // WARNING: Do not edit - generated code. | |
5862 | |
5863 interface TableColElement extends Element { | |
5864 | |
5865 String get align(); | |
5866 | |
5867 void set align(String value); | |
5868 | |
5869 String get ch(); | |
5870 | |
5871 void set ch(String value); | |
5872 | |
5873 String get chOff(); | |
5874 | |
5875 void set chOff(String value); | |
5876 | |
5877 int get span(); | |
5878 | |
5879 void set span(int value); | |
5880 | |
5881 String get vAlign(); | |
5882 | |
5883 void set vAlign(String value); | |
5884 | |
5885 String get width(); | |
5886 | |
5887 void set width(String value); | |
5888 } | |
5889 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5890 // for details. All rights reserved. Use of this source code is governed by a | |
5891 // BSD-style license that can be found in the LICENSE file. | |
5892 | |
5893 // WARNING: Do not edit - generated code. | |
5894 | |
5895 interface TableElement extends Element { | |
5896 | |
5897 String get align(); | |
5898 | |
5899 void set align(String value); | |
5900 | |
5901 String get bgColor(); | |
5902 | |
5903 void set bgColor(String value); | |
5904 | |
5905 String get border(); | |
5906 | |
5907 void set border(String value); | |
5908 | |
5909 TableCaptionElement get caption(); | |
5910 | |
5911 void set caption(TableCaptionElement value); | |
5912 | |
5913 String get cellPadding(); | |
5914 | |
5915 void set cellPadding(String value); | |
5916 | |
5917 String get cellSpacing(); | |
5918 | |
5919 void set cellSpacing(String value); | |
5920 | |
5921 String get frame(); | |
5922 | |
5923 void set frame(String value); | |
5924 | |
5925 ElementList get rows(); | |
5926 | |
5927 String get rules(); | |
5928 | |
5929 void set rules(String value); | |
5930 | |
5931 String get summary(); | |
5932 | |
5933 void set summary(String value); | |
5934 | |
5935 ElementList get tBodies(); | |
5936 | |
5937 TableSectionElement get tFoot(); | |
5938 | |
5939 void set tFoot(TableSectionElement value); | |
5940 | |
5941 TableSectionElement get tHead(); | |
5942 | |
5943 void set tHead(TableSectionElement value); | |
5944 | |
5945 String get width(); | |
5946 | |
5947 void set width(String value); | |
5948 | |
5949 Element createCaption(); | |
5950 | |
5951 Element createTFoot(); | |
5952 | |
5953 Element createTHead(); | |
5954 | |
5955 void deleteCaption(); | |
5956 | |
5957 void deleteRow(int index); | |
5958 | |
5959 void deleteTFoot(); | |
5960 | |
5961 void deleteTHead(); | |
5962 | |
5963 Element insertRow(int index); | |
5964 } | |
5965 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
5966 // for details. All rights reserved. Use of this source code is governed by a | |
5967 // BSD-style license that can be found in the LICENSE file. | |
5968 | |
5969 // WARNING: Do not edit - generated code. | |
5970 | |
5971 interface TableRowElement extends Element { | |
5972 | |
5973 String get align(); | |
5974 | |
5975 void set align(String value); | |
5976 | |
5977 String get bgColor(); | |
5978 | |
5979 void set bgColor(String value); | |
5980 | |
5981 ElementList get cells(); | |
5982 | |
5983 String get ch(); | |
5984 | |
5985 void set ch(String value); | |
5986 | |
5987 String get chOff(); | |
5988 | |
5989 void set chOff(String value); | |
5990 | |
5991 int get rowIndex(); | |
5992 | |
5993 int get sectionRowIndex(); | |
5994 | |
5995 String get vAlign(); | |
5996 | |
5997 void set vAlign(String value); | |
5998 | |
5999 void deleteCell(int index); | |
6000 | |
6001 Element insertCell(int index); | |
6002 } | |
6003 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6004 // for details. All rights reserved. Use of this source code is governed by a | |
6005 // BSD-style license that can be found in the LICENSE file. | |
6006 | |
6007 // WARNING: Do not edit - generated code. | |
6008 | |
6009 interface TableSectionElement extends Element { | |
6010 | |
6011 String get align(); | |
6012 | |
6013 void set align(String value); | |
6014 | |
6015 String get ch(); | |
6016 | |
6017 void set ch(String value); | |
6018 | |
6019 String get chOff(); | |
6020 | |
6021 void set chOff(String value); | |
6022 | |
6023 ElementList get rows(); | |
6024 | |
6025 String get vAlign(); | |
6026 | |
6027 void set vAlign(String value); | |
6028 | |
6029 void deleteRow(int index); | |
6030 | |
6031 Element insertRow(int index); | |
6032 } | |
6033 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6034 // for details. All rights reserved. Use of this source code is governed by a | |
6035 // BSD-style license that can be found in the LICENSE file. | |
6036 | |
6037 // WARNING: Do not edit - generated code. | |
6038 | |
6039 interface TextAreaElement extends Element { | |
6040 | |
6041 String get accessKey(); | |
6042 | |
6043 void set accessKey(String value); | |
6044 | |
6045 bool get autofocus(); | |
6046 | |
6047 void set autofocus(bool value); | |
6048 | |
6049 int get cols(); | |
6050 | |
6051 void set cols(int value); | |
6052 | |
6053 String get defaultValue(); | |
6054 | |
6055 void set defaultValue(String value); | |
6056 | |
6057 bool get disabled(); | |
6058 | |
6059 void set disabled(bool value); | |
6060 | |
6061 FormElement get form(); | |
6062 | |
6063 ElementList get labels(); | |
6064 | |
6065 int get maxLength(); | |
6066 | |
6067 void set maxLength(int value); | |
6068 | |
6069 String get name(); | |
6070 | |
6071 void set name(String value); | |
6072 | |
6073 String get placeholder(); | |
6074 | |
6075 void set placeholder(String value); | |
6076 | |
6077 bool get readOnly(); | |
6078 | |
6079 void set readOnly(bool value); | |
6080 | |
6081 bool get required(); | |
6082 | |
6083 void set required(bool value); | |
6084 | |
6085 int get rows(); | |
6086 | |
6087 void set rows(int value); | |
6088 | |
6089 String get selectionDirection(); | |
6090 | |
6091 void set selectionDirection(String value); | |
6092 | |
6093 int get selectionEnd(); | |
6094 | |
6095 void set selectionEnd(int value); | |
6096 | |
6097 int get selectionStart(); | |
6098 | |
6099 void set selectionStart(int value); | |
6100 | |
6101 int get textLength(); | |
6102 | |
6103 String get type(); | |
6104 | |
6105 String get validationMessage(); | |
6106 | |
6107 ValidityState get validity(); | |
6108 | |
6109 String get value(); | |
6110 | |
6111 void set value(String value); | |
6112 | |
6113 bool get willValidate(); | |
6114 | |
6115 String get wrap(); | |
6116 | |
6117 void set wrap(String value); | |
6118 | |
6119 bool checkValidity(); | |
6120 | |
6121 void select(); | |
6122 | |
6123 void setCustomValidity(String error); | |
6124 | |
6125 void setSelectionRange(int start, int end, [String direction]); | |
6126 } | |
6127 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6128 // for details. All rights reserved. Use of this source code is governed by a | |
6129 // BSD-style license that can be found in the LICENSE file. | |
6130 | |
6131 // WARNING: Do not edit - generated code. | |
6132 | |
6133 interface TextEvent extends UIEvent { | |
6134 | |
6135 String get data(); | |
6136 | |
6137 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Wind
ow viewArg, String dataArg); | |
6138 } | |
6139 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6140 // for details. All rights reserved. Use of this source code is governed by a | |
6141 // BSD-style license that can be found in the LICENSE file. | |
6142 | |
6143 // WARNING: Do not edit - generated code. | |
6144 | |
6145 interface TextMetrics { | |
6146 | |
6147 num get width(); | |
6148 } | |
6149 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6150 // for details. All rights reserved. Use of this source code is governed by a | |
6151 // BSD-style license that can be found in the LICENSE file. | |
6152 | |
6153 // WARNING: Do not edit - generated code. | |
6154 | |
6155 interface TimeRanges { | |
6156 | |
6157 int get length(); | |
6158 | |
6159 num end(int index); | |
6160 | |
6161 num start(int index); | |
6162 } | |
6163 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6164 // for details. All rights reserved. Use of this source code is governed by a | |
6165 // BSD-style license that can be found in the LICENSE file. | |
6166 | |
6167 // WARNING: Do not edit - generated code. | |
6168 | |
6169 interface TitleElement extends Element { | |
6170 | |
6171 String get text(); | |
6172 | |
6173 void set text(String value); | |
6174 } | |
6175 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6176 // for details. All rights reserved. Use of this source code is governed by a | |
6177 // BSD-style license that can be found in the LICENSE file. | |
6178 | |
6179 // WARNING: Do not edit - generated code. | |
6180 | |
6181 interface Touch { | |
6182 | |
6183 int get clientX(); | |
6184 | |
6185 int get clientY(); | |
6186 | |
6187 int get identifier(); | |
6188 | |
6189 int get pageX(); | |
6190 | |
6191 int get pageY(); | |
6192 | |
6193 int get screenX(); | |
6194 | |
6195 int get screenY(); | |
6196 | |
6197 EventTarget get target(); | |
6198 | |
6199 num get webkitForce(); | |
6200 | |
6201 int get webkitRadiusX(); | |
6202 | |
6203 int get webkitRadiusY(); | |
6204 | |
6205 num get webkitRotationAngle(); | |
6206 } | |
6207 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6208 // for details. All rights reserved. Use of this source code is governed by a | |
6209 // BSD-style license that can be found in the LICENSE file. | |
6210 | |
6211 // WARNING: Do not edit - generated code. | |
6212 | |
6213 interface TouchEvent extends UIEvent { | |
6214 | |
6215 bool get altKey(); | |
6216 | |
6217 TouchList get changedTouches(); | |
6218 | |
6219 bool get ctrlKey(); | |
6220 | |
6221 bool get metaKey(); | |
6222 | |
6223 bool get shiftKey(); | |
6224 | |
6225 TouchList get targetTouches(); | |
6226 | |
6227 TouchList get touches(); | |
6228 | |
6229 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan
gedTouches, String type, Window view, int screenX, int screenY, int clientX, int
clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey); | |
6230 } | |
6231 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6232 // for details. All rights reserved. Use of this source code is governed by a | |
6233 // BSD-style license that can be found in the LICENSE file. | |
6234 | |
6235 // WARNING: Do not edit - generated code. | |
6236 | |
6237 interface TouchList extends List<Touch> { | |
6238 | |
6239 int get length(); | |
6240 | |
6241 Touch item(int index); | |
6242 } | |
6243 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6244 // for details. All rights reserved. Use of this source code is governed by a | |
6245 // BSD-style license that can be found in the LICENSE file. | |
6246 | |
6247 // WARNING: Do not edit - generated code. | |
6248 | |
6249 interface TrackElement extends Element { | |
6250 | |
6251 bool get isDefault(); | |
6252 | |
6253 void set isDefault(bool value); | |
6254 | |
6255 String get kind(); | |
6256 | |
6257 void set kind(String value); | |
6258 | |
6259 String get label(); | |
6260 | |
6261 void set label(String value); | |
6262 | |
6263 String get src(); | |
6264 | |
6265 void set src(String value); | |
6266 | |
6267 String get srclang(); | |
6268 | |
6269 void set srclang(String value); | |
6270 } | |
6271 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6272 // for details. All rights reserved. Use of this source code is governed by a | |
6273 // BSD-style license that can be found in the LICENSE file. | |
6274 | |
6275 // WARNING: Do not edit - generated code. | |
6276 | |
6277 interface TransitionEvent extends Event { | |
6278 | |
6279 num get elapsedTime(); | |
6280 | |
6281 String get propertyName(); | |
6282 | |
6283 void initWebKitTransitionEvent(String typeArg, bool canBubbleArg, bool cancela
bleArg, String propertyNameArg, num elapsedTimeArg); | |
6284 } | |
6285 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6286 // for details. All rights reserved. Use of this source code is governed by a | |
6287 // BSD-style license that can be found in the LICENSE file. | |
6288 | |
6289 // WARNING: Do not edit - generated code. | |
6290 | |
6291 interface UIEvent extends Event { | |
6292 | |
6293 int get charCode(); | |
6294 | |
6295 int get detail(); | |
6296 | |
6297 int get keyCode(); | |
6298 | |
6299 int get layerX(); | |
6300 | |
6301 int get layerY(); | |
6302 | |
6303 int get pageX(); | |
6304 | |
6305 int get pageY(); | |
6306 | |
6307 Window get view(); | |
6308 | |
6309 int get which(); | |
6310 | |
6311 void initUIEvent(String type, bool canBubble, bool cancelable, Window view, in
t detail); | |
6312 } | |
6313 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6314 // for details. All rights reserved. Use of this source code is governed by a | |
6315 // BSD-style license that can be found in the LICENSE file. | |
6316 | |
6317 // WARNING: Do not edit - generated code. | |
6318 | |
6319 interface UListElement extends Element { | |
6320 | |
6321 bool get compact(); | |
6322 | |
6323 void set compact(bool value); | |
6324 | |
6325 String get type(); | |
6326 | |
6327 void set type(String value); | |
6328 } | |
6329 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6330 // for details. All rights reserved. Use of this source code is governed by a | |
6331 // BSD-style license that can be found in the LICENSE file. | |
6332 | |
6333 // WARNING: Do not edit - generated code. | |
6334 | |
6335 interface Uint16Array extends ArrayBufferView { | |
6336 | |
6337 static final int BYTES_PER_ELEMENT = 2; | |
6338 | |
6339 int get length(); | |
6340 | |
6341 Uint16Array subarray(int start, [int end]); | |
6342 } | |
6343 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6344 // for details. All rights reserved. Use of this source code is governed by a | |
6345 // BSD-style license that can be found in the LICENSE file. | |
6346 | |
6347 // WARNING: Do not edit - generated code. | |
6348 | |
6349 interface Uint32Array extends ArrayBufferView { | |
6350 | |
6351 static final int BYTES_PER_ELEMENT = 4; | |
6352 | |
6353 int get length(); | |
6354 | |
6355 Uint32Array subarray(int start, [int end]); | |
6356 } | |
6357 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6358 // for details. All rights reserved. Use of this source code is governed by a | |
6359 // BSD-style license that can be found in the LICENSE file. | |
6360 | |
6361 // WARNING: Do not edit - generated code. | |
6362 | |
6363 interface Uint8Array extends ArrayBufferView { | |
6364 | |
6365 static final int BYTES_PER_ELEMENT = 1; | |
6366 | |
6367 int get length(); | |
6368 | |
6369 Uint8Array subarray(int start, [int end]); | |
6370 } | |
6371 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6372 // for details. All rights reserved. Use of this source code is governed by a | |
6373 // BSD-style license that can be found in the LICENSE file. | |
6374 | |
6375 // WARNING: Do not edit - generated code. | |
6376 | |
6377 interface UnknownElement extends Element { | |
6378 } | |
6379 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6380 // for details. All rights reserved. Use of this source code is governed by a | |
6381 // BSD-style license that can be found in the LICENSE file. | |
6382 | |
6383 // WARNING: Do not edit - generated code. | |
6384 | |
6385 interface ValidityState { | |
6386 | |
6387 bool get customError(); | |
6388 | |
6389 bool get patternMismatch(); | |
6390 | |
6391 bool get rangeOverflow(); | |
6392 | |
6393 bool get rangeUnderflow(); | |
6394 | |
6395 bool get stepMismatch(); | |
6396 | |
6397 bool get tooLong(); | |
6398 | |
6399 bool get typeMismatch(); | |
6400 | |
6401 bool get valid(); | |
6402 | |
6403 bool get valueMissing(); | |
6404 } | |
6405 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6406 // for details. All rights reserved. Use of this source code is governed by a | |
6407 // BSD-style license that can be found in the LICENSE file. | |
6408 | |
6409 // WARNING: Do not edit - generated code. | |
6410 | |
6411 interface VideoElement extends MediaElement { | |
6412 | |
6413 int get height(); | |
6414 | |
6415 void set height(int value); | |
6416 | |
6417 String get poster(); | |
6418 | |
6419 void set poster(String value); | |
6420 | |
6421 int get videoHeight(); | |
6422 | |
6423 int get videoWidth(); | |
6424 | |
6425 int get webkitDecodedFrameCount(); | |
6426 | |
6427 bool get webkitDisplayingFullscreen(); | |
6428 | |
6429 int get webkitDroppedFrameCount(); | |
6430 | |
6431 bool get webkitSupportsFullscreen(); | |
6432 | |
6433 int get width(); | |
6434 | |
6435 void set width(int value); | |
6436 | |
6437 void webkitEnterFullScreen(); | |
6438 | |
6439 void webkitEnterFullscreen(); | |
6440 | |
6441 void webkitExitFullScreen(); | |
6442 | |
6443 void webkitExitFullscreen(); | |
6444 } | |
6445 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6446 // for details. All rights reserved. Use of this source code is governed by a | |
6447 // BSD-style license that can be found in the LICENSE file. | |
6448 | |
6449 // WARNING: Do not edit - generated code. | |
6450 | |
6451 interface VoidCallback { | |
6452 | |
6453 void handleEvent(); | |
6454 } | |
6455 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6456 // for details. All rights reserved. Use of this source code is governed by a | |
6457 // BSD-style license that can be found in the LICENSE file. | |
6458 | |
6459 // WARNING: Do not edit - generated code. | |
6460 | |
6461 interface WebGLActiveInfo { | |
6462 | |
6463 String get name(); | |
6464 | |
6465 int get size(); | |
6466 | |
6467 int get type(); | |
6468 } | |
6469 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6470 // for details. All rights reserved. Use of this source code is governed by a | |
6471 // BSD-style license that can be found in the LICENSE file. | |
6472 | |
6473 // WARNING: Do not edit - generated code. | |
6474 | |
6475 interface WebGLBuffer { | |
6476 } | |
6477 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6478 // for details. All rights reserved. Use of this source code is governed by a | |
6479 // BSD-style license that can be found in the LICENSE file. | |
6480 | |
6481 // WARNING: Do not edit - generated code. | |
6482 | |
6483 interface WebGLContextAttributes { | |
6484 | |
6485 bool get alpha(); | |
6486 | |
6487 void set alpha(bool value); | |
6488 | |
6489 bool get antialias(); | |
6490 | |
6491 void set antialias(bool value); | |
6492 | |
6493 bool get depth(); | |
6494 | |
6495 void set depth(bool value); | |
6496 | |
6497 bool get premultipliedAlpha(); | |
6498 | |
6499 void set premultipliedAlpha(bool value); | |
6500 | |
6501 bool get preserveDrawingBuffer(); | |
6502 | |
6503 void set preserveDrawingBuffer(bool value); | |
6504 | |
6505 bool get stencil(); | |
6506 | |
6507 void set stencil(bool value); | |
6508 } | |
6509 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6510 // for details. All rights reserved. Use of this source code is governed by a | |
6511 // BSD-style license that can be found in the LICENSE file. | |
6512 | |
6513 // WARNING: Do not edit - generated code. | |
6514 | |
6515 interface WebGLContextEvent extends Event { | |
6516 | |
6517 String get statusMessage(); | |
6518 } | |
6519 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6520 // for details. All rights reserved. Use of this source code is governed by a | |
6521 // BSD-style license that can be found in the LICENSE file. | |
6522 | |
6523 // WARNING: Do not edit - generated code. | |
6524 | |
6525 interface WebGLFramebuffer { | |
6526 } | |
6527 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6528 // for details. All rights reserved. Use of this source code is governed by a | |
6529 // BSD-style license that can be found in the LICENSE file. | |
6530 | |
6531 // WARNING: Do not edit - generated code. | |
6532 | |
6533 interface WebGLProgram { | |
6534 } | |
6535 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6536 // for details. All rights reserved. Use of this source code is governed by a | |
6537 // BSD-style license that can be found in the LICENSE file. | |
6538 | |
6539 // WARNING: Do not edit - generated code. | |
6540 | |
6541 interface WebGLRenderbuffer { | |
6542 } | |
6543 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
6544 // for details. All rights reserved. Use of this source code is governed by a | |
6545 // BSD-style license that can be found in the LICENSE file. | |
6546 | |
6547 // WARNING: Do not edit - generated code. | |
6548 | |
6549 interface WebGLRenderingContext extends CanvasRenderingContext { | |
6550 | |
6551 static final int ACTIVE_ATTRIBUTES = 0x8B89; | |
6552 | |
6553 static final int ACTIVE_TEXTURE = 0x84E0; | |
6554 | |
6555 static final int ACTIVE_UNIFORMS = 0x8B86; | |
6556 | |
6557 static final int ALIASED_LINE_WIDTH_RANGE = 0x846E; | |
6558 | |
6559 static final int ALIASED_POINT_SIZE_RANGE = 0x846D; | |
6560 | |
6561 static final int ALPHA = 0x1906; | |
6562 | |
6563 static final int ALPHA_BITS = 0x0D55; | |
6564 | |
6565 static final int ALWAYS = 0x0207; | |
6566 | |
6567 static final int ARRAY_BUFFER = 0x8892; | |
6568 | |
6569 static final int ARRAY_BUFFER_BINDING = 0x8894; | |
6570 | |
6571 static final int ATTACHED_SHADERS = 0x8B85; | |
6572 | |
6573 static final int BACK = 0x0405; | |
6574 | |
6575 static final int BLEND = 0x0BE2; | |
6576 | |
6577 static final int BLEND_COLOR = 0x8005; | |
6578 | |
6579 static final int BLEND_DST_ALPHA = 0x80CA; | |
6580 | |
6581 static final int BLEND_DST_RGB = 0x80C8; | |
6582 | |
6583 static final int BLEND_EQUATION = 0x8009; | |
6584 | |
6585 static final int BLEND_EQUATION_ALPHA = 0x883D; | |
6586 | |
6587 static final int BLEND_EQUATION_RGB = 0x8009; | |
6588 | |
6589 static final int BLEND_SRC_ALPHA = 0x80CB; | |
6590 | |
6591 static final int BLEND_SRC_RGB = 0x80C9; | |
6592 | |
6593 static final int BLUE_BITS = 0x0D54; | |
6594 | |
6595 static final int BOOL = 0x8B56; | |
6596 | |
6597 static final int BOOL_VEC2 = 0x8B57; | |
6598 | |
6599 static final int BOOL_VEC3 = 0x8B58; | |
6600 | |
6601 static final int BOOL_VEC4 = 0x8B59; | |
6602 | |
6603 static final int BROWSER_DEFAULT_WEBGL = 0x9244; | |
6604 | |
6605 static final int BUFFER_SIZE = 0x8764; | |
6606 | |
6607 static final int BUFFER_USAGE = 0x8765; | |
6608 | |
6609 static final int BYTE = 0x1400; | |
6610 | |
6611 static final int CCW = 0x0901; | |
6612 | |
6613 static final int CLAMP_TO_EDGE = 0x812F; | |
6614 | |
6615 static final int COLOR_ATTACHMENT0 = 0x8CE0; | |
6616 | |
6617 static final int COLOR_BUFFER_BIT = 0x00004000; | |
6618 | |
6619 static final int COLOR_CLEAR_VALUE = 0x0C22; | |
6620 | |
6621 static final int COLOR_WRITEMASK = 0x0C23; | |
6622 | |
6623 static final int COMPILE_STATUS = 0x8B81; | |
6624 | |
6625 static final int COMPRESSED_TEXTURE_FORMATS = 0x86A3; | |
6626 | |
6627 static final int CONSTANT_ALPHA = 0x8003; | |
6628 | |
6629 static final int CONSTANT_COLOR = 0x8001; | |
6630 | |
6631 static final int CONTEXT_LOST_WEBGL = 0x9242; | |
6632 | |
6633 static final int CULL_FACE = 0x0B44; | |
6634 | |
6635 static final int CULL_FACE_MODE = 0x0B45; | |
6636 | |
6637 static final int CURRENT_PROGRAM = 0x8B8D; | |
6638 | |
6639 static final int CURRENT_VERTEX_ATTRIB = 0x8626; | |
6640 | |
6641 static final int CW = 0x0900; | |
6642 | |
6643 static final int DECR = 0x1E03; | |
6644 | |
6645 static final int DECR_WRAP = 0x8508; | |
6646 | |
6647 static final int DELETE_STATUS = 0x8B80; | |
6648 | |
6649 static final int DEPTH_ATTACHMENT = 0x8D00; | |
6650 | |
6651 static final int DEPTH_BITS = 0x0D56; | |
6652 | |
6653 static final int DEPTH_BUFFER_BIT = 0x00000100; | |
6654 | |
6655 static final int DEPTH_CLEAR_VALUE = 0x0B73; | |
6656 | |
6657 static final int DEPTH_COMPONENT = 0x1902; | |
6658 | |
6659 static final int DEPTH_COMPONENT16 = 0x81A5; | |
6660 | |
6661 static final int DEPTH_FUNC = 0x0B74; | |
6662 | |
6663 static final int DEPTH_RANGE = 0x0B70; | |
6664 | |
6665 static final int DEPTH_STENCIL = 0x84F9; | |
6666 | |
6667 static final int DEPTH_STENCIL_ATTACHMENT = 0x821A; | |
6668 | |
6669 static final int DEPTH_TEST = 0x0B71; | |
6670 | |
6671 static final int DEPTH_WRITEMASK = 0x0B72; | |
6672 | |
6673 static final int DITHER = 0x0BD0; | |
6674 | |
6675 static final int DONT_CARE = 0x1100; | |
6676 | |
6677 static final int DST_ALPHA = 0x0304; | |
6678 | |
6679 static final int DST_COLOR = 0x0306; | |
6680 | |
6681 static final int DYNAMIC_DRAW = 0x88E8; | |
6682 | |
6683 static final int ELEMENT_ARRAY_BUFFER = 0x8893; | |
6684 | |
6685 static final int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; | |
6686 | |
6687 static final int EQUAL = 0x0202; | |
6688 | |
6689 static final int FASTEST = 0x1101; | |
6690 | |
6691 static final int FLOAT = 0x1406; | |
6692 | |
6693 static final int FLOAT_MAT2 = 0x8B5A; | |
6694 | |
6695 static final int FLOAT_MAT3 = 0x8B5B; | |
6696 | |
6697 static final int FLOAT_MAT4 = 0x8B5C; | |
6698 | |
6699 static final int FLOAT_VEC2 = 0x8B50; | |
6700 | |
6701 static final int FLOAT_VEC3 = 0x8B51; | |
6702 | |
6703 static final int FLOAT_VEC4 = 0x8B52; | |
6704 | |
6705 static final int FRAGMENT_SHADER = 0x8B30; | |
6706 | |
6707 static final int FRAMEBUFFER = 0x8D40; | |
6708 | |
6709 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; | |
6710 | |
6711 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; | |
6712 | |
6713 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; | |
6714 | |
6715 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; | |
6716 | |
6717 static final int FRAMEBUFFER_BINDING = 0x8CA6; | |
6718 | |
6719 static final int FRAMEBUFFER_COMPLETE = 0x8CD5; | |
6720 | |
6721 static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; | |
6722 | |
6723 static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; | |
6724 | |
6725 static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; | |
6726 | |
6727 static final int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; | |
6728 | |
6729 static final int FRONT = 0x0404; | |
6730 | |
6731 static final int FRONT_AND_BACK = 0x0408; | |
6732 | |
6733 static final int FRONT_FACE = 0x0B46; | |
6734 | |
6735 static final int FUNC_ADD = 0x8006; | |
6736 | |
6737 static final int FUNC_REVERSE_SUBTRACT = 0x800B; | |
6738 | |
6739 static final int FUNC_SUBTRACT = 0x800A; | |
6740 | |
6741 static final int GENERATE_MIPMAP_HINT = 0x8192; | |
6742 | |
6743 static final int GEQUAL = 0x0206; | |
6744 | |
6745 static final int GREATER = 0x0204; | |
6746 | |
6747 static final int GREEN_BITS = 0x0D53; | |
6748 | |
6749 static final int HIGH_FLOAT = 0x8DF2; | |
6750 | |
6751 static final int HIGH_INT = 0x8DF5; | |
6752 | |
6753 static final int INCR = 0x1E02; | |
6754 | |
6755 static final int INCR_WRAP = 0x8507; | |
6756 | |
6757 static final int INT = 0x1404; | |
6758 | |
6759 static final int INT_VEC2 = 0x8B53; | |
6760 | |
6761 static final int INT_VEC3 = 0x8B54; | |
6762 | |
6763 static final int INT_VEC4 = 0x8B55; | |
6764 | |
6765 static final int INVALID_ENUM = 0x0500; | |
6766 | |
6767 static final int INVALID_FRAMEBUFFER_OPERATION = 0x0506; | |
6768 | |
6769 static final int INVALID_OPERATION = 0x0502; | |
6770 | |
6771 static final int INVALID_VALUE = 0x0501; | |
6772 | |
6773 static final int INVERT = 0x150A; | |
6774 | |
6775 static final int KEEP = 0x1E00; | |
6776 | |
6777 static final int LEQUAL = 0x0203; | |
6778 | |
6779 static final int LESS = 0x0201; | |
6780 | |
6781 static final int LINEAR = 0x2601; | |
6782 | |
6783 static final int LINEAR_MIPMAP_LINEAR = 0x2703; | |
6784 | |
6785 static final int LINEAR_MIPMAP_NEAREST = 0x2701; | |
6786 | |
6787 static final int LINES = 0x0001; | |
6788 | |
6789 static final int LINE_LOOP = 0x0002; | |
6790 | |
6791 static final int LINE_STRIP = 0x0003; | |
6792 | |
6793 static final int LINE_WIDTH = 0x0B21; | |
6794 | |
6795 static final int LINK_STATUS = 0x8B82; | |
6796 | |
6797 static final int LOW_FLOAT = 0x8DF0; | |
6798 | |
6799 static final int LOW_INT = 0x8DF3; | |
6800 | |
6801 static final int LUMINANCE = 0x1909; | |
6802 | |
6803 static final int LUMINANCE_ALPHA = 0x190A; | |
6804 | |
6805 static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; | |
6806 | |
6807 static final int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; | |
6808 | |
6809 static final int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; | |
6810 | |
6811 static final int MAX_RENDERBUFFER_SIZE = 0x84E8; | |
6812 | |
6813 static final int MAX_TEXTURE_IMAGE_UNITS = 0x8872; | |
6814 | |
6815 static final int MAX_TEXTURE_SIZE = 0x0D33; | |
6816 | |
6817 static final int MAX_VARYING_VECTORS = 0x8DFC; | |
6818 | |
6819 static final int MAX_VERTEX_ATTRIBS = 0x8869; | |
6820 | |
6821 static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; | |
6822 | |
6823 static final int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; | |
6824 | |
6825 static final int MAX_VIEWPORT_DIMS = 0x0D3A; | |
6826 | |
6827 static final int MEDIUM_FLOAT = 0x8DF1; | |
6828 | |
6829 static final int MEDIUM_INT = 0x8DF4; | |
6830 | |
6831 static final int MIRRORED_REPEAT = 0x8370; | |
6832 | |
6833 static final int NEAREST = 0x2600; | |
6834 | |
6835 static final int NEAREST_MIPMAP_LINEAR = 0x2702; | |
6836 | |
6837 static final int NEAREST_MIPMAP_NEAREST = 0x2700; | |
6838 | |
6839 static final int NEVER = 0x0200; | |
6840 | |
6841 static final int NICEST = 0x1102; | |
6842 | |
6843 static final int NONE = 0; | |
6844 | |
6845 static final int NOTEQUAL = 0x0205; | |
6846 | |
6847 static final int NO_ERROR = 0; | |
6848 | |
6849 static final int NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; | |
6850 | |
6851 static final int ONE = 1; | |
6852 | |
6853 static final int ONE_MINUS_CONSTANT_ALPHA = 0x8004; | |
6854 | |
6855 static final int ONE_MINUS_CONSTANT_COLOR = 0x8002; | |
6856 | |
6857 static final int ONE_MINUS_DST_ALPHA = 0x0305; | |
6858 | |
6859 static final int ONE_MINUS_DST_COLOR = 0x0307; | |
6860 | |
6861 static final int ONE_MINUS_SRC_ALPHA = 0x0303; | |
6862 | |
6863 static final int ONE_MINUS_SRC_COLOR = 0x0301; | |
6864 | |
6865 static final int OUT_OF_MEMORY = 0x0505; | |
6866 | |
6867 static final int PACK_ALIGNMENT = 0x0D05; | |
6868 | |
6869 static final int POINTS = 0x0000; | |
6870 | |
6871 static final int POLYGON_OFFSET_FACTOR = 0x8038; | |
6872 | |
6873 static final int POLYGON_OFFSET_FILL = 0x8037; | |
6874 | |
6875 static final int POLYGON_OFFSET_UNITS = 0x2A00; | |
6876 | |
6877 static final int RED_BITS = 0x0D52; | |
6878 | |
6879 static final int RENDERBUFFER = 0x8D41; | |
6880 | |
6881 static final int RENDERBUFFER_ALPHA_SIZE = 0x8D53; | |
6882 | |
6883 static final int RENDERBUFFER_BINDING = 0x8CA7; | |
6884 | |
6885 static final int RENDERBUFFER_BLUE_SIZE = 0x8D52; | |
6886 | |
6887 static final int RENDERBUFFER_DEPTH_SIZE = 0x8D54; | |
6888 | |
6889 static final int RENDERBUFFER_GREEN_SIZE = 0x8D51; | |
6890 | |
6891 static final int RENDERBUFFER_HEIGHT = 0x8D43; | |
6892 | |
6893 static final int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; | |
6894 | |
6895 static final int RENDERBUFFER_RED_SIZE = 0x8D50; | |
6896 | |
6897 static final int RENDERBUFFER_STENCIL_SIZE = 0x8D55; | |
6898 | |
6899 static final int RENDERBUFFER_WIDTH = 0x8D42; | |
6900 | |
6901 static final int RENDERER = 0x1F01; | |
6902 | |
6903 static final int REPEAT = 0x2901; | |
6904 | |
6905 static final int REPLACE = 0x1E01; | |
6906 | |
6907 static final int RGB = 0x1907; | |
6908 | |
6909 static final int RGB565 = 0x8D62; | |
6910 | |
6911 static final int RGB5_A1 = 0x8057; | |
6912 | |
6913 static final int RGBA = 0x1908; | |
6914 | |
6915 static final int RGBA4 = 0x8056; | |
6916 | |
6917 static final int SAMPLER_2D = 0x8B5E; | |
6918 | |
6919 static final int SAMPLER_CUBE = 0x8B60; | |
6920 | |
6921 static final int SAMPLES = 0x80A9; | |
6922 | |
6923 static final int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; | |
6924 | |
6925 static final int SAMPLE_BUFFERS = 0x80A8; | |
6926 | |
6927 static final int SAMPLE_COVERAGE = 0x80A0; | |
6928 | |
6929 static final int SAMPLE_COVERAGE_INVERT = 0x80AB; | |
6930 | |
6931 static final int SAMPLE_COVERAGE_VALUE = 0x80AA; | |
6932 | |
6933 static final int SCISSOR_BOX = 0x0C10; | |
6934 | |
6935 static final int SCISSOR_TEST = 0x0C11; | |
6936 | |
6937 static final int SHADER_COMPILER = 0x8DFA; | |
6938 | |
6939 static final int SHADER_TYPE = 0x8B4F; | |
6940 | |
6941 static final int SHADING_LANGUAGE_VERSION = 0x8B8C; | |
6942 | |
6943 static final int SHORT = 0x1402; | |
6944 | |
6945 static final int SRC_ALPHA = 0x0302; | |
6946 | |
6947 static final int SRC_ALPHA_SATURATE = 0x0308; | |
6948 | |
6949 static final int SRC_COLOR = 0x0300; | |
6950 | |
6951 static final int STATIC_DRAW = 0x88E4; | |
6952 | |
6953 static final int STENCIL_ATTACHMENT = 0x8D20; | |
6954 | |
6955 static final int STENCIL_BACK_FAIL = 0x8801; | |
6956 | |
6957 static final int STENCIL_BACK_FUNC = 0x8800; | |
6958 | |
6959 static final int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; | |
6960 | |
6961 static final int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; | |
6962 | |
6963 static final int STENCIL_BACK_REF = 0x8CA3; | |
6964 | |
6965 static final int STENCIL_BACK_VALUE_MASK = 0x8CA4; | |
6966 | |
6967 static final int STENCIL_BACK_WRITEMASK = 0x8CA5; | |
6968 | |
6969 static final int STENCIL_BITS = 0x0D57; | |
6970 | |
6971 static final int STENCIL_BUFFER_BIT = 0x00000400; | |
6972 | |
6973 static final int STENCIL_CLEAR_VALUE = 0x0B91; | |
6974 | |
6975 static final int STENCIL_FAIL = 0x0B94; | |
6976 | |
6977 static final int STENCIL_FUNC = 0x0B92; | |
6978 | |
6979 static final int STENCIL_INDEX = 0x1901; | |
6980 | |
6981 static final int STENCIL_INDEX8 = 0x8D48; | |
6982 | |
6983 static final int STENCIL_PASS_DEPTH_FAIL = 0x0B95; | |
6984 | |
6985 static final int STENCIL_PASS_DEPTH_PASS = 0x0B96; | |
6986 | |
6987 static final int STENCIL_REF = 0x0B97; | |
6988 | |
6989 static final int STENCIL_TEST = 0x0B90; | |
6990 | |
6991 static final int STENCIL_VALUE_MASK = 0x0B93; | |
6992 | |
6993 static final int STENCIL_WRITEMASK = 0x0B98; | |
6994 | |
6995 static final int STREAM_DRAW = 0x88E0; | |
6996 | |
6997 static final int SUBPIXEL_BITS = 0x0D50; | |
6998 | |
6999 static final int TEXTURE = 0x1702; | |
7000 | |
7001 static final int TEXTURE0 = 0x84C0; | |
7002 | |
7003 static final int TEXTURE1 = 0x84C1; | |
7004 | |
7005 static final int TEXTURE10 = 0x84CA; | |
7006 | |
7007 static final int TEXTURE11 = 0x84CB; | |
7008 | |
7009 static final int TEXTURE12 = 0x84CC; | |
7010 | |
7011 static final int TEXTURE13 = 0x84CD; | |
7012 | |
7013 static final int TEXTURE14 = 0x84CE; | |
7014 | |
7015 static final int TEXTURE15 = 0x84CF; | |
7016 | |
7017 static final int TEXTURE16 = 0x84D0; | |
7018 | |
7019 static final int TEXTURE17 = 0x84D1; | |
7020 | |
7021 static final int TEXTURE18 = 0x84D2; | |
7022 | |
7023 static final int TEXTURE19 = 0x84D3; | |
7024 | |
7025 static final int TEXTURE2 = 0x84C2; | |
7026 | |
7027 static final int TEXTURE20 = 0x84D4; | |
7028 | |
7029 static final int TEXTURE21 = 0x84D5; | |
7030 | |
7031 static final int TEXTURE22 = 0x84D6; | |
7032 | |
7033 static final int TEXTURE23 = 0x84D7; | |
7034 | |
7035 static final int TEXTURE24 = 0x84D8; | |
7036 | |
7037 static final int TEXTURE25 = 0x84D9; | |
7038 | |
7039 static final int TEXTURE26 = 0x84DA; | |
7040 | |
7041 static final int TEXTURE27 = 0x84DB; | |
7042 | |
7043 static final int TEXTURE28 = 0x84DC; | |
7044 | |
7045 static final int TEXTURE29 = 0x84DD; | |
7046 | |
7047 static final int TEXTURE3 = 0x84C3; | |
7048 | |
7049 static final int TEXTURE30 = 0x84DE; | |
7050 | |
7051 static final int TEXTURE31 = 0x84DF; | |
7052 | |
7053 static final int TEXTURE4 = 0x84C4; | |
7054 | |
7055 static final int TEXTURE5 = 0x84C5; | |
7056 | |
7057 static final int TEXTURE6 = 0x84C6; | |
7058 | |
7059 static final int TEXTURE7 = 0x84C7; | |
7060 | |
7061 static final int TEXTURE8 = 0x84C8; | |
7062 | |
7063 static final int TEXTURE9 = 0x84C9; | |
7064 | |
7065 static final int TEXTURE_2D = 0x0DE1; | |
7066 | |
7067 static final int TEXTURE_BINDING_2D = 0x8069; | |
7068 | |
7069 static final int TEXTURE_BINDING_CUBE_MAP = 0x8514; | |
7070 | |
7071 static final int TEXTURE_CUBE_MAP = 0x8513; | |
7072 | |
7073 static final int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; | |
7074 | |
7075 static final int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; | |
7076 | |
7077 static final int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; | |
7078 | |
7079 static final int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; | |
7080 | |
7081 static final int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; | |
7082 | |
7083 static final int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; | |
7084 | |
7085 static final int TEXTURE_MAG_FILTER = 0x2800; | |
7086 | |
7087 static final int TEXTURE_MIN_FILTER = 0x2801; | |
7088 | |
7089 static final int TEXTURE_WRAP_S = 0x2802; | |
7090 | |
7091 static final int TEXTURE_WRAP_T = 0x2803; | |
7092 | |
7093 static final int TRIANGLES = 0x0004; | |
7094 | |
7095 static final int TRIANGLE_FAN = 0x0006; | |
7096 | |
7097 static final int TRIANGLE_STRIP = 0x0005; | |
7098 | |
7099 static final int UNPACK_ALIGNMENT = 0x0CF5; | |
7100 | |
7101 static final int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | |
7102 | |
7103 static final int UNPACK_FLIP_Y_WEBGL = 0x9240; | |
7104 | |
7105 static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | |
7106 | |
7107 static final int UNSIGNED_BYTE = 0x1401; | |
7108 | |
7109 static final int UNSIGNED_INT = 0x1405; | |
7110 | |
7111 static final int UNSIGNED_SHORT = 0x1403; | |
7112 | |
7113 static final int UNSIGNED_SHORT_4_4_4_4 = 0x8033; | |
7114 | |
7115 static final int UNSIGNED_SHORT_5_5_5_1 = 0x8034; | |
7116 | |
7117 static final int UNSIGNED_SHORT_5_6_5 = 0x8363; | |
7118 | |
7119 static final int VALIDATE_STATUS = 0x8B83; | |
7120 | |
7121 static final int VENDOR = 0x1F00; | |
7122 | |
7123 static final int VERSION = 0x1F02; | |
7124 | |
7125 static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; | |
7126 | |
7127 static final int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; | |
7128 | |
7129 static final int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; | |
7130 | |
7131 static final int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; | |
7132 | |
7133 static final int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; | |
7134 | |
7135 static final int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; | |
7136 | |
7137 static final int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; | |
7138 | |
7139 static final int VERTEX_SHADER = 0x8B31; | |
7140 | |
7141 static final int VIEWPORT = 0x0BA2; | |
7142 | |
7143 static final int ZERO = 0; | |
7144 | |
7145 int get drawingBufferHeight(); | |
7146 | |
7147 int get drawingBufferWidth(); | |
7148 | |
7149 void activeTexture(int texture); | |
7150 | |
7151 void attachShader(WebGLProgram program, WebGLShader shader); | |
7152 | |
7153 void bindAttribLocation(WebGLProgram program, int index, String name); | |
7154 | |
7155 void bindBuffer(int target, WebGLBuffer buffer); | |
7156 | |
7157 void bindFramebuffer(int target, WebGLFramebuffer framebuffer); | |
7158 | |
7159 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer); | |
7160 | |
7161 void bindTexture(int target, WebGLTexture texture); | |
7162 | |
7163 void blendColor(num red, num green, num blue, num alpha); | |
7164 | |
7165 void blendEquation(int mode); | |
7166 | |
7167 void blendEquationSeparate(int modeRGB, int modeAlpha); | |
7168 | |
7169 void blendFunc(int sfactor, int dfactor); | |
7170 | |
7171 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha); | |
7172 | |
7173 void bufferData(int target, var data_OR_size, int usage); | |
7174 | |
7175 void bufferSubData(int target, int offset, var data); | |
7176 | |
7177 int checkFramebufferStatus(int target); | |
7178 | |
7179 void clear(int mask); | |
7180 | |
7181 void clearColor(num red, num green, num blue, num alpha); | |
7182 | |
7183 void clearDepth(num depth); | |
7184 | |
7185 void clearStencil(int s); | |
7186 | |
7187 void colorMask(bool red, bool green, bool blue, bool alpha); | |
7188 | |
7189 void compileShader(WebGLShader shader); | |
7190 | |
7191 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border); | |
7192 | |
7193 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height); | |
7194 | |
7195 WebGLBuffer createBuffer(); | |
7196 | |
7197 WebGLFramebuffer createFramebuffer(); | |
7198 | |
7199 WebGLProgram createProgram(); | |
7200 | |
7201 WebGLRenderbuffer createRenderbuffer(); | |
7202 | |
7203 WebGLShader createShader(int type); | |
7204 | |
7205 WebGLTexture createTexture(); | |
7206 | |
7207 void cullFace(int mode); | |
7208 | |
7209 void deleteBuffer(WebGLBuffer buffer); | |
7210 | |
7211 void deleteFramebuffer(WebGLFramebuffer framebuffer); | |
7212 | |
7213 void deleteProgram(WebGLProgram program); | |
7214 | |
7215 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer); | |
7216 | |
7217 void deleteShader(WebGLShader shader); | |
7218 | |
7219 void deleteTexture(WebGLTexture texture); | |
7220 | |
7221 void depthFunc(int func); | |
7222 | |
7223 void depthMask(bool flag); | |
7224 | |
7225 void depthRange(num zNear, num zFar); | |
7226 | |
7227 void detachShader(WebGLProgram program, WebGLShader shader); | |
7228 | |
7229 void disable(int cap); | |
7230 | |
7231 void disableVertexAttribArray(int index); | |
7232 | |
7233 void drawArrays(int mode, int first, int count); | |
7234 | |
7235 void drawElements(int mode, int count, int type, int offset); | |
7236 | |
7237 void enable(int cap); | |
7238 | |
7239 void enableVertexAttribArray(int index); | |
7240 | |
7241 void finish(); | |
7242 | |
7243 void flush(); | |
7244 | |
7245 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, WebGLRenderbuffer renderbuffer); | |
7246 | |
7247 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level); | |
7248 | |
7249 void frontFace(int mode); | |
7250 | |
7251 void generateMipmap(int target); | |
7252 | |
7253 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index); | |
7254 | |
7255 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index); | |
7256 | |
7257 void getAttachedShaders(WebGLProgram program); | |
7258 | |
7259 int getAttribLocation(WebGLProgram program, String name); | |
7260 | |
7261 void getBufferParameter(); | |
7262 | |
7263 WebGLContextAttributes getContextAttributes(); | |
7264 | |
7265 int getError(); | |
7266 | |
7267 void getExtension(String name); | |
7268 | |
7269 void getFramebufferAttachmentParameter(); | |
7270 | |
7271 void getParameter(); | |
7272 | |
7273 String getProgramInfoLog(WebGLProgram program); | |
7274 | |
7275 void getProgramParameter(); | |
7276 | |
7277 void getRenderbufferParameter(); | |
7278 | |
7279 String getShaderInfoLog(WebGLShader shader); | |
7280 | |
7281 void getShaderParameter(); | |
7282 | |
7283 String getShaderSource(WebGLShader shader); | |
7284 | |
7285 void getSupportedExtensions(); | |
7286 | |
7287 void getTexParameter(); | |
7288 | |
7289 void getUniform(); | |
7290 | |
7291 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name); | |
7292 | |
7293 void getVertexAttrib(); | |
7294 | |
7295 int getVertexAttribOffset(int index, int pname); | |
7296 | |
7297 void hint(int target, int mode); | |
7298 | |
7299 bool isBuffer(WebGLBuffer buffer); | |
7300 | |
7301 bool isContextLost(); | |
7302 | |
7303 bool isEnabled(int cap); | |
7304 | |
7305 bool isFramebuffer(WebGLFramebuffer framebuffer); | |
7306 | |
7307 bool isProgram(WebGLProgram program); | |
7308 | |
7309 bool isRenderbuffer(WebGLRenderbuffer renderbuffer); | |
7310 | |
7311 bool isShader(WebGLShader shader); | |
7312 | |
7313 bool isTexture(WebGLTexture texture); | |
7314 | |
7315 void lineWidth(num width); | |
7316 | |
7317 void linkProgram(WebGLProgram program); | |
7318 | |
7319 void pixelStorei(int pname, int param); | |
7320 | |
7321 void polygonOffset(num factor, num units); | |
7322 | |
7323 void readPixels(int x, int y, int width, int height, int format, int type, Arr
ayBufferView pixels); | |
7324 | |
7325 void releaseShaderCompiler(); | |
7326 | |
7327 void renderbufferStorage(int target, int internalformat, int width, int height
); | |
7328 | |
7329 void sampleCoverage(num value, bool invert); | |
7330 | |
7331 void scissor(int x, int y, int width, int height); | |
7332 | |
7333 void shaderSource(WebGLShader shader, String string); | |
7334 | |
7335 void stencilFunc(int func, int ref, int mask); | |
7336 | |
7337 void stencilFuncSeparate(int face, int func, int ref, int mask); | |
7338 | |
7339 void stencilMask(int mask); | |
7340 | |
7341 void stencilMaskSeparate(int face, int mask); | |
7342 | |
7343 void stencilOp(int fail, int zfail, int zpass); | |
7344 | |
7345 void stencilOpSeparate(int face, int fail, int zfail, int zpass); | |
7346 | |
7347 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, var border_OR_canvas_OR_image_OR_pixels, [int format, int
type, ArrayBufferView pixels]); | |
7348 | |
7349 void texParameterf(int target, int pname, num param); | |
7350 | |
7351 void texParameteri(int target, int pname, int param); | |
7352 | |
7353 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, var canvas_OR_format_OR_image_OR_pixels, [int typ
e, ArrayBufferView pixels]); | |
7354 | |
7355 void uniform1f(WebGLUniformLocation location, num x); | |
7356 | |
7357 void uniform1fv(WebGLUniformLocation location, Float32Array v); | |
7358 | |
7359 void uniform1i(WebGLUniformLocation location, int x); | |
7360 | |
7361 void uniform1iv(WebGLUniformLocation location, Int32Array v); | |
7362 | |
7363 void uniform2f(WebGLUniformLocation location, num x, num y); | |
7364 | |
7365 void uniform2fv(WebGLUniformLocation location, Float32Array v); | |
7366 | |
7367 void uniform2i(WebGLUniformLocation location, int x, int y); | |
7368 | |
7369 void uniform2iv(WebGLUniformLocation location, Int32Array v); | |
7370 | |
7371 void uniform3f(WebGLUniformLocation location, num x, num y, num z); | |
7372 | |
7373 void uniform3fv(WebGLUniformLocation location, Float32Array v); | |
7374 | |
7375 void uniform3i(WebGLUniformLocation location, int x, int y, int z); | |
7376 | |
7377 void uniform3iv(WebGLUniformLocation location, Int32Array v); | |
7378 | |
7379 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w); | |
7380 | |
7381 void uniform4fv(WebGLUniformLocation location, Float32Array v); | |
7382 | |
7383 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w); | |
7384 | |
7385 void uniform4iv(WebGLUniformLocation location, Int32Array v); | |
7386 | |
7387 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array); | |
7388 | |
7389 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array); | |
7390 | |
7391 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array); | |
7392 | |
7393 void useProgram(WebGLProgram program); | |
7394 | |
7395 void validateProgram(WebGLProgram program); | |
7396 | |
7397 void vertexAttrib1f(int indx, num x); | |
7398 | |
7399 void vertexAttrib1fv(int indx, Float32Array values); | |
7400 | |
7401 void vertexAttrib2f(int indx, num x, num y); | |
7402 | |
7403 void vertexAttrib2fv(int indx, Float32Array values); | |
7404 | |
7405 void vertexAttrib3f(int indx, num x, num y, num z); | |
7406 | |
7407 void vertexAttrib3fv(int indx, Float32Array values); | |
7408 | |
7409 void vertexAttrib4f(int indx, num x, num y, num z, num w); | |
7410 | |
7411 void vertexAttrib4fv(int indx, Float32Array values); | |
7412 | |
7413 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset); | |
7414 | |
7415 void viewport(int x, int y, int width, int height); | |
7416 } | |
7417 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7418 // for details. All rights reserved. Use of this source code is governed by a | |
7419 // BSD-style license that can be found in the LICENSE file. | |
7420 | |
7421 // WARNING: Do not edit - generated code. | |
7422 | |
7423 interface WebGLShader { | |
7424 } | |
7425 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7426 // for details. All rights reserved. Use of this source code is governed by a | |
7427 // BSD-style license that can be found in the LICENSE file. | |
7428 | |
7429 // WARNING: Do not edit - generated code. | |
7430 | |
7431 interface WebGLTexture { | |
7432 } | |
7433 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7434 // for details. All rights reserved. Use of this source code is governed by a | |
7435 // BSD-style license that can be found in the LICENSE file. | |
7436 | |
7437 // WARNING: Do not edit - generated code. | |
7438 | |
7439 interface WebGLUniformLocation { | |
7440 } | |
7441 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7442 // for details. All rights reserved. Use of this source code is governed by a | |
7443 // BSD-style license that can be found in the LICENSE file. | |
7444 | |
7445 // WARNING: Do not edit - generated code. | |
7446 | |
7447 interface WebGLVertexArrayObjectOES { | |
7448 } | |
7449 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7450 // for details. All rights reserved. Use of this source code is governed by a | |
7451 // BSD-style license that can be found in the LICENSE file. | |
7452 | |
7453 // WARNING: Do not edit - generated code. | |
7454 | |
7455 interface WheelEvent extends UIEvent { | |
7456 | |
7457 bool get altKey(); | |
7458 | |
7459 int get clientX(); | |
7460 | |
7461 int get clientY(); | |
7462 | |
7463 bool get ctrlKey(); | |
7464 | |
7465 bool get metaKey(); | |
7466 | |
7467 int get offsetX(); | |
7468 | |
7469 int get offsetY(); | |
7470 | |
7471 int get screenX(); | |
7472 | |
7473 int get screenY(); | |
7474 | |
7475 bool get shiftKey(); | |
7476 | |
7477 int get wheelDelta(); | |
7478 | |
7479 int get wheelDeltaX(); | |
7480 | |
7481 int get wheelDeltaY(); | |
7482 | |
7483 int get x(); | |
7484 | |
7485 int get y(); | |
7486 | |
7487 void initWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX
, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKe
y, bool metaKey); | |
7488 } | |
7489 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7490 // for details. All rights reserved. Use of this source code is governed by a | |
7491 // BSD-style license that can be found in the LICENSE file. | |
7492 | |
7493 // WARNING: Do not edit - generated code. | |
7494 | |
7495 interface XMLHttpRequestException { | |
7496 | |
7497 static final int ABORT_ERR = 102; | |
7498 | |
7499 static final int NETWORK_ERR = 101; | |
7500 | |
7501 int get code(); | |
7502 | |
7503 String get message(); | |
7504 | |
7505 String get name(); | |
7506 } | |
7507 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7508 // for details. All rights reserved. Use of this source code is governed by a | |
7509 // BSD-style license that can be found in the LICENSE file. | |
7510 | |
7511 // WARNING: Do not edit - generated code. | |
7512 | |
7513 interface XMLHttpRequestProgressEvent extends ProgressEvent { | |
7514 | |
7515 int get position(); | |
7516 | |
7517 int get totalSize(); | |
7518 } | |
7519 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7520 // for details. All rights reserved. Use of this source code is governed by a | |
7521 // BSD-style license that can be found in the LICENSE file. | |
7522 | |
7523 // WARNING: Do not edit - generated code. | |
7524 | |
7525 class AnchorElementWrappingImplementation extends ElementWrappingImplementation
implements AnchorElement { | |
7526 AnchorElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7527 | |
7528 String get accessKey() { return _ptr.accessKey; } | |
7529 | |
7530 void set accessKey(String value) { _ptr.accessKey = value; } | |
7531 | |
7532 String get charset() { return _ptr.charset; } | |
7533 | |
7534 void set charset(String value) { _ptr.charset = value; } | |
7535 | |
7536 String get coords() { return _ptr.coords; } | |
7537 | |
7538 void set coords(String value) { _ptr.coords = value; } | |
7539 | |
7540 String get download() { return _ptr.download; } | |
7541 | |
7542 void set download(String value) { _ptr.download = value; } | |
7543 | |
7544 String get hash() { return _ptr.hash; } | |
7545 | |
7546 void set hash(String value) { _ptr.hash = value; } | |
7547 | |
7548 String get host() { return _ptr.host; } | |
7549 | |
7550 void set host(String value) { _ptr.host = value; } | |
7551 | |
7552 String get hostname() { return _ptr.hostname; } | |
7553 | |
7554 void set hostname(String value) { _ptr.hostname = value; } | |
7555 | |
7556 String get href() { return _ptr.href; } | |
7557 | |
7558 void set href(String value) { _ptr.href = value; } | |
7559 | |
7560 String get hreflang() { return _ptr.hreflang; } | |
7561 | |
7562 void set hreflang(String value) { _ptr.hreflang = value; } | |
7563 | |
7564 String get name() { return _ptr.name; } | |
7565 | |
7566 void set name(String value) { _ptr.name = value; } | |
7567 | |
7568 String get origin() { return _ptr.origin; } | |
7569 | |
7570 String get pathname() { return _ptr.pathname; } | |
7571 | |
7572 void set pathname(String value) { _ptr.pathname = value; } | |
7573 | |
7574 String get ping() { return _ptr.ping; } | |
7575 | |
7576 void set ping(String value) { _ptr.ping = value; } | |
7577 | |
7578 String get port() { return _ptr.port; } | |
7579 | |
7580 void set port(String value) { _ptr.port = value; } | |
7581 | |
7582 String get protocol() { return _ptr.protocol; } | |
7583 | |
7584 void set protocol(String value) { _ptr.protocol = value; } | |
7585 | |
7586 String get rel() { return _ptr.rel; } | |
7587 | |
7588 void set rel(String value) { _ptr.rel = value; } | |
7589 | |
7590 String get rev() { return _ptr.rev; } | |
7591 | |
7592 void set rev(String value) { _ptr.rev = value; } | |
7593 | |
7594 String get search() { return _ptr.search; } | |
7595 | |
7596 void set search(String value) { _ptr.search = value; } | |
7597 | |
7598 String get shape() { return _ptr.shape; } | |
7599 | |
7600 void set shape(String value) { _ptr.shape = value; } | |
7601 | |
7602 String get target() { return _ptr.target; } | |
7603 | |
7604 void set target(String value) { _ptr.target = value; } | |
7605 | |
7606 String get text() { return _ptr.text; } | |
7607 | |
7608 String get type() { return _ptr.type; } | |
7609 | |
7610 void set type(String value) { _ptr.type = value; } | |
7611 | |
7612 String getParameter(String name) { | |
7613 return _ptr.getParameter(name); | |
7614 } | |
7615 } | |
7616 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7617 // for details. All rights reserved. Use of this source code is governed by a | |
7618 // BSD-style license that can be found in the LICENSE file. | |
7619 | |
7620 // WARNING: Do not edit - generated code. | |
7621 | |
7622 class AnimationEventWrappingImplementation extends EventWrappingImplementation i
mplements AnimationEvent { | |
7623 AnimationEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7624 | |
7625 String get animationName() { return _ptr.animationName; } | |
7626 | |
7627 num get elapsedTime() { return _ptr.elapsedTime; } | |
7628 | |
7629 void initWebKitAnimationEvent(String typeArg, bool canBubbleArg, bool cancelab
leArg, String animationNameArg, num elapsedTimeArg) { | |
7630 _ptr.initWebKitAnimationEvent(typeArg, canBubbleArg, cancelableArg, animatio
nNameArg, elapsedTimeArg); | |
7631 return; | |
7632 } | |
7633 } | |
7634 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7635 // for details. All rights reserved. Use of this source code is governed by a | |
7636 // BSD-style license that can be found in the LICENSE file. | |
7637 | |
7638 // WARNING: Do not edit - generated code. | |
7639 | |
7640 class AnimationListWrappingImplementation extends DOMWrapperBase implements Anim
ationList { | |
7641 AnimationListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7642 | |
7643 int get length() { return _ptr.length; } | |
7644 | |
7645 Animation item(int index) { | |
7646 return LevelDom.wrapAnimation(_ptr.item(index)); | |
7647 } | |
7648 } | |
7649 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7650 // for details. All rights reserved. Use of this source code is governed by a | |
7651 // BSD-style license that can be found in the LICENSE file. | |
7652 | |
7653 // WARNING: Do not edit - generated code. | |
7654 | |
7655 class AnimationWrappingImplementation extends DOMWrapperBase implements Animatio
n { | |
7656 AnimationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7657 | |
7658 num get delay() { return _ptr.delay; } | |
7659 | |
7660 int get direction() { return _ptr.direction; } | |
7661 | |
7662 num get duration() { return _ptr.duration; } | |
7663 | |
7664 num get elapsedTime() { return _ptr.elapsedTime; } | |
7665 | |
7666 void set elapsedTime(num value) { _ptr.elapsedTime = value; } | |
7667 | |
7668 bool get ended() { return _ptr.ended; } | |
7669 | |
7670 int get fillMode() { return _ptr.fillMode; } | |
7671 | |
7672 int get iterationCount() { return _ptr.iterationCount; } | |
7673 | |
7674 String get name() { return _ptr.name; } | |
7675 | |
7676 bool get paused() { return _ptr.paused; } | |
7677 | |
7678 void pause() { | |
7679 _ptr.pause(); | |
7680 return; | |
7681 } | |
7682 | |
7683 void play() { | |
7684 _ptr.play(); | |
7685 return; | |
7686 } | |
7687 } | |
7688 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7689 // for details. All rights reserved. Use of this source code is governed by a | |
7690 // BSD-style license that can be found in the LICENSE file. | |
7691 | |
7692 // WARNING: Do not edit - generated code. | |
7693 | |
7694 class AreaElementWrappingImplementation extends ElementWrappingImplementation im
plements AreaElement { | |
7695 AreaElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7696 | |
7697 String get accessKey() { return _ptr.accessKey; } | |
7698 | |
7699 void set accessKey(String value) { _ptr.accessKey = value; } | |
7700 | |
7701 String get alt() { return _ptr.alt; } | |
7702 | |
7703 void set alt(String value) { _ptr.alt = value; } | |
7704 | |
7705 String get coords() { return _ptr.coords; } | |
7706 | |
7707 void set coords(String value) { _ptr.coords = value; } | |
7708 | |
7709 String get hash() { return _ptr.hash; } | |
7710 | |
7711 String get host() { return _ptr.host; } | |
7712 | |
7713 String get hostname() { return _ptr.hostname; } | |
7714 | |
7715 String get href() { return _ptr.href; } | |
7716 | |
7717 void set href(String value) { _ptr.href = value; } | |
7718 | |
7719 bool get noHref() { return _ptr.noHref; } | |
7720 | |
7721 void set noHref(bool value) { _ptr.noHref = value; } | |
7722 | |
7723 String get pathname() { return _ptr.pathname; } | |
7724 | |
7725 String get ping() { return _ptr.ping; } | |
7726 | |
7727 void set ping(String value) { _ptr.ping = value; } | |
7728 | |
7729 String get port() { return _ptr.port; } | |
7730 | |
7731 String get protocol() { return _ptr.protocol; } | |
7732 | |
7733 String get search() { return _ptr.search; } | |
7734 | |
7735 String get shape() { return _ptr.shape; } | |
7736 | |
7737 void set shape(String value) { _ptr.shape = value; } | |
7738 | |
7739 String get target() { return _ptr.target; } | |
7740 | |
7741 void set target(String value) { _ptr.target = value; } | |
7742 } | |
7743 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7744 // for details. All rights reserved. Use of this source code is governed by a | |
7745 // BSD-style license that can be found in the LICENSE file. | |
7746 | |
7747 // WARNING: Do not edit - generated code. | |
7748 | |
7749 class ArrayBufferViewWrappingImplementation extends DOMWrapperBase implements Ar
rayBufferView { | |
7750 ArrayBufferViewWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7751 | |
7752 ArrayBuffer get buffer() { return LevelDom.wrapArrayBuffer(_ptr.buffer); } | |
7753 | |
7754 int get byteLength() { return _ptr.byteLength; } | |
7755 | |
7756 int get byteOffset() { return _ptr.byteOffset; } | |
7757 } | |
7758 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7759 // for details. All rights reserved. Use of this source code is governed by a | |
7760 // BSD-style license that can be found in the LICENSE file. | |
7761 | |
7762 // WARNING: Do not edit - generated code. | |
7763 | |
7764 class ArrayBufferWrappingImplementation extends DOMWrapperBase implements ArrayB
uffer { | |
7765 ArrayBufferWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7766 | |
7767 int get byteLength() { return _ptr.byteLength; } | |
7768 } | |
7769 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7770 // for details. All rights reserved. Use of this source code is governed by a | |
7771 // BSD-style license that can be found in the LICENSE file. | |
7772 | |
7773 // WARNING: Do not edit - generated code. | |
7774 | |
7775 class AudioElementWrappingImplementation extends MediaElementWrappingImplementat
ion implements AudioElement { | |
7776 AudioElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7777 } | |
7778 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7779 // for details. All rights reserved. Use of this source code is governed by a | |
7780 // BSD-style license that can be found in the LICENSE file. | |
7781 | |
7782 // WARNING: Do not edit - generated code. | |
7783 | |
7784 class BRElementWrappingImplementation extends ElementWrappingImplementation impl
ements BRElement { | |
7785 BRElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7786 | |
7787 String get clear() { return _ptr.clear; } | |
7788 | |
7789 void set clear(String value) { _ptr.clear = value; } | |
7790 } | |
7791 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7792 // for details. All rights reserved. Use of this source code is governed by a | |
7793 // BSD-style license that can be found in the LICENSE file. | |
7794 | |
7795 // WARNING: Do not edit - generated code. | |
7796 | |
7797 class BarInfoWrappingImplementation extends DOMWrapperBase implements BarInfo { | |
7798 BarInfoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7799 | |
7800 bool get visible() { return _ptr.visible; } | |
7801 } | |
7802 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7803 // for details. All rights reserved. Use of this source code is governed by a | |
7804 // BSD-style license that can be found in the LICENSE file. | |
7805 | |
7806 // WARNING: Do not edit - generated code. | |
7807 | |
7808 class BaseElementWrappingImplementation extends ElementWrappingImplementation im
plements BaseElement { | |
7809 BaseElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7810 | |
7811 String get href() { return _ptr.href; } | |
7812 | |
7813 void set href(String value) { _ptr.href = value; } | |
7814 | |
7815 String get target() { return _ptr.target; } | |
7816 | |
7817 void set target(String value) { _ptr.target = value; } | |
7818 } | |
7819 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7820 // for details. All rights reserved. Use of this source code is governed by a | |
7821 // BSD-style license that can be found in the LICENSE file. | |
7822 | |
7823 // WARNING: Do not edit - generated code. | |
7824 | |
7825 class BeforeLoadEventWrappingImplementation extends EventWrappingImplementation
implements BeforeLoadEvent { | |
7826 BeforeLoadEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7827 | |
7828 String get url() { return _ptr.url; } | |
7829 | |
7830 void initBeforeLoadEvent(String type, bool canBubble, bool cancelable, String
url) { | |
7831 _ptr.initBeforeLoadEvent(type, canBubble, cancelable, url); | |
7832 return; | |
7833 } | |
7834 } | |
7835 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7836 // for details. All rights reserved. Use of this source code is governed by a | |
7837 // BSD-style license that can be found in the LICENSE file. | |
7838 | |
7839 // WARNING: Do not edit - generated code. | |
7840 | |
7841 class BlobBuilderWrappingImplementation extends DOMWrapperBase implements BlobBu
ilder { | |
7842 BlobBuilderWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7843 | |
7844 void append(var blob_OR_value, [String endings = null]) { | |
7845 if (blob_OR_value is Blob) { | |
7846 if (endings === null) { | |
7847 _ptr.append(LevelDom.unwrap(blob_OR_value)); | |
7848 return; | |
7849 } | |
7850 } else { | |
7851 if (blob_OR_value is String) { | |
7852 if (endings === null) { | |
7853 _ptr.append(LevelDom.unwrap(blob_OR_value)); | |
7854 return; | |
7855 } else { | |
7856 _ptr.append(LevelDom.unwrap(blob_OR_value), endings); | |
7857 return; | |
7858 } | |
7859 } | |
7860 } | |
7861 throw "Incorrect number or type of arguments"; | |
7862 } | |
7863 | |
7864 Blob getBlob([String contentType = null]) { | |
7865 if (contentType === null) { | |
7866 return LevelDom.wrapBlob(_ptr.getBlob()); | |
7867 } else { | |
7868 return LevelDom.wrapBlob(_ptr.getBlob(contentType)); | |
7869 } | |
7870 } | |
7871 } | |
7872 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7873 // for details. All rights reserved. Use of this source code is governed by a | |
7874 // BSD-style license that can be found in the LICENSE file. | |
7875 | |
7876 // WARNING: Do not edit - generated code. | |
7877 | |
7878 class BlobWrappingImplementation extends DOMWrapperBase implements Blob { | |
7879 BlobWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7880 | |
7881 int get size() { return _ptr.size; } | |
7882 | |
7883 String get type() { return _ptr.type; } | |
7884 } | |
7885 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7886 // for details. All rights reserved. Use of this source code is governed by a | |
7887 // BSD-style license that can be found in the LICENSE file. | |
7888 | |
7889 // WARNING: Do not edit - generated code. | |
7890 | |
7891 class ButtonElementWrappingImplementation extends ElementWrappingImplementation
implements ButtonElement { | |
7892 ButtonElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7893 | |
7894 String get accessKey() { return _ptr.accessKey; } | |
7895 | |
7896 void set accessKey(String value) { _ptr.accessKey = value; } | |
7897 | |
7898 bool get autofocus() { return _ptr.autofocus; } | |
7899 | |
7900 void set autofocus(bool value) { _ptr.autofocus = value; } | |
7901 | |
7902 bool get disabled() { return _ptr.disabled; } | |
7903 | |
7904 void set disabled(bool value) { _ptr.disabled = value; } | |
7905 | |
7906 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
7907 | |
7908 String get formAction() { return _ptr.formAction; } | |
7909 | |
7910 void set formAction(String value) { _ptr.formAction = value; } | |
7911 | |
7912 String get formEnctype() { return _ptr.formEnctype; } | |
7913 | |
7914 void set formEnctype(String value) { _ptr.formEnctype = value; } | |
7915 | |
7916 String get formMethod() { return _ptr.formMethod; } | |
7917 | |
7918 void set formMethod(String value) { _ptr.formMethod = value; } | |
7919 | |
7920 bool get formNoValidate() { return _ptr.formNoValidate; } | |
7921 | |
7922 void set formNoValidate(bool value) { _ptr.formNoValidate = value; } | |
7923 | |
7924 String get formTarget() { return _ptr.formTarget; } | |
7925 | |
7926 void set formTarget(String value) { _ptr.formTarget = value; } | |
7927 | |
7928 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
7929 | |
7930 String get name() { return _ptr.name; } | |
7931 | |
7932 void set name(String value) { _ptr.name = value; } | |
7933 | |
7934 String get type() { return _ptr.type; } | |
7935 | |
7936 String get validationMessage() { return _ptr.validationMessage; } | |
7937 | |
7938 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
7939 | |
7940 String get value() { return _ptr.value; } | |
7941 | |
7942 void set value(String value) { _ptr.value = value; } | |
7943 | |
7944 bool get willValidate() { return _ptr.willValidate; } | |
7945 | |
7946 bool checkValidity() { | |
7947 return _ptr.checkValidity(); | |
7948 } | |
7949 | |
7950 void click() { | |
7951 _ptr.click(); | |
7952 return; | |
7953 } | |
7954 | |
7955 void setCustomValidity(String error) { | |
7956 _ptr.setCustomValidity(error); | |
7957 return; | |
7958 } | |
7959 } | |
7960 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7961 // for details. All rights reserved. Use of this source code is governed by a | |
7962 // BSD-style license that can be found in the LICENSE file. | |
7963 | |
7964 // WARNING: Do not edit - generated code. | |
7965 | |
7966 class CDATASectionWrappingImplementation extends TextWrappingImplementation impl
ements CDATASection { | |
7967 CDATASectionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7968 } | |
7969 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7970 // for details. All rights reserved. Use of this source code is governed by a | |
7971 // BSD-style license that can be found in the LICENSE file. | |
7972 | |
7973 // WARNING: Do not edit - generated code. | |
7974 | |
7975 class CSSCharsetRuleWrappingImplementation extends CSSRuleWrappingImplementation
implements CSSCharsetRule { | |
7976 CSSCharsetRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7977 | |
7978 String get encoding() { return _ptr.encoding; } | |
7979 | |
7980 void set encoding(String value) { _ptr.encoding = value; } | |
7981 } | |
7982 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7983 // for details. All rights reserved. Use of this source code is governed by a | |
7984 // BSD-style license that can be found in the LICENSE file. | |
7985 | |
7986 // WARNING: Do not edit - generated code. | |
7987 | |
7988 class CSSFontFaceRuleWrappingImplementation extends CSSRuleWrappingImplementatio
n implements CSSFontFaceRule { | |
7989 CSSFontFaceRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
7990 | |
7991 CSSStyleDeclaration get style() { return LevelDom.wrapCSSStyleDeclaration(_ptr
.style); } | |
7992 } | |
7993 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
7994 // for details. All rights reserved. Use of this source code is governed by a | |
7995 // BSD-style license that can be found in the LICENSE file. | |
7996 | |
7997 // WARNING: Do not edit - generated code. | |
7998 | |
7999 class CSSImportRuleWrappingImplementation extends CSSRuleWrappingImplementation
implements CSSImportRule { | |
8000 CSSImportRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8001 | |
8002 String get href() { return _ptr.href; } | |
8003 | |
8004 MediaList get media() { return LevelDom.wrapMediaList(_ptr.media); } | |
8005 | |
8006 CSSStyleSheet get styleSheet() { return LevelDom.wrapCSSStyleSheet(_ptr.styleS
heet); } | |
8007 } | |
8008 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8009 // for details. All rights reserved. Use of this source code is governed by a | |
8010 // BSD-style license that can be found in the LICENSE file. | |
8011 | |
8012 // WARNING: Do not edit - generated code. | |
8013 | |
8014 class CSSKeyframeRuleWrappingImplementation extends CSSRuleWrappingImplementatio
n implements CSSKeyframeRule { | |
8015 CSSKeyframeRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8016 | |
8017 String get keyText() { return _ptr.keyText; } | |
8018 | |
8019 void set keyText(String value) { _ptr.keyText = value; } | |
8020 | |
8021 CSSStyleDeclaration get style() { return LevelDom.wrapCSSStyleDeclaration(_ptr
.style); } | |
8022 } | |
8023 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8024 // for details. All rights reserved. Use of this source code is governed by a | |
8025 // BSD-style license that can be found in the LICENSE file. | |
8026 | |
8027 // WARNING: Do not edit - generated code. | |
8028 | |
8029 class CSSKeyframesRuleWrappingImplementation extends CSSRuleWrappingImplementati
on implements CSSKeyframesRule { | |
8030 CSSKeyframesRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8031 | |
8032 CSSRuleList get cssRules() { return LevelDom.wrapCSSRuleList(_ptr.cssRules); } | |
8033 | |
8034 String get name() { return _ptr.name; } | |
8035 | |
8036 void set name(String value) { _ptr.name = value; } | |
8037 | |
8038 void deleteRule(String key) { | |
8039 _ptr.deleteRule(key); | |
8040 return; | |
8041 } | |
8042 | |
8043 CSSKeyframeRule findRule(String key) { | |
8044 return LevelDom.wrapCSSKeyframeRule(_ptr.findRule(key)); | |
8045 } | |
8046 | |
8047 void insertRule(String rule) { | |
8048 _ptr.insertRule(rule); | |
8049 return; | |
8050 } | |
8051 } | |
8052 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8053 // for details. All rights reserved. Use of this source code is governed by a | |
8054 // BSD-style license that can be found in the LICENSE file. | |
8055 | |
8056 // WARNING: Do not edit - generated code. | |
8057 | |
8058 class CSSMatrixWrappingImplementation extends DOMWrapperBase implements CSSMatri
x { | |
8059 CSSMatrixWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8060 | |
8061 num get a() { return _ptr.a; } | |
8062 | |
8063 void set a(num value) { _ptr.a = value; } | |
8064 | |
8065 num get b() { return _ptr.b; } | |
8066 | |
8067 void set b(num value) { _ptr.b = value; } | |
8068 | |
8069 num get c() { return _ptr.c; } | |
8070 | |
8071 void set c(num value) { _ptr.c = value; } | |
8072 | |
8073 num get d() { return _ptr.d; } | |
8074 | |
8075 void set d(num value) { _ptr.d = value; } | |
8076 | |
8077 num get e() { return _ptr.e; } | |
8078 | |
8079 void set e(num value) { _ptr.e = value; } | |
8080 | |
8081 num get f() { return _ptr.f; } | |
8082 | |
8083 void set f(num value) { _ptr.f = value; } | |
8084 | |
8085 num get m11() { return _ptr.m11; } | |
8086 | |
8087 void set m11(num value) { _ptr.m11 = value; } | |
8088 | |
8089 num get m12() { return _ptr.m12; } | |
8090 | |
8091 void set m12(num value) { _ptr.m12 = value; } | |
8092 | |
8093 num get m13() { return _ptr.m13; } | |
8094 | |
8095 void set m13(num value) { _ptr.m13 = value; } | |
8096 | |
8097 num get m14() { return _ptr.m14; } | |
8098 | |
8099 void set m14(num value) { _ptr.m14 = value; } | |
8100 | |
8101 num get m21() { return _ptr.m21; } | |
8102 | |
8103 void set m21(num value) { _ptr.m21 = value; } | |
8104 | |
8105 num get m22() { return _ptr.m22; } | |
8106 | |
8107 void set m22(num value) { _ptr.m22 = value; } | |
8108 | |
8109 num get m23() { return _ptr.m23; } | |
8110 | |
8111 void set m23(num value) { _ptr.m23 = value; } | |
8112 | |
8113 num get m24() { return _ptr.m24; } | |
8114 | |
8115 void set m24(num value) { _ptr.m24 = value; } | |
8116 | |
8117 num get m31() { return _ptr.m31; } | |
8118 | |
8119 void set m31(num value) { _ptr.m31 = value; } | |
8120 | |
8121 num get m32() { return _ptr.m32; } | |
8122 | |
8123 void set m32(num value) { _ptr.m32 = value; } | |
8124 | |
8125 num get m33() { return _ptr.m33; } | |
8126 | |
8127 void set m33(num value) { _ptr.m33 = value; } | |
8128 | |
8129 num get m34() { return _ptr.m34; } | |
8130 | |
8131 void set m34(num value) { _ptr.m34 = value; } | |
8132 | |
8133 num get m41() { return _ptr.m41; } | |
8134 | |
8135 void set m41(num value) { _ptr.m41 = value; } | |
8136 | |
8137 num get m42() { return _ptr.m42; } | |
8138 | |
8139 void set m42(num value) { _ptr.m42 = value; } | |
8140 | |
8141 num get m43() { return _ptr.m43; } | |
8142 | |
8143 void set m43(num value) { _ptr.m43 = value; } | |
8144 | |
8145 num get m44() { return _ptr.m44; } | |
8146 | |
8147 void set m44(num value) { _ptr.m44 = value; } | |
8148 | |
8149 CSSMatrix inverse() { | |
8150 return LevelDom.wrapCSSMatrix(_ptr.inverse()); | |
8151 } | |
8152 | |
8153 CSSMatrix multiply(CSSMatrix secondMatrix) { | |
8154 return LevelDom.wrapCSSMatrix(_ptr.multiply(LevelDom.unwrap(secondMatrix))); | |
8155 } | |
8156 | |
8157 CSSMatrix rotate(num rotX, num rotY, num rotZ) { | |
8158 return LevelDom.wrapCSSMatrix(_ptr.rotate(rotX, rotY, rotZ)); | |
8159 } | |
8160 | |
8161 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) { | |
8162 return LevelDom.wrapCSSMatrix(_ptr.rotateAxisAngle(x, y, z, angle)); | |
8163 } | |
8164 | |
8165 CSSMatrix scale(num scaleX, num scaleY, num scaleZ) { | |
8166 return LevelDom.wrapCSSMatrix(_ptr.scale(scaleX, scaleY, scaleZ)); | |
8167 } | |
8168 | |
8169 void setMatrixValue(String string) { | |
8170 _ptr.setMatrixValue(string); | |
8171 return; | |
8172 } | |
8173 | |
8174 CSSMatrix skewX(num angle) { | |
8175 return LevelDom.wrapCSSMatrix(_ptr.skewX(angle)); | |
8176 } | |
8177 | |
8178 CSSMatrix skewY(num angle) { | |
8179 return LevelDom.wrapCSSMatrix(_ptr.skewY(angle)); | |
8180 } | |
8181 | |
8182 String toString() { | |
8183 return _ptr.toString(); | |
8184 } | |
8185 | |
8186 CSSMatrix translate(num x, num y, num z) { | |
8187 return LevelDom.wrapCSSMatrix(_ptr.translate(x, y, z)); | |
8188 } | |
8189 } | |
8190 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8191 // 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. | |
8193 | |
8194 // WARNING: Do not edit - generated code. | |
8195 | |
8196 class CSSMediaRuleWrappingImplementation extends CSSRuleWrappingImplementation i
mplements CSSMediaRule { | |
8197 CSSMediaRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8198 | |
8199 CSSRuleList get cssRules() { return LevelDom.wrapCSSRuleList(_ptr.cssRules); } | |
8200 | |
8201 MediaList get media() { return LevelDom.wrapMediaList(_ptr.media); } | |
8202 | |
8203 void deleteRule(int index) { | |
8204 _ptr.deleteRule(index); | |
8205 return; | |
8206 } | |
8207 | |
8208 int insertRule(String rule, int index) { | |
8209 return _ptr.insertRule(rule, index); | |
8210 } | |
8211 } | |
8212 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8213 // for details. All rights reserved. Use of this source code is governed by a | |
8214 // BSD-style license that can be found in the LICENSE file. | |
8215 | |
8216 // WARNING: Do not edit - generated code. | |
8217 | |
8218 class CSSPageRuleWrappingImplementation extends CSSRuleWrappingImplementation im
plements CSSPageRule { | |
8219 CSSPageRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8220 | |
8221 String get selectorText() { return _ptr.selectorText; } | |
8222 | |
8223 void set selectorText(String value) { _ptr.selectorText = value; } | |
8224 | |
8225 CSSStyleDeclaration get style() { return LevelDom.wrapCSSStyleDeclaration(_ptr
.style); } | |
8226 } | |
8227 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8228 // for details. All rights reserved. Use of this source code is governed by a | |
8229 // BSD-style license that can be found in the LICENSE file. | |
8230 | |
8231 // WARNING: Do not edit - generated code. | |
8232 | |
8233 class CSSPrimitiveValueWrappingImplementation extends CSSValueWrappingImplementa
tion implements CSSPrimitiveValue { | |
8234 CSSPrimitiveValueWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8235 | |
8236 int get primitiveType() { return _ptr.primitiveType; } | |
8237 | |
8238 Counter getCounterValue() { | |
8239 return LevelDom.wrapCounter(_ptr.getCounterValue()); | |
8240 } | |
8241 | |
8242 num getFloatValue(int unitType) { | |
8243 return _ptr.getFloatValue(unitType); | |
8244 } | |
8245 | |
8246 RGBColor getRGBColorValue() { | |
8247 return LevelDom.wrapRGBColor(_ptr.getRGBColorValue()); | |
8248 } | |
8249 | |
8250 Rect getRectValue() { | |
8251 return LevelDom.wrapRect(_ptr.getRectValue()); | |
8252 } | |
8253 | |
8254 String getStringValue() { | |
8255 return _ptr.getStringValue(); | |
8256 } | |
8257 | |
8258 void setFloatValue(int unitType, num floatValue) { | |
8259 _ptr.setFloatValue(unitType, floatValue); | |
8260 return; | |
8261 } | |
8262 | |
8263 void setStringValue(int stringType, String stringValue) { | |
8264 _ptr.setStringValue(stringType, stringValue); | |
8265 return; | |
8266 } | |
8267 } | |
8268 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8269 // for details. All rights reserved. Use of this source code is governed by a | |
8270 // BSD-style license that can be found in the LICENSE file. | |
8271 | |
8272 // WARNING: Do not edit - generated code. | |
8273 | |
8274 class CSSRuleListWrappingImplementation extends DOMWrapperBase implements CSSRul
eList { | |
8275 CSSRuleListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8276 | |
8277 int get length() { return _ptr.length; } | |
8278 | |
8279 CSSRule item(int index) { | |
8280 return LevelDom.wrapCSSRule(_ptr.item(index)); | |
8281 } | |
8282 } | |
8283 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8284 // for details. All rights reserved. Use of this source code is governed by a | |
8285 // BSD-style license that can be found in the LICENSE file. | |
8286 | |
8287 // WARNING: Do not edit - generated code. | |
8288 | |
8289 class CSSRuleWrappingImplementation extends DOMWrapperBase implements CSSRule { | |
8290 CSSRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8291 | |
8292 String get cssText() { return _ptr.cssText; } | |
8293 | |
8294 void set cssText(String value) { _ptr.cssText = value; } | |
8295 | |
8296 CSSRule get parentRule() { return LevelDom.wrapCSSRule(_ptr.parentRule); } | |
8297 | |
8298 CSSStyleSheet get parentStyleSheet() { return LevelDom.wrapCSSStyleSheet(_ptr.
parentStyleSheet); } | |
8299 | |
8300 int get type() { return _ptr.type; } | |
8301 } | |
8302 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8303 // for details. All rights reserved. Use of this source code is governed by a | |
8304 // BSD-style license that can be found in the LICENSE file. | |
8305 | |
8306 // WARNING: Do not edit - generated code. | |
8307 | |
8308 class CSSStyleRuleWrappingImplementation extends CSSRuleWrappingImplementation i
mplements CSSStyleRule { | |
8309 CSSStyleRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8310 | |
8311 String get selectorText() { return _ptr.selectorText; } | |
8312 | |
8313 void set selectorText(String value) { _ptr.selectorText = value; } | |
8314 | |
8315 CSSStyleDeclaration get style() { return LevelDom.wrapCSSStyleDeclaration(_ptr
.style); } | |
8316 } | |
8317 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8318 // for details. All rights reserved. Use of this source code is governed by a | |
8319 // BSD-style license that can be found in the LICENSE file. | |
8320 | |
8321 // WARNING: Do not edit - generated code. | |
8322 | |
8323 class CSSStyleSheetWrappingImplementation extends StyleSheetWrappingImplementati
on implements CSSStyleSheet { | |
8324 CSSStyleSheetWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8325 | |
8326 CSSRuleList get cssRules() { return LevelDom.wrapCSSRuleList(_ptr.cssRules); } | |
8327 | |
8328 CSSRule get ownerRule() { return LevelDom.wrapCSSRule(_ptr.ownerRule); } | |
8329 | |
8330 CSSRuleList get rules() { return LevelDom.wrapCSSRuleList(_ptr.rules); } | |
8331 | |
8332 int addRule(String selector, String style, [int index = null]) { | |
8333 if (index === null) { | |
8334 return _ptr.addRule(selector, style); | |
8335 } else { | |
8336 return _ptr.addRule(selector, style, index); | |
8337 } | |
8338 } | |
8339 | |
8340 void deleteRule(int index) { | |
8341 _ptr.deleteRule(index); | |
8342 return; | |
8343 } | |
8344 | |
8345 int insertRule(String rule, int index) { | |
8346 return _ptr.insertRule(rule, index); | |
8347 } | |
8348 | |
8349 void removeRule(int index) { | |
8350 _ptr.removeRule(index); | |
8351 return; | |
8352 } | |
8353 } | |
8354 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8355 // for details. All rights reserved. Use of this source code is governed by a | |
8356 // BSD-style license that can be found in the LICENSE file. | |
8357 | |
8358 // WARNING: Do not edit - generated code. | |
8359 | |
8360 class CSSTransformValueWrappingImplementation extends CSSValueListWrappingImplem
entation implements CSSTransformValue { | |
8361 CSSTransformValueWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8362 | |
8363 int get operationType() { return _ptr.operationType; } | |
8364 } | |
8365 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8366 // for details. All rights reserved. Use of this source code is governed by a | |
8367 // BSD-style license that can be found in the LICENSE file. | |
8368 | |
8369 // WARNING: Do not edit - generated code. | |
8370 | |
8371 class CSSUnknownRuleWrappingImplementation extends CSSRuleWrappingImplementation
implements CSSUnknownRule { | |
8372 CSSUnknownRuleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8373 } | |
8374 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8375 // for details. All rights reserved. Use of this source code is governed by a | |
8376 // BSD-style license that can be found in the LICENSE file. | |
8377 | |
8378 // WARNING: Do not edit - generated code. | |
8379 | |
8380 class CSSValueListWrappingImplementation extends CSSValueWrappingImplementation
implements CSSValueList { | |
8381 CSSValueListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8382 | |
8383 int get length() { return _ptr.length; } | |
8384 | |
8385 CSSValue item(int index) { | |
8386 return LevelDom.wrapCSSValue(_ptr.item(index)); | |
8387 } | |
8388 } | |
8389 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8390 // for details. All rights reserved. Use of this source code is governed by a | |
8391 // BSD-style license that can be found in the LICENSE file. | |
8392 | |
8393 // WARNING: Do not edit - generated code. | |
8394 | |
8395 class CSSValueWrappingImplementation extends DOMWrapperBase implements CSSValue
{ | |
8396 CSSValueWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8397 | |
8398 String get cssText() { return _ptr.cssText; } | |
8399 | |
8400 void set cssText(String value) { _ptr.cssText = value; } | |
8401 | |
8402 int get cssValueType() { return _ptr.cssValueType; } | |
8403 } | |
8404 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8405 // for details. All rights reserved. Use of this source code is governed by a | |
8406 // BSD-style license that can be found in the LICENSE file. | |
8407 | |
8408 // WARNING: Do not edit - generated code. | |
8409 | |
8410 class CanvasElementWrappingImplementation extends ElementWrappingImplementation
implements CanvasElement { | |
8411 CanvasElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8412 | |
8413 int get height() { return _ptr.height; } | |
8414 | |
8415 void set height(int value) { _ptr.height = value; } | |
8416 | |
8417 int get width() { return _ptr.width; } | |
8418 | |
8419 void set width(int value) { _ptr.width = value; } | |
8420 | |
8421 CanvasRenderingContext getContext([String contextId = null]) { | |
8422 if (contextId === null) { | |
8423 return LevelDom.wrapCanvasRenderingContext(_ptr.getContext()); | |
8424 } else { | |
8425 return LevelDom.wrapCanvasRenderingContext(_ptr.getContext(contextId)); | |
8426 } | |
8427 } | |
8428 | |
8429 String toDataURL(String type) { | |
8430 return _ptr.toDataURL(type); | |
8431 } | |
8432 } | |
8433 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8434 // for details. All rights reserved. Use of this source code is governed by a | |
8435 // BSD-style license that can be found in the LICENSE file. | |
8436 | |
8437 // WARNING: Do not edit - generated code. | |
8438 | |
8439 class CanvasGradientWrappingImplementation extends DOMWrapperBase implements Can
vasGradient { | |
8440 CanvasGradientWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8441 | |
8442 void addColorStop(num offset, String color) { | |
8443 _ptr.addColorStop(offset, color); | |
8444 return; | |
8445 } | |
8446 } | |
8447 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8448 // for details. All rights reserved. Use of this source code is governed by a | |
8449 // BSD-style license that can be found in the LICENSE file. | |
8450 | |
8451 // WARNING: Do not edit - generated code. | |
8452 | |
8453 class CanvasPatternWrappingImplementation extends DOMWrapperBase implements Canv
asPattern { | |
8454 CanvasPatternWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8455 } | |
8456 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8457 // for details. All rights reserved. Use of this source code is governed by a | |
8458 // BSD-style license that can be found in the LICENSE file. | |
8459 | |
8460 // WARNING: Do not edit - generated code. | |
8461 | |
8462 class CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements C
anvasPixelArray { | |
8463 CanvasPixelArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
8464 | |
8465 int get length() { return _ptr.length; } | |
8466 | |
8467 int operator[](int index) { | |
8468 return item(index); | |
8469 } | |
8470 | |
8471 void operator[]=(int index, int value) { | |
8472 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
8473 } | |
8474 | |
8475 void add(int value) { | |
8476 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
8477 } | |
8478 | |
8479 void addLast(int value) { | |
8480 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
8481 } | |
8482 | |
8483 void addAll(Collection<int> collection) { | |
8484 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
8485 } | |
8486 | |
8487 void sort(int compare(int a, int b)) { | |
8488 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
8489 } | |
8490 | |
8491 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
8492 throw new UnsupportedOperationException("This object is immutable."); | |
8493 } | |
8494 | |
8495 int indexOf(int element, int startIndex) { | |
8496 return _Lists.indexOf(this, element, startIndex, this.length); | |
8497 } | |
8498 | |
8499 int lastIndexOf(int element, int startIndex) { | |
8500 return _Lists.lastIndexOf(this, element, startIndex); | |
8501 } | |
8502 | |
8503 int clear() { | |
8504 throw new UnsupportedOperationException("Cannot clear immutable List."); | |
8505 } | |
8506 | |
8507 int removeLast() { | |
8508 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
8509 } | |
8510 | |
8511 int last() { | |
8512 return this[length - 1]; | |
8513 } | |
8514 | |
8515 void forEach(void f(int element)) { | |
8516 _Collections.forEach(this, f); | |
8517 } | |
8518 | |
8519 Collection<int> filter(bool f(int element)) { | |
8520 return _Collections.filter(this, new List<int>(), f); | |
8521 } | |
8522 | |
8523 bool every(bool f(int element)) { | |
8524 return _Collections.every(this, f); | |
8525 } | |
8526 | |
8527 bool some(bool f(int element)) { | |
8528 return _Collections.some(this, f); | |
8529 } | |
8530 | |
8531 void setRange(int start, int length, List<int> from, [int startFrom]) { | |
8532 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
8533 } | |
8534 | |
8535 void removeRange(int start, int length) { | |
8536 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
8537 } | |
8538 | |
8539 void insertRange(int start, int length, [int initialValue]) { | |
8540 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
8541 } | |
8542 | |
8543 List<int> getRange(int start, int length) { | |
8544 throw new NotImplementedException(); | |
8545 } | |
8546 | |
8547 bool isEmpty() { | |
8548 return length == 0; | |
8549 } | |
8550 | |
8551 Iterator<int> iterator() { | |
8552 return new _FixedSizeListIterator<int>(this); | |
8553 } | |
8554 | |
8555 int item(int index) { | |
8556 return _ptr.item(index); | |
8557 } | |
8558 } | |
8559 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
8560 // for details. All rights reserved. Use of this source code is governed by a | |
8561 // BSD-style license that can be found in the LICENSE file. | |
8562 | |
8563 // WARNING: Do not edit - generated code. | |
8564 | |
8565 class CanvasRenderingContext2DWrappingImplementation extends CanvasRenderingCont
extWrappingImplementation implements CanvasRenderingContext2D { | |
8566 CanvasRenderingContext2DWrappingImplementation._wrap(ptr) : super._wrap(ptr) {
} | |
8567 | |
8568 String get font() { return _ptr.font; } | |
8569 | |
8570 void set font(String value) { _ptr.font = value; } | |
8571 | |
8572 num get globalAlpha() { return _ptr.globalAlpha; } | |
8573 | |
8574 void set globalAlpha(num value) { _ptr.globalAlpha = value; } | |
8575 | |
8576 String get globalCompositeOperation() { return _ptr.globalCompositeOperation;
} | |
8577 | |
8578 void set globalCompositeOperation(String value) { _ptr.globalCompositeOperatio
n = value; } | |
8579 | |
8580 String get lineCap() { return _ptr.lineCap; } | |
8581 | |
8582 void set lineCap(String value) { _ptr.lineCap = value; } | |
8583 | |
8584 String get lineJoin() { return _ptr.lineJoin; } | |
8585 | |
8586 void set lineJoin(String value) { _ptr.lineJoin = value; } | |
8587 | |
8588 num get lineWidth() { return _ptr.lineWidth; } | |
8589 | |
8590 void set lineWidth(num value) { _ptr.lineWidth = value; } | |
8591 | |
8592 num get miterLimit() { return _ptr.miterLimit; } | |
8593 | |
8594 void set miterLimit(num value) { _ptr.miterLimit = value; } | |
8595 | |
8596 num get shadowBlur() { return _ptr.shadowBlur; } | |
8597 | |
8598 void set shadowBlur(num value) { _ptr.shadowBlur = value; } | |
8599 | |
8600 String get shadowColor() { return _ptr.shadowColor; } | |
8601 | |
8602 void set shadowColor(String value) { _ptr.shadowColor = value; } | |
8603 | |
8604 num get shadowOffsetX() { return _ptr.shadowOffsetX; } | |
8605 | |
8606 void set shadowOffsetX(num value) { _ptr.shadowOffsetX = value; } | |
8607 | |
8608 num get shadowOffsetY() { return _ptr.shadowOffsetY; } | |
8609 | |
8610 void set shadowOffsetY(num value) { _ptr.shadowOffsetY = value; } | |
8611 | |
8612 String get textAlign() { return _ptr.textAlign; } | |
8613 | |
8614 void set textAlign(String value) { _ptr.textAlign = value; } | |
8615 | |
8616 String get textBaseline() { return _ptr.textBaseline; } | |
8617 | |
8618 void set textBaseline(String value) { _ptr.textBaseline = value; } | |
8619 | |
8620 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) { | |
8621 _ptr.arc(x, y, radius, startAngle, endAngle, anticlockwise); | |
8622 return; | |
8623 } | |
8624 | |
8625 void arcTo(num x1, num y1, num x2, num y2, num radius) { | |
8626 _ptr.arcTo(x1, y1, x2, y2, radius); | |
8627 return; | |
8628 } | |
8629 | |
8630 void beginPath() { | |
8631 _ptr.beginPath(); | |
8632 return; | |
8633 } | |
8634 | |
8635 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) { | |
8636 _ptr.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y); | |
8637 return; | |
8638 } | |
8639 | |
8640 void clearRect(num x, num y, num width, num height) { | |
8641 _ptr.clearRect(x, y, width, height); | |
8642 return; | |
8643 } | |
8644 | |
8645 void clearShadow() { | |
8646 _ptr.clearShadow(); | |
8647 return; | |
8648 } | |
8649 | |
8650 void clip() { | |
8651 _ptr.clip(); | |
8652 return; | |
8653 } | |
8654 | |
8655 void closePath() { | |
8656 _ptr.closePath(); | |
8657 return; | |
8658 } | |
8659 | |
8660 ImageData createImageData(var imagedata_OR_sw, [num sh = null]) { | |
8661 if (imagedata_OR_sw is ImageData) { | |
8662 if (sh === null) { | |
8663 return LevelDom.wrapImageData(_ptr.createImageData(LevelDom.unwrap(image
data_OR_sw))); | |
8664 } | |
8665 } else { | |
8666 if (imagedata_OR_sw is num) { | |
8667 return LevelDom.wrapImageData(_ptr.createImageData(LevelDom.unwrap(image
data_OR_sw), sh)); | |
8668 } | |
8669 } | |
8670 throw "Incorrect number or type of arguments"; | |
8671 } | |
8672 | |
8673 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) { | |
8674 return LevelDom.wrapCanvasGradient(_ptr.createLinearGradient(x0, y0, x1, y1)
); | |
8675 } | |
8676 | |
8677 CanvasPattern createPattern(var canvas_OR_image, String repetitionType) { | |
8678 if (canvas_OR_image is CanvasElement) { | |
8679 return LevelDom.wrapCanvasPattern(_ptr.createPattern(LevelDom.unwrap(canva
s_OR_image), repetitionType)); | |
8680 } else { | |
8681 if (canvas_OR_image is ImageElement) { | |
8682 return LevelDom.wrapCanvasPattern(_ptr.createPattern(LevelDom.unwrap(can
vas_OR_image), repetitionType)); | |
8683 } | |
8684 } | |
8685 throw "Incorrect number or type of arguments"; | |
8686 } | |
8687 | |
8688 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) { | |
8689 return LevelDom.wrapCanvasGradient(_ptr.createRadialGradient(x0, y0, r0, x1,
y1, r1)); | |
8690 } | |
8691 | |
8692 void drawImage(var canvas_OR_image, num sx_OR_x, num sy_OR_y, [num sw_OR_width
= null, num height_OR_sh = null, num dx = null, num dy = null, num dw = null, n
um dh = null]) { | |
8693 if (canvas_OR_image is ImageElement) { | |
8694 if (sw_OR_width === null) { | |
8695 if (height_OR_sh === null) { | |
8696 if (dx === null) { | |
8697 if (dy === null) { | |
8698 if (dw === null) { | |
8699 if (dh === null) { | |
8700 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_O
R_y); | |
8701 return; | |
8702 } | |
8703 } | |
8704 } | |
8705 } | |
8706 } | |
8707 } else { | |
8708 if (dx === null) { | |
8709 if (dy === null) { | |
8710 if (dw === null) { | |
8711 if (dh === null) { | |
8712 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_OR_
y, sw_OR_width, height_OR_sh); | |
8713 return; | |
8714 } | |
8715 } | |
8716 } | |
8717 } else { | |
8718 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_OR_y, sw_
OR_width, height_OR_sh, dx, dy, dw, dh); | |
8719 return; | |
8720 } | |
8721 } | |
8722 } else { | |
8723 if (canvas_OR_image is CanvasElement) { | |
8724 if (sw_OR_width === null) { | |
8725 if (height_OR_sh === null) { | |
8726 if (dx === null) { | |
8727 if (dy === null) { | |
8728 if (dw === null) { | |
8729 if (dh === null) { | |
8730 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy
_OR_y); | |
8731 return; | |
8732 } | |
8733 } | |
8734 } | |
8735 } | |
8736 } | |
8737 } else { | |
8738 if (dx === null) { | |
8739 if (dy === null) { | |
8740 if (dw === null) { | |
8741 if (dh === null) { | |
8742 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_O
R_y, sw_OR_width, height_OR_sh); | |
8743 return; | |
8744 } | |
8745 } | |
8746 } | |
8747 } else { | |
8748 _ptr.drawImage(LevelDom.unwrap(canvas_OR_image), sx_OR_x, sy_OR_y, s
w_OR_width, height_OR_sh, dx, dy, dw, dh); | |
8749 return; | |
8750 } | |
8751 } | |
8752 } | |
8753 } | |
8754 throw "Incorrect number or type of arguments"; | |
8755 } | |
8756 | |
8757 void drawImageFromRect(ImageElement image, [num sx = null, num sy = null, num
sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num dh =
null, String compositeOperation = null]) { | |
8758 if (sx === null) { | |
8759 if (sy === null) { | |
8760 if (sw === null) { | |
8761 if (sh === null) { | |
8762 if (dx === null) { | |
8763 if (dy === null) { | |
8764 if (dw === null) { | |
8765 if (dh === null) { | |
8766 if (compositeOperation === null) { | |
8767 _ptr.drawImageFromRect(LevelDom.unwrap(image)); | |
8768 return; | |
8769 } | |
8770 } | |
8771 } | |
8772 } | |
8773 } | |
8774 } | |
8775 } | |
8776 } | |
8777 } else { | |
8778 if (sy === null) { | |
8779 if (sw === null) { | |
8780 if (sh === null) { | |
8781 if (dx === null) { | |
8782 if (dy === null) { | |
8783 if (dw === null) { | |
8784 if (dh === null) { | |
8785 if (compositeOperation === null) { | |
8786 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx); | |
8787 return; | |
8788 } | |
8789 } | |
8790 } | |
8791 } | |
8792 } | |
8793 } | |
8794 } | |
8795 } else { | |
8796 if (sw === null) { | |
8797 if (sh === null) { | |
8798 if (dx === null) { | |
8799 if (dy === null) { | |
8800 if (dw === null) { | |
8801 if (dh === null) { | |
8802 if (compositeOperation === null) { | |
8803 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy); | |
8804 return; | |
8805 } | |
8806 } | |
8807 } | |
8808 } | |
8809 } | |
8810 } | |
8811 } else { | |
8812 if (sh === null) { | |
8813 if (dx === null) { | |
8814 if (dy === null) { | |
8815 if (dw === null) { | |
8816 if (dh === null) { | |
8817 if (compositeOperation === null) { | |
8818 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw)
; | |
8819 return; | |
8820 } | |
8821 } | |
8822 } | |
8823 } | |
8824 } | |
8825 } else { | |
8826 if (dx === null) { | |
8827 if (dy === null) { | |
8828 if (dw === null) { | |
8829 if (dh === null) { | |
8830 if (compositeOperation === null) { | |
8831 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh); | |
8832 return; | |
8833 } | |
8834 } | |
8835 } | |
8836 } | |
8837 } else { | |
8838 if (dy === null) { | |
8839 if (dw === null) { | |
8840 if (dh === null) { | |
8841 if (compositeOperation === null) { | |
8842 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx); | |
8843 return; | |
8844 } | |
8845 } | |
8846 } | |
8847 } else { | |
8848 if (dw === null) { | |
8849 if (dh === null) { | |
8850 if (compositeOperation === null) { | |
8851 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx, dy); | |
8852 return; | |
8853 } | |
8854 } | |
8855 } else { | |
8856 if (dh === null) { | |
8857 if (compositeOperation === null) { | |
8858 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx, dy, dw); | |
8859 return; | |
8860 } | |
8861 } else { | |
8862 if (compositeOperation === null) { | |
8863 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx, dy, dw, dh); | |
8864 return; | |
8865 } else { | |
8866 _ptr.drawImageFromRect(LevelDom.unwrap(image), sx, sy, sw,
sh, dx, dy, dw, dh, compositeOperation); | |
8867 return; | |
8868 } | |
8869 } | |
8870 } | |
8871 } | |
8872 } | |
8873 } | |
8874 } | |
8875 } | |
8876 } | |
8877 throw "Incorrect number or type of arguments"; | |
8878 } | |
8879 | |
8880 void fill() { | |
8881 _ptr.fill(); | |
8882 return; | |
8883 } | |
8884 | |
8885 void fillRect(num x, num y, num width, num height) { | |
8886 _ptr.fillRect(x, y, width, height); | |
8887 return; | |
8888 } | |
8889 | |
8890 void fillText(String text, num x, num y, [num maxWidth = null]) { | |
8891 if (maxWidth === null) { | |
8892 _ptr.fillText(text, x, y); | |
8893 return; | |
8894 } else { | |
8895 _ptr.fillText(text, x, y, maxWidth); | |
8896 return; | |
8897 } | |
8898 } | |
8899 | |
8900 ImageData getImageData(num sx, num sy, num sw, num sh) { | |
8901 return LevelDom.wrapImageData(_ptr.getImageData(sx, sy, sw, sh)); | |
8902 } | |
8903 | |
8904 bool isPointInPath(num x, num y) { | |
8905 return _ptr.isPointInPath(x, y); | |
8906 } | |
8907 | |
8908 void lineTo(num x, num y) { | |
8909 _ptr.lineTo(x, y); | |
8910 return; | |
8911 } | |
8912 | |
8913 TextMetrics measureText(String text) { | |
8914 return LevelDom.wrapTextMetrics(_ptr.measureText(text)); | |
8915 } | |
8916 | |
8917 void moveTo(num x, num y) { | |
8918 _ptr.moveTo(x, y); | |
8919 return; | |
8920 } | |
8921 | |
8922 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX = null, num
dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) { | |
8923 if (dirtyX === null) { | |
8924 if (dirtyY === null) { | |
8925 if (dirtyWidth === null) { | |
8926 if (dirtyHeight === null) { | |
8927 _ptr.putImageData(LevelDom.unwrap(imagedata), dx, dy); | |
8928 return; | |
8929 } | |
8930 } | |
8931 } | |
8932 } else { | |
8933 _ptr.putImageData(LevelDom.unwrap(imagedata), dx, dy, dirtyX, dirtyY, dirt
yWidth, dirtyHeight); | |
8934 return; | |
8935 } | |
8936 throw "Incorrect number or type of arguments"; | |
8937 } | |
8938 | |
8939 void quadraticCurveTo(num cpx, num cpy, num x, num y) { | |
8940 _ptr.quadraticCurveTo(cpx, cpy, x, y); | |
8941 return; | |
8942 } | |
8943 | |
8944 void rect(num x, num y, num width, num height) { | |
8945 _ptr.rect(x, y, width, height); | |
8946 return; | |
8947 } | |
8948 | |
8949 void restore() { | |
8950 _ptr.restore(); | |
8951 return; | |
8952 } | |
8953 | |
8954 void rotate(num angle) { | |
8955 _ptr.rotate(angle); | |
8956 return; | |
8957 } | |
8958 | |
8959 void save() { | |
8960 _ptr.save(); | |
8961 return; | |
8962 } | |
8963 | |
8964 void scale(num sx, num sy) { | |
8965 _ptr.scale(sx, sy); | |
8966 return; | |
8967 } | |
8968 | |
8969 void setAlpha(num alpha) { | |
8970 _ptr.setAlpha(alpha); | |
8971 return; | |
8972 } | |
8973 | |
8974 void setCompositeOperation(String compositeOperation) { | |
8975 _ptr.setCompositeOperation(compositeOperation); | |
8976 return; | |
8977 } | |
8978 | |
8979 void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = nul
l, num b_OR_y = null, num a_OR_k = null, num a = null]) { | |
8980 if (c_OR_color_OR_grayLevel_OR_r is String) { | |
8981 if (alpha_OR_g_OR_m === null) { | |
8982 if (b_OR_y === null) { | |
8983 if (a_OR_k === null) { | |
8984 if (a === null) { | |
8985 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r)); | |
8986 return; | |
8987 } | |
8988 } | |
8989 } | |
8990 } else { | |
8991 if (b_OR_y === null) { | |
8992 if (a_OR_k === null) { | |
8993 if (a === null) { | |
8994 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), a
lpha_OR_g_OR_m); | |
8995 return; | |
8996 } | |
8997 } | |
8998 } | |
8999 } | |
9000 } else { | |
9001 if (c_OR_color_OR_grayLevel_OR_r is num) { | |
9002 if (alpha_OR_g_OR_m === null) { | |
9003 if (b_OR_y === null) { | |
9004 if (a_OR_k === null) { | |
9005 if (a === null) { | |
9006 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r))
; | |
9007 return; | |
9008 } | |
9009 } | |
9010 } | |
9011 } else { | |
9012 if (b_OR_y === null) { | |
9013 if (a_OR_k === null) { | |
9014 if (a === null) { | |
9015 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r),
alpha_OR_g_OR_m); | |
9016 return; | |
9017 } | |
9018 } | |
9019 } else { | |
9020 if (a === null) { | |
9021 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), a
lpha_OR_g_OR_m, b_OR_y, a_OR_k); | |
9022 return; | |
9023 } else { | |
9024 _ptr.setFillColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r), a
lpha_OR_g_OR_m, b_OR_y, a_OR_k, a); | |
9025 return; | |
9026 } | |
9027 } | |
9028 } | |
9029 } | |
9030 } | |
9031 throw "Incorrect number or type of arguments"; | |
9032 } | |
9033 | |
9034 void setFillStyle(var color_OR_gradient_OR_pattern) { | |
9035 if (color_OR_gradient_OR_pattern is String) { | |
9036 _ptr.setFillStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
9037 return; | |
9038 } else { | |
9039 if (color_OR_gradient_OR_pattern is CanvasGradient) { | |
9040 _ptr.setFillStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
9041 return; | |
9042 } else { | |
9043 if (color_OR_gradient_OR_pattern is CanvasPattern) { | |
9044 _ptr.setFillStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
9045 return; | |
9046 } | |
9047 } | |
9048 } | |
9049 throw "Incorrect number or type of arguments"; | |
9050 } | |
9051 | |
9052 void setLineCap(String cap) { | |
9053 _ptr.setLineCap(cap); | |
9054 return; | |
9055 } | |
9056 | |
9057 void setLineJoin(String join) { | |
9058 _ptr.setLineJoin(join); | |
9059 return; | |
9060 } | |
9061 | |
9062 void setLineWidth(num width) { | |
9063 _ptr.setLineWidth(width); | |
9064 return; | |
9065 } | |
9066 | |
9067 void setMiterLimit(num limit) { | |
9068 _ptr.setMiterLimit(limit); | |
9069 return; | |
9070 } | |
9071 | |
9072 void setShadow(num width, num height, num blur, [var c_OR_color_OR_grayLevel_O
R_r = null, num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, nu
m a = null]) { | |
9073 if (c_OR_color_OR_grayLevel_OR_r === null) { | |
9074 if (alpha_OR_g_OR_m === null) { | |
9075 if (b_OR_y === null) { | |
9076 if (a_OR_k === null) { | |
9077 if (a === null) { | |
9078 _ptr.setShadow(width, height, blur); | |
9079 return; | |
9080 } | |
9081 } | |
9082 } | |
9083 } | |
9084 } else { | |
9085 if (c_OR_color_OR_grayLevel_OR_r is String) { | |
9086 if (alpha_OR_g_OR_m === null) { | |
9087 if (b_OR_y === null) { | |
9088 if (a_OR_k === null) { | |
9089 if (a === null) { | |
9090 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O
R_grayLevel_OR_r)); | |
9091 return; | |
9092 } | |
9093 } | |
9094 } | |
9095 } else { | |
9096 if (b_OR_y === null) { | |
9097 if (a_OR_k === null) { | |
9098 if (a === null) { | |
9099 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O
R_grayLevel_OR_r), alpha_OR_g_OR_m); | |
9100 return; | |
9101 } | |
9102 } | |
9103 } | |
9104 } | |
9105 } else { | |
9106 if (c_OR_color_OR_grayLevel_OR_r is num) { | |
9107 if (alpha_OR_g_OR_m === null) { | |
9108 if (b_OR_y === null) { | |
9109 if (a_OR_k === null) { | |
9110 if (a === null) { | |
9111 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color
_OR_grayLevel_OR_r)); | |
9112 return; | |
9113 } | |
9114 } | |
9115 } | |
9116 } else { | |
9117 if (b_OR_y === null) { | |
9118 if (a_OR_k === null) { | |
9119 if (a === null) { | |
9120 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color
_OR_grayLevel_OR_r), alpha_OR_g_OR_m); | |
9121 return; | |
9122 } | |
9123 } | |
9124 } else { | |
9125 if (a === null) { | |
9126 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O
R_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k); | |
9127 return; | |
9128 } else { | |
9129 _ptr.setShadow(width, height, blur, LevelDom.unwrap(c_OR_color_O
R_grayLevel_OR_r), alpha_OR_g_OR_m, b_OR_y, a_OR_k, a); | |
9130 return; | |
9131 } | |
9132 } | |
9133 } | |
9134 } | |
9135 } | |
9136 } | |
9137 throw "Incorrect number or type of arguments"; | |
9138 } | |
9139 | |
9140 void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = n
ull, num b_OR_y = null, num a_OR_k = null, num a = null]) { | |
9141 if (c_OR_color_OR_grayLevel_OR_r is String) { | |
9142 if (alpha_OR_g_OR_m === null) { | |
9143 if (b_OR_y === null) { | |
9144 if (a_OR_k === null) { | |
9145 if (a === null) { | |
9146 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r))
; | |
9147 return; | |
9148 } | |
9149 } | |
9150 } | |
9151 } else { | |
9152 if (b_OR_y === null) { | |
9153 if (a_OR_k === null) { | |
9154 if (a === null) { | |
9155 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r),
alpha_OR_g_OR_m); | |
9156 return; | |
9157 } | |
9158 } | |
9159 } | |
9160 } | |
9161 } else { | |
9162 if (c_OR_color_OR_grayLevel_OR_r is num) { | |
9163 if (alpha_OR_g_OR_m === null) { | |
9164 if (b_OR_y === null) { | |
9165 if (a_OR_k === null) { | |
9166 if (a === null) { | |
9167 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r
)); | |
9168 return; | |
9169 } | |
9170 } | |
9171 } | |
9172 } else { | |
9173 if (b_OR_y === null) { | |
9174 if (a_OR_k === null) { | |
9175 if (a === null) { | |
9176 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r
), alpha_OR_g_OR_m); | |
9177 return; | |
9178 } | |
9179 } | |
9180 } else { | |
9181 if (a === null) { | |
9182 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r),
alpha_OR_g_OR_m, b_OR_y, a_OR_k); | |
9183 return; | |
9184 } else { | |
9185 _ptr.setStrokeColor(LevelDom.unwrap(c_OR_color_OR_grayLevel_OR_r),
alpha_OR_g_OR_m, b_OR_y, a_OR_k, a); | |
9186 return; | |
9187 } | |
9188 } | |
9189 } | |
9190 } | |
9191 } | |
9192 throw "Incorrect number or type of arguments"; | |
9193 } | |
9194 | |
9195 void setStrokeStyle(var color_OR_gradient_OR_pattern) { | |
9196 if (color_OR_gradient_OR_pattern is String) { | |
9197 _ptr.setStrokeStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
9198 return; | |
9199 } else { | |
9200 if (color_OR_gradient_OR_pattern is CanvasGradient) { | |
9201 _ptr.setStrokeStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
9202 return; | |
9203 } else { | |
9204 if (color_OR_gradient_OR_pattern is CanvasPattern) { | |
9205 _ptr.setStrokeStyle(LevelDom.unwrap(color_OR_gradient_OR_pattern)); | |
9206 return; | |
9207 } | |
9208 } | |
9209 } | |
9210 throw "Incorrect number or type of arguments"; | |
9211 } | |
9212 | |
9213 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) { | |
9214 _ptr.setTransform(m11, m12, m21, m22, dx, dy); | |
9215 return; | |
9216 } | |
9217 | |
9218 void stroke() { | |
9219 _ptr.stroke(); | |
9220 return; | |
9221 } | |
9222 | |
9223 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) { | |
9224 if (lineWidth === null) { | |
9225 _ptr.strokeRect(x, y, width, height); | |
9226 return; | |
9227 } else { | |
9228 _ptr.strokeRect(x, y, width, height, lineWidth); | |
9229 return; | |
9230 } | |
9231 } | |
9232 | |
9233 void strokeText(String text, num x, num y, [num maxWidth = null]) { | |
9234 if (maxWidth === null) { | |
9235 _ptr.strokeText(text, x, y); | |
9236 return; | |
9237 } else { | |
9238 _ptr.strokeText(text, x, y, maxWidth); | |
9239 return; | |
9240 } | |
9241 } | |
9242 | |
9243 void transform(num m11, num m12, num m21, num m22, num dx, num dy) { | |
9244 _ptr.transform(m11, m12, m21, m22, dx, dy); | |
9245 return; | |
9246 } | |
9247 | |
9248 void translate(num tx, num ty) { | |
9249 _ptr.translate(tx, ty); | |
9250 return; | |
9251 } | |
9252 } | |
9253 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9254 // for details. All rights reserved. Use of this source code is governed by a | |
9255 // BSD-style license that can be found in the LICENSE file. | |
9256 | |
9257 // WARNING: Do not edit - generated code. | |
9258 | |
9259 class CanvasRenderingContextWrappingImplementation extends DOMWrapperBase implem
ents CanvasRenderingContext { | |
9260 CanvasRenderingContextWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9261 | |
9262 CanvasElement get canvas() { return LevelDom.wrapCanvasElement(_ptr.canvas); } | |
9263 } | |
9264 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9265 // for details. All rights reserved. Use of this source code is governed by a | |
9266 // BSD-style license that can be found in the LICENSE file. | |
9267 | |
9268 // WARNING: Do not edit - generated code. | |
9269 | |
9270 class CharacterDataWrappingImplementation extends NodeWrappingImplementation imp
lements CharacterData { | |
9271 CharacterDataWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9272 | |
9273 String get data() { return _ptr.data; } | |
9274 | |
9275 void set data(String value) { _ptr.data = value; } | |
9276 | |
9277 int get length() { return _ptr.length; } | |
9278 | |
9279 void appendData(String data) { | |
9280 _ptr.appendData(data); | |
9281 return; | |
9282 } | |
9283 | |
9284 void deleteData(int offset, int length) { | |
9285 _ptr.deleteData(offset, length); | |
9286 return; | |
9287 } | |
9288 | |
9289 void insertData(int offset, String data) { | |
9290 _ptr.insertData(offset, data); | |
9291 return; | |
9292 } | |
9293 | |
9294 void replaceData(int offset, int length, String data) { | |
9295 _ptr.replaceData(offset, length, data); | |
9296 return; | |
9297 } | |
9298 | |
9299 String substringData(int offset, int length) { | |
9300 return _ptr.substringData(offset, length); | |
9301 } | |
9302 } | |
9303 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9304 // 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. | |
9306 | |
9307 // WARNING: Do not edit - generated code. | |
9308 | |
9309 class ClientRectListWrappingImplementation extends DOMWrapperBase implements Cli
entRectList { | |
9310 ClientRectListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9311 | |
9312 int get length() { return _ptr.length; } | |
9313 | |
9314 ClientRect item(int index) { | |
9315 return LevelDom.wrapClientRect(_ptr.item(index)); | |
9316 } | |
9317 } | |
9318 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9319 // for details. All rights reserved. Use of this source code is governed by a | |
9320 // BSD-style license that can be found in the LICENSE file. | |
9321 | |
9322 // WARNING: Do not edit - generated code. | |
9323 | |
9324 class ClientRectWrappingImplementation extends DOMWrapperBase implements ClientR
ect { | |
9325 ClientRectWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9326 | |
9327 num get bottom() { return _ptr.bottom; } | |
9328 | |
9329 num get height() { return _ptr.height; } | |
9330 | |
9331 num get left() { return _ptr.left; } | |
9332 | |
9333 num get right() { return _ptr.right; } | |
9334 | |
9335 num get top() { return _ptr.top; } | |
9336 | |
9337 num get width() { return _ptr.width; } | |
9338 } | |
9339 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9340 // for details. All rights reserved. Use of this source code is governed by a | |
9341 // BSD-style license that can be found in the LICENSE file. | |
9342 | |
9343 // WARNING: Do not edit - generated code. | |
9344 | |
9345 class ClipboardWrappingImplementation extends DOMWrapperBase implements Clipboar
d { | |
9346 ClipboardWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9347 | |
9348 String get dropEffect() { return _ptr.dropEffect; } | |
9349 | |
9350 void set dropEffect(String value) { _ptr.dropEffect = value; } | |
9351 | |
9352 String get effectAllowed() { return _ptr.effectAllowed; } | |
9353 | |
9354 void set effectAllowed(String value) { _ptr.effectAllowed = value; } | |
9355 | |
9356 FileList get files() { return LevelDom.wrapFileList(_ptr.files); } | |
9357 | |
9358 DataTransferItems get items() { return LevelDom.wrapDataTransferItems(_ptr.ite
ms); } | |
9359 | |
9360 void clearData([String type = null]) { | |
9361 if (type === null) { | |
9362 _ptr.clearData(); | |
9363 return; | |
9364 } else { | |
9365 _ptr.clearData(type); | |
9366 return; | |
9367 } | |
9368 } | |
9369 | |
9370 void getData(String type) { | |
9371 _ptr.getData(type); | |
9372 return; | |
9373 } | |
9374 | |
9375 bool setData(String type, String data) { | |
9376 return _ptr.setData(type, data); | |
9377 } | |
9378 | |
9379 void setDragImage(ImageElement image, int x, int y) { | |
9380 _ptr.setDragImage(LevelDom.unwrap(image), x, y); | |
9381 return; | |
9382 } | |
9383 } | |
9384 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9385 // for details. All rights reserved. Use of this source code is governed by a | |
9386 // BSD-style license that can be found in the LICENSE file. | |
9387 | |
9388 // WARNING: Do not edit - generated code. | |
9389 | |
9390 class CloseEventWrappingImplementation extends EventWrappingImplementation imple
ments CloseEvent { | |
9391 CloseEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9392 | |
9393 int get code() { return _ptr.code; } | |
9394 | |
9395 String get reason() { return _ptr.reason; } | |
9396 | |
9397 bool get wasClean() { return _ptr.wasClean; } | |
9398 | |
9399 void initCloseEvent(String typeArg, bool canBubbleArg, bool cancelableArg, boo
l wasCleanArg, int codeArg, String reasonArg) { | |
9400 _ptr.initCloseEvent(typeArg, canBubbleArg, cancelableArg, wasCleanArg, codeA
rg, reasonArg); | |
9401 return; | |
9402 } | |
9403 } | |
9404 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9405 // for details. All rights reserved. Use of this source code is governed by a | |
9406 // BSD-style license that can be found in the LICENSE file. | |
9407 | |
9408 // WARNING: Do not edit - generated code. | |
9409 | |
9410 class CommentWrappingImplementation extends CharacterDataWrappingImplementation
implements Comment { | |
9411 CommentWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9412 } | |
9413 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9414 // for details. All rights reserved. Use of this source code is governed by a | |
9415 // BSD-style license that can be found in the LICENSE file. | |
9416 | |
9417 // WARNING: Do not edit - generated code. | |
9418 | |
9419 class CompositionEventWrappingImplementation extends UIEventWrappingImplementati
on implements CompositionEvent { | |
9420 CompositionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9421 | |
9422 String get data() { return _ptr.data; } | |
9423 | |
9424 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Window viewArg, String dataArg) { | |
9425 _ptr.initCompositionEvent(typeArg, canBubbleArg, cancelableArg, LevelDom.unw
rap(viewArg), dataArg); | |
9426 return; | |
9427 } | |
9428 } | |
9429 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9430 // for details. All rights reserved. Use of this source code is governed by a | |
9431 // BSD-style license that can be found in the LICENSE file. | |
9432 | |
9433 // WARNING: Do not edit - generated code. | |
9434 | |
9435 class ConsoleWrappingImplementation extends DOMWrapperBase implements Console { | |
9436 ConsoleWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9437 | |
9438 void count() { | |
9439 _ptr.count(); | |
9440 return; | |
9441 } | |
9442 | |
9443 void debug(Object arg) { | |
9444 _ptr.debug(LevelDom.unwrapMaybePrimitive(arg)); | |
9445 return; | |
9446 } | |
9447 | |
9448 void dir() { | |
9449 _ptr.dir(); | |
9450 return; | |
9451 } | |
9452 | |
9453 void dirxml() { | |
9454 _ptr.dirxml(); | |
9455 return; | |
9456 } | |
9457 | |
9458 void error(Object arg) { | |
9459 _ptr.error(LevelDom.unwrapMaybePrimitive(arg)); | |
9460 return; | |
9461 } | |
9462 | |
9463 void group() { | |
9464 _ptr.group(); | |
9465 return; | |
9466 } | |
9467 | |
9468 void groupCollapsed() { | |
9469 _ptr.groupCollapsed(); | |
9470 return; | |
9471 } | |
9472 | |
9473 void groupEnd() { | |
9474 _ptr.groupEnd(); | |
9475 return; | |
9476 } | |
9477 | |
9478 void info(Object arg) { | |
9479 _ptr.info(LevelDom.unwrapMaybePrimitive(arg)); | |
9480 return; | |
9481 } | |
9482 | |
9483 void log(Object arg) { | |
9484 _ptr.log(LevelDom.unwrapMaybePrimitive(arg)); | |
9485 return; | |
9486 } | |
9487 | |
9488 void markTimeline() { | |
9489 _ptr.markTimeline(); | |
9490 return; | |
9491 } | |
9492 | |
9493 void time(String title) { | |
9494 _ptr.time(title); | |
9495 return; | |
9496 } | |
9497 | |
9498 void timeEnd(String title) { | |
9499 _ptr.timeEnd(title); | |
9500 return; | |
9501 } | |
9502 | |
9503 void timeStamp() { | |
9504 _ptr.timeStamp(); | |
9505 return; | |
9506 } | |
9507 | |
9508 void trace(Object arg) { | |
9509 _ptr.trace(LevelDom.unwrapMaybePrimitive(arg)); | |
9510 return; | |
9511 } | |
9512 | |
9513 void warn(Object arg) { | |
9514 _ptr.warn(LevelDom.unwrapMaybePrimitive(arg)); | |
9515 return; | |
9516 } | |
9517 } | |
9518 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9519 // for details. All rights reserved. Use of this source code is governed by a | |
9520 // BSD-style license that can be found in the LICENSE file. | |
9521 | |
9522 // WARNING: Do not edit - generated code. | |
9523 | |
9524 class CoordinatesWrappingImplementation extends DOMWrapperBase implements Coordi
nates { | |
9525 CoordinatesWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9526 | |
9527 num get accuracy() { return _ptr.accuracy; } | |
9528 | |
9529 num get altitude() { return _ptr.altitude; } | |
9530 | |
9531 num get altitudeAccuracy() { return _ptr.altitudeAccuracy; } | |
9532 | |
9533 num get heading() { return _ptr.heading; } | |
9534 | |
9535 num get latitude() { return _ptr.latitude; } | |
9536 | |
9537 num get longitude() { return _ptr.longitude; } | |
9538 | |
9539 num get speed() { return _ptr.speed; } | |
9540 } | |
9541 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9542 // for details. All rights reserved. Use of this source code is governed by a | |
9543 // BSD-style license that can be found in the LICENSE file. | |
9544 | |
9545 // WARNING: Do not edit - generated code. | |
9546 | |
9547 class CounterWrappingImplementation extends DOMWrapperBase implements Counter { | |
9548 CounterWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9549 | |
9550 String get identifier() { return _ptr.identifier; } | |
9551 | |
9552 String get listStyle() { return _ptr.listStyle; } | |
9553 | |
9554 String get separator() { return _ptr.separator; } | |
9555 } | |
9556 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9557 // for details. All rights reserved. Use of this source code is governed by a | |
9558 // BSD-style license that can be found in the LICENSE file. | |
9559 | |
9560 // WARNING: Do not edit - generated code. | |
9561 | |
9562 class CryptoWrappingImplementation extends DOMWrapperBase implements Crypto { | |
9563 CryptoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9564 | |
9565 void getRandomValues(ArrayBufferView array) { | |
9566 _ptr.getRandomValues(LevelDom.unwrap(array)); | |
9567 return; | |
9568 } | |
9569 } | |
9570 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9571 // for details. All rights reserved. Use of this source code is governed by a | |
9572 // BSD-style license that can be found in the LICENSE file. | |
9573 | |
9574 // WARNING: Do not edit - generated code. | |
9575 | |
9576 class CustomEventWrappingImplementation extends EventWrappingImplementation impl
ements CustomEvent { | |
9577 CustomEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9578 | |
9579 String get detail() { return _ptr.detail; } | |
9580 | |
9581 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob
ject detailArg) { | |
9582 _ptr.initCustomEvent(typeArg, canBubbleArg, cancelableArg, LevelDom.unwrapMa
ybePrimitive(detailArg)); | |
9583 return; | |
9584 } | |
9585 } | |
9586 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9587 // for details. All rights reserved. Use of this source code is governed by a | |
9588 // BSD-style license that can be found in the LICENSE file. | |
9589 | |
9590 // WARNING: Do not edit - generated code. | |
9591 | |
9592 class DListElementWrappingImplementation extends ElementWrappingImplementation i
mplements DListElement { | |
9593 DListElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9594 | |
9595 bool get compact() { return _ptr.compact; } | |
9596 | |
9597 void set compact(bool value) { _ptr.compact = value; } | |
9598 } | |
9599 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9600 // for details. All rights reserved. Use of this source code is governed by a | |
9601 // BSD-style license that can be found in the LICENSE file. | |
9602 | |
9603 // WARNING: Do not edit - generated code. | |
9604 | |
9605 class DOMExceptionWrappingImplementation extends DOMWrapperBase implements DOMEx
ception { | |
9606 DOMExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9607 | |
9608 int get code() { return _ptr.code; } | |
9609 | |
9610 String get message() { return _ptr.message; } | |
9611 | |
9612 String get name() { return _ptr.name; } | |
9613 } | |
9614 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9615 // for details. All rights reserved. Use of this source code is governed by a | |
9616 // BSD-style license that can be found in the LICENSE file. | |
9617 | |
9618 // WARNING: Do not edit - generated code. | |
9619 | |
9620 class DOMFileSystemSyncWrappingImplementation extends DOMWrapperBase implements
DOMFileSystemSync { | |
9621 DOMFileSystemSyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9622 | |
9623 String get name() { return _ptr.name; } | |
9624 | |
9625 DirectoryEntrySync get root() { return LevelDom.wrapDirectoryEntrySync(_ptr.ro
ot); } | |
9626 } | |
9627 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9628 // for details. All rights reserved. Use of this source code is governed by a | |
9629 // BSD-style license that can be found in the LICENSE file. | |
9630 | |
9631 // WARNING: Do not edit - generated code. | |
9632 | |
9633 class DOMFileSystemWrappingImplementation extends DOMWrapperBase implements DOMF
ileSystem { | |
9634 DOMFileSystemWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9635 | |
9636 String get name() { return _ptr.name; } | |
9637 | |
9638 DirectoryEntry get root() { return LevelDom.wrapDirectoryEntry(_ptr.root); } | |
9639 } | |
9640 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9641 // for details. All rights reserved. Use of this source code is governed by a | |
9642 // BSD-style license that can be found in the LICENSE file. | |
9643 | |
9644 // WARNING: Do not edit - generated code. | |
9645 | |
9646 class DOMFormDataWrappingImplementation extends DOMWrapperBase implements DOMFor
mData { | |
9647 DOMFormDataWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9648 | |
9649 void append(String name, String value) { | |
9650 _ptr.append(name, value); | |
9651 return; | |
9652 } | |
9653 } | |
9654 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9655 // for details. All rights reserved. Use of this source code is governed by a | |
9656 // BSD-style license that can be found in the LICENSE file. | |
9657 | |
9658 // WARNING: Do not edit - generated code. | |
9659 | |
9660 class DOMMimeTypeArrayWrappingImplementation extends DOMWrapperBase implements D
OMMimeTypeArray { | |
9661 DOMMimeTypeArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9662 | |
9663 int get length() { return _ptr.length; } | |
9664 | |
9665 DOMMimeType item(int index) { | |
9666 return LevelDom.wrapDOMMimeType(_ptr.item(index)); | |
9667 } | |
9668 | |
9669 DOMMimeType namedItem(String name) { | |
9670 return LevelDom.wrapDOMMimeType(_ptr.namedItem(name)); | |
9671 } | |
9672 } | |
9673 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9674 // for details. All rights reserved. Use of this source code is governed by a | |
9675 // BSD-style license that can be found in the LICENSE file. | |
9676 | |
9677 // WARNING: Do not edit - generated code. | |
9678 | |
9679 class DOMMimeTypeWrappingImplementation extends DOMWrapperBase implements DOMMim
eType { | |
9680 DOMMimeTypeWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9681 | |
9682 String get description() { return _ptr.description; } | |
9683 | |
9684 DOMPlugin get enabledPlugin() { return LevelDom.wrapDOMPlugin(_ptr.enabledPlug
in); } | |
9685 | |
9686 String get suffixes() { return _ptr.suffixes; } | |
9687 | |
9688 String get type() { return _ptr.type; } | |
9689 } | |
9690 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9691 // for details. All rights reserved. Use of this source code is governed by a | |
9692 // BSD-style license that can be found in the LICENSE file. | |
9693 | |
9694 // WARNING: Do not edit - generated code. | |
9695 | |
9696 class DOMParserWrappingImplementation extends DOMWrapperBase implements DOMParse
r { | |
9697 DOMParserWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9698 | |
9699 Document parseFromString(String str, String contentType) { | |
9700 return LevelDom.wrapDocument(_ptr.parseFromString(str, contentType)); | |
9701 } | |
9702 } | |
9703 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9704 // for details. All rights reserved. Use of this source code is governed by a | |
9705 // BSD-style license that can be found in the LICENSE file. | |
9706 | |
9707 // WARNING: Do not edit - generated code. | |
9708 | |
9709 class DOMPluginArrayWrappingImplementation extends DOMWrapperBase implements DOM
PluginArray { | |
9710 DOMPluginArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9711 | |
9712 int get length() { return _ptr.length; } | |
9713 | |
9714 DOMPlugin item(int index) { | |
9715 return LevelDom.wrapDOMPlugin(_ptr.item(index)); | |
9716 } | |
9717 | |
9718 DOMPlugin namedItem(String name) { | |
9719 return LevelDom.wrapDOMPlugin(_ptr.namedItem(name)); | |
9720 } | |
9721 | |
9722 void refresh(bool reload) { | |
9723 _ptr.refresh(reload); | |
9724 return; | |
9725 } | |
9726 } | |
9727 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9728 // for details. All rights reserved. Use of this source code is governed by a | |
9729 // BSD-style license that can be found in the LICENSE file. | |
9730 | |
9731 // WARNING: Do not edit - generated code. | |
9732 | |
9733 class DOMPluginWrappingImplementation extends DOMWrapperBase implements DOMPlugi
n { | |
9734 DOMPluginWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9735 | |
9736 String get description() { return _ptr.description; } | |
9737 | |
9738 String get filename() { return _ptr.filename; } | |
9739 | |
9740 int get length() { return _ptr.length; } | |
9741 | |
9742 String get name() { return _ptr.name; } | |
9743 | |
9744 DOMMimeType item(int index) { | |
9745 return LevelDom.wrapDOMMimeType(_ptr.item(index)); | |
9746 } | |
9747 | |
9748 DOMMimeType namedItem(String name) { | |
9749 return LevelDom.wrapDOMMimeType(_ptr.namedItem(name)); | |
9750 } | |
9751 } | |
9752 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9753 // for details. All rights reserved. Use of this source code is governed by a | |
9754 // BSD-style license that can be found in the LICENSE file. | |
9755 | |
9756 // WARNING: Do not edit - generated code. | |
9757 | |
9758 class DOMSelectionWrappingImplementation extends DOMWrapperBase implements DOMSe
lection { | |
9759 DOMSelectionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9760 | |
9761 Node get anchorNode() { return LevelDom.wrapNode(_ptr.anchorNode); } | |
9762 | |
9763 int get anchorOffset() { return _ptr.anchorOffset; } | |
9764 | |
9765 Node get baseNode() { return LevelDom.wrapNode(_ptr.baseNode); } | |
9766 | |
9767 int get baseOffset() { return _ptr.baseOffset; } | |
9768 | |
9769 Node get extentNode() { return LevelDom.wrapNode(_ptr.extentNode); } | |
9770 | |
9771 int get extentOffset() { return _ptr.extentOffset; } | |
9772 | |
9773 Node get focusNode() { return LevelDom.wrapNode(_ptr.focusNode); } | |
9774 | |
9775 int get focusOffset() { return _ptr.focusOffset; } | |
9776 | |
9777 bool get isCollapsed() { return _ptr.isCollapsed; } | |
9778 | |
9779 int get rangeCount() { return _ptr.rangeCount; } | |
9780 | |
9781 String get type() { return _ptr.type; } | |
9782 | |
9783 void addRange(Range range) { | |
9784 _ptr.addRange(LevelDom.unwrap(range)); | |
9785 return; | |
9786 } | |
9787 | |
9788 void collapse(Node node, int index) { | |
9789 _ptr.collapse(LevelDom.unwrap(node), index); | |
9790 return; | |
9791 } | |
9792 | |
9793 void collapseToEnd() { | |
9794 _ptr.collapseToEnd(); | |
9795 return; | |
9796 } | |
9797 | |
9798 void collapseToStart() { | |
9799 _ptr.collapseToStart(); | |
9800 return; | |
9801 } | |
9802 | |
9803 bool containsNode(Node node, bool allowPartial) { | |
9804 return _ptr.containsNode(LevelDom.unwrap(node), allowPartial); | |
9805 } | |
9806 | |
9807 void deleteFromDocument() { | |
9808 _ptr.deleteFromDocument(); | |
9809 return; | |
9810 } | |
9811 | |
9812 void empty() { | |
9813 _ptr.empty(); | |
9814 return; | |
9815 } | |
9816 | |
9817 void extend(Node node, int offset) { | |
9818 _ptr.extend(LevelDom.unwrap(node), offset); | |
9819 return; | |
9820 } | |
9821 | |
9822 Range getRangeAt(int index) { | |
9823 return LevelDom.wrapRange(_ptr.getRangeAt(index)); | |
9824 } | |
9825 | |
9826 void modify(String alter, String direction, String granularity) { | |
9827 _ptr.modify(alter, direction, granularity); | |
9828 return; | |
9829 } | |
9830 | |
9831 void removeAllRanges() { | |
9832 _ptr.removeAllRanges(); | |
9833 return; | |
9834 } | |
9835 | |
9836 void selectAllChildren(Node node) { | |
9837 _ptr.selectAllChildren(LevelDom.unwrap(node)); | |
9838 return; | |
9839 } | |
9840 | |
9841 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset) { | |
9842 _ptr.setBaseAndExtent(LevelDom.unwrap(baseNode), baseOffset, LevelDom.unwrap
(extentNode), extentOffset); | |
9843 return; | |
9844 } | |
9845 | |
9846 void setPosition(Node node, int offset) { | |
9847 _ptr.setPosition(LevelDom.unwrap(node), offset); | |
9848 return; | |
9849 } | |
9850 } | |
9851 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9852 // for details. All rights reserved. Use of this source code is governed by a | |
9853 // BSD-style license that can be found in the LICENSE file. | |
9854 | |
9855 // WARNING: Do not edit - generated code. | |
9856 | |
9857 class DOMSettableTokenListWrappingImplementation extends DOMTokenListWrappingImp
lementation implements DOMSettableTokenList { | |
9858 DOMSettableTokenListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9859 | |
9860 String get value() { return _ptr.value; } | |
9861 | |
9862 void set value(String value) { _ptr.value = value; } | |
9863 } | |
9864 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9865 // for details. All rights reserved. Use of this source code is governed by a | |
9866 // BSD-style license that can be found in the LICENSE file. | |
9867 | |
9868 // WARNING: Do not edit - generated code. | |
9869 | |
9870 class DOMTokenListWrappingImplementation extends DOMWrapperBase implements DOMTo
kenList { | |
9871 DOMTokenListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9872 | |
9873 int get length() { return _ptr.length; } | |
9874 | |
9875 /* | |
9876 void add(String token) { | |
9877 _ptr.add(token); | |
9878 return; | |
9879 } | |
9880 */ | |
9881 | |
9882 bool contains(String token) { | |
9883 return _ptr.contains(token); | |
9884 } | |
9885 | |
9886 String item(int index) { | |
9887 return _ptr.item(index); | |
9888 } | |
9889 | |
9890 void remove(String token) { | |
9891 _ptr.remove(token); | |
9892 return; | |
9893 } | |
9894 | |
9895 bool toggle(String token) { | |
9896 return _ptr.toggle(token); | |
9897 } | |
9898 } | |
9899 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9900 // for details. All rights reserved. Use of this source code is governed by a | |
9901 // BSD-style license that can be found in the LICENSE file. | |
9902 | |
9903 // WARNING: Do not edit - generated code. | |
9904 | |
9905 class DOMURLWrappingImplementation extends DOMWrapperBase implements DOMURL { | |
9906 DOMURLWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9907 | |
9908 String createObjectURL(Blob blob) { | |
9909 return _ptr.createObjectURL(LevelDom.unwrap(blob)); | |
9910 } | |
9911 | |
9912 void revokeObjectURL(String url) { | |
9913 _ptr.revokeObjectURL(url); | |
9914 return; | |
9915 } | |
9916 } | |
9917 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9918 // for details. All rights reserved. Use of this source code is governed by a | |
9919 // BSD-style license that can be found in the LICENSE file. | |
9920 | |
9921 // WARNING: Do not edit - generated code. | |
9922 | |
9923 class DataListElementWrappingImplementation extends ElementWrappingImplementatio
n implements DataListElement { | |
9924 DataListElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9925 | |
9926 ElementList get options() { return LevelDom.wrapElementList(_ptr.options); } | |
9927 } | |
9928 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9929 // for details. All rights reserved. Use of this source code is governed by a | |
9930 // BSD-style license that can be found in the LICENSE file. | |
9931 | |
9932 // WARNING: Do not edit - generated code. | |
9933 | |
9934 class DataTransferItemWrappingImplementation extends DOMWrapperBase implements D
ataTransferItem { | |
9935 DataTransferItemWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9936 | |
9937 String get kind() { return _ptr.kind; } | |
9938 | |
9939 String get type() { return _ptr.type; } | |
9940 | |
9941 Blob getAsFile() { | |
9942 return LevelDom.wrapBlob(_ptr.getAsFile()); | |
9943 } | |
9944 | |
9945 void getAsString(StringCallback callback) { | |
9946 _ptr.getAsString(LevelDom.unwrap(callback)); | |
9947 return; | |
9948 } | |
9949 } | |
9950 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9951 // for details. All rights reserved. Use of this source code is governed by a | |
9952 // BSD-style license that can be found in the LICENSE file. | |
9953 | |
9954 // WARNING: Do not edit - generated code. | |
9955 | |
9956 class DataTransferItemsWrappingImplementation extends DOMWrapperBase implements
DataTransferItems { | |
9957 DataTransferItemsWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9958 | |
9959 int get length() { return _ptr.length; } | |
9960 | |
9961 void add(String data, String type) { | |
9962 _ptr.add(data, type); | |
9963 return; | |
9964 } | |
9965 | |
9966 void clear() { | |
9967 _ptr.clear(); | |
9968 return; | |
9969 } | |
9970 | |
9971 DataTransferItem item(int index) { | |
9972 return LevelDom.wrapDataTransferItem(_ptr.item(index)); | |
9973 } | |
9974 } | |
9975 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
9976 // for details. All rights reserved. Use of this source code is governed by a | |
9977 // BSD-style license that can be found in the LICENSE file. | |
9978 | |
9979 // WARNING: Do not edit - generated code. | |
9980 | |
9981 class DataViewWrappingImplementation extends ArrayBufferViewWrappingImplementati
on implements DataView { | |
9982 DataViewWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9983 | |
9984 num getFloat32(int byteOffset, [bool littleEndian = null]) { | |
9985 if (littleEndian === null) { | |
9986 return _ptr.getFloat32(byteOffset); | |
9987 } else { | |
9988 return _ptr.getFloat32(byteOffset, littleEndian); | |
9989 } | |
9990 } | |
9991 | |
9992 num getFloat64(int byteOffset, [bool littleEndian = null]) { | |
9993 if (littleEndian === null) { | |
9994 return _ptr.getFloat64(byteOffset); | |
9995 } else { | |
9996 return _ptr.getFloat64(byteOffset, littleEndian); | |
9997 } | |
9998 } | |
9999 | |
10000 int getInt16(int byteOffset, [bool littleEndian = null]) { | |
10001 if (littleEndian === null) { | |
10002 return _ptr.getInt16(byteOffset); | |
10003 } else { | |
10004 return _ptr.getInt16(byteOffset, littleEndian); | |
10005 } | |
10006 } | |
10007 | |
10008 int getInt32(int byteOffset, [bool littleEndian = null]) { | |
10009 if (littleEndian === null) { | |
10010 return _ptr.getInt32(byteOffset); | |
10011 } else { | |
10012 return _ptr.getInt32(byteOffset, littleEndian); | |
10013 } | |
10014 } | |
10015 | |
10016 int getInt8() { | |
10017 return _ptr.getInt8(); | |
10018 } | |
10019 | |
10020 int getUint16(int byteOffset, [bool littleEndian = null]) { | |
10021 if (littleEndian === null) { | |
10022 return _ptr.getUint16(byteOffset); | |
10023 } else { | |
10024 return _ptr.getUint16(byteOffset, littleEndian); | |
10025 } | |
10026 } | |
10027 | |
10028 int getUint32(int byteOffset, [bool littleEndian = null]) { | |
10029 if (littleEndian === null) { | |
10030 return _ptr.getUint32(byteOffset); | |
10031 } else { | |
10032 return _ptr.getUint32(byteOffset, littleEndian); | |
10033 } | |
10034 } | |
10035 | |
10036 int getUint8() { | |
10037 return _ptr.getUint8(); | |
10038 } | |
10039 | |
10040 void setFloat32(int byteOffset, num value, [bool littleEndian = null]) { | |
10041 if (littleEndian === null) { | |
10042 _ptr.setFloat32(byteOffset, value); | |
10043 return; | |
10044 } else { | |
10045 _ptr.setFloat32(byteOffset, value, littleEndian); | |
10046 return; | |
10047 } | |
10048 } | |
10049 | |
10050 void setFloat64(int byteOffset, num value, [bool littleEndian = null]) { | |
10051 if (littleEndian === null) { | |
10052 _ptr.setFloat64(byteOffset, value); | |
10053 return; | |
10054 } else { | |
10055 _ptr.setFloat64(byteOffset, value, littleEndian); | |
10056 return; | |
10057 } | |
10058 } | |
10059 | |
10060 void setInt16(int byteOffset, int value, [bool littleEndian = null]) { | |
10061 if (littleEndian === null) { | |
10062 _ptr.setInt16(byteOffset, value); | |
10063 return; | |
10064 } else { | |
10065 _ptr.setInt16(byteOffset, value, littleEndian); | |
10066 return; | |
10067 } | |
10068 } | |
10069 | |
10070 void setInt32(int byteOffset, int value, [bool littleEndian = null]) { | |
10071 if (littleEndian === null) { | |
10072 _ptr.setInt32(byteOffset, value); | |
10073 return; | |
10074 } else { | |
10075 _ptr.setInt32(byteOffset, value, littleEndian); | |
10076 return; | |
10077 } | |
10078 } | |
10079 | |
10080 void setInt8() { | |
10081 _ptr.setInt8(); | |
10082 return; | |
10083 } | |
10084 | |
10085 void setUint16(int byteOffset, int value, [bool littleEndian = null]) { | |
10086 if (littleEndian === null) { | |
10087 _ptr.setUint16(byteOffset, value); | |
10088 return; | |
10089 } else { | |
10090 _ptr.setUint16(byteOffset, value, littleEndian); | |
10091 return; | |
10092 } | |
10093 } | |
10094 | |
10095 void setUint32(int byteOffset, int value, [bool littleEndian = null]) { | |
10096 if (littleEndian === null) { | |
10097 _ptr.setUint32(byteOffset, value); | |
10098 return; | |
10099 } else { | |
10100 _ptr.setUint32(byteOffset, value, littleEndian); | |
10101 return; | |
10102 } | |
10103 } | |
10104 | |
10105 void setUint8() { | |
10106 _ptr.setUint8(); | |
10107 return; | |
10108 } | |
10109 } | |
10110 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10111 // for details. All rights reserved. Use of this source code is governed by a | |
10112 // BSD-style license that can be found in the LICENSE file. | |
10113 | |
10114 // WARNING: Do not edit - generated code. | |
10115 | |
10116 class DetailsElementWrappingImplementation extends ElementWrappingImplementation
implements DetailsElement { | |
10117 DetailsElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10118 | |
10119 bool get open() { return _ptr.open; } | |
10120 | |
10121 void set open(bool value) { _ptr.open = value; } | |
10122 } | |
10123 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10124 // for details. All rights reserved. Use of this source code is governed by a | |
10125 // BSD-style license that can be found in the LICENSE file. | |
10126 | |
10127 // WARNING: Do not edit - generated code. | |
10128 | |
10129 class DeviceMotionEventWrappingImplementation extends EventWrappingImplementatio
n implements DeviceMotionEvent { | |
10130 DeviceMotionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10131 | |
10132 num get interval() { return _ptr.interval; } | |
10133 } | |
10134 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10135 // for details. All rights reserved. Use of this source code is governed by a | |
10136 // BSD-style license that can be found in the LICENSE file. | |
10137 | |
10138 // WARNING: Do not edit - generated code. | |
10139 | |
10140 class DeviceOrientationEventWrappingImplementation extends EventWrappingImplemen
tation implements DeviceOrientationEvent { | |
10141 DeviceOrientationEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10142 | |
10143 num get alpha() { return _ptr.alpha; } | |
10144 | |
10145 num get beta() { return _ptr.beta; } | |
10146 | |
10147 num get gamma() { return _ptr.gamma; } | |
10148 | |
10149 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma) { | |
10150 _ptr.initDeviceOrientationEvent(type, bubbles, cancelable, alpha, beta, gamm
a); | |
10151 return; | |
10152 } | |
10153 } | |
10154 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10155 // for details. All rights reserved. Use of this source code is governed by a | |
10156 // BSD-style license that can be found in the LICENSE file. | |
10157 | |
10158 // WARNING: Do not edit - generated code. | |
10159 | |
10160 class DirectoryEntrySyncWrappingImplementation extends EntrySyncWrappingImplemen
tation implements DirectoryEntrySync { | |
10161 DirectoryEntrySyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10162 | |
10163 DirectoryReaderSync createReader() { | |
10164 return LevelDom.wrapDirectoryReaderSync(_ptr.createReader()); | |
10165 } | |
10166 | |
10167 DirectoryEntrySync getDirectory(String path, Flags flags) { | |
10168 return LevelDom.wrapDirectoryEntrySync(_ptr.getDirectory(path, LevelDom.unwr
ap(flags))); | |
10169 } | |
10170 | |
10171 FileEntrySync getFile(String path, Flags flags) { | |
10172 return LevelDom.wrapFileEntrySync(_ptr.getFile(path, LevelDom.unwrap(flags))
); | |
10173 } | |
10174 | |
10175 void removeRecursively() { | |
10176 _ptr.removeRecursively(); | |
10177 return; | |
10178 } | |
10179 } | |
10180 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10181 // for details. All rights reserved. Use of this source code is governed by a | |
10182 // BSD-style license that can be found in the LICENSE file. | |
10183 | |
10184 // WARNING: Do not edit - generated code. | |
10185 | |
10186 class DirectoryEntryWrappingImplementation extends EntryWrappingImplementation i
mplements DirectoryEntry { | |
10187 DirectoryEntryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10188 | |
10189 DirectoryReader createReader() { | |
10190 return LevelDom.wrapDirectoryReader(_ptr.createReader()); | |
10191 } | |
10192 | |
10193 void getDirectory(String path, [Flags flags = null, EntryCallback successCallb
ack = null, ErrorCallback errorCallback = null]) { | |
10194 if (flags === null) { | |
10195 if (successCallback === null) { | |
10196 if (errorCallback === null) { | |
10197 _ptr.getDirectory(path); | |
10198 return; | |
10199 } | |
10200 } | |
10201 } else { | |
10202 if (successCallback === null) { | |
10203 if (errorCallback === null) { | |
10204 _ptr.getDirectory(path, LevelDom.unwrap(flags)); | |
10205 return; | |
10206 } | |
10207 } else { | |
10208 if (errorCallback === null) { | |
10209 _ptr.getDirectory(path, LevelDom.unwrap(flags), LevelDom.unwrap(succes
sCallback)); | |
10210 return; | |
10211 } else { | |
10212 _ptr.getDirectory(path, LevelDom.unwrap(flags), LevelDom.unwrap(succes
sCallback), LevelDom.unwrap(errorCallback)); | |
10213 return; | |
10214 } | |
10215 } | |
10216 } | |
10217 throw "Incorrect number or type of arguments"; | |
10218 } | |
10219 | |
10220 void getFile(String path, [Flags flags = null, EntryCallback successCallback =
null, ErrorCallback errorCallback = null]) { | |
10221 if (flags === null) { | |
10222 if (successCallback === null) { | |
10223 if (errorCallback === null) { | |
10224 _ptr.getFile(path); | |
10225 return; | |
10226 } | |
10227 } | |
10228 } else { | |
10229 if (successCallback === null) { | |
10230 if (errorCallback === null) { | |
10231 _ptr.getFile(path, LevelDom.unwrap(flags)); | |
10232 return; | |
10233 } | |
10234 } else { | |
10235 if (errorCallback === null) { | |
10236 _ptr.getFile(path, LevelDom.unwrap(flags), LevelDom.unwrap(successCall
back)); | |
10237 return; | |
10238 } else { | |
10239 _ptr.getFile(path, LevelDom.unwrap(flags), LevelDom.unwrap(successCall
back), LevelDom.unwrap(errorCallback)); | |
10240 return; | |
10241 } | |
10242 } | |
10243 } | |
10244 throw "Incorrect number or type of arguments"; | |
10245 } | |
10246 | |
10247 void removeRecursively([VoidCallback successCallback = null, ErrorCallback err
orCallback = null]) { | |
10248 if (successCallback === null) { | |
10249 if (errorCallback === null) { | |
10250 _ptr.removeRecursively(); | |
10251 return; | |
10252 } | |
10253 } else { | |
10254 if (errorCallback === null) { | |
10255 _ptr.removeRecursively(LevelDom.unwrap(successCallback)); | |
10256 return; | |
10257 } else { | |
10258 _ptr.removeRecursively(LevelDom.unwrap(successCallback), LevelDom.unwrap
(errorCallback)); | |
10259 return; | |
10260 } | |
10261 } | |
10262 throw "Incorrect number or type of arguments"; | |
10263 } | |
10264 } | |
10265 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10266 // for details. All rights reserved. Use of this source code is governed by a | |
10267 // BSD-style license that can be found in the LICENSE file. | |
10268 | |
10269 // WARNING: Do not edit - generated code. | |
10270 | |
10271 class DirectoryReaderSyncWrappingImplementation extends DOMWrapperBase implement
s DirectoryReaderSync { | |
10272 DirectoryReaderSyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10273 | |
10274 EntryArraySync readEntries() { | |
10275 return LevelDom.wrapEntryArraySync(_ptr.readEntries()); | |
10276 } | |
10277 } | |
10278 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10279 // for details. All rights reserved. Use of this source code is governed by a | |
10280 // BSD-style license that can be found in the LICENSE file. | |
10281 | |
10282 // WARNING: Do not edit - generated code. | |
10283 | |
10284 class DirectoryReaderWrappingImplementation extends DOMWrapperBase implements Di
rectoryReader { | |
10285 DirectoryReaderWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10286 | |
10287 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
= null]) { | |
10288 if (errorCallback === null) { | |
10289 _ptr.readEntries(LevelDom.unwrap(successCallback)); | |
10290 return; | |
10291 } else { | |
10292 _ptr.readEntries(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorCa
llback)); | |
10293 return; | |
10294 } | |
10295 } | |
10296 } | |
10297 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10298 // for details. All rights reserved. Use of this source code is governed by a | |
10299 // BSD-style license that can be found in the LICENSE file. | |
10300 | |
10301 // WARNING: Do not edit - generated code. | |
10302 | |
10303 class DivElementWrappingImplementation extends ElementWrappingImplementation imp
lements DivElement { | |
10304 DivElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10305 | |
10306 String get align() { return _ptr.align; } | |
10307 | |
10308 void set align(String value) { _ptr.align = value; } | |
10309 } | |
10310 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10311 // for details. All rights reserved. Use of this source code is governed by a | |
10312 // BSD-style license that can be found in the LICENSE file. | |
10313 | |
10314 // WARNING: Do not edit - generated code. | |
10315 | |
10316 class EmbedElementWrappingImplementation extends ElementWrappingImplementation i
mplements EmbedElement { | |
10317 EmbedElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10318 | |
10319 String get align() { return _ptr.align; } | |
10320 | |
10321 void set align(String value) { _ptr.align = value; } | |
10322 | |
10323 int get height() { return _ptr.height; } | |
10324 | |
10325 void set height(int value) { _ptr.height = value; } | |
10326 | |
10327 String get name() { return _ptr.name; } | |
10328 | |
10329 void set name(String value) { _ptr.name = value; } | |
10330 | |
10331 String get src() { return _ptr.src; } | |
10332 | |
10333 void set src(String value) { _ptr.src = value; } | |
10334 | |
10335 String get type() { return _ptr.type; } | |
10336 | |
10337 void set type(String value) { _ptr.type = value; } | |
10338 | |
10339 int get width() { return _ptr.width; } | |
10340 | |
10341 void set width(int value) { _ptr.width = value; } | |
10342 } | |
10343 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10344 // for details. All rights reserved. Use of this source code is governed by a | |
10345 // BSD-style license that can be found in the LICENSE file. | |
10346 | |
10347 // WARNING: Do not edit - generated code. | |
10348 | |
10349 class EntityReferenceWrappingImplementation extends NodeWrappingImplementation i
mplements EntityReference { | |
10350 EntityReferenceWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10351 } | |
10352 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10353 // for details. All rights reserved. Use of this source code is governed by a | |
10354 // BSD-style license that can be found in the LICENSE file. | |
10355 | |
10356 // WARNING: Do not edit - generated code. | |
10357 | |
10358 class EntityWrappingImplementation extends NodeWrappingImplementation implements
Entity { | |
10359 EntityWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10360 | |
10361 String get notationName() { return _ptr.notationName; } | |
10362 | |
10363 String get publicId() { return _ptr.publicId; } | |
10364 | |
10365 String get systemId() { return _ptr.systemId; } | |
10366 } | |
10367 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10368 // for details. All rights reserved. Use of this source code is governed by a | |
10369 // BSD-style license that can be found in the LICENSE file. | |
10370 | |
10371 // WARNING: Do not edit - generated code. | |
10372 | |
10373 class EntriesCallbackWrappingImplementation extends DOMWrapperBase implements En
triesCallback { | |
10374 EntriesCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10375 | |
10376 bool handleEvent(EntryArray entries) { | |
10377 return _ptr.handleEvent(LevelDom.unwrap(entries)); | |
10378 } | |
10379 } | |
10380 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10381 // for details. All rights reserved. Use of this source code is governed by a | |
10382 // BSD-style license that can be found in the LICENSE file. | |
10383 | |
10384 // WARNING: Do not edit - generated code. | |
10385 | |
10386 class EntryArraySyncWrappingImplementation extends DOMWrapperBase implements Ent
ryArraySync { | |
10387 EntryArraySyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10388 | |
10389 int get length() { return _ptr.length; } | |
10390 | |
10391 EntrySync item(int index) { | |
10392 return LevelDom.wrapEntrySync(_ptr.item(index)); | |
10393 } | |
10394 } | |
10395 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10396 // for details. All rights reserved. Use of this source code is governed by a | |
10397 // BSD-style license that can be found in the LICENSE file. | |
10398 | |
10399 // WARNING: Do not edit - generated code. | |
10400 | |
10401 class EntryArrayWrappingImplementation extends DOMWrapperBase implements EntryAr
ray { | |
10402 EntryArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10403 | |
10404 int get length() { return _ptr.length; } | |
10405 | |
10406 Entry item(int index) { | |
10407 return LevelDom.wrapEntry(_ptr.item(index)); | |
10408 } | |
10409 } | |
10410 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10411 // for details. All rights reserved. Use of this source code is governed by a | |
10412 // BSD-style license that can be found in the LICENSE file. | |
10413 | |
10414 // WARNING: Do not edit - generated code. | |
10415 | |
10416 class EntryCallbackWrappingImplementation extends DOMWrapperBase implements Entr
yCallback { | |
10417 EntryCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10418 | |
10419 bool handleEvent(Entry entry) { | |
10420 return _ptr.handleEvent(LevelDom.unwrap(entry)); | |
10421 } | |
10422 } | |
10423 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10424 // for details. All rights reserved. Use of this source code is governed by a | |
10425 // BSD-style license that can be found in the LICENSE file. | |
10426 | |
10427 // WARNING: Do not edit - generated code. | |
10428 | |
10429 class EntrySyncWrappingImplementation extends DOMWrapperBase implements EntrySyn
c { | |
10430 EntrySyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10431 | |
10432 DOMFileSystemSync get filesystem() { return LevelDom.wrapDOMFileSystemSync(_pt
r.filesystem); } | |
10433 | |
10434 String get fullPath() { return _ptr.fullPath; } | |
10435 | |
10436 bool get isDirectory() { return _ptr.isDirectory; } | |
10437 | |
10438 bool get isFile() { return _ptr.isFile; } | |
10439 | |
10440 String get name() { return _ptr.name; } | |
10441 | |
10442 EntrySync copyTo(DirectoryEntrySync parent, String name) { | |
10443 return LevelDom.wrapEntrySync(_ptr.copyTo(LevelDom.unwrap(parent), name)); | |
10444 } | |
10445 | |
10446 Metadata getMetadata() { | |
10447 return LevelDom.wrapMetadata(_ptr.getMetadata()); | |
10448 } | |
10449 | |
10450 DirectoryEntrySync getParent() { | |
10451 return LevelDom.wrapDirectoryEntrySync(_ptr.getParent()); | |
10452 } | |
10453 | |
10454 EntrySync moveTo(DirectoryEntrySync parent, String name) { | |
10455 return LevelDom.wrapEntrySync(_ptr.moveTo(LevelDom.unwrap(parent), name)); | |
10456 } | |
10457 | |
10458 void remove() { | |
10459 _ptr.remove(); | |
10460 return; | |
10461 } | |
10462 | |
10463 String toURL() { | |
10464 return _ptr.toURL(); | |
10465 } | |
10466 } | |
10467 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10468 // for details. All rights reserved. Use of this source code is governed by a | |
10469 // BSD-style license that can be found in the LICENSE file. | |
10470 | |
10471 // WARNING: Do not edit - generated code. | |
10472 | |
10473 class EntryWrappingImplementation extends DOMWrapperBase implements Entry { | |
10474 EntryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10475 | |
10476 DOMFileSystem get filesystem() { return LevelDom.wrapDOMFileSystem(_ptr.filesy
stem); } | |
10477 | |
10478 String get fullPath() { return _ptr.fullPath; } | |
10479 | |
10480 bool get isDirectory() { return _ptr.isDirectory; } | |
10481 | |
10482 bool get isFile() { return _ptr.isFile; } | |
10483 | |
10484 String get name() { return _ptr.name; } | |
10485 | |
10486 void copyTo(DirectoryEntry parent, [String name = null, EntryCallback successC
allback = null, ErrorCallback errorCallback = null]) { | |
10487 if (name === null) { | |
10488 if (successCallback === null) { | |
10489 if (errorCallback === null) { | |
10490 _ptr.copyTo(LevelDom.unwrap(parent)); | |
10491 return; | |
10492 } | |
10493 } | |
10494 } else { | |
10495 if (successCallback === null) { | |
10496 if (errorCallback === null) { | |
10497 _ptr.copyTo(LevelDom.unwrap(parent), name); | |
10498 return; | |
10499 } | |
10500 } else { | |
10501 if (errorCallback === null) { | |
10502 _ptr.copyTo(LevelDom.unwrap(parent), name, LevelDom.unwrap(successCall
back)); | |
10503 return; | |
10504 } else { | |
10505 _ptr.copyTo(LevelDom.unwrap(parent), name, LevelDom.unwrap(successCall
back), LevelDom.unwrap(errorCallback)); | |
10506 return; | |
10507 } | |
10508 } | |
10509 } | |
10510 throw "Incorrect number or type of arguments"; | |
10511 } | |
10512 | |
10513 void getMetadata([MetadataCallback successCallback = null, ErrorCallback error
Callback = null]) { | |
10514 if (successCallback === null) { | |
10515 if (errorCallback === null) { | |
10516 _ptr.getMetadata(); | |
10517 return; | |
10518 } | |
10519 } else { | |
10520 if (errorCallback === null) { | |
10521 _ptr.getMetadata(LevelDom.unwrap(successCallback)); | |
10522 return; | |
10523 } else { | |
10524 _ptr.getMetadata(LevelDom.unwrap(successCallback), LevelDom.unwrap(error
Callback)); | |
10525 return; | |
10526 } | |
10527 } | |
10528 throw "Incorrect number or type of arguments"; | |
10529 } | |
10530 | |
10531 void getParent([EntryCallback successCallback = null, ErrorCallback errorCallb
ack = null]) { | |
10532 if (successCallback === null) { | |
10533 if (errorCallback === null) { | |
10534 _ptr.getParent(); | |
10535 return; | |
10536 } | |
10537 } else { | |
10538 if (errorCallback === null) { | |
10539 _ptr.getParent(LevelDom.unwrap(successCallback)); | |
10540 return; | |
10541 } else { | |
10542 _ptr.getParent(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorCa
llback)); | |
10543 return; | |
10544 } | |
10545 } | |
10546 throw "Incorrect number or type of arguments"; | |
10547 } | |
10548 | |
10549 void moveTo(DirectoryEntry parent, [String name = null, EntryCallback successC
allback = null, ErrorCallback errorCallback = null]) { | |
10550 if (name === null) { | |
10551 if (successCallback === null) { | |
10552 if (errorCallback === null) { | |
10553 _ptr.moveTo(LevelDom.unwrap(parent)); | |
10554 return; | |
10555 } | |
10556 } | |
10557 } else { | |
10558 if (successCallback === null) { | |
10559 if (errorCallback === null) { | |
10560 _ptr.moveTo(LevelDom.unwrap(parent), name); | |
10561 return; | |
10562 } | |
10563 } else { | |
10564 if (errorCallback === null) { | |
10565 _ptr.moveTo(LevelDom.unwrap(parent), name, LevelDom.unwrap(successCall
back)); | |
10566 return; | |
10567 } else { | |
10568 _ptr.moveTo(LevelDom.unwrap(parent), name, LevelDom.unwrap(successCall
back), LevelDom.unwrap(errorCallback)); | |
10569 return; | |
10570 } | |
10571 } | |
10572 } | |
10573 throw "Incorrect number or type of arguments"; | |
10574 } | |
10575 | |
10576 void remove([VoidCallback successCallback = null, ErrorCallback errorCallback
= null]) { | |
10577 if (successCallback === null) { | |
10578 if (errorCallback === null) { | |
10579 _ptr.remove(); | |
10580 return; | |
10581 } | |
10582 } else { | |
10583 if (errorCallback === null) { | |
10584 _ptr.remove(LevelDom.unwrap(successCallback)); | |
10585 return; | |
10586 } else { | |
10587 _ptr.remove(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorCallb
ack)); | |
10588 return; | |
10589 } | |
10590 } | |
10591 throw "Incorrect number or type of arguments"; | |
10592 } | |
10593 | |
10594 String toURL() { | |
10595 return _ptr.toURL(); | |
10596 } | |
10597 } | |
10598 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10599 // for details. All rights reserved. Use of this source code is governed by a | |
10600 // BSD-style license that can be found in the LICENSE file. | |
10601 | |
10602 // WARNING: Do not edit - generated code. | |
10603 | |
10604 class ErrorCallbackWrappingImplementation extends DOMWrapperBase implements Erro
rCallback { | |
10605 ErrorCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10606 | |
10607 bool handleEvent(FileError error) { | |
10608 return _ptr.handleEvent(LevelDom.unwrap(error)); | |
10609 } | |
10610 } | |
10611 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10612 // for details. All rights reserved. Use of this source code is governed by a | |
10613 // BSD-style license that can be found in the LICENSE file. | |
10614 | |
10615 // WARNING: Do not edit - generated code. | |
10616 | |
10617 class ErrorEventWrappingImplementation extends EventWrappingImplementation imple
ments ErrorEvent { | |
10618 ErrorEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10619 | |
10620 String get filename() { return _ptr.filename; } | |
10621 | |
10622 int get lineno() { return _ptr.lineno; } | |
10623 | |
10624 String get message() { return _ptr.message; } | |
10625 | |
10626 void initErrorEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Str
ing messageArg, String filenameArg, int linenoArg) { | |
10627 _ptr.initErrorEvent(typeArg, canBubbleArg, cancelableArg, messageArg, filena
meArg, linenoArg); | |
10628 return; | |
10629 } | |
10630 } | |
10631 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10632 // for details. All rights reserved. Use of this source code is governed by a | |
10633 // BSD-style license that can be found in the LICENSE file. | |
10634 | |
10635 // WARNING: Do not edit - generated code. | |
10636 | |
10637 class EventExceptionWrappingImplementation extends DOMWrapperBase implements Eve
ntException { | |
10638 EventExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10639 | |
10640 int get code() { return _ptr.code; } | |
10641 | |
10642 String get message() { return _ptr.message; } | |
10643 | |
10644 String get name() { return _ptr.name; } | |
10645 } | |
10646 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10647 // for details. All rights reserved. Use of this source code is governed by a | |
10648 // BSD-style license that can be found in the LICENSE file. | |
10649 | |
10650 // WARNING: Do not edit - generated code. | |
10651 | |
10652 class EventWrappingImplementation extends DOMWrapperBase implements Event { | |
10653 EventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10654 | |
10655 bool get bubbles() { return _ptr.bubbles; } | |
10656 | |
10657 bool get cancelBubble() { return _ptr.cancelBubble; } | |
10658 | |
10659 void set cancelBubble(bool value) { _ptr.cancelBubble = value; } | |
10660 | |
10661 bool get cancelable() { return _ptr.cancelable; } | |
10662 | |
10663 EventTarget get currentTarget() { return LevelDom.wrapEventTarget(_ptr.current
Target); } | |
10664 | |
10665 bool get defaultPrevented() { return _ptr.defaultPrevented; } | |
10666 | |
10667 int get eventPhase() { return _ptr.eventPhase; } | |
10668 | |
10669 bool get returnValue() { return _ptr.returnValue; } | |
10670 | |
10671 void set returnValue(bool value) { _ptr.returnValue = value; } | |
10672 | |
10673 EventTarget get srcElement() { return LevelDom.wrapEventTarget(_ptr.srcElement
); } | |
10674 | |
10675 EventTarget get target() { return LevelDom.wrapEventTarget(_ptr.target); } | |
10676 | |
10677 int get timeStamp() { return _ptr.timeStamp; } | |
10678 | |
10679 String get type() { return _ptr.type; } | |
10680 | |
10681 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) { | |
10682 _ptr.initEvent(eventTypeArg, canBubbleArg, cancelableArg); | |
10683 return; | |
10684 } | |
10685 | |
10686 void preventDefault() { | |
10687 _ptr.preventDefault(); | |
10688 return; | |
10689 } | |
10690 | |
10691 void stopImmediatePropagation() { | |
10692 _ptr.stopImmediatePropagation(); | |
10693 return; | |
10694 } | |
10695 | |
10696 void stopPropagation() { | |
10697 _ptr.stopPropagation(); | |
10698 return; | |
10699 } | |
10700 } | |
10701 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10702 // for details. All rights reserved. Use of this source code is governed by a | |
10703 // BSD-style license that can be found in the LICENSE file. | |
10704 | |
10705 // WARNING: Do not edit - generated code. | |
10706 | |
10707 class FieldSetElementWrappingImplementation extends ElementWrappingImplementatio
n implements FieldSetElement { | |
10708 FieldSetElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10709 | |
10710 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
10711 | |
10712 String get validationMessage() { return _ptr.validationMessage; } | |
10713 | |
10714 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
10715 | |
10716 bool get willValidate() { return _ptr.willValidate; } | |
10717 | |
10718 bool checkValidity() { | |
10719 return _ptr.checkValidity(); | |
10720 } | |
10721 | |
10722 void setCustomValidity(String error) { | |
10723 _ptr.setCustomValidity(error); | |
10724 return; | |
10725 } | |
10726 } | |
10727 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10728 // for details. All rights reserved. Use of this source code is governed by a | |
10729 // BSD-style license that can be found in the LICENSE file. | |
10730 | |
10731 // WARNING: Do not edit - generated code. | |
10732 | |
10733 class FileCallbackWrappingImplementation extends DOMWrapperBase implements FileC
allback { | |
10734 FileCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10735 | |
10736 bool handleEvent(File file) { | |
10737 return _ptr.handleEvent(LevelDom.unwrap(file)); | |
10738 } | |
10739 } | |
10740 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10741 // for details. All rights reserved. Use of this source code is governed by a | |
10742 // BSD-style license that can be found in the LICENSE file. | |
10743 | |
10744 // WARNING: Do not edit - generated code. | |
10745 | |
10746 class FileEntrySyncWrappingImplementation extends EntrySyncWrappingImplementatio
n implements FileEntrySync { | |
10747 FileEntrySyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10748 | |
10749 FileWriterSync createWriter() { | |
10750 return LevelDom.wrapFileWriterSync(_ptr.createWriter()); | |
10751 } | |
10752 | |
10753 File file() { | |
10754 return LevelDom.wrapFile(_ptr.file()); | |
10755 } | |
10756 } | |
10757 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10758 // for details. All rights reserved. Use of this source code is governed by a | |
10759 // BSD-style license that can be found in the LICENSE file. | |
10760 | |
10761 // WARNING: Do not edit - generated code. | |
10762 | |
10763 class FileEntryWrappingImplementation extends EntryWrappingImplementation implem
ents FileEntry { | |
10764 FileEntryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10765 | |
10766 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back = null]) { | |
10767 if (errorCallback === null) { | |
10768 _ptr.createWriter(LevelDom.unwrap(successCallback)); | |
10769 return; | |
10770 } else { | |
10771 _ptr.createWriter(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorC
allback)); | |
10772 return; | |
10773 } | |
10774 } | |
10775 | |
10776 void file(FileCallback successCallback, [ErrorCallback errorCallback = null])
{ | |
10777 if (errorCallback === null) { | |
10778 _ptr.file(LevelDom.unwrap(successCallback)); | |
10779 return; | |
10780 } else { | |
10781 _ptr.file(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorCallback)
); | |
10782 return; | |
10783 } | |
10784 } | |
10785 } | |
10786 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10787 // for details. All rights reserved. Use of this source code is governed by a | |
10788 // BSD-style license that can be found in the LICENSE file. | |
10789 | |
10790 // WARNING: Do not edit - generated code. | |
10791 | |
10792 class FileErrorWrappingImplementation extends DOMWrapperBase implements FileErro
r { | |
10793 FileErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10794 | |
10795 int get code() { return _ptr.code; } | |
10796 } | |
10797 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10798 // for details. All rights reserved. Use of this source code is governed by a | |
10799 // BSD-style license that can be found in the LICENSE file. | |
10800 | |
10801 // WARNING: Do not edit - generated code. | |
10802 | |
10803 class FileExceptionWrappingImplementation extends DOMWrapperBase implements File
Exception { | |
10804 FileExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10805 | |
10806 int get code() { return _ptr.code; } | |
10807 | |
10808 String get message() { return _ptr.message; } | |
10809 | |
10810 String get name() { return _ptr.name; } | |
10811 } | |
10812 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10813 // for details. All rights reserved. Use of this source code is governed by a | |
10814 // BSD-style license that can be found in the LICENSE file. | |
10815 | |
10816 // WARNING: Do not edit - generated code. | |
10817 | |
10818 class FileListWrappingImplementation extends DOMWrapperBase implements FileList
{ | |
10819 FileListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10820 | |
10821 int get length() { return _ptr.length; } | |
10822 | |
10823 File item(int index) { | |
10824 return LevelDom.wrapFile(_ptr.item(index)); | |
10825 } | |
10826 } | |
10827 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10828 // for details. All rights reserved. Use of this source code is governed by a | |
10829 // BSD-style license that can be found in the LICENSE file. | |
10830 | |
10831 // WARNING: Do not edit - generated code. | |
10832 | |
10833 class FileReaderSyncWrappingImplementation extends DOMWrapperBase implements Fil
eReaderSync { | |
10834 FileReaderSyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10835 | |
10836 ArrayBuffer readAsArrayBuffer(Blob blob) { | |
10837 return LevelDom.wrapArrayBuffer(_ptr.readAsArrayBuffer(LevelDom.unwrap(blob)
)); | |
10838 } | |
10839 | |
10840 String readAsBinaryString(Blob blob) { | |
10841 return _ptr.readAsBinaryString(LevelDom.unwrap(blob)); | |
10842 } | |
10843 | |
10844 String readAsDataURL(Blob blob) { | |
10845 return _ptr.readAsDataURL(LevelDom.unwrap(blob)); | |
10846 } | |
10847 | |
10848 String readAsText(Blob blob, [String encoding = null]) { | |
10849 if (encoding === null) { | |
10850 return _ptr.readAsText(LevelDom.unwrap(blob)); | |
10851 } else { | |
10852 return _ptr.readAsText(LevelDom.unwrap(blob), encoding); | |
10853 } | |
10854 } | |
10855 } | |
10856 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10857 // for details. All rights reserved. Use of this source code is governed by a | |
10858 // BSD-style license that can be found in the LICENSE file. | |
10859 | |
10860 // WARNING: Do not edit - generated code. | |
10861 | |
10862 class FileReaderWrappingImplementation extends DOMWrapperBase implements FileRea
der { | |
10863 FileReaderWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10864 | |
10865 FileError get error() { return LevelDom.wrapFileError(_ptr.error); } | |
10866 | |
10867 EventListener get onabort() { return LevelDom.wrapEventListener(_ptr.onabort);
} | |
10868 | |
10869 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
10870 | |
10871 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
10872 | |
10873 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
10874 | |
10875 EventListener get onload() { return LevelDom.wrapEventListener(_ptr.onload); } | |
10876 | |
10877 void set onload(EventListener value) { _ptr.onload = LevelDom.unwrap(value); } | |
10878 | |
10879 EventListener get onloadend() { return LevelDom.wrapEventListener(_ptr.onloade
nd); } | |
10880 | |
10881 void set onloadend(EventListener value) { _ptr.onloadend = LevelDom.unwrap(val
ue); } | |
10882 | |
10883 EventListener get onloadstart() { return LevelDom.wrapEventListener(_ptr.onloa
dstart); } | |
10884 | |
10885 void set onloadstart(EventListener value) { _ptr.onloadstart = LevelDom.unwrap
(value); } | |
10886 | |
10887 EventListener get onprogress() { return LevelDom.wrapEventListener(_ptr.onprog
ress); } | |
10888 | |
10889 void set onprogress(EventListener value) { _ptr.onprogress = LevelDom.unwrap(v
alue); } | |
10890 | |
10891 int get readyState() { return _ptr.readyState; } | |
10892 | |
10893 String get result() { return _ptr.result; } | |
10894 | |
10895 void abort() { | |
10896 _ptr.abort(); | |
10897 return; | |
10898 } | |
10899 | |
10900 void readAsArrayBuffer(Blob blob) { | |
10901 _ptr.readAsArrayBuffer(LevelDom.unwrap(blob)); | |
10902 return; | |
10903 } | |
10904 | |
10905 void readAsBinaryString(Blob blob) { | |
10906 _ptr.readAsBinaryString(LevelDom.unwrap(blob)); | |
10907 return; | |
10908 } | |
10909 | |
10910 void readAsDataURL(Blob blob) { | |
10911 _ptr.readAsDataURL(LevelDom.unwrap(blob)); | |
10912 return; | |
10913 } | |
10914 | |
10915 void readAsText(Blob blob, [String encoding = null]) { | |
10916 if (encoding === null) { | |
10917 _ptr.readAsText(LevelDom.unwrap(blob)); | |
10918 return; | |
10919 } else { | |
10920 _ptr.readAsText(LevelDom.unwrap(blob), encoding); | |
10921 return; | |
10922 } | |
10923 } | |
10924 } | |
10925 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10926 // for details. All rights reserved. Use of this source code is governed by a | |
10927 // BSD-style license that can be found in the LICENSE file. | |
10928 | |
10929 // WARNING: Do not edit - generated code. | |
10930 | |
10931 class FileSystemCallbackWrappingImplementation extends DOMWrapperBase implements
FileSystemCallback { | |
10932 FileSystemCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10933 | |
10934 bool handleEvent(DOMFileSystem fileSystem) { | |
10935 return _ptr.handleEvent(LevelDom.unwrap(fileSystem)); | |
10936 } | |
10937 } | |
10938 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10939 // for details. All rights reserved. Use of this source code is governed by a | |
10940 // BSD-style license that can be found in the LICENSE file. | |
10941 | |
10942 // WARNING: Do not edit - generated code. | |
10943 | |
10944 class FileWrappingImplementation extends BlobWrappingImplementation implements F
ile { | |
10945 FileWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10946 | |
10947 String get fileName() { return _ptr.fileName; } | |
10948 | |
10949 int get fileSize() { return _ptr.fileSize; } | |
10950 | |
10951 Date get lastModifiedDate() { return _ptr.lastModifiedDate; } | |
10952 | |
10953 String get name() { return _ptr.name; } | |
10954 } | |
10955 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10956 // for details. All rights reserved. Use of this source code is governed by a | |
10957 // BSD-style license that can be found in the LICENSE file. | |
10958 | |
10959 // WARNING: Do not edit - generated code. | |
10960 | |
10961 class FileWriterCallbackWrappingImplementation extends DOMWrapperBase implements
FileWriterCallback { | |
10962 FileWriterCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10963 | |
10964 bool handleEvent(FileWriter fileWriter) { | |
10965 return _ptr.handleEvent(LevelDom.unwrap(fileWriter)); | |
10966 } | |
10967 } | |
10968 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10969 // for details. All rights reserved. Use of this source code is governed by a | |
10970 // BSD-style license that can be found in the LICENSE file. | |
10971 | |
10972 // WARNING: Do not edit - generated code. | |
10973 | |
10974 class FileWriterSyncWrappingImplementation extends DOMWrapperBase implements Fil
eWriterSync { | |
10975 FileWriterSyncWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
10976 | |
10977 int get length() { return _ptr.length; } | |
10978 | |
10979 int get position() { return _ptr.position; } | |
10980 | |
10981 void seek(int position) { | |
10982 _ptr.seek(position); | |
10983 return; | |
10984 } | |
10985 | |
10986 void truncate(int size) { | |
10987 _ptr.truncate(size); | |
10988 return; | |
10989 } | |
10990 | |
10991 void write(Blob data) { | |
10992 _ptr.write(LevelDom.unwrap(data)); | |
10993 return; | |
10994 } | |
10995 } | |
10996 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
10997 // for details. All rights reserved. Use of this source code is governed by a | |
10998 // BSD-style license that can be found in the LICENSE file. | |
10999 | |
11000 // WARNING: Do not edit - generated code. | |
11001 | |
11002 class FileWriterWrappingImplementation extends DOMWrapperBase implements FileWri
ter { | |
11003 FileWriterWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11004 | |
11005 FileError get error() { return LevelDom.wrapFileError(_ptr.error); } | |
11006 | |
11007 int get length() { return _ptr.length; } | |
11008 | |
11009 EventListener get onabort() { return LevelDom.wrapEventListener(_ptr.onabort);
} | |
11010 | |
11011 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
11012 | |
11013 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
11014 | |
11015 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
11016 | |
11017 EventListener get onprogress() { return LevelDom.wrapEventListener(_ptr.onprog
ress); } | |
11018 | |
11019 void set onprogress(EventListener value) { _ptr.onprogress = LevelDom.unwrap(v
alue); } | |
11020 | |
11021 EventListener get onwrite() { return LevelDom.wrapEventListener(_ptr.onwrite);
} | |
11022 | |
11023 void set onwrite(EventListener value) { _ptr.onwrite = LevelDom.unwrap(value);
} | |
11024 | |
11025 EventListener get onwriteend() { return LevelDom.wrapEventListener(_ptr.onwrit
eend); } | |
11026 | |
11027 void set onwriteend(EventListener value) { _ptr.onwriteend = LevelDom.unwrap(v
alue); } | |
11028 | |
11029 EventListener get onwritestart() { return LevelDom.wrapEventListener(_ptr.onwr
itestart); } | |
11030 | |
11031 void set onwritestart(EventListener value) { _ptr.onwritestart = LevelDom.unwr
ap(value); } | |
11032 | |
11033 int get position() { return _ptr.position; } | |
11034 | |
11035 int get readyState() { return _ptr.readyState; } | |
11036 | |
11037 void abort() { | |
11038 _ptr.abort(); | |
11039 return; | |
11040 } | |
11041 | |
11042 void seek(int position) { | |
11043 _ptr.seek(position); | |
11044 return; | |
11045 } | |
11046 | |
11047 void truncate(int size) { | |
11048 _ptr.truncate(size); | |
11049 return; | |
11050 } | |
11051 | |
11052 void write(Blob data) { | |
11053 _ptr.write(LevelDom.unwrap(data)); | |
11054 return; | |
11055 } | |
11056 } | |
11057 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11058 // for details. All rights reserved. Use of this source code is governed by a | |
11059 // BSD-style license that can be found in the LICENSE file. | |
11060 | |
11061 // WARNING: Do not edit - generated code. | |
11062 | |
11063 class FlagsWrappingImplementation extends DOMWrapperBase implements Flags { | |
11064 FlagsWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11065 | |
11066 bool get create() { return _ptr.create; } | |
11067 | |
11068 void set create(bool value) { _ptr.create = value; } | |
11069 | |
11070 bool get exclusive() { return _ptr.exclusive; } | |
11071 | |
11072 void set exclusive(bool value) { _ptr.exclusive = value; } | |
11073 } | |
11074 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11075 // for details. All rights reserved. Use of this source code is governed by a | |
11076 // BSD-style license that can be found in the LICENSE file. | |
11077 | |
11078 // WARNING: Do not edit - generated code. | |
11079 | |
11080 class Float32ArrayWrappingImplementation extends ArrayBufferViewWrappingImplemen
tation implements Float32Array { | |
11081 Float32ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11082 | |
11083 int get length() { return _ptr.length; } | |
11084 | |
11085 Float32Array subarray(int start, [int end = null]) { | |
11086 if (end === null) { | |
11087 return LevelDom.wrapFloat32Array(_ptr.subarray(start)); | |
11088 } else { | |
11089 return LevelDom.wrapFloat32Array(_ptr.subarray(start, end)); | |
11090 } | |
11091 } | |
11092 } | |
11093 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11094 // for details. All rights reserved. Use of this source code is governed by a | |
11095 // BSD-style license that can be found in the LICENSE file. | |
11096 | |
11097 // WARNING: Do not edit - generated code. | |
11098 | |
11099 class Float64ArrayWrappingImplementation extends ArrayBufferViewWrappingImplemen
tation implements Float64Array { | |
11100 Float64ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11101 | |
11102 int get length() { return _ptr.length; } | |
11103 | |
11104 Float64Array subarray(int start, [int end = null]) { | |
11105 if (end === null) { | |
11106 return LevelDom.wrapFloat64Array(_ptr.subarray(start)); | |
11107 } else { | |
11108 return LevelDom.wrapFloat64Array(_ptr.subarray(start, end)); | |
11109 } | |
11110 } | |
11111 } | |
11112 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11113 // for details. All rights reserved. Use of this source code is governed by a | |
11114 // BSD-style license that can be found in the LICENSE file. | |
11115 | |
11116 // WARNING: Do not edit - generated code. | |
11117 | |
11118 class FontElementWrappingImplementation extends ElementWrappingImplementation im
plements FontElement { | |
11119 FontElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11120 | |
11121 String get color() { return _ptr.color; } | |
11122 | |
11123 void set color(String value) { _ptr.color = value; } | |
11124 | |
11125 String get face() { return _ptr.face; } | |
11126 | |
11127 void set face(String value) { _ptr.face = value; } | |
11128 | |
11129 String get size() { return _ptr.size; } | |
11130 | |
11131 void set size(String value) { _ptr.size = value; } | |
11132 } | |
11133 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11134 // for details. All rights reserved. Use of this source code is governed by a | |
11135 // BSD-style license that can be found in the LICENSE file. | |
11136 | |
11137 // WARNING: Do not edit - generated code. | |
11138 | |
11139 class FormElementWrappingImplementation extends ElementWrappingImplementation im
plements FormElement { | |
11140 FormElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11141 | |
11142 String get acceptCharset() { return _ptr.acceptCharset; } | |
11143 | |
11144 void set acceptCharset(String value) { _ptr.acceptCharset = value; } | |
11145 | |
11146 String get action() { return _ptr.action; } | |
11147 | |
11148 void set action(String value) { _ptr.action = value; } | |
11149 | |
11150 String get autocomplete() { return _ptr.autocomplete; } | |
11151 | |
11152 void set autocomplete(String value) { _ptr.autocomplete = value; } | |
11153 | |
11154 String get encoding() { return _ptr.encoding; } | |
11155 | |
11156 void set encoding(String value) { _ptr.encoding = value; } | |
11157 | |
11158 String get enctype() { return _ptr.enctype; } | |
11159 | |
11160 void set enctype(String value) { _ptr.enctype = value; } | |
11161 | |
11162 int get length() { return _ptr.length; } | |
11163 | |
11164 String get method() { return _ptr.method; } | |
11165 | |
11166 void set method(String value) { _ptr.method = value; } | |
11167 | |
11168 String get name() { return _ptr.name; } | |
11169 | |
11170 void set name(String value) { _ptr.name = value; } | |
11171 | |
11172 bool get noValidate() { return _ptr.noValidate; } | |
11173 | |
11174 void set noValidate(bool value) { _ptr.noValidate = value; } | |
11175 | |
11176 String get target() { return _ptr.target; } | |
11177 | |
11178 void set target(String value) { _ptr.target = value; } | |
11179 | |
11180 bool checkValidity() { | |
11181 return _ptr.checkValidity(); | |
11182 } | |
11183 | |
11184 void reset() { | |
11185 _ptr.reset(); | |
11186 return; | |
11187 } | |
11188 | |
11189 void submit() { | |
11190 _ptr.submit(); | |
11191 return; | |
11192 } | |
11193 } | |
11194 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11195 // for details. All rights reserved. Use of this source code is governed by a | |
11196 // BSD-style license that can be found in the LICENSE file. | |
11197 | |
11198 // WARNING: Do not edit - generated code. | |
11199 | |
11200 class GeolocationWrappingImplementation extends DOMWrapperBase implements Geoloc
ation { | |
11201 GeolocationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11202 | |
11203 void clearWatch(int watchId) { | |
11204 _ptr.clearWatch(watchId); | |
11205 return; | |
11206 } | |
11207 | |
11208 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback = null]) { | |
11209 if (errorCallback === null) { | |
11210 _ptr.getCurrentPosition(LevelDom.unwrap(successCallback)); | |
11211 return; | |
11212 } else { | |
11213 _ptr.getCurrentPosition(LevelDom.unwrap(successCallback), LevelDom.unwrap(
errorCallback)); | |
11214 return; | |
11215 } | |
11216 } | |
11217 | |
11218 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback = null]) { | |
11219 if (errorCallback === null) { | |
11220 return _ptr.watchPosition(LevelDom.unwrap(successCallback)); | |
11221 } else { | |
11222 return _ptr.watchPosition(LevelDom.unwrap(successCallback), LevelDom.unwra
p(errorCallback)); | |
11223 } | |
11224 } | |
11225 } | |
11226 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11227 // for details. All rights reserved. Use of this source code is governed by a | |
11228 // BSD-style license that can be found in the LICENSE file. | |
11229 | |
11230 // WARNING: Do not edit - generated code. | |
11231 | |
11232 class GeopositionWrappingImplementation extends DOMWrapperBase implements Geopos
ition { | |
11233 GeopositionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11234 | |
11235 Coordinates get coords() { return LevelDom.wrapCoordinates(_ptr.coords); } | |
11236 | |
11237 int get timestamp() { return _ptr.timestamp; } | |
11238 } | |
11239 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11240 // for details. All rights reserved. Use of this source code is governed by a | |
11241 // BSD-style license that can be found in the LICENSE file. | |
11242 | |
11243 // WARNING: Do not edit - generated code. | |
11244 | |
11245 class HRElementWrappingImplementation extends ElementWrappingImplementation impl
ements HRElement { | |
11246 HRElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11247 | |
11248 String get align() { return _ptr.align; } | |
11249 | |
11250 void set align(String value) { _ptr.align = value; } | |
11251 | |
11252 bool get noShade() { return _ptr.noShade; } | |
11253 | |
11254 void set noShade(bool value) { _ptr.noShade = value; } | |
11255 | |
11256 String get size() { return _ptr.size; } | |
11257 | |
11258 void set size(String value) { _ptr.size = value; } | |
11259 | |
11260 String get width() { return _ptr.width; } | |
11261 | |
11262 void set width(String value) { _ptr.width = value; } | |
11263 } | |
11264 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11265 // for details. All rights reserved. Use of this source code is governed by a | |
11266 // BSD-style license that can be found in the LICENSE file. | |
11267 | |
11268 // WARNING: Do not edit - generated code. | |
11269 | |
11270 class HTMLAllCollectionWrappingImplementation extends DOMWrapperBase implements
HTMLAllCollection { | |
11271 HTMLAllCollectionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11272 | |
11273 int get length() { return _ptr.length; } | |
11274 | |
11275 Node item(int index) { | |
11276 return LevelDom.wrapNode(_ptr.item(index)); | |
11277 } | |
11278 | |
11279 Node namedItem(String name) { | |
11280 return LevelDom.wrapNode(_ptr.namedItem(name)); | |
11281 } | |
11282 | |
11283 ElementList tags(String name) { | |
11284 return LevelDom.wrapElementList(_ptr.tags(name)); | |
11285 } | |
11286 } | |
11287 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11288 // for details. All rights reserved. Use of this source code is governed by a | |
11289 // BSD-style license that can be found in the LICENSE file. | |
11290 | |
11291 // WARNING: Do not edit - generated code. | |
11292 | |
11293 class HashChangeEventWrappingImplementation extends EventWrappingImplementation
implements HashChangeEvent { | |
11294 HashChangeEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11295 | |
11296 String get newURL() { return _ptr.newURL; } | |
11297 | |
11298 String get oldURL() { return _ptr.oldURL; } | |
11299 | |
11300 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL) { | |
11301 _ptr.initHashChangeEvent(type, canBubble, cancelable, oldURL, newURL); | |
11302 return; | |
11303 } | |
11304 } | |
11305 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11306 // for details. All rights reserved. Use of this source code is governed by a | |
11307 // BSD-style license that can be found in the LICENSE file. | |
11308 | |
11309 // WARNING: Do not edit - generated code. | |
11310 | |
11311 class HeadElementWrappingImplementation extends ElementWrappingImplementation im
plements HeadElement { | |
11312 HeadElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11313 | |
11314 String get profile() { return _ptr.profile; } | |
11315 | |
11316 void set profile(String value) { _ptr.profile = value; } | |
11317 } | |
11318 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11319 // for details. All rights reserved. Use of this source code is governed by a | |
11320 // BSD-style license that can be found in the LICENSE file. | |
11321 | |
11322 // WARNING: Do not edit - generated code. | |
11323 | |
11324 class HeadingElementWrappingImplementation extends ElementWrappingImplementation
implements HeadingElement { | |
11325 HeadingElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11326 | |
11327 String get align() { return _ptr.align; } | |
11328 | |
11329 void set align(String value) { _ptr.align = value; } | |
11330 } | |
11331 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11332 // for details. All rights reserved. Use of this source code is governed by a | |
11333 // BSD-style license that can be found in the LICENSE file. | |
11334 | |
11335 // WARNING: Do not edit - generated code. | |
11336 | |
11337 class HistoryWrappingImplementation extends DOMWrapperBase implements History { | |
11338 HistoryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11339 | |
11340 int get length() { return _ptr.length; } | |
11341 | |
11342 void back() { | |
11343 _ptr.back(); | |
11344 return; | |
11345 } | |
11346 | |
11347 void forward() { | |
11348 _ptr.forward(); | |
11349 return; | |
11350 } | |
11351 | |
11352 void go(int distance) { | |
11353 _ptr.go(distance); | |
11354 return; | |
11355 } | |
11356 | |
11357 void pushState(Object data, String title, [String url = null]) { | |
11358 if (url === null) { | |
11359 _ptr.pushState(LevelDom.unwrapMaybePrimitive(data), title); | |
11360 return; | |
11361 } else { | |
11362 _ptr.pushState(LevelDom.unwrapMaybePrimitive(data), title, url); | |
11363 return; | |
11364 } | |
11365 } | |
11366 | |
11367 void replaceState(Object data, String title, [String url = null]) { | |
11368 if (url === null) { | |
11369 _ptr.replaceState(LevelDom.unwrapMaybePrimitive(data), title); | |
11370 return; | |
11371 } else { | |
11372 _ptr.replaceState(LevelDom.unwrapMaybePrimitive(data), title, url); | |
11373 return; | |
11374 } | |
11375 } | |
11376 } | |
11377 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11378 // for details. All rights reserved. Use of this source code is governed by a | |
11379 // BSD-style license that can be found in the LICENSE file. | |
11380 | |
11381 // WARNING: Do not edit - generated code. | |
11382 | |
11383 class HtmlElementWrappingImplementation extends ElementWrappingImplementation im
plements HtmlElement { | |
11384 HtmlElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11385 | |
11386 String get manifest() { return _ptr.manifest; } | |
11387 | |
11388 void set manifest(String value) { _ptr.manifest = value; } | |
11389 | |
11390 String get version() { return _ptr.version; } | |
11391 | |
11392 void set version(String value) { _ptr.version = value; } | |
11393 } | |
11394 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11395 // for details. All rights reserved. Use of this source code is governed by a | |
11396 // BSD-style license that can be found in the LICENSE file. | |
11397 | |
11398 // WARNING: Do not edit - generated code. | |
11399 | |
11400 class IDBAnyWrappingImplementation extends DOMWrapperBase implements IDBAny { | |
11401 IDBAnyWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11402 } | |
11403 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11404 // for details. All rights reserved. Use of this source code is governed by a | |
11405 // BSD-style license that can be found in the LICENSE file. | |
11406 | |
11407 // WARNING: Do not edit - generated code. | |
11408 | |
11409 class IDBCursorWithValueWrappingImplementation extends IDBCursorWrappingImplemen
tation implements IDBCursorWithValue { | |
11410 IDBCursorWithValueWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11411 | |
11412 String get value() { return _ptr.value; } | |
11413 } | |
11414 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11415 // for details. All rights reserved. Use of this source code is governed by a | |
11416 // BSD-style license that can be found in the LICENSE file. | |
11417 | |
11418 // WARNING: Do not edit - generated code. | |
11419 | |
11420 class IDBCursorWrappingImplementation extends DOMWrapperBase implements IDBCurso
r { | |
11421 IDBCursorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11422 | |
11423 int get direction() { return _ptr.direction; } | |
11424 | |
11425 IDBKey get key() { return LevelDom.wrapIDBKey(_ptr.key); } | |
11426 | |
11427 IDBKey get primaryKey() { return LevelDom.wrapIDBKey(_ptr.primaryKey); } | |
11428 | |
11429 IDBAny get source() { return LevelDom.wrapIDBAny(_ptr.source); } | |
11430 | |
11431 void continueFunction([IDBKey key = null]) { | |
11432 if (key === null) { | |
11433 _ptr.continueFunction(); | |
11434 return; | |
11435 } else { | |
11436 _ptr.continueFunction(LevelDom.unwrap(key)); | |
11437 return; | |
11438 } | |
11439 } | |
11440 | |
11441 IDBRequest delete() { | |
11442 return LevelDom.wrapIDBRequest(_ptr.delete()); | |
11443 } | |
11444 | |
11445 IDBRequest update(String value) { | |
11446 return LevelDom.wrapIDBRequest(_ptr.update(value)); | |
11447 } | |
11448 } | |
11449 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11450 // for details. All rights reserved. Use of this source code is governed by a | |
11451 // BSD-style license that can be found in the LICENSE file. | |
11452 | |
11453 // WARNING: Do not edit - generated code. | |
11454 | |
11455 class IDBDatabaseErrorWrappingImplementation extends DOMWrapperBase implements I
DBDatabaseError { | |
11456 IDBDatabaseErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11457 | |
11458 int get code() { return _ptr.code; } | |
11459 | |
11460 void set code(int value) { _ptr.code = value; } | |
11461 | |
11462 String get message() { return _ptr.message; } | |
11463 | |
11464 void set message(String value) { _ptr.message = value; } | |
11465 } | |
11466 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11467 // for details. All rights reserved. Use of this source code is governed by a | |
11468 // BSD-style license that can be found in the LICENSE file. | |
11469 | |
11470 // WARNING: Do not edit - generated code. | |
11471 | |
11472 class IDBDatabaseExceptionWrappingImplementation extends DOMWrapperBase implemen
ts IDBDatabaseException { | |
11473 IDBDatabaseExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11474 | |
11475 int get code() { return _ptr.code; } | |
11476 | |
11477 String get message() { return _ptr.message; } | |
11478 | |
11479 String get name() { return _ptr.name; } | |
11480 } | |
11481 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11482 // for details. All rights reserved. Use of this source code is governed by a | |
11483 // BSD-style license that can be found in the LICENSE file. | |
11484 | |
11485 // WARNING: Do not edit - generated code. | |
11486 | |
11487 class IDBDatabaseWrappingImplementation extends DOMWrapperBase implements IDBDat
abase { | |
11488 IDBDatabaseWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11489 | |
11490 String get name() { return _ptr.name; } | |
11491 | |
11492 EventListener get onabort() { return LevelDom.wrapEventListener(_ptr.onabort);
} | |
11493 | |
11494 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
11495 | |
11496 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
11497 | |
11498 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
11499 | |
11500 EventListener get onversionchange() { return LevelDom.wrapEventListener(_ptr.o
nversionchange); } | |
11501 | |
11502 void set onversionchange(EventListener value) { _ptr.onversionchange = LevelDo
m.unwrap(value); } | |
11503 | |
11504 String get version() { return _ptr.version; } | |
11505 | |
11506 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
11507 if (useCapture === null) { | |
11508 _ptr.addEventListener(type, LevelDom.unwrap(listener)); | |
11509 return; | |
11510 } else { | |
11511 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); | |
11512 return; | |
11513 } | |
11514 } | |
11515 | |
11516 void close() { | |
11517 _ptr.close(); | |
11518 return; | |
11519 } | |
11520 | |
11521 IDBObjectStore createObjectStore(String name) { | |
11522 return LevelDom.wrapIDBObjectStore(_ptr.createObjectStore(name)); | |
11523 } | |
11524 | |
11525 void deleteObjectStore(String name) { | |
11526 _ptr.deleteObjectStore(name); | |
11527 return; | |
11528 } | |
11529 | |
11530 bool dispatchEvent(Event evt) { | |
11531 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); | |
11532 } | |
11533 | |
11534 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
11535 if (useCapture === null) { | |
11536 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); | |
11537 return; | |
11538 } else { | |
11539 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); | |
11540 return; | |
11541 } | |
11542 } | |
11543 | |
11544 IDBVersionChangeRequest setVersion(String version) { | |
11545 return LevelDom.wrapIDBVersionChangeRequest(_ptr.setVersion(version)); | |
11546 } | |
11547 } | |
11548 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11549 // for details. All rights reserved. Use of this source code is governed by a | |
11550 // BSD-style license that can be found in the LICENSE file. | |
11551 | |
11552 // WARNING: Do not edit - generated code. | |
11553 | |
11554 class IDBFactoryWrappingImplementation extends DOMWrapperBase implements IDBFact
ory { | |
11555 IDBFactoryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11556 | |
11557 IDBRequest getDatabaseNames() { | |
11558 return LevelDom.wrapIDBRequest(_ptr.getDatabaseNames()); | |
11559 } | |
11560 | |
11561 IDBRequest open(String name) { | |
11562 return LevelDom.wrapIDBRequest(_ptr.open(name)); | |
11563 } | |
11564 } | |
11565 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11566 // for details. All rights reserved. Use of this source code is governed by a | |
11567 // BSD-style license that can be found in the LICENSE file. | |
11568 | |
11569 // WARNING: Do not edit - generated code. | |
11570 | |
11571 class IDBIndexWrappingImplementation extends DOMWrapperBase implements IDBIndex
{ | |
11572 IDBIndexWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11573 | |
11574 String get keyPath() { return _ptr.keyPath; } | |
11575 | |
11576 String get name() { return _ptr.name; } | |
11577 | |
11578 IDBObjectStore get objectStore() { return LevelDom.wrapIDBObjectStore(_ptr.obj
ectStore); } | |
11579 | |
11580 bool get unique() { return _ptr.unique; } | |
11581 | |
11582 IDBRequest getObject(IDBKey key) { | |
11583 return LevelDom.wrapIDBRequest(_ptr.getObject(LevelDom.unwrap(key))); | |
11584 } | |
11585 | |
11586 IDBRequest getKey(IDBKey key) { | |
11587 return LevelDom.wrapIDBRequest(_ptr.getKey(LevelDom.unwrap(key))); | |
11588 } | |
11589 | |
11590 IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) { | |
11591 if (range === null) { | |
11592 if (direction === null) { | |
11593 return LevelDom.wrapIDBRequest(_ptr.openCursor()); | |
11594 } | |
11595 } else { | |
11596 if (direction === null) { | |
11597 return LevelDom.wrapIDBRequest(_ptr.openCursor(LevelDom.unwrap(range))); | |
11598 } else { | |
11599 return LevelDom.wrapIDBRequest(_ptr.openCursor(LevelDom.unwrap(range), d
irection)); | |
11600 } | |
11601 } | |
11602 throw "Incorrect number or type of arguments"; | |
11603 } | |
11604 | |
11605 IDBRequest openKeyCursor([IDBKeyRange range = null, int direction = null]) { | |
11606 if (range === null) { | |
11607 if (direction === null) { | |
11608 return LevelDom.wrapIDBRequest(_ptr.openKeyCursor()); | |
11609 } | |
11610 } else { | |
11611 if (direction === null) { | |
11612 return LevelDom.wrapIDBRequest(_ptr.openKeyCursor(LevelDom.unwrap(range)
)); | |
11613 } else { | |
11614 return LevelDom.wrapIDBRequest(_ptr.openKeyCursor(LevelDom.unwrap(range)
, direction)); | |
11615 } | |
11616 } | |
11617 throw "Incorrect number or type of arguments"; | |
11618 } | |
11619 } | |
11620 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11621 // for details. All rights reserved. Use of this source code is governed by a | |
11622 // BSD-style license that can be found in the LICENSE file. | |
11623 | |
11624 // WARNING: Do not edit - generated code. | |
11625 | |
11626 class IDBKeyRangeWrappingImplementation extends DOMWrapperBase implements IDBKey
Range { | |
11627 IDBKeyRangeWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11628 | |
11629 IDBKey get lower() { return LevelDom.wrapIDBKey(_ptr.lower); } | |
11630 | |
11631 bool get lowerOpen() { return _ptr.lowerOpen; } | |
11632 | |
11633 IDBKey get upper() { return LevelDom.wrapIDBKey(_ptr.upper); } | |
11634 | |
11635 bool get upperOpen() { return _ptr.upperOpen; } | |
11636 | |
11637 IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen = null, bool upp
erOpen = null]) { | |
11638 if (lowerOpen === null) { | |
11639 if (upperOpen === null) { | |
11640 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level
Dom.unwrap(upper))); | |
11641 } | |
11642 } else { | |
11643 if (upperOpen === null) { | |
11644 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level
Dom.unwrap(upper), lowerOpen)); | |
11645 } else { | |
11646 return LevelDom.wrapIDBKeyRange(_ptr.bound(LevelDom.unwrap(lower), Level
Dom.unwrap(upper), lowerOpen, upperOpen)); | |
11647 } | |
11648 } | |
11649 throw "Incorrect number or type of arguments"; | |
11650 } | |
11651 | |
11652 IDBKeyRange lowerBound(IDBKey bound, [bool open = null]) { | |
11653 if (open === null) { | |
11654 return LevelDom.wrapIDBKeyRange(_ptr.lowerBound(LevelDom.unwrap(bound))); | |
11655 } else { | |
11656 return LevelDom.wrapIDBKeyRange(_ptr.lowerBound(LevelDom.unwrap(bound), op
en)); | |
11657 } | |
11658 } | |
11659 | |
11660 IDBKeyRange only(IDBKey value) { | |
11661 return LevelDom.wrapIDBKeyRange(_ptr.only(LevelDom.unwrap(value))); | |
11662 } | |
11663 | |
11664 IDBKeyRange upperBound(IDBKey bound, [bool open = null]) { | |
11665 if (open === null) { | |
11666 return LevelDom.wrapIDBKeyRange(_ptr.upperBound(LevelDom.unwrap(bound))); | |
11667 } else { | |
11668 return LevelDom.wrapIDBKeyRange(_ptr.upperBound(LevelDom.unwrap(bound), op
en)); | |
11669 } | |
11670 } | |
11671 } | |
11672 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11673 // for details. All rights reserved. Use of this source code is governed by a | |
11674 // BSD-style license that can be found in the LICENSE file. | |
11675 | |
11676 // WARNING: Do not edit - generated code. | |
11677 | |
11678 class IDBKeyWrappingImplementation extends DOMWrapperBase implements IDBKey { | |
11679 IDBKeyWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11680 } | |
11681 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11682 // for details. All rights reserved. Use of this source code is governed by a | |
11683 // BSD-style license that can be found in the LICENSE file. | |
11684 | |
11685 // WARNING: Do not edit - generated code. | |
11686 | |
11687 class IDBObjectStoreWrappingImplementation extends DOMWrapperBase implements IDB
ObjectStore { | |
11688 IDBObjectStoreWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11689 | |
11690 String get keyPath() { return _ptr.keyPath; } | |
11691 | |
11692 String get name() { return _ptr.name; } | |
11693 | |
11694 /* | |
11695 IDBRequest add(String value, [IDBKey key = null]) { | |
11696 if (key === null) { | |
11697 return LevelDom.wrapIDBRequest(_ptr.add(value)); | |
11698 } else { | |
11699 return LevelDom.wrapIDBRequest(_ptr.add(value, LevelDom.unwrap(key))); | |
11700 } | |
11701 } | |
11702 */ | |
11703 | |
11704 IDBRequest clear() { | |
11705 return LevelDom.wrapIDBRequest(_ptr.clear()); | |
11706 } | |
11707 | |
11708 IDBIndex createIndex(String name, String keyPath) { | |
11709 return LevelDom.wrapIDBIndex(_ptr.createIndex(name, keyPath)); | |
11710 } | |
11711 | |
11712 IDBRequest delete(IDBKey key) { | |
11713 return LevelDom.wrapIDBRequest(_ptr.delete(LevelDom.unwrap(key))); | |
11714 } | |
11715 | |
11716 void deleteIndex(String name) { | |
11717 _ptr.deleteIndex(name); | |
11718 return; | |
11719 } | |
11720 | |
11721 IDBRequest getObject(IDBKey key) { | |
11722 return LevelDom.wrapIDBRequest(_ptr.getObject(LevelDom.unwrap(key))); | |
11723 } | |
11724 | |
11725 IDBIndex index(String name) { | |
11726 return LevelDom.wrapIDBIndex(_ptr.index(name)); | |
11727 } | |
11728 | |
11729 IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) { | |
11730 if (range === null) { | |
11731 if (direction === null) { | |
11732 return LevelDom.wrapIDBRequest(_ptr.openCursor()); | |
11733 } | |
11734 } else { | |
11735 if (direction === null) { | |
11736 return LevelDom.wrapIDBRequest(_ptr.openCursor(LevelDom.unwrap(range))); | |
11737 } else { | |
11738 return LevelDom.wrapIDBRequest(_ptr.openCursor(LevelDom.unwrap(range), d
irection)); | |
11739 } | |
11740 } | |
11741 throw "Incorrect number or type of arguments"; | |
11742 } | |
11743 | |
11744 IDBRequest put(String value, [IDBKey key = null]) { | |
11745 if (key === null) { | |
11746 return LevelDom.wrapIDBRequest(_ptr.put(value)); | |
11747 } else { | |
11748 return LevelDom.wrapIDBRequest(_ptr.put(value, LevelDom.unwrap(key))); | |
11749 } | |
11750 } | |
11751 } | |
11752 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11753 // for details. All rights reserved. Use of this source code is governed by a | |
11754 // BSD-style license that can be found in the LICENSE file. | |
11755 | |
11756 // WARNING: Do not edit - generated code. | |
11757 | |
11758 class IDBRequestWrappingImplementation extends DOMWrapperBase implements IDBRequ
est { | |
11759 IDBRequestWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11760 | |
11761 int get errorCode() { return _ptr.errorCode; } | |
11762 | |
11763 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
11764 | |
11765 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
11766 | |
11767 EventListener get onsuccess() { return LevelDom.wrapEventListener(_ptr.onsucce
ss); } | |
11768 | |
11769 void set onsuccess(EventListener value) { _ptr.onsuccess = LevelDom.unwrap(val
ue); } | |
11770 | |
11771 int get readyState() { return _ptr.readyState; } | |
11772 | |
11773 IDBAny get result() { return LevelDom.wrapIDBAny(_ptr.result); } | |
11774 | |
11775 IDBAny get source() { return LevelDom.wrapIDBAny(_ptr.source); } | |
11776 | |
11777 IDBTransaction get transaction() { return LevelDom.wrapIDBTransaction(_ptr.tra
nsaction); } | |
11778 | |
11779 String get webkitErrorMessage() { return _ptr.webkitErrorMessage; } | |
11780 | |
11781 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
11782 if (useCapture === null) { | |
11783 _ptr.addEventListener(type, LevelDom.unwrap(listener)); | |
11784 return; | |
11785 } else { | |
11786 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); | |
11787 return; | |
11788 } | |
11789 } | |
11790 | |
11791 bool dispatchEvent(Event evt) { | |
11792 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); | |
11793 } | |
11794 | |
11795 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
11796 if (useCapture === null) { | |
11797 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); | |
11798 return; | |
11799 } else { | |
11800 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); | |
11801 return; | |
11802 } | |
11803 } | |
11804 } | |
11805 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11806 // for details. All rights reserved. Use of this source code is governed by a | |
11807 // BSD-style license that can be found in the LICENSE file. | |
11808 | |
11809 // WARNING: Do not edit - generated code. | |
11810 | |
11811 class IDBTransactionWrappingImplementation extends DOMWrapperBase implements IDB
Transaction { | |
11812 IDBTransactionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11813 | |
11814 IDBDatabase get db() { return LevelDom.wrapIDBDatabase(_ptr.db); } | |
11815 | |
11816 int get mode() { return _ptr.mode; } | |
11817 | |
11818 EventListener get onabort() { return LevelDom.wrapEventListener(_ptr.onabort);
} | |
11819 | |
11820 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
11821 | |
11822 EventListener get oncomplete() { return LevelDom.wrapEventListener(_ptr.oncomp
lete); } | |
11823 | |
11824 void set oncomplete(EventListener value) { _ptr.oncomplete = LevelDom.unwrap(v
alue); } | |
11825 | |
11826 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
11827 | |
11828 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
11829 | |
11830 void abort() { | |
11831 _ptr.abort(); | |
11832 return; | |
11833 } | |
11834 | |
11835 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
11836 if (useCapture === null) { | |
11837 _ptr.addEventListener(type, LevelDom.unwrap(listener)); | |
11838 return; | |
11839 } else { | |
11840 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); | |
11841 return; | |
11842 } | |
11843 } | |
11844 | |
11845 bool dispatchEvent(Event evt) { | |
11846 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); | |
11847 } | |
11848 | |
11849 IDBObjectStore objectStore(String name) { | |
11850 return LevelDom.wrapIDBObjectStore(_ptr.objectStore(name)); | |
11851 } | |
11852 | |
11853 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
11854 if (useCapture === null) { | |
11855 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); | |
11856 return; | |
11857 } else { | |
11858 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); | |
11859 return; | |
11860 } | |
11861 } | |
11862 } | |
11863 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11864 // for details. All rights reserved. Use of this source code is governed by a | |
11865 // BSD-style license that can be found in the LICENSE file. | |
11866 | |
11867 // WARNING: Do not edit - generated code. | |
11868 | |
11869 class IDBVersionChangeEventWrappingImplementation extends EventWrappingImplement
ation implements IDBVersionChangeEvent { | |
11870 IDBVersionChangeEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11871 | |
11872 String get version() { return _ptr.version; } | |
11873 } | |
11874 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11875 // for details. All rights reserved. Use of this source code is governed by a | |
11876 // BSD-style license that can be found in the LICENSE file. | |
11877 | |
11878 // WARNING: Do not edit - generated code. | |
11879 | |
11880 class IDBVersionChangeRequestWrappingImplementation extends IDBRequestWrappingIm
plementation implements IDBVersionChangeRequest { | |
11881 IDBVersionChangeRequestWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11882 | |
11883 EventListener get onblocked() { return LevelDom.wrapEventListener(_ptr.onblock
ed); } | |
11884 | |
11885 void set onblocked(EventListener value) { _ptr.onblocked = LevelDom.unwrap(val
ue); } | |
11886 } | |
11887 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11888 // for details. All rights reserved. Use of this source code is governed by a | |
11889 // BSD-style license that can be found in the LICENSE file. | |
11890 | |
11891 // WARNING: Do not edit - generated code. | |
11892 | |
11893 class IFrameElementWrappingImplementation extends ElementWrappingImplementation
implements IFrameElement { | |
11894 IFrameElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11895 | |
11896 String get align() { return _ptr.align; } | |
11897 | |
11898 void set align(String value) { _ptr.align = value; } | |
11899 | |
11900 Document get contentDocument() { return LevelDom.wrapDocument(_ptr.contentDocu
ment); } | |
11901 | |
11902 Window get contentWindow() { return LevelDom.wrapWindow(_ptr.contentWindow); } | |
11903 | |
11904 String get frameBorder() { return _ptr.frameBorder; } | |
11905 | |
11906 void set frameBorder(String value) { _ptr.frameBorder = value; } | |
11907 | |
11908 String get height() { return _ptr.height; } | |
11909 | |
11910 void set height(String value) { _ptr.height = value; } | |
11911 | |
11912 String get longDesc() { return _ptr.longDesc; } | |
11913 | |
11914 void set longDesc(String value) { _ptr.longDesc = value; } | |
11915 | |
11916 String get marginHeight() { return _ptr.marginHeight; } | |
11917 | |
11918 void set marginHeight(String value) { _ptr.marginHeight = value; } | |
11919 | |
11920 String get marginWidth() { return _ptr.marginWidth; } | |
11921 | |
11922 void set marginWidth(String value) { _ptr.marginWidth = value; } | |
11923 | |
11924 String get name() { return _ptr.name; } | |
11925 | |
11926 void set name(String value) { _ptr.name = value; } | |
11927 | |
11928 String get sandbox() { return _ptr.sandbox; } | |
11929 | |
11930 void set sandbox(String value) { _ptr.sandbox = value; } | |
11931 | |
11932 String get scrolling() { return _ptr.scrolling; } | |
11933 | |
11934 void set scrolling(String value) { _ptr.scrolling = value; } | |
11935 | |
11936 String get src() { return _ptr.src; } | |
11937 | |
11938 void set src(String value) { _ptr.src = value; } | |
11939 | |
11940 String get width() { return _ptr.width; } | |
11941 | |
11942 void set width(String value) { _ptr.width = value; } | |
11943 } | |
11944 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11945 // for details. All rights reserved. Use of this source code is governed by a | |
11946 // BSD-style license that can be found in the LICENSE file. | |
11947 | |
11948 // WARNING: Do not edit - generated code. | |
11949 | |
11950 class ImageDataWrappingImplementation extends DOMWrapperBase implements ImageDat
a { | |
11951 ImageDataWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11952 | |
11953 CanvasPixelArray get data() { return LevelDom.wrapCanvasPixelArray(_ptr.data);
} | |
11954 | |
11955 int get height() { return _ptr.height; } | |
11956 | |
11957 int get width() { return _ptr.width; } | |
11958 } | |
11959 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
11960 // for details. All rights reserved. Use of this source code is governed by a | |
11961 // BSD-style license that can be found in the LICENSE file. | |
11962 | |
11963 // WARNING: Do not edit - generated code. | |
11964 | |
11965 class ImageElementWrappingImplementation extends ElementWrappingImplementation i
mplements ImageElement { | |
11966 ImageElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
11967 | |
11968 String get align() { return _ptr.align; } | |
11969 | |
11970 void set align(String value) { _ptr.align = value; } | |
11971 | |
11972 String get alt() { return _ptr.alt; } | |
11973 | |
11974 void set alt(String value) { _ptr.alt = value; } | |
11975 | |
11976 String get border() { return _ptr.border; } | |
11977 | |
11978 void set border(String value) { _ptr.border = value; } | |
11979 | |
11980 bool get complete() { return _ptr.complete; } | |
11981 | |
11982 String get crossOrigin() { return _ptr.crossOrigin; } | |
11983 | |
11984 void set crossOrigin(String value) { _ptr.crossOrigin = value; } | |
11985 | |
11986 int get height() { return _ptr.height; } | |
11987 | |
11988 void set height(int value) { _ptr.height = value; } | |
11989 | |
11990 int get hspace() { return _ptr.hspace; } | |
11991 | |
11992 void set hspace(int value) { _ptr.hspace = value; } | |
11993 | |
11994 bool get isMap() { return _ptr.isMap; } | |
11995 | |
11996 void set isMap(bool value) { _ptr.isMap = value; } | |
11997 | |
11998 String get longDesc() { return _ptr.longDesc; } | |
11999 | |
12000 void set longDesc(String value) { _ptr.longDesc = value; } | |
12001 | |
12002 String get lowsrc() { return _ptr.lowsrc; } | |
12003 | |
12004 void set lowsrc(String value) { _ptr.lowsrc = value; } | |
12005 | |
12006 String get name() { return _ptr.name; } | |
12007 | |
12008 void set name(String value) { _ptr.name = value; } | |
12009 | |
12010 int get naturalHeight() { return _ptr.naturalHeight; } | |
12011 | |
12012 int get naturalWidth() { return _ptr.naturalWidth; } | |
12013 | |
12014 String get src() { return _ptr.src; } | |
12015 | |
12016 void set src(String value) { _ptr.src = value; } | |
12017 | |
12018 String get useMap() { return _ptr.useMap; } | |
12019 | |
12020 void set useMap(String value) { _ptr.useMap = value; } | |
12021 | |
12022 int get vspace() { return _ptr.vspace; } | |
12023 | |
12024 void set vspace(int value) { _ptr.vspace = value; } | |
12025 | |
12026 int get width() { return _ptr.width; } | |
12027 | |
12028 void set width(int value) { _ptr.width = value; } | |
12029 | |
12030 int get x() { return _ptr.x; } | |
12031 | |
12032 int get y() { return _ptr.y; } | |
12033 } | |
12034 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12035 // for details. All rights reserved. Use of this source code is governed by a | |
12036 // BSD-style license that can be found in the LICENSE file. | |
12037 | |
12038 // WARNING: Do not edit - generated code. | |
12039 | |
12040 class InputElementWrappingImplementation extends ElementWrappingImplementation i
mplements InputElement { | |
12041 InputElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12042 | |
12043 String get accept() { return _ptr.accept; } | |
12044 | |
12045 void set accept(String value) { _ptr.accept = value; } | |
12046 | |
12047 String get accessKey() { return _ptr.accessKey; } | |
12048 | |
12049 void set accessKey(String value) { _ptr.accessKey = value; } | |
12050 | |
12051 String get align() { return _ptr.align; } | |
12052 | |
12053 void set align(String value) { _ptr.align = value; } | |
12054 | |
12055 String get alt() { return _ptr.alt; } | |
12056 | |
12057 void set alt(String value) { _ptr.alt = value; } | |
12058 | |
12059 String get autocomplete() { return _ptr.autocomplete; } | |
12060 | |
12061 void set autocomplete(String value) { _ptr.autocomplete = value; } | |
12062 | |
12063 bool get autofocus() { return _ptr.autofocus; } | |
12064 | |
12065 void set autofocus(bool value) { _ptr.autofocus = value; } | |
12066 | |
12067 bool get checked() { return _ptr.checked; } | |
12068 | |
12069 void set checked(bool value) { _ptr.checked = value; } | |
12070 | |
12071 bool get defaultChecked() { return _ptr.defaultChecked; } | |
12072 | |
12073 void set defaultChecked(bool value) { _ptr.defaultChecked = value; } | |
12074 | |
12075 String get defaultValue() { return _ptr.defaultValue; } | |
12076 | |
12077 void set defaultValue(String value) { _ptr.defaultValue = value; } | |
12078 | |
12079 bool get disabled() { return _ptr.disabled; } | |
12080 | |
12081 void set disabled(bool value) { _ptr.disabled = value; } | |
12082 | |
12083 FileList get files() { return LevelDom.wrapFileList(_ptr.files); } | |
12084 | |
12085 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
12086 | |
12087 String get formAction() { return _ptr.formAction; } | |
12088 | |
12089 void set formAction(String value) { _ptr.formAction = value; } | |
12090 | |
12091 String get formEnctype() { return _ptr.formEnctype; } | |
12092 | |
12093 void set formEnctype(String value) { _ptr.formEnctype = value; } | |
12094 | |
12095 String get formMethod() { return _ptr.formMethod; } | |
12096 | |
12097 void set formMethod(String value) { _ptr.formMethod = value; } | |
12098 | |
12099 bool get formNoValidate() { return _ptr.formNoValidate; } | |
12100 | |
12101 void set formNoValidate(bool value) { _ptr.formNoValidate = value; } | |
12102 | |
12103 String get formTarget() { return _ptr.formTarget; } | |
12104 | |
12105 void set formTarget(String value) { _ptr.formTarget = value; } | |
12106 | |
12107 bool get incremental() { return _ptr.incremental; } | |
12108 | |
12109 void set incremental(bool value) { _ptr.incremental = value; } | |
12110 | |
12111 bool get indeterminate() { return _ptr.indeterminate; } | |
12112 | |
12113 void set indeterminate(bool value) { _ptr.indeterminate = value; } | |
12114 | |
12115 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
12116 | |
12117 Element get list() { return LevelDom.wrapElement(_ptr.list); } | |
12118 | |
12119 String get max() { return _ptr.max; } | |
12120 | |
12121 void set max(String value) { _ptr.max = value; } | |
12122 | |
12123 int get maxLength() { return _ptr.maxLength; } | |
12124 | |
12125 void set maxLength(int value) { _ptr.maxLength = value; } | |
12126 | |
12127 String get min() { return _ptr.min; } | |
12128 | |
12129 void set min(String value) { _ptr.min = value; } | |
12130 | |
12131 bool get multiple() { return _ptr.multiple; } | |
12132 | |
12133 void set multiple(bool value) { _ptr.multiple = value; } | |
12134 | |
12135 String get name() { return _ptr.name; } | |
12136 | |
12137 void set name(String value) { _ptr.name = value; } | |
12138 | |
12139 EventListener get onwebkitspeechchange() { return LevelDom.wrapEventListener(_
ptr.onwebkitspeechchange); } | |
12140 | |
12141 void set onwebkitspeechchange(EventListener value) { _ptr.onwebkitspeechchange
= LevelDom.unwrap(value); } | |
12142 | |
12143 String get pattern() { return _ptr.pattern; } | |
12144 | |
12145 void set pattern(String value) { _ptr.pattern = value; } | |
12146 | |
12147 String get placeholder() { return _ptr.placeholder; } | |
12148 | |
12149 void set placeholder(String value) { _ptr.placeholder = value; } | |
12150 | |
12151 bool get readOnly() { return _ptr.readOnly; } | |
12152 | |
12153 void set readOnly(bool value) { _ptr.readOnly = value; } | |
12154 | |
12155 bool get required() { return _ptr.required; } | |
12156 | |
12157 void set required(bool value) { _ptr.required = value; } | |
12158 | |
12159 OptionElement get selectedOption() { return LevelDom.wrapOptionElement(_ptr.se
lectedOption); } | |
12160 | |
12161 String get selectionDirection() { return _ptr.selectionDirection; } | |
12162 | |
12163 void set selectionDirection(String value) { _ptr.selectionDirection = value; } | |
12164 | |
12165 int get selectionEnd() { return _ptr.selectionEnd; } | |
12166 | |
12167 void set selectionEnd(int value) { _ptr.selectionEnd = value; } | |
12168 | |
12169 int get selectionStart() { return _ptr.selectionStart; } | |
12170 | |
12171 void set selectionStart(int value) { _ptr.selectionStart = value; } | |
12172 | |
12173 int get size() { return _ptr.size; } | |
12174 | |
12175 void set size(int value) { _ptr.size = value; } | |
12176 | |
12177 String get src() { return _ptr.src; } | |
12178 | |
12179 void set src(String value) { _ptr.src = value; } | |
12180 | |
12181 String get step() { return _ptr.step; } | |
12182 | |
12183 void set step(String value) { _ptr.step = value; } | |
12184 | |
12185 String get type() { return _ptr.type; } | |
12186 | |
12187 void set type(String value) { _ptr.type = value; } | |
12188 | |
12189 String get useMap() { return _ptr.useMap; } | |
12190 | |
12191 void set useMap(String value) { _ptr.useMap = value; } | |
12192 | |
12193 String get validationMessage() { return _ptr.validationMessage; } | |
12194 | |
12195 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
12196 | |
12197 String get value() { return _ptr.value; } | |
12198 | |
12199 void set value(String value) { _ptr.value = value; } | |
12200 | |
12201 Date get valueAsDate() { return _ptr.valueAsDate; } | |
12202 | |
12203 void set valueAsDate(Date value) { _ptr.valueAsDate = value; } | |
12204 | |
12205 num get valueAsNumber() { return _ptr.valueAsNumber; } | |
12206 | |
12207 void set valueAsNumber(num value) { _ptr.valueAsNumber = value; } | |
12208 | |
12209 bool get webkitGrammar() { return _ptr.webkitGrammar; } | |
12210 | |
12211 void set webkitGrammar(bool value) { _ptr.webkitGrammar = value; } | |
12212 | |
12213 bool get webkitSpeech() { return _ptr.webkitSpeech; } | |
12214 | |
12215 void set webkitSpeech(bool value) { _ptr.webkitSpeech = value; } | |
12216 | |
12217 bool get webkitdirectory() { return _ptr.webkitdirectory; } | |
12218 | |
12219 void set webkitdirectory(bool value) { _ptr.webkitdirectory = value; } | |
12220 | |
12221 bool get willValidate() { return _ptr.willValidate; } | |
12222 | |
12223 bool checkValidity() { | |
12224 return _ptr.checkValidity(); | |
12225 } | |
12226 | |
12227 void click() { | |
12228 _ptr.click(); | |
12229 return; | |
12230 } | |
12231 | |
12232 void select() { | |
12233 _ptr.select(); | |
12234 return; | |
12235 } | |
12236 | |
12237 void setCustomValidity(String error) { | |
12238 _ptr.setCustomValidity(error); | |
12239 return; | |
12240 } | |
12241 | |
12242 void setSelectionRange(int start, int end, [String direction = null]) { | |
12243 if (direction === null) { | |
12244 _ptr.setSelectionRange(start, end); | |
12245 return; | |
12246 } else { | |
12247 _ptr.setSelectionRange(start, end, direction); | |
12248 return; | |
12249 } | |
12250 } | |
12251 | |
12252 void setValueForUser(String value) { | |
12253 _ptr.setValueForUser(value); | |
12254 return; | |
12255 } | |
12256 | |
12257 void stepDown([int n = null]) { | |
12258 if (n === null) { | |
12259 _ptr.stepDown(); | |
12260 return; | |
12261 } else { | |
12262 _ptr.stepDown(n); | |
12263 return; | |
12264 } | |
12265 } | |
12266 | |
12267 void stepUp([int n = null]) { | |
12268 if (n === null) { | |
12269 _ptr.stepUp(); | |
12270 return; | |
12271 } else { | |
12272 _ptr.stepUp(n); | |
12273 return; | |
12274 } | |
12275 } | |
12276 } | |
12277 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12278 // for details. All rights reserved. Use of this source code is governed by a | |
12279 // BSD-style license that can be found in the LICENSE file. | |
12280 | |
12281 // WARNING: Do not edit - generated code. | |
12282 | |
12283 class Int16ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementa
tion implements Int16Array { | |
12284 Int16ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12285 | |
12286 int get length() { return _ptr.length; } | |
12287 | |
12288 Int16Array subarray(int start, [int end = null]) { | |
12289 if (end === null) { | |
12290 return LevelDom.wrapInt16Array(_ptr.subarray(start)); | |
12291 } else { | |
12292 return LevelDom.wrapInt16Array(_ptr.subarray(start, end)); | |
12293 } | |
12294 } | |
12295 } | |
12296 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12297 // for details. All rights reserved. Use of this source code is governed by a | |
12298 // BSD-style license that can be found in the LICENSE file. | |
12299 | |
12300 // WARNING: Do not edit - generated code. | |
12301 | |
12302 class Int32ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementa
tion implements Int32Array { | |
12303 Int32ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12304 | |
12305 int get length() { return _ptr.length; } | |
12306 | |
12307 Int32Array subarray(int start, [int end = null]) { | |
12308 if (end === null) { | |
12309 return LevelDom.wrapInt32Array(_ptr.subarray(start)); | |
12310 } else { | |
12311 return LevelDom.wrapInt32Array(_ptr.subarray(start, end)); | |
12312 } | |
12313 } | |
12314 } | |
12315 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12316 // for details. All rights reserved. Use of this source code is governed by a | |
12317 // BSD-style license that can be found in the LICENSE file. | |
12318 | |
12319 // WARNING: Do not edit - generated code. | |
12320 | |
12321 class Int8ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementat
ion implements Int8Array { | |
12322 Int8ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12323 | |
12324 int get length() { return _ptr.length; } | |
12325 | |
12326 Int8Array subarray(int start, [int end = null]) { | |
12327 if (end === null) { | |
12328 return LevelDom.wrapInt8Array(_ptr.subarray(start)); | |
12329 } else { | |
12330 return LevelDom.wrapInt8Array(_ptr.subarray(start, end)); | |
12331 } | |
12332 } | |
12333 } | |
12334 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12335 // for details. All rights reserved. Use of this source code is governed by a | |
12336 // BSD-style license that can be found in the LICENSE file. | |
12337 | |
12338 // WARNING: Do not edit - generated code. | |
12339 | |
12340 class KeyboardEventWrappingImplementation extends UIEventWrappingImplementation
implements KeyboardEvent { | |
12341 KeyboardEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12342 | |
12343 bool get altGraphKey() { return _ptr.altGraphKey; } | |
12344 | |
12345 bool get altKey() { return _ptr.altKey; } | |
12346 | |
12347 bool get ctrlKey() { return _ptr.ctrlKey; } | |
12348 | |
12349 String get keyIdentifier() { return _ptr.keyIdentifier; } | |
12350 | |
12351 int get keyLocation() { return _ptr.keyLocation; } | |
12352 | |
12353 bool get metaKey() { return _ptr.metaKey; } | |
12354 | |
12355 bool get shiftKey() { return _ptr.shiftKey; } | |
12356 | |
12357 bool getModifierState(String keyIdentifierArg) { | |
12358 return _ptr.getModifierState(keyIdentifierArg); | |
12359 } | |
12360 | |
12361 void initKeyboardEvent(String type, bool canBubble, bool cancelable, Window vi
ew, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shift
Key, bool metaKey, bool altGraphKey) { | |
12362 _ptr.initKeyboardEvent(type, canBubble, cancelable, LevelDom.unwrap(view), k
eyIdentifier, keyLocation, ctrlKey, altKey, shiftKey, metaKey, altGraphKey); | |
12363 return; | |
12364 } | |
12365 } | |
12366 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12367 // for details. All rights reserved. Use of this source code is governed by a | |
12368 // BSD-style license that can be found in the LICENSE file. | |
12369 | |
12370 // WARNING: Do not edit - generated code. | |
12371 | |
12372 class KeygenElementWrappingImplementation extends ElementWrappingImplementation
implements KeygenElement { | |
12373 KeygenElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12374 | |
12375 bool get autofocus() { return _ptr.autofocus; } | |
12376 | |
12377 void set autofocus(bool value) { _ptr.autofocus = value; } | |
12378 | |
12379 String get challenge() { return _ptr.challenge; } | |
12380 | |
12381 void set challenge(String value) { _ptr.challenge = value; } | |
12382 | |
12383 bool get disabled() { return _ptr.disabled; } | |
12384 | |
12385 void set disabled(bool value) { _ptr.disabled = value; } | |
12386 | |
12387 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
12388 | |
12389 String get keytype() { return _ptr.keytype; } | |
12390 | |
12391 void set keytype(String value) { _ptr.keytype = value; } | |
12392 | |
12393 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
12394 | |
12395 String get name() { return _ptr.name; } | |
12396 | |
12397 void set name(String value) { _ptr.name = value; } | |
12398 | |
12399 String get type() { return _ptr.type; } | |
12400 | |
12401 String get validationMessage() { return _ptr.validationMessage; } | |
12402 | |
12403 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
12404 | |
12405 bool get willValidate() { return _ptr.willValidate; } | |
12406 | |
12407 bool checkValidity() { | |
12408 return _ptr.checkValidity(); | |
12409 } | |
12410 | |
12411 void setCustomValidity(String error) { | |
12412 _ptr.setCustomValidity(error); | |
12413 return; | |
12414 } | |
12415 } | |
12416 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12417 // for details. All rights reserved. Use of this source code is governed by a | |
12418 // BSD-style license that can be found in the LICENSE file. | |
12419 | |
12420 // WARNING: Do not edit - generated code. | |
12421 | |
12422 class LIElementWrappingImplementation extends ElementWrappingImplementation impl
ements LIElement { | |
12423 LIElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12424 | |
12425 String get type() { return _ptr.type; } | |
12426 | |
12427 void set type(String value) { _ptr.type = value; } | |
12428 | |
12429 int get value() { return _ptr.value; } | |
12430 | |
12431 void set value(int value) { _ptr.value = value; } | |
12432 } | |
12433 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12434 // for details. All rights reserved. Use of this source code is governed by a | |
12435 // BSD-style license that can be found in the LICENSE file. | |
12436 | |
12437 // WARNING: Do not edit - generated code. | |
12438 | |
12439 class LabelElementWrappingImplementation extends ElementWrappingImplementation i
mplements LabelElement { | |
12440 LabelElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12441 | |
12442 String get accessKey() { return _ptr.accessKey; } | |
12443 | |
12444 void set accessKey(String value) { _ptr.accessKey = value; } | |
12445 | |
12446 Element get control() { return LevelDom.wrapElement(_ptr.control); } | |
12447 | |
12448 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
12449 | |
12450 String get htmlFor() { return _ptr.htmlFor; } | |
12451 | |
12452 void set htmlFor(String value) { _ptr.htmlFor = value; } | |
12453 } | |
12454 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12455 // for details. All rights reserved. Use of this source code is governed by a | |
12456 // BSD-style license that can be found in the LICENSE file. | |
12457 | |
12458 // WARNING: Do not edit - generated code. | |
12459 | |
12460 class LegendElementWrappingImplementation extends ElementWrappingImplementation
implements LegendElement { | |
12461 LegendElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12462 | |
12463 String get accessKey() { return _ptr.accessKey; } | |
12464 | |
12465 void set accessKey(String value) { _ptr.accessKey = value; } | |
12466 | |
12467 String get align() { return _ptr.align; } | |
12468 | |
12469 void set align(String value) { _ptr.align = value; } | |
12470 | |
12471 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
12472 } | |
12473 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12474 // for details. All rights reserved. Use of this source code is governed by a | |
12475 // BSD-style license that can be found in the LICENSE file. | |
12476 | |
12477 // WARNING: Do not edit - generated code. | |
12478 | |
12479 class LinkElementWrappingImplementation extends ElementWrappingImplementation im
plements LinkElement { | |
12480 LinkElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12481 | |
12482 String get charset() { return _ptr.charset; } | |
12483 | |
12484 void set charset(String value) { _ptr.charset = value; } | |
12485 | |
12486 bool get disabled() { return _ptr.disabled; } | |
12487 | |
12488 void set disabled(bool value) { _ptr.disabled = value; } | |
12489 | |
12490 String get href() { return _ptr.href; } | |
12491 | |
12492 void set href(String value) { _ptr.href = value; } | |
12493 | |
12494 String get hreflang() { return _ptr.hreflang; } | |
12495 | |
12496 void set hreflang(String value) { _ptr.hreflang = value; } | |
12497 | |
12498 String get media() { return _ptr.media; } | |
12499 | |
12500 void set media(String value) { _ptr.media = value; } | |
12501 | |
12502 String get rel() { return _ptr.rel; } | |
12503 | |
12504 void set rel(String value) { _ptr.rel = value; } | |
12505 | |
12506 String get rev() { return _ptr.rev; } | |
12507 | |
12508 void set rev(String value) { _ptr.rev = value; } | |
12509 | |
12510 StyleSheet get sheet() { return LevelDom.wrapStyleSheet(_ptr.sheet); } | |
12511 | |
12512 String get target() { return _ptr.target; } | |
12513 | |
12514 void set target(String value) { _ptr.target = value; } | |
12515 | |
12516 String get type() { return _ptr.type; } | |
12517 | |
12518 void set type(String value) { _ptr.type = value; } | |
12519 } | |
12520 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12521 // for details. All rights reserved. Use of this source code is governed by a | |
12522 // BSD-style license that can be found in the LICENSE file. | |
12523 | |
12524 // WARNING: Do not edit - generated code. | |
12525 | |
12526 class LocalMediaStreamWrappingImplementation extends MediaStreamWrappingImplemen
tation implements LocalMediaStream { | |
12527 LocalMediaStreamWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12528 | |
12529 void stop() { | |
12530 _ptr.stop(); | |
12531 return; | |
12532 } | |
12533 } | |
12534 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12535 // for details. All rights reserved. Use of this source code is governed by a | |
12536 // BSD-style license that can be found in the LICENSE file. | |
12537 | |
12538 // WARNING: Do not edit - generated code. | |
12539 | |
12540 class LocationWrappingImplementation extends DOMWrapperBase implements Location
{ | |
12541 LocationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12542 | |
12543 String get hash() { return _ptr.hash; } | |
12544 | |
12545 void set hash(String value) { _ptr.hash = value; } | |
12546 | |
12547 String get host() { return _ptr.host; } | |
12548 | |
12549 void set host(String value) { _ptr.host = value; } | |
12550 | |
12551 String get hostname() { return _ptr.hostname; } | |
12552 | |
12553 void set hostname(String value) { _ptr.hostname = value; } | |
12554 | |
12555 String get href() { return _ptr.href; } | |
12556 | |
12557 void set href(String value) { _ptr.href = value; } | |
12558 | |
12559 String get origin() { return _ptr.origin; } | |
12560 | |
12561 String get pathname() { return _ptr.pathname; } | |
12562 | |
12563 void set pathname(String value) { _ptr.pathname = value; } | |
12564 | |
12565 String get port() { return _ptr.port; } | |
12566 | |
12567 void set port(String value) { _ptr.port = value; } | |
12568 | |
12569 String get protocol() { return _ptr.protocol; } | |
12570 | |
12571 void set protocol(String value) { _ptr.protocol = value; } | |
12572 | |
12573 String get search() { return _ptr.search; } | |
12574 | |
12575 void set search(String value) { _ptr.search = value; } | |
12576 | |
12577 void assign(String url) { | |
12578 _ptr.assign(url); | |
12579 return; | |
12580 } | |
12581 | |
12582 String getParameter(String name) { | |
12583 return _ptr.getParameter(name); | |
12584 } | |
12585 | |
12586 void reload() { | |
12587 _ptr.reload(); | |
12588 return; | |
12589 } | |
12590 | |
12591 void replace(String url) { | |
12592 _ptr.replace(url); | |
12593 return; | |
12594 } | |
12595 } | |
12596 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12597 // for details. All rights reserved. Use of this source code is governed by a | |
12598 // BSD-style license that can be found in the LICENSE file. | |
12599 | |
12600 // WARNING: Do not edit - generated code. | |
12601 | |
12602 class LoseContextWrappingImplementation extends DOMWrapperBase implements LoseCo
ntext { | |
12603 LoseContextWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12604 | |
12605 void loseContext() { | |
12606 _ptr.loseContext(); | |
12607 return; | |
12608 } | |
12609 | |
12610 void restoreContext() { | |
12611 _ptr.restoreContext(); | |
12612 return; | |
12613 } | |
12614 } | |
12615 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12616 // for details. All rights reserved. Use of this source code is governed by a | |
12617 // BSD-style license that can be found in the LICENSE file. | |
12618 | |
12619 // WARNING: Do not edit - generated code. | |
12620 | |
12621 class MapElementWrappingImplementation extends ElementWrappingImplementation imp
lements MapElement { | |
12622 MapElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12623 | |
12624 ElementList get areas() { return LevelDom.wrapElementList(_ptr.areas); } | |
12625 | |
12626 String get name() { return _ptr.name; } | |
12627 | |
12628 void set name(String value) { _ptr.name = value; } | |
12629 } | |
12630 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12631 // for details. All rights reserved. Use of this source code is governed by a | |
12632 // BSD-style license that can be found in the LICENSE file. | |
12633 | |
12634 // WARNING: Do not edit - generated code. | |
12635 | |
12636 class MarqueeElementWrappingImplementation extends ElementWrappingImplementation
implements MarqueeElement { | |
12637 MarqueeElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12638 | |
12639 String get behavior() { return _ptr.behavior; } | |
12640 | |
12641 void set behavior(String value) { _ptr.behavior = value; } | |
12642 | |
12643 String get bgColor() { return _ptr.bgColor; } | |
12644 | |
12645 void set bgColor(String value) { _ptr.bgColor = value; } | |
12646 | |
12647 String get direction() { return _ptr.direction; } | |
12648 | |
12649 void set direction(String value) { _ptr.direction = value; } | |
12650 | |
12651 String get height() { return _ptr.height; } | |
12652 | |
12653 void set height(String value) { _ptr.height = value; } | |
12654 | |
12655 int get hspace() { return _ptr.hspace; } | |
12656 | |
12657 void set hspace(int value) { _ptr.hspace = value; } | |
12658 | |
12659 int get loop() { return _ptr.loop; } | |
12660 | |
12661 void set loop(int value) { _ptr.loop = value; } | |
12662 | |
12663 int get scrollAmount() { return _ptr.scrollAmount; } | |
12664 | |
12665 void set scrollAmount(int value) { _ptr.scrollAmount = value; } | |
12666 | |
12667 int get scrollDelay() { return _ptr.scrollDelay; } | |
12668 | |
12669 void set scrollDelay(int value) { _ptr.scrollDelay = value; } | |
12670 | |
12671 bool get trueSpeed() { return _ptr.trueSpeed; } | |
12672 | |
12673 void set trueSpeed(bool value) { _ptr.trueSpeed = value; } | |
12674 | |
12675 int get vspace() { return _ptr.vspace; } | |
12676 | |
12677 void set vspace(int value) { _ptr.vspace = value; } | |
12678 | |
12679 String get width() { return _ptr.width; } | |
12680 | |
12681 void set width(String value) { _ptr.width = value; } | |
12682 | |
12683 void start() { | |
12684 _ptr.start(); | |
12685 return; | |
12686 } | |
12687 | |
12688 void stop() { | |
12689 _ptr.stop(); | |
12690 return; | |
12691 } | |
12692 } | |
12693 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12694 // for details. All rights reserved. Use of this source code is governed by a | |
12695 // BSD-style license that can be found in the LICENSE file. | |
12696 | |
12697 // WARNING: Do not edit - generated code. | |
12698 | |
12699 class MediaElementWrappingImplementation extends ElementWrappingImplementation i
mplements MediaElement { | |
12700 MediaElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12701 | |
12702 bool get autoplay() { return _ptr.autoplay; } | |
12703 | |
12704 void set autoplay(bool value) { _ptr.autoplay = value; } | |
12705 | |
12706 TimeRanges get buffered() { return LevelDom.wrapTimeRanges(_ptr.buffered); } | |
12707 | |
12708 bool get controls() { return _ptr.controls; } | |
12709 | |
12710 void set controls(bool value) { _ptr.controls = value; } | |
12711 | |
12712 String get currentSrc() { return _ptr.currentSrc; } | |
12713 | |
12714 num get currentTime() { return _ptr.currentTime; } | |
12715 | |
12716 void set currentTime(num value) { _ptr.currentTime = value; } | |
12717 | |
12718 bool get defaultMuted() { return _ptr.defaultMuted; } | |
12719 | |
12720 void set defaultMuted(bool value) { _ptr.defaultMuted = value; } | |
12721 | |
12722 num get defaultPlaybackRate() { return _ptr.defaultPlaybackRate; } | |
12723 | |
12724 void set defaultPlaybackRate(num value) { _ptr.defaultPlaybackRate = value; } | |
12725 | |
12726 num get duration() { return _ptr.duration; } | |
12727 | |
12728 bool get ended() { return _ptr.ended; } | |
12729 | |
12730 MediaError get error() { return LevelDom.wrapMediaError(_ptr.error); } | |
12731 | |
12732 num get initialTime() { return _ptr.initialTime; } | |
12733 | |
12734 bool get loop() { return _ptr.loop; } | |
12735 | |
12736 void set loop(bool value) { _ptr.loop = value; } | |
12737 | |
12738 bool get muted() { return _ptr.muted; } | |
12739 | |
12740 void set muted(bool value) { _ptr.muted = value; } | |
12741 | |
12742 int get networkState() { return _ptr.networkState; } | |
12743 | |
12744 bool get paused() { return _ptr.paused; } | |
12745 | |
12746 num get playbackRate() { return _ptr.playbackRate; } | |
12747 | |
12748 void set playbackRate(num value) { _ptr.playbackRate = value; } | |
12749 | |
12750 TimeRanges get played() { return LevelDom.wrapTimeRanges(_ptr.played); } | |
12751 | |
12752 String get preload() { return _ptr.preload; } | |
12753 | |
12754 void set preload(String value) { _ptr.preload = value; } | |
12755 | |
12756 int get readyState() { return _ptr.readyState; } | |
12757 | |
12758 TimeRanges get seekable() { return LevelDom.wrapTimeRanges(_ptr.seekable); } | |
12759 | |
12760 bool get seeking() { return _ptr.seeking; } | |
12761 | |
12762 String get src() { return _ptr.src; } | |
12763 | |
12764 void set src(String value) { _ptr.src = value; } | |
12765 | |
12766 num get startTime() { return _ptr.startTime; } | |
12767 | |
12768 num get volume() { return _ptr.volume; } | |
12769 | |
12770 void set volume(num value) { _ptr.volume = value; } | |
12771 | |
12772 int get webkitAudioDecodedByteCount() { return _ptr.webkitAudioDecodedByteCoun
t; } | |
12773 | |
12774 bool get webkitClosedCaptionsVisible() { return _ptr.webkitClosedCaptionsVisib
le; } | |
12775 | |
12776 void set webkitClosedCaptionsVisible(bool value) { _ptr.webkitClosedCaptionsVi
sible = value; } | |
12777 | |
12778 bool get webkitHasClosedCaptions() { return _ptr.webkitHasClosedCaptions; } | |
12779 | |
12780 bool get webkitPreservesPitch() { return _ptr.webkitPreservesPitch; } | |
12781 | |
12782 void set webkitPreservesPitch(bool value) { _ptr.webkitPreservesPitch = value;
} | |
12783 | |
12784 int get webkitVideoDecodedByteCount() { return _ptr.webkitVideoDecodedByteCoun
t; } | |
12785 | |
12786 String canPlayType(String type) { | |
12787 return _ptr.canPlayType(type); | |
12788 } | |
12789 | |
12790 void load() { | |
12791 _ptr.load(); | |
12792 return; | |
12793 } | |
12794 | |
12795 void pause() { | |
12796 _ptr.pause(); | |
12797 return; | |
12798 } | |
12799 | |
12800 void play() { | |
12801 _ptr.play(); | |
12802 return; | |
12803 } | |
12804 } | |
12805 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12806 // for details. All rights reserved. Use of this source code is governed by a | |
12807 // BSD-style license that can be found in the LICENSE file. | |
12808 | |
12809 // WARNING: Do not edit - generated code. | |
12810 | |
12811 class MediaErrorWrappingImplementation extends DOMWrapperBase implements MediaEr
ror { | |
12812 MediaErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12813 | |
12814 int get code() { return _ptr.code; } | |
12815 } | |
12816 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12817 // for details. All rights reserved. Use of this source code is governed by a | |
12818 // BSD-style license that can be found in the LICENSE file. | |
12819 | |
12820 // WARNING: Do not edit - generated code. | |
12821 | |
12822 class MediaListWrappingImplementation extends DOMWrapperBase implements MediaLis
t { | |
12823 MediaListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12824 | |
12825 int get length() { return _ptr.length; } | |
12826 | |
12827 String get mediaText() { return _ptr.mediaText; } | |
12828 | |
12829 void set mediaText(String value) { _ptr.mediaText = value; } | |
12830 | |
12831 String operator[](int index) { | |
12832 return item(index); | |
12833 } | |
12834 | |
12835 void operator[]=(int index, String value) { | |
12836 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
12837 } | |
12838 | |
12839 void add(String value) { | |
12840 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
12841 } | |
12842 | |
12843 void addLast(String value) { | |
12844 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
12845 } | |
12846 | |
12847 void addAll(Collection<String> collection) { | |
12848 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
12849 } | |
12850 | |
12851 void sort(int compare(String a, String b)) { | |
12852 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
12853 } | |
12854 | |
12855 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
12856 throw new UnsupportedOperationException("This object is immutable."); | |
12857 } | |
12858 | |
12859 int indexOf(String element, int startIndex) { | |
12860 return _Lists.indexOf(this, element, startIndex, this.length); | |
12861 } | |
12862 | |
12863 int lastIndexOf(String element, int startIndex) { | |
12864 return _Lists.lastIndexOf(this, element, startIndex); | |
12865 } | |
12866 | |
12867 int clear() { | |
12868 throw new UnsupportedOperationException("Cannot clear immutable List."); | |
12869 } | |
12870 | |
12871 String removeLast() { | |
12872 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
12873 } | |
12874 | |
12875 String last() { | |
12876 return this[length - 1]; | |
12877 } | |
12878 | |
12879 void forEach(void f(String element)) { | |
12880 _Collections.forEach(this, f); | |
12881 } | |
12882 | |
12883 Collection<String> filter(bool f(String element)) { | |
12884 return _Collections.filter(this, new List<String>(), f); | |
12885 } | |
12886 | |
12887 bool every(bool f(String element)) { | |
12888 return _Collections.every(this, f); | |
12889 } | |
12890 | |
12891 bool some(bool f(String element)) { | |
12892 return _Collections.some(this, f); | |
12893 } | |
12894 | |
12895 void setRange(int start, int length, List<String> from, [int startFrom]) { | |
12896 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
12897 } | |
12898 | |
12899 void removeRange(int start, int length) { | |
12900 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
12901 } | |
12902 | |
12903 void insertRange(int start, int length, [String initialValue]) { | |
12904 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
12905 } | |
12906 | |
12907 List<String> getRange(int start, int length) { | |
12908 throw new NotImplementedException(); | |
12909 } | |
12910 | |
12911 bool isEmpty() { | |
12912 return length == 0; | |
12913 } | |
12914 | |
12915 Iterator<String> iterator() { | |
12916 return new _FixedSizeListIterator<String>(this); | |
12917 } | |
12918 | |
12919 void appendMedium(String newMedium) { | |
12920 _ptr.appendMedium(newMedium); | |
12921 return; | |
12922 } | |
12923 | |
12924 void deleteMedium(String oldMedium) { | |
12925 _ptr.deleteMedium(oldMedium); | |
12926 return; | |
12927 } | |
12928 | |
12929 String item(int index) { | |
12930 return _ptr.item(index); | |
12931 } | |
12932 } | |
12933 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12934 // for details. All rights reserved. Use of this source code is governed by a | |
12935 // BSD-style license that can be found in the LICENSE file. | |
12936 | |
12937 // WARNING: Do not edit - generated code. | |
12938 | |
12939 class MediaQueryListListenerWrappingImplementation extends DOMWrapperBase implem
ents MediaQueryListListener { | |
12940 MediaQueryListListenerWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12941 | |
12942 void queryChanged(MediaQueryList list) { | |
12943 _ptr.queryChanged(LevelDom.unwrap(list)); | |
12944 return; | |
12945 } | |
12946 } | |
12947 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12948 // for details. All rights reserved. Use of this source code is governed by a | |
12949 // BSD-style license that can be found in the LICENSE file. | |
12950 | |
12951 // WARNING: Do not edit - generated code. | |
12952 | |
12953 class MediaQueryListWrappingImplementation extends DOMWrapperBase implements Med
iaQueryList { | |
12954 MediaQueryListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12955 | |
12956 bool get matches() { return _ptr.matches; } | |
12957 | |
12958 String get media() { return _ptr.media; } | |
12959 | |
12960 void addListener(MediaQueryListListener listener) { | |
12961 _ptr.addListener(LevelDom.unwrap(listener)); | |
12962 return; | |
12963 } | |
12964 | |
12965 void removeListener(MediaQueryListListener listener) { | |
12966 _ptr.removeListener(LevelDom.unwrap(listener)); | |
12967 return; | |
12968 } | |
12969 } | |
12970 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12971 // for details. All rights reserved. Use of this source code is governed by a | |
12972 // BSD-style license that can be found in the LICENSE file. | |
12973 | |
12974 // WARNING: Do not edit - generated code. | |
12975 | |
12976 class MediaStreamListWrappingImplementation extends DOMWrapperBase implements Me
diaStreamList { | |
12977 MediaStreamListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12978 | |
12979 int get length() { return _ptr.length; } | |
12980 | |
12981 MediaStream item(int index) { | |
12982 return LevelDom.wrapMediaStream(_ptr.item(index)); | |
12983 } | |
12984 } | |
12985 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
12986 // for details. All rights reserved. Use of this source code is governed by a | |
12987 // BSD-style license that can be found in the LICENSE file. | |
12988 | |
12989 // WARNING: Do not edit - generated code. | |
12990 | |
12991 class MediaStreamTrackListWrappingImplementation extends DOMWrapperBase implemen
ts MediaStreamTrackList { | |
12992 MediaStreamTrackListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
12993 | |
12994 int get length() { return _ptr.length; } | |
12995 | |
12996 MediaStreamTrack item(int index) { | |
12997 return LevelDom.wrapMediaStreamTrack(_ptr.item(index)); | |
12998 } | |
12999 } | |
13000 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13001 // for details. All rights reserved. Use of this source code is governed by a | |
13002 // BSD-style license that can be found in the LICENSE file. | |
13003 | |
13004 // WARNING: Do not edit - generated code. | |
13005 | |
13006 class MediaStreamTrackWrappingImplementation extends DOMWrapperBase implements M
ediaStreamTrack { | |
13007 MediaStreamTrackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13008 | |
13009 bool get enabled() { return _ptr.enabled; } | |
13010 | |
13011 void set enabled(bool value) { _ptr.enabled = value; } | |
13012 | |
13013 String get kind() { return _ptr.kind; } | |
13014 | |
13015 String get label() { return _ptr.label; } | |
13016 } | |
13017 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13018 // for details. All rights reserved. Use of this source code is governed by a | |
13019 // BSD-style license that can be found in the LICENSE file. | |
13020 | |
13021 // WARNING: Do not edit - generated code. | |
13022 | |
13023 class MediaStreamWrappingImplementation extends DOMWrapperBase implements MediaS
tream { | |
13024 MediaStreamWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13025 | |
13026 String get label() { return _ptr.label; } | |
13027 | |
13028 EventListener get onended() { return LevelDom.wrapEventListener(_ptr.onended);
} | |
13029 | |
13030 void set onended(EventListener value) { _ptr.onended = LevelDom.unwrap(value);
} | |
13031 | |
13032 int get readyState() { return _ptr.readyState; } | |
13033 | |
13034 MediaStreamTrackList get tracks() { return LevelDom.wrapMediaStreamTrackList(_
ptr.tracks); } | |
13035 | |
13036 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
13037 if (useCapture === null) { | |
13038 _ptr.addEventListener(type, LevelDom.unwrap(listener)); | |
13039 return; | |
13040 } else { | |
13041 _ptr.addEventListener(type, LevelDom.unwrap(listener), useCapture); | |
13042 return; | |
13043 } | |
13044 } | |
13045 | |
13046 bool dispatchEvent(Event event) { | |
13047 return _ptr.dispatchEvent(LevelDom.unwrap(event)); | |
13048 } | |
13049 | |
13050 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
13051 if (useCapture === null) { | |
13052 _ptr.removeEventListener(type, LevelDom.unwrap(listener)); | |
13053 return; | |
13054 } else { | |
13055 _ptr.removeEventListener(type, LevelDom.unwrap(listener), useCapture); | |
13056 return; | |
13057 } | |
13058 } | |
13059 } | |
13060 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13061 // for details. All rights reserved. Use of this source code is governed by a | |
13062 // BSD-style license that can be found in the LICENSE file. | |
13063 | |
13064 // WARNING: Do not edit - generated code. | |
13065 | |
13066 class MenuElementWrappingImplementation extends ElementWrappingImplementation im
plements MenuElement { | |
13067 MenuElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13068 | |
13069 bool get compact() { return _ptr.compact; } | |
13070 | |
13071 void set compact(bool value) { _ptr.compact = value; } | |
13072 } | |
13073 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13074 // for details. All rights reserved. Use of this source code is governed by a | |
13075 // BSD-style license that can be found in the LICENSE file. | |
13076 | |
13077 // WARNING: Do not edit - generated code. | |
13078 | |
13079 class MessageChannelWrappingImplementation extends DOMWrapperBase implements Mes
sageChannel { | |
13080 MessageChannelWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13081 | |
13082 MessagePort get port1() { return LevelDom.wrapMessagePort(_ptr.port1); } | |
13083 | |
13084 MessagePort get port2() { return LevelDom.wrapMessagePort(_ptr.port2); } | |
13085 } | |
13086 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13087 // for details. All rights reserved. Use of this source code is governed by a | |
13088 // BSD-style license that can be found in the LICENSE file. | |
13089 | |
13090 // WARNING: Do not edit - generated code. | |
13091 | |
13092 class MessageEventWrappingImplementation extends EventWrappingImplementation imp
lements MessageEvent { | |
13093 MessageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13094 | |
13095 String get data() { return _ptr.data; } | |
13096 | |
13097 String get lastEventId() { return _ptr.lastEventId; } | |
13098 | |
13099 MessagePort get messagePort() { return LevelDom.wrapMessagePort(_ptr.messagePo
rt); } | |
13100 | |
13101 String get origin() { return _ptr.origin; } | |
13102 | |
13103 Window get source() { return LevelDom.wrapWindow(_ptr.source); } | |
13104 | |
13105 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring dataArg, String originArg, String lastEventIdArg, Window sourceArg, Messag
ePort messagePort) { | |
13106 _ptr.initMessageEvent(typeArg, canBubbleArg, cancelableArg, dataArg, originA
rg, lastEventIdArg, LevelDom.unwrap(sourceArg), LevelDom.unwrap(messagePort)); | |
13107 return; | |
13108 } | |
13109 } | |
13110 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13111 // for details. All rights reserved. Use of this source code is governed by a | |
13112 // BSD-style license that can be found in the LICENSE file. | |
13113 | |
13114 // WARNING: Do not edit - generated code. | |
13115 | |
13116 class MetaElementWrappingImplementation extends ElementWrappingImplementation im
plements MetaElement { | |
13117 MetaElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13118 | |
13119 String get content() { return _ptr.content; } | |
13120 | |
13121 void set content(String value) { _ptr.content = value; } | |
13122 | |
13123 String get httpEquiv() { return _ptr.httpEquiv; } | |
13124 | |
13125 void set httpEquiv(String value) { _ptr.httpEquiv = value; } | |
13126 | |
13127 String get name() { return _ptr.name; } | |
13128 | |
13129 void set name(String value) { _ptr.name = value; } | |
13130 | |
13131 String get scheme() { return _ptr.scheme; } | |
13132 | |
13133 void set scheme(String value) { _ptr.scheme = value; } | |
13134 } | |
13135 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13136 // for details. All rights reserved. Use of this source code is governed by a | |
13137 // BSD-style license that can be found in the LICENSE file. | |
13138 | |
13139 // WARNING: Do not edit - generated code. | |
13140 | |
13141 class MetadataCallbackWrappingImplementation extends DOMWrapperBase implements M
etadataCallback { | |
13142 MetadataCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13143 | |
13144 bool handleEvent(Metadata metadata) { | |
13145 return _ptr.handleEvent(LevelDom.unwrap(metadata)); | |
13146 } | |
13147 } | |
13148 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13149 // for details. All rights reserved. Use of this source code is governed by a | |
13150 // BSD-style license that can be found in the LICENSE file. | |
13151 | |
13152 // WARNING: Do not edit - generated code. | |
13153 | |
13154 class MetadataWrappingImplementation extends DOMWrapperBase implements Metadata
{ | |
13155 MetadataWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13156 | |
13157 Date get modificationTime() { return _ptr.modificationTime; } | |
13158 } | |
13159 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13160 // for details. All rights reserved. Use of this source code is governed by a | |
13161 // BSD-style license that can be found in the LICENSE file. | |
13162 | |
13163 // WARNING: Do not edit - generated code. | |
13164 | |
13165 class MeterElementWrappingImplementation extends ElementWrappingImplementation i
mplements MeterElement { | |
13166 MeterElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13167 | |
13168 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
13169 | |
13170 num get high() { return _ptr.high; } | |
13171 | |
13172 void set high(num value) { _ptr.high = value; } | |
13173 | |
13174 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
13175 | |
13176 num get low() { return _ptr.low; } | |
13177 | |
13178 void set low(num value) { _ptr.low = value; } | |
13179 | |
13180 num get max() { return _ptr.max; } | |
13181 | |
13182 void set max(num value) { _ptr.max = value; } | |
13183 | |
13184 num get min() { return _ptr.min; } | |
13185 | |
13186 void set min(num value) { _ptr.min = value; } | |
13187 | |
13188 num get optimum() { return _ptr.optimum; } | |
13189 | |
13190 void set optimum(num value) { _ptr.optimum = value; } | |
13191 | |
13192 num get value() { return _ptr.value; } | |
13193 | |
13194 void set value(num value) { _ptr.value = value; } | |
13195 } | |
13196 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13197 // for details. All rights reserved. Use of this source code is governed by a | |
13198 // BSD-style license that can be found in the LICENSE file. | |
13199 | |
13200 // WARNING: Do not edit - generated code. | |
13201 | |
13202 class ModElementWrappingImplementation extends ElementWrappingImplementation imp
lements ModElement { | |
13203 ModElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13204 | |
13205 String get cite() { return _ptr.cite; } | |
13206 | |
13207 void set cite(String value) { _ptr.cite = value; } | |
13208 | |
13209 String get dateTime() { return _ptr.dateTime; } | |
13210 | |
13211 void set dateTime(String value) { _ptr.dateTime = value; } | |
13212 } | |
13213 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13214 // for details. All rights reserved. Use of this source code is governed by a | |
13215 // BSD-style license that can be found in the LICENSE file. | |
13216 | |
13217 // WARNING: Do not edit - generated code. | |
13218 | |
13219 class MouseEventWrappingImplementation extends UIEventWrappingImplementation imp
lements MouseEvent { | |
13220 MouseEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13221 | |
13222 bool get altKey() { return _ptr.altKey; } | |
13223 | |
13224 int get button() { return _ptr.button; } | |
13225 | |
13226 int get clientX() { return _ptr.clientX; } | |
13227 | |
13228 int get clientY() { return _ptr.clientY; } | |
13229 | |
13230 bool get ctrlKey() { return _ptr.ctrlKey; } | |
13231 | |
13232 Node get fromElement() { return LevelDom.wrapNode(_ptr.fromElement); } | |
13233 | |
13234 bool get metaKey() { return _ptr.metaKey; } | |
13235 | |
13236 int get offsetX() { return _ptr.offsetX; } | |
13237 | |
13238 int get offsetY() { return _ptr.offsetY; } | |
13239 | |
13240 EventTarget get relatedTarget() { return LevelDom.wrapEventTarget(_ptr.related
Target); } | |
13241 | |
13242 int get screenX() { return _ptr.screenX; } | |
13243 | |
13244 int get screenY() { return _ptr.screenY; } | |
13245 | |
13246 bool get shiftKey() { return _ptr.shiftKey; } | |
13247 | |
13248 Node get toElement() { return LevelDom.wrapNode(_ptr.toElement); } | |
13249 | |
13250 int get x() { return _ptr.x; } | |
13251 | |
13252 int get y() { return _ptr.y; } | |
13253 | |
13254 void initMouseEvent(String type, bool canBubble, bool cancelable, Window view,
int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, b
ool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget)
{ | |
13255 _ptr.initMouseEvent(type, canBubble, cancelable, LevelDom.unwrap(view), deta
il, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, butt
on, LevelDom.unwrap(relatedTarget)); | |
13256 return; | |
13257 } | |
13258 } | |
13259 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13260 // for details. All rights reserved. Use of this source code is governed by a | |
13261 // BSD-style license that can be found in the LICENSE file. | |
13262 | |
13263 // WARNING: Do not edit - generated code. | |
13264 | |
13265 class MutationEventWrappingImplementation extends EventWrappingImplementation im
plements MutationEvent { | |
13266 MutationEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13267 | |
13268 int get attrChange() { return _ptr.attrChange; } | |
13269 | |
13270 String get attrName() { return _ptr.attrName; } | |
13271 | |
13272 String get newValue() { return _ptr.newValue; } | |
13273 | |
13274 String get prevValue() { return _ptr.prevValue; } | |
13275 | |
13276 Node get relatedNode() { return LevelDom.wrapNode(_ptr.relatedNode); } | |
13277 | |
13278 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela
tedNode, String prevValue, String newValue, String attrName, int attrChange) { | |
13279 _ptr.initMutationEvent(type, canBubble, cancelable, LevelDom.unwrap(relatedN
ode), prevValue, newValue, attrName, attrChange); | |
13280 return; | |
13281 } | |
13282 } | |
13283 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13284 // for details. All rights reserved. Use of this source code is governed by a | |
13285 // BSD-style license that can be found in the LICENSE file. | |
13286 | |
13287 // WARNING: Do not edit - generated code. | |
13288 | |
13289 class MutationRecordWrappingImplementation extends DOMWrapperBase implements Mut
ationRecord { | |
13290 MutationRecordWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13291 | |
13292 ElementList get addedNodes() { return LevelDom.wrapElementList(_ptr.addedNodes
); } | |
13293 | |
13294 String get attributeName() { return _ptr.attributeName; } | |
13295 | |
13296 String get attributeNamespace() { return _ptr.attributeNamespace; } | |
13297 | |
13298 Node get nextSibling() { return LevelDom.wrapNode(_ptr.nextSibling); } | |
13299 | |
13300 String get oldValue() { return _ptr.oldValue; } | |
13301 | |
13302 Node get previousSibling() { return LevelDom.wrapNode(_ptr.previousSibling); } | |
13303 | |
13304 ElementList get removedNodes() { return LevelDom.wrapElementList(_ptr.removedN
odes); } | |
13305 | |
13306 Node get target() { return LevelDom.wrapNode(_ptr.target); } | |
13307 | |
13308 String get type() { return _ptr.type; } | |
13309 } | |
13310 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13311 // for details. All rights reserved. Use of this source code is governed by a | |
13312 // BSD-style license that can be found in the LICENSE file. | |
13313 | |
13314 // WARNING: Do not edit - generated code. | |
13315 | |
13316 class NavigatorUserMediaErrorCallbackWrappingImplementation extends DOMWrapperBa
se implements NavigatorUserMediaErrorCallback { | |
13317 NavigatorUserMediaErrorCallbackWrappingImplementation._wrap(ptr) : super._wrap
(ptr) {} | |
13318 | |
13319 bool handleEvent(NavigatorUserMediaError error) { | |
13320 return _ptr.handleEvent(LevelDom.unwrap(error)); | |
13321 } | |
13322 } | |
13323 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13324 // for details. All rights reserved. Use of this source code is governed by a | |
13325 // BSD-style license that can be found in the LICENSE file. | |
13326 | |
13327 // WARNING: Do not edit - generated code. | |
13328 | |
13329 class NavigatorUserMediaErrorWrappingImplementation extends DOMWrapperBase imple
ments NavigatorUserMediaError { | |
13330 NavigatorUserMediaErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13331 | |
13332 int get code() { return _ptr.code; } | |
13333 } | |
13334 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13335 // for details. All rights reserved. Use of this source code is governed by a | |
13336 // BSD-style license that can be found in the LICENSE file. | |
13337 | |
13338 // WARNING: Do not edit - generated code. | |
13339 | |
13340 class NavigatorUserMediaSuccessCallbackWrappingImplementation extends DOMWrapper
Base implements NavigatorUserMediaSuccessCallback { | |
13341 NavigatorUserMediaSuccessCallbackWrappingImplementation._wrap(ptr) : super._wr
ap(ptr) {} | |
13342 | |
13343 bool handleEvent(LocalMediaStream stream) { | |
13344 return _ptr.handleEvent(LevelDom.unwrap(stream)); | |
13345 } | |
13346 } | |
13347 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13348 // for details. All rights reserved. Use of this source code is governed by a | |
13349 // BSD-style license that can be found in the LICENSE file. | |
13350 | |
13351 // WARNING: Do not edit - generated code. | |
13352 | |
13353 class NavigatorWrappingImplementation extends DOMWrapperBase implements Navigato
r { | |
13354 NavigatorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13355 | |
13356 String get appCodeName() { return _ptr.appCodeName; } | |
13357 | |
13358 String get appName() { return _ptr.appName; } | |
13359 | |
13360 String get appVersion() { return _ptr.appVersion; } | |
13361 | |
13362 bool get cookieEnabled() { return _ptr.cookieEnabled; } | |
13363 | |
13364 String get language() { return _ptr.language; } | |
13365 | |
13366 DOMMimeTypeArray get mimeTypes() { return LevelDom.wrapDOMMimeTypeArray(_ptr.m
imeTypes); } | |
13367 | |
13368 bool get onLine() { return _ptr.onLine; } | |
13369 | |
13370 String get platform() { return _ptr.platform; } | |
13371 | |
13372 DOMPluginArray get plugins() { return LevelDom.wrapDOMPluginArray(_ptr.plugins
); } | |
13373 | |
13374 String get product() { return _ptr.product; } | |
13375 | |
13376 String get productSub() { return _ptr.productSub; } | |
13377 | |
13378 String get userAgent() { return _ptr.userAgent; } | |
13379 | |
13380 String get vendor() { return _ptr.vendor; } | |
13381 | |
13382 String get vendorSub() { return _ptr.vendorSub; } | |
13383 | |
13384 void getStorageUpdates() { | |
13385 _ptr.getStorageUpdates(); | |
13386 return; | |
13387 } | |
13388 | |
13389 bool javaEnabled() { | |
13390 return _ptr.javaEnabled(); | |
13391 } | |
13392 } | |
13393 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13394 // for details. All rights reserved. Use of this source code is governed by a | |
13395 // BSD-style license that can be found in the LICENSE file. | |
13396 | |
13397 // WARNING: Do not edit - generated code. | |
13398 | |
13399 class NotationWrappingImplementation extends NodeWrappingImplementation implemen
ts Notation { | |
13400 NotationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13401 | |
13402 String get publicId() { return _ptr.publicId; } | |
13403 | |
13404 String get systemId() { return _ptr.systemId; } | |
13405 } | |
13406 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13407 // for details. All rights reserved. Use of this source code is governed by a | |
13408 // BSD-style license that can be found in the LICENSE file. | |
13409 | |
13410 // WARNING: Do not edit - generated code. | |
13411 | |
13412 class NotificationCenterWrappingImplementation extends DOMWrapperBase implements
NotificationCenter { | |
13413 NotificationCenterWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13414 | |
13415 int checkPermission() { | |
13416 return _ptr.checkPermission(); | |
13417 } | |
13418 | |
13419 Notification createHTMLNotification(String url) { | |
13420 return LevelDom.wrapNotification(_ptr.createHTMLNotification(url)); | |
13421 } | |
13422 | |
13423 Notification createNotification(String iconUrl, String title, String body) { | |
13424 return LevelDom.wrapNotification(_ptr.createNotification(iconUrl, title, bod
y)); | |
13425 } | |
13426 | |
13427 void requestPermission(VoidCallback callback) { | |
13428 _ptr.requestPermission(LevelDom.unwrap(callback)); | |
13429 return; | |
13430 } | |
13431 } | |
13432 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13433 // for details. All rights reserved. Use of this source code is governed by a | |
13434 // BSD-style license that can be found in the LICENSE file. | |
13435 | |
13436 // WARNING: Do not edit - generated code. | |
13437 | |
13438 class OESStandardDerivativesWrappingImplementation extends DOMWrapperBase implem
ents OESStandardDerivatives { | |
13439 OESStandardDerivativesWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13440 } | |
13441 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13442 // for details. All rights reserved. Use of this source code is governed by a | |
13443 // BSD-style license that can be found in the LICENSE file. | |
13444 | |
13445 // WARNING: Do not edit - generated code. | |
13446 | |
13447 class OESTextureFloatWrappingImplementation extends DOMWrapperBase implements OE
STextureFloat { | |
13448 OESTextureFloatWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13449 } | |
13450 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13451 // for details. All rights reserved. Use of this source code is governed by a | |
13452 // BSD-style license that can be found in the LICENSE file. | |
13453 | |
13454 // WARNING: Do not edit - generated code. | |
13455 | |
13456 class OESVertexArrayObjectWrappingImplementation extends DOMWrapperBase implemen
ts OESVertexArrayObject { | |
13457 OESVertexArrayObjectWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13458 | |
13459 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) { | |
13460 _ptr.bindVertexArrayOES(LevelDom.unwrap(arrayObject)); | |
13461 return; | |
13462 } | |
13463 | |
13464 WebGLVertexArrayObjectOES createVertexArrayOES() { | |
13465 return LevelDom.wrapWebGLVertexArrayObjectOES(_ptr.createVertexArrayOES()); | |
13466 } | |
13467 | |
13468 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) { | |
13469 _ptr.deleteVertexArrayOES(LevelDom.unwrap(arrayObject)); | |
13470 return; | |
13471 } | |
13472 | |
13473 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject) { | |
13474 return _ptr.isVertexArrayOES(LevelDom.unwrap(arrayObject)); | |
13475 } | |
13476 } | |
13477 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13478 // for details. All rights reserved. Use of this source code is governed by a | |
13479 // BSD-style license that can be found in the LICENSE file. | |
13480 | |
13481 // WARNING: Do not edit - generated code. | |
13482 | |
13483 class OListElementWrappingImplementation extends ElementWrappingImplementation i
mplements OListElement { | |
13484 OListElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13485 | |
13486 bool get compact() { return _ptr.compact; } | |
13487 | |
13488 void set compact(bool value) { _ptr.compact = value; } | |
13489 | |
13490 int get start() { return _ptr.start; } | |
13491 | |
13492 void set start(int value) { _ptr.start = value; } | |
13493 | |
13494 String get type() { return _ptr.type; } | |
13495 | |
13496 void set type(String value) { _ptr.type = value; } | |
13497 } | |
13498 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13499 // for details. All rights reserved. Use of this source code is governed by a | |
13500 // BSD-style license that can be found in the LICENSE file. | |
13501 | |
13502 // WARNING: Do not edit - generated code. | |
13503 | |
13504 class ObjectElementWrappingImplementation extends ElementWrappingImplementation
implements ObjectElement { | |
13505 ObjectElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13506 | |
13507 String get align() { return _ptr.align; } | |
13508 | |
13509 void set align(String value) { _ptr.align = value; } | |
13510 | |
13511 String get archive() { return _ptr.archive; } | |
13512 | |
13513 void set archive(String value) { _ptr.archive = value; } | |
13514 | |
13515 String get border() { return _ptr.border; } | |
13516 | |
13517 void set border(String value) { _ptr.border = value; } | |
13518 | |
13519 String get code() { return _ptr.code; } | |
13520 | |
13521 void set code(String value) { _ptr.code = value; } | |
13522 | |
13523 String get codeBase() { return _ptr.codeBase; } | |
13524 | |
13525 void set codeBase(String value) { _ptr.codeBase = value; } | |
13526 | |
13527 String get codeType() { return _ptr.codeType; } | |
13528 | |
13529 void set codeType(String value) { _ptr.codeType = value; } | |
13530 | |
13531 Document get contentDocument() { return LevelDom.wrapDocument(_ptr.contentDocu
ment); } | |
13532 | |
13533 String get data() { return _ptr.data; } | |
13534 | |
13535 void set data(String value) { _ptr.data = value; } | |
13536 | |
13537 bool get declare() { return _ptr.declare; } | |
13538 | |
13539 void set declare(bool value) { _ptr.declare = value; } | |
13540 | |
13541 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
13542 | |
13543 String get height() { return _ptr.height; } | |
13544 | |
13545 void set height(String value) { _ptr.height = value; } | |
13546 | |
13547 int get hspace() { return _ptr.hspace; } | |
13548 | |
13549 void set hspace(int value) { _ptr.hspace = value; } | |
13550 | |
13551 String get name() { return _ptr.name; } | |
13552 | |
13553 void set name(String value) { _ptr.name = value; } | |
13554 | |
13555 String get standby() { return _ptr.standby; } | |
13556 | |
13557 void set standby(String value) { _ptr.standby = value; } | |
13558 | |
13559 String get type() { return _ptr.type; } | |
13560 | |
13561 void set type(String value) { _ptr.type = value; } | |
13562 | |
13563 String get useMap() { return _ptr.useMap; } | |
13564 | |
13565 void set useMap(String value) { _ptr.useMap = value; } | |
13566 | |
13567 String get validationMessage() { return _ptr.validationMessage; } | |
13568 | |
13569 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
13570 | |
13571 int get vspace() { return _ptr.vspace; } | |
13572 | |
13573 void set vspace(int value) { _ptr.vspace = value; } | |
13574 | |
13575 String get width() { return _ptr.width; } | |
13576 | |
13577 void set width(String value) { _ptr.width = value; } | |
13578 | |
13579 bool get willValidate() { return _ptr.willValidate; } | |
13580 | |
13581 bool checkValidity() { | |
13582 return _ptr.checkValidity(); | |
13583 } | |
13584 | |
13585 void setCustomValidity(String error) { | |
13586 _ptr.setCustomValidity(error); | |
13587 return; | |
13588 } | |
13589 } | |
13590 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13591 // for details. All rights reserved. Use of this source code is governed by a | |
13592 // BSD-style license that can be found in the LICENSE file. | |
13593 | |
13594 // WARNING: Do not edit - generated code. | |
13595 | |
13596 class OperationNotAllowedExceptionWrappingImplementation extends DOMWrapperBase
implements OperationNotAllowedException { | |
13597 OperationNotAllowedExceptionWrappingImplementation._wrap(ptr) : super._wrap(pt
r) {} | |
13598 | |
13599 int get code() { return _ptr.code; } | |
13600 | |
13601 String get message() { return _ptr.message; } | |
13602 | |
13603 String get name() { return _ptr.name; } | |
13604 } | |
13605 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13606 // for details. All rights reserved. Use of this source code is governed by a | |
13607 // BSD-style license that can be found in the LICENSE file. | |
13608 | |
13609 // WARNING: Do not edit - generated code. | |
13610 | |
13611 class OptGroupElementWrappingImplementation extends ElementWrappingImplementatio
n implements OptGroupElement { | |
13612 OptGroupElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13613 | |
13614 bool get disabled() { return _ptr.disabled; } | |
13615 | |
13616 void set disabled(bool value) { _ptr.disabled = value; } | |
13617 | |
13618 String get label() { return _ptr.label; } | |
13619 | |
13620 void set label(String value) { _ptr.label = value; } | |
13621 } | |
13622 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13623 // for details. All rights reserved. Use of this source code is governed by a | |
13624 // BSD-style license that can be found in the LICENSE file. | |
13625 | |
13626 // WARNING: Do not edit - generated code. | |
13627 | |
13628 class OptionElementWrappingImplementation extends ElementWrappingImplementation
implements OptionElement { | |
13629 OptionElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13630 | |
13631 bool get defaultSelected() { return _ptr.defaultSelected; } | |
13632 | |
13633 void set defaultSelected(bool value) { _ptr.defaultSelected = value; } | |
13634 | |
13635 bool get disabled() { return _ptr.disabled; } | |
13636 | |
13637 void set disabled(bool value) { _ptr.disabled = value; } | |
13638 | |
13639 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
13640 | |
13641 int get index() { return _ptr.index; } | |
13642 | |
13643 String get label() { return _ptr.label; } | |
13644 | |
13645 void set label(String value) { _ptr.label = value; } | |
13646 | |
13647 bool get selected() { return _ptr.selected; } | |
13648 | |
13649 void set selected(bool value) { _ptr.selected = value; } | |
13650 | |
13651 String get text() { return _ptr.text; } | |
13652 | |
13653 String get value() { return _ptr.value; } | |
13654 | |
13655 void set value(String value) { _ptr.value = value; } | |
13656 } | |
13657 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13658 // for details. All rights reserved. Use of this source code is governed by a | |
13659 // BSD-style license that can be found in the LICENSE file. | |
13660 | |
13661 // WARNING: Do not edit - generated code. | |
13662 | |
13663 class OutputElementWrappingImplementation extends ElementWrappingImplementation
implements OutputElement { | |
13664 OutputElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13665 | |
13666 String get defaultValue() { return _ptr.defaultValue; } | |
13667 | |
13668 void set defaultValue(String value) { _ptr.defaultValue = value; } | |
13669 | |
13670 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
13671 | |
13672 DOMSettableTokenList get htmlFor() { return LevelDom.wrapDOMSettableTokenList(
_ptr.htmlFor); } | |
13673 | |
13674 void set htmlFor(DOMSettableTokenList value) { _ptr.htmlFor = LevelDom.unwrap(
value); } | |
13675 | |
13676 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
13677 | |
13678 String get name() { return _ptr.name; } | |
13679 | |
13680 void set name(String value) { _ptr.name = value; } | |
13681 | |
13682 String get type() { return _ptr.type; } | |
13683 | |
13684 String get validationMessage() { return _ptr.validationMessage; } | |
13685 | |
13686 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
13687 | |
13688 String get value() { return _ptr.value; } | |
13689 | |
13690 void set value(String value) { _ptr.value = value; } | |
13691 | |
13692 bool get willValidate() { return _ptr.willValidate; } | |
13693 | |
13694 bool checkValidity() { | |
13695 return _ptr.checkValidity(); | |
13696 } | |
13697 | |
13698 void setCustomValidity(String error) { | |
13699 _ptr.setCustomValidity(error); | |
13700 return; | |
13701 } | |
13702 } | |
13703 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13704 // for details. All rights reserved. Use of this source code is governed by a | |
13705 // BSD-style license that can be found in the LICENSE file. | |
13706 | |
13707 // WARNING: Do not edit - generated code. | |
13708 | |
13709 class OverflowEventWrappingImplementation extends EventWrappingImplementation im
plements OverflowEvent { | |
13710 OverflowEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13711 | |
13712 bool get horizontalOverflow() { return _ptr.horizontalOverflow; } | |
13713 | |
13714 int get orient() { return _ptr.orient; } | |
13715 | |
13716 bool get verticalOverflow() { return _ptr.verticalOverflow; } | |
13717 | |
13718 void initOverflowEvent(int orient, bool horizontalOverflow, bool verticalOverf
low) { | |
13719 _ptr.initOverflowEvent(orient, horizontalOverflow, verticalOverflow); | |
13720 return; | |
13721 } | |
13722 } | |
13723 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13724 // for details. All rights reserved. Use of this source code is governed by a | |
13725 // BSD-style license that can be found in the LICENSE file. | |
13726 | |
13727 // WARNING: Do not edit - generated code. | |
13728 | |
13729 class PageTransitionEventWrappingImplementation extends EventWrappingImplementat
ion implements PageTransitionEvent { | |
13730 PageTransitionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13731 | |
13732 bool get persisted() { return _ptr.persisted; } | |
13733 | |
13734 void initPageTransitionEvent(String typeArg, bool canBubbleArg, bool cancelabl
eArg, bool persisted) { | |
13735 _ptr.initPageTransitionEvent(typeArg, canBubbleArg, cancelableArg, persisted
); | |
13736 return; | |
13737 } | |
13738 } | |
13739 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13740 // for details. All rights reserved. Use of this source code is governed by a | |
13741 // BSD-style license that can be found in the LICENSE file. | |
13742 | |
13743 // WARNING: Do not edit - generated code. | |
13744 | |
13745 class ParagraphElementWrappingImplementation extends ElementWrappingImplementati
on implements ParagraphElement { | |
13746 ParagraphElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13747 | |
13748 String get align() { return _ptr.align; } | |
13749 | |
13750 void set align(String value) { _ptr.align = value; } | |
13751 } | |
13752 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13753 // for details. All rights reserved. Use of this source code is governed by a | |
13754 // BSD-style license that can be found in the LICENSE file. | |
13755 | |
13756 // WARNING: Do not edit - generated code. | |
13757 | |
13758 class ParamElementWrappingImplementation extends ElementWrappingImplementation i
mplements ParamElement { | |
13759 ParamElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13760 | |
13761 String get name() { return _ptr.name; } | |
13762 | |
13763 void set name(String value) { _ptr.name = value; } | |
13764 | |
13765 String get type() { return _ptr.type; } | |
13766 | |
13767 void set type(String value) { _ptr.type = value; } | |
13768 | |
13769 String get value() { return _ptr.value; } | |
13770 | |
13771 void set value(String value) { _ptr.value = value; } | |
13772 | |
13773 String get valueType() { return _ptr.valueType; } | |
13774 | |
13775 void set valueType(String value) { _ptr.valueType = value; } | |
13776 } | |
13777 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13778 // for details. All rights reserved. Use of this source code is governed by a | |
13779 // BSD-style license that can be found in the LICENSE file. | |
13780 | |
13781 // WARNING: Do not edit - generated code. | |
13782 | |
13783 class PointWrappingImplementation extends DOMWrapperBase implements Point { | |
13784 PointWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13785 | |
13786 num get x() { return _ptr.x; } | |
13787 | |
13788 void set x(num value) { _ptr.x = value; } | |
13789 | |
13790 num get y() { return _ptr.y; } | |
13791 | |
13792 void set y(num value) { _ptr.y = value; } | |
13793 } | |
13794 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13795 // for details. All rights reserved. Use of this source code is governed by a | |
13796 // BSD-style license that can be found in the LICENSE file. | |
13797 | |
13798 // WARNING: Do not edit - generated code. | |
13799 | |
13800 class PopStateEventWrappingImplementation extends EventWrappingImplementation im
plements PopStateEvent { | |
13801 PopStateEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13802 | |
13803 String get state() { return _ptr.state; } | |
13804 | |
13805 void initPopStateEvent(String typeArg, bool canBubbleArg, bool cancelableArg,
Object stateArg) { | |
13806 _ptr.initPopStateEvent(typeArg, canBubbleArg, cancelableArg, LevelDom.unwrap
MaybePrimitive(stateArg)); | |
13807 return; | |
13808 } | |
13809 } | |
13810 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13811 // for details. All rights reserved. Use of this source code is governed by a | |
13812 // BSD-style license that can be found in the LICENSE file. | |
13813 | |
13814 // WARNING: Do not edit - generated code. | |
13815 | |
13816 class PositionCallbackWrappingImplementation extends DOMWrapperBase implements P
ositionCallback { | |
13817 PositionCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13818 | |
13819 bool handleEvent(Geoposition position) { | |
13820 return _ptr.handleEvent(LevelDom.unwrap(position)); | |
13821 } | |
13822 } | |
13823 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13824 // for details. All rights reserved. Use of this source code is governed by a | |
13825 // BSD-style license that can be found in the LICENSE file. | |
13826 | |
13827 // WARNING: Do not edit - generated code. | |
13828 | |
13829 class PositionErrorCallbackWrappingImplementation extends DOMWrapperBase impleme
nts PositionErrorCallback { | |
13830 PositionErrorCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13831 | |
13832 bool handleEvent(PositionError error) { | |
13833 return _ptr.handleEvent(LevelDom.unwrap(error)); | |
13834 } | |
13835 } | |
13836 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13837 // for details. All rights reserved. Use of this source code is governed by a | |
13838 // BSD-style license that can be found in the LICENSE file. | |
13839 | |
13840 // WARNING: Do not edit - generated code. | |
13841 | |
13842 class PositionErrorWrappingImplementation extends DOMWrapperBase implements Posi
tionError { | |
13843 PositionErrorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13844 | |
13845 int get code() { return _ptr.code; } | |
13846 | |
13847 String get message() { return _ptr.message; } | |
13848 } | |
13849 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13850 // for details. All rights reserved. Use of this source code is governed by a | |
13851 // BSD-style license that can be found in the LICENSE file. | |
13852 | |
13853 // WARNING: Do not edit - generated code. | |
13854 | |
13855 class PreElementWrappingImplementation extends ElementWrappingImplementation imp
lements PreElement { | |
13856 PreElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13857 | |
13858 int get width() { return _ptr.width; } | |
13859 | |
13860 void set width(int value) { _ptr.width = value; } | |
13861 | |
13862 bool get wrap() { return _ptr.wrap; } | |
13863 | |
13864 void set wrap(bool value) { _ptr.wrap = value; } | |
13865 } | |
13866 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13867 // for details. All rights reserved. Use of this source code is governed by a | |
13868 // BSD-style license that can be found in the LICENSE file. | |
13869 | |
13870 // WARNING: Do not edit - generated code. | |
13871 | |
13872 class ProcessingInstructionWrappingImplementation extends NodeWrappingImplementa
tion implements ProcessingInstruction { | |
13873 ProcessingInstructionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13874 | |
13875 String get data() { return _ptr.data; } | |
13876 | |
13877 void set data(String value) { _ptr.data = value; } | |
13878 | |
13879 StyleSheet get sheet() { return LevelDom.wrapStyleSheet(_ptr.sheet); } | |
13880 | |
13881 String get target() { return _ptr.target; } | |
13882 } | |
13883 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13884 // for details. All rights reserved. Use of this source code is governed by a | |
13885 // BSD-style license that can be found in the LICENSE file. | |
13886 | |
13887 // WARNING: Do not edit - generated code. | |
13888 | |
13889 class ProgressElementWrappingImplementation extends ElementWrappingImplementatio
n implements ProgressElement { | |
13890 ProgressElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13891 | |
13892 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
13893 | |
13894 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
13895 | |
13896 num get max() { return _ptr.max; } | |
13897 | |
13898 void set max(num value) { _ptr.max = value; } | |
13899 | |
13900 num get position() { return _ptr.position; } | |
13901 | |
13902 num get value() { return _ptr.value; } | |
13903 | |
13904 void set value(num value) { _ptr.value = value; } | |
13905 } | |
13906 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13907 // for details. All rights reserved. Use of this source code is governed by a | |
13908 // BSD-style license that can be found in the LICENSE file. | |
13909 | |
13910 // WARNING: Do not edit - generated code. | |
13911 | |
13912 class ProgressEventWrappingImplementation extends EventWrappingImplementation im
plements ProgressEvent { | |
13913 ProgressEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13914 | |
13915 bool get lengthComputable() { return _ptr.lengthComputable; } | |
13916 | |
13917 int get loaded() { return _ptr.loaded; } | |
13918 | |
13919 int get total() { return _ptr.total; } | |
13920 | |
13921 void initProgressEvent(String typeArg, bool canBubbleArg, bool cancelableArg,
bool lengthComputableArg, int loadedArg, int totalArg) { | |
13922 _ptr.initProgressEvent(typeArg, canBubbleArg, cancelableArg, lengthComputabl
eArg, loadedArg, totalArg); | |
13923 return; | |
13924 } | |
13925 } | |
13926 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13927 // for details. All rights reserved. Use of this source code is governed by a | |
13928 // BSD-style license that can be found in the LICENSE file. | |
13929 | |
13930 // WARNING: Do not edit - generated code. | |
13931 | |
13932 class QuoteElementWrappingImplementation extends ElementWrappingImplementation i
mplements QuoteElement { | |
13933 QuoteElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13934 | |
13935 String get cite() { return _ptr.cite; } | |
13936 | |
13937 void set cite(String value) { _ptr.cite = value; } | |
13938 } | |
13939 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13940 // for details. All rights reserved. Use of this source code is governed by a | |
13941 // BSD-style license that can be found in the LICENSE file. | |
13942 | |
13943 // WARNING: Do not edit - generated code. | |
13944 | |
13945 class RGBColorWrappingImplementation extends DOMWrapperBase implements RGBColor
{ | |
13946 RGBColorWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13947 | |
13948 CSSPrimitiveValue get alpha() { return LevelDom.wrapCSSPrimitiveValue(_ptr.alp
ha); } | |
13949 | |
13950 CSSPrimitiveValue get blue() { return LevelDom.wrapCSSPrimitiveValue(_ptr.blue
); } | |
13951 | |
13952 CSSPrimitiveValue get green() { return LevelDom.wrapCSSPrimitiveValue(_ptr.gre
en); } | |
13953 | |
13954 CSSPrimitiveValue get red() { return LevelDom.wrapCSSPrimitiveValue(_ptr.red);
} | |
13955 } | |
13956 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13957 // for details. All rights reserved. Use of this source code is governed by a | |
13958 // BSD-style license that can be found in the LICENSE file. | |
13959 | |
13960 // WARNING: Do not edit - generated code. | |
13961 | |
13962 class RangeExceptionWrappingImplementation extends DOMWrapperBase implements Ran
geException { | |
13963 RangeExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13964 | |
13965 int get code() { return _ptr.code; } | |
13966 | |
13967 String get message() { return _ptr.message; } | |
13968 | |
13969 String get name() { return _ptr.name; } | |
13970 } | |
13971 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
13972 // for details. All rights reserved. Use of this source code is governed by a | |
13973 // BSD-style license that can be found in the LICENSE file. | |
13974 | |
13975 // WARNING: Do not edit - generated code. | |
13976 | |
13977 class RangeWrappingImplementation extends DOMWrapperBase implements Range { | |
13978 RangeWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
13979 | |
13980 bool get collapsed() { return _ptr.collapsed; } | |
13981 | |
13982 Node get commonAncestorContainer() { return LevelDom.wrapNode(_ptr.commonAnces
torContainer); } | |
13983 | |
13984 Node get endContainer() { return LevelDom.wrapNode(_ptr.endContainer); } | |
13985 | |
13986 int get endOffset() { return _ptr.endOffset; } | |
13987 | |
13988 Node get startContainer() { return LevelDom.wrapNode(_ptr.startContainer); } | |
13989 | |
13990 int get startOffset() { return _ptr.startOffset; } | |
13991 | |
13992 String get text() { return _ptr.text; } | |
13993 | |
13994 DocumentFragment cloneContents() { | |
13995 return LevelDom.wrapDocumentFragment(_ptr.cloneContents()); | |
13996 } | |
13997 | |
13998 Range cloneRange() { | |
13999 return LevelDom.wrapRange(_ptr.cloneRange()); | |
14000 } | |
14001 | |
14002 void collapse(bool toStart) { | |
14003 _ptr.collapse(toStart); | |
14004 return; | |
14005 } | |
14006 | |
14007 int compareNode(Node refNode) { | |
14008 return _ptr.compareNode(LevelDom.unwrap(refNode)); | |
14009 } | |
14010 | |
14011 int comparePoint(Node refNode, int offset) { | |
14012 return _ptr.comparePoint(LevelDom.unwrap(refNode), offset); | |
14013 } | |
14014 | |
14015 DocumentFragment createContextualFragment(String html) { | |
14016 return LevelDom.wrapDocumentFragment(_ptr.createContextualFragment(html)); | |
14017 } | |
14018 | |
14019 void deleteContents() { | |
14020 _ptr.deleteContents(); | |
14021 return; | |
14022 } | |
14023 | |
14024 void detach() { | |
14025 _ptr.detach(); | |
14026 return; | |
14027 } | |
14028 | |
14029 void expand(String unit) { | |
14030 _ptr.expand(unit); | |
14031 return; | |
14032 } | |
14033 | |
14034 DocumentFragment extractContents() { | |
14035 return LevelDom.wrapDocumentFragment(_ptr.extractContents()); | |
14036 } | |
14037 | |
14038 void insertNode(Node newNode) { | |
14039 _ptr.insertNode(LevelDom.unwrap(newNode)); | |
14040 return; | |
14041 } | |
14042 | |
14043 bool intersectsNode(Node refNode) { | |
14044 return _ptr.intersectsNode(LevelDom.unwrap(refNode)); | |
14045 } | |
14046 | |
14047 bool isPointInRange(Node refNode, int offset) { | |
14048 return _ptr.isPointInRange(LevelDom.unwrap(refNode), offset); | |
14049 } | |
14050 | |
14051 void selectNode(Node refNode) { | |
14052 _ptr.selectNode(LevelDom.unwrap(refNode)); | |
14053 return; | |
14054 } | |
14055 | |
14056 void selectNodeContents(Node refNode) { | |
14057 _ptr.selectNodeContents(LevelDom.unwrap(refNode)); | |
14058 return; | |
14059 } | |
14060 | |
14061 void setEnd(Node refNode, int offset) { | |
14062 _ptr.setEnd(LevelDom.unwrap(refNode), offset); | |
14063 return; | |
14064 } | |
14065 | |
14066 void setEndAfter(Node refNode) { | |
14067 _ptr.setEndAfter(LevelDom.unwrap(refNode)); | |
14068 return; | |
14069 } | |
14070 | |
14071 void setEndBefore(Node refNode) { | |
14072 _ptr.setEndBefore(LevelDom.unwrap(refNode)); | |
14073 return; | |
14074 } | |
14075 | |
14076 void setStart(Node refNode, int offset) { | |
14077 _ptr.setStart(LevelDom.unwrap(refNode), offset); | |
14078 return; | |
14079 } | |
14080 | |
14081 void setStartAfter(Node refNode) { | |
14082 _ptr.setStartAfter(LevelDom.unwrap(refNode)); | |
14083 return; | |
14084 } | |
14085 | |
14086 void setStartBefore(Node refNode) { | |
14087 _ptr.setStartBefore(LevelDom.unwrap(refNode)); | |
14088 return; | |
14089 } | |
14090 | |
14091 void surroundContents(Node newParent) { | |
14092 _ptr.surroundContents(LevelDom.unwrap(newParent)); | |
14093 return; | |
14094 } | |
14095 | |
14096 String toString() { | |
14097 return _ptr.toString(); | |
14098 } | |
14099 } | |
14100 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14101 // for details. All rights reserved. Use of this source code is governed by a | |
14102 // BSD-style license that can be found in the LICENSE file. | |
14103 | |
14104 // WARNING: Do not edit - generated code. | |
14105 | |
14106 class RectWrappingImplementation extends DOMWrapperBase implements Rect { | |
14107 RectWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14108 | |
14109 CSSPrimitiveValue get bottom() { return LevelDom.wrapCSSPrimitiveValue(_ptr.bo
ttom); } | |
14110 | |
14111 CSSPrimitiveValue get left() { return LevelDom.wrapCSSPrimitiveValue(_ptr.left
); } | |
14112 | |
14113 CSSPrimitiveValue get right() { return LevelDom.wrapCSSPrimitiveValue(_ptr.rig
ht); } | |
14114 | |
14115 CSSPrimitiveValue get top() { return LevelDom.wrapCSSPrimitiveValue(_ptr.top);
} | |
14116 } | |
14117 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14118 // for details. All rights reserved. Use of this source code is governed by a | |
14119 // BSD-style license that can be found in the LICENSE file. | |
14120 | |
14121 // WARNING: Do not edit - generated code. | |
14122 | |
14123 class ScreenWrappingImplementation extends DOMWrapperBase implements Screen { | |
14124 ScreenWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14125 | |
14126 int get availHeight() { return _ptr.availHeight; } | |
14127 | |
14128 int get availLeft() { return _ptr.availLeft; } | |
14129 | |
14130 int get availTop() { return _ptr.availTop; } | |
14131 | |
14132 int get availWidth() { return _ptr.availWidth; } | |
14133 | |
14134 int get colorDepth() { return _ptr.colorDepth; } | |
14135 | |
14136 int get height() { return _ptr.height; } | |
14137 | |
14138 int get pixelDepth() { return _ptr.pixelDepth; } | |
14139 | |
14140 int get width() { return _ptr.width; } | |
14141 } | |
14142 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14143 // for details. All rights reserved. Use of this source code is governed by a | |
14144 // BSD-style license that can be found in the LICENSE file. | |
14145 | |
14146 // WARNING: Do not edit - generated code. | |
14147 | |
14148 class ScriptElementWrappingImplementation extends ElementWrappingImplementation
implements ScriptElement { | |
14149 ScriptElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14150 | |
14151 bool get async() { return _ptr.async; } | |
14152 | |
14153 void set async(bool value) { _ptr.async = value; } | |
14154 | |
14155 String get charset() { return _ptr.charset; } | |
14156 | |
14157 void set charset(String value) { _ptr.charset = value; } | |
14158 | |
14159 bool get defer() { return _ptr.defer; } | |
14160 | |
14161 void set defer(bool value) { _ptr.defer = value; } | |
14162 | |
14163 String get event() { return _ptr.event; } | |
14164 | |
14165 void set event(String value) { _ptr.event = value; } | |
14166 | |
14167 String get htmlFor() { return _ptr.htmlFor; } | |
14168 | |
14169 void set htmlFor(String value) { _ptr.htmlFor = value; } | |
14170 | |
14171 String get src() { return _ptr.src; } | |
14172 | |
14173 void set src(String value) { _ptr.src = value; } | |
14174 | |
14175 String get text() { return _ptr.text; } | |
14176 | |
14177 void set text(String value) { _ptr.text = value; } | |
14178 | |
14179 String get type() { return _ptr.type; } | |
14180 | |
14181 void set type(String value) { _ptr.type = value; } | |
14182 } | |
14183 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14184 // for details. All rights reserved. Use of this source code is governed by a | |
14185 // BSD-style license that can be found in the LICENSE file. | |
14186 | |
14187 // WARNING: Do not edit - generated code. | |
14188 | |
14189 class SelectElementWrappingImplementation extends ElementWrappingImplementation
implements SelectElement { | |
14190 SelectElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14191 | |
14192 bool get autofocus() { return _ptr.autofocus; } | |
14193 | |
14194 void set autofocus(bool value) { _ptr.autofocus = value; } | |
14195 | |
14196 bool get disabled() { return _ptr.disabled; } | |
14197 | |
14198 void set disabled(bool value) { _ptr.disabled = value; } | |
14199 | |
14200 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
14201 | |
14202 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
14203 | |
14204 int get length() { return _ptr.length; } | |
14205 | |
14206 void set length(int value) { _ptr.length = value; } | |
14207 | |
14208 bool get multiple() { return _ptr.multiple; } | |
14209 | |
14210 void set multiple(bool value) { _ptr.multiple = value; } | |
14211 | |
14212 String get name() { return _ptr.name; } | |
14213 | |
14214 void set name(String value) { _ptr.name = value; } | |
14215 | |
14216 ElementList get options() { return LevelDom.wrapElementList(_ptr.options); } | |
14217 | |
14218 bool get required() { return _ptr.required; } | |
14219 | |
14220 void set required(bool value) { _ptr.required = value; } | |
14221 | |
14222 int get selectedIndex() { return _ptr.selectedIndex; } | |
14223 | |
14224 void set selectedIndex(int value) { _ptr.selectedIndex = value; } | |
14225 | |
14226 int get size() { return _ptr.size; } | |
14227 | |
14228 void set size(int value) { _ptr.size = value; } | |
14229 | |
14230 String get type() { return _ptr.type; } | |
14231 | |
14232 String get validationMessage() { return _ptr.validationMessage; } | |
14233 | |
14234 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
14235 | |
14236 String get value() { return _ptr.value; } | |
14237 | |
14238 void set value(String value) { _ptr.value = value; } | |
14239 | |
14240 bool get willValidate() { return _ptr.willValidate; } | |
14241 | |
14242 void add(Element element, Element before) { | |
14243 _ptr.add(LevelDom.unwrap(element), LevelDom.unwrap(before)); | |
14244 return; | |
14245 } | |
14246 | |
14247 bool checkValidity() { | |
14248 return _ptr.checkValidity(); | |
14249 } | |
14250 | |
14251 Node item(int index) { | |
14252 return LevelDom.wrapNode(_ptr.item(index)); | |
14253 } | |
14254 | |
14255 Node namedItem(String name) { | |
14256 return LevelDom.wrapNode(_ptr.namedItem(name)); | |
14257 } | |
14258 | |
14259 void setCustomValidity(String error) { | |
14260 _ptr.setCustomValidity(error); | |
14261 return; | |
14262 } | |
14263 } | |
14264 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14265 // for details. All rights reserved. Use of this source code is governed by a | |
14266 // BSD-style license that can be found in the LICENSE file. | |
14267 | |
14268 // WARNING: Do not edit - generated code. | |
14269 | |
14270 class SourceElementWrappingImplementation extends ElementWrappingImplementation
implements SourceElement { | |
14271 SourceElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14272 | |
14273 String get media() { return _ptr.media; } | |
14274 | |
14275 void set media(String value) { _ptr.media = value; } | |
14276 | |
14277 String get src() { return _ptr.src; } | |
14278 | |
14279 void set src(String value) { _ptr.src = value; } | |
14280 | |
14281 String get type() { return _ptr.type; } | |
14282 | |
14283 void set type(String value) { _ptr.type = value; } | |
14284 } | |
14285 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14286 // for details. All rights reserved. Use of this source code is governed by a | |
14287 // BSD-style license that can be found in the LICENSE file. | |
14288 | |
14289 // WARNING: Do not edit - generated code. | |
14290 | |
14291 class SpanElementWrappingImplementation extends ElementWrappingImplementation im
plements SpanElement { | |
14292 SpanElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14293 } | |
14294 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14295 // for details. All rights reserved. Use of this source code is governed by a | |
14296 // BSD-style license that can be found in the LICENSE file. | |
14297 | |
14298 // WARNING: Do not edit - generated code. | |
14299 | |
14300 class SpeechInputEventWrappingImplementation extends EventWrappingImplementation
implements SpeechInputEvent { | |
14301 SpeechInputEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14302 | |
14303 SpeechInputResultList get results() { return LevelDom.wrapSpeechInputResultLis
t(_ptr.results); } | |
14304 } | |
14305 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14306 // for details. All rights reserved. Use of this source code is governed by a | |
14307 // BSD-style license that can be found in the LICENSE file. | |
14308 | |
14309 // WARNING: Do not edit - generated code. | |
14310 | |
14311 class SpeechInputResultListWrappingImplementation extends DOMWrapperBase impleme
nts SpeechInputResultList { | |
14312 SpeechInputResultListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14313 | |
14314 int get length() { return _ptr.length; } | |
14315 | |
14316 SpeechInputResult item(int index) { | |
14317 return LevelDom.wrapSpeechInputResult(_ptr.item(index)); | |
14318 } | |
14319 } | |
14320 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14321 // for details. All rights reserved. Use of this source code is governed by a | |
14322 // BSD-style license that can be found in the LICENSE file. | |
14323 | |
14324 // WARNING: Do not edit - generated code. | |
14325 | |
14326 class SpeechInputResultWrappingImplementation extends DOMWrapperBase implements
SpeechInputResult { | |
14327 SpeechInputResultWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14328 | |
14329 num get confidence() { return _ptr.confidence; } | |
14330 | |
14331 String get utterance() { return _ptr.utterance; } | |
14332 } | |
14333 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14334 // for details. All rights reserved. Use of this source code is governed by a | |
14335 // BSD-style license that can be found in the LICENSE file. | |
14336 | |
14337 // WARNING: Do not edit - generated code. | |
14338 | |
14339 class StorageEventWrappingImplementation extends EventWrappingImplementation imp
lements StorageEvent { | |
14340 StorageEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14341 | |
14342 String get key() { return _ptr.key; } | |
14343 | |
14344 String get newValue() { return _ptr.newValue; } | |
14345 | |
14346 String get oldValue() { return _ptr.oldValue; } | |
14347 | |
14348 Storage get storageArea() { return LevelDom.wrapStorage(_ptr.storageArea); } | |
14349 | |
14350 String get url() { return _ptr.url; } | |
14351 | |
14352 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg) { | |
14353 _ptr.initStorageEvent(typeArg, canBubbleArg, cancelableArg, keyArg, oldValue
Arg, newValueArg, urlArg, LevelDom.unwrap(storageAreaArg)); | |
14354 return; | |
14355 } | |
14356 } | |
14357 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14358 // for details. All rights reserved. Use of this source code is governed by a | |
14359 // BSD-style license that can be found in the LICENSE file. | |
14360 | |
14361 // WARNING: Do not edit - generated code. | |
14362 | |
14363 class StorageInfoErrorCallbackWrappingImplementation extends DOMWrapperBase impl
ements StorageInfoErrorCallback { | |
14364 StorageInfoErrorCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {
} | |
14365 | |
14366 bool handleEvent(DOMException error) { | |
14367 return _ptr.handleEvent(LevelDom.unwrap(error)); | |
14368 } | |
14369 } | |
14370 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14371 // for details. All rights reserved. Use of this source code is governed by a | |
14372 // BSD-style license that can be found in the LICENSE file. | |
14373 | |
14374 // WARNING: Do not edit - generated code. | |
14375 | |
14376 class StorageInfoQuotaCallbackWrappingImplementation extends DOMWrapperBase impl
ements StorageInfoQuotaCallback { | |
14377 StorageInfoQuotaCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {
} | |
14378 | |
14379 bool handleEvent(int grantedQuotaInBytes) { | |
14380 return _ptr.handleEvent(grantedQuotaInBytes); | |
14381 } | |
14382 } | |
14383 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14384 // for details. All rights reserved. Use of this source code is governed by a | |
14385 // BSD-style license that can be found in the LICENSE file. | |
14386 | |
14387 // WARNING: Do not edit - generated code. | |
14388 | |
14389 class StorageInfoUsageCallbackWrappingImplementation extends DOMWrapperBase impl
ements StorageInfoUsageCallback { | |
14390 StorageInfoUsageCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {
} | |
14391 | |
14392 bool handleEvent(int currentUsageInBytes, int currentQuotaInBytes) { | |
14393 return _ptr.handleEvent(currentUsageInBytes, currentQuotaInBytes); | |
14394 } | |
14395 } | |
14396 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14397 // for details. All rights reserved. Use of this source code is governed by a | |
14398 // BSD-style license that can be found in the LICENSE file. | |
14399 | |
14400 // WARNING: Do not edit - generated code. | |
14401 | |
14402 class StorageInfoWrappingImplementation extends DOMWrapperBase implements Storag
eInfo { | |
14403 StorageInfoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14404 | |
14405 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck = null, StorageInfoErrorCallback errorCallback = null]) { | |
14406 if (usageCallback === null) { | |
14407 if (errorCallback === null) { | |
14408 _ptr.queryUsageAndQuota(storageType); | |
14409 return; | |
14410 } | |
14411 } else { | |
14412 if (errorCallback === null) { | |
14413 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback)); | |
14414 return; | |
14415 } else { | |
14416 _ptr.queryUsageAndQuota(storageType, LevelDom.unwrap(usageCallback), Lev
elDom.unwrap(errorCallback)); | |
14417 return; | |
14418 } | |
14419 } | |
14420 throw "Incorrect number or type of arguments"; | |
14421 } | |
14422 | |
14423 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) { | |
14424 if (quotaCallback === null) { | |
14425 if (errorCallback === null) { | |
14426 _ptr.requestQuota(storageType, newQuotaInBytes); | |
14427 return; | |
14428 } | |
14429 } else { | |
14430 if (errorCallback === null) { | |
14431 _ptr.requestQuota(storageType, newQuotaInBytes, LevelDom.unwrap(quotaCal
lback)); | |
14432 return; | |
14433 } else { | |
14434 _ptr.requestQuota(storageType, newQuotaInBytes, LevelDom.unwrap(quotaCal
lback), LevelDom.unwrap(errorCallback)); | |
14435 return; | |
14436 } | |
14437 } | |
14438 throw "Incorrect number or type of arguments"; | |
14439 } | |
14440 } | |
14441 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14442 // for details. All rights reserved. Use of this source code is governed by a | |
14443 // BSD-style license that can be found in the LICENSE file. | |
14444 | |
14445 // WARNING: Do not edit - generated code. | |
14446 | |
14447 class StorageWrappingImplementation extends DOMWrapperBase implements Storage { | |
14448 StorageWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14449 | |
14450 int get length() { return _ptr.length; } | |
14451 | |
14452 void clear() { | |
14453 _ptr.clear(); | |
14454 return; | |
14455 } | |
14456 | |
14457 String getItem(String key) { | |
14458 return _ptr.getItem(key); | |
14459 } | |
14460 | |
14461 String key(int index) { | |
14462 return _ptr.key(index); | |
14463 } | |
14464 | |
14465 void removeItem(String key) { | |
14466 _ptr.removeItem(key); | |
14467 return; | |
14468 } | |
14469 | |
14470 void setItem(String key, String data) { | |
14471 _ptr.setItem(key, data); | |
14472 return; | |
14473 } | |
14474 } | |
14475 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14476 // for details. All rights reserved. Use of this source code is governed by a | |
14477 // BSD-style license that can be found in the LICENSE file. | |
14478 | |
14479 // WARNING: Do not edit - generated code. | |
14480 | |
14481 class StringCallbackWrappingImplementation extends DOMWrapperBase implements Str
ingCallback { | |
14482 StringCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14483 | |
14484 bool handleEvent(String data) { | |
14485 return _ptr.handleEvent(data); | |
14486 } | |
14487 } | |
14488 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14489 // for details. All rights reserved. Use of this source code is governed by a | |
14490 // BSD-style license that can be found in the LICENSE file. | |
14491 | |
14492 // WARNING: Do not edit - generated code. | |
14493 | |
14494 class StyleElementWrappingImplementation extends ElementWrappingImplementation i
mplements StyleElement { | |
14495 StyleElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14496 | |
14497 bool get disabled() { return _ptr.disabled; } | |
14498 | |
14499 void set disabled(bool value) { _ptr.disabled = value; } | |
14500 | |
14501 String get media() { return _ptr.media; } | |
14502 | |
14503 void set media(String value) { _ptr.media = value; } | |
14504 | |
14505 StyleSheet get sheet() { return LevelDom.wrapStyleSheet(_ptr.sheet); } | |
14506 | |
14507 String get type() { return _ptr.type; } | |
14508 | |
14509 void set type(String value) { _ptr.type = value; } | |
14510 } | |
14511 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14512 // for details. All rights reserved. Use of this source code is governed by a | |
14513 // BSD-style license that can be found in the LICENSE file. | |
14514 | |
14515 // WARNING: Do not edit - generated code. | |
14516 | |
14517 class StyleMediaWrappingImplementation extends DOMWrapperBase implements StyleMe
dia { | |
14518 StyleMediaWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14519 | |
14520 String get type() { return _ptr.type; } | |
14521 | |
14522 bool matchMedium(String mediaquery) { | |
14523 return _ptr.matchMedium(mediaquery); | |
14524 } | |
14525 } | |
14526 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14527 // for details. All rights reserved. Use of this source code is governed by a | |
14528 // BSD-style license that can be found in the LICENSE file. | |
14529 | |
14530 // WARNING: Do not edit - generated code. | |
14531 | |
14532 class StyleSheetListWrappingImplementation extends DOMWrapperBase implements Sty
leSheetList { | |
14533 StyleSheetListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14534 | |
14535 int get length() { return _ptr.length; } | |
14536 | |
14537 StyleSheet operator[](int index) { | |
14538 return item(index); | |
14539 } | |
14540 | |
14541 void operator[]=(int index, StyleSheet value) { | |
14542 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
14543 } | |
14544 | |
14545 void add(StyleSheet value) { | |
14546 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
14547 } | |
14548 | |
14549 void addLast(StyleSheet value) { | |
14550 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
14551 } | |
14552 | |
14553 void addAll(Collection<StyleSheet> collection) { | |
14554 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
14555 } | |
14556 | |
14557 void sort(int compare(StyleSheet a, StyleSheet b)) { | |
14558 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
14559 } | |
14560 | |
14561 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
14562 throw new UnsupportedOperationException("This object is immutable."); | |
14563 } | |
14564 | |
14565 int indexOf(StyleSheet element, int startIndex) { | |
14566 return _Lists.indexOf(this, element, startIndex, this.length); | |
14567 } | |
14568 | |
14569 int lastIndexOf(StyleSheet element, int startIndex) { | |
14570 return _Lists.lastIndexOf(this, element, startIndex); | |
14571 } | |
14572 | |
14573 int clear() { | |
14574 throw new UnsupportedOperationException("Cannot clear immutable List."); | |
14575 } | |
14576 | |
14577 StyleSheet removeLast() { | |
14578 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
14579 } | |
14580 | |
14581 StyleSheet last() { | |
14582 return this[length - 1]; | |
14583 } | |
14584 | |
14585 void forEach(void f(StyleSheet element)) { | |
14586 _Collections.forEach(this, f); | |
14587 } | |
14588 | |
14589 Collection<StyleSheet> filter(bool f(StyleSheet element)) { | |
14590 return _Collections.filter(this, new List<StyleSheet>(), f); | |
14591 } | |
14592 | |
14593 bool every(bool f(StyleSheet element)) { | |
14594 return _Collections.every(this, f); | |
14595 } | |
14596 | |
14597 bool some(bool f(StyleSheet element)) { | |
14598 return _Collections.some(this, f); | |
14599 } | |
14600 | |
14601 void setRange(int start, int length, List<StyleSheet> from, [int startFrom]) { | |
14602 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
14603 } | |
14604 | |
14605 void removeRange(int start, int length) { | |
14606 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
14607 } | |
14608 | |
14609 void insertRange(int start, int length, [StyleSheet initialValue]) { | |
14610 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
14611 } | |
14612 | |
14613 List<StyleSheet> getRange(int start, int length) { | |
14614 throw new NotImplementedException(); | |
14615 } | |
14616 | |
14617 bool isEmpty() { | |
14618 return length == 0; | |
14619 } | |
14620 | |
14621 Iterator<StyleSheet> iterator() { | |
14622 return new _FixedSizeListIterator<StyleSheet>(this); | |
14623 } | |
14624 | |
14625 StyleSheet item(int index) { | |
14626 return LevelDom.wrapStyleSheet(_ptr.item(index)); | |
14627 } | |
14628 } | |
14629 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14630 // for details. All rights reserved. Use of this source code is governed by a | |
14631 // BSD-style license that can be found in the LICENSE file. | |
14632 | |
14633 // WARNING: Do not edit - generated code. | |
14634 | |
14635 class StyleSheetWrappingImplementation extends DOMWrapperBase implements StyleSh
eet { | |
14636 StyleSheetWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14637 | |
14638 bool get disabled() { return _ptr.disabled; } | |
14639 | |
14640 void set disabled(bool value) { _ptr.disabled = value; } | |
14641 | |
14642 String get href() { return _ptr.href; } | |
14643 | |
14644 MediaList get media() { return LevelDom.wrapMediaList(_ptr.media); } | |
14645 | |
14646 Node get ownerNode() { return LevelDom.wrapNode(_ptr.ownerNode); } | |
14647 | |
14648 StyleSheet get parentStyleSheet() { return LevelDom.wrapStyleSheet(_ptr.parent
StyleSheet); } | |
14649 | |
14650 String get title() { return _ptr.title; } | |
14651 | |
14652 String get type() { return _ptr.type; } | |
14653 } | |
14654 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14655 // for details. All rights reserved. Use of this source code is governed by a | |
14656 // BSD-style license that can be found in the LICENSE file. | |
14657 | |
14658 // WARNING: Do not edit - generated code. | |
14659 | |
14660 class TableCaptionElementWrappingImplementation extends ElementWrappingImplement
ation implements TableCaptionElement { | |
14661 TableCaptionElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14662 | |
14663 String get align() { return _ptr.align; } | |
14664 | |
14665 void set align(String value) { _ptr.align = value; } | |
14666 } | |
14667 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14668 // for details. All rights reserved. Use of this source code is governed by a | |
14669 // BSD-style license that can be found in the LICENSE file. | |
14670 | |
14671 // WARNING: Do not edit - generated code. | |
14672 | |
14673 class TableCellElementWrappingImplementation extends ElementWrappingImplementati
on implements TableCellElement { | |
14674 TableCellElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14675 | |
14676 String get abbr() { return _ptr.abbr; } | |
14677 | |
14678 void set abbr(String value) { _ptr.abbr = value; } | |
14679 | |
14680 String get align() { return _ptr.align; } | |
14681 | |
14682 void set align(String value) { _ptr.align = value; } | |
14683 | |
14684 String get axis() { return _ptr.axis; } | |
14685 | |
14686 void set axis(String value) { _ptr.axis = value; } | |
14687 | |
14688 String get bgColor() { return _ptr.bgColor; } | |
14689 | |
14690 void set bgColor(String value) { _ptr.bgColor = value; } | |
14691 | |
14692 int get cellIndex() { return _ptr.cellIndex; } | |
14693 | |
14694 String get ch() { return _ptr.ch; } | |
14695 | |
14696 void set ch(String value) { _ptr.ch = value; } | |
14697 | |
14698 String get chOff() { return _ptr.chOff; } | |
14699 | |
14700 void set chOff(String value) { _ptr.chOff = value; } | |
14701 | |
14702 int get colSpan() { return _ptr.colSpan; } | |
14703 | |
14704 void set colSpan(int value) { _ptr.colSpan = value; } | |
14705 | |
14706 String get headers() { return _ptr.headers; } | |
14707 | |
14708 void set headers(String value) { _ptr.headers = value; } | |
14709 | |
14710 String get height() { return _ptr.height; } | |
14711 | |
14712 void set height(String value) { _ptr.height = value; } | |
14713 | |
14714 bool get noWrap() { return _ptr.noWrap; } | |
14715 | |
14716 void set noWrap(bool value) { _ptr.noWrap = value; } | |
14717 | |
14718 int get rowSpan() { return _ptr.rowSpan; } | |
14719 | |
14720 void set rowSpan(int value) { _ptr.rowSpan = value; } | |
14721 | |
14722 String get scope() { return _ptr.scope; } | |
14723 | |
14724 void set scope(String value) { _ptr.scope = value; } | |
14725 | |
14726 String get vAlign() { return _ptr.vAlign; } | |
14727 | |
14728 void set vAlign(String value) { _ptr.vAlign = value; } | |
14729 | |
14730 String get width() { return _ptr.width; } | |
14731 | |
14732 void set width(String value) { _ptr.width = value; } | |
14733 } | |
14734 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14735 // for details. All rights reserved. Use of this source code is governed by a | |
14736 // BSD-style license that can be found in the LICENSE file. | |
14737 | |
14738 // WARNING: Do not edit - generated code. | |
14739 | |
14740 class TableColElementWrappingImplementation extends ElementWrappingImplementatio
n implements TableColElement { | |
14741 TableColElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14742 | |
14743 String get align() { return _ptr.align; } | |
14744 | |
14745 void set align(String value) { _ptr.align = value; } | |
14746 | |
14747 String get ch() { return _ptr.ch; } | |
14748 | |
14749 void set ch(String value) { _ptr.ch = value; } | |
14750 | |
14751 String get chOff() { return _ptr.chOff; } | |
14752 | |
14753 void set chOff(String value) { _ptr.chOff = value; } | |
14754 | |
14755 int get span() { return _ptr.span; } | |
14756 | |
14757 void set span(int value) { _ptr.span = value; } | |
14758 | |
14759 String get vAlign() { return _ptr.vAlign; } | |
14760 | |
14761 void set vAlign(String value) { _ptr.vAlign = value; } | |
14762 | |
14763 String get width() { return _ptr.width; } | |
14764 | |
14765 void set width(String value) { _ptr.width = value; } | |
14766 } | |
14767 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14768 // for details. All rights reserved. Use of this source code is governed by a | |
14769 // BSD-style license that can be found in the LICENSE file. | |
14770 | |
14771 // WARNING: Do not edit - generated code. | |
14772 | |
14773 class TableElementWrappingImplementation extends ElementWrappingImplementation i
mplements TableElement { | |
14774 TableElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14775 | |
14776 String get align() { return _ptr.align; } | |
14777 | |
14778 void set align(String value) { _ptr.align = value; } | |
14779 | |
14780 String get bgColor() { return _ptr.bgColor; } | |
14781 | |
14782 void set bgColor(String value) { _ptr.bgColor = value; } | |
14783 | |
14784 String get border() { return _ptr.border; } | |
14785 | |
14786 void set border(String value) { _ptr.border = value; } | |
14787 | |
14788 TableCaptionElement get caption() { return LevelDom.wrapTableCaptionElement(_p
tr.caption); } | |
14789 | |
14790 void set caption(TableCaptionElement value) { _ptr.caption = LevelDom.unwrap(v
alue); } | |
14791 | |
14792 String get cellPadding() { return _ptr.cellPadding; } | |
14793 | |
14794 void set cellPadding(String value) { _ptr.cellPadding = value; } | |
14795 | |
14796 String get cellSpacing() { return _ptr.cellSpacing; } | |
14797 | |
14798 void set cellSpacing(String value) { _ptr.cellSpacing = value; } | |
14799 | |
14800 String get frame() { return _ptr.frame; } | |
14801 | |
14802 void set frame(String value) { _ptr.frame = value; } | |
14803 | |
14804 ElementList get rows() { return LevelDom.wrapElementList(_ptr.rows); } | |
14805 | |
14806 String get rules() { return _ptr.rules; } | |
14807 | |
14808 void set rules(String value) { _ptr.rules = value; } | |
14809 | |
14810 String get summary() { return _ptr.summary; } | |
14811 | |
14812 void set summary(String value) { _ptr.summary = value; } | |
14813 | |
14814 ElementList get tBodies() { return LevelDom.wrapElementList(_ptr.tBodies); } | |
14815 | |
14816 TableSectionElement get tFoot() { return LevelDom.wrapTableSectionElement(_ptr
.tFoot); } | |
14817 | |
14818 void set tFoot(TableSectionElement value) { _ptr.tFoot = LevelDom.unwrap(value
); } | |
14819 | |
14820 TableSectionElement get tHead() { return LevelDom.wrapTableSectionElement(_ptr
.tHead); } | |
14821 | |
14822 void set tHead(TableSectionElement value) { _ptr.tHead = LevelDom.unwrap(value
); } | |
14823 | |
14824 String get width() { return _ptr.width; } | |
14825 | |
14826 void set width(String value) { _ptr.width = value; } | |
14827 | |
14828 Element createCaption() { | |
14829 return LevelDom.wrapElement(_ptr.createCaption()); | |
14830 } | |
14831 | |
14832 Element createTFoot() { | |
14833 return LevelDom.wrapElement(_ptr.createTFoot()); | |
14834 } | |
14835 | |
14836 Element createTHead() { | |
14837 return LevelDom.wrapElement(_ptr.createTHead()); | |
14838 } | |
14839 | |
14840 void deleteCaption() { | |
14841 _ptr.deleteCaption(); | |
14842 return; | |
14843 } | |
14844 | |
14845 void deleteRow(int index) { | |
14846 _ptr.deleteRow(index); | |
14847 return; | |
14848 } | |
14849 | |
14850 void deleteTFoot() { | |
14851 _ptr.deleteTFoot(); | |
14852 return; | |
14853 } | |
14854 | |
14855 void deleteTHead() { | |
14856 _ptr.deleteTHead(); | |
14857 return; | |
14858 } | |
14859 | |
14860 Element insertRow(int index) { | |
14861 return LevelDom.wrapElement(_ptr.insertRow(index)); | |
14862 } | |
14863 } | |
14864 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14865 // for details. All rights reserved. Use of this source code is governed by a | |
14866 // BSD-style license that can be found in the LICENSE file. | |
14867 | |
14868 // WARNING: Do not edit - generated code. | |
14869 | |
14870 class TableRowElementWrappingImplementation extends ElementWrappingImplementatio
n implements TableRowElement { | |
14871 TableRowElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14872 | |
14873 String get align() { return _ptr.align; } | |
14874 | |
14875 void set align(String value) { _ptr.align = value; } | |
14876 | |
14877 String get bgColor() { return _ptr.bgColor; } | |
14878 | |
14879 void set bgColor(String value) { _ptr.bgColor = value; } | |
14880 | |
14881 ElementList get cells() { return LevelDom.wrapElementList(_ptr.cells); } | |
14882 | |
14883 String get ch() { return _ptr.ch; } | |
14884 | |
14885 void set ch(String value) { _ptr.ch = value; } | |
14886 | |
14887 String get chOff() { return _ptr.chOff; } | |
14888 | |
14889 void set chOff(String value) { _ptr.chOff = value; } | |
14890 | |
14891 int get rowIndex() { return _ptr.rowIndex; } | |
14892 | |
14893 int get sectionRowIndex() { return _ptr.sectionRowIndex; } | |
14894 | |
14895 String get vAlign() { return _ptr.vAlign; } | |
14896 | |
14897 void set vAlign(String value) { _ptr.vAlign = value; } | |
14898 | |
14899 void deleteCell(int index) { | |
14900 _ptr.deleteCell(index); | |
14901 return; | |
14902 } | |
14903 | |
14904 Element insertCell(int index) { | |
14905 return LevelDom.wrapElement(_ptr.insertCell(index)); | |
14906 } | |
14907 } | |
14908 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14909 // for details. All rights reserved. Use of this source code is governed by a | |
14910 // BSD-style license that can be found in the LICENSE file. | |
14911 | |
14912 // WARNING: Do not edit - generated code. | |
14913 | |
14914 class TableSectionElementWrappingImplementation extends ElementWrappingImplement
ation implements TableSectionElement { | |
14915 TableSectionElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14916 | |
14917 String get align() { return _ptr.align; } | |
14918 | |
14919 void set align(String value) { _ptr.align = value; } | |
14920 | |
14921 String get ch() { return _ptr.ch; } | |
14922 | |
14923 void set ch(String value) { _ptr.ch = value; } | |
14924 | |
14925 String get chOff() { return _ptr.chOff; } | |
14926 | |
14927 void set chOff(String value) { _ptr.chOff = value; } | |
14928 | |
14929 ElementList get rows() { return LevelDom.wrapElementList(_ptr.rows); } | |
14930 | |
14931 String get vAlign() { return _ptr.vAlign; } | |
14932 | |
14933 void set vAlign(String value) { _ptr.vAlign = value; } | |
14934 | |
14935 void deleteRow(int index) { | |
14936 _ptr.deleteRow(index); | |
14937 return; | |
14938 } | |
14939 | |
14940 Element insertRow(int index) { | |
14941 return LevelDom.wrapElement(_ptr.insertRow(index)); | |
14942 } | |
14943 } | |
14944 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
14945 // for details. All rights reserved. Use of this source code is governed by a | |
14946 // BSD-style license that can be found in the LICENSE file. | |
14947 | |
14948 // WARNING: Do not edit - generated code. | |
14949 | |
14950 class TextAreaElementWrappingImplementation extends ElementWrappingImplementatio
n implements TextAreaElement { | |
14951 TextAreaElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
14952 | |
14953 String get accessKey() { return _ptr.accessKey; } | |
14954 | |
14955 void set accessKey(String value) { _ptr.accessKey = value; } | |
14956 | |
14957 bool get autofocus() { return _ptr.autofocus; } | |
14958 | |
14959 void set autofocus(bool value) { _ptr.autofocus = value; } | |
14960 | |
14961 int get cols() { return _ptr.cols; } | |
14962 | |
14963 void set cols(int value) { _ptr.cols = value; } | |
14964 | |
14965 String get defaultValue() { return _ptr.defaultValue; } | |
14966 | |
14967 void set defaultValue(String value) { _ptr.defaultValue = value; } | |
14968 | |
14969 bool get disabled() { return _ptr.disabled; } | |
14970 | |
14971 void set disabled(bool value) { _ptr.disabled = value; } | |
14972 | |
14973 FormElement get form() { return LevelDom.wrapFormElement(_ptr.form); } | |
14974 | |
14975 ElementList get labels() { return LevelDom.wrapElementList(_ptr.labels); } | |
14976 | |
14977 int get maxLength() { return _ptr.maxLength; } | |
14978 | |
14979 void set maxLength(int value) { _ptr.maxLength = value; } | |
14980 | |
14981 String get name() { return _ptr.name; } | |
14982 | |
14983 void set name(String value) { _ptr.name = value; } | |
14984 | |
14985 String get placeholder() { return _ptr.placeholder; } | |
14986 | |
14987 void set placeholder(String value) { _ptr.placeholder = value; } | |
14988 | |
14989 bool get readOnly() { return _ptr.readOnly; } | |
14990 | |
14991 void set readOnly(bool value) { _ptr.readOnly = value; } | |
14992 | |
14993 bool get required() { return _ptr.required; } | |
14994 | |
14995 void set required(bool value) { _ptr.required = value; } | |
14996 | |
14997 int get rows() { return _ptr.rows; } | |
14998 | |
14999 void set rows(int value) { _ptr.rows = value; } | |
15000 | |
15001 String get selectionDirection() { return _ptr.selectionDirection; } | |
15002 | |
15003 void set selectionDirection(String value) { _ptr.selectionDirection = value; } | |
15004 | |
15005 int get selectionEnd() { return _ptr.selectionEnd; } | |
15006 | |
15007 void set selectionEnd(int value) { _ptr.selectionEnd = value; } | |
15008 | |
15009 int get selectionStart() { return _ptr.selectionStart; } | |
15010 | |
15011 void set selectionStart(int value) { _ptr.selectionStart = value; } | |
15012 | |
15013 int get textLength() { return _ptr.textLength; } | |
15014 | |
15015 String get type() { return _ptr.type; } | |
15016 | |
15017 String get validationMessage() { return _ptr.validationMessage; } | |
15018 | |
15019 ValidityState get validity() { return LevelDom.wrapValidityState(_ptr.validity
); } | |
15020 | |
15021 String get value() { return _ptr.value; } | |
15022 | |
15023 void set value(String value) { _ptr.value = value; } | |
15024 | |
15025 bool get willValidate() { return _ptr.willValidate; } | |
15026 | |
15027 String get wrap() { return _ptr.wrap; } | |
15028 | |
15029 void set wrap(String value) { _ptr.wrap = value; } | |
15030 | |
15031 bool checkValidity() { | |
15032 return _ptr.checkValidity(); | |
15033 } | |
15034 | |
15035 void select() { | |
15036 _ptr.select(); | |
15037 return; | |
15038 } | |
15039 | |
15040 void setCustomValidity(String error) { | |
15041 _ptr.setCustomValidity(error); | |
15042 return; | |
15043 } | |
15044 | |
15045 void setSelectionRange(int start, int end, [String direction = null]) { | |
15046 if (direction === null) { | |
15047 _ptr.setSelectionRange(start, end); | |
15048 return; | |
15049 } else { | |
15050 _ptr.setSelectionRange(start, end, direction); | |
15051 return; | |
15052 } | |
15053 } | |
15054 } | |
15055 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15056 // for details. All rights reserved. Use of this source code is governed by a | |
15057 // BSD-style license that can be found in the LICENSE file. | |
15058 | |
15059 // WARNING: Do not edit - generated code. | |
15060 | |
15061 class TextEventWrappingImplementation extends UIEventWrappingImplementation impl
ements TextEvent { | |
15062 TextEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15063 | |
15064 String get data() { return _ptr.data; } | |
15065 | |
15066 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Wind
ow viewArg, String dataArg) { | |
15067 _ptr.initTextEvent(typeArg, canBubbleArg, cancelableArg, LevelDom.unwrap(vie
wArg), dataArg); | |
15068 return; | |
15069 } | |
15070 } | |
15071 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15072 // for details. All rights reserved. Use of this source code is governed by a | |
15073 // BSD-style license that can be found in the LICENSE file. | |
15074 | |
15075 // WARNING: Do not edit - generated code. | |
15076 | |
15077 class TextMetricsWrappingImplementation extends DOMWrapperBase implements TextMe
trics { | |
15078 TextMetricsWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15079 | |
15080 num get width() { return _ptr.width; } | |
15081 } | |
15082 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15083 // for details. All rights reserved. Use of this source code is governed by a | |
15084 // BSD-style license that can be found in the LICENSE file. | |
15085 | |
15086 // WARNING: Do not edit - generated code. | |
15087 | |
15088 class TimeRangesWrappingImplementation extends DOMWrapperBase implements TimeRan
ges { | |
15089 TimeRangesWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15090 | |
15091 int get length() { return _ptr.length; } | |
15092 | |
15093 num end(int index) { | |
15094 return _ptr.end(index); | |
15095 } | |
15096 | |
15097 num start(int index) { | |
15098 return _ptr.start(index); | |
15099 } | |
15100 } | |
15101 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15102 // for details. All rights reserved. Use of this source code is governed by a | |
15103 // BSD-style license that can be found in the LICENSE file. | |
15104 | |
15105 // WARNING: Do not edit - generated code. | |
15106 | |
15107 class TitleElementWrappingImplementation extends ElementWrappingImplementation i
mplements TitleElement { | |
15108 TitleElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15109 | |
15110 String get text() { return _ptr.text; } | |
15111 | |
15112 void set text(String value) { _ptr.text = value; } | |
15113 } | |
15114 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15115 // for details. All rights reserved. Use of this source code is governed by a | |
15116 // BSD-style license that can be found in the LICENSE file. | |
15117 | |
15118 // WARNING: Do not edit - generated code. | |
15119 | |
15120 class TouchEventWrappingImplementation extends UIEventWrappingImplementation imp
lements TouchEvent { | |
15121 TouchEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15122 | |
15123 bool get altKey() { return _ptr.altKey; } | |
15124 | |
15125 TouchList get changedTouches() { return LevelDom.wrapTouchList(_ptr.changedTou
ches); } | |
15126 | |
15127 bool get ctrlKey() { return _ptr.ctrlKey; } | |
15128 | |
15129 bool get metaKey() { return _ptr.metaKey; } | |
15130 | |
15131 bool get shiftKey() { return _ptr.shiftKey; } | |
15132 | |
15133 TouchList get targetTouches() { return LevelDom.wrapTouchList(_ptr.targetTouch
es); } | |
15134 | |
15135 TouchList get touches() { return LevelDom.wrapTouchList(_ptr.touches); } | |
15136 | |
15137 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan
gedTouches, String type, Window view, int screenX, int screenY, int clientX, int
clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) { | |
15138 _ptr.initTouchEvent(LevelDom.unwrap(touches), LevelDom.unwrap(targetTouches)
, LevelDom.unwrap(changedTouches), type, LevelDom.unwrap(view), screenX, screenY
, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey); | |
15139 return; | |
15140 } | |
15141 } | |
15142 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15143 // for details. All rights reserved. Use of this source code is governed by a | |
15144 // BSD-style license that can be found in the LICENSE file. | |
15145 | |
15146 // WARNING: Do not edit - generated code. | |
15147 | |
15148 class TouchListWrappingImplementation extends DOMWrapperBase implements TouchLis
t { | |
15149 TouchListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15150 | |
15151 int get length() { return _ptr.length; } | |
15152 | |
15153 Touch operator[](int index) { | |
15154 return item(index); | |
15155 } | |
15156 | |
15157 void operator[]=(int index, Touch value) { | |
15158 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
15159 } | |
15160 | |
15161 void add(Touch value) { | |
15162 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
15163 } | |
15164 | |
15165 void addLast(Touch value) { | |
15166 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
15167 } | |
15168 | |
15169 void addAll(Collection<Touch> collection) { | |
15170 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
15171 } | |
15172 | |
15173 void sort(int compare(Touch a, Touch b)) { | |
15174 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
15175 } | |
15176 | |
15177 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
15178 throw new UnsupportedOperationException("This object is immutable."); | |
15179 } | |
15180 | |
15181 int indexOf(Touch element, int startIndex) { | |
15182 return _Lists.indexOf(this, element, startIndex, this.length); | |
15183 } | |
15184 | |
15185 int lastIndexOf(Touch element, int startIndex) { | |
15186 return _Lists.lastIndexOf(this, element, startIndex); | |
15187 } | |
15188 | |
15189 int clear() { | |
15190 throw new UnsupportedOperationException("Cannot clear immutable List."); | |
15191 } | |
15192 | |
15193 Touch removeLast() { | |
15194 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
15195 } | |
15196 | |
15197 Touch last() { | |
15198 return this[length - 1]; | |
15199 } | |
15200 | |
15201 void forEach(void f(Touch element)) { | |
15202 _Collections.forEach(this, f); | |
15203 } | |
15204 | |
15205 Collection<Touch> filter(bool f(Touch element)) { | |
15206 return _Collections.filter(this, new List<Touch>(), f); | |
15207 } | |
15208 | |
15209 bool every(bool f(Touch element)) { | |
15210 return _Collections.every(this, f); | |
15211 } | |
15212 | |
15213 bool some(bool f(Touch element)) { | |
15214 return _Collections.some(this, f); | |
15215 } | |
15216 | |
15217 void setRange(int start, int length, List<Touch> from, [int startFrom]) { | |
15218 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
15219 } | |
15220 | |
15221 void removeRange(int start, int length) { | |
15222 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
15223 } | |
15224 | |
15225 void insertRange(int start, int length, [Touch initialValue]) { | |
15226 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
15227 } | |
15228 | |
15229 List<Touch> getRange(int start, int length) { | |
15230 throw new NotImplementedException(); | |
15231 } | |
15232 | |
15233 bool isEmpty() { | |
15234 return length == 0; | |
15235 } | |
15236 | |
15237 Iterator<Touch> iterator() { | |
15238 return new _FixedSizeListIterator<Touch>(this); | |
15239 } | |
15240 | |
15241 Touch item(int index) { | |
15242 return LevelDom.wrapTouch(_ptr.item(index)); | |
15243 } | |
15244 } | |
15245 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15246 // for details. All rights reserved. Use of this source code is governed by a | |
15247 // BSD-style license that can be found in the LICENSE file. | |
15248 | |
15249 // WARNING: Do not edit - generated code. | |
15250 | |
15251 class TouchWrappingImplementation extends DOMWrapperBase implements Touch { | |
15252 TouchWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15253 | |
15254 int get clientX() { return _ptr.clientX; } | |
15255 | |
15256 int get clientY() { return _ptr.clientY; } | |
15257 | |
15258 int get identifier() { return _ptr.identifier; } | |
15259 | |
15260 int get pageX() { return _ptr.pageX; } | |
15261 | |
15262 int get pageY() { return _ptr.pageY; } | |
15263 | |
15264 int get screenX() { return _ptr.screenX; } | |
15265 | |
15266 int get screenY() { return _ptr.screenY; } | |
15267 | |
15268 EventTarget get target() { return LevelDom.wrapEventTarget(_ptr.target); } | |
15269 | |
15270 num get webkitForce() { return _ptr.webkitForce; } | |
15271 | |
15272 int get webkitRadiusX() { return _ptr.webkitRadiusX; } | |
15273 | |
15274 int get webkitRadiusY() { return _ptr.webkitRadiusY; } | |
15275 | |
15276 num get webkitRotationAngle() { return _ptr.webkitRotationAngle; } | |
15277 } | |
15278 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15279 // for details. All rights reserved. Use of this source code is governed by a | |
15280 // BSD-style license that can be found in the LICENSE file. | |
15281 | |
15282 // WARNING: Do not edit - generated code. | |
15283 | |
15284 class TrackElementWrappingImplementation extends ElementWrappingImplementation i
mplements TrackElement { | |
15285 TrackElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15286 | |
15287 bool get isDefault() { return _ptr.isDefault; } | |
15288 | |
15289 void set isDefault(bool value) { _ptr.isDefault = value; } | |
15290 | |
15291 String get kind() { return _ptr.kind; } | |
15292 | |
15293 void set kind(String value) { _ptr.kind = value; } | |
15294 | |
15295 String get label() { return _ptr.label; } | |
15296 | |
15297 void set label(String value) { _ptr.label = value; } | |
15298 | |
15299 String get src() { return _ptr.src; } | |
15300 | |
15301 void set src(String value) { _ptr.src = value; } | |
15302 | |
15303 String get srclang() { return _ptr.srclang; } | |
15304 | |
15305 void set srclang(String value) { _ptr.srclang = value; } | |
15306 } | |
15307 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15308 // for details. All rights reserved. Use of this source code is governed by a | |
15309 // BSD-style license that can be found in the LICENSE file. | |
15310 | |
15311 // WARNING: Do not edit - generated code. | |
15312 | |
15313 class TransitionEventWrappingImplementation extends EventWrappingImplementation
implements TransitionEvent { | |
15314 TransitionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15315 | |
15316 num get elapsedTime() { return _ptr.elapsedTime; } | |
15317 | |
15318 String get propertyName() { return _ptr.propertyName; } | |
15319 | |
15320 void initWebKitTransitionEvent(String typeArg, bool canBubbleArg, bool cancela
bleArg, String propertyNameArg, num elapsedTimeArg) { | |
15321 _ptr.initWebKitTransitionEvent(typeArg, canBubbleArg, cancelableArg, propert
yNameArg, elapsedTimeArg); | |
15322 return; | |
15323 } | |
15324 } | |
15325 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15326 // for details. All rights reserved. Use of this source code is governed by a | |
15327 // BSD-style license that can be found in the LICENSE file. | |
15328 | |
15329 // WARNING: Do not edit - generated code. | |
15330 | |
15331 class UIEventWrappingImplementation extends EventWrappingImplementation implemen
ts UIEvent { | |
15332 UIEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15333 | |
15334 int get charCode() { return _ptr.charCode; } | |
15335 | |
15336 int get detail() { return _ptr.detail; } | |
15337 | |
15338 int get keyCode() { return _ptr.keyCode; } | |
15339 | |
15340 int get layerX() { return _ptr.layerX; } | |
15341 | |
15342 int get layerY() { return _ptr.layerY; } | |
15343 | |
15344 int get pageX() { return _ptr.pageX; } | |
15345 | |
15346 int get pageY() { return _ptr.pageY; } | |
15347 | |
15348 Window get view() { return LevelDom.wrapWindow(_ptr.view); } | |
15349 | |
15350 int get which() { return _ptr.which; } | |
15351 | |
15352 void initUIEvent(String type, bool canBubble, bool cancelable, Window view, in
t detail) { | |
15353 _ptr.initUIEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail)
; | |
15354 return; | |
15355 } | |
15356 } | |
15357 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15358 // for details. All rights reserved. Use of this source code is governed by a | |
15359 // BSD-style license that can be found in the LICENSE file. | |
15360 | |
15361 // WARNING: Do not edit - generated code. | |
15362 | |
15363 class UListElementWrappingImplementation extends ElementWrappingImplementation i
mplements UListElement { | |
15364 UListElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15365 | |
15366 bool get compact() { return _ptr.compact; } | |
15367 | |
15368 void set compact(bool value) { _ptr.compact = value; } | |
15369 | |
15370 String get type() { return _ptr.type; } | |
15371 | |
15372 void set type(String value) { _ptr.type = value; } | |
15373 } | |
15374 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15375 // for details. All rights reserved. Use of this source code is governed by a | |
15376 // BSD-style license that can be found in the LICENSE file. | |
15377 | |
15378 // WARNING: Do not edit - generated code. | |
15379 | |
15380 class Uint16ArrayWrappingImplementation extends ArrayBufferViewWrappingImplement
ation implements Uint16Array { | |
15381 Uint16ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15382 | |
15383 int get length() { return _ptr.length; } | |
15384 | |
15385 Uint16Array subarray(int start, [int end = null]) { | |
15386 if (end === null) { | |
15387 return LevelDom.wrapUint16Array(_ptr.subarray(start)); | |
15388 } else { | |
15389 return LevelDom.wrapUint16Array(_ptr.subarray(start, end)); | |
15390 } | |
15391 } | |
15392 } | |
15393 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15394 // for details. All rights reserved. Use of this source code is governed by a | |
15395 // BSD-style license that can be found in the LICENSE file. | |
15396 | |
15397 // WARNING: Do not edit - generated code. | |
15398 | |
15399 class Uint32ArrayWrappingImplementation extends ArrayBufferViewWrappingImplement
ation implements Uint32Array { | |
15400 Uint32ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15401 | |
15402 int get length() { return _ptr.length; } | |
15403 | |
15404 Uint32Array subarray(int start, [int end = null]) { | |
15405 if (end === null) { | |
15406 return LevelDom.wrapUint32Array(_ptr.subarray(start)); | |
15407 } else { | |
15408 return LevelDom.wrapUint32Array(_ptr.subarray(start, end)); | |
15409 } | |
15410 } | |
15411 } | |
15412 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15413 // for details. All rights reserved. Use of this source code is governed by a | |
15414 // BSD-style license that can be found in the LICENSE file. | |
15415 | |
15416 // WARNING: Do not edit - generated code. | |
15417 | |
15418 class Uint8ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementa
tion implements Uint8Array { | |
15419 Uint8ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15420 | |
15421 int get length() { return _ptr.length; } | |
15422 | |
15423 Uint8Array subarray(int start, [int end = null]) { | |
15424 if (end === null) { | |
15425 return LevelDom.wrapUint8Array(_ptr.subarray(start)); | |
15426 } else { | |
15427 return LevelDom.wrapUint8Array(_ptr.subarray(start, end)); | |
15428 } | |
15429 } | |
15430 } | |
15431 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15432 // for details. All rights reserved. Use of this source code is governed by a | |
15433 // BSD-style license that can be found in the LICENSE file. | |
15434 | |
15435 // WARNING: Do not edit - generated code. | |
15436 | |
15437 class UnknownElementWrappingImplementation extends ElementWrappingImplementation
implements UnknownElement { | |
15438 UnknownElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15439 } | |
15440 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15441 // for details. All rights reserved. Use of this source code is governed by a | |
15442 // BSD-style license that can be found in the LICENSE file. | |
15443 | |
15444 // WARNING: Do not edit - generated code. | |
15445 | |
15446 class ValidityStateWrappingImplementation extends DOMWrapperBase implements Vali
dityState { | |
15447 ValidityStateWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15448 | |
15449 bool get customError() { return _ptr.customError; } | |
15450 | |
15451 bool get patternMismatch() { return _ptr.patternMismatch; } | |
15452 | |
15453 bool get rangeOverflow() { return _ptr.rangeOverflow; } | |
15454 | |
15455 bool get rangeUnderflow() { return _ptr.rangeUnderflow; } | |
15456 | |
15457 bool get stepMismatch() { return _ptr.stepMismatch; } | |
15458 | |
15459 bool get tooLong() { return _ptr.tooLong; } | |
15460 | |
15461 bool get typeMismatch() { return _ptr.typeMismatch; } | |
15462 | |
15463 bool get valid() { return _ptr.valid; } | |
15464 | |
15465 bool get valueMissing() { return _ptr.valueMissing; } | |
15466 } | |
15467 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15468 // for details. All rights reserved. Use of this source code is governed by a | |
15469 // BSD-style license that can be found in the LICENSE file. | |
15470 | |
15471 // WARNING: Do not edit - generated code. | |
15472 | |
15473 class VideoElementWrappingImplementation extends MediaElementWrappingImplementat
ion implements VideoElement { | |
15474 VideoElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15475 | |
15476 int get height() { return _ptr.height; } | |
15477 | |
15478 void set height(int value) { _ptr.height = value; } | |
15479 | |
15480 String get poster() { return _ptr.poster; } | |
15481 | |
15482 void set poster(String value) { _ptr.poster = value; } | |
15483 | |
15484 int get videoHeight() { return _ptr.videoHeight; } | |
15485 | |
15486 int get videoWidth() { return _ptr.videoWidth; } | |
15487 | |
15488 int get webkitDecodedFrameCount() { return _ptr.webkitDecodedFrameCount; } | |
15489 | |
15490 bool get webkitDisplayingFullscreen() { return _ptr.webkitDisplayingFullscreen
; } | |
15491 | |
15492 int get webkitDroppedFrameCount() { return _ptr.webkitDroppedFrameCount; } | |
15493 | |
15494 bool get webkitSupportsFullscreen() { return _ptr.webkitSupportsFullscreen; } | |
15495 | |
15496 int get width() { return _ptr.width; } | |
15497 | |
15498 void set width(int value) { _ptr.width = value; } | |
15499 | |
15500 void webkitEnterFullScreen() { | |
15501 _ptr.webkitEnterFullScreen(); | |
15502 return; | |
15503 } | |
15504 | |
15505 void webkitEnterFullscreen() { | |
15506 _ptr.webkitEnterFullscreen(); | |
15507 return; | |
15508 } | |
15509 | |
15510 void webkitExitFullScreen() { | |
15511 _ptr.webkitExitFullScreen(); | |
15512 return; | |
15513 } | |
15514 | |
15515 void webkitExitFullscreen() { | |
15516 _ptr.webkitExitFullscreen(); | |
15517 return; | |
15518 } | |
15519 } | |
15520 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15521 // for details. All rights reserved. Use of this source code is governed by a | |
15522 // BSD-style license that can be found in the LICENSE file. | |
15523 | |
15524 // WARNING: Do not edit - generated code. | |
15525 | |
15526 class VoidCallbackWrappingImplementation extends DOMWrapperBase implements VoidC
allback { | |
15527 VoidCallbackWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15528 | |
15529 void handleEvent() { | |
15530 _ptr.handleEvent(); | |
15531 return; | |
15532 } | |
15533 } | |
15534 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15535 // for details. All rights reserved. Use of this source code is governed by a | |
15536 // BSD-style license that can be found in the LICENSE file. | |
15537 | |
15538 // WARNING: Do not edit - generated code. | |
15539 | |
15540 class WebGLActiveInfoWrappingImplementation extends DOMWrapperBase implements We
bGLActiveInfo { | |
15541 WebGLActiveInfoWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15542 | |
15543 String get name() { return _ptr.name; } | |
15544 | |
15545 int get size() { return _ptr.size; } | |
15546 | |
15547 int get type() { return _ptr.type; } | |
15548 } | |
15549 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15550 // for details. All rights reserved. Use of this source code is governed by a | |
15551 // BSD-style license that can be found in the LICENSE file. | |
15552 | |
15553 // WARNING: Do not edit - generated code. | |
15554 | |
15555 class WebGLBufferWrappingImplementation extends DOMWrapperBase implements WebGLB
uffer { | |
15556 WebGLBufferWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15557 } | |
15558 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15559 // for details. All rights reserved. Use of this source code is governed by a | |
15560 // BSD-style license that can be found in the LICENSE file. | |
15561 | |
15562 // WARNING: Do not edit - generated code. | |
15563 | |
15564 class WebGLContextAttributesWrappingImplementation extends DOMWrapperBase implem
ents WebGLContextAttributes { | |
15565 WebGLContextAttributesWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15566 | |
15567 bool get alpha() { return _ptr.alpha; } | |
15568 | |
15569 void set alpha(bool value) { _ptr.alpha = value; } | |
15570 | |
15571 bool get antialias() { return _ptr.antialias; } | |
15572 | |
15573 void set antialias(bool value) { _ptr.antialias = value; } | |
15574 | |
15575 bool get depth() { return _ptr.depth; } | |
15576 | |
15577 void set depth(bool value) { _ptr.depth = value; } | |
15578 | |
15579 bool get premultipliedAlpha() { return _ptr.premultipliedAlpha; } | |
15580 | |
15581 void set premultipliedAlpha(bool value) { _ptr.premultipliedAlpha = value; } | |
15582 | |
15583 bool get preserveDrawingBuffer() { return _ptr.preserveDrawingBuffer; } | |
15584 | |
15585 void set preserveDrawingBuffer(bool value) { _ptr.preserveDrawingBuffer = valu
e; } | |
15586 | |
15587 bool get stencil() { return _ptr.stencil; } | |
15588 | |
15589 void set stencil(bool value) { _ptr.stencil = value; } | |
15590 } | |
15591 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15592 // for details. All rights reserved. Use of this source code is governed by a | |
15593 // BSD-style license that can be found in the LICENSE file. | |
15594 | |
15595 // WARNING: Do not edit - generated code. | |
15596 | |
15597 class WebGLContextEventWrappingImplementation extends EventWrappingImplementatio
n implements WebGLContextEvent { | |
15598 WebGLContextEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15599 | |
15600 String get statusMessage() { return _ptr.statusMessage; } | |
15601 } | |
15602 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15603 // for details. All rights reserved. Use of this source code is governed by a | |
15604 // BSD-style license that can be found in the LICENSE file. | |
15605 | |
15606 // WARNING: Do not edit - generated code. | |
15607 | |
15608 class WebGLFramebufferWrappingImplementation extends DOMWrapperBase implements W
ebGLFramebuffer { | |
15609 WebGLFramebufferWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15610 } | |
15611 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15612 // for details. All rights reserved. Use of this source code is governed by a | |
15613 // BSD-style license that can be found in the LICENSE file. | |
15614 | |
15615 // WARNING: Do not edit - generated code. | |
15616 | |
15617 class WebGLProgramWrappingImplementation extends DOMWrapperBase implements WebGL
Program { | |
15618 WebGLProgramWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15619 } | |
15620 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15621 // for details. All rights reserved. Use of this source code is governed by a | |
15622 // BSD-style license that can be found in the LICENSE file. | |
15623 | |
15624 // WARNING: Do not edit - generated code. | |
15625 | |
15626 class WebGLRenderbufferWrappingImplementation extends DOMWrapperBase implements
WebGLRenderbuffer { | |
15627 WebGLRenderbufferWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15628 } | |
15629 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
15630 // for details. All rights reserved. Use of this source code is governed by a | |
15631 // BSD-style license that can be found in the LICENSE file. | |
15632 | |
15633 // WARNING: Do not edit - generated code. | |
15634 | |
15635 class WebGLRenderingContextWrappingImplementation extends CanvasRenderingContext
WrappingImplementation implements WebGLRenderingContext { | |
15636 WebGLRenderingContextWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
15637 | |
15638 int get drawingBufferHeight() { return _ptr.drawingBufferHeight; } | |
15639 | |
15640 int get drawingBufferWidth() { return _ptr.drawingBufferWidth; } | |
15641 | |
15642 void activeTexture(int texture) { | |
15643 _ptr.activeTexture(texture); | |
15644 return; | |
15645 } | |
15646 | |
15647 void attachShader(WebGLProgram program, WebGLShader shader) { | |
15648 _ptr.attachShader(LevelDom.unwrap(program), LevelDom.unwrap(shader)); | |
15649 return; | |
15650 } | |
15651 | |
15652 void bindAttribLocation(WebGLProgram program, int index, String name) { | |
15653 _ptr.bindAttribLocation(LevelDom.unwrap(program), index, name); | |
15654 return; | |
15655 } | |
15656 | |
15657 void bindBuffer(int target, WebGLBuffer buffer) { | |
15658 _ptr.bindBuffer(target, LevelDom.unwrap(buffer)); | |
15659 return; | |
15660 } | |
15661 | |
15662 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) { | |
15663 _ptr.bindFramebuffer(target, LevelDom.unwrap(framebuffer)); | |
15664 return; | |
15665 } | |
15666 | |
15667 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) { | |
15668 _ptr.bindRenderbuffer(target, LevelDom.unwrap(renderbuffer)); | |
15669 return; | |
15670 } | |
15671 | |
15672 void bindTexture(int target, WebGLTexture texture) { | |
15673 _ptr.bindTexture(target, LevelDom.unwrap(texture)); | |
15674 return; | |
15675 } | |
15676 | |
15677 void blendColor(num red, num green, num blue, num alpha) { | |
15678 _ptr.blendColor(red, green, blue, alpha); | |
15679 return; | |
15680 } | |
15681 | |
15682 void blendEquation(int mode) { | |
15683 _ptr.blendEquation(mode); | |
15684 return; | |
15685 } | |
15686 | |
15687 void blendEquationSeparate(int modeRGB, int modeAlpha) { | |
15688 _ptr.blendEquationSeparate(modeRGB, modeAlpha); | |
15689 return; | |
15690 } | |
15691 | |
15692 void blendFunc(int sfactor, int dfactor) { | |
15693 _ptr.blendFunc(sfactor, dfactor); | |
15694 return; | |
15695 } | |
15696 | |
15697 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) { | |
15698 _ptr.blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha); | |
15699 return; | |
15700 } | |
15701 | |
15702 void bufferData(int target, var data_OR_size, int usage) { | |
15703 if (data_OR_size is ArrayBuffer) { | |
15704 _ptr.bufferData(target, LevelDom.unwrap(data_OR_size), usage); | |
15705 return; | |
15706 } else { | |
15707 if (data_OR_size is ArrayBufferView) { | |
15708 _ptr.bufferData(target, LevelDom.unwrap(data_OR_size), usage); | |
15709 return; | |
15710 } else { | |
15711 if (data_OR_size is int) { | |
15712 _ptr.bufferData(target, LevelDom.unwrap(data_OR_size), usage); | |
15713 return; | |
15714 } | |
15715 } | |
15716 } | |
15717 throw "Incorrect number or type of arguments"; | |
15718 } | |
15719 | |
15720 void bufferSubData(int target, int offset, var data) { | |
15721 if (data is ArrayBuffer) { | |
15722 _ptr.bufferSubData(target, offset, LevelDom.unwrap(data)); | |
15723 return; | |
15724 } else { | |
15725 if (data is ArrayBufferView) { | |
15726 _ptr.bufferSubData(target, offset, LevelDom.unwrap(data)); | |
15727 return; | |
15728 } | |
15729 } | |
15730 throw "Incorrect number or type of arguments"; | |
15731 } | |
15732 | |
15733 int checkFramebufferStatus(int target) { | |
15734 return _ptr.checkFramebufferStatus(target); | |
15735 } | |
15736 | |
15737 void clear(int mask) { | |
15738 _ptr.clear(mask); | |
15739 return; | |
15740 } | |
15741 | |
15742 void clearColor(num red, num green, num blue, num alpha) { | |
15743 _ptr.clearColor(red, green, blue, alpha); | |
15744 return; | |
15745 } | |
15746 | |
15747 void clearDepth(num depth) { | |
15748 _ptr.clearDepth(depth); | |
15749 return; | |
15750 } | |
15751 | |
15752 void clearStencil(int s) { | |
15753 _ptr.clearStencil(s); | |
15754 return; | |
15755 } | |
15756 | |
15757 void colorMask(bool red, bool green, bool blue, bool alpha) { | |
15758 _ptr.colorMask(red, green, blue, alpha); | |
15759 return; | |
15760 } | |
15761 | |
15762 void compileShader(WebGLShader shader) { | |
15763 _ptr.compileShader(LevelDom.unwrap(shader)); | |
15764 return; | |
15765 } | |
15766 | |
15767 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) { | |
15768 _ptr.copyTexImage2D(target, level, internalformat, x, y, width, height, bord
er); | |
15769 return; | |
15770 } | |
15771 | |
15772 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) { | |
15773 _ptr.copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
; | |
15774 return; | |
15775 } | |
15776 | |
15777 WebGLBuffer createBuffer() { | |
15778 return LevelDom.wrapWebGLBuffer(_ptr.createBuffer()); | |
15779 } | |
15780 | |
15781 WebGLFramebuffer createFramebuffer() { | |
15782 return LevelDom.wrapWebGLFramebuffer(_ptr.createFramebuffer()); | |
15783 } | |
15784 | |
15785 WebGLProgram createProgram() { | |
15786 return LevelDom.wrapWebGLProgram(_ptr.createProgram()); | |
15787 } | |
15788 | |
15789 WebGLRenderbuffer createRenderbuffer() { | |
15790 return LevelDom.wrapWebGLRenderbuffer(_ptr.createRenderbuffer()); | |
15791 } | |
15792 | |
15793 WebGLShader createShader(int type) { | |
15794 return LevelDom.wrapWebGLShader(_ptr.createShader(type)); | |
15795 } | |
15796 | |
15797 WebGLTexture createTexture() { | |
15798 return LevelDom.wrapWebGLTexture(_ptr.createTexture()); | |
15799 } | |
15800 | |
15801 void cullFace(int mode) { | |
15802 _ptr.cullFace(mode); | |
15803 return; | |
15804 } | |
15805 | |
15806 void deleteBuffer(WebGLBuffer buffer) { | |
15807 _ptr.deleteBuffer(LevelDom.unwrap(buffer)); | |
15808 return; | |
15809 } | |
15810 | |
15811 void deleteFramebuffer(WebGLFramebuffer framebuffer) { | |
15812 _ptr.deleteFramebuffer(LevelDom.unwrap(framebuffer)); | |
15813 return; | |
15814 } | |
15815 | |
15816 void deleteProgram(WebGLProgram program) { | |
15817 _ptr.deleteProgram(LevelDom.unwrap(program)); | |
15818 return; | |
15819 } | |
15820 | |
15821 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) { | |
15822 _ptr.deleteRenderbuffer(LevelDom.unwrap(renderbuffer)); | |
15823 return; | |
15824 } | |
15825 | |
15826 void deleteShader(WebGLShader shader) { | |
15827 _ptr.deleteShader(LevelDom.unwrap(shader)); | |
15828 return; | |
15829 } | |
15830 | |
15831 void deleteTexture(WebGLTexture texture) { | |
15832 _ptr.deleteTexture(LevelDom.unwrap(texture)); | |
15833 return; | |
15834 } | |
15835 | |
15836 void depthFunc(int func) { | |
15837 _ptr.depthFunc(func); | |
15838 return; | |
15839 } | |
15840 | |
15841 void depthMask(bool flag) { | |
15842 _ptr.depthMask(flag); | |
15843 return; | |
15844 } | |
15845 | |
15846 void depthRange(num zNear, num zFar) { | |
15847 _ptr.depthRange(zNear, zFar); | |
15848 return; | |
15849 } | |
15850 | |
15851 void detachShader(WebGLProgram program, WebGLShader shader) { | |
15852 _ptr.detachShader(LevelDom.unwrap(program), LevelDom.unwrap(shader)); | |
15853 return; | |
15854 } | |
15855 | |
15856 void disable(int cap) { | |
15857 _ptr.disable(cap); | |
15858 return; | |
15859 } | |
15860 | |
15861 void disableVertexAttribArray(int index) { | |
15862 _ptr.disableVertexAttribArray(index); | |
15863 return; | |
15864 } | |
15865 | |
15866 void drawArrays(int mode, int first, int count) { | |
15867 _ptr.drawArrays(mode, first, count); | |
15868 return; | |
15869 } | |
15870 | |
15871 void drawElements(int mode, int count, int type, int offset) { | |
15872 _ptr.drawElements(mode, count, type, offset); | |
15873 return; | |
15874 } | |
15875 | |
15876 void enable(int cap) { | |
15877 _ptr.enable(cap); | |
15878 return; | |
15879 } | |
15880 | |
15881 void enableVertexAttribArray(int index) { | |
15882 _ptr.enableVertexAttribArray(index); | |
15883 return; | |
15884 } | |
15885 | |
15886 void finish() { | |
15887 _ptr.finish(); | |
15888 return; | |
15889 } | |
15890 | |
15891 void flush() { | |
15892 _ptr.flush(); | |
15893 return; | |
15894 } | |
15895 | |
15896 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, WebGLRenderbuffer renderbuffer) { | |
15897 _ptr.framebufferRenderbuffer(target, attachment, renderbuffertarget, LevelDo
m.unwrap(renderbuffer)); | |
15898 return; | |
15899 } | |
15900 | |
15901 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level) { | |
15902 _ptr.framebufferTexture2D(target, attachment, textarget, LevelDom.unwrap(tex
ture), level); | |
15903 return; | |
15904 } | |
15905 | |
15906 void frontFace(int mode) { | |
15907 _ptr.frontFace(mode); | |
15908 return; | |
15909 } | |
15910 | |
15911 void generateMipmap(int target) { | |
15912 _ptr.generateMipmap(target); | |
15913 return; | |
15914 } | |
15915 | |
15916 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) { | |
15917 return LevelDom.wrapWebGLActiveInfo(_ptr.getActiveAttrib(LevelDom.unwrap(pro
gram), index)); | |
15918 } | |
15919 | |
15920 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) { | |
15921 return LevelDom.wrapWebGLActiveInfo(_ptr.getActiveUniform(LevelDom.unwrap(pr
ogram), index)); | |
15922 } | |
15923 | |
15924 void getAttachedShaders(WebGLProgram program) { | |
15925 _ptr.getAttachedShaders(LevelDom.unwrap(program)); | |
15926 return; | |
15927 } | |
15928 | |
15929 int getAttribLocation(WebGLProgram program, String name) { | |
15930 return _ptr.getAttribLocation(LevelDom.unwrap(program), name); | |
15931 } | |
15932 | |
15933 void getBufferParameter() { | |
15934 _ptr.getBufferParameter(); | |
15935 return; | |
15936 } | |
15937 | |
15938 WebGLContextAttributes getContextAttributes() { | |
15939 return LevelDom.wrapWebGLContextAttributes(_ptr.getContextAttributes()); | |
15940 } | |
15941 | |
15942 int getError() { | |
15943 return _ptr.getError(); | |
15944 } | |
15945 | |
15946 void getExtension(String name) { | |
15947 _ptr.getExtension(name); | |
15948 return; | |
15949 } | |
15950 | |
15951 void getFramebufferAttachmentParameter() { | |
15952 _ptr.getFramebufferAttachmentParameter(); | |
15953 return; | |
15954 } | |
15955 | |
15956 void getParameter() { | |
15957 _ptr.getParameter(); | |
15958 return; | |
15959 } | |
15960 | |
15961 String getProgramInfoLog(WebGLProgram program) { | |
15962 return _ptr.getProgramInfoLog(LevelDom.unwrap(program)); | |
15963 } | |
15964 | |
15965 void getProgramParameter() { | |
15966 _ptr.getProgramParameter(); | |
15967 return; | |
15968 } | |
15969 | |
15970 void getRenderbufferParameter() { | |
15971 _ptr.getRenderbufferParameter(); | |
15972 return; | |
15973 } | |
15974 | |
15975 String getShaderInfoLog(WebGLShader shader) { | |
15976 return _ptr.getShaderInfoLog(LevelDom.unwrap(shader)); | |
15977 } | |
15978 | |
15979 void getShaderParameter() { | |
15980 _ptr.getShaderParameter(); | |
15981 return; | |
15982 } | |
15983 | |
15984 String getShaderSource(WebGLShader shader) { | |
15985 return _ptr.getShaderSource(LevelDom.unwrap(shader)); | |
15986 } | |
15987 | |
15988 void getSupportedExtensions() { | |
15989 _ptr.getSupportedExtensions(); | |
15990 return; | |
15991 } | |
15992 | |
15993 void getTexParameter() { | |
15994 _ptr.getTexParameter(); | |
15995 return; | |
15996 } | |
15997 | |
15998 void getUniform() { | |
15999 _ptr.getUniform(); | |
16000 return; | |
16001 } | |
16002 | |
16003 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) { | |
16004 return LevelDom.wrapWebGLUniformLocation(_ptr.getUniformLocation(LevelDom.un
wrap(program), name)); | |
16005 } | |
16006 | |
16007 void getVertexAttrib() { | |
16008 _ptr.getVertexAttrib(); | |
16009 return; | |
16010 } | |
16011 | |
16012 int getVertexAttribOffset(int index, int pname) { | |
16013 return _ptr.getVertexAttribOffset(index, pname); | |
16014 } | |
16015 | |
16016 void hint(int target, int mode) { | |
16017 _ptr.hint(target, mode); | |
16018 return; | |
16019 } | |
16020 | |
16021 bool isBuffer(WebGLBuffer buffer) { | |
16022 return _ptr.isBuffer(LevelDom.unwrap(buffer)); | |
16023 } | |
16024 | |
16025 bool isContextLost() { | |
16026 return _ptr.isContextLost(); | |
16027 } | |
16028 | |
16029 bool isEnabled(int cap) { | |
16030 return _ptr.isEnabled(cap); | |
16031 } | |
16032 | |
16033 bool isFramebuffer(WebGLFramebuffer framebuffer) { | |
16034 return _ptr.isFramebuffer(LevelDom.unwrap(framebuffer)); | |
16035 } | |
16036 | |
16037 bool isProgram(WebGLProgram program) { | |
16038 return _ptr.isProgram(LevelDom.unwrap(program)); | |
16039 } | |
16040 | |
16041 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) { | |
16042 return _ptr.isRenderbuffer(LevelDom.unwrap(renderbuffer)); | |
16043 } | |
16044 | |
16045 bool isShader(WebGLShader shader) { | |
16046 return _ptr.isShader(LevelDom.unwrap(shader)); | |
16047 } | |
16048 | |
16049 bool isTexture(WebGLTexture texture) { | |
16050 return _ptr.isTexture(LevelDom.unwrap(texture)); | |
16051 } | |
16052 | |
16053 void lineWidth(num width) { | |
16054 _ptr.lineWidth(width); | |
16055 return; | |
16056 } | |
16057 | |
16058 void linkProgram(WebGLProgram program) { | |
16059 _ptr.linkProgram(LevelDom.unwrap(program)); | |
16060 return; | |
16061 } | |
16062 | |
16063 void pixelStorei(int pname, int param) { | |
16064 _ptr.pixelStorei(pname, param); | |
16065 return; | |
16066 } | |
16067 | |
16068 void polygonOffset(num factor, num units) { | |
16069 _ptr.polygonOffset(factor, units); | |
16070 return; | |
16071 } | |
16072 | |
16073 void readPixels(int x, int y, int width, int height, int format, int type, Arr
ayBufferView pixels) { | |
16074 _ptr.readPixels(x, y, width, height, format, type, LevelDom.unwrap(pixels)); | |
16075 return; | |
16076 } | |
16077 | |
16078 void releaseShaderCompiler() { | |
16079 _ptr.releaseShaderCompiler(); | |
16080 return; | |
16081 } | |
16082 | |
16083 void renderbufferStorage(int target, int internalformat, int width, int height
) { | |
16084 _ptr.renderbufferStorage(target, internalformat, width, height); | |
16085 return; | |
16086 } | |
16087 | |
16088 void sampleCoverage(num value, bool invert) { | |
16089 _ptr.sampleCoverage(value, invert); | |
16090 return; | |
16091 } | |
16092 | |
16093 void scissor(int x, int y, int width, int height) { | |
16094 _ptr.scissor(x, y, width, height); | |
16095 return; | |
16096 } | |
16097 | |
16098 void shaderSource(WebGLShader shader, String string) { | |
16099 _ptr.shaderSource(LevelDom.unwrap(shader), string); | |
16100 return; | |
16101 } | |
16102 | |
16103 void stencilFunc(int func, int ref, int mask) { | |
16104 _ptr.stencilFunc(func, ref, mask); | |
16105 return; | |
16106 } | |
16107 | |
16108 void stencilFuncSeparate(int face, int func, int ref, int mask) { | |
16109 _ptr.stencilFuncSeparate(face, func, ref, mask); | |
16110 return; | |
16111 } | |
16112 | |
16113 void stencilMask(int mask) { | |
16114 _ptr.stencilMask(mask); | |
16115 return; | |
16116 } | |
16117 | |
16118 void stencilMaskSeparate(int face, int mask) { | |
16119 _ptr.stencilMaskSeparate(face, mask); | |
16120 return; | |
16121 } | |
16122 | |
16123 void stencilOp(int fail, int zfail, int zpass) { | |
16124 _ptr.stencilOp(fail, zfail, zpass); | |
16125 return; | |
16126 } | |
16127 | |
16128 void stencilOpSeparate(int face, int fail, int zfail, int zpass) { | |
16129 _ptr.stencilOpSeparate(face, fail, zfail, zpass); | |
16130 return; | |
16131 } | |
16132 | |
16133 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, var border_OR_canvas_OR_image_OR_pixels, [int format = nul
l, int type = null, ArrayBufferView pixels = null]) { | |
16134 if (border_OR_canvas_OR_image_OR_pixels is ImageData) { | |
16135 if (format === null) { | |
16136 if (type === null) { | |
16137 if (pixels === null) { | |
16138 _ptr.texImage2D(target, level, internalformat, format_OR_width, heig
ht_OR_type, LevelDom.unwrap(border_OR_canvas_OR_image_OR_pixels)); | |
16139 return; | |
16140 } | |
16141 } | |
16142 } | |
16143 } else { | |
16144 if (border_OR_canvas_OR_image_OR_pixels is ImageElement) { | |
16145 if (format === null) { | |
16146 if (type === null) { | |
16147 if (pixels === null) { | |
16148 _ptr.texImage2D(target, level, internalformat, format_OR_width, he
ight_OR_type, LevelDom.unwrap(border_OR_canvas_OR_image_OR_pixels)); | |
16149 return; | |
16150 } | |
16151 } | |
16152 } | |
16153 } else { | |
16154 if (border_OR_canvas_OR_image_OR_pixels is CanvasElement) { | |
16155 if (format === null) { | |
16156 if (type === null) { | |
16157 if (pixels === null) { | |
16158 _ptr.texImage2D(target, level, internalformat, format_OR_width,
height_OR_type, LevelDom.unwrap(border_OR_canvas_OR_image_OR_pixels)); | |
16159 return; | |
16160 } | |
16161 } | |
16162 } | |
16163 } else { | |
16164 if (border_OR_canvas_OR_image_OR_pixels is int) { | |
16165 _ptr.texImage2D(target, level, internalformat, format_OR_width, heig
ht_OR_type, LevelDom.unwrap(border_OR_canvas_OR_image_OR_pixels), format, type,
LevelDom.unwrap(pixels)); | |
16166 return; | |
16167 } | |
16168 } | |
16169 } | |
16170 } | |
16171 throw "Incorrect number or type of arguments"; | |
16172 } | |
16173 | |
16174 void texParameterf(int target, int pname, num param) { | |
16175 _ptr.texParameterf(target, pname, param); | |
16176 return; | |
16177 } | |
16178 | |
16179 void texParameteri(int target, int pname, int param) { | |
16180 _ptr.texParameteri(target, pname, param); | |
16181 return; | |
16182 } | |
16183 | |
16184 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, var canvas_OR_format_OR_image_OR_pixels, [int typ
e = null, ArrayBufferView pixels = null]) { | |
16185 if (canvas_OR_format_OR_image_OR_pixels is ImageData) { | |
16186 if (type === null) { | |
16187 if (pixels === null) { | |
16188 _ptr.texSubImage2D(target, level, xoffset, yoffset, format_OR_width, h
eight_OR_type, LevelDom.unwrap(canvas_OR_format_OR_image_OR_pixels)); | |
16189 return; | |
16190 } | |
16191 } | |
16192 } else { | |
16193 if (canvas_OR_format_OR_image_OR_pixels is ImageElement) { | |
16194 if (type === null) { | |
16195 if (pixels === null) { | |
16196 _ptr.texSubImage2D(target, level, xoffset, yoffset, format_OR_width,
height_OR_type, LevelDom.unwrap(canvas_OR_format_OR_image_OR_pixels)); | |
16197 return; | |
16198 } | |
16199 } | |
16200 } else { | |
16201 if (canvas_OR_format_OR_image_OR_pixels is CanvasElement) { | |
16202 if (type === null) { | |
16203 if (pixels === null) { | |
16204 _ptr.texSubImage2D(target, level, xoffset, yoffset, format_OR_widt
h, height_OR_type, LevelDom.unwrap(canvas_OR_format_OR_image_OR_pixels)); | |
16205 return; | |
16206 } | |
16207 } | |
16208 } else { | |
16209 if (canvas_OR_format_OR_image_OR_pixels is int) { | |
16210 _ptr.texSubImage2D(target, level, xoffset, yoffset, format_OR_width,
height_OR_type, LevelDom.unwrap(canvas_OR_format_OR_image_OR_pixels), type, Lev
elDom.unwrap(pixels)); | |
16211 return; | |
16212 } | |
16213 } | |
16214 } | |
16215 } | |
16216 throw "Incorrect number or type of arguments"; | |
16217 } | |
16218 | |
16219 void uniform1f(WebGLUniformLocation location, num x) { | |
16220 _ptr.uniform1f(LevelDom.unwrap(location), x); | |
16221 return; | |
16222 } | |
16223 | |
16224 void uniform1fv(WebGLUniformLocation location, Float32Array v) { | |
16225 _ptr.uniform1fv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
16226 return; | |
16227 } | |
16228 | |
16229 void uniform1i(WebGLUniformLocation location, int x) { | |
16230 _ptr.uniform1i(LevelDom.unwrap(location), x); | |
16231 return; | |
16232 } | |
16233 | |
16234 void uniform1iv(WebGLUniformLocation location, Int32Array v) { | |
16235 _ptr.uniform1iv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
16236 return; | |
16237 } | |
16238 | |
16239 void uniform2f(WebGLUniformLocation location, num x, num y) { | |
16240 _ptr.uniform2f(LevelDom.unwrap(location), x, y); | |
16241 return; | |
16242 } | |
16243 | |
16244 void uniform2fv(WebGLUniformLocation location, Float32Array v) { | |
16245 _ptr.uniform2fv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
16246 return; | |
16247 } | |
16248 | |
16249 void uniform2i(WebGLUniformLocation location, int x, int y) { | |
16250 _ptr.uniform2i(LevelDom.unwrap(location), x, y); | |
16251 return; | |
16252 } | |
16253 | |
16254 void uniform2iv(WebGLUniformLocation location, Int32Array v) { | |
16255 _ptr.uniform2iv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
16256 return; | |
16257 } | |
16258 | |
16259 void uniform3f(WebGLUniformLocation location, num x, num y, num z) { | |
16260 _ptr.uniform3f(LevelDom.unwrap(location), x, y, z); | |
16261 return; | |
16262 } | |
16263 | |
16264 void uniform3fv(WebGLUniformLocation location, Float32Array v) { | |
16265 _ptr.uniform3fv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
16266 return; | |
16267 } | |
16268 | |
16269 void uniform3i(WebGLUniformLocation location, int x, int y, int z) { | |
16270 _ptr.uniform3i(LevelDom.unwrap(location), x, y, z); | |
16271 return; | |
16272 } | |
16273 | |
16274 void uniform3iv(WebGLUniformLocation location, Int32Array v) { | |
16275 _ptr.uniform3iv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
16276 return; | |
16277 } | |
16278 | |
16279 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) { | |
16280 _ptr.uniform4f(LevelDom.unwrap(location), x, y, z, w); | |
16281 return; | |
16282 } | |
16283 | |
16284 void uniform4fv(WebGLUniformLocation location, Float32Array v) { | |
16285 _ptr.uniform4fv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
16286 return; | |
16287 } | |
16288 | |
16289 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) { | |
16290 _ptr.uniform4i(LevelDom.unwrap(location), x, y, z, w); | |
16291 return; | |
16292 } | |
16293 | |
16294 void uniform4iv(WebGLUniformLocation location, Int32Array v) { | |
16295 _ptr.uniform4iv(LevelDom.unwrap(location), LevelDom.unwrap(v)); | |
16296 return; | |
16297 } | |
16298 | |
16299 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) { | |
16300 _ptr.uniformMatrix2fv(LevelDom.unwrap(location), transpose, LevelDom.unwrap(
array)); | |
16301 return; | |
16302 } | |
16303 | |
16304 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) { | |
16305 _ptr.uniformMatrix3fv(LevelDom.unwrap(location), transpose, LevelDom.unwrap(
array)); | |
16306 return; | |
16307 } | |
16308 | |
16309 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array) { | |
16310 _ptr.uniformMatrix4fv(LevelDom.unwrap(location), transpose, LevelDom.unwrap(
array)); | |
16311 return; | |
16312 } | |
16313 | |
16314 void useProgram(WebGLProgram program) { | |
16315 _ptr.useProgram(LevelDom.unwrap(program)); | |
16316 return; | |
16317 } | |
16318 | |
16319 void validateProgram(WebGLProgram program) { | |
16320 _ptr.validateProgram(LevelDom.unwrap(program)); | |
16321 return; | |
16322 } | |
16323 | |
16324 void vertexAttrib1f(int indx, num x) { | |
16325 _ptr.vertexAttrib1f(indx, x); | |
16326 return; | |
16327 } | |
16328 | |
16329 void vertexAttrib1fv(int indx, Float32Array values) { | |
16330 _ptr.vertexAttrib1fv(indx, LevelDom.unwrap(values)); | |
16331 return; | |
16332 } | |
16333 | |
16334 void vertexAttrib2f(int indx, num x, num y) { | |
16335 _ptr.vertexAttrib2f(indx, x, y); | |
16336 return; | |
16337 } | |
16338 | |
16339 void vertexAttrib2fv(int indx, Float32Array values) { | |
16340 _ptr.vertexAttrib2fv(indx, LevelDom.unwrap(values)); | |
16341 return; | |
16342 } | |
16343 | |
16344 void vertexAttrib3f(int indx, num x, num y, num z) { | |
16345 _ptr.vertexAttrib3f(indx, x, y, z); | |
16346 return; | |
16347 } | |
16348 | |
16349 void vertexAttrib3fv(int indx, Float32Array values) { | |
16350 _ptr.vertexAttrib3fv(indx, LevelDom.unwrap(values)); | |
16351 return; | |
16352 } | |
16353 | |
16354 void vertexAttrib4f(int indx, num x, num y, num z, num w) { | |
16355 _ptr.vertexAttrib4f(indx, x, y, z, w); | |
16356 return; | |
16357 } | |
16358 | |
16359 void vertexAttrib4fv(int indx, Float32Array values) { | |
16360 _ptr.vertexAttrib4fv(indx, LevelDom.unwrap(values)); | |
16361 return; | |
16362 } | |
16363 | |
16364 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) { | |
16365 _ptr.vertexAttribPointer(indx, size, type, normalized, stride, offset); | |
16366 return; | |
16367 } | |
16368 | |
16369 void viewport(int x, int y, int width, int height) { | |
16370 _ptr.viewport(x, y, width, height); | |
16371 return; | |
16372 } | |
16373 } | |
16374 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
16375 // for details. All rights reserved. Use of this source code is governed by a | |
16376 // BSD-style license that can be found in the LICENSE file. | |
16377 | |
16378 // WARNING: Do not edit - generated code. | |
16379 | |
16380 class WebGLShaderWrappingImplementation extends DOMWrapperBase implements WebGLS
hader { | |
16381 WebGLShaderWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
16382 } | |
16383 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
16384 // for details. All rights reserved. Use of this source code is governed by a | |
16385 // BSD-style license that can be found in the LICENSE file. | |
16386 | |
16387 // WARNING: Do not edit - generated code. | |
16388 | |
16389 class WebGLTextureWrappingImplementation extends DOMWrapperBase implements WebGL
Texture { | |
16390 WebGLTextureWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
16391 } | |
16392 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
16393 // for details. All rights reserved. Use of this source code is governed by a | |
16394 // BSD-style license that can be found in the LICENSE file. | |
16395 | |
16396 // WARNING: Do not edit - generated code. | |
16397 | |
16398 class WebGLUniformLocationWrappingImplementation extends DOMWrapperBase implemen
ts WebGLUniformLocation { | |
16399 WebGLUniformLocationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
16400 } | |
16401 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
16402 // for details. All rights reserved. Use of this source code is governed by a | |
16403 // BSD-style license that can be found in the LICENSE file. | |
16404 | |
16405 // WARNING: Do not edit - generated code. | |
16406 | |
16407 class WebGLVertexArrayObjectOESWrappingImplementation extends DOMWrapperBase imp
lements WebGLVertexArrayObjectOES { | |
16408 WebGLVertexArrayObjectOESWrappingImplementation._wrap(ptr) : super._wrap(ptr)
{} | |
16409 } | |
16410 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
16411 // for details. All rights reserved. Use of this source code is governed by a | |
16412 // BSD-style license that can be found in the LICENSE file. | |
16413 | |
16414 // WARNING: Do not edit - generated code. | |
16415 | |
16416 class WheelEventWrappingImplementation extends UIEventWrappingImplementation imp
lements WheelEvent { | |
16417 WheelEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
16418 | |
16419 bool get altKey() { return _ptr.altKey; } | |
16420 | |
16421 int get clientX() { return _ptr.clientX; } | |
16422 | |
16423 int get clientY() { return _ptr.clientY; } | |
16424 | |
16425 bool get ctrlKey() { return _ptr.ctrlKey; } | |
16426 | |
16427 bool get metaKey() { return _ptr.metaKey; } | |
16428 | |
16429 int get offsetX() { return _ptr.offsetX; } | |
16430 | |
16431 int get offsetY() { return _ptr.offsetY; } | |
16432 | |
16433 int get screenX() { return _ptr.screenX; } | |
16434 | |
16435 int get screenY() { return _ptr.screenY; } | |
16436 | |
16437 bool get shiftKey() { return _ptr.shiftKey; } | |
16438 | |
16439 int get wheelDelta() { return _ptr.wheelDelta; } | |
16440 | |
16441 int get wheelDeltaX() { return _ptr.wheelDeltaX; } | |
16442 | |
16443 int get wheelDeltaY() { return _ptr.wheelDeltaY; } | |
16444 | |
16445 int get x() { return _ptr.x; } | |
16446 | |
16447 int get y() { return _ptr.y; } | |
16448 | |
16449 void initWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX
, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKe
y, bool metaKey) { | |
16450 _ptr.initWheelEvent(wheelDeltaX, wheelDeltaY, LevelDom.unwrap(view), screenX
, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey); | |
16451 return; | |
16452 } | |
16453 } | |
16454 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
16455 // for details. All rights reserved. Use of this source code is governed by a | |
16456 // BSD-style license that can be found in the LICENSE file. | |
16457 | |
16458 // WARNING: Do not edit - generated code. | |
16459 | |
16460 class XMLHttpRequestExceptionWrappingImplementation extends DOMWrapperBase imple
ments XMLHttpRequestException { | |
16461 XMLHttpRequestExceptionWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
16462 | |
16463 int get code() { return _ptr.code; } | |
16464 | |
16465 String get message() { return _ptr.message; } | |
16466 | |
16467 String get name() { return _ptr.name; } | |
16468 } | |
16469 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
16470 // for details. All rights reserved. Use of this source code is governed by a | |
16471 // BSD-style license that can be found in the LICENSE file. | |
16472 | |
16473 // WARNING: Do not edit - generated code. | |
16474 | |
16475 class XMLHttpRequestProgressEventWrappingImplementation extends ProgressEventWra
ppingImplementation implements XMLHttpRequestProgressEvent { | |
16476 XMLHttpRequestProgressEventWrappingImplementation._wrap(ptr) : super._wrap(ptr
) {} | |
16477 | |
16478 int get position() { return _ptr.position; } | |
16479 | |
16480 int get totalSize() { return _ptr.totalSize; } | |
16481 } | |
16482 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
16483 // for details. All rights reserved. Use of this source code is governed by a | |
16484 // BSD-style license that can be found in the LICENSE file. | |
16485 | |
16486 // WARNING: Do not edit - generated code. | |
16487 | |
16488 class LevelDom { | |
16489 static AnchorElement wrapAnchorElement(raw) { | |
16490 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnchorElementWrappingImplementation._wrap(raw); | |
16491 } | |
16492 | |
16493 static Animation wrapAnimation(raw) { | |
16494 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnimationWrappingImplementation._wrap(raw); | |
16495 } | |
16496 | |
16497 static AnimationEvent wrapAnimationEvent(raw) { | |
16498 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnimationEventWrappingImplementation._wrap(raw); | |
16499 } | |
16500 | |
16501 static AnimationList wrapAnimationList(raw) { | |
16502 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AnimationListWrappingImplementation._wrap(raw); | |
16503 } | |
16504 | |
16505 static AreaElement wrapAreaElement(raw) { | |
16506 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AreaElementWrappingImplementation._wrap(raw); | |
16507 } | |
16508 | |
16509 static ArrayBuffer wrapArrayBuffer(raw) { | |
16510 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ArrayBufferWrappingImplementation._wrap(raw); | |
16511 } | |
16512 | |
16513 static ArrayBufferView wrapArrayBufferView(raw) { | |
16514 if (raw === null) { return null; } | |
16515 if (raw.dartObjectLocalStorage !== null) { | |
16516 return raw.dartObjectLocalStorage; | |
16517 } | |
16518 switch (raw.typeName) { | |
16519 case "ArrayBufferView": | |
16520 return new ArrayBufferViewWrappingImplementation._wrap(raw); | |
16521 case "DataView": | |
16522 return new DataViewWrappingImplementation._wrap(raw); | |
16523 case "Float32Array": | |
16524 return new Float32ArrayWrappingImplementation._wrap(raw); | |
16525 case "Float64Array": | |
16526 return new Float64ArrayWrappingImplementation._wrap(raw); | |
16527 case "Int16Array": | |
16528 return new Int16ArrayWrappingImplementation._wrap(raw); | |
16529 case "Int32Array": | |
16530 return new Int32ArrayWrappingImplementation._wrap(raw); | |
16531 case "Int8Array": | |
16532 return new Int8ArrayWrappingImplementation._wrap(raw); | |
16533 case "Uint16Array": | |
16534 return new Uint16ArrayWrappingImplementation._wrap(raw); | |
16535 case "Uint32Array": | |
16536 return new Uint32ArrayWrappingImplementation._wrap(raw); | |
16537 case "Uint8Array": | |
16538 return new Uint8ArrayWrappingImplementation._wrap(raw); | |
16539 default: | |
16540 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
16541 } | |
16542 } | |
16543 | |
16544 static AudioElement wrapAudioElement(raw) { | |
16545 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new AudioElementWrappingImplementation._wrap(raw); | |
16546 } | |
16547 | |
16548 static BRElement wrapBRElement(raw) { | |
16549 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BRElementWrappingImplementation._wrap(raw); | |
16550 } | |
16551 | |
16552 static BarInfo wrapBarInfo(raw) { | |
16553 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BarInfoWrappingImplementation._wrap(raw); | |
16554 } | |
16555 | |
16556 static BaseElement wrapBaseElement(raw) { | |
16557 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BaseElementWrappingImplementation._wrap(raw); | |
16558 } | |
16559 | |
16560 static BeforeLoadEvent wrapBeforeLoadEvent(raw) { | |
16561 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BeforeLoadEventWrappingImplementation._wrap(raw); | |
16562 } | |
16563 | |
16564 static Blob wrapBlob(raw) { | |
16565 if (raw === null) { return null; } | |
16566 if (raw.dartObjectLocalStorage !== null) { | |
16567 return raw.dartObjectLocalStorage; | |
16568 } | |
16569 switch (raw.typeName) { | |
16570 case "Blob": | |
16571 return new BlobWrappingImplementation._wrap(raw); | |
16572 case "File": | |
16573 return new FileWrappingImplementation._wrap(raw); | |
16574 default: | |
16575 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
16576 } | |
16577 } | |
16578 | |
16579 static BlobBuilder wrapBlobBuilder(raw) { | |
16580 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BlobBuilderWrappingImplementation._wrap(raw); | |
16581 } | |
16582 | |
16583 static BodyElement wrapBodyElement(raw) { | |
16584 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new BodyElementWrappingImplementation._wrap(raw); | |
16585 } | |
16586 | |
16587 static ButtonElement wrapButtonElement(raw) { | |
16588 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ButtonElementWrappingImplementation._wrap(raw); | |
16589 } | |
16590 | |
16591 static CDATASection wrapCDATASection(raw) { | |
16592 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CDATASectionWrappingImplementation._wrap(raw); | |
16593 } | |
16594 | |
16595 static CSSCharsetRule wrapCSSCharsetRule(raw) { | |
16596 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSCharsetRuleWrappingImplementation._wrap(raw); | |
16597 } | |
16598 | |
16599 static CSSFontFaceRule wrapCSSFontFaceRule(raw) { | |
16600 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSFontFaceRuleWrappingImplementation._wrap(raw); | |
16601 } | |
16602 | |
16603 static CSSImportRule wrapCSSImportRule(raw) { | |
16604 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSImportRuleWrappingImplementation._wrap(raw); | |
16605 } | |
16606 | |
16607 static CSSKeyframeRule wrapCSSKeyframeRule(raw) { | |
16608 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSKeyframeRuleWrappingImplementation._wrap(raw); | |
16609 } | |
16610 | |
16611 static CSSKeyframesRule wrapCSSKeyframesRule(raw) { | |
16612 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSKeyframesRuleWrappingImplementation._wrap(raw); | |
16613 } | |
16614 | |
16615 static CSSMatrix wrapCSSMatrix(raw) { | |
16616 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSMatrixWrappingImplementation._wrap(raw); | |
16617 } | |
16618 | |
16619 static CSSMediaRule wrapCSSMediaRule(raw) { | |
16620 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSMediaRuleWrappingImplementation._wrap(raw); | |
16621 } | |
16622 | |
16623 static CSSPageRule wrapCSSPageRule(raw) { | |
16624 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSPageRuleWrappingImplementation._wrap(raw); | |
16625 } | |
16626 | |
16627 static CSSPrimitiveValue wrapCSSPrimitiveValue(raw) { | |
16628 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSPrimitiveValueWrappingImplementation._wrap(raw); | |
16629 } | |
16630 | |
16631 static CSSRule wrapCSSRule(raw) { | |
16632 if (raw === null) { return null; } | |
16633 if (raw.dartObjectLocalStorage !== null) { | |
16634 return raw.dartObjectLocalStorage; | |
16635 } | |
16636 switch (raw.typeName) { | |
16637 case "CSSCharsetRule": | |
16638 return new CSSCharsetRuleWrappingImplementation._wrap(raw); | |
16639 case "CSSFontFaceRule": | |
16640 return new CSSFontFaceRuleWrappingImplementation._wrap(raw); | |
16641 case "CSSImportRule": | |
16642 return new CSSImportRuleWrappingImplementation._wrap(raw); | |
16643 case "WebKitCSSKeyframeRule": | |
16644 return new CSSKeyframeRuleWrappingImplementation._wrap(raw); | |
16645 case "WebKitCSSKeyframesRule": | |
16646 return new CSSKeyframesRuleWrappingImplementation._wrap(raw); | |
16647 case "CSSMediaRule": | |
16648 return new CSSMediaRuleWrappingImplementation._wrap(raw); | |
16649 case "CSSPageRule": | |
16650 return new CSSPageRuleWrappingImplementation._wrap(raw); | |
16651 case "CSSRule": | |
16652 return new CSSRuleWrappingImplementation._wrap(raw); | |
16653 case "CSSStyleRule": | |
16654 return new CSSStyleRuleWrappingImplementation._wrap(raw); | |
16655 case "CSSUnknownRule": | |
16656 return new CSSUnknownRuleWrappingImplementation._wrap(raw); | |
16657 default: | |
16658 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
16659 } | |
16660 } | |
16661 | |
16662 static CSSRuleList wrapCSSRuleList(raw) { | |
16663 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSRuleListWrappingImplementation._wrap(raw); | |
16664 } | |
16665 | |
16666 static CSSStyleDeclaration wrapCSSStyleDeclaration(raw) { | |
16667 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSStyleDeclarationWrappingImplementation._wrap(raw); | |
16668 } | |
16669 | |
16670 static CSSStyleRule wrapCSSStyleRule(raw) { | |
16671 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSStyleRuleWrappingImplementation._wrap(raw); | |
16672 } | |
16673 | |
16674 static CSSStyleSheet wrapCSSStyleSheet(raw) { | |
16675 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSStyleSheetWrappingImplementation._wrap(raw); | |
16676 } | |
16677 | |
16678 static CSSTransformValue wrapCSSTransformValue(raw) { | |
16679 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSTransformValueWrappingImplementation._wrap(raw); | |
16680 } | |
16681 | |
16682 static CSSUnknownRule wrapCSSUnknownRule(raw) { | |
16683 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CSSUnknownRuleWrappingImplementation._wrap(raw); | |
16684 } | |
16685 | |
16686 static CSSValue wrapCSSValue(raw) { | |
16687 if (raw === null) { return null; } | |
16688 if (raw.dartObjectLocalStorage !== null) { | |
16689 return raw.dartObjectLocalStorage; | |
16690 } | |
16691 switch (raw.typeName) { | |
16692 case "CSSPrimitiveValue": | |
16693 return new CSSPrimitiveValueWrappingImplementation._wrap(raw); | |
16694 case "WebKitCSSTransformValue": | |
16695 return new CSSTransformValueWrappingImplementation._wrap(raw); | |
16696 case "CSSValue": | |
16697 return new CSSValueWrappingImplementation._wrap(raw); | |
16698 case "CSSValueList": | |
16699 return new CSSValueListWrappingImplementation._wrap(raw); | |
16700 default: | |
16701 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
16702 } | |
16703 } | |
16704 | |
16705 static CSSValueList wrapCSSValueList(raw) { | |
16706 if (raw === null) { return null; } | |
16707 if (raw.dartObjectLocalStorage !== null) { | |
16708 return raw.dartObjectLocalStorage; | |
16709 } | |
16710 switch (raw.typeName) { | |
16711 case "WebKitCSSTransformValue": | |
16712 return new CSSTransformValueWrappingImplementation._wrap(raw); | |
16713 case "CSSValueList": | |
16714 return new CSSValueListWrappingImplementation._wrap(raw); | |
16715 default: | |
16716 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
16717 } | |
16718 } | |
16719 | |
16720 static CanvasElement wrapCanvasElement(raw) { | |
16721 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasElementWrappingImplementation._wrap(raw); | |
16722 } | |
16723 | |
16724 static CanvasGradient wrapCanvasGradient(raw) { | |
16725 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasGradientWrappingImplementation._wrap(raw); | |
16726 } | |
16727 | |
16728 static CanvasPattern wrapCanvasPattern(raw) { | |
16729 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasPatternWrappingImplementation._wrap(raw); | |
16730 } | |
16731 | |
16732 static CanvasPixelArray wrapCanvasPixelArray(raw) { | |
16733 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasPixelArrayWrappingImplementation._wrap(raw); | |
16734 } | |
16735 | |
16736 static CanvasRenderingContext wrapCanvasRenderingContext(raw) { | |
16737 if (raw === null) { return null; } | |
16738 if (raw.dartObjectLocalStorage !== null) { | |
16739 return raw.dartObjectLocalStorage; | |
16740 } | |
16741 switch (raw.typeName) { | |
16742 case "CanvasRenderingContext": | |
16743 return new CanvasRenderingContextWrappingImplementation._wrap(raw); | |
16744 case "CanvasRenderingContext2D": | |
16745 return new CanvasRenderingContext2DWrappingImplementation._wrap(raw); | |
16746 case "WebGLRenderingContext": | |
16747 return new WebGLRenderingContextWrappingImplementation._wrap(raw); | |
16748 default: | |
16749 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
16750 } | |
16751 } | |
16752 | |
16753 static CanvasRenderingContext2D wrapCanvasRenderingContext2D(raw) { | |
16754 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CanvasRenderingContext2DWrappingImplementation._wrap(raw
); | |
16755 } | |
16756 | |
16757 static CharacterData wrapCharacterData(raw) { | |
16758 if (raw === null) { return null; } | |
16759 if (raw.dartObjectLocalStorage !== null) { | |
16760 return raw.dartObjectLocalStorage; | |
16761 } | |
16762 switch (raw.typeName) { | |
16763 case "CDATASection": | |
16764 return new CDATASectionWrappingImplementation._wrap(raw); | |
16765 case "CharacterData": | |
16766 return new CharacterDataWrappingImplementation._wrap(raw); | |
16767 case "Comment": | |
16768 return new CommentWrappingImplementation._wrap(raw); | |
16769 case "Text": | |
16770 return new TextWrappingImplementation._wrap(raw); | |
16771 default: | |
16772 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
16773 } | |
16774 } | |
16775 | |
16776 static ClientRect wrapClientRect(raw) { | |
16777 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ClientRectWrappingImplementation._wrap(raw); | |
16778 } | |
16779 | |
16780 static ClientRectList wrapClientRectList(raw) { | |
16781 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ClientRectListWrappingImplementation._wrap(raw); | |
16782 } | |
16783 | |
16784 static Clipboard wrapClipboard(raw) { | |
16785 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ClipboardWrappingImplementation._wrap(raw); | |
16786 } | |
16787 | |
16788 static CloseEvent wrapCloseEvent(raw) { | |
16789 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CloseEventWrappingImplementation._wrap(raw); | |
16790 } | |
16791 | |
16792 static Comment wrapComment(raw) { | |
16793 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CommentWrappingImplementation._wrap(raw); | |
16794 } | |
16795 | |
16796 static CompositionEvent wrapCompositionEvent(raw) { | |
16797 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CompositionEventWrappingImplementation._wrap(raw); | |
16798 } | |
16799 | |
16800 static Console wrapConsole(raw) { | |
16801 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ConsoleWrappingImplementation._wrap(raw); | |
16802 } | |
16803 | |
16804 static Coordinates wrapCoordinates(raw) { | |
16805 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CoordinatesWrappingImplementation._wrap(raw); | |
16806 } | |
16807 | |
16808 static Counter wrapCounter(raw) { | |
16809 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CounterWrappingImplementation._wrap(raw); | |
16810 } | |
16811 | |
16812 static Crypto wrapCrypto(raw) { | |
16813 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CryptoWrappingImplementation._wrap(raw); | |
16814 } | |
16815 | |
16816 static CustomEvent wrapCustomEvent(raw) { | |
16817 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new CustomEventWrappingImplementation._wrap(raw); | |
16818 } | |
16819 | |
16820 static DListElement wrapDListElement(raw) { | |
16821 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DListElementWrappingImplementation._wrap(raw); | |
16822 } | |
16823 | |
16824 static DOMApplicationCache wrapDOMApplicationCache(raw) { | |
16825 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMApplicationCacheWrappingImplementation._wrap(raw); | |
16826 } | |
16827 | |
16828 static DOMException wrapDOMException(raw) { | |
16829 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMExceptionWrappingImplementation._wrap(raw); | |
16830 } | |
16831 | |
16832 static DOMFileSystem wrapDOMFileSystem(raw) { | |
16833 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMFileSystemWrappingImplementation._wrap(raw); | |
16834 } | |
16835 | |
16836 static DOMFileSystemSync wrapDOMFileSystemSync(raw) { | |
16837 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMFileSystemSyncWrappingImplementation._wrap(raw); | |
16838 } | |
16839 | |
16840 static DOMFormData wrapDOMFormData(raw) { | |
16841 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMFormDataWrappingImplementation._wrap(raw); | |
16842 } | |
16843 | |
16844 static DOMMimeType wrapDOMMimeType(raw) { | |
16845 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMMimeTypeWrappingImplementation._wrap(raw); | |
16846 } | |
16847 | |
16848 static DOMMimeTypeArray wrapDOMMimeTypeArray(raw) { | |
16849 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMMimeTypeArrayWrappingImplementation._wrap(raw); | |
16850 } | |
16851 | |
16852 static DOMParser wrapDOMParser(raw) { | |
16853 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMParserWrappingImplementation._wrap(raw); | |
16854 } | |
16855 | |
16856 static DOMPlugin wrapDOMPlugin(raw) { | |
16857 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMPluginWrappingImplementation._wrap(raw); | |
16858 } | |
16859 | |
16860 static DOMPluginArray wrapDOMPluginArray(raw) { | |
16861 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMPluginArrayWrappingImplementation._wrap(raw); | |
16862 } | |
16863 | |
16864 static DOMSelection wrapDOMSelection(raw) { | |
16865 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMSelectionWrappingImplementation._wrap(raw); | |
16866 } | |
16867 | |
16868 static DOMSettableTokenList wrapDOMSettableTokenList(raw) { | |
16869 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMSettableTokenListWrappingImplementation._wrap(raw); | |
16870 } | |
16871 | |
16872 static DOMTokenList wrapDOMTokenList(raw) { | |
16873 if (raw === null) { return null; } | |
16874 if (raw.dartObjectLocalStorage !== null) { | |
16875 return raw.dartObjectLocalStorage; | |
16876 } | |
16877 switch (raw.typeName) { | |
16878 case "DOMSettableTokenList": | |
16879 return new DOMSettableTokenListWrappingImplementation._wrap(raw); | |
16880 case "DOMTokenList": | |
16881 return new DOMTokenListWrappingImplementation._wrap(raw); | |
16882 default: | |
16883 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
16884 } | |
16885 } | |
16886 | |
16887 static DOMURL wrapDOMURL(raw) { | |
16888 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DOMURLWrappingImplementation._wrap(raw); | |
16889 } | |
16890 | |
16891 static DataListElement wrapDataListElement(raw) { | |
16892 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DataListElementWrappingImplementation._wrap(raw); | |
16893 } | |
16894 | |
16895 static DataTransferItem wrapDataTransferItem(raw) { | |
16896 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DataTransferItemWrappingImplementation._wrap(raw); | |
16897 } | |
16898 | |
16899 static DataTransferItems wrapDataTransferItems(raw) { | |
16900 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DataTransferItemsWrappingImplementation._wrap(raw); | |
16901 } | |
16902 | |
16903 static DataView wrapDataView(raw) { | |
16904 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DataViewWrappingImplementation._wrap(raw); | |
16905 } | |
16906 | |
16907 static DetailsElement wrapDetailsElement(raw) { | |
16908 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DetailsElementWrappingImplementation._wrap(raw); | |
16909 } | |
16910 | |
16911 static DeviceMotionEvent wrapDeviceMotionEvent(raw) { | |
16912 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DeviceMotionEventWrappingImplementation._wrap(raw); | |
16913 } | |
16914 | |
16915 static DeviceOrientationEvent wrapDeviceOrientationEvent(raw) { | |
16916 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DeviceOrientationEventWrappingImplementation._wrap(raw); | |
16917 } | |
16918 | |
16919 static DirectoryEntry wrapDirectoryEntry(raw) { | |
16920 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DirectoryEntryWrappingImplementation._wrap(raw); | |
16921 } | |
16922 | |
16923 static DirectoryEntrySync wrapDirectoryEntrySync(raw) { | |
16924 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DirectoryEntrySyncWrappingImplementation._wrap(raw); | |
16925 } | |
16926 | |
16927 static DirectoryReader wrapDirectoryReader(raw) { | |
16928 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DirectoryReaderWrappingImplementation._wrap(raw); | |
16929 } | |
16930 | |
16931 static DirectoryReaderSync wrapDirectoryReaderSync(raw) { | |
16932 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DirectoryReaderSyncWrappingImplementation._wrap(raw); | |
16933 } | |
16934 | |
16935 static DivElement wrapDivElement(raw) { | |
16936 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DivElementWrappingImplementation._wrap(raw); | |
16937 } | |
16938 | |
16939 static Document wrapDocument(raw) { | |
16940 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DocumentWrappingImplementation._wrap(raw, raw.documentEl
ement); | |
16941 } | |
16942 | |
16943 static DocumentFragment wrapDocumentFragment(raw) { | |
16944 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new DocumentFragmentWrappingImplementation._wrap(raw); | |
16945 } | |
16946 | |
16947 static Element wrapElement(raw) { | |
16948 if (raw === null) { return null; } | |
16949 if (raw.dartObjectLocalStorage !== null) { | |
16950 return raw.dartObjectLocalStorage; | |
16951 } | |
16952 switch (raw.typeName) { | |
16953 case "HTMLAnchorElement": | |
16954 return new AnchorElementWrappingImplementation._wrap(raw); | |
16955 /* Skipping HTMLAppletElement*/ | |
16956 case "HTMLAreaElement": | |
16957 return new AreaElementWrappingImplementation._wrap(raw); | |
16958 case "HTMLAudioElement": | |
16959 return new AudioElementWrappingImplementation._wrap(raw); | |
16960 case "HTMLBRElement": | |
16961 return new BRElementWrappingImplementation._wrap(raw); | |
16962 case "HTMLBaseElement": | |
16963 return new BaseElementWrappingImplementation._wrap(raw); | |
16964 /* Skipping HTMLBaseFontElement*/ | |
16965 case "HTMLBodyElement": | |
16966 return new BodyElementWrappingImplementation._wrap(raw); | |
16967 case "HTMLButtonElement": | |
16968 return new ButtonElementWrappingImplementation._wrap(raw); | |
16969 case "HTMLCanvasElement": | |
16970 return new CanvasElementWrappingImplementation._wrap(raw); | |
16971 case "HTMLDListElement": | |
16972 return new DListElementWrappingImplementation._wrap(raw); | |
16973 case "HTMLDataListElement": | |
16974 return new DataListElementWrappingImplementation._wrap(raw); | |
16975 case "HTMLDetailsElement": | |
16976 return new DetailsElementWrappingImplementation._wrap(raw); | |
16977 /* Skipping HTMLDirectoryElement*/ | |
16978 case "HTMLDivElement": | |
16979 return new DivElementWrappingImplementation._wrap(raw); | |
16980 case "HTMLElement": | |
16981 return new ElementWrappingImplementation._wrap(raw); | |
16982 case "HTMLEmbedElement": | |
16983 return new EmbedElementWrappingImplementation._wrap(raw); | |
16984 case "HTMLFieldSetElement": | |
16985 return new FieldSetElementWrappingImplementation._wrap(raw); | |
16986 case "HTMLFontElement": | |
16987 return new FontElementWrappingImplementation._wrap(raw); | |
16988 case "HTMLFormElement": | |
16989 return new FormElementWrappingImplementation._wrap(raw); | |
16990 /* Skipping HTMLFrameElement*/ | |
16991 /* Skipping HTMLFrameSetElement*/ | |
16992 case "HTMLHRElement": | |
16993 return new HRElementWrappingImplementation._wrap(raw); | |
16994 case "HTMLHeadElement": | |
16995 return new HeadElementWrappingImplementation._wrap(raw); | |
16996 case "HTMLHeadingElement": | |
16997 return new HeadingElementWrappingImplementation._wrap(raw); | |
16998 case "HTMLHtmlElement": | |
16999 return new DocumentWrappingImplementation._wrap(raw.parentNode, raw); | |
17000 case "HTMLIFrameElement": | |
17001 return new IFrameElementWrappingImplementation._wrap(raw); | |
17002 case "HTMLImageElement": | |
17003 return new ImageElementWrappingImplementation._wrap(raw); | |
17004 case "HTMLInputElement": | |
17005 return new InputElementWrappingImplementation._wrap(raw); | |
17006 /* Skipping HTMLIsIndexElement*/ | |
17007 case "HTMLKeygenElement": | |
17008 return new KeygenElementWrappingImplementation._wrap(raw); | |
17009 case "HTMLLIElement": | |
17010 return new LIElementWrappingImplementation._wrap(raw); | |
17011 case "HTMLLabelElement": | |
17012 return new LabelElementWrappingImplementation._wrap(raw); | |
17013 case "HTMLLegendElement": | |
17014 return new LegendElementWrappingImplementation._wrap(raw); | |
17015 case "HTMLLinkElement": | |
17016 return new LinkElementWrappingImplementation._wrap(raw); | |
17017 case "HTMLMapElement": | |
17018 return new MapElementWrappingImplementation._wrap(raw); | |
17019 case "HTMLMarqueeElement": | |
17020 return new MarqueeElementWrappingImplementation._wrap(raw); | |
17021 case "HTMLMediaElement": | |
17022 return new MediaElementWrappingImplementation._wrap(raw); | |
17023 case "HTMLMenuElement": | |
17024 return new MenuElementWrappingImplementation._wrap(raw); | |
17025 case "HTMLMetaElement": | |
17026 return new MetaElementWrappingImplementation._wrap(raw); | |
17027 case "HTMLMeterElement": | |
17028 return new MeterElementWrappingImplementation._wrap(raw); | |
17029 case "HTMLModElement": | |
17030 return new ModElementWrappingImplementation._wrap(raw); | |
17031 case "HTMLOListElement": | |
17032 return new OListElementWrappingImplementation._wrap(raw); | |
17033 case "HTMLObjectElement": | |
17034 return new ObjectElementWrappingImplementation._wrap(raw); | |
17035 case "HTMLOptGroupElement": | |
17036 return new OptGroupElementWrappingImplementation._wrap(raw); | |
17037 case "HTMLOptionElement": | |
17038 return new OptionElementWrappingImplementation._wrap(raw); | |
17039 case "HTMLOutputElement": | |
17040 return new OutputElementWrappingImplementation._wrap(raw); | |
17041 case "HTMLParagraphElement": | |
17042 return new ParagraphElementWrappingImplementation._wrap(raw); | |
17043 case "HTMLParamElement": | |
17044 return new ParamElementWrappingImplementation._wrap(raw); | |
17045 case "HTMLPreElement": | |
17046 return new PreElementWrappingImplementation._wrap(raw); | |
17047 case "HTMLProgressElement": | |
17048 return new ProgressElementWrappingImplementation._wrap(raw); | |
17049 case "HTMLQuoteElement": | |
17050 return new QuoteElementWrappingImplementation._wrap(raw); | |
17051 case "HTMLScriptElement": | |
17052 return new ScriptElementWrappingImplementation._wrap(raw); | |
17053 case "HTMLSelectElement": | |
17054 return new SelectElementWrappingImplementation._wrap(raw); | |
17055 case "HTMLSourceElement": | |
17056 return new SourceElementWrappingImplementation._wrap(raw); | |
17057 case "HTMLSpanElement": | |
17058 return new SpanElementWrappingImplementation._wrap(raw); | |
17059 case "HTMLStyleElement": | |
17060 return new StyleElementWrappingImplementation._wrap(raw); | |
17061 case "HTMLTableCaptionElement": | |
17062 return new TableCaptionElementWrappingImplementation._wrap(raw); | |
17063 case "HTMLTableCellElement": | |
17064 return new TableCellElementWrappingImplementation._wrap(raw); | |
17065 case "HTMLTableColElement": | |
17066 return new TableColElementWrappingImplementation._wrap(raw); | |
17067 case "HTMLTableElement": | |
17068 return new TableElementWrappingImplementation._wrap(raw); | |
17069 case "HTMLTableRowElement": | |
17070 return new TableRowElementWrappingImplementation._wrap(raw); | |
17071 case "HTMLTableSectionElement": | |
17072 return new TableSectionElementWrappingImplementation._wrap(raw); | |
17073 case "HTMLTextAreaElement": | |
17074 return new TextAreaElementWrappingImplementation._wrap(raw); | |
17075 case "HTMLTitleElement": | |
17076 return new TitleElementWrappingImplementation._wrap(raw); | |
17077 case "HTMLTrackElement": | |
17078 return new TrackElementWrappingImplementation._wrap(raw); | |
17079 case "HTMLUListElement": | |
17080 return new UListElementWrappingImplementation._wrap(raw); | |
17081 case "HTMLUnknownElement": | |
17082 return new UnknownElementWrappingImplementation._wrap(raw); | |
17083 case "HTMLVideoElement": | |
17084 return new VideoElementWrappingImplementation._wrap(raw); | |
17085 default: | |
17086 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17087 } | |
17088 } | |
17089 | |
17090 static ElementList wrapElementList(raw) { | |
17091 return raw === null ? null : new FrozenElementList._wrap(raw); | |
17092 } | |
17093 | |
17094 static EmbedElement wrapEmbedElement(raw) { | |
17095 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EmbedElementWrappingImplementation._wrap(raw); | |
17096 } | |
17097 | |
17098 static Entity wrapEntity(raw) { | |
17099 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntityWrappingImplementation._wrap(raw); | |
17100 } | |
17101 | |
17102 static EntityReference wrapEntityReference(raw) { | |
17103 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntityReferenceWrappingImplementation._wrap(raw); | |
17104 } | |
17105 | |
17106 static EntriesCallback wrapEntriesCallback(raw) { | |
17107 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntriesCallbackWrappingImplementation._wrap(raw); | |
17108 } | |
17109 | |
17110 static Entry wrapEntry(raw) { | |
17111 if (raw === null) { return null; } | |
17112 if (raw.dartObjectLocalStorage !== null) { | |
17113 return raw.dartObjectLocalStorage; | |
17114 } | |
17115 switch (raw.typeName) { | |
17116 case "DirectoryEntry": | |
17117 return new DirectoryEntryWrappingImplementation._wrap(raw); | |
17118 case "Entry": | |
17119 return new EntryWrappingImplementation._wrap(raw); | |
17120 case "FileEntry": | |
17121 return new FileEntryWrappingImplementation._wrap(raw); | |
17122 default: | |
17123 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17124 } | |
17125 } | |
17126 | |
17127 static EntryArray wrapEntryArray(raw) { | |
17128 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntryArrayWrappingImplementation._wrap(raw); | |
17129 } | |
17130 | |
17131 static EntryArraySync wrapEntryArraySync(raw) { | |
17132 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntryArraySyncWrappingImplementation._wrap(raw); | |
17133 } | |
17134 | |
17135 static EntryCallback wrapEntryCallback(raw) { | |
17136 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EntryCallbackWrappingImplementation._wrap(raw); | |
17137 } | |
17138 | |
17139 static EntrySync wrapEntrySync(raw) { | |
17140 if (raw === null) { return null; } | |
17141 if (raw.dartObjectLocalStorage !== null) { | |
17142 return raw.dartObjectLocalStorage; | |
17143 } | |
17144 switch (raw.typeName) { | |
17145 case "DirectoryEntrySync": | |
17146 return new DirectoryEntrySyncWrappingImplementation._wrap(raw); | |
17147 case "EntrySync": | |
17148 return new EntrySyncWrappingImplementation._wrap(raw); | |
17149 case "FileEntrySync": | |
17150 return new FileEntrySyncWrappingImplementation._wrap(raw); | |
17151 default: | |
17152 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17153 } | |
17154 } | |
17155 | |
17156 static ErrorCallback wrapErrorCallback(raw) { | |
17157 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ErrorCallbackWrappingImplementation._wrap(raw); | |
17158 } | |
17159 | |
17160 static ErrorEvent wrapErrorEvent(raw) { | |
17161 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ErrorEventWrappingImplementation._wrap(raw); | |
17162 } | |
17163 | |
17164 static Event wrapEvent(raw) { | |
17165 if (raw === null) { return null; } | |
17166 if (raw.dartObjectLocalStorage !== null) { | |
17167 return raw.dartObjectLocalStorage; | |
17168 } | |
17169 switch (raw.typeName) { | |
17170 case "WebKitAnimationEvent": | |
17171 return new AnimationEventWrappingImplementation._wrap(raw); | |
17172 case "BeforeLoadEvent": | |
17173 return new BeforeLoadEventWrappingImplementation._wrap(raw); | |
17174 case "CloseEvent": | |
17175 return new CloseEventWrappingImplementation._wrap(raw); | |
17176 case "CompositionEvent": | |
17177 return new CompositionEventWrappingImplementation._wrap(raw); | |
17178 case "CustomEvent": | |
17179 return new CustomEventWrappingImplementation._wrap(raw); | |
17180 case "DeviceMotionEvent": | |
17181 return new DeviceMotionEventWrappingImplementation._wrap(raw); | |
17182 case "DeviceOrientationEvent": | |
17183 return new DeviceOrientationEventWrappingImplementation._wrap(raw); | |
17184 case "ErrorEvent": | |
17185 return new ErrorEventWrappingImplementation._wrap(raw); | |
17186 case "Event": | |
17187 return new EventWrappingImplementation._wrap(raw); | |
17188 case "HashChangeEvent": | |
17189 return new HashChangeEventWrappingImplementation._wrap(raw); | |
17190 case "IDBVersionChangeEvent": | |
17191 return new IDBVersionChangeEventWrappingImplementation._wrap(raw); | |
17192 case "KeyboardEvent": | |
17193 return new KeyboardEventWrappingImplementation._wrap(raw); | |
17194 case "MessageEvent": | |
17195 return new MessageEventWrappingImplementation._wrap(raw); | |
17196 case "MouseEvent": | |
17197 return new MouseEventWrappingImplementation._wrap(raw); | |
17198 case "MutationEvent": | |
17199 return new MutationEventWrappingImplementation._wrap(raw); | |
17200 case "OverflowEvent": | |
17201 return new OverflowEventWrappingImplementation._wrap(raw); | |
17202 case "PageTransitionEvent": | |
17203 return new PageTransitionEventWrappingImplementation._wrap(raw); | |
17204 case "PopStateEvent": | |
17205 return new PopStateEventWrappingImplementation._wrap(raw); | |
17206 case "ProgressEvent": | |
17207 return new ProgressEventWrappingImplementation._wrap(raw); | |
17208 case "SpeechInputEvent": | |
17209 return new SpeechInputEventWrappingImplementation._wrap(raw); | |
17210 case "StorageEvent": | |
17211 return new StorageEventWrappingImplementation._wrap(raw); | |
17212 case "TextEvent": | |
17213 return new TextEventWrappingImplementation._wrap(raw); | |
17214 case "TouchEvent": | |
17215 return new TouchEventWrappingImplementation._wrap(raw); | |
17216 case "WebKitTransitionEvent": | |
17217 return new TransitionEventWrappingImplementation._wrap(raw); | |
17218 case "UIEvent": | |
17219 return new UIEventWrappingImplementation._wrap(raw); | |
17220 case "WebGLContextEvent": | |
17221 return new WebGLContextEventWrappingImplementation._wrap(raw); | |
17222 case "WheelEvent": | |
17223 return new WheelEventWrappingImplementation._wrap(raw); | |
17224 case "XMLHttpRequestProgressEvent": | |
17225 return new XMLHttpRequestProgressEventWrappingImplementation._wrap(raw); | |
17226 default: | |
17227 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17228 } | |
17229 } | |
17230 | |
17231 static EventException wrapEventException(raw) { | |
17232 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EventExceptionWrappingImplementation._wrap(raw); | |
17233 } | |
17234 | |
17235 static Function wrapEventListener(raw) { | |
17236 return raw === null ? null : function(evt) { return raw(LevelDom.wrapEvent(e
vt)); }; | |
17237 } | |
17238 | |
17239 static EventSource wrapEventSource(raw) { | |
17240 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new EventSourceWrappingImplementation._wrap(raw); | |
17241 } | |
17242 | |
17243 static EventTarget wrapEventTarget(raw) { | |
17244 if (raw === null) { return null; } | |
17245 if (raw.dartObjectLocalStorage !== null) { | |
17246 return raw.dartObjectLocalStorage; | |
17247 } | |
17248 switch (raw.typeName) { | |
17249 /* Skipping AbstractWorker*/ | |
17250 case "HTMLAnchorElement": | |
17251 return new AnchorElementWrappingImplementation._wrap(raw); | |
17252 /* Skipping HTMLAppletElement*/ | |
17253 case "HTMLAreaElement": | |
17254 return new AreaElementWrappingImplementation._wrap(raw); | |
17255 /* Skipping Attr*/ | |
17256 case "HTMLAudioElement": | |
17257 return new AudioElementWrappingImplementation._wrap(raw); | |
17258 case "HTMLBRElement": | |
17259 return new BRElementWrappingImplementation._wrap(raw); | |
17260 case "HTMLBaseElement": | |
17261 return new BaseElementWrappingImplementation._wrap(raw); | |
17262 /* Skipping HTMLBaseFontElement*/ | |
17263 case "HTMLBodyElement": | |
17264 return new BodyElementWrappingImplementation._wrap(raw); | |
17265 case "HTMLButtonElement": | |
17266 return new ButtonElementWrappingImplementation._wrap(raw); | |
17267 case "CDATASection": | |
17268 return new CDATASectionWrappingImplementation._wrap(raw); | |
17269 case "HTMLCanvasElement": | |
17270 return new CanvasElementWrappingImplementation._wrap(raw); | |
17271 case "CharacterData": | |
17272 return new CharacterDataWrappingImplementation._wrap(raw); | |
17273 case "Comment": | |
17274 return new CommentWrappingImplementation._wrap(raw); | |
17275 case "HTMLDListElement": | |
17276 return new DListElementWrappingImplementation._wrap(raw); | |
17277 case "DOMApplicationCache": | |
17278 return new DOMApplicationCacheWrappingImplementation._wrap(raw); | |
17279 case "HTMLDataListElement": | |
17280 return new DataListElementWrappingImplementation._wrap(raw); | |
17281 case "HTMLDetailsElement": | |
17282 return new DetailsElementWrappingImplementation._wrap(raw); | |
17283 /* Skipping HTMLDirectoryElement*/ | |
17284 case "HTMLDivElement": | |
17285 return new DivElementWrappingImplementation._wrap(raw); | |
17286 case "HTMLDocument": | |
17287 return new DocumentWrappingImplementation._wrap(raw, raw.documentElement
); | |
17288 case "DocumentFragment": | |
17289 return new DocumentFragmentWrappingImplementation._wrap(raw); | |
17290 /* Skipping DocumentType*/ | |
17291 case "HTMLElement": | |
17292 return new ElementWrappingImplementation._wrap(raw); | |
17293 case "HTMLEmbedElement": | |
17294 return new EmbedElementWrappingImplementation._wrap(raw); | |
17295 case "Entity": | |
17296 return new EntityWrappingImplementation._wrap(raw); | |
17297 case "EntityReference": | |
17298 return new EntityReferenceWrappingImplementation._wrap(raw); | |
17299 case "EventSource": | |
17300 return new EventSourceWrappingImplementation._wrap(raw); | |
17301 case "EventTarget": | |
17302 return new EventTargetWrappingImplementation._wrap(raw); | |
17303 case "HTMLFieldSetElement": | |
17304 return new FieldSetElementWrappingImplementation._wrap(raw); | |
17305 case "HTMLFontElement": | |
17306 return new FontElementWrappingImplementation._wrap(raw); | |
17307 case "HTMLFormElement": | |
17308 return new FormElementWrappingImplementation._wrap(raw); | |
17309 /* Skipping HTMLFrameElement*/ | |
17310 /* Skipping HTMLFrameSetElement*/ | |
17311 case "HTMLHRElement": | |
17312 return new HRElementWrappingImplementation._wrap(raw); | |
17313 case "HTMLHeadElement": | |
17314 return new HeadElementWrappingImplementation._wrap(raw); | |
17315 case "HTMLHeadingElement": | |
17316 return new HeadingElementWrappingImplementation._wrap(raw); | |
17317 case "HTMLHtmlElement": | |
17318 return new DocumentWrappingImplementation._wrap(raw.parentNode, raw); | |
17319 case "HTMLIFrameElement": | |
17320 return new IFrameElementWrappingImplementation._wrap(raw); | |
17321 case "HTMLImageElement": | |
17322 return new ImageElementWrappingImplementation._wrap(raw); | |
17323 case "HTMLInputElement": | |
17324 return new InputElementWrappingImplementation._wrap(raw); | |
17325 /* Skipping HTMLIsIndexElement*/ | |
17326 case "HTMLKeygenElement": | |
17327 return new KeygenElementWrappingImplementation._wrap(raw); | |
17328 case "HTMLLIElement": | |
17329 return new LIElementWrappingImplementation._wrap(raw); | |
17330 case "HTMLLabelElement": | |
17331 return new LabelElementWrappingImplementation._wrap(raw); | |
17332 case "HTMLLegendElement": | |
17333 return new LegendElementWrappingImplementation._wrap(raw); | |
17334 case "HTMLLinkElement": | |
17335 return new LinkElementWrappingImplementation._wrap(raw); | |
17336 case "HTMLMapElement": | |
17337 return new MapElementWrappingImplementation._wrap(raw); | |
17338 case "HTMLMarqueeElement": | |
17339 return new MarqueeElementWrappingImplementation._wrap(raw); | |
17340 case "HTMLMediaElement": | |
17341 return new MediaElementWrappingImplementation._wrap(raw); | |
17342 case "HTMLMenuElement": | |
17343 return new MenuElementWrappingImplementation._wrap(raw); | |
17344 case "MessagePort": | |
17345 return new MessagePortWrappingImplementation._wrap(raw); | |
17346 case "HTMLMetaElement": | |
17347 return new MetaElementWrappingImplementation._wrap(raw); | |
17348 case "HTMLMeterElement": | |
17349 return new MeterElementWrappingImplementation._wrap(raw); | |
17350 case "HTMLModElement": | |
17351 return new ModElementWrappingImplementation._wrap(raw); | |
17352 case "Node": | |
17353 return new NodeWrappingImplementation._wrap(raw); | |
17354 case "Notation": | |
17355 return new NotationWrappingImplementation._wrap(raw); | |
17356 case "Notification": | |
17357 return new NotificationWrappingImplementation._wrap(raw); | |
17358 case "HTMLOListElement": | |
17359 return new OListElementWrappingImplementation._wrap(raw); | |
17360 case "HTMLObjectElement": | |
17361 return new ObjectElementWrappingImplementation._wrap(raw); | |
17362 case "HTMLOptGroupElement": | |
17363 return new OptGroupElementWrappingImplementation._wrap(raw); | |
17364 case "HTMLOptionElement": | |
17365 return new OptionElementWrappingImplementation._wrap(raw); | |
17366 case "HTMLOutputElement": | |
17367 return new OutputElementWrappingImplementation._wrap(raw); | |
17368 case "HTMLParagraphElement": | |
17369 return new ParagraphElementWrappingImplementation._wrap(raw); | |
17370 case "HTMLParamElement": | |
17371 return new ParamElementWrappingImplementation._wrap(raw); | |
17372 case "HTMLPreElement": | |
17373 return new PreElementWrappingImplementation._wrap(raw); | |
17374 case "ProcessingInstruction": | |
17375 return new ProcessingInstructionWrappingImplementation._wrap(raw); | |
17376 case "HTMLProgressElement": | |
17377 return new ProgressElementWrappingImplementation._wrap(raw); | |
17378 case "HTMLQuoteElement": | |
17379 return new QuoteElementWrappingImplementation._wrap(raw); | |
17380 case "HTMLScriptElement": | |
17381 return new ScriptElementWrappingImplementation._wrap(raw); | |
17382 case "HTMLSelectElement": | |
17383 return new SelectElementWrappingImplementation._wrap(raw); | |
17384 case "SharedWorker": | |
17385 return new SharedWorkerWrappingImplementation._wrap(raw); | |
17386 case "HTMLSourceElement": | |
17387 return new SourceElementWrappingImplementation._wrap(raw); | |
17388 case "HTMLSpanElement": | |
17389 return new SpanElementWrappingImplementation._wrap(raw); | |
17390 case "HTMLStyleElement": | |
17391 return new StyleElementWrappingImplementation._wrap(raw); | |
17392 case "HTMLTableCaptionElement": | |
17393 return new TableCaptionElementWrappingImplementation._wrap(raw); | |
17394 case "HTMLTableCellElement": | |
17395 return new TableCellElementWrappingImplementation._wrap(raw); | |
17396 case "HTMLTableColElement": | |
17397 return new TableColElementWrappingImplementation._wrap(raw); | |
17398 case "HTMLTableElement": | |
17399 return new TableElementWrappingImplementation._wrap(raw); | |
17400 case "HTMLTableRowElement": | |
17401 return new TableRowElementWrappingImplementation._wrap(raw); | |
17402 case "HTMLTableSectionElement": | |
17403 return new TableSectionElementWrappingImplementation._wrap(raw); | |
17404 case "Text": | |
17405 return new TextWrappingImplementation._wrap(raw); | |
17406 case "HTMLTextAreaElement": | |
17407 return new TextAreaElementWrappingImplementation._wrap(raw); | |
17408 case "HTMLTitleElement": | |
17409 return new TitleElementWrappingImplementation._wrap(raw); | |
17410 case "HTMLTrackElement": | |
17411 return new TrackElementWrappingImplementation._wrap(raw); | |
17412 case "HTMLUListElement": | |
17413 return new UListElementWrappingImplementation._wrap(raw); | |
17414 case "HTMLUnknownElement": | |
17415 return new UnknownElementWrappingImplementation._wrap(raw); | |
17416 case "HTMLVideoElement": | |
17417 return new VideoElementWrappingImplementation._wrap(raw); | |
17418 case "WebSocket": | |
17419 return new WebSocketWrappingImplementation._wrap(raw); | |
17420 case "Window": | |
17421 return new WindowWrappingImplementation._wrap(raw); | |
17422 case "Worker": | |
17423 return new WorkerWrappingImplementation._wrap(raw); | |
17424 case "XMLHttpRequest": | |
17425 return new XMLHttpRequestWrappingImplementation._wrap(raw); | |
17426 case "XMLHttpRequestUpload": | |
17427 return new XMLHttpRequestUploadWrappingImplementation._wrap(raw); | |
17428 default: | |
17429 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17430 } | |
17431 } | |
17432 | |
17433 static FieldSetElement wrapFieldSetElement(raw) { | |
17434 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FieldSetElementWrappingImplementation._wrap(raw); | |
17435 } | |
17436 | |
17437 static File wrapFile(raw) { | |
17438 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileWrappingImplementation._wrap(raw); | |
17439 } | |
17440 | |
17441 static FileCallback wrapFileCallback(raw) { | |
17442 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileCallbackWrappingImplementation._wrap(raw); | |
17443 } | |
17444 | |
17445 static FileEntry wrapFileEntry(raw) { | |
17446 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileEntryWrappingImplementation._wrap(raw); | |
17447 } | |
17448 | |
17449 static FileEntrySync wrapFileEntrySync(raw) { | |
17450 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileEntrySyncWrappingImplementation._wrap(raw); | |
17451 } | |
17452 | |
17453 static FileError wrapFileError(raw) { | |
17454 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileErrorWrappingImplementation._wrap(raw); | |
17455 } | |
17456 | |
17457 static FileException wrapFileException(raw) { | |
17458 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileExceptionWrappingImplementation._wrap(raw); | |
17459 } | |
17460 | |
17461 static FileList wrapFileList(raw) { | |
17462 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileListWrappingImplementation._wrap(raw); | |
17463 } | |
17464 | |
17465 static FileReader wrapFileReader(raw) { | |
17466 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileReaderWrappingImplementation._wrap(raw); | |
17467 } | |
17468 | |
17469 static FileReaderSync wrapFileReaderSync(raw) { | |
17470 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileReaderSyncWrappingImplementation._wrap(raw); | |
17471 } | |
17472 | |
17473 static FileSystemCallback wrapFileSystemCallback(raw) { | |
17474 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileSystemCallbackWrappingImplementation._wrap(raw); | |
17475 } | |
17476 | |
17477 static FileWriter wrapFileWriter(raw) { | |
17478 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileWriterWrappingImplementation._wrap(raw); | |
17479 } | |
17480 | |
17481 static FileWriterCallback wrapFileWriterCallback(raw) { | |
17482 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileWriterCallbackWrappingImplementation._wrap(raw); | |
17483 } | |
17484 | |
17485 static FileWriterSync wrapFileWriterSync(raw) { | |
17486 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FileWriterSyncWrappingImplementation._wrap(raw); | |
17487 } | |
17488 | |
17489 static Flags wrapFlags(raw) { | |
17490 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FlagsWrappingImplementation._wrap(raw); | |
17491 } | |
17492 | |
17493 static Float32Array wrapFloat32Array(raw) { | |
17494 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Float32ArrayWrappingImplementation._wrap(raw); | |
17495 } | |
17496 | |
17497 static Float64Array wrapFloat64Array(raw) { | |
17498 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Float64ArrayWrappingImplementation._wrap(raw); | |
17499 } | |
17500 | |
17501 static FontElement wrapFontElement(raw) { | |
17502 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FontElementWrappingImplementation._wrap(raw); | |
17503 } | |
17504 | |
17505 static FormElement wrapFormElement(raw) { | |
17506 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new FormElementWrappingImplementation._wrap(raw); | |
17507 } | |
17508 | |
17509 static Geolocation wrapGeolocation(raw) { | |
17510 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new GeolocationWrappingImplementation._wrap(raw); | |
17511 } | |
17512 | |
17513 static Geoposition wrapGeoposition(raw) { | |
17514 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new GeopositionWrappingImplementation._wrap(raw); | |
17515 } | |
17516 | |
17517 static HRElement wrapHRElement(raw) { | |
17518 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HRElementWrappingImplementation._wrap(raw); | |
17519 } | |
17520 | |
17521 static HTMLAllCollection wrapHTMLAllCollection(raw) { | |
17522 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HTMLAllCollectionWrappingImplementation._wrap(raw); | |
17523 } | |
17524 | |
17525 static HashChangeEvent wrapHashChangeEvent(raw) { | |
17526 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HashChangeEventWrappingImplementation._wrap(raw); | |
17527 } | |
17528 | |
17529 static HeadElement wrapHeadElement(raw) { | |
17530 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HeadElementWrappingImplementation._wrap(raw); | |
17531 } | |
17532 | |
17533 static HeadingElement wrapHeadingElement(raw) { | |
17534 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HeadingElementWrappingImplementation._wrap(raw); | |
17535 } | |
17536 | |
17537 static History wrapHistory(raw) { | |
17538 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new HistoryWrappingImplementation._wrap(raw); | |
17539 } | |
17540 | |
17541 static IDBAny wrapIDBAny(raw) { | |
17542 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBAnyWrappingImplementation._wrap(raw); | |
17543 } | |
17544 | |
17545 static IDBCursor wrapIDBCursor(raw) { | |
17546 if (raw === null) { return null; } | |
17547 if (raw.dartObjectLocalStorage !== null) { | |
17548 return raw.dartObjectLocalStorage; | |
17549 } | |
17550 switch (raw.typeName) { | |
17551 case "IDBCursor": | |
17552 return new IDBCursorWrappingImplementation._wrap(raw); | |
17553 case "IDBCursorWithValue": | |
17554 return new IDBCursorWithValueWrappingImplementation._wrap(raw); | |
17555 default: | |
17556 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17557 } | |
17558 } | |
17559 | |
17560 static IDBCursorWithValue wrapIDBCursorWithValue(raw) { | |
17561 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBCursorWithValueWrappingImplementation._wrap(raw); | |
17562 } | |
17563 | |
17564 static IDBDatabase wrapIDBDatabase(raw) { | |
17565 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBDatabaseWrappingImplementation._wrap(raw); | |
17566 } | |
17567 | |
17568 static IDBDatabaseError wrapIDBDatabaseError(raw) { | |
17569 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBDatabaseErrorWrappingImplementation._wrap(raw); | |
17570 } | |
17571 | |
17572 static IDBDatabaseException wrapIDBDatabaseException(raw) { | |
17573 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBDatabaseExceptionWrappingImplementation._wrap(raw); | |
17574 } | |
17575 | |
17576 static IDBFactory wrapIDBFactory(raw) { | |
17577 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBFactoryWrappingImplementation._wrap(raw); | |
17578 } | |
17579 | |
17580 static IDBIndex wrapIDBIndex(raw) { | |
17581 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBIndexWrappingImplementation._wrap(raw); | |
17582 } | |
17583 | |
17584 static IDBKey wrapIDBKey(raw) { | |
17585 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBKeyWrappingImplementation._wrap(raw); | |
17586 } | |
17587 | |
17588 static IDBKeyRange wrapIDBKeyRange(raw) { | |
17589 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBKeyRangeWrappingImplementation._wrap(raw); | |
17590 } | |
17591 | |
17592 static IDBObjectStore wrapIDBObjectStore(raw) { | |
17593 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBObjectStoreWrappingImplementation._wrap(raw); | |
17594 } | |
17595 | |
17596 static IDBRequest wrapIDBRequest(raw) { | |
17597 if (raw === null) { return null; } | |
17598 if (raw.dartObjectLocalStorage !== null) { | |
17599 return raw.dartObjectLocalStorage; | |
17600 } | |
17601 switch (raw.typeName) { | |
17602 case "IDBRequest": | |
17603 return new IDBRequestWrappingImplementation._wrap(raw); | |
17604 case "IDBVersionChangeRequest": | |
17605 return new IDBVersionChangeRequestWrappingImplementation._wrap(raw); | |
17606 default: | |
17607 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17608 } | |
17609 } | |
17610 | |
17611 static IDBTransaction wrapIDBTransaction(raw) { | |
17612 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBTransactionWrappingImplementation._wrap(raw); | |
17613 } | |
17614 | |
17615 static IDBVersionChangeEvent wrapIDBVersionChangeEvent(raw) { | |
17616 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBVersionChangeEventWrappingImplementation._wrap(raw); | |
17617 } | |
17618 | |
17619 static IDBVersionChangeRequest wrapIDBVersionChangeRequest(raw) { | |
17620 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IDBVersionChangeRequestWrappingImplementation._wrap(raw)
; | |
17621 } | |
17622 | |
17623 static IFrameElement wrapIFrameElement(raw) { | |
17624 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new IFrameElementWrappingImplementation._wrap(raw); | |
17625 } | |
17626 | |
17627 static ImageData wrapImageData(raw) { | |
17628 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ImageDataWrappingImplementation._wrap(raw); | |
17629 } | |
17630 | |
17631 static ImageElement wrapImageElement(raw) { | |
17632 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ImageElementWrappingImplementation._wrap(raw); | |
17633 } | |
17634 | |
17635 static InputElement wrapInputElement(raw) { | |
17636 if (raw === null) { return null; } | |
17637 if (raw.dartObjectLocalStorage !== null) { | |
17638 return raw.dartObjectLocalStorage; | |
17639 } | |
17640 switch (raw.typeName) { | |
17641 case "HTMLInputElement": | |
17642 return new InputElementWrappingImplementation._wrap(raw); | |
17643 /* Skipping HTMLIsIndexElement*/ | |
17644 default: | |
17645 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17646 } | |
17647 } | |
17648 | |
17649 static Int16Array wrapInt16Array(raw) { | |
17650 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Int16ArrayWrappingImplementation._wrap(raw); | |
17651 } | |
17652 | |
17653 static Int32Array wrapInt32Array(raw) { | |
17654 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Int32ArrayWrappingImplementation._wrap(raw); | |
17655 } | |
17656 | |
17657 static Int8Array wrapInt8Array(raw) { | |
17658 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Int8ArrayWrappingImplementation._wrap(raw); | |
17659 } | |
17660 | |
17661 static KeyboardEvent wrapKeyboardEvent(raw) { | |
17662 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new KeyboardEventWrappingImplementation._wrap(raw); | |
17663 } | |
17664 | |
17665 static KeygenElement wrapKeygenElement(raw) { | |
17666 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new KeygenElementWrappingImplementation._wrap(raw); | |
17667 } | |
17668 | |
17669 static LIElement wrapLIElement(raw) { | |
17670 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LIElementWrappingImplementation._wrap(raw); | |
17671 } | |
17672 | |
17673 static LabelElement wrapLabelElement(raw) { | |
17674 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LabelElementWrappingImplementation._wrap(raw); | |
17675 } | |
17676 | |
17677 static LegendElement wrapLegendElement(raw) { | |
17678 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LegendElementWrappingImplementation._wrap(raw); | |
17679 } | |
17680 | |
17681 static LinkElement wrapLinkElement(raw) { | |
17682 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LinkElementWrappingImplementation._wrap(raw); | |
17683 } | |
17684 | |
17685 static LocalMediaStream wrapLocalMediaStream(raw) { | |
17686 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LocalMediaStreamWrappingImplementation._wrap(raw); | |
17687 } | |
17688 | |
17689 static Location wrapLocation(raw) { | |
17690 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LocationWrappingImplementation._wrap(raw); | |
17691 } | |
17692 | |
17693 static LoseContext wrapLoseContext(raw) { | |
17694 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new LoseContextWrappingImplementation._wrap(raw); | |
17695 } | |
17696 | |
17697 static MapElement wrapMapElement(raw) { | |
17698 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MapElementWrappingImplementation._wrap(raw); | |
17699 } | |
17700 | |
17701 static MarqueeElement wrapMarqueeElement(raw) { | |
17702 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MarqueeElementWrappingImplementation._wrap(raw); | |
17703 } | |
17704 | |
17705 static MediaElement wrapMediaElement(raw) { | |
17706 if (raw === null) { return null; } | |
17707 if (raw.dartObjectLocalStorage !== null) { | |
17708 return raw.dartObjectLocalStorage; | |
17709 } | |
17710 switch (raw.typeName) { | |
17711 case "HTMLAudioElement": | |
17712 return new AudioElementWrappingImplementation._wrap(raw); | |
17713 case "HTMLMediaElement": | |
17714 return new MediaElementWrappingImplementation._wrap(raw); | |
17715 case "HTMLVideoElement": | |
17716 return new VideoElementWrappingImplementation._wrap(raw); | |
17717 default: | |
17718 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17719 } | |
17720 } | |
17721 | |
17722 static MediaError wrapMediaError(raw) { | |
17723 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaErrorWrappingImplementation._wrap(raw); | |
17724 } | |
17725 | |
17726 static MediaList wrapMediaList(raw) { | |
17727 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaListWrappingImplementation._wrap(raw); | |
17728 } | |
17729 | |
17730 static MediaQueryList wrapMediaQueryList(raw) { | |
17731 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaQueryListWrappingImplementation._wrap(raw); | |
17732 } | |
17733 | |
17734 static MediaQueryListListener wrapMediaQueryListListener(raw) { | |
17735 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaQueryListListenerWrappingImplementation._wrap(raw); | |
17736 } | |
17737 | |
17738 static MediaStream wrapMediaStream(raw) { | |
17739 if (raw === null) { return null; } | |
17740 if (raw.dartObjectLocalStorage !== null) { | |
17741 return raw.dartObjectLocalStorage; | |
17742 } | |
17743 switch (raw.typeName) { | |
17744 case "LocalMediaStream": | |
17745 return new LocalMediaStreamWrappingImplementation._wrap(raw); | |
17746 case "MediaStream": | |
17747 return new MediaStreamWrappingImplementation._wrap(raw); | |
17748 default: | |
17749 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17750 } | |
17751 } | |
17752 | |
17753 static MediaStreamList wrapMediaStreamList(raw) { | |
17754 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaStreamListWrappingImplementation._wrap(raw); | |
17755 } | |
17756 | |
17757 static MediaStreamTrack wrapMediaStreamTrack(raw) { | |
17758 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaStreamTrackWrappingImplementation._wrap(raw); | |
17759 } | |
17760 | |
17761 static MediaStreamTrackList wrapMediaStreamTrackList(raw) { | |
17762 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MediaStreamTrackListWrappingImplementation._wrap(raw); | |
17763 } | |
17764 | |
17765 static MenuElement wrapMenuElement(raw) { | |
17766 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MenuElementWrappingImplementation._wrap(raw); | |
17767 } | |
17768 | |
17769 static MessageChannel wrapMessageChannel(raw) { | |
17770 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MessageChannelWrappingImplementation._wrap(raw); | |
17771 } | |
17772 | |
17773 static MessageEvent wrapMessageEvent(raw) { | |
17774 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MessageEventWrappingImplementation._wrap(raw); | |
17775 } | |
17776 | |
17777 static MessagePort wrapMessagePort(raw) { | |
17778 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MessagePortWrappingImplementation._wrap(raw); | |
17779 } | |
17780 | |
17781 static MetaElement wrapMetaElement(raw) { | |
17782 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MetaElementWrappingImplementation._wrap(raw); | |
17783 } | |
17784 | |
17785 static Metadata wrapMetadata(raw) { | |
17786 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MetadataWrappingImplementation._wrap(raw); | |
17787 } | |
17788 | |
17789 static MetadataCallback wrapMetadataCallback(raw) { | |
17790 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MetadataCallbackWrappingImplementation._wrap(raw); | |
17791 } | |
17792 | |
17793 static MeterElement wrapMeterElement(raw) { | |
17794 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MeterElementWrappingImplementation._wrap(raw); | |
17795 } | |
17796 | |
17797 static ModElement wrapModElement(raw) { | |
17798 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ModElementWrappingImplementation._wrap(raw); | |
17799 } | |
17800 | |
17801 static MouseEvent wrapMouseEvent(raw) { | |
17802 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MouseEventWrappingImplementation._wrap(raw); | |
17803 } | |
17804 | |
17805 static MutationEvent wrapMutationEvent(raw) { | |
17806 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MutationEventWrappingImplementation._wrap(raw); | |
17807 } | |
17808 | |
17809 static MutationRecord wrapMutationRecord(raw) { | |
17810 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new MutationRecordWrappingImplementation._wrap(raw); | |
17811 } | |
17812 | |
17813 static Navigator wrapNavigator(raw) { | |
17814 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorWrappingImplementation._wrap(raw); | |
17815 } | |
17816 | |
17817 static NavigatorUserMediaError wrapNavigatorUserMediaError(raw) { | |
17818 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorUserMediaErrorWrappingImplementation._wrap(raw)
; | |
17819 } | |
17820 | |
17821 static NavigatorUserMediaErrorCallback wrapNavigatorUserMediaErrorCallback(raw
) { | |
17822 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorUserMediaErrorCallbackWrappingImplementation._w
rap(raw); | |
17823 } | |
17824 | |
17825 static NavigatorUserMediaSuccessCallback wrapNavigatorUserMediaSuccessCallback
(raw) { | |
17826 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NavigatorUserMediaSuccessCallbackWrappingImplementation.
_wrap(raw); | |
17827 } | |
17828 | |
17829 static Node wrapNode(raw) { | |
17830 if (raw === null) { return null; } | |
17831 if (raw.dartObjectLocalStorage !== null) { | |
17832 return raw.dartObjectLocalStorage; | |
17833 } | |
17834 switch (raw.typeName) { | |
17835 case "HTMLAnchorElement": | |
17836 return new AnchorElementWrappingImplementation._wrap(raw); | |
17837 /* Skipping HTMLAppletElement*/ | |
17838 case "HTMLAreaElement": | |
17839 return new AreaElementWrappingImplementation._wrap(raw); | |
17840 /* Skipping Attr*/ | |
17841 case "HTMLAudioElement": | |
17842 return new AudioElementWrappingImplementation._wrap(raw); | |
17843 case "HTMLBRElement": | |
17844 return new BRElementWrappingImplementation._wrap(raw); | |
17845 case "HTMLBaseElement": | |
17846 return new BaseElementWrappingImplementation._wrap(raw); | |
17847 /* Skipping HTMLBaseFontElement*/ | |
17848 case "HTMLBodyElement": | |
17849 return new BodyElementWrappingImplementation._wrap(raw); | |
17850 case "HTMLButtonElement": | |
17851 return new ButtonElementWrappingImplementation._wrap(raw); | |
17852 case "CDATASection": | |
17853 return new CDATASectionWrappingImplementation._wrap(raw); | |
17854 case "HTMLCanvasElement": | |
17855 return new CanvasElementWrappingImplementation._wrap(raw); | |
17856 case "CharacterData": | |
17857 return new CharacterDataWrappingImplementation._wrap(raw); | |
17858 case "Comment": | |
17859 return new CommentWrappingImplementation._wrap(raw); | |
17860 case "HTMLDListElement": | |
17861 return new DListElementWrappingImplementation._wrap(raw); | |
17862 case "HTMLDataListElement": | |
17863 return new DataListElementWrappingImplementation._wrap(raw); | |
17864 case "HTMLDetailsElement": | |
17865 return new DetailsElementWrappingImplementation._wrap(raw); | |
17866 /* Skipping HTMLDirectoryElement*/ | |
17867 case "HTMLDivElement": | |
17868 return new DivElementWrappingImplementation._wrap(raw); | |
17869 case "HTMLDocument": | |
17870 return new DocumentWrappingImplementation._wrap(raw, raw.documentElement
); | |
17871 case "DocumentFragment": | |
17872 return new DocumentFragmentWrappingImplementation._wrap(raw); | |
17873 /* Skipping DocumentType*/ | |
17874 case "HTMLElement": | |
17875 return new ElementWrappingImplementation._wrap(raw); | |
17876 case "HTMLEmbedElement": | |
17877 return new EmbedElementWrappingImplementation._wrap(raw); | |
17878 case "Entity": | |
17879 return new EntityWrappingImplementation._wrap(raw); | |
17880 case "EntityReference": | |
17881 return new EntityReferenceWrappingImplementation._wrap(raw); | |
17882 case "HTMLFieldSetElement": | |
17883 return new FieldSetElementWrappingImplementation._wrap(raw); | |
17884 case "HTMLFontElement": | |
17885 return new FontElementWrappingImplementation._wrap(raw); | |
17886 case "HTMLFormElement": | |
17887 return new FormElementWrappingImplementation._wrap(raw); | |
17888 /* Skipping HTMLFrameElement*/ | |
17889 /* Skipping HTMLFrameSetElement*/ | |
17890 case "HTMLHRElement": | |
17891 return new HRElementWrappingImplementation._wrap(raw); | |
17892 case "HTMLHeadElement": | |
17893 return new HeadElementWrappingImplementation._wrap(raw); | |
17894 case "HTMLHeadingElement": | |
17895 return new HeadingElementWrappingImplementation._wrap(raw); | |
17896 case "HTMLHtmlElement": | |
17897 return new DocumentWrappingImplementation._wrap(raw.parentNode, raw); | |
17898 case "HTMLIFrameElement": | |
17899 return new IFrameElementWrappingImplementation._wrap(raw); | |
17900 case "HTMLImageElement": | |
17901 return new ImageElementWrappingImplementation._wrap(raw); | |
17902 case "HTMLInputElement": | |
17903 return new InputElementWrappingImplementation._wrap(raw); | |
17904 /* Skipping HTMLIsIndexElement*/ | |
17905 case "HTMLKeygenElement": | |
17906 return new KeygenElementWrappingImplementation._wrap(raw); | |
17907 case "HTMLLIElement": | |
17908 return new LIElementWrappingImplementation._wrap(raw); | |
17909 case "HTMLLabelElement": | |
17910 return new LabelElementWrappingImplementation._wrap(raw); | |
17911 case "HTMLLegendElement": | |
17912 return new LegendElementWrappingImplementation._wrap(raw); | |
17913 case "HTMLLinkElement": | |
17914 return new LinkElementWrappingImplementation._wrap(raw); | |
17915 case "HTMLMapElement": | |
17916 return new MapElementWrappingImplementation._wrap(raw); | |
17917 case "HTMLMarqueeElement": | |
17918 return new MarqueeElementWrappingImplementation._wrap(raw); | |
17919 case "HTMLMediaElement": | |
17920 return new MediaElementWrappingImplementation._wrap(raw); | |
17921 case "HTMLMenuElement": | |
17922 return new MenuElementWrappingImplementation._wrap(raw); | |
17923 case "HTMLMetaElement": | |
17924 return new MetaElementWrappingImplementation._wrap(raw); | |
17925 case "HTMLMeterElement": | |
17926 return new MeterElementWrappingImplementation._wrap(raw); | |
17927 case "HTMLModElement": | |
17928 return new ModElementWrappingImplementation._wrap(raw); | |
17929 case "Node": | |
17930 return new NodeWrappingImplementation._wrap(raw); | |
17931 case "Notation": | |
17932 return new NotationWrappingImplementation._wrap(raw); | |
17933 case "HTMLOListElement": | |
17934 return new OListElementWrappingImplementation._wrap(raw); | |
17935 case "HTMLObjectElement": | |
17936 return new ObjectElementWrappingImplementation._wrap(raw); | |
17937 case "HTMLOptGroupElement": | |
17938 return new OptGroupElementWrappingImplementation._wrap(raw); | |
17939 case "HTMLOptionElement": | |
17940 return new OptionElementWrappingImplementation._wrap(raw); | |
17941 case "HTMLOutputElement": | |
17942 return new OutputElementWrappingImplementation._wrap(raw); | |
17943 case "HTMLParagraphElement": | |
17944 return new ParagraphElementWrappingImplementation._wrap(raw); | |
17945 case "HTMLParamElement": | |
17946 return new ParamElementWrappingImplementation._wrap(raw); | |
17947 case "HTMLPreElement": | |
17948 return new PreElementWrappingImplementation._wrap(raw); | |
17949 case "ProcessingInstruction": | |
17950 return new ProcessingInstructionWrappingImplementation._wrap(raw); | |
17951 case "HTMLProgressElement": | |
17952 return new ProgressElementWrappingImplementation._wrap(raw); | |
17953 case "HTMLQuoteElement": | |
17954 return new QuoteElementWrappingImplementation._wrap(raw); | |
17955 case "HTMLScriptElement": | |
17956 return new ScriptElementWrappingImplementation._wrap(raw); | |
17957 case "HTMLSelectElement": | |
17958 return new SelectElementWrappingImplementation._wrap(raw); | |
17959 case "HTMLSourceElement": | |
17960 return new SourceElementWrappingImplementation._wrap(raw); | |
17961 case "HTMLSpanElement": | |
17962 return new SpanElementWrappingImplementation._wrap(raw); | |
17963 case "HTMLStyleElement": | |
17964 return new StyleElementWrappingImplementation._wrap(raw); | |
17965 case "HTMLTableCaptionElement": | |
17966 return new TableCaptionElementWrappingImplementation._wrap(raw); | |
17967 case "HTMLTableCellElement": | |
17968 return new TableCellElementWrappingImplementation._wrap(raw); | |
17969 case "HTMLTableColElement": | |
17970 return new TableColElementWrappingImplementation._wrap(raw); | |
17971 case "HTMLTableElement": | |
17972 return new TableElementWrappingImplementation._wrap(raw); | |
17973 case "HTMLTableRowElement": | |
17974 return new TableRowElementWrappingImplementation._wrap(raw); | |
17975 case "HTMLTableSectionElement": | |
17976 return new TableSectionElementWrappingImplementation._wrap(raw); | |
17977 case "Text": | |
17978 return new TextWrappingImplementation._wrap(raw); | |
17979 case "HTMLTextAreaElement": | |
17980 return new TextAreaElementWrappingImplementation._wrap(raw); | |
17981 case "HTMLTitleElement": | |
17982 return new TitleElementWrappingImplementation._wrap(raw); | |
17983 case "HTMLTrackElement": | |
17984 return new TrackElementWrappingImplementation._wrap(raw); | |
17985 case "HTMLUListElement": | |
17986 return new UListElementWrappingImplementation._wrap(raw); | |
17987 case "HTMLUnknownElement": | |
17988 return new UnknownElementWrappingImplementation._wrap(raw); | |
17989 case "HTMLVideoElement": | |
17990 return new VideoElementWrappingImplementation._wrap(raw); | |
17991 default: | |
17992 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
17993 } | |
17994 } | |
17995 | |
17996 static Notation wrapNotation(raw) { | |
17997 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NotationWrappingImplementation._wrap(raw); | |
17998 } | |
17999 | |
18000 static Notification wrapNotification(raw) { | |
18001 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NotificationWrappingImplementation._wrap(raw); | |
18002 } | |
18003 | |
18004 static NotificationCenter wrapNotificationCenter(raw) { | |
18005 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new NotificationCenterWrappingImplementation._wrap(raw); | |
18006 } | |
18007 | |
18008 static OESStandardDerivatives wrapOESStandardDerivatives(raw) { | |
18009 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OESStandardDerivativesWrappingImplementation._wrap(raw); | |
18010 } | |
18011 | |
18012 static OESTextureFloat wrapOESTextureFloat(raw) { | |
18013 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OESTextureFloatWrappingImplementation._wrap(raw); | |
18014 } | |
18015 | |
18016 static OESVertexArrayObject wrapOESVertexArrayObject(raw) { | |
18017 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OESVertexArrayObjectWrappingImplementation._wrap(raw); | |
18018 } | |
18019 | |
18020 static OListElement wrapOListElement(raw) { | |
18021 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OListElementWrappingImplementation._wrap(raw); | |
18022 } | |
18023 | |
18024 static ObjectElement wrapObjectElement(raw) { | |
18025 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ObjectElementWrappingImplementation._wrap(raw); | |
18026 } | |
18027 | |
18028 static OperationNotAllowedException wrapOperationNotAllowedException(raw) { | |
18029 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OperationNotAllowedExceptionWrappingImplementation._wrap
(raw); | |
18030 } | |
18031 | |
18032 static OptGroupElement wrapOptGroupElement(raw) { | |
18033 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OptGroupElementWrappingImplementation._wrap(raw); | |
18034 } | |
18035 | |
18036 static OptionElement wrapOptionElement(raw) { | |
18037 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OptionElementWrappingImplementation._wrap(raw); | |
18038 } | |
18039 | |
18040 static OutputElement wrapOutputElement(raw) { | |
18041 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OutputElementWrappingImplementation._wrap(raw); | |
18042 } | |
18043 | |
18044 static OverflowEvent wrapOverflowEvent(raw) { | |
18045 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new OverflowEventWrappingImplementation._wrap(raw); | |
18046 } | |
18047 | |
18048 static PageTransitionEvent wrapPageTransitionEvent(raw) { | |
18049 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PageTransitionEventWrappingImplementation._wrap(raw); | |
18050 } | |
18051 | |
18052 static ParagraphElement wrapParagraphElement(raw) { | |
18053 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ParagraphElementWrappingImplementation._wrap(raw); | |
18054 } | |
18055 | |
18056 static ParamElement wrapParamElement(raw) { | |
18057 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ParamElementWrappingImplementation._wrap(raw); | |
18058 } | |
18059 | |
18060 static Point wrapPoint(raw) { | |
18061 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PointWrappingImplementation._wrap(raw); | |
18062 } | |
18063 | |
18064 static PopStateEvent wrapPopStateEvent(raw) { | |
18065 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PopStateEventWrappingImplementation._wrap(raw); | |
18066 } | |
18067 | |
18068 static PositionCallback wrapPositionCallback(raw) { | |
18069 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PositionCallbackWrappingImplementation._wrap(raw); | |
18070 } | |
18071 | |
18072 static PositionError wrapPositionError(raw) { | |
18073 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PositionErrorWrappingImplementation._wrap(raw); | |
18074 } | |
18075 | |
18076 static PositionErrorCallback wrapPositionErrorCallback(raw) { | |
18077 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PositionErrorCallbackWrappingImplementation._wrap(raw); | |
18078 } | |
18079 | |
18080 static PreElement wrapPreElement(raw) { | |
18081 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new PreElementWrappingImplementation._wrap(raw); | |
18082 } | |
18083 | |
18084 static ProcessingInstruction wrapProcessingInstruction(raw) { | |
18085 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ProcessingInstructionWrappingImplementation._wrap(raw); | |
18086 } | |
18087 | |
18088 static ProgressElement wrapProgressElement(raw) { | |
18089 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ProgressElementWrappingImplementation._wrap(raw); | |
18090 } | |
18091 | |
18092 static ProgressEvent wrapProgressEvent(raw) { | |
18093 if (raw === null) { return null; } | |
18094 if (raw.dartObjectLocalStorage !== null) { | |
18095 return raw.dartObjectLocalStorage; | |
18096 } | |
18097 switch (raw.typeName) { | |
18098 case "ProgressEvent": | |
18099 return new ProgressEventWrappingImplementation._wrap(raw); | |
18100 case "XMLHttpRequestProgressEvent": | |
18101 return new XMLHttpRequestProgressEventWrappingImplementation._wrap(raw); | |
18102 default: | |
18103 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
18104 } | |
18105 } | |
18106 | |
18107 static QuoteElement wrapQuoteElement(raw) { | |
18108 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new QuoteElementWrappingImplementation._wrap(raw); | |
18109 } | |
18110 | |
18111 static RGBColor wrapRGBColor(raw) { | |
18112 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new RGBColorWrappingImplementation._wrap(raw); | |
18113 } | |
18114 | |
18115 static Range wrapRange(raw) { | |
18116 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new RangeWrappingImplementation._wrap(raw); | |
18117 } | |
18118 | |
18119 static RangeException wrapRangeException(raw) { | |
18120 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new RangeExceptionWrappingImplementation._wrap(raw); | |
18121 } | |
18122 | |
18123 static Rect wrapRect(raw) { | |
18124 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new RectWrappingImplementation._wrap(raw); | |
18125 } | |
18126 | |
18127 static Screen wrapScreen(raw) { | |
18128 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ScreenWrappingImplementation._wrap(raw); | |
18129 } | |
18130 | |
18131 static ScriptElement wrapScriptElement(raw) { | |
18132 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ScriptElementWrappingImplementation._wrap(raw); | |
18133 } | |
18134 | |
18135 static SelectElement wrapSelectElement(raw) { | |
18136 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SelectElementWrappingImplementation._wrap(raw); | |
18137 } | |
18138 | |
18139 static SharedWorker wrapSharedWorker(raw) { | |
18140 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SharedWorkerWrappingImplementation._wrap(raw); | |
18141 } | |
18142 | |
18143 static SourceElement wrapSourceElement(raw) { | |
18144 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SourceElementWrappingImplementation._wrap(raw); | |
18145 } | |
18146 | |
18147 static SpanElement wrapSpanElement(raw) { | |
18148 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SpanElementWrappingImplementation._wrap(raw); | |
18149 } | |
18150 | |
18151 static SpeechInputEvent wrapSpeechInputEvent(raw) { | |
18152 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SpeechInputEventWrappingImplementation._wrap(raw); | |
18153 } | |
18154 | |
18155 static SpeechInputResult wrapSpeechInputResult(raw) { | |
18156 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SpeechInputResultWrappingImplementation._wrap(raw); | |
18157 } | |
18158 | |
18159 static SpeechInputResultList wrapSpeechInputResultList(raw) { | |
18160 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new SpeechInputResultListWrappingImplementation._wrap(raw); | |
18161 } | |
18162 | |
18163 static Storage wrapStorage(raw) { | |
18164 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageWrappingImplementation._wrap(raw); | |
18165 } | |
18166 | |
18167 static StorageEvent wrapStorageEvent(raw) { | |
18168 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageEventWrappingImplementation._wrap(raw); | |
18169 } | |
18170 | |
18171 static StorageInfo wrapStorageInfo(raw) { | |
18172 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageInfoWrappingImplementation._wrap(raw); | |
18173 } | |
18174 | |
18175 static StorageInfoErrorCallback wrapStorageInfoErrorCallback(raw) { | |
18176 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageInfoErrorCallbackWrappingImplementation._wrap(raw
); | |
18177 } | |
18178 | |
18179 static StorageInfoQuotaCallback wrapStorageInfoQuotaCallback(raw) { | |
18180 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageInfoQuotaCallbackWrappingImplementation._wrap(raw
); | |
18181 } | |
18182 | |
18183 static StorageInfoUsageCallback wrapStorageInfoUsageCallback(raw) { | |
18184 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StorageInfoUsageCallbackWrappingImplementation._wrap(raw
); | |
18185 } | |
18186 | |
18187 static StringCallback wrapStringCallback(raw) { | |
18188 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StringCallbackWrappingImplementation._wrap(raw); | |
18189 } | |
18190 | |
18191 static StyleElement wrapStyleElement(raw) { | |
18192 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StyleElementWrappingImplementation._wrap(raw); | |
18193 } | |
18194 | |
18195 static StyleMedia wrapStyleMedia(raw) { | |
18196 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StyleMediaWrappingImplementation._wrap(raw); | |
18197 } | |
18198 | |
18199 static StyleSheet wrapStyleSheet(raw) { | |
18200 if (raw === null) { return null; } | |
18201 if (raw.dartObjectLocalStorage !== null) { | |
18202 return raw.dartObjectLocalStorage; | |
18203 } | |
18204 switch (raw.typeName) { | |
18205 case "CSSStyleSheet": | |
18206 return new CSSStyleSheetWrappingImplementation._wrap(raw); | |
18207 case "StyleSheet": | |
18208 return new StyleSheetWrappingImplementation._wrap(raw); | |
18209 default: | |
18210 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
18211 } | |
18212 } | |
18213 | |
18214 static StyleSheetList wrapStyleSheetList(raw) { | |
18215 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new StyleSheetListWrappingImplementation._wrap(raw); | |
18216 } | |
18217 | |
18218 static TableCaptionElement wrapTableCaptionElement(raw) { | |
18219 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableCaptionElementWrappingImplementation._wrap(raw); | |
18220 } | |
18221 | |
18222 static TableCellElement wrapTableCellElement(raw) { | |
18223 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableCellElementWrappingImplementation._wrap(raw); | |
18224 } | |
18225 | |
18226 static TableColElement wrapTableColElement(raw) { | |
18227 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableColElementWrappingImplementation._wrap(raw); | |
18228 } | |
18229 | |
18230 static TableElement wrapTableElement(raw) { | |
18231 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableElementWrappingImplementation._wrap(raw); | |
18232 } | |
18233 | |
18234 static TableRowElement wrapTableRowElement(raw) { | |
18235 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableRowElementWrappingImplementation._wrap(raw); | |
18236 } | |
18237 | |
18238 static TableSectionElement wrapTableSectionElement(raw) { | |
18239 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TableSectionElementWrappingImplementation._wrap(raw); | |
18240 } | |
18241 | |
18242 static Text wrapText(raw) { | |
18243 if (raw === null) { return null; } | |
18244 if (raw.dartObjectLocalStorage !== null) { | |
18245 return raw.dartObjectLocalStorage; | |
18246 } | |
18247 switch (raw.typeName) { | |
18248 case "CDATASection": | |
18249 return new CDATASectionWrappingImplementation._wrap(raw); | |
18250 case "Text": | |
18251 return new TextWrappingImplementation._wrap(raw); | |
18252 default: | |
18253 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
18254 } | |
18255 } | |
18256 | |
18257 static TextAreaElement wrapTextAreaElement(raw) { | |
18258 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TextAreaElementWrappingImplementation._wrap(raw); | |
18259 } | |
18260 | |
18261 static TextEvent wrapTextEvent(raw) { | |
18262 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TextEventWrappingImplementation._wrap(raw); | |
18263 } | |
18264 | |
18265 static TextMetrics wrapTextMetrics(raw) { | |
18266 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TextMetricsWrappingImplementation._wrap(raw); | |
18267 } | |
18268 | |
18269 static TimeRanges wrapTimeRanges(raw) { | |
18270 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TimeRangesWrappingImplementation._wrap(raw); | |
18271 } | |
18272 | |
18273 static TitleElement wrapTitleElement(raw) { | |
18274 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TitleElementWrappingImplementation._wrap(raw); | |
18275 } | |
18276 | |
18277 static Touch wrapTouch(raw) { | |
18278 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TouchWrappingImplementation._wrap(raw); | |
18279 } | |
18280 | |
18281 static TouchEvent wrapTouchEvent(raw) { | |
18282 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TouchEventWrappingImplementation._wrap(raw); | |
18283 } | |
18284 | |
18285 static TouchList wrapTouchList(raw) { | |
18286 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TouchListWrappingImplementation._wrap(raw); | |
18287 } | |
18288 | |
18289 static TrackElement wrapTrackElement(raw) { | |
18290 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TrackElementWrappingImplementation._wrap(raw); | |
18291 } | |
18292 | |
18293 static TransitionEvent wrapTransitionEvent(raw) { | |
18294 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new TransitionEventWrappingImplementation._wrap(raw); | |
18295 } | |
18296 | |
18297 static UIEvent wrapUIEvent(raw) { | |
18298 if (raw === null) { return null; } | |
18299 if (raw.dartObjectLocalStorage !== null) { | |
18300 return raw.dartObjectLocalStorage; | |
18301 } | |
18302 switch (raw.typeName) { | |
18303 case "CompositionEvent": | |
18304 return new CompositionEventWrappingImplementation._wrap(raw); | |
18305 case "KeyboardEvent": | |
18306 return new KeyboardEventWrappingImplementation._wrap(raw); | |
18307 case "MouseEvent": | |
18308 return new MouseEventWrappingImplementation._wrap(raw); | |
18309 case "TextEvent": | |
18310 return new TextEventWrappingImplementation._wrap(raw); | |
18311 case "TouchEvent": | |
18312 return new TouchEventWrappingImplementation._wrap(raw); | |
18313 case "UIEvent": | |
18314 return new UIEventWrappingImplementation._wrap(raw); | |
18315 case "WheelEvent": | |
18316 return new WheelEventWrappingImplementation._wrap(raw); | |
18317 default: | |
18318 throw new UnsupportedOperationException("Unknown type:" + raw.toString()
); | |
18319 } | |
18320 } | |
18321 | |
18322 static UListElement wrapUListElement(raw) { | |
18323 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new UListElementWrappingImplementation._wrap(raw); | |
18324 } | |
18325 | |
18326 static Uint16Array wrapUint16Array(raw) { | |
18327 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Uint16ArrayWrappingImplementation._wrap(raw); | |
18328 } | |
18329 | |
18330 static Uint32Array wrapUint32Array(raw) { | |
18331 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Uint32ArrayWrappingImplementation._wrap(raw); | |
18332 } | |
18333 | |
18334 static Uint8Array wrapUint8Array(raw) { | |
18335 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new Uint8ArrayWrappingImplementation._wrap(raw); | |
18336 } | |
18337 | |
18338 static UnknownElement wrapUnknownElement(raw) { | |
18339 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new UnknownElementWrappingImplementation._wrap(raw); | |
18340 } | |
18341 | |
18342 static ValidityState wrapValidityState(raw) { | |
18343 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new ValidityStateWrappingImplementation._wrap(raw); | |
18344 } | |
18345 | |
18346 static VideoElement wrapVideoElement(raw) { | |
18347 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new VideoElementWrappingImplementation._wrap(raw); | |
18348 } | |
18349 | |
18350 static VoidCallback wrapVoidCallback(raw) { | |
18351 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new VoidCallbackWrappingImplementation._wrap(raw); | |
18352 } | |
18353 | |
18354 static WebGLActiveInfo wrapWebGLActiveInfo(raw) { | |
18355 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLActiveInfoWrappingImplementation._wrap(raw); | |
18356 } | |
18357 | |
18358 static WebGLBuffer wrapWebGLBuffer(raw) { | |
18359 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLBufferWrappingImplementation._wrap(raw); | |
18360 } | |
18361 | |
18362 static WebGLContextAttributes wrapWebGLContextAttributes(raw) { | |
18363 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLContextAttributesWrappingImplementation._wrap(raw); | |
18364 } | |
18365 | |
18366 static WebGLContextEvent wrapWebGLContextEvent(raw) { | |
18367 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLContextEventWrappingImplementation._wrap(raw); | |
18368 } | |
18369 | |
18370 static WebGLFramebuffer wrapWebGLFramebuffer(raw) { | |
18371 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLFramebufferWrappingImplementation._wrap(raw); | |
18372 } | |
18373 | |
18374 static WebGLProgram wrapWebGLProgram(raw) { | |
18375 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLProgramWrappingImplementation._wrap(raw); | |
18376 } | |
18377 | |
18378 static WebGLRenderbuffer wrapWebGLRenderbuffer(raw) { | |
18379 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLRenderbufferWrappingImplementation._wrap(raw); | |
18380 } | |
18381 | |
18382 static WebGLRenderingContext wrapWebGLRenderingContext(raw) { | |
18383 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLRenderingContextWrappingImplementation._wrap(raw); | |
18384 } | |
18385 | |
18386 static WebGLShader wrapWebGLShader(raw) { | |
18387 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLShaderWrappingImplementation._wrap(raw); | |
18388 } | |
18389 | |
18390 static WebGLTexture wrapWebGLTexture(raw) { | |
18391 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLTextureWrappingImplementation._wrap(raw); | |
18392 } | |
18393 | |
18394 static WebGLUniformLocation wrapWebGLUniformLocation(raw) { | |
18395 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLUniformLocationWrappingImplementation._wrap(raw); | |
18396 } | |
18397 | |
18398 static WebGLVertexArrayObjectOES wrapWebGLVertexArrayObjectOES(raw) { | |
18399 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebGLVertexArrayObjectOESWrappingImplementation._wrap(ra
w); | |
18400 } | |
18401 | |
18402 static WebSocket wrapWebSocket(raw) { | |
18403 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WebSocketWrappingImplementation._wrap(raw); | |
18404 } | |
18405 | |
18406 static WheelEvent wrapWheelEvent(raw) { | |
18407 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WheelEventWrappingImplementation._wrap(raw); | |
18408 } | |
18409 | |
18410 static Window wrapWindow(raw) { | |
18411 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WindowWrappingImplementation._wrap(raw); | |
18412 } | |
18413 | |
18414 static Worker wrapWorker(raw) { | |
18415 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new WorkerWrappingImplementation._wrap(raw); | |
18416 } | |
18417 | |
18418 static XMLHttpRequest wrapXMLHttpRequest(raw) { | |
18419 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestWrappingImplementation._wrap(raw); | |
18420 } | |
18421 | |
18422 static XMLHttpRequestException wrapXMLHttpRequestException(raw) { | |
18423 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestExceptionWrappingImplementation._wrap(raw)
; | |
18424 } | |
18425 | |
18426 static XMLHttpRequestProgressEvent wrapXMLHttpRequestProgressEvent(raw) { | |
18427 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestProgressEventWrappingImplementation._wrap(
raw); | |
18428 } | |
18429 | |
18430 static XMLHttpRequestUpload wrapXMLHttpRequestUpload(raw) { | |
18431 return raw === null ? null : raw.dartObjectLocalStorage !== null ? raw.dartO
bjectLocalStorage : new XMLHttpRequestUploadWrappingImplementation._wrap(raw); | |
18432 } | |
18433 | |
18434 static unwrapMaybePrimitive(raw) { | |
18435 return raw is DOMWrapperBase ? raw._ptr : raw; | |
18436 } | |
18437 | |
18438 static unwrap(raw) { | |
18439 return raw === null ? null : raw._ptr; | |
18440 } | |
18441 | |
18442 | |
18443 static void initialize(var rawWindow) { | |
18444 secretWindow = wrapWindow(rawWindow); | |
18445 secretDocument = wrapDocument(rawWindow.document); | |
18446 } | |
18447 | |
18448 } | |
18449 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18450 // for details. All rights reserved. Use of this source code is governed by a | |
18451 // BSD-style license that can be found in the LICENSE file. | |
18452 | |
18453 interface AbstractWorkerEvents extends Events { | |
18454 EventListenerList get error(); | |
18455 } | |
18456 | |
18457 interface AbstractWorker extends EventTarget { | |
18458 AbstractWorkerEvents get on(); | |
18459 } | |
18460 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18461 // for details. All rights reserved. Use of this source code is governed by a | |
18462 // BSD-style license that can be found in the LICENSE file. | |
18463 | |
18464 class AbstractWorkerEventsImplementation extends EventsImplementation implements
AbstractWorkerEvents { | |
18465 AbstractWorkerEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
18466 | |
18467 EventListenerList get error() => _get('error'); | |
18468 } | |
18469 | |
18470 class AbstractWorkerWrappingImplementation extends EventTargetWrappingImplementa
tion implements AbstractWorker { | |
18471 AbstractWorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
18472 | |
18473 AbstractWorkerEvents get on() { | |
18474 if (_on === null) { | |
18475 _on = new AbstractWorkerEventsImplementation._wrap(_ptr); | |
18476 } | |
18477 return _on; | |
18478 } | |
18479 } | |
18480 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18481 // for details. All rights reserved. Use of this source code is governed by a | |
18482 // BSD-style license that can be found in the LICENSE file. | |
18483 | |
18484 interface DOMApplicationCacheEvents extends Events { | |
18485 EventListenerList get cached(); | |
18486 EventListenerList get checking(); | |
18487 EventListenerList get downloading(); | |
18488 EventListenerList get error(); | |
18489 EventListenerList get noUpdate(); | |
18490 EventListenerList get obsolete(); | |
18491 EventListenerList get progress(); | |
18492 EventListenerList get updateReady(); | |
18493 } | |
18494 | |
18495 interface DOMApplicationCache extends EventTarget { | |
18496 | |
18497 static final int CHECKING = 2; | |
18498 | |
18499 static final int DOWNLOADING = 3; | |
18500 | |
18501 static final int IDLE = 1; | |
18502 | |
18503 static final int OBSOLETE = 5; | |
18504 | |
18505 static final int UNCACHED = 0; | |
18506 | |
18507 static final int UPDATEREADY = 4; | |
18508 | |
18509 int get status(); | |
18510 | |
18511 void swapCache(); | |
18512 | |
18513 void update(); | |
18514 | |
18515 DOMApplicationCacheEvents get on(); | |
18516 } | |
18517 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18518 // for details. All rights reserved. Use of this source code is governed by a | |
18519 // BSD-style license that can be found in the LICENSE file. | |
18520 | |
18521 interface CSSStyleDeclaration { | |
18522 | |
18523 String get cssText(); | |
18524 | |
18525 void set cssText(String value); | |
18526 | |
18527 int get length(); | |
18528 | |
18529 CSSRule get parentRule(); | |
18530 | |
18531 CSSValue getPropertyCSSValue(String propertyName); | |
18532 | |
18533 String getPropertyPriority(String propertyName); | |
18534 | |
18535 String getPropertyShorthand(String propertyName); | |
18536 | |
18537 String getPropertyValue(String propertyName); | |
18538 | |
18539 bool isPropertyImplicit(String propertyName); | |
18540 | |
18541 String item(int index); | |
18542 | |
18543 String removeProperty(String propertyName); | |
18544 | |
18545 void setProperty(String propertyName, String value, [String priority]); | |
18546 } | |
18547 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18548 // for details. All rights reserved. Use of this source code is governed by a | |
18549 // BSD-style license that can be found in the LICENSE file. | |
18550 | |
18551 class CSSStyleDeclarationWrappingImplementation extends DOMWrapperBase implement
s CSSStyleDeclaration { | |
18552 CSSStyleDeclarationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
18553 | |
18554 String get cssText() { return _ptr.cssText; } | |
18555 | |
18556 void set cssText(String value) { _ptr.cssText = value; } | |
18557 | |
18558 int get length() { return _ptr.length; } | |
18559 | |
18560 CSSRule get parentRule() { return LevelDom.wrapCSSRule(_ptr.parentRule); } | |
18561 | |
18562 CSSValue getPropertyCSSValue(String propertyName) { | |
18563 return LevelDom.wrapCSSValue(_ptr.getPropertyCSSValue(propertyName)); | |
18564 } | |
18565 | |
18566 String getPropertyPriority(String propertyName) { | |
18567 return _ptr.getPropertyPriority(propertyName); | |
18568 } | |
18569 | |
18570 String getPropertyShorthand(String propertyName) { | |
18571 return _ptr.getPropertyShorthand(propertyName); | |
18572 } | |
18573 | |
18574 String getPropertyValue(String propertyName) { | |
18575 return _ptr.getPropertyValue(propertyName); | |
18576 } | |
18577 | |
18578 bool isPropertyImplicit(String propertyName) { | |
18579 return _ptr.isPropertyImplicit(propertyName); | |
18580 } | |
18581 | |
18582 String item(int index) { | |
18583 return _ptr.item(index); | |
18584 } | |
18585 | |
18586 String removeProperty(String propertyName) { | |
18587 return _ptr.removeProperty(propertyName); | |
18588 } | |
18589 | |
18590 void setProperty(String propertyName, String value, [String priority = '']) { | |
18591 _ptr.setProperty(propertyName, value, priority); | |
18592 } | |
18593 | |
18594 String get typeName() { return "CSSStyleDeclaration"; } | |
18595 } | |
18596 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18597 // for details. All rights reserved. Use of this source code is governed by a | |
18598 // BSD-style license that can be found in the LICENSE file. | |
18599 | |
18600 class DOMApplicationCacheEventsImplementation extends EventsImplementation | |
18601 implements DOMApplicationCacheEvents { | |
18602 DOMApplicationCacheEventsImplementation._wrap(ptr) : super._wrap(ptr); | |
18603 | |
18604 EventListenerList get cached() => _get('cached'); | |
18605 EventListenerList get checking() => _get('checking'); | |
18606 EventListenerList get downloading() => _get('downloading'); | |
18607 EventListenerList get error() => _get('error'); | |
18608 EventListenerList get noUpdate() => _get('noupdate'); | |
18609 EventListenerList get obsolete() => _get('obsolete'); | |
18610 EventListenerList get progress() => _get('progress'); | |
18611 EventListenerList get updateReady() => _get('updateready'); | |
18612 } | |
18613 | |
18614 class DOMApplicationCacheWrappingImplementation extends EventTargetWrappingImple
mentation implements DOMApplicationCache { | |
18615 DOMApplicationCacheWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
18616 | |
18617 int get status() => _ptr.status; | |
18618 | |
18619 void swapCache() { | |
18620 _ptr.swapCache(); | |
18621 } | |
18622 | |
18623 void update() { | |
18624 _ptr.update(); | |
18625 } | |
18626 | |
18627 DOMApplicationCacheEvents get on() { | |
18628 if (_on === null) { | |
18629 _on = new DOMApplicationCacheEventsImplementation._wrap(_ptr); | |
18630 } | |
18631 return _on; | |
18632 } | |
18633 } | |
18634 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18635 // for details. All rights reserved. Use of this source code is governed by a | |
18636 // BSD-style license that can be found in the LICENSE file. | |
18637 | |
18638 class DOMWrapperBase { | |
18639 final _ptr; | |
18640 | |
18641 DOMWrapperBase._wrap(this._ptr) { | |
18642 // We should never be creating duplicate wrappers. | |
18643 assert(_ptr.dartObjectLocalStorage === null); | |
18644 _ptr.dartObjectLocalStorage = this; | |
18645 } | |
18646 } | |
18647 | |
18648 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18649 // for details. All rights reserved. Use of this source code is governed by a | |
18650 // BSD-style license that can be found in the LICENSE file. | |
18651 | |
18652 interface DocumentEvents extends ElementEvents { | |
18653 EventListenerList get readyStateChange(); | |
18654 EventListenerList get selectionChange(); | |
18655 EventListenerList get contentLoaded(); | |
18656 } | |
18657 | |
18658 // TODO(jacobr): add DocumentFragment ctor | |
18659 // add something smarted for document.domain | |
18660 interface Document extends Element /*, common.NodeSelector */ { | |
18661 | |
18662 // TODO(jacobr): remove. | |
18663 Event createEvent([String eventType]); | |
18664 | |
18665 Element get activeElement(); | |
18666 | |
18667 // TODO(jacobr): add | |
18668 // Map<String, Class> tags; | |
18669 | |
18670 Element get body(); | |
18671 | |
18672 void set body(Element value); | |
18673 | |
18674 String get charset(); | |
18675 | |
18676 void set charset(String value); | |
18677 | |
18678 // FIXME(slightlyoff): FIX COOKIES, MMM...COOKIES. ME WANT COOKIES!! | |
18679 // Map<String, CookieList> cookies | |
18680 // Map<String, Cookie> CookieList | |
18681 String get cookie(); | |
18682 | |
18683 void set cookie(String value); | |
18684 | |
18685 Window get window(); | |
18686 | |
18687 String get domain(); | |
18688 | |
18689 HeadElement get head(); | |
18690 | |
18691 String get lastModified(); | |
18692 | |
18693 // TODO(jacobr): remove once on.contentLoaded is changed to return a Promise. | |
18694 String get readyState(); | |
18695 | |
18696 String get referrer(); | |
18697 | |
18698 StyleSheetList get styleSheets(); | |
18699 | |
18700 // TODO(jacobr): should this be removed? Users could write document.query("tit
le").text instead. | |
18701 String get title(); | |
18702 | |
18703 void set title(String value); | |
18704 | |
18705 bool get webkitHidden(); | |
18706 | |
18707 String get webkitVisibilityState(); | |
18708 | |
18709 Future<Range> caretRangeFromPoint([int x, int y]); | |
18710 | |
18711 // TODO(jacobr): remove. | |
18712 Element createElement([String tagName]); | |
18713 | |
18714 Future<Element> elementFromPoint([int x, int y]); | |
18715 | |
18716 bool execCommand([String command, bool userInterface, String value]); | |
18717 | |
18718 // TODO(jacobr): remove once a new API is specified | |
18719 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, | |
18720 int width, int height); | |
18721 | |
18722 bool queryCommandEnabled([String command]); | |
18723 | |
18724 bool queryCommandIndeterm([String command]); | |
18725 | |
18726 bool queryCommandState([String command]); | |
18727 | |
18728 bool queryCommandSupported([String command]); | |
18729 | |
18730 String queryCommandValue([String command]); | |
18731 | |
18732 String get manifest(); | |
18733 | |
18734 void set manifest(String value); | |
18735 | |
18736 DocumentEvents get on(); | |
18737 } | |
18738 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18739 // for details. All rights reserved. Use of this source code is governed by a | |
18740 // BSD-style license that can be found in the LICENSE file. | |
18741 | |
18742 /** | |
18743 * Provides a Map abstraction on top of data-* attributes, similar to the | |
18744 * dataSet in the old DOM. | |
18745 */ | |
18746 class _DataAttributeMap implements Map<String, String> { | |
18747 | |
18748 final Map<String, String> _attributes; | |
18749 | |
18750 _DataAttributeMap(this._attributes); | |
18751 | |
18752 // interface Map | |
18753 | |
18754 // TODO: Use lazy iterator when it is available on Map. | |
18755 bool containsValue(String value) => getValues().some((v) => v == value); | |
18756 | |
18757 bool containsKey(String key) => _attributes.containsKey(_attr(key)); | |
18758 | |
18759 String operator [](String key) => _attributes[_attr(key)]; | |
18760 | |
18761 void operator []=(String key, String value) { | |
18762 _attributes[_attr(key)] = value; | |
18763 } | |
18764 | |
18765 String putIfAbsent(String key, String ifAbsent()) { | |
18766 if (!containsKey(key)) { | |
18767 return this[key] = ifAbsent(); | |
18768 } | |
18769 return this[key]; | |
18770 } | |
18771 | |
18772 String remove(String key) => _attributes.remove(_attr(key)); | |
18773 | |
18774 void clear() { | |
18775 // Needs to operate on a snapshot since we are mutatiting the collection. | |
18776 for (String key in getKeys()) { | |
18777 remove(key); | |
18778 } | |
18779 } | |
18780 | |
18781 void forEach(void f(String key, String value)) { | |
18782 _attributes.forEach((String key, String value) { | |
18783 if (_matches(key)) { | |
18784 f(_strip(key), value); | |
18785 } | |
18786 }); | |
18787 } | |
18788 | |
18789 Collection<String> getKeys() { | |
18790 final keys = new List<String>(); | |
18791 _attributes.forEach((String key, String value) { | |
18792 if (_matches(key)) { | |
18793 keys.add(_strip(key)); | |
18794 } | |
18795 }); | |
18796 return keys; | |
18797 } | |
18798 | |
18799 Collection<String> getValues() { | |
18800 final values = new List<String>(); | |
18801 _attributes.forEach((String key, String value) { | |
18802 if (_matches(key)) { | |
18803 values.add(value); | |
18804 } | |
18805 }); | |
18806 return values; | |
18807 } | |
18808 | |
18809 int get length() => getKeys().length; | |
18810 | |
18811 // TODO: Use lazy iterator when it is available on Map. | |
18812 bool isEmpty() => length == 0; | |
18813 | |
18814 // Helpers. | |
18815 String _attr(String key) => 'data-$key'; | |
18816 bool _matches(String key) => key.startsWith('data-'); | |
18817 String _strip(String key) => key.substring(5); | |
18818 } | |
18819 | |
18820 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18821 // for details. All rights reserved. Use of this source code is governed by a | |
18822 // BSD-style license that can be found in the LICENSE file. | |
18823 | |
18824 interface BodyElementEvents extends ElementEvents { | |
18825 EventListenerList get beforeUnload(); | |
18826 EventListenerList get hashChange(); | |
18827 EventListenerList get message(); | |
18828 EventListenerList get offline(); | |
18829 EventListenerList get online(); | |
18830 EventListenerList get orientationChange(); | |
18831 EventListenerList get popState(); | |
18832 EventListenerList get resize(); | |
18833 EventListenerList get storage(); | |
18834 EventListenerList get unLoad(); | |
18835 } | |
18836 | |
18837 interface BodyElement extends Element { | |
18838 BodyElementEvents get on(); | |
18839 } | |
18840 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18841 // for details. All rights reserved. Use of this source code is governed by a | |
18842 // BSD-style license that can be found in the LICENSE file. | |
18843 | |
18844 class BodyElementEventsImplementation | |
18845 extends ElementEventsImplementation implements BodyElementEvents { | |
18846 | |
18847 BodyElementEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
18848 | |
18849 EventListenerList get beforeUnload() => _get('beforeunload'); | |
18850 EventListenerList get hashChange() => _get('hashchange'); | |
18851 EventListenerList get message() => _get('message'); | |
18852 EventListenerList get offline() => _get('offline'); | |
18853 EventListenerList get online() => _get('online'); | |
18854 EventListenerList get orientationChange() => _get('orientationchange'); | |
18855 EventListenerList get popState() => _get('popstate'); | |
18856 EventListenerList get resize() => _get('resize'); | |
18857 EventListenerList get storage() => _get('storage'); | |
18858 EventListenerList get unLoad() => _get('unload'); | |
18859 } | |
18860 | |
18861 class BodyElementWrappingImplementation | |
18862 extends ElementWrappingImplementation implements BodyElement { | |
18863 | |
18864 BodyElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
18865 | |
18866 BodyElementEvents get on() { | |
18867 if (_on === null) { | |
18868 _on = new BodyElementEventsImplementation._wrap(_ptr); | |
18869 } | |
18870 return _on; | |
18871 } | |
18872 } | |
18873 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
18874 // for details. All rights reserved. Use of this source code is governed by a | |
18875 // BSD-style license that can be found in the LICENSE file. | |
18876 | |
18877 // TODO - figure out whether classList exists, and if so use that | |
18878 // rather than the className property that is being used here. | |
18879 | |
18880 class _CssClassSet implements Set<String> { | |
18881 | |
18882 final _element; | |
18883 | |
18884 _CssClassSet(this._element); | |
18885 | |
18886 String toString() { | |
18887 return _formatSet(_read()); | |
18888 } | |
18889 | |
18890 // interface Iterable - BEGIN | |
18891 Iterator<String> iterator() { | |
18892 return _read().iterator(); | |
18893 } | |
18894 // interface Iterable - END | |
18895 | |
18896 // interface Collection - BEGIN | |
18897 void forEach(void f(String element)) { | |
18898 _read().forEach(f); | |
18899 } | |
18900 | |
18901 Collection<String> filter(bool f(String element)) { | |
18902 return _read().filter(f); | |
18903 } | |
18904 | |
18905 bool every(bool f(String element)) { | |
18906 return _read().every(f); | |
18907 } | |
18908 | |
18909 bool some(bool f(String element)) { | |
18910 return _read().some(f); | |
18911 } | |
18912 | |
18913 bool isEmpty() { | |
18914 return _read().isEmpty(); | |
18915 } | |
18916 | |
18917 int get length() { | |
18918 return _read().length; | |
18919 } | |
18920 // interface Collection - END | |
18921 | |
18922 // interface Set - BEGIN | |
18923 bool contains(String value) { | |
18924 return _read().contains(value); | |
18925 } | |
18926 | |
18927 void add(String value) { | |
18928 // TODO - figure out if we need to do any validation here | |
18929 // or if the browser natively does enough | |
18930 _modify((s) => s.add(value)); | |
18931 } | |
18932 | |
18933 bool remove(String value) { | |
18934 Set<String> s = _read(); | |
18935 bool result = s.remove(value); | |
18936 _write(s); | |
18937 return result; | |
18938 } | |
18939 | |
18940 void addAll(Collection<String> collection) { | |
18941 // TODO - see comment above about validation | |
18942 _modify((s) => s.addAll(collection)); | |
18943 } | |
18944 | |
18945 void removeAll(Collection<String> collection) { | |
18946 _modify((s) => s.removeAll(collection)); | |
18947 } | |
18948 | |
18949 bool isSubsetOf(Collection<String> collection) { | |
18950 return _read().isSubsetOf(collection); | |
18951 } | |
18952 | |
18953 bool containsAll(Collection<String> collection) { | |
18954 return _read().containsAll(collection); | |
18955 } | |
18956 | |
18957 Set<String> intersection(Collection<String> other) { | |
18958 return _read().intersection(other); | |
18959 } | |
18960 | |
18961 void clear() { | |
18962 _modify((s) => s.clear()); | |
18963 } | |
18964 // interface Set - END | |
18965 | |
18966 /** | |
18967 * Helper method used to modify the set of css classes on this element. | |
18968 * | |
18969 * f - callback with: | |
18970 * s - a Set of all the css class name currently on this element. | |
18971 * | |
18972 * After f returns, the modified set is written to the | |
18973 * className property of this element. | |
18974 */ | |
18975 void _modify( f(Set<String> s)) { | |
18976 Set<String> s = _read(); | |
18977 f(s); | |
18978 _write(s); | |
18979 } | |
18980 | |
18981 /** | |
18982 * Read the class names from the HTMLElement class property, | |
18983 * and put them into a set (duplicates are discarded). | |
18984 */ | |
18985 Set<String> _read() { | |
18986 // TODO(mattsh) simplify this once split can take regex. | |
18987 Set<String> s = new Set<String>(); | |
18988 for (String name in _element.className.split(' ')) { | |
18989 String trimmed = name.trim(); | |
18990 if (!trimmed.isEmpty()) { | |
18991 s.add(trimmed); | |
18992 } | |
18993 } | |
18994 return s; | |
18995 } | |
18996 | |
18997 /** | |
18998 * Join all the elements of a set into one string and write | |
18999 * back to the element. | |
19000 */ | |
19001 void _write(Set s) { | |
19002 _element.className = _formatSet(s); | |
19003 } | |
19004 | |
19005 String _formatSet(Set<String> s) { | |
19006 // TODO(mattsh) should be able to pass Set to String.joins http:/b/5398605 | |
19007 List list = new List.from(s); | |
19008 return Strings.join(list, ' '); | |
19009 } | |
19010 | |
19011 } | |
19012 | |
19013 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
19014 // for details. All rights reserved. Use of this source code is governed by a | |
19015 // BSD-style license that can be found in the LICENSE file. | |
19016 | |
19017 interface DocumentFragment extends Node factory DocumentFragmentWrappingImplemen
tation { | |
19018 | |
19019 DocumentFragment(); | |
19020 | |
19021 Element query(String selectors); | |
19022 | |
19023 ElementList queryAll(String selectors); | |
19024 } | |
19025 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
19026 // for details. All rights reserved. Use of this source code is governed by a | |
19027 // BSD-style license that can be found in the LICENSE file. | |
19028 | |
19029 class DocumentFragmentWrappingImplementation extends NodeWrappingImplementation
implements DocumentFragment { | |
19030 DocumentFragmentWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
19031 | |
19032 factory DocumentFragmentWrappingImplementation() { | |
19033 return new DocumentFragmentWrappingImplementation._wrap( | |
19034 dom.document.createDocumentFragment()); | |
19035 } | |
19036 | |
19037 Element query(String selectors) { | |
19038 return LevelDom.wrapElement(_ptr.querySelector(selectors)); | |
19039 } | |
19040 | |
19041 ElementList queryAll(String selectors) { | |
19042 return LevelDom.wrapElementList(_ptr.querySelectorAll(selectors)); | |
19043 } | |
19044 } | |
19045 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
19046 // for details. All rights reserved. Use of this source code is governed by a | |
19047 // BSD-style license that can be found in the LICENSE file. | |
19048 | |
19049 class DocumentEventsImplementation extends ElementEventsImplementation | |
19050 implements DocumentEvents { | |
19051 | |
19052 DocumentEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
19053 | |
19054 EventListenerList get readyStateChange() => _get('readystatechange'); | |
19055 | |
19056 EventListenerList get selectionChange() => _get('selectionchange'); | |
19057 | |
19058 EventListenerList get contentLoaded() => _get('DOMContentLoaded'); | |
19059 } | |
19060 | |
19061 class DocumentWrappingImplementation extends ElementWrappingImplementation imple
ments Document { | |
19062 | |
19063 final _documentPtr; | |
19064 | |
19065 DocumentWrappingImplementation._wrap(this._documentPtr, ptr) : super._wrap(ptr
) { | |
19066 // We have to set the back ptr on the document as well as the documentElemen
t | |
19067 // so that it is always simple to detect when an existing wrapper exists. | |
19068 _documentPtr.dartObjectLocalStorage = this; | |
19069 } | |
19070 | |
19071 Element get activeElement() => LevelDom.wrapElement(_documentPtr.activeElement
); | |
19072 | |
19073 Node get parent() => null; | |
19074 | |
19075 Element get body() => LevelDom.wrapElement(_documentPtr.body); | |
19076 | |
19077 void set body(Element value) { _documentPtr.body = LevelDom.unwrap(value); } | |
19078 | |
19079 String get charset() => _documentPtr.charset; | |
19080 | |
19081 void set charset(String value) { _documentPtr.charset = value; } | |
19082 | |
19083 String get cookie() => _documentPtr.cookie; | |
19084 | |
19085 void set cookie(String value) { _documentPtr.cookie = value; } | |
19086 | |
19087 Window get window() => LevelDom.wrapWindow(_documentPtr.defaultView); | |
19088 | |
19089 void set designMode(String value) { _documentPtr.designMode = value; } | |
19090 | |
19091 String get domain() => _documentPtr.domain; | |
19092 | |
19093 HeadElement get head() => LevelDom.wrapHeadElement(_documentPtr.head); | |
19094 | |
19095 String get lastModified() => _documentPtr.lastModified; | |
19096 | |
19097 String get readyState() => _documentPtr.readyState; | |
19098 | |
19099 String get referrer() => _documentPtr.referrer; | |
19100 | |
19101 StyleSheetList get styleSheets() => LevelDom.wrapStyleSheetList(_documentPtr.s
tyleSheets); | |
19102 | |
19103 String get title() => _documentPtr.title; | |
19104 | |
19105 void set title(String value) { _documentPtr.title = value; } | |
19106 | |
19107 bool get webkitHidden() => _documentPtr.webkitHidden; | |
19108 | |
19109 String get webkitVisibilityState() => _documentPtr.webkitVisibilityState; | |
19110 | |
19111 Future<Range> caretRangeFromPoint([int x = null, int y = null]) { | |
19112 throw 'TODO(jacobr): impl promise.'; | |
19113 // return LevelDom.wrapRange(_documentPtr.caretRangeFromPoint(x, y)); | |
19114 } | |
19115 | |
19116 Element createElement([String tagName = null]) { | |
19117 return LevelDom.wrapElement(_documentPtr.createElement(tagName)); | |
19118 } | |
19119 | |
19120 Event createEvent([String eventType = null]) { | |
19121 return LevelDom.wrapEvent(_documentPtr.createEvent(eventType)); | |
19122 } | |
19123 | |
19124 Future<Element> elementFromPoint([int x = null, int y = null]) { | |
19125 throw 'TODO(jacobr): impl using promise'; | |
19126 // return LevelDom.wrapElement(_documentPtr.elementFromPoint(x, y)); | |
19127 } | |
19128 | |
19129 bool execCommand([String command = null, bool userInterface = null, String val
ue = null]) { | |
19130 return _documentPtr.execCommand(command, userInterface, value); | |
19131 } | |
19132 | |
19133 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, | |
19134 int width, int height) { | |
19135 return LevelDom.wrapCanvasRenderingContext(_documentPtr.getCSSCanvasContext(
contextId, name, width, height)); | |
19136 } | |
19137 | |
19138 bool queryCommandEnabled([String command = null]) { | |
19139 return _documentPtr.queryCommandEnabled(command); | |
19140 } | |
19141 | |
19142 bool queryCommandIndeterm([String command = null]) { | |
19143 return _documentPtr.queryCommandIndeterm(command); | |
19144 } | |
19145 | |
19146 bool queryCommandState([String command = null]) { | |
19147 return _documentPtr.queryCommandState(command); | |
19148 } | |
19149 | |
19150 bool queryCommandSupported([String command = null]) { | |
19151 return _documentPtr.queryCommandSupported(command); | |
19152 } | |
19153 | |
19154 String queryCommandValue([String command = null]) { | |
19155 return _documentPtr.queryCommandValue(command); | |
19156 } | |
19157 | |
19158 String get manifest() => _ptr.manifest; | |
19159 | |
19160 void set manifest(String value) { _ptr.manifest = value; } | |
19161 | |
19162 DocumentEvents get on() { | |
19163 if (_on === null) { | |
19164 _on = new DocumentEventsImplementation._wrap(_ptr); | |
19165 } | |
19166 return _on; | |
19167 } | |
19168 } | |
19169 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
19170 // for details. All rights reserved. Use of this source code is governed by a | |
19171 // BSD-style license that can be found in the LICENSE file. | |
19172 | |
19173 interface ElementList extends List<Element> { | |
19174 // TODO(jacobr): add element batch manipulation methods. | |
19175 Element get first(); | |
19176 // TODO(jacobr): add insertAt | |
19177 } | |
19178 | |
19179 class DeferredElementRect { | |
19180 // TODO(jacobr) | |
19181 } | |
19182 | |
19183 class ScrollOptions { | |
19184 final int lines; | |
19185 final int pages; | |
19186 final bool center; | |
19187 | |
19188 ScrollOptions([this.lines = 0, this.pages = 0, this.center = false]); | |
19189 } | |
19190 | |
19191 interface ElementEvents extends Events { | |
19192 EventListenerList get abort(); | |
19193 EventListenerList get beforeCopy(); | |
19194 EventListenerList get beforeCut(); | |
19195 EventListenerList get beforePaste(); | |
19196 EventListenerList get blur(); | |
19197 EventListenerList get change(); | |
19198 EventListenerList get click(); | |
19199 EventListenerList get contextMenu(); | |
19200 EventListenerList get copy(); | |
19201 EventListenerList get cut(); | |
19202 EventListenerList get dblClick(); | |
19203 EventListenerList get drag(); | |
19204 EventListenerList get dragEnd(); | |
19205 EventListenerList get dragEnter(); | |
19206 EventListenerList get dragLeave(); | |
19207 EventListenerList get dragOver(); | |
19208 EventListenerList get dragStart(); | |
19209 EventListenerList get drop(); | |
19210 EventListenerList get error(); | |
19211 EventListenerList get focus(); | |
19212 EventListenerList get input(); | |
19213 EventListenerList get invalid(); | |
19214 EventListenerList get keyDown(); | |
19215 EventListenerList get keyPress(); | |
19216 EventListenerList get keyUp(); | |
19217 EventListenerList get load(); | |
19218 EventListenerList get mouseDown(); | |
19219 EventListenerList get mouseMove(); | |
19220 EventListenerList get mouseOut(); | |
19221 EventListenerList get mouseOver(); | |
19222 EventListenerList get mouseUp(); | |
19223 EventListenerList get mouseWheel(); | |
19224 EventListenerList get paste(); | |
19225 EventListenerList get reset(); | |
19226 EventListenerList get scroll(); | |
19227 EventListenerList get search(); | |
19228 EventListenerList get select(); | |
19229 EventListenerList get selectStart(); | |
19230 EventListenerList get submit(); | |
19231 EventListenerList get touchCancel(); | |
19232 EventListenerList get touchEnd(); | |
19233 EventListenerList get touchLeave(); | |
19234 EventListenerList get touchMove(); | |
19235 EventListenerList get touchStart(); | |
19236 EventListenerList get transitionEnd(); | |
19237 EventListenerList get fullscreenChange(); | |
19238 } | |
19239 | |
19240 interface Element extends Node /*, common.NodeSelector, common.ElementTraversal
*/ | |
19241 factory ElementWrappingImplementation { | |
19242 | |
19243 Element.html(String html); | |
19244 Element.tag(String tag); | |
19245 | |
19246 Map<String, String> get attributes(); | |
19247 void set attributes(Map<String, String> value); | |
19248 | |
19249 ElementList get elements(); | |
19250 | |
19251 // TODO: The type of value should be Collection<Element>. See http://b/5392897 | |
19252 void set elements(value); | |
19253 | |
19254 _CssClassSet get classes(); | |
19255 | |
19256 // TODO: The type of value should be Collection<String>. See http://b/5392897 | |
19257 void set classes(value); | |
19258 | |
19259 Map<String, String> get dataAttributes(); | |
19260 void set dataAttributes(Map<String, String> value); | |
19261 | |
19262 int get clientHeight(); | |
19263 | |
19264 int get clientLeft(); | |
19265 | |
19266 int get clientTop(); | |
19267 | |
19268 int get clientWidth(); | |
19269 | |
19270 String get contentEditable(); | |
19271 | |
19272 void set contentEditable(String value); | |
19273 | |
19274 String get dir(); | |
19275 | |
19276 void set dir(String value); | |
19277 | |
19278 bool get draggable(); | |
19279 | |
19280 void set draggable(bool value); | |
19281 | |
19282 Element get firstElementChild(); | |
19283 | |
19284 bool get hidden(); | |
19285 | |
19286 void set hidden(bool value); | |
19287 | |
19288 String get id(); | |
19289 | |
19290 void set id(String value); | |
19291 | |
19292 String get innerHTML(); | |
19293 | |
19294 void set innerHTML(String value); | |
19295 | |
19296 bool get isContentEditable(); | |
19297 | |
19298 String get lang(); | |
19299 | |
19300 void set lang(String value); | |
19301 | |
19302 Element get lastElementChild(); | |
19303 | |
19304 Element get nextElementSibling(); | |
19305 | |
19306 int get offsetHeight(); | |
19307 | |
19308 int get offsetLeft(); | |
19309 | |
19310 Element get offsetParent(); | |
19311 | |
19312 int get offsetTop(); | |
19313 | |
19314 int get offsetWidth(); | |
19315 | |
19316 String get outerHTML(); | |
19317 | |
19318 Element get previousElementSibling(); | |
19319 | |
19320 int get scrollHeight(); | |
19321 | |
19322 int get scrollLeft(); | |
19323 | |
19324 void set scrollLeft(int value); | |
19325 | |
19326 int get scrollTop(); | |
19327 | |
19328 void set scrollTop(int value); | |
19329 | |
19330 int get scrollWidth(); | |
19331 | |
19332 bool get spellcheck(); | |
19333 | |
19334 void set spellcheck(bool value); | |
19335 | |
19336 CSSStyleDeclaration get style(); | |
19337 | |
19338 int get tabIndex(); | |
19339 | |
19340 void set tabIndex(int value); | |
19341 | |
19342 String get tagName(); | |
19343 | |
19344 String get title(); | |
19345 | |
19346 void set title(String value); | |
19347 | |
19348 String get webkitdropzone(); | |
19349 | |
19350 void set webkitdropzone(String value); | |
19351 | |
19352 void blur(); | |
19353 | |
19354 void focus(); | |
19355 | |
19356 ClientRect getBoundingClientRect(); | |
19357 | |
19358 ClientRectList getClientRects(); | |
19359 | |
19360 Element insertAdjacentElement([String where, Element element]); | |
19361 | |
19362 void insertAdjacentHTML([String position_OR_where, String text]); | |
19363 | |
19364 void insertAdjacentText([String where, String text]); | |
19365 | |
19366 Element query(String selectors); | |
19367 | |
19368 ElementList queryAll(String selectors); | |
19369 | |
19370 Element get parent(); | |
19371 | |
19372 void scrollByLines([int lines]); | |
19373 | |
19374 void scrollByPages([int pages]); | |
19375 | |
19376 void scrollIntoView([bool centerIfNeeded]); | |
19377 | |
19378 bool matchesSelector([String selectors]); | |
19379 | |
19380 ElementEvents get on(); | |
19381 } | |
19382 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
19383 // for details. All rights reserved. Use of this source code is governed by a | |
19384 // BSD-style license that can be found in the LICENSE file. | |
19385 | |
19386 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality. | |
19387 class _ChildrenElementList implements ElementList { | |
19388 // Raw Element. | |
19389 final _element; | |
19390 final _childElements; | |
19391 | |
19392 _ChildrenElementList._wrap(var element) | |
19393 : _childElements = element.children, | |
19394 _element = element; | |
19395 | |
19396 List<Element> _toList() { | |
19397 final output = new List(_childElements.length); | |
19398 for (int i = 0, len = _childElements.length; i < len; i++) { | |
19399 output[i] = LevelDom.wrapElement(_childElements[i]); | |
19400 } | |
19401 return output; | |
19402 } | |
19403 | |
19404 Element get first() { | |
19405 return LevelDom.wrapElement(_element.firstElementChild); | |
19406 } | |
19407 | |
19408 void forEach(void f(Element element)) { | |
19409 for (var element in _childElements) { | |
19410 f(LevelDom.wrapElement(element)); | |
19411 } | |
19412 } | |
19413 | |
19414 Collection<Element> filter(bool f(Element element)) { | |
19415 List<Element> output = new List<Element>(); | |
19416 forEach((Element element) { | |
19417 if (f(element)) { | |
19418 output.add(element); | |
19419 } | |
19420 }); | |
19421 return output; | |
19422 } | |
19423 | |
19424 bool every(bool f(Element element)) { | |
19425 for(Element element in this) { | |
19426 if (!f(element)) { | |
19427 return false; | |
19428 } | |
19429 }; | |
19430 return true; | |
19431 } | |
19432 | |
19433 bool some(bool f(Element element)) { | |
19434 for(Element element in this) { | |
19435 if (f(element)) { | |
19436 return true; | |
19437 } | |
19438 }; | |
19439 return false; | |
19440 } | |
19441 | |
19442 bool isEmpty() { | |
19443 return _element.firstElementChild !== null; | |
19444 } | |
19445 | |
19446 int get length() { | |
19447 return _childElements.length; | |
19448 } | |
19449 | |
19450 Element operator [](int index) { | |
19451 return LevelDom.wrapElement(_childElements[index]); | |
19452 } | |
19453 | |
19454 void operator []=(int index, Element value) { | |
19455 _element.replaceChild(LevelDom.unwrap(value), _childElements.item(index)); | |
19456 } | |
19457 | |
19458 void set length(int newLength) { | |
19459 // TODO(jacobr): remove children when length is reduced. | |
19460 throw const UnsupportedOperationException(''); | |
19461 } | |
19462 | |
19463 Element add(Element value) { | |
19464 _element.appendChild(LevelDom.unwrap(value)); | |
19465 return value; | |
19466 } | |
19467 | |
19468 Element addLast(Element value) => add(value); | |
19469 | |
19470 Iterator<Element> iterator() => _toList().iterator(); | |
19471 | |
19472 void addAll(Collection<Element> collection) { | |
19473 for (Element element in collection) { | |
19474 _element.appendChild(LevelDom.unwrap(element)); | |
19475 } | |
19476 } | |
19477 | |
19478 void sort(int compare(Element a, Element b)) { | |
19479 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); | |
19480 } | |
19481 | |
19482 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
19483 throw 'Not impl yet. todo(jacobr)'; | |
19484 } | |
19485 | |
19486 void setRange(int start, int length, List from, [int startFrom = 0]) { | |
19487 throw const NotImplementedException(); | |
19488 } | |
19489 | |
19490 void removeRange(int start, int length) { | |
19491 throw const NotImplementedException(); | |
19492 } | |
19493 | |
19494 void insertRange(int start, int length, [initialValue = null]) { | |
19495 throw const NotImplementedException(); | |
19496 } | |
19497 | |
19498 List getRange(int start, int length) { | |
19499 throw const NotImplementedException(); | |
19500 } | |
19501 | |
19502 int indexOf(Element element, int startIndex) { | |
19503 return _Lists.indexOf(this, element, startIndex, this.length); | |
19504 } | |
19505 | |
19506 int lastIndexOf(Element element, int startIndex) { | |
19507 return _Lists.lastIndexOf(this, element, startIndex); | |
19508 } | |
19509 | |
19510 void clear() { | |
19511 // It is unclear if we want to keep non element nodes? | |
19512 _element.textContent = ''; | |
19513 } | |
19514 | |
19515 Element removeLast() { | |
19516 final last = this.last(); | |
19517 if (last != null) { | |
19518 _element.removeChild(LevelDom.unwrap(last)); | |
19519 } | |
19520 return last; | |
19521 } | |
19522 | |
19523 Element last() { | |
19524 return LevelDom.wrapElement(_element.lastElementChild); | |
19525 } | |
19526 } | |
19527 | |
19528 class FrozenElementList implements ElementList { | |
19529 final _ptr; | |
19530 | |
19531 FrozenElementList._wrap(this._ptr); | |
19532 | |
19533 Element get first() { | |
19534 return this[0]; | |
19535 } | |
19536 | |
19537 void forEach(void f(Element element)) { | |
19538 for (var element in _ptr) { | |
19539 f(LevelDom.wrapElement(element)); | |
19540 } | |
19541 } | |
19542 | |
19543 Collection<Element> filter(bool f(Element element)) { | |
19544 throw 'Not impl yet. todo(jacobr)'; | |
19545 } | |
19546 | |
19547 bool every(bool f(Element element)) { | |
19548 throw 'Not impl yet. todo(jacobr)'; | |
19549 } | |
19550 | |
19551 bool some(bool f(Element element)) { | |
19552 throw 'Not impl yet. todo(jacobr)'; | |
19553 } | |
19554 | |
19555 bool isEmpty() { | |
19556 return _ptr.length == 0; | |
19557 } | |
19558 | |
19559 int get length() { | |
19560 return _ptr.length; | |
19561 } | |
19562 | |
19563 Element operator [](int index) { | |
19564 return LevelDom.wrapElement(_ptr[index]); | |
19565 } | |
19566 | |
19567 void operator []=(int index, Element value) { | |
19568 throw const UnsupportedOperationException(''); | |
19569 } | |
19570 | |
19571 void set length(int newLength) { | |
19572 throw const UnsupportedOperationException(''); | |
19573 } | |
19574 | |
19575 void add(Element value) { | |
19576 throw const UnsupportedOperationException(''); | |
19577 } | |
19578 | |
19579 | |
19580 void addLast(Element value) { | |
19581 throw const UnsupportedOperationException(''); | |
19582 } | |
19583 | |
19584 Iterator<Element> iterator() => new FrozenElementListIterator(this); | |
19585 | |
19586 void addAll(Collection<Element> collection) { | |
19587 throw const UnsupportedOperationException(''); | |
19588 } | |
19589 | |
19590 void sort(int compare(Element a, Element b)) { | |
19591 throw const UnsupportedOperationException(''); | |
19592 } | |
19593 | |
19594 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
19595 throw 'Not impl yet. todo(jacobr)'; | |
19596 } | |
19597 | |
19598 void setRange(int start, int length, List from, [int startFrom = 0]) { | |
19599 throw const NotImplementedException(); | |
19600 } | |
19601 | |
19602 void removeRange(int start, int length) { | |
19603 throw const NotImplementedException(); | |
19604 } | |
19605 | |
19606 void insertRange(int start, int length, [initialValue = null]) { | |
19607 throw const NotImplementedException(); | |
19608 } | |
19609 | |
19610 List getRange(int start, int length) { | |
19611 throw const NotImplementedException(); | |
19612 } | |
19613 | |
19614 int indexOf(Element element, int startIndex) { | |
19615 throw 'Not impl yet. todo(jacobr)'; | |
19616 } | |
19617 | |
19618 int lastIndexOf(Element element, int startIndex) { | |
19619 throw 'Not impl yet. todo(jacobr)'; | |
19620 } | |
19621 | |
19622 void clear() { | |
19623 throw 'Not impl yet. todo(jacobr)'; | |
19624 } | |
19625 | |
19626 Element removeLast() { | |
19627 throw 'Not impl yet. todo(jacobr)'; | |
19628 } | |
19629 | |
19630 Element last() { | |
19631 return this[length-1]; | |
19632 } | |
19633 } | |
19634 | |
19635 class FrozenElementListIterator implements Iterator<Element> { | |
19636 final FrozenElementList _list; | |
19637 int _index = 0; | |
19638 | |
19639 FrozenElementListIterator(this._list); | |
19640 | |
19641 /** | |
19642 * Gets the next element in the iteration. Throws a | |
19643 * [NoMoreElementsException] if no element is left. | |
19644 */ | |
19645 Element next() { | |
19646 if (!hasNext()) { | |
19647 throw const NoMoreElementsException(); | |
19648 } | |
19649 | |
19650 return _list[_index++]; | |
19651 } | |
19652 | |
19653 /** | |
19654 * Returns whether the [Iterator] has elements left. | |
19655 */ | |
19656 bool hasNext() => _index < _list.length; | |
19657 } | |
19658 | |
19659 class ElementAttributeMap implements Map<String, String> { | |
19660 | |
19661 final _element; | |
19662 | |
19663 ElementAttributeMap._wrap(this._element); | |
19664 | |
19665 bool containsValue(String value) { | |
19666 final attributes = _element.attributes; | |
19667 for (int i = 0, len = attributes.length; i < len; i++) { | |
19668 if(value == attributes.item(i).value) { | |
19669 return true; | |
19670 } | |
19671 } | |
19672 return false; | |
19673 } | |
19674 | |
19675 bool containsKey(String key) { | |
19676 return _element.hasAttribute(key); | |
19677 } | |
19678 | |
19679 String operator [](String key) { | |
19680 return _element.getAttribute(key); | |
19681 } | |
19682 | |
19683 void operator []=(String key, String value) { | |
19684 _element.setAttribute(key, value); | |
19685 } | |
19686 | |
19687 String putIfAbsent(String key, String ifAbsent()) { | |
19688 if (!containsKey(key)) { | |
19689 this[key] = ifAbsent(); | |
19690 } | |
19691 } | |
19692 | |
19693 String remove(String key) { | |
19694 _element.removeAttribute(key); | |
19695 } | |
19696 | |
19697 void clear() { | |
19698 final attributes = _element.attributes; | |
19699 for (int i = attributes.length - 1; i >= 0; i--) { | |
19700 _element.removeAttribute(attributes.item(i).name); | |
19701 } | |
19702 } | |
19703 | |
19704 void forEach(void f(String key, String value)) { | |
19705 final attributes = _element.attributes; | |
19706 for (int i = 0, len = attributes.length; i < len; i++) { | |
19707 final item = attributes.item(i); | |
19708 f(item.name, item.value); | |
19709 } | |
19710 } | |
19711 | |
19712 Collection<String> getKeys() { | |
19713 // TODO(jacobr): generate a lazy collection instead. | |
19714 final attributes = _element.attributes; | |
19715 final keys = new List<String>(attributes.length); | |
19716 for (int i = 0, len = attributes.length; i < len; i++) { | |
19717 keys[i] = attributes.item(i).name; | |
19718 } | |
19719 return keys; | |
19720 } | |
19721 | |
19722 Collection<String> getValues() { | |
19723 // TODO(jacobr): generate a lazy collection instead. | |
19724 final attributes = _element.attributes; | |
19725 final values = new List<String>(attributes.length); | |
19726 for (int i = 0, len = attributes.length; i < len; i++) { | |
19727 values[i] = attributes.item(i).value; | |
19728 } | |
19729 return values; | |
19730 } | |
19731 | |
19732 /** | |
19733 * The number of {key, value} pairs in the map. | |
19734 */ | |
19735 int get length() { | |
19736 return _element.attributes.length; | |
19737 } | |
19738 | |
19739 /** | |
19740 * Returns true if there is no {key, value} pair in the map. | |
19741 */ | |
19742 bool isEmpty() { | |
19743 return !_element.hasAttributes(); | |
19744 } | |
19745 } | |
19746 | |
19747 class ElementEventsImplementation extends EventsImplementation implements Elemen
tEvents { | |
19748 ElementEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
19749 | |
19750 EventListenerList get abort() => _get("abort"); | |
19751 EventListenerList get beforeCopy() => _get("beforecopy"); | |
19752 EventListenerList get beforeCut() => _get("beforecut"); | |
19753 EventListenerList get beforePaste() => _get("beforepaste"); | |
19754 EventListenerList get blur() => _get("blur"); | |
19755 EventListenerList get change() => _get("change"); | |
19756 EventListenerList get click() => _get("click"); | |
19757 EventListenerList get contextMenu() => _get("contextmenu"); | |
19758 EventListenerList get copy() => _get("copy"); | |
19759 EventListenerList get cut() => _get("cut"); | |
19760 EventListenerList get dblClick() => _get("dblclick"); | |
19761 EventListenerList get drag() => _get("drag"); | |
19762 EventListenerList get dragEnd() => _get("dragend"); | |
19763 EventListenerList get dragEnter() => _get("dragenter"); | |
19764 EventListenerList get dragLeave() => _get("dragleave"); | |
19765 EventListenerList get dragOver() => _get("dragover"); | |
19766 EventListenerList get dragStart() => _get("dragstart"); | |
19767 EventListenerList get drop() => _get("drop"); | |
19768 EventListenerList get error() => _get("error"); | |
19769 EventListenerList get focus() => _get("focus"); | |
19770 EventListenerList get input() => _get("input"); | |
19771 EventListenerList get invalid() => _get("invalid"); | |
19772 EventListenerList get keyDown() => _get("keydown"); | |
19773 EventListenerList get keyPress() => _get("keypress"); | |
19774 EventListenerList get keyUp() => _get("keyup"); | |
19775 EventListenerList get load() => _get("load"); | |
19776 EventListenerList get mouseDown() => _get("mousedown"); | |
19777 EventListenerList get mouseMove() => _get("mousemove"); | |
19778 EventListenerList get mouseOut() => _get("mouseout"); | |
19779 EventListenerList get mouseOver() => _get("mouseover"); | |
19780 EventListenerList get mouseUp() => _get("mouseup"); | |
19781 EventListenerList get mouseWheel() => _get("mousewheel"); | |
19782 EventListenerList get paste() => _get("paste"); | |
19783 EventListenerList get reset() => _get("reset"); | |
19784 EventListenerList get scroll() => _get("scroll"); | |
19785 EventListenerList get search() => _get("search"); | |
19786 EventListenerList get select() => _get("select"); | |
19787 EventListenerList get selectStart() => _get("selectstart"); | |
19788 EventListenerList get submit() => _get("submit"); | |
19789 EventListenerList get touchCancel() => _get("touchcancel"); | |
19790 EventListenerList get touchEnd() => _get("touchend"); | |
19791 EventListenerList get touchLeave() => _get("touchleave"); | |
19792 EventListenerList get touchMove() => _get("touchmove"); | |
19793 EventListenerList get touchStart() => _get("touchstart"); | |
19794 EventListenerList get transitionEnd() => _get("webkitTransitionEnd"); | |
19795 EventListenerList get fullscreenChange() => _get("fullscreenchange"); | |
19796 } | |
19797 | |
19798 class ElementWrappingImplementation extends NodeWrappingImplementation implement
s Element { | |
19799 | |
19800 factory ElementWrappingImplementation.html(String html) { | |
19801 final temp = dom.document.createElement('div'); | |
19802 temp.innerHTML = html; | |
19803 | |
19804 if (temp.childElementCount != 1) { | |
19805 throw 'HTML had ${temp.childElementCount} top level elements but 1 expecte
d'; | |
19806 } | |
19807 | |
19808 return LevelDom.wrapElement(temp.firstElementChild); | |
19809 } | |
19810 | |
19811 factory ElementWrappingImplementation.tag(String tag) { | |
19812 return LevelDom.wrapElement(dom.document.createElement(tag)); | |
19813 } | |
19814 | |
19815 ElementWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
19816 | |
19817 ElementAttributeMap _elementAttributeMap; | |
19818 ElementList _elements; | |
19819 _CssClassSet _cssClassSet; | |
19820 _DataAttributeMap _dataAttributes; | |
19821 | |
19822 Map<String, String> get attributes() { | |
19823 if (_elementAttributeMap === null) { | |
19824 _elementAttributeMap = new ElementAttributeMap._wrap(_ptr); | |
19825 } | |
19826 return _elementAttributeMap; | |
19827 } | |
19828 | |
19829 void set attributes(Map<String, String> value) { | |
19830 Map<String, String> attributes = this.attributes; | |
19831 attributes.clear(); | |
19832 for (String key in value.getKeys()) { | |
19833 attributes[key] = value[key]; | |
19834 } | |
19835 } | |
19836 | |
19837 void set elements(Collection<Element> value) { | |
19838 // Copy list first since we don't want liveness during iteration. | |
19839 List copy = new List.from(value); | |
19840 final elements = this.elements; | |
19841 elements.clear(); | |
19842 elements.addAll(copy); | |
19843 } | |
19844 | |
19845 ElementList get elements() { | |
19846 if (_elements == null) { | |
19847 _elements = new _ChildrenElementList._wrap(_ptr); | |
19848 } | |
19849 return _elements; | |
19850 } | |
19851 | |
19852 Set<String> get classes() { | |
19853 if (_cssClassSet === null) { | |
19854 _cssClassSet = new _CssClassSet(_ptr); | |
19855 } | |
19856 return _cssClassSet; | |
19857 } | |
19858 | |
19859 void set classes(Collection<String> value) { | |
19860 _CssClassSet classSet = classes; | |
19861 classSet.clear(); | |
19862 classSet.addAll(value); | |
19863 } | |
19864 | |
19865 Map<String, String> get dataAttributes() { | |
19866 if (_dataAttributes === null) { | |
19867 _dataAttributes = new _DataAttributeMap(attributes); | |
19868 } | |
19869 return _dataAttributes; | |
19870 } | |
19871 | |
19872 void set dataAttributes(Map<String, String> value) { | |
19873 Map<String, String> dataAttributes = this.dataAttributes; | |
19874 dataAttributes.clear(); | |
19875 for (String key in value.getKeys()) { | |
19876 dataAttributes[key] = value[key]; | |
19877 } | |
19878 } | |
19879 | |
19880 int get clientHeight() => _ptr.clientHeight; | |
19881 | |
19882 int get clientLeft() => _ptr.clientLeft; | |
19883 | |
19884 int get clientTop() => _ptr.clientTop; | |
19885 | |
19886 int get clientWidth() => _ptr.clientWidth; | |
19887 | |
19888 String get contentEditable() => _ptr.contentEditable; | |
19889 | |
19890 void set contentEditable(String value) { _ptr.contentEditable = value; } | |
19891 | |
19892 String get dir() => _ptr.dir; | |
19893 | |
19894 void set dir(String value) { _ptr.dir = value; } | |
19895 | |
19896 bool get draggable() => _ptr.draggable; | |
19897 | |
19898 void set draggable(bool value) { _ptr.draggable = value; } | |
19899 | |
19900 Element get firstElementChild() => LevelDom.wrapElement(_ptr.firstElementChild
); | |
19901 | |
19902 bool get hidden() => _ptr.hidden; | |
19903 | |
19904 void set hidden(bool value) { _ptr.hidden = value; } | |
19905 | |
19906 String get id() => _ptr.id; | |
19907 | |
19908 void set id(String value) { _ptr.id = value; } | |
19909 | |
19910 String get innerHTML() => _ptr.innerHTML; | |
19911 | |
19912 void set innerHTML(String value) { _ptr.innerHTML = value; } | |
19913 | |
19914 bool get isContentEditable() => _ptr.isContentEditable; | |
19915 | |
19916 String get lang() => _ptr.lang; | |
19917 | |
19918 void set lang(String value) { _ptr.lang = value; } | |
19919 | |
19920 Element get lastElementChild() => LevelDom.wrapElement(_ptr.lastElementChild); | |
19921 | |
19922 Element get nextElementSibling() => LevelDom.wrapElement(_ptr.nextElementSibli
ng); | |
19923 | |
19924 int get offsetHeight() => _ptr.offsetHeight; | |
19925 | |
19926 int get offsetLeft() => _ptr.offsetLeft; | |
19927 | |
19928 Element get offsetParent() => LevelDom.wrapElement(_ptr.offsetParent); | |
19929 | |
19930 int get offsetTop() => _ptr.offsetTop; | |
19931 | |
19932 int get offsetWidth() => _ptr.offsetWidth; | |
19933 | |
19934 String get outerHTML() => _ptr.outerHTML; | |
19935 | |
19936 Element get previousElementSibling() => LevelDom.wrapElement(_ptr.previousElem
entSibling); | |
19937 | |
19938 int get scrollHeight() => _ptr.scrollHeight; | |
19939 | |
19940 int get scrollLeft() => _ptr.scrollLeft; | |
19941 | |
19942 void set scrollLeft(int value) { _ptr.scrollLeft = value; } | |
19943 | |
19944 int get scrollTop() => _ptr.scrollTop; | |
19945 | |
19946 void set scrollTop(int value) { _ptr.scrollTop = value; } | |
19947 | |
19948 int get scrollWidth() => _ptr.scrollWidth; | |
19949 | |
19950 bool get spellcheck() => _ptr.spellcheck; | |
19951 | |
19952 void set spellcheck(bool value) { _ptr.spellcheck = value; } | |
19953 | |
19954 CSSStyleDeclaration get style() => LevelDom.wrapCSSStyleDeclaration(_ptr.style
); | |
19955 | |
19956 int get tabIndex() => _ptr.tabIndex; | |
19957 | |
19958 void set tabIndex(int value) { _ptr.tabIndex = value; } | |
19959 | |
19960 String get tagName() => _ptr.tagName; | |
19961 | |
19962 String get title() => _ptr.title; | |
19963 | |
19964 void set title(String value) { _ptr.title = value; } | |
19965 | |
19966 String get webkitdropzone() => _ptr.webkitdropzone; | |
19967 | |
19968 void set webkitdropzone(String value) { _ptr.webkitdropzone = value; } | |
19969 | |
19970 void blur() { | |
19971 _ptr.blur(); | |
19972 } | |
19973 | |
19974 bool contains(Node element) { | |
19975 return _ptr.contains(LevelDom.unwrap(element)); | |
19976 } | |
19977 | |
19978 void focus() { | |
19979 _ptr.focus(); | |
19980 } | |
19981 | |
19982 ClientRect getBoundingClientRect() { | |
19983 return LevelDom.wrapClientRect(_ptr.getBoundingClientRect()); | |
19984 } | |
19985 | |
19986 ClientRectList getClientRects() { | |
19987 return LevelDom.wrapClientRectList(_ptr.getClientRects()); | |
19988 } | |
19989 | |
19990 Element insertAdjacentElement([String where = null, Element element = null]) { | |
19991 return LevelDom.wrapElement(_ptr.insertAdjacentElement(where, LevelDom.unwra
p(element))); | |
19992 } | |
19993 | |
19994 void insertAdjacentHTML([String position_OR_where = null, String text = null])
{ | |
19995 _ptr.insertAdjacentHTML(position_OR_where, text); | |
19996 } | |
19997 | |
19998 void insertAdjacentText([String where = null, String text = null]) { | |
19999 _ptr.insertAdjacentText(where, text); | |
20000 } | |
20001 | |
20002 Element query(String selectors) { | |
20003 // TODO(jacobr): scope fix. | |
20004 return LevelDom.wrapElement(_ptr.querySelector(selectors)); | |
20005 } | |
20006 | |
20007 ElementList queryAll(String selectors) { | |
20008 // TODO(jacobr): scope fix. | |
20009 return new FrozenElementList._wrap(_ptr.querySelectorAll(selectors)); | |
20010 } | |
20011 | |
20012 void scrollByLines([int lines = null]) { | |
20013 _ptr.scrollByLines(lines); | |
20014 } | |
20015 | |
20016 void scrollByPages([int pages = null]) { | |
20017 _ptr.scrollByPages(pages); | |
20018 } | |
20019 | |
20020 void scrollIntoView([bool centerIfNeeded = null]) { | |
20021 _ptr.scrollIntoViewIfNeeded(centerIfNeeded); | |
20022 } | |
20023 | |
20024 bool matchesSelector([String selectors = null]) { | |
20025 return _ptr.webkitMatchesSelector(selectors); | |
20026 } | |
20027 | |
20028 ElementEvents get on() { | |
20029 if (_on === null) { | |
20030 _on = new ElementEventsImplementation._wrap(_ptr); | |
20031 } | |
20032 return _on; | |
20033 } | |
20034 } | |
20035 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20036 // for details. All rights reserved. Use of this source code is governed by a | |
20037 // BSD-style license that can be found in the LICENSE file. | |
20038 | |
20039 typedef void EventListener(Event event); | |
20040 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20041 // for details. All rights reserved. Use of this source code is governed by a | |
20042 // BSD-style license that can be found in the LICENSE file. | |
20043 | |
20044 interface EventSourceEvents extends Events { | |
20045 EventListenerList get error(); | |
20046 EventListenerList get message(); | |
20047 EventListenerList get open(); | |
20048 } | |
20049 | |
20050 interface EventSource extends EventTarget { | |
20051 | |
20052 static final int CLOSED = 2; | |
20053 | |
20054 static final int CONNECTING = 0; | |
20055 | |
20056 static final int OPEN = 1; | |
20057 | |
20058 String get URL(); | |
20059 | |
20060 int get readyState(); | |
20061 | |
20062 void close(); | |
20063 | |
20064 EventSourceEvents get on(); | |
20065 } | |
20066 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20067 // for details. All rights reserved. Use of this source code is governed by a | |
20068 // BSD-style license that can be found in the LICENSE file. | |
20069 | |
20070 class EventSourceEventsImplementation extends EventsImplementation implements Ev
entSourceEvents { | |
20071 EventSourceEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
20072 | |
20073 EventListenerList get error() => _get('error'); | |
20074 EventListenerList get message() => _get('message'); | |
20075 EventListenerList get open() => _get('open'); | |
20076 } | |
20077 | |
20078 class EventSourceWrappingImplementation extends EventTargetWrappingImplementatio
n implements EventSource { | |
20079 EventSourceWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
20080 | |
20081 String get URL() => _ptr.URL; | |
20082 | |
20083 int get readyState() => _ptr.readyState; | |
20084 | |
20085 void close() { | |
20086 _ptr.close(); | |
20087 } | |
20088 | |
20089 EventSourceEvents get on() { | |
20090 if (_on === null) { | |
20091 _on = new EventSourceEventsImplementation._wrap(_ptr); | |
20092 } | |
20093 return _on; | |
20094 } | |
20095 } | |
20096 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20097 // for details. All rights reserved. Use of this source code is governed by a | |
20098 // BSD-style license that can be found in the LICENSE file. | |
20099 | |
20100 interface EventListenerList { | |
20101 EventListenerList add(EventListener handler, [bool useCapture]); | |
20102 | |
20103 EventListenerList remove(EventListener handler, [bool useCapture]); | |
20104 | |
20105 bool dispatch(Event evt); | |
20106 } | |
20107 | |
20108 interface Events { | |
20109 EventListenerList operator [](String type); | |
20110 } | |
20111 | |
20112 interface EventTarget { | |
20113 Events get on(); | |
20114 } | |
20115 | |
20116 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20117 // for details. All rights reserved. Use of this source code is governed by a | |
20118 // BSD-style license that can be found in the LICENSE file. | |
20119 | |
20120 class _ListenerWrapper { | |
20121 final EventListener raw; | |
20122 final Function wrapped; | |
20123 final String type; | |
20124 final bool useCapture; | |
20125 | |
20126 _ListenerWrapper(this.raw, this.wrapped, this.type, this.useCapture); | |
20127 } | |
20128 | |
20129 class EventsImplementation implements Events { | |
20130 /* raw event target. */ | |
20131 var _ptr; | |
20132 | |
20133 Map<String, EventListenerList> _listenerMap; | |
20134 | |
20135 EventsImplementation._wrap(this._ptr) { | |
20136 _listenerMap = <String, EventListenerList>{}; | |
20137 } | |
20138 | |
20139 EventListenerList operator [](String type) { | |
20140 return _get(type.toLowerCase()); | |
20141 } | |
20142 | |
20143 EventListenerList _get(String type) { | |
20144 return _listenerMap.putIfAbsent(type, | |
20145 () => new EventListenerListImplementation(_ptr, type)); | |
20146 } | |
20147 } | |
20148 | |
20149 class _EventListenerWrapper { | |
20150 final EventListener raw; | |
20151 final Function wrapped; | |
20152 final bool useCapture; | |
20153 _EventListenerWrapper(this.raw, this.wrapped, this.useCapture); | |
20154 } | |
20155 | |
20156 class EventListenerListImplementation implements EventListenerList { | |
20157 final _ptr; | |
20158 final String _type; | |
20159 List<_EventListenerWrapper> _wrappers; | |
20160 | |
20161 EventListenerListImplementation(this._ptr, this._type) : | |
20162 // TODO(jacobr): switch to <_EventListenerWrapper>[] when the VM allow it. | |
20163 _wrappers = new List<_EventListenerWrapper>(); | |
20164 | |
20165 EventListenerList add(EventListener listener, [bool useCapture = false]) { | |
20166 _add(listener, useCapture); | |
20167 return this; | |
20168 } | |
20169 | |
20170 EventListenerList remove(EventListener listener, [bool useCapture = false]) { | |
20171 _remove(listener, useCapture); | |
20172 return this; | |
20173 } | |
20174 | |
20175 bool dispatch(Event evt) { | |
20176 // TODO(jacobr): what is the correct behavior here? | |
20177 assert(evt.type == _type); | |
20178 return _ptr.dispatchEvent(LevelDom.unwrap(evt)); | |
20179 } | |
20180 | |
20181 void _add(EventListener listener, bool useCapture) { | |
20182 _ptr.addEventListener(_type, | |
20183 _findOrAddWrapper(listener, useCapture), | |
20184 useCapture); | |
20185 } | |
20186 | |
20187 void _remove(EventListener listener, bool useCapture) { | |
20188 Function wrapper = _removeWrapper(listener, useCapture); | |
20189 if (wrapper !== null) { | |
20190 _ptr.removeEventListener(_type, wrapper, useCapture); | |
20191 } | |
20192 } | |
20193 | |
20194 Function _removeWrapper(EventListener listener, bool useCapture) { | |
20195 if (_wrappers === null) { | |
20196 return null; | |
20197 } | |
20198 for (int i = 0; i < _wrappers.length; i++) { | |
20199 _EventListenerWrapper wrapper = _wrappers[i]; | |
20200 if (wrapper.raw === listener | |
20201 && wrapper.useCapture == useCapture) { | |
20202 // Order doesn't matter so we swap with the last element instead of | |
20203 // performing a more expensive remove from the middle of the list. | |
20204 if (i + 1 != _wrappers.length) { | |
20205 _wrappers[i] = _wrappers.removeLast(); | |
20206 } else { | |
20207 _wrappers.removeLast(); | |
20208 } | |
20209 return wrapper.wrapped; | |
20210 } | |
20211 } | |
20212 return null; | |
20213 } | |
20214 | |
20215 Function _findOrAddWrapper(EventListener listener, bool useCapture) { | |
20216 if (_wrappers === null) { | |
20217 _wrappers = <_EventListenerWrapper>[]; | |
20218 } else { | |
20219 for (_EventListenerWrapper wrapper in _wrappers) { | |
20220 if (wrapper.raw === listener && wrapper.useCapture == useCapture) { | |
20221 return wrapper.wrapped; | |
20222 } | |
20223 } | |
20224 } | |
20225 final wrapped = (e) => listener(LevelDom.wrapEvent(e)); | |
20226 _wrappers.add(new _EventListenerWrapper(listener, wrapped, useCapture)); | |
20227 return wrapped; | |
20228 } | |
20229 } | |
20230 | |
20231 class EventTargetWrappingImplementation extends DOMWrapperBase implements EventT
arget { | |
20232 Events _on; | |
20233 | |
20234 EventTargetWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
20235 | |
20236 Events get on() { | |
20237 if (_on === null) { | |
20238 _on = new EventsImplementation._wrap(_ptr); | |
20239 } | |
20240 return _on; | |
20241 } | |
20242 } | |
20243 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20244 // for details. All rights reserved. Use of this source code is governed by a | |
20245 // BSD-style license that can be found in the LICENSE file. | |
20246 | |
20247 var secretWindow; | |
20248 var secretDocument; | |
20249 | |
20250 Window get window() { | |
20251 if (secretWindow === null) { | |
20252 LevelDom.initialize(dom.window); | |
20253 } | |
20254 return secretWindow; | |
20255 } | |
20256 | |
20257 Document get document() { | |
20258 if (secretWindow === null) { | |
20259 LevelDom.initialize(dom.window); | |
20260 } | |
20261 return secretDocument; | |
20262 } | |
20263 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20264 // for details. All rights reserved. Use of this source code is governed by a | |
20265 // BSD-style license that can be found in the LICENSE file. | |
20266 | |
20267 interface MessagePort extends EventTarget { | |
20268 } | |
20269 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20270 // for details. All rights reserved. Use of this source code is governed by a | |
20271 // BSD-style license that can be found in the LICENSE file. | |
20272 | |
20273 class MessagePortWrappingImplementation extends EventTargetWrappingImplementatio
n implements MessagePort { | |
20274 MessagePortWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
20275 } | |
20276 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20277 // for details. All rights reserved. Use of this source code is governed by a | |
20278 // BSD-style license that can be found in the LICENSE file. | |
20279 | |
20280 // TODO(jacobr): stop extending eventTarget. | |
20281 interface Node extends EventTarget { | |
20282 | |
20283 NodeList get nodes(); | |
20284 | |
20285 // TODO: The type of value should be Collection<Node>. See http://b/5392897 | |
20286 void set nodes(value); | |
20287 | |
20288 Node get nextNode(); | |
20289 | |
20290 Document get document(); | |
20291 | |
20292 Node get parent(); | |
20293 | |
20294 Node get previousNode(); | |
20295 | |
20296 String get text(); | |
20297 | |
20298 void set text(String value); | |
20299 | |
20300 Node replaceWith(Node otherNode); | |
20301 | |
20302 Node remove(); | |
20303 | |
20304 bool contains(Node otherNode); | |
20305 | |
20306 // TODO(jacobr): remove when/if Array supports a method similar to | |
20307 // insertBefore or we switch NodeList to implement LinkedList rather than | |
20308 // array. | |
20309 Node insertBefore(Node newChild, Node refChild); | |
20310 } | |
20311 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20312 // for details. All rights reserved. Use of this source code is governed by a | |
20313 // BSD-style license that can be found in the LICENSE file. | |
20314 | |
20315 interface NodeList extends List<Node> { | |
20316 Node get first(); | |
20317 } | |
20318 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20319 // for details. All rights reserved. Use of this source code is governed by a | |
20320 // BSD-style license that can be found in the LICENSE file. | |
20321 | |
20322 class _ChildrenNodeList implements NodeList { | |
20323 // Raw node. | |
20324 final _node; | |
20325 final _childNodes; | |
20326 | |
20327 _ChildrenNodeList._wrap(var node) | |
20328 : _childNodes = node.childNodes, | |
20329 _node = node; | |
20330 | |
20331 List<Node> _toList() { | |
20332 final output = new List(_childNodes.length); | |
20333 for (int i = 0, len = _childNodes.length; i < len; i++) { | |
20334 output[i] = LevelDom.wrapNode(_childNodes[i]); | |
20335 } | |
20336 return output; | |
20337 } | |
20338 | |
20339 Node get first() { | |
20340 return LevelDom.wrapNode(_node.firstChild); | |
20341 } | |
20342 | |
20343 void forEach(void f(Node element)) { | |
20344 for (var node in _childNodes) { | |
20345 f(LevelDom.wrapNode(node)); | |
20346 } | |
20347 } | |
20348 | |
20349 Collection<Node> filter(bool f(Node element)) { | |
20350 List<Node> output = new List<Node>(); | |
20351 forEach((Node element) { | |
20352 if (f(element)) { | |
20353 output.add(element); | |
20354 } | |
20355 }); | |
20356 return output; | |
20357 } | |
20358 | |
20359 bool every(bool f(Node element)) { | |
20360 for(Node element in this) { | |
20361 if (!f(element)) { | |
20362 return false; | |
20363 } | |
20364 }; | |
20365 return true; | |
20366 } | |
20367 | |
20368 bool some(bool f(Node element)) { | |
20369 for(Node element in this) { | |
20370 if (f(element)) { | |
20371 return true; | |
20372 } | |
20373 }; | |
20374 return false; | |
20375 } | |
20376 | |
20377 bool isEmpty() { | |
20378 return _node.hasChildNodes(); | |
20379 } | |
20380 | |
20381 int get length() { | |
20382 return _childNodes.length; | |
20383 } | |
20384 | |
20385 Node operator [](int index) { | |
20386 return LevelDom.wrapNode(_childNodes[index]); | |
20387 } | |
20388 | |
20389 void operator []=(int index, Node value) { | |
20390 _childNodes[index] = LevelDom.unwrap(value); | |
20391 } | |
20392 | |
20393 void set length(int newLength) { | |
20394 throw new UnsupportedOperationException(''); | |
20395 } | |
20396 | |
20397 Node add(Node value) { | |
20398 _node.appendChild(LevelDom.unwrap(value)); | |
20399 return value; | |
20400 } | |
20401 | |
20402 Node addLast(Node value) { | |
20403 _node.appendChild(LevelDom.unwrap(value)); | |
20404 return value; | |
20405 } | |
20406 | |
20407 Iterator<Node> iterator() { | |
20408 return _toList().iterator(); | |
20409 } | |
20410 | |
20411 void addAll(Collection<Node> collection) { | |
20412 for (Node node in collection) { | |
20413 _node.appendChild(LevelDom.unwrap(node)); | |
20414 } | |
20415 } | |
20416 | |
20417 void sort(int compare(Node a, Node b)) { | |
20418 throw const UnsupportedOperationException('TODO(jacobr): should we impl?'); | |
20419 } | |
20420 | |
20421 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) { | |
20422 throw 'Not impl yet. todo(jacobr)'; | |
20423 } | |
20424 | |
20425 void setRange(int start, int length, List from, [int startFrom = 0]) { | |
20426 throw const NotImplementedException(); | |
20427 } | |
20428 | |
20429 void removeRange(int start, int length) { | |
20430 throw const NotImplementedException(); | |
20431 } | |
20432 | |
20433 void insertRange(int start, int length, [initialValue = null]) { | |
20434 throw const NotImplementedException(); | |
20435 } | |
20436 | |
20437 List getRange(int start, int length) { | |
20438 throw const NotImplementedException(); | |
20439 } | |
20440 | |
20441 int indexOf(Node element, int startIndex) { | |
20442 return _Lists.indexOf(this, element, startIndex, this.length); | |
20443 } | |
20444 | |
20445 int lastIndexOf(Node element, int startIndex) { | |
20446 return _Lists.lastIndexOf(this, element, startIndex); | |
20447 } | |
20448 | |
20449 void clear() { | |
20450 _node.textContent = ''; | |
20451 } | |
20452 | |
20453 Node removeLast() { | |
20454 final last = this.last(); | |
20455 if (last != null) { | |
20456 _node.removeChild(LevelDom.unwrap(last)); | |
20457 } | |
20458 return last; | |
20459 } | |
20460 | |
20461 Node last() { | |
20462 return LevelDom.wrapNode(_node.lastChild); | |
20463 } | |
20464 } | |
20465 | |
20466 class NodeWrappingImplementation extends EventTargetWrappingImplementation imple
ments Node { | |
20467 NodeList _nodes; | |
20468 | |
20469 NodeWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
20470 | |
20471 void set nodes(Collection<Node> value) { | |
20472 // Copy list first since we don't want liveness during iteration. | |
20473 List copy = new List.from(value); | |
20474 nodes.clear(); | |
20475 nodes.addAll(copy); | |
20476 } | |
20477 | |
20478 NodeList get nodes() { | |
20479 if (_nodes === null) { | |
20480 _nodes = new _ChildrenNodeList._wrap(_ptr); | |
20481 } | |
20482 return _nodes; | |
20483 } | |
20484 | |
20485 Node get nextNode() => LevelDom.wrapNode(_ptr.nextSibling); | |
20486 | |
20487 Document get document() => LevelDom.wrapDocument(_ptr.ownerDocument); | |
20488 | |
20489 Node get parent() => LevelDom.wrapNode(_ptr.parentNode); | |
20490 | |
20491 Node get previousNode() => LevelDom.wrapNode(_ptr.previousSibling); | |
20492 | |
20493 String get text() => _ptr.textContent; | |
20494 | |
20495 void set text(String value) { _ptr.textContent = value; } | |
20496 | |
20497 // New methods implemented. | |
20498 Node replaceWith(Node otherNode) { | |
20499 try { | |
20500 _ptr.parentNode.replaceChild(LevelDom.unwrap(otherNode), _ptr); | |
20501 } catch(var e) { | |
20502 // TODO(jacobr): what should we return on failure? | |
20503 } | |
20504 return this; | |
20505 } | |
20506 | |
20507 Node remove() { | |
20508 // TODO(jacobr): should we throw an exception if parent is already null? | |
20509 if (_ptr.parentNode !== null) { | |
20510 _ptr.parentNode.removeChild(_ptr); | |
20511 } | |
20512 return this; | |
20513 } | |
20514 | |
20515 bool contains(Node otherNode) { | |
20516 // TODO: Feature detect and use built in. | |
20517 while (otherNode != null && otherNode != this) { | |
20518 otherNode = otherNode.parent; | |
20519 } | |
20520 return otherNode == this; | |
20521 } | |
20522 | |
20523 // TODO(jacobr): remove when/if List supports a method similar to | |
20524 // insertBefore or we switch NodeList to implement LinkedList rather than | |
20525 // array. | |
20526 Node insertBefore(Node newChild, Node refChild) { | |
20527 return LevelDom.wrapNode(_ptr.insertBefore( | |
20528 LevelDom.unwrap(newChild), LevelDom.unwrap(refChild))); | |
20529 } | |
20530 | |
20531 // TODO(jacobr): required for some benchmarks. Added to this class but not Nod
e while | |
20532 // we decide what to do with it. | |
20533 Node cloneNode(bool deep) { | |
20534 return LevelDom.wrapNode(_ptr.cloneNode(deep)); | |
20535 } | |
20536 } | |
20537 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20538 // for details. All rights reserved. Use of this source code is governed by a | |
20539 // BSD-style license that can be found in the LICENSE file. | |
20540 | |
20541 interface Notification extends EventTarget { | |
20542 | |
20543 String get dir(); | |
20544 | |
20545 void set dir(String value); | |
20546 | |
20547 EventListener get onclick(); | |
20548 | |
20549 void set onclick(EventListener value); | |
20550 | |
20551 EventListener get onclose(); | |
20552 | |
20553 void set onclose(EventListener value); | |
20554 | |
20555 EventListener get ondisplay(); | |
20556 | |
20557 void set ondisplay(EventListener value); | |
20558 | |
20559 EventListener get onerror(); | |
20560 | |
20561 void set onerror(EventListener value); | |
20562 | |
20563 String get replaceId(); | |
20564 | |
20565 void set replaceId(String value); | |
20566 | |
20567 void cancel(); | |
20568 | |
20569 void show(); | |
20570 } | |
20571 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20572 // for details. All rights reserved. Use of this source code is governed by a | |
20573 // BSD-style license that can be found in the LICENSE file. | |
20574 | |
20575 // TODO(jacobr) add custom Events class. | |
20576 class NotificationWrappingImplementation extends EventTargetWrappingImplementati
on implements Notification { | |
20577 NotificationWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
20578 | |
20579 String get dir() { return _ptr.dir; } | |
20580 | |
20581 void set dir(String value) { _ptr.dir = value; } | |
20582 | |
20583 EventListener get onclick() { return LevelDom.wrapEventListener(_ptr.onclick);
} | |
20584 | |
20585 void set onclick(EventListener value) { _ptr.onclick = LevelDom.unwrap(value);
} | |
20586 | |
20587 EventListener get onclose() { return LevelDom.wrapEventListener(_ptr.onclose);
} | |
20588 | |
20589 void set onclose(EventListener value) { _ptr.onclose = LevelDom.unwrap(value);
} | |
20590 | |
20591 EventListener get ondisplay() { return LevelDom.wrapEventListener(_ptr.ondispl
ay); } | |
20592 | |
20593 void set ondisplay(EventListener value) { _ptr.ondisplay = LevelDom.unwrap(val
ue); } | |
20594 | |
20595 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
20596 | |
20597 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
20598 | |
20599 String get replaceId() { return _ptr.replaceId; } | |
20600 | |
20601 void set replaceId(String value) { _ptr.replaceId = value; } | |
20602 | |
20603 void cancel() { | |
20604 _ptr.cancel(); | |
20605 return; | |
20606 } | |
20607 | |
20608 void show() { | |
20609 _ptr.show(); | |
20610 return; | |
20611 } | |
20612 | |
20613 String get typeName() { return "Notification"; } | |
20614 } | |
20615 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20616 // for details. All rights reserved. Use of this source code is governed by a | |
20617 // BSD-style license that can be found in the LICENSE file. | |
20618 | |
20619 typedef bool RequestAnimationFrameCallback(int time); | |
20620 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20621 // for details. All rights reserved. Use of this source code is governed by a | |
20622 // BSD-style license that can be found in the LICENSE file. | |
20623 | |
20624 interface SharedWorker extends AbstractWorker { | |
20625 | |
20626 MessagePort get port(); | |
20627 } | |
20628 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20629 // for details. All rights reserved. Use of this source code is governed by a | |
20630 // BSD-style license that can be found in the LICENSE file. | |
20631 | |
20632 class SharedWorkerWrappingImplementation extends AbstractWorkerWrappingImplement
ation implements SharedWorker { | |
20633 SharedWorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
20634 | |
20635 MessagePort get port() { return LevelDom.wrapMessagePort(_ptr.port); } | |
20636 } | |
20637 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20638 // for details. All rights reserved. Use of this source code is governed by a | |
20639 // BSD-style license that can be found in the LICENSE file. | |
20640 | |
20641 interface Text extends CharacterData factory TextWrappingImplementation { | |
20642 | |
20643 Text(String content); | |
20644 | |
20645 String get wholeText(); | |
20646 | |
20647 Text replaceWholeText([String content]); | |
20648 | |
20649 Text splitText([int offset]); | |
20650 } | |
20651 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20652 // for details. All rights reserved. Use of this source code is governed by a | |
20653 // BSD-style license that can be found in the LICENSE file. | |
20654 | |
20655 class TextWrappingImplementation extends CharacterDataWrappingImplementation imp
lements Text { | |
20656 factory TextWrappingImplementation(String content) { | |
20657 return new TextWrappingImplementation._wrap( | |
20658 dom.document.createTextNode(content)); | |
20659 } | |
20660 | |
20661 TextWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
20662 | |
20663 String get wholeText() => _ptr.wholeText; | |
20664 | |
20665 Text replaceWholeText([String content = null]) { | |
20666 if (content === null) { | |
20667 return LevelDom.wrapText(_ptr.replaceWholeText()); | |
20668 } else { | |
20669 return LevelDom.wrapText(_ptr.replaceWholeText(content)); | |
20670 } | |
20671 } | |
20672 | |
20673 Text splitText([int offset = null]) { | |
20674 if (offset === null) { | |
20675 return LevelDom.wrapText(_ptr.splitText()); | |
20676 } else { | |
20677 return LevelDom.wrapText(_ptr.splitText(offset)); | |
20678 } | |
20679 } | |
20680 } | |
20681 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20682 // for details. All rights reserved. Use of this source code is governed by a | |
20683 // BSD-style license that can be found in the LICENSE file. | |
20684 | |
20685 typedef void TimeoutHandler(); | |
20686 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20687 // for details. All rights reserved. Use of this source code is governed by a | |
20688 // BSD-style license that can be found in the LICENSE file. | |
20689 | |
20690 interface WebSocket extends EventTarget { | |
20691 | |
20692 static final int CLOSED = 3; | |
20693 | |
20694 static final int CLOSING = 2; | |
20695 | |
20696 static final int CONNECTING = 0; | |
20697 | |
20698 static final int OPEN = 1; | |
20699 | |
20700 String get URL(); | |
20701 | |
20702 String get binaryType(); | |
20703 | |
20704 void set binaryType(String value); | |
20705 | |
20706 int get bufferedAmount(); | |
20707 | |
20708 EventListener get onclose(); | |
20709 | |
20710 void set onclose(EventListener value); | |
20711 | |
20712 EventListener get onerror(); | |
20713 | |
20714 void set onerror(EventListener value); | |
20715 | |
20716 EventListener get onmessage(); | |
20717 | |
20718 void set onmessage(EventListener value); | |
20719 | |
20720 EventListener get onopen(); | |
20721 | |
20722 void set onopen(EventListener value); | |
20723 | |
20724 String get protocol(); | |
20725 | |
20726 int get readyState(); | |
20727 | |
20728 void close(); | |
20729 | |
20730 bool send(String data); | |
20731 } | |
20732 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20733 // for details. All rights reserved. Use of this source code is governed by a | |
20734 // BSD-style license that can be found in the LICENSE file. | |
20735 | |
20736 // TODO(jacobr) add events. | |
20737 class WebSocketWrappingImplementation extends EventTargetWrappingImplementation
implements WebSocket { | |
20738 WebSocketWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
20739 | |
20740 String get URL() { return _ptr.URL; } | |
20741 | |
20742 String get binaryType() { return _ptr.binaryType; } | |
20743 | |
20744 void set binaryType(String value) { _ptr.binaryType = value; } | |
20745 | |
20746 int get bufferedAmount() { return _ptr.bufferedAmount; } | |
20747 | |
20748 EventListener get onclose() { return LevelDom.wrapEventListener(_ptr.onclose);
} | |
20749 | |
20750 void set onclose(EventListener value) { _ptr.onclose = LevelDom.unwrap(value);
} | |
20751 | |
20752 EventListener get onerror() { return LevelDom.wrapEventListener(_ptr.onerror);
} | |
20753 | |
20754 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
20755 | |
20756 EventListener get onmessage() { return LevelDom.wrapEventListener(_ptr.onmessa
ge); } | |
20757 | |
20758 void set onmessage(EventListener value) { _ptr.onmessage = LevelDom.unwrap(val
ue); } | |
20759 | |
20760 EventListener get onopen() { return LevelDom.wrapEventListener(_ptr.onopen); } | |
20761 | |
20762 void set onopen(EventListener value) { _ptr.onopen = LevelDom.unwrap(value); } | |
20763 | |
20764 String get protocol() { return _ptr.protocol; } | |
20765 | |
20766 int get readyState() { return _ptr.readyState; } | |
20767 | |
20768 void close() { | |
20769 _ptr.close(); | |
20770 return; | |
20771 } | |
20772 | |
20773 bool send(String data) { | |
20774 return _ptr.send(data); | |
20775 } | |
20776 | |
20777 String get typeName() { return "WebSocket"; } | |
20778 } | |
20779 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
20780 // for details. All rights reserved. Use of this source code is governed by a | |
20781 // BSD-style license that can be found in the LICENSE file. | |
20782 | |
20783 interface WindowEvents extends Events { | |
20784 EventListenerList get abort(); | |
20785 EventListenerList get beforeUnload(); | |
20786 EventListenerList get blur(); | |
20787 EventListenerList get canPlay(); | |
20788 EventListenerList get canPlayThrough(); | |
20789 EventListenerList get change(); | |
20790 EventListenerList get click(); | |
20791 EventListenerList get contextMenu(); | |
20792 EventListenerList get dblClick(); | |
20793 EventListenerList get deviceMotion(); | |
20794 EventListenerList get deviceOrientation(); | |
20795 EventListenerList get drag(); | |
20796 EventListenerList get dragEnd(); | |
20797 EventListenerList get dragEnter(); | |
20798 EventListenerList get dragLeave(); | |
20799 EventListenerList get dragOver(); | |
20800 EventListenerList get dragStart(); | |
20801 EventListenerList get drop(); | |
20802 EventListenerList get durationChange(); | |
20803 EventListenerList get emptied(); | |
20804 EventListenerList get ended(); | |
20805 EventListenerList get error(); | |
20806 EventListenerList get focus(); | |
20807 EventListenerList get hashChange(); | |
20808 EventListenerList get input(); | |
20809 EventListenerList get invalid(); | |
20810 EventListenerList get keyDown(); | |
20811 EventListenerList get keyPress(); | |
20812 EventListenerList get keyUp(); | |
20813 EventListenerList get load(); | |
20814 EventListenerList get loadedData(); | |
20815 EventListenerList get loadedMetaData(); | |
20816 EventListenerList get loadStart(); | |
20817 EventListenerList get message(); | |
20818 EventListenerList get mouseDown(); | |
20819 EventListenerList get mouseMove(); | |
20820 EventListenerList get mouseOut(); | |
20821 EventListenerList get mouseOver(); | |
20822 EventListenerList get mouseUp(); | |
20823 EventListenerList get mouseWheel(); | |
20824 EventListenerList get offline(); | |
20825 EventListenerList get online(); | |
20826 EventListenerList get pageHide(); | |
20827 EventListenerList get pageShow(); | |
20828 EventListenerList get pause(); | |
20829 EventListenerList get play(); | |
20830 EventListenerList get playing(); | |
20831 EventListenerList get popState(); | |
20832 EventListenerList get progress(); | |
20833 EventListenerList get rateChange(); | |
20834 EventListenerList get reset(); | |
20835 EventListenerList get resize(); | |
20836 EventListenerList get scroll(); | |
20837 EventListenerList get search(); | |
20838 EventListenerList get seeked(); | |
20839 EventListenerList get seeking(); | |
20840 EventListenerList get select(); | |
20841 EventListenerList get stalled(); | |
20842 EventListenerList get storage(); | |
20843 EventListenerList get submit(); | |
20844 EventListenerList get suspend(); | |
20845 EventListenerList get timeUpdate(); | |
20846 EventListenerList get touchCancel(); | |
20847 EventListenerList get touchEnd(); | |
20848 EventListenerList get touchMove(); | |
20849 EventListenerList get touchStart(); | |
20850 EventListenerList get unLoad(); | |
20851 EventListenerList get volumeChange(); | |
20852 EventListenerList get waiting(); | |
20853 EventListenerList get animationEnd(); | |
20854 EventListenerList get animationIteration(); | |
20855 EventListenerList get animationStart(); | |
20856 EventListenerList get transitionEnd(); | |
20857 EventListenerList get contentLoaded(); | |
20858 } | |
20859 | |
20860 interface Window extends EventTarget { | |
20861 | |
20862 DOMApplicationCache get applicationCache(); | |
20863 | |
20864 Navigator get clientInformation(); | |
20865 | |
20866 void set clientInformation(Navigator value); | |
20867 | |
20868 bool get closed(); | |
20869 | |
20870 Console get console(); | |
20871 | |
20872 void set console(Console value); | |
20873 | |
20874 Crypto get crypto(); | |
20875 | |
20876 String get defaultStatus(); | |
20877 | |
20878 void set defaultStatus(String value); | |
20879 | |
20880 num get devicePixelRatio(); | |
20881 | |
20882 void set devicePixelRatio(num value); | |
20883 | |
20884 Document get document(); | |
20885 | |
20886 Event get event(); | |
20887 | |
20888 void set event(Event value); | |
20889 | |
20890 Element get frameElement(); | |
20891 | |
20892 Window get frames(); | |
20893 | |
20894 void set frames(Window value); | |
20895 | |
20896 History get history(); | |
20897 | |
20898 void set history(History value); | |
20899 | |
20900 int get innerHeight(); | |
20901 | |
20902 void set innerHeight(int value); | |
20903 | |
20904 int get innerWidth(); | |
20905 | |
20906 void set innerWidth(int value); | |
20907 | |
20908 int get length(); | |
20909 | |
20910 void set length(int value); | |
20911 | |
20912 Storage get localStorage(); | |
20913 | |
20914 Location get location(); | |
20915 | |
20916 void set location(Location value); | |
20917 | |
20918 BarInfo get locationbar(); | |
20919 | |
20920 void set locationbar(BarInfo value); | |
20921 | |
20922 BarInfo get menubar(); | |
20923 | |
20924 void set menubar(BarInfo value); | |
20925 | |
20926 String get name(); | |
20927 | |
20928 void set name(String value); | |
20929 | |
20930 Navigator get navigator(); | |
20931 | |
20932 void set navigator(Navigator value); | |
20933 | |
20934 bool get offscreenBuffering(); | |
20935 | |
20936 void set offscreenBuffering(bool value); | |
20937 | |
20938 Window get opener(); | |
20939 | |
20940 void set opener(Window value); | |
20941 | |
20942 int get outerHeight(); | |
20943 | |
20944 void set outerHeight(int value); | |
20945 | |
20946 int get outerWidth(); | |
20947 | |
20948 void set outerWidth(int value); | |
20949 | |
20950 int get pageXOffset(); | |
20951 | |
20952 int get pageYOffset(); | |
20953 | |
20954 Window get parent(); | |
20955 | |
20956 void set parent(Window value); | |
20957 | |
20958 BarInfo get personalbar(); | |
20959 | |
20960 void set personalbar(BarInfo value); | |
20961 | |
20962 Screen get screen(); | |
20963 | |
20964 void set screen(Screen value); | |
20965 | |
20966 int get screenLeft(); | |
20967 | |
20968 void set screenLeft(int value); | |
20969 | |
20970 int get screenTop(); | |
20971 | |
20972 void set screenTop(int value); | |
20973 | |
20974 int get screenX(); | |
20975 | |
20976 void set screenX(int value); | |
20977 | |
20978 int get screenY(); | |
20979 | |
20980 void set screenY(int value); | |
20981 | |
20982 int get scrollX(); | |
20983 | |
20984 void set scrollX(int value); | |
20985 | |
20986 int get scrollY(); | |
20987 | |
20988 void set scrollY(int value); | |
20989 | |
20990 BarInfo get scrollbars(); | |
20991 | |
20992 void set scrollbars(BarInfo value); | |
20993 | |
20994 Window get self(); | |
20995 | |
20996 void set self(Window value); | |
20997 | |
20998 Storage get sessionStorage(); | |
20999 | |
21000 String get status(); | |
21001 | |
21002 void set status(String value); | |
21003 | |
21004 BarInfo get statusbar(); | |
21005 | |
21006 void set statusbar(BarInfo value); | |
21007 | |
21008 StyleMedia get styleMedia(); | |
21009 | |
21010 BarInfo get toolbar(); | |
21011 | |
21012 void set toolbar(BarInfo value); | |
21013 | |
21014 Window get top(); | |
21015 | |
21016 void set top(Window value); | |
21017 | |
21018 NotificationCenter get webkitNotifications(); | |
21019 | |
21020 void alert([String message]); | |
21021 | |
21022 String atob([String string]); | |
21023 | |
21024 void blur(); | |
21025 | |
21026 String btoa([String string]); | |
21027 | |
21028 void captureEvents(); | |
21029 | |
21030 void clearInterval([int handle]); | |
21031 | |
21032 void clearTimeout([int handle]); | |
21033 | |
21034 void close(); | |
21035 | |
21036 bool confirm([String message]); | |
21037 | |
21038 FileReader createFileReader(); | |
21039 | |
21040 bool find([String string, bool caseSensitive, bool backwards, bool wrap, bool
wholeWord, bool searchInFrames, bool showDialog]); | |
21041 | |
21042 void focus(); | |
21043 | |
21044 CSSStyleDeclaration getComputedStyle([Element element, String pseudoElement]); | |
21045 | |
21046 DOMSelection getSelection(); | |
21047 | |
21048 MediaQueryList matchMedia(String query); | |
21049 | |
21050 void moveBy(num x, num y); | |
21051 | |
21052 void moveTo(num x, num y); | |
21053 | |
21054 Window open(String url, String target, [String features]); | |
21055 | |
21056 void postMessage(String message, [var messagePort, String targetOrigin]); | |
21057 | |
21058 void print(); | |
21059 | |
21060 String prompt([String message, String defaultValue]); | |
21061 | |
21062 void releaseEvents(); | |
21063 | |
21064 void resizeBy(num x, num y); | |
21065 | |
21066 void resizeTo(num width, num height); | |
21067 | |
21068 void scroll(int x, int y); | |
21069 | |
21070 void scrollBy(int x, int y); | |
21071 | |
21072 void scrollTo(int x, int y); | |
21073 | |
21074 int setInterval(TimeoutHandler handler, int timeout); | |
21075 | |
21076 int setTimeout([TimeoutHandler handler, int timeout]); | |
21077 | |
21078 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]); | |
21079 | |
21080 void stop(); | |
21081 | |
21082 void webkitCancelRequestAnimationFrame(int id); | |
21083 | |
21084 Point webkitConvertPointFromNodeToPage([Node node, Point p]); | |
21085 | |
21086 Point webkitConvertPointFromPageToNode([Node node, Point p]); | |
21087 | |
21088 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, [Eleme
nt element]); | |
21089 | |
21090 // Window open(String url, String target, WindowSpec features); | |
21091 | |
21092 WindowEvents get on(); | |
21093 } | |
21094 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
21095 // for details. All rights reserved. Use of this source code is governed by a | |
21096 // BSD-style license that can be found in the LICENSE file. | |
21097 | |
21098 // TODO(jacobr): define a base class containing the overlap between | |
21099 // this class and ElementEvents. | |
21100 class WindowEventsImplementation extends EventsImplementation | |
21101 implements WindowEvents { | |
21102 WindowEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
21103 | |
21104 EventListenerList get abort() => _get('abort'); | |
21105 EventListenerList get beforeUnload() => _get('beforeunload'); | |
21106 EventListenerList get blur() => _get('blur'); | |
21107 EventListenerList get canPlay() => _get('canplay'); | |
21108 EventListenerList get canPlayThrough() => _get('canplaythrough'); | |
21109 EventListenerList get change() => _get('change'); | |
21110 EventListenerList get click() => _get('click'); | |
21111 EventListenerList get contextMenu() => _get('contextmenu'); | |
21112 EventListenerList get dblClick() => _get('dblclick'); | |
21113 EventListenerList get deviceMotion() => _get('devicemotion'); | |
21114 EventListenerList get deviceOrientation() => _get('deviceorientation'); | |
21115 EventListenerList get drag() => _get('drag'); | |
21116 EventListenerList get dragEnd() => _get('dragend'); | |
21117 EventListenerList get dragEnter() => _get('dragenter'); | |
21118 EventListenerList get dragLeave() => _get('dragleave'); | |
21119 EventListenerList get dragOver() => _get('dragover'); | |
21120 EventListenerList get dragStart() => _get('dragstart'); | |
21121 EventListenerList get drop() => _get('drop'); | |
21122 EventListenerList get durationChange() => _get('durationchange'); | |
21123 EventListenerList get emptied() => _get('emptied'); | |
21124 EventListenerList get ended() => _get('ended'); | |
21125 EventListenerList get error() => _get('error'); | |
21126 EventListenerList get focus() => _get('focus'); | |
21127 EventListenerList get hashChange() => _get('hashchange'); | |
21128 EventListenerList get input() => _get('input'); | |
21129 EventListenerList get invalid() => _get('invalid'); | |
21130 EventListenerList get keyDown() => _get('keydown'); | |
21131 EventListenerList get keyPress() => _get('keypress'); | |
21132 EventListenerList get keyUp() => _get('keyup'); | |
21133 EventListenerList get load() => _get('load'); | |
21134 EventListenerList get loadedData() => _get('loadeddata'); | |
21135 EventListenerList get loadedMetaData() => _get('loadedmetadata'); | |
21136 EventListenerList get loadStart() => _get('loadstart'); | |
21137 EventListenerList get message() => _get('message'); | |
21138 EventListenerList get mouseDown() => _get('mousedown'); | |
21139 EventListenerList get mouseMove() => _get('mousemove'); | |
21140 EventListenerList get mouseOut() => _get('mouseout'); | |
21141 EventListenerList get mouseOver() => _get('mouseover'); | |
21142 EventListenerList get mouseUp() => _get('mouseup'); | |
21143 EventListenerList get mouseWheel() => _get('mousewheel'); | |
21144 EventListenerList get offline() => _get('offline'); | |
21145 EventListenerList get online() => _get('online'); | |
21146 EventListenerList get pageHide() => _get('pagehide'); | |
21147 EventListenerList get pageShow() => _get('pageshow'); | |
21148 EventListenerList get pause() => _get('pause'); | |
21149 EventListenerList get play() => _get('play'); | |
21150 EventListenerList get playing() => _get('playing'); | |
21151 EventListenerList get popState() => _get('popstate'); | |
21152 EventListenerList get progress() => _get('progress'); | |
21153 EventListenerList get rateChange() => _get('ratechange'); | |
21154 EventListenerList get reset() => _get('reset'); | |
21155 EventListenerList get resize() => _get('resize'); | |
21156 EventListenerList get scroll() => _get('scroll'); | |
21157 EventListenerList get search() => _get('search'); | |
21158 EventListenerList get seeked() => _get('seeked'); | |
21159 EventListenerList get seeking() => _get('seeking'); | |
21160 EventListenerList get select() => _get('select'); | |
21161 EventListenerList get stalled() => _get('stalled'); | |
21162 EventListenerList get storage() => _get('storage'); | |
21163 EventListenerList get submit() => _get('submit'); | |
21164 EventListenerList get suspend() => _get('suspend'); | |
21165 EventListenerList get timeUpdate() => _get('timeupdate'); | |
21166 EventListenerList get touchCancel() => _get('touchcancel'); | |
21167 EventListenerList get touchEnd() => _get('touchend'); | |
21168 EventListenerList get touchMove() => _get('touchmove'); | |
21169 EventListenerList get touchStart() => _get('touchstart'); | |
21170 EventListenerList get unLoad() => _get('unload'); | |
21171 EventListenerList get volumeChange() => _get('volumechange'); | |
21172 EventListenerList get waiting() => _get('waiting'); | |
21173 EventListenerList get animationEnd() => _get('webkitAnimationEnd'); | |
21174 EventListenerList get animationIteration() => _get('webkitAnimationIteration')
; | |
21175 EventListenerList get animationStart() => _get('webkitAnimationStart'); | |
21176 EventListenerList get transitionEnd() => _get('webkitTransitionEnd'); | |
21177 EventListenerList get contentLoaded() => _get('DOMContentLoaded'); | |
21178 } | |
21179 | |
21180 class WindowWrappingImplementation extends EventTargetWrappingImplementation imp
lements Window { | |
21181 WindowWrappingImplementation._wrap(ptr) : super._wrap(ptr); | |
21182 | |
21183 DOMApplicationCache get applicationCache() => LevelDom.wrapDOMApplicationCache
(_ptr.applicationCache); | |
21184 | |
21185 Navigator get clientInformation() => LevelDom.wrapNavigator(_ptr.clientInforma
tion); | |
21186 | |
21187 void set clientInformation(Navigator value) { _ptr.clientInformation = LevelDo
m.unwrap(value); } | |
21188 | |
21189 bool get closed() => _ptr.closed; | |
21190 | |
21191 Console get console() => LevelDom.wrapConsole(_ptr.console); | |
21192 | |
21193 void set console(Console value) { _ptr.console = LevelDom.unwrap(value); } | |
21194 | |
21195 Crypto get crypto() => LevelDom.wrapCrypto(_ptr.crypto); | |
21196 | |
21197 String get defaultStatus() => _ptr.defaultStatus; | |
21198 | |
21199 void set defaultStatus(String value) { _ptr.defaultStatus = value; } | |
21200 | |
21201 num get devicePixelRatio() => _ptr.devicePixelRatio; | |
21202 | |
21203 void set devicePixelRatio(num value) { _ptr.devicePixelRatio = value; } | |
21204 | |
21205 Document get document() => LevelDom.wrapDocument(_ptr.document); | |
21206 | |
21207 Event get event() => LevelDom.wrapEvent(_ptr.event); | |
21208 | |
21209 void set event(Event value) { _ptr.event = LevelDom.unwrap(value); } | |
21210 | |
21211 Element get frameElement() => LevelDom.wrapElement(_ptr.frameElement); | |
21212 | |
21213 Window get frames() => LevelDom.wrapWindow(_ptr.frames); | |
21214 | |
21215 void set frames(Window value) { _ptr.frames = LevelDom.unwrap(value); } | |
21216 | |
21217 History get history() => LevelDom.wrapHistory(_ptr.history); | |
21218 | |
21219 void set history(History value) { _ptr.history = LevelDom.unwrap(value); } | |
21220 | |
21221 int get innerHeight() => _ptr.innerHeight; | |
21222 | |
21223 void set innerHeight(int value) { _ptr.innerHeight = value; } | |
21224 | |
21225 int get innerWidth() => _ptr.innerWidth; | |
21226 | |
21227 void set innerWidth(int value) { _ptr.innerWidth = value; } | |
21228 | |
21229 int get length() => _ptr.length; | |
21230 | |
21231 void set length(int value) { _ptr.length = value; } | |
21232 | |
21233 Storage get localStorage() => LevelDom.wrapStorage(_ptr.localStorage); | |
21234 | |
21235 Location get location() => LevelDom.wrapLocation(_ptr.location); | |
21236 | |
21237 void set location(Location value) { _ptr.location = LevelDom.unwrap(value); } | |
21238 | |
21239 BarInfo get locationbar() => LevelDom.wrapBarInfo(_ptr.locationbar); | |
21240 | |
21241 void set locationbar(BarInfo value) { _ptr.locationbar = LevelDom.unwrap(value
); } | |
21242 | |
21243 BarInfo get menubar() => LevelDom.wrapBarInfo(_ptr.menubar); | |
21244 | |
21245 void set menubar(BarInfo value) { _ptr.menubar = LevelDom.unwrap(value); } | |
21246 | |
21247 String get name() => _ptr.name; | |
21248 | |
21249 void set name(String value) { _ptr.name = value; } | |
21250 | |
21251 Navigator get navigator() => LevelDom.wrapNavigator(_ptr.navigator); | |
21252 | |
21253 void set navigator(Navigator value) { _ptr.navigator = LevelDom.unwrap(value);
} | |
21254 | |
21255 bool get offscreenBuffering() => _ptr.offscreenBuffering; | |
21256 | |
21257 void set offscreenBuffering(bool value) { _ptr.offscreenBuffering = value; } | |
21258 | |
21259 EventListener get onabort() => LevelDom.wrapEventListener(_ptr.onabort); | |
21260 | |
21261 void set onabort(EventListener value) { _ptr.onabort = LevelDom.unwrap(value);
} | |
21262 | |
21263 EventListener get onbeforeunload() => LevelDom.wrapEventListener(_ptr.onbefore
unload); | |
21264 | |
21265 void set onbeforeunload(EventListener value) { _ptr.onbeforeunload = LevelDom.
unwrap(value); } | |
21266 | |
21267 EventListener get onblur() => LevelDom.wrapEventListener(_ptr.onblur); | |
21268 | |
21269 void set onblur(EventListener value) { _ptr.onblur = LevelDom.unwrap(value); } | |
21270 | |
21271 EventListener get oncanplay() => LevelDom.wrapEventListener(_ptr.oncanplay); | |
21272 | |
21273 void set oncanplay(EventListener value) { _ptr.oncanplay = LevelDom.unwrap(val
ue); } | |
21274 | |
21275 EventListener get oncanplaythrough() => LevelDom.wrapEventListener(_ptr.oncanp
laythrough); | |
21276 | |
21277 void set oncanplaythrough(EventListener value) { _ptr.oncanplaythrough = Level
Dom.unwrap(value); } | |
21278 | |
21279 EventListener get onchange() => LevelDom.wrapEventListener(_ptr.onchange); | |
21280 | |
21281 void set onchange(EventListener value) { _ptr.onchange = LevelDom.unwrap(value
); } | |
21282 | |
21283 EventListener get onclick() => LevelDom.wrapEventListener(_ptr.onclick); | |
21284 | |
21285 void set onclick(EventListener value) { _ptr.onclick = LevelDom.unwrap(value);
} | |
21286 | |
21287 EventListener get oncontextmenu() => LevelDom.wrapEventListener(_ptr.oncontext
menu); | |
21288 | |
21289 void set oncontextmenu(EventListener value) { _ptr.oncontextmenu = LevelDom.un
wrap(value); } | |
21290 | |
21291 EventListener get ondblclick() => LevelDom.wrapEventListener(_ptr.ondblclick); | |
21292 | |
21293 void set ondblclick(EventListener value) { _ptr.ondblclick = LevelDom.unwrap(v
alue); } | |
21294 | |
21295 EventListener get ondevicemotion() => LevelDom.wrapEventListener(_ptr.ondevice
motion); | |
21296 | |
21297 void set ondevicemotion(EventListener value) { _ptr.ondevicemotion = LevelDom.
unwrap(value); } | |
21298 | |
21299 EventListener get ondeviceorientation() => LevelDom.wrapEventListener(_ptr.ond
eviceorientation); | |
21300 | |
21301 void set ondeviceorientation(EventListener value) { _ptr.ondeviceorientation =
LevelDom.unwrap(value); } | |
21302 | |
21303 EventListener get ondrag() => LevelDom.wrapEventListener(_ptr.ondrag); | |
21304 | |
21305 void set ondrag(EventListener value) { _ptr.ondrag = LevelDom.unwrap(value); } | |
21306 | |
21307 EventListener get ondragend() => LevelDom.wrapEventListener(_ptr.ondragend); | |
21308 | |
21309 void set ondragend(EventListener value) { _ptr.ondragend = LevelDom.unwrap(val
ue); } | |
21310 | |
21311 EventListener get ondragenter() => LevelDom.wrapEventListener(_ptr.ondragenter
); | |
21312 | |
21313 void set ondragenter(EventListener value) { _ptr.ondragenter = LevelDom.unwrap
(value); } | |
21314 | |
21315 EventListener get ondragleave() => LevelDom.wrapEventListener(_ptr.ondragleave
); | |
21316 | |
21317 void set ondragleave(EventListener value) { _ptr.ondragleave = LevelDom.unwrap
(value); } | |
21318 | |
21319 EventListener get ondragover() => LevelDom.wrapEventListener(_ptr.ondragover); | |
21320 | |
21321 void set ondragover(EventListener value) { _ptr.ondragover = LevelDom.unwrap(v
alue); } | |
21322 | |
21323 EventListener get ondragstart() => LevelDom.wrapEventListener(_ptr.ondragstart
); | |
21324 | |
21325 void set ondragstart(EventListener value) { _ptr.ondragstart = LevelDom.unwrap
(value); } | |
21326 | |
21327 EventListener get ondrop() => LevelDom.wrapEventListener(_ptr.ondrop); | |
21328 | |
21329 void set ondrop(EventListener value) { _ptr.ondrop = LevelDom.unwrap(value); } | |
21330 | |
21331 EventListener get ondurationchange() => LevelDom.wrapEventListener(_ptr.ondura
tionchange); | |
21332 | |
21333 void set ondurationchange(EventListener value) { _ptr.ondurationchange = Level
Dom.unwrap(value); } | |
21334 | |
21335 EventListener get onemptied() => LevelDom.wrapEventListener(_ptr.onemptied); | |
21336 | |
21337 void set onemptied(EventListener value) { _ptr.onemptied = LevelDom.unwrap(val
ue); } | |
21338 | |
21339 EventListener get onended() => LevelDom.wrapEventListener(_ptr.onended); | |
21340 | |
21341 void set onended(EventListener value) { _ptr.onended = LevelDom.unwrap(value);
} | |
21342 | |
21343 EventListener get onerror() => LevelDom.wrapEventListener(_ptr.onerror); | |
21344 | |
21345 void set onerror(EventListener value) { _ptr.onerror = LevelDom.unwrap(value);
} | |
21346 | |
21347 EventListener get onfocus() => LevelDom.wrapEventListener(_ptr.onfocus); | |
21348 | |
21349 void set onfocus(EventListener value) { _ptr.onfocus = LevelDom.unwrap(value);
} | |
21350 | |
21351 EventListener get onhashchange() => LevelDom.wrapEventListener(_ptr.onhashchan
ge); | |
21352 | |
21353 void set onhashchange(EventListener value) { _ptr.onhashchange = LevelDom.unwr
ap(value); } | |
21354 | |
21355 EventListener get oninput() => LevelDom.wrapEventListener(_ptr.oninput); | |
21356 | |
21357 void set oninput(EventListener value) { _ptr.oninput = LevelDom.unwrap(value);
} | |
21358 | |
21359 EventListener get oninvalid() => LevelDom.wrapEventListener(_ptr.oninvalid); | |
21360 | |
21361 void set oninvalid(EventListener value) { _ptr.oninvalid = LevelDom.unwrap(val
ue); } | |
21362 | |
21363 EventListener get onkeydown() => LevelDom.wrapEventListener(_ptr.onkeydown); | |
21364 | |
21365 void set onkeydown(EventListener value) { _ptr.onkeydown = LevelDom.unwrap(val
ue); } | |
21366 | |
21367 EventListener get onkeypress() => LevelDom.wrapEventListener(_ptr.onkeypress); | |
21368 | |
21369 void set onkeypress(EventListener value) { _ptr.onkeypress = LevelDom.unwrap(v
alue); } | |
21370 | |
21371 EventListener get onkeyup() => LevelDom.wrapEventListener(_ptr.onkeyup); | |
21372 | |
21373 void set onkeyup(EventListener value) { _ptr.onkeyup = LevelDom.unwrap(value);
} | |
21374 | |
21375 EventListener get onload() => LevelDom.wrapEventListener(_ptr.onload); | |
21376 | |
21377 void set onload(EventListener value) { _ptr.onload = LevelDom.unwrap(value); } | |
21378 | |
21379 EventListener get onloadeddata() => LevelDom.wrapEventListener(_ptr.onloadedda
ta); | |
21380 | |
21381 void set onloadeddata(EventListener value) { _ptr.onloadeddata = LevelDom.unwr
ap(value); } | |
21382 | |
21383 EventListener get onloadedmetadata() => LevelDom.wrapEventListener(_ptr.onload
edmetadata); | |
21384 | |
21385 void set onloadedmetadata(EventListener value) { _ptr.onloadedmetadata = Level
Dom.unwrap(value); } | |
21386 | |
21387 EventListener get onloadstart() => LevelDom.wrapEventListener(_ptr.onloadstart
); | |
21388 | |
21389 void set onloadstart(EventListener value) { _ptr.onloadstart = LevelDom.unwrap
(value); } | |
21390 | |
21391 EventListener get onmessage() => LevelDom.wrapEventListener(_ptr.onmessage); | |
21392 | |
21393 void set onmessage(EventListener value) { _ptr.onmessage = LevelDom.unwrap(val
ue); } | |
21394 | |
21395 EventListener get onmousedown() => LevelDom.wrapEventListener(_ptr.onmousedown
); | |
21396 | |
21397 void set onmousedown(EventListener value) { _ptr.onmousedown = LevelDom.unwrap
(value); } | |
21398 | |
21399 EventListener get onmousemove() => LevelDom.wrapEventListener(_ptr.onmousemove
); | |
21400 | |
21401 void set onmousemove(EventListener value) { _ptr.onmousemove = LevelDom.unwrap
(value); } | |
21402 | |
21403 EventListener get onmouseout() => LevelDom.wrapEventListener(_ptr.onmouseout); | |
21404 | |
21405 void set onmouseout(EventListener value) { _ptr.onmouseout = LevelDom.unwrap(v
alue); } | |
21406 | |
21407 EventListener get onmouseover() => LevelDom.wrapEventListener(_ptr.onmouseover
); | |
21408 | |
21409 void set onmouseover(EventListener value) { _ptr.onmouseover = LevelDom.unwrap
(value); } | |
21410 | |
21411 EventListener get onmouseup() => LevelDom.wrapEventListener(_ptr.onmouseup); | |
21412 | |
21413 void set onmouseup(EventListener value) { _ptr.onmouseup = LevelDom.unwrap(val
ue); } | |
21414 | |
21415 EventListener get onmousewheel() => LevelDom.wrapEventListener(_ptr.onmousewhe
el); | |
21416 | |
21417 void set onmousewheel(EventListener value) { _ptr.onmousewheel = LevelDom.unwr
ap(value); } | |
21418 | |
21419 EventListener get onoffline() => LevelDom.wrapEventListener(_ptr.onoffline); | |
21420 | |
21421 void set onoffline(EventListener value) { _ptr.onoffline = LevelDom.unwrap(val
ue); } | |
21422 | |
21423 EventListener get ononline() => LevelDom.wrapEventListener(_ptr.ononline); | |
21424 | |
21425 void set ononline(EventListener value) { _ptr.ononline = LevelDom.unwrap(value
); } | |
21426 | |
21427 EventListener get onpagehide() => LevelDom.wrapEventListener(_ptr.onpagehide); | |
21428 | |
21429 void set onpagehide(EventListener value) { _ptr.onpagehide = LevelDom.unwrap(v
alue); } | |
21430 | |
21431 EventListener get onpageshow() => LevelDom.wrapEventListener(_ptr.onpageshow); | |
21432 | |
21433 void set onpageshow(EventListener value) { _ptr.onpageshow = LevelDom.unwrap(v
alue); } | |
21434 | |
21435 EventListener get onpause() => LevelDom.wrapEventListener(_ptr.onpause); | |
21436 | |
21437 void set onpause(EventListener value) { _ptr.onpause = LevelDom.unwrap(value);
} | |
21438 | |
21439 EventListener get onplay() => LevelDom.wrapEventListener(_ptr.onplay); | |
21440 | |
21441 void set onplay(EventListener value) { _ptr.onplay = LevelDom.unwrap(value); } | |
21442 | |
21443 EventListener get onplaying() => LevelDom.wrapEventListener(_ptr.onplaying); | |
21444 | |
21445 void set onplaying(EventListener value) { _ptr.onplaying = LevelDom.unwrap(val
ue); } | |
21446 | |
21447 EventListener get onpopstate() => LevelDom.wrapEventListener(_ptr.onpopstate); | |
21448 | |
21449 void set onpopstate(EventListener value) { _ptr.onpopstate = LevelDom.unwrap(v
alue); } | |
21450 | |
21451 EventListener get onprogress() => LevelDom.wrapEventListener(_ptr.onprogress); | |
21452 | |
21453 void set onprogress(EventListener value) { _ptr.onprogress = LevelDom.unwrap(v
alue); } | |
21454 | |
21455 EventListener get onratechange() => LevelDom.wrapEventListener(_ptr.onratechan
ge); | |
21456 | |
21457 void set onratechange(EventListener value) { _ptr.onratechange = LevelDom.unwr
ap(value); } | |
21458 | |
21459 EventListener get onreset() => LevelDom.wrapEventListener(_ptr.onreset); | |
21460 | |
21461 void set onreset(EventListener value) { _ptr.onreset = LevelDom.unwrap(value);
} | |
21462 | |
21463 EventListener get onresize() => LevelDom.wrapEventListener(_ptr.onresize); | |
21464 | |
21465 void set onresize(EventListener value) { _ptr.onresize = LevelDom.unwrap(value
); } | |
21466 | |
21467 EventListener get onscroll() => LevelDom.wrapEventListener(_ptr.onscroll); | |
21468 | |
21469 void set onscroll(EventListener value) { _ptr.onscroll = LevelDom.unwrap(value
); } | |
21470 | |
21471 EventListener get onsearch() => LevelDom.wrapEventListener(_ptr.onsearch); | |
21472 | |
21473 void set onsearch(EventListener value) { _ptr.onsearch = LevelDom.unwrap(value
); } | |
21474 | |
21475 EventListener get onseeked() => LevelDom.wrapEventListener(_ptr.onseeked); | |
21476 | |
21477 void set onseeked(EventListener value) { _ptr.onseeked = LevelDom.unwrap(value
); } | |
21478 | |
21479 EventListener get onseeking() => LevelDom.wrapEventListener(_ptr.onseeking); | |
21480 | |
21481 void set onseeking(EventListener value) { _ptr.onseeking = LevelDom.unwrap(val
ue); } | |
21482 | |
21483 EventListener get onselect() => LevelDom.wrapEventListener(_ptr.onselect); | |
21484 | |
21485 void set onselect(EventListener value) { _ptr.onselect = LevelDom.unwrap(value
); } | |
21486 | |
21487 EventListener get onstalled() => LevelDom.wrapEventListener(_ptr.onstalled); | |
21488 | |
21489 void set onstalled(EventListener value) { _ptr.onstalled = LevelDom.unwrap(val
ue); } | |
21490 | |
21491 EventListener get onstorage() => LevelDom.wrapEventListener(_ptr.onstorage); | |
21492 | |
21493 void set onstorage(EventListener value) { _ptr.onstorage = LevelDom.unwrap(val
ue); } | |
21494 | |
21495 EventListener get onsubmit() => LevelDom.wrapEventListener(_ptr.onsubmit); | |
21496 | |
21497 void set onsubmit(EventListener value) { _ptr.onsubmit = LevelDom.unwrap(value
); } | |
21498 | |
21499 EventListener get onsuspend() => LevelDom.wrapEventListener(_ptr.onsuspend); | |
21500 | |
21501 void set onsuspend(EventListener value) { _ptr.onsuspend = LevelDom.unwrap(val
ue); } | |
21502 | |
21503 EventListener get ontimeupdate() => LevelDom.wrapEventListener(_ptr.ontimeupda
te); | |
21504 | |
21505 void set ontimeupdate(EventListener value) { _ptr.ontimeupdate = LevelDom.unwr
ap(value); } | |
21506 | |
21507 EventListener get ontouchcancel() => LevelDom.wrapEventListener(_ptr.ontouchca
ncel); | |
21508 | |
21509 void set ontouchcancel(EventListener value) { _ptr.ontouchcancel = LevelDom.un
wrap(value); } | |
21510 | |
21511 EventListener get ontouchend() => LevelDom.wrapEventListener(_ptr.ontouchend); | |
21512 | |
21513 void set ontouchend(EventListener value) { _ptr.ontouchend = LevelDom.unwrap(v
alue); } | |
21514 | |
21515 EventListener get ontouchmove() => LevelDom.wrapEventListener(_ptr.ontouchmove
); | |
21516 | |
21517 void set ontouchmove(EventListener value) { _ptr.ontouchmove = LevelDom.unwrap
(value); } | |
21518 | |
21519 EventListener get ontouchstart() => LevelDom.wrapEventListener(_ptr.ontouchsta
rt); | |
21520 | |
21521 void set ontouchstart(EventListener value) { _ptr.ontouchstart = LevelDom.unwr
ap(value); } | |
21522 | |
21523 EventListener get onunload() => LevelDom.wrapEventListener(_ptr.onunload); | |
21524 | |
21525 void set onunload(EventListener value) { _ptr.onunload = LevelDom.unwrap(value
); } | |
21526 | |
21527 EventListener get onvolumechange() => LevelDom.wrapEventListener(_ptr.onvolume
change); | |
21528 | |
21529 void set onvolumechange(EventListener value) { _ptr.onvolumechange = LevelDom.
unwrap(value); } | |
21530 | |
21531 EventListener get onwaiting() => LevelDom.wrapEventListener(_ptr.onwaiting); | |
21532 | |
21533 void set onwaiting(EventListener value) { _ptr.onwaiting = LevelDom.unwrap(val
ue); } | |
21534 | |
21535 EventListener get onwebkitanimationend() => LevelDom.wrapEventListener(_ptr.on
webkitanimationend); | |
21536 | |
21537 void set onwebkitanimationend(EventListener value) { _ptr.onwebkitanimationend
= LevelDom.unwrap(value); } | |
21538 | |
21539 EventListener get onwebkitanimationiteration() => LevelDom.wrapEventListener(_
ptr.onwebkitanimationiteration); | |
21540 | |
21541 void set onwebkitanimationiteration(EventListener value) { _ptr.onwebkitanimat
ioniteration = LevelDom.unwrap(value); } | |
21542 | |
21543 EventListener get onwebkitanimationstart() => LevelDom.wrapEventListener(_ptr.
onwebkitanimationstart); | |
21544 | |
21545 void set onwebkitanimationstart(EventListener value) { _ptr.onwebkitanimations
tart = LevelDom.unwrap(value); } | |
21546 | |
21547 EventListener get onwebkittransitionend() => LevelDom.wrapEventListener(_ptr.o
nwebkittransitionend); | |
21548 | |
21549 void set onwebkittransitionend(EventListener value) { _ptr.onwebkittransitione
nd = LevelDom.unwrap(value); } | |
21550 | |
21551 Window get opener() => LevelDom.wrapWindow(_ptr.opener); | |
21552 | |
21553 void set opener(Window value) { _ptr.opener = LevelDom.unwrap(value); } | |
21554 | |
21555 int get outerHeight() => _ptr.outerHeight; | |
21556 | |
21557 void set outerHeight(int value) { _ptr.outerHeight = value; } | |
21558 | |
21559 int get outerWidth() => _ptr.outerWidth; | |
21560 | |
21561 void set outerWidth(int value) { _ptr.outerWidth = value; } | |
21562 | |
21563 int get pageXOffset() => _ptr.pageXOffset; | |
21564 | |
21565 int get pageYOffset() => _ptr.pageYOffset; | |
21566 | |
21567 Window get parent() => LevelDom.wrapWindow(_ptr.parent); | |
21568 | |
21569 void set parent(Window value) { _ptr.parent = LevelDom.unwrap(value); } | |
21570 | |
21571 BarInfo get personalbar() => LevelDom.wrapBarInfo(_ptr.personalbar); | |
21572 | |
21573 void set personalbar(BarInfo value) { _ptr.personalbar = LevelDom.unwrap(value
); } | |
21574 | |
21575 Screen get screen() => LevelDom.wrapScreen(_ptr.screen); | |
21576 | |
21577 void set screen(Screen value) { _ptr.screen = LevelDom.unwrap(value); } | |
21578 | |
21579 int get screenLeft() => _ptr.screenLeft; | |
21580 | |
21581 void set screenLeft(int value) { _ptr.screenLeft = value; } | |
21582 | |
21583 int get screenTop() => _ptr.screenTop; | |
21584 | |
21585 void set screenTop(int value) { _ptr.screenTop = value; } | |
21586 | |
21587 int get screenX() => _ptr.screenX; | |
21588 | |
21589 void set screenX(int value) { _ptr.screenX = value; } | |
21590 | |
21591 int get screenY() => _ptr.screenY; | |
21592 | |
21593 void set screenY(int value) { _ptr.screenY = value; } | |
21594 | |
21595 int get scrollX() => _ptr.scrollX; | |
21596 | |
21597 void set scrollX(int value) { _ptr.scrollX = value; } | |
21598 | |
21599 int get scrollY() => _ptr.scrollY; | |
21600 | |
21601 void set scrollY(int value) { _ptr.scrollY = value; } | |
21602 | |
21603 BarInfo get scrollbars() => LevelDom.wrapBarInfo(_ptr.scrollbars); | |
21604 | |
21605 void set scrollbars(BarInfo value) { _ptr.scrollbars = LevelDom.unwrap(value);
} | |
21606 | |
21607 Window get self() => LevelDom.wrapWindow(_ptr.self); | |
21608 | |
21609 void set self(Window value) { _ptr.self = LevelDom.unwrap(value); } | |
21610 | |
21611 Storage get sessionStorage() => LevelDom.wrapStorage(_ptr.sessionStorage); | |
21612 | |
21613 String get status() => _ptr.status; | |
21614 | |
21615 void set status(String value) { _ptr.status = value; } | |
21616 | |
21617 BarInfo get statusbar() => LevelDom.wrapBarInfo(_ptr.statusbar); | |
21618 | |
21619 void set statusbar(BarInfo value) { _ptr.statusbar = LevelDom.unwrap(value); } | |
21620 | |
21621 StyleMedia get styleMedia() => LevelDom.wrapStyleMedia(_ptr.styleMedia); | |
21622 | |
21623 BarInfo get toolbar() => LevelDom.wrapBarInfo(_ptr.toolbar); | |
21624 | |
21625 void set toolbar(BarInfo value) { _ptr.toolbar = LevelDom.unwrap(value); } | |
21626 | |
21627 Window get top() => LevelDom.wrapWindow(_ptr.top); | |
21628 | |
21629 void set top(Window value) { _ptr.top = LevelDom.unwrap(value); } | |
21630 | |
21631 NotificationCenter get webkitNotifications() => LevelDom.wrapNotificationCente
r(_ptr.webkitNotifications); | |
21632 | |
21633 void alert([String message = null]) { | |
21634 if (message === null) { | |
21635 _ptr.alert(); | |
21636 } else { | |
21637 _ptr.alert(message); | |
21638 } | |
21639 } | |
21640 | |
21641 String atob([String string = null]) { | |
21642 if (string === null) { | |
21643 return _ptr.atob(); | |
21644 } else { | |
21645 return _ptr.atob(string); | |
21646 } | |
21647 } | |
21648 | |
21649 void blur() { | |
21650 _ptr.blur(); | |
21651 } | |
21652 | |
21653 String btoa([String string = null]) { | |
21654 if (string === null) { | |
21655 return _ptr.btoa(); | |
21656 } else { | |
21657 return _ptr.btoa(string); | |
21658 } | |
21659 } | |
21660 | |
21661 void captureEvents() { | |
21662 _ptr.captureEvents(); | |
21663 } | |
21664 | |
21665 void clearInterval([int handle = null]) { | |
21666 if (handle === null) { | |
21667 _ptr.clearInterval(); | |
21668 } else { | |
21669 _ptr.clearInterval(handle); | |
21670 } | |
21671 } | |
21672 | |
21673 void clearTimeout([int handle = null]) { | |
21674 if (handle === null) { | |
21675 _ptr.clearTimeout(); | |
21676 } else { | |
21677 _ptr.clearTimeout(handle); | |
21678 } | |
21679 } | |
21680 | |
21681 void close() { | |
21682 _ptr.close(); | |
21683 } | |
21684 | |
21685 bool confirm([String message = null]) { | |
21686 if (message === null) { | |
21687 return _ptr.confirm(); | |
21688 } else { | |
21689 return _ptr.confirm(message); | |
21690 } | |
21691 } | |
21692 | |
21693 FileReader createFileReader() { | |
21694 return LevelDom.wrapFileReader(_ptr.createFileReader()); | |
21695 } | |
21696 | |
21697 CSSMatrix createCSSMatrix([String cssValue = null]) { | |
21698 if (cssValue === null) { | |
21699 return LevelDom.wrapCSSMatrix(_ptr.createWebKitCSSMatrix()); | |
21700 } else { | |
21701 return LevelDom.wrapCSSMatrix(_ptr.createWebKitCSSMatrix(cssValue)); | |
21702 } | |
21703 } | |
21704 | |
21705 bool find([String string = null, bool caseSensitive = null, bool backwards = n
ull, bool wrap = null, bool wholeWord = null, bool searchInFrames = null, bool s
howDialog = null]) { | |
21706 if (string === null) { | |
21707 if (caseSensitive === null) { | |
21708 if (backwards === null) { | |
21709 if (wrap === null) { | |
21710 if (wholeWord === null) { | |
21711 if (searchInFrames === null) { | |
21712 if (showDialog === null) { | |
21713 return _ptr.find(); | |
21714 } | |
21715 } | |
21716 } | |
21717 } | |
21718 } | |
21719 } | |
21720 } else { | |
21721 if (caseSensitive === null) { | |
21722 if (backwards === null) { | |
21723 if (wrap === null) { | |
21724 if (wholeWord === null) { | |
21725 if (searchInFrames === null) { | |
21726 if (showDialog === null) { | |
21727 return _ptr.find(string); | |
21728 } | |
21729 } | |
21730 } | |
21731 } | |
21732 } | |
21733 } else { | |
21734 if (backwards === null) { | |
21735 if (wrap === null) { | |
21736 if (wholeWord === null) { | |
21737 if (searchInFrames === null) { | |
21738 if (showDialog === null) { | |
21739 return _ptr.find(string, caseSensitive); | |
21740 } | |
21741 } | |
21742 } | |
21743 } | |
21744 } else { | |
21745 if (wrap === null) { | |
21746 if (wholeWord === null) { | |
21747 if (searchInFrames === null) { | |
21748 if (showDialog === null) { | |
21749 return _ptr.find(string, caseSensitive, backwards); | |
21750 } | |
21751 } | |
21752 } | |
21753 } else { | |
21754 if (wholeWord === null) { | |
21755 if (searchInFrames === null) { | |
21756 if (showDialog === null) { | |
21757 return _ptr.find(string, caseSensitive, backwards, wrap); | |
21758 } | |
21759 } | |
21760 } else { | |
21761 if (searchInFrames === null) { | |
21762 if (showDialog === null) { | |
21763 return _ptr.find(string, caseSensitive, backwards, wrap, whole
Word); | |
21764 } | |
21765 } else { | |
21766 if (showDialog === null) { | |
21767 return _ptr.find(string, caseSensitive, backwards, wrap, whole
Word, searchInFrames); | |
21768 } else { | |
21769 return _ptr.find(string, caseSensitive, backwards, wrap, whole
Word, searchInFrames, showDialog); | |
21770 } | |
21771 } | |
21772 } | |
21773 } | |
21774 } | |
21775 } | |
21776 } | |
21777 throw "Incorrect number or type of arguments"; | |
21778 } | |
21779 | |
21780 void focus() { | |
21781 _ptr.focus(); | |
21782 } | |
21783 | |
21784 CSSStyleDeclaration getComputedStyle([Element element = null, String pseudoEle
ment = null]) { | |
21785 if (element === null) { | |
21786 if (pseudoElement === null) { | |
21787 return LevelDom.wrapCSSStyleDeclaration(_ptr.getComputedStyle()); | |
21788 } | |
21789 } else { | |
21790 if (pseudoElement === null) { | |
21791 return LevelDom.wrapCSSStyleDeclaration(_ptr.getComputedStyle(LevelDom.u
nwrap(element))); | |
21792 } else { | |
21793 return LevelDom.wrapCSSStyleDeclaration(_ptr.getComputedStyle(LevelDom.u
nwrap(element), pseudoElement)); | |
21794 } | |
21795 } | |
21796 throw "Incorrect number or type of arguments"; | |
21797 } | |
21798 | |
21799 DOMSelection getSelection() { | |
21800 return LevelDom.wrapDOMSelection(_ptr.getSelection()); | |
21801 } | |
21802 | |
21803 MediaQueryList matchMedia(String query) { | |
21804 return LevelDom.wrapMediaQueryList(_ptr.matchMedia(query)); | |
21805 } | |
21806 | |
21807 void moveBy(num x, num y) { | |
21808 _ptr.moveBy(x, y); | |
21809 } | |
21810 | |
21811 void moveTo(num x, num y) { | |
21812 _ptr.moveTo(x, y); | |
21813 } | |
21814 | |
21815 Window open(String url, String target, [String features = null]) { | |
21816 if (features === null) { | |
21817 return LevelDom.wrapWindow(_ptr.open(url, target)); | |
21818 } else { | |
21819 return LevelDom.wrapWindow(_ptr.open(url, target, features)); | |
21820 } | |
21821 } | |
21822 | |
21823 // TODO(jacobr): cleanup. | |
21824 void postMessage(String message, [var messagePort = null, var targetOrigin = n
ull]) { | |
21825 if (targetOrigin === null) { | |
21826 if (messagePort === null) { | |
21827 _ptr.postMessage(message); | |
21828 return; | |
21829 } else { | |
21830 // messagePort is really the targetOrigin string. | |
21831 _ptr.postMessage(message, messagePort); | |
21832 return; | |
21833 } | |
21834 } else { | |
21835 _ptr.postMessage(message, LevelDom.unwrap(messagePort), targetOrigin); | |
21836 return; | |
21837 } | |
21838 throw "Incorrect number or type of arguments"; | |
21839 } | |
21840 | |
21841 void print() { | |
21842 _ptr.print(); | |
21843 } | |
21844 | |
21845 String prompt([String message = null, String defaultValue = null]) { | |
21846 if (message === null) { | |
21847 if (defaultValue === null) { | |
21848 return _ptr.prompt(); | |
21849 } | |
21850 } else { | |
21851 if (defaultValue === null) { | |
21852 return _ptr.prompt(message); | |
21853 } else { | |
21854 return _ptr.prompt(message, defaultValue); | |
21855 } | |
21856 } | |
21857 throw "Incorrect number or type of arguments"; | |
21858 } | |
21859 | |
21860 void releaseEvents() { | |
21861 _ptr.releaseEvents(); | |
21862 } | |
21863 | |
21864 void resizeBy(num x, num y) { | |
21865 _ptr.resizeBy(x, y); | |
21866 } | |
21867 | |
21868 void resizeTo(num width, num height) { | |
21869 _ptr.resizeTo(width, height); | |
21870 } | |
21871 | |
21872 void scroll(int x, int y) { | |
21873 _ptr.scroll(x, y); | |
21874 } | |
21875 | |
21876 void scrollBy(int x, int y) { | |
21877 _ptr.scrollBy(x, y); | |
21878 } | |
21879 | |
21880 void scrollTo(int x, int y) { | |
21881 _ptr.scrollTo(x, y); | |
21882 } | |
21883 | |
21884 int setInterval(TimeoutHandler handler, int timeout) { | |
21885 return _ptr.setInterval(handler, timeout); | |
21886 } | |
21887 | |
21888 int setTimeout([TimeoutHandler handler = null, int timeout = null]) { | |
21889 if (handler === null) { | |
21890 if (timeout === null) { | |
21891 return _ptr.setTimeout(); | |
21892 } | |
21893 } else { | |
21894 if (timeout === null) { | |
21895 return _ptr.setTimeout(handler); | |
21896 } else { | |
21897 return _ptr.setTimeout(handler, timeout); | |
21898 } | |
21899 } | |
21900 throw "Incorrect number or type of arguments"; | |
21901 } | |
21902 | |
21903 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr
gs = null]) { | |
21904 if (dialogArgs === null) { | |
21905 if (featureArgs === null) { | |
21906 return _ptr.showModalDialog(url); | |
21907 } | |
21908 } else { | |
21909 if (featureArgs === null) { | |
21910 return _ptr.showModalDialog(url, LevelDom.unwrap(dialogArgs)); | |
21911 } else { | |
21912 return _ptr.showModalDialog(url, LevelDom.unwrap(dialogArgs), | |
21913 featureArgs); | |
21914 } | |
21915 } | |
21916 throw "Incorrect number or type of arguments"; | |
21917 } | |
21918 | |
21919 void stop() { | |
21920 _ptr.stop(); | |
21921 } | |
21922 | |
21923 void webkitCancelRequestAnimationFrame(int id) { | |
21924 _ptr.webkitCancelRequestAnimationFrame(id); | |
21925 } | |
21926 | |
21927 Point webkitConvertPointFromNodeToPage([Node node = null, Point p = null]) { | |
21928 if (node === null) { | |
21929 if (p === null) { | |
21930 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage()); | |
21931 } | |
21932 } else { | |
21933 if (p === null) { | |
21934 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage(LevelDom
.unwrap(node))); | |
21935 } else { | |
21936 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromNodeToPage(LevelDom
.unwrap(node), LevelDom.unwrap(p))); | |
21937 } | |
21938 } | |
21939 throw "Incorrect number or type of arguments"; | |
21940 } | |
21941 | |
21942 Point webkitConvertPointFromPageToNode([Node node = null, Point p = null]) { | |
21943 if (node === null) { | |
21944 if (p === null) { | |
21945 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode()); | |
21946 } | |
21947 } else { | |
21948 if (p === null) { | |
21949 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode(LevelDom
.unwrap(node))); | |
21950 } else { | |
21951 return LevelDom.wrapPoint(_ptr.webkitConvertPointFromPageToNode(LevelDom
.unwrap(node), LevelDom.unwrap(p))); | |
21952 } | |
21953 } | |
21954 throw "Incorrect number or type of arguments"; | |
21955 } | |
21956 | |
21957 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, [Eleme
nt element = null]) { | |
21958 if (element === null) { | |
21959 return _ptr.webkitRequestAnimationFrame(callback); | |
21960 } else { | |
21961 return _ptr.webkitRequestAnimationFrame(callback, LevelDom.unwrap(element)
); | |
21962 } | |
21963 } | |
21964 | |
21965 WindowEvents get on() { | |
21966 if (_on === null) { | |
21967 _on = new WindowEventsImplementation._wrap(_ptr); | |
21968 } | |
21969 return _on; | |
21970 } | |
21971 } | |
21972 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
21973 // for details. All rights reserved. Use of this source code is governed by a | |
21974 // BSD-style license that can be found in the LICENSE file. | |
21975 | |
21976 interface WorkerEvents extends AbstractWorkerEvents { | |
21977 EventListenerList get message(); | |
21978 } | |
21979 | |
21980 interface Worker extends AbstractWorker { | |
21981 | |
21982 void postMessage(String message, [MessagePort messagePort]); | |
21983 | |
21984 void terminate(); | |
21985 | |
21986 WorkerEvents get on(); | |
21987 } | |
21988 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
21989 // for details. All rights reserved. Use of this source code is governed by a | |
21990 // BSD-style license that can be found in the LICENSE file. | |
21991 | |
21992 class WorkerEventsImplementation extends AbstractWorkerEventsImplementation | |
21993 implements WorkerEvents { | |
21994 WorkerEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
21995 | |
21996 EventListenerList get message() => _get('message'); | |
21997 } | |
21998 | |
21999 class WorkerWrappingImplementation extends EventTargetWrappingImplementation imp
lements Worker { | |
22000 WorkerWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
22001 | |
22002 void postMessage(String message, [MessagePort messagePort = null]) { | |
22003 if (messagePort === null) { | |
22004 _ptr.postMessage(message); | |
22005 return; | |
22006 } else { | |
22007 _ptr.postMessage(message, LevelDom.unwrap(messagePort)); | |
22008 return; | |
22009 } | |
22010 } | |
22011 | |
22012 void terminate() { | |
22013 _ptr.terminate(); | |
22014 return; | |
22015 } | |
22016 | |
22017 WorkerEvents get on() { | |
22018 if (_on === null) { | |
22019 _on = new WorkerEventsImplementation._wrap(_ptr); | |
22020 } | |
22021 return _on; | |
22022 } | |
22023 } | |
22024 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
22025 // for details. All rights reserved. Use of this source code is governed by a | |
22026 // BSD-style license that can be found in the LICENSE file. | |
22027 | |
22028 interface XMLHttpRequestEvents extends Events { | |
22029 EventListenerList get abort(); | |
22030 EventListenerList get error(); | |
22031 EventListenerList get load(); | |
22032 EventListenerList get loadStart(); | |
22033 EventListenerList get progress(); | |
22034 EventListenerList get readyStateChange(); | |
22035 } | |
22036 | |
22037 interface XMLHttpRequest extends EventTarget factory XMLHttpRequestWrappingImple
mentation { | |
22038 static final int DONE = 4; | |
22039 | |
22040 static final int HEADERS_RECEIVED = 2; | |
22041 | |
22042 static final int LOADING = 3; | |
22043 | |
22044 static final int OPENED = 1; | |
22045 | |
22046 static final int UNSENT = 0; | |
22047 | |
22048 XMLHttpRequest(); | |
22049 | |
22050 // TODO(rnystrom): This name should just be "get" which is valid in Dart, but | |
22051 // not correctly implemented yet. (b/4970173) | |
22052 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request)); | |
22053 | |
22054 int get readyState(); | |
22055 | |
22056 String get responseText(); | |
22057 | |
22058 String get responseType(); | |
22059 | |
22060 void set responseType(String value); | |
22061 | |
22062 Document get responseXML(); | |
22063 | |
22064 int get status(); | |
22065 | |
22066 String get statusText(); | |
22067 | |
22068 XMLHttpRequestUpload get upload(); | |
22069 | |
22070 bool get withCredentials(); | |
22071 | |
22072 void set withCredentials(bool value); | |
22073 | |
22074 void abort(); | |
22075 | |
22076 String getAllResponseHeaders(); | |
22077 | |
22078 String getResponseHeader(String header); | |
22079 | |
22080 void open(String method, String url, bool async, [String user, String password
]); | |
22081 | |
22082 void overrideMimeType(String mime); | |
22083 | |
22084 void send([String data]); | |
22085 | |
22086 void setRequestHeader(String header, String value); | |
22087 | |
22088 XMLHttpRequestEvents get on(); | |
22089 } | |
22090 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
22091 // for details. All rights reserved. Use of this source code is governed by a | |
22092 // BSD-style license that can be found in the LICENSE file. | |
22093 | |
22094 interface XMLHttpRequestUploadEvents extends Events { | |
22095 EventListenerList get abort(); | |
22096 EventListenerList get error(); | |
22097 EventListenerList get load(); | |
22098 EventListenerList get loadStart(); | |
22099 EventListenerList get progress(); | |
22100 } | |
22101 | |
22102 interface XMLHttpRequestUpload extends EventTarget { | |
22103 XMLHttpRequestUploadEvents get on(); | |
22104 } | |
22105 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
22106 // for details. All rights reserved. Use of this source code is governed by a | |
22107 // BSD-style license that can be found in the LICENSE file. | |
22108 | |
22109 class XMLHttpRequestUploadEventsImplementation extends EventsImplementation | |
22110 implements XMLHttpRequestUploadEvents { | |
22111 XMLHttpRequestUploadEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
22112 | |
22113 EventListenerList get abort() => _get('abort'); | |
22114 EventListenerList get error() => _get('error'); | |
22115 EventListenerList get load() => _get('load'); | |
22116 EventListenerList get loadStart() => _get('loadstart'); | |
22117 EventListenerList get progress() => _get('progress'); | |
22118 } | |
22119 | |
22120 class XMLHttpRequestUploadWrappingImplementation extends EventTargetWrappingImpl
ementation implements XMLHttpRequestUpload { | |
22121 XMLHttpRequestUploadWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
22122 | |
22123 XMLHttpRequestUploadEvents get on() { | |
22124 if (_on === null) { | |
22125 _on = new XMLHttpRequestUploadEventsImplementation._wrap(_ptr); | |
22126 } | |
22127 return _on; | |
22128 } | |
22129 } | |
22130 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
22131 // for details. All rights reserved. Use of this source code is governed by a | |
22132 // BSD-style license that can be found in the LICENSE file. | |
22133 | |
22134 class XMLHttpRequestEventsImplementation extends EventsImplementation | |
22135 implements XMLHttpRequestEvents { | |
22136 XMLHttpRequestEventsImplementation._wrap(_ptr) : super._wrap(_ptr); | |
22137 | |
22138 EventListenerList get abort() => _get('abort'); | |
22139 EventListenerList get error() => _get('error'); | |
22140 EventListenerList get load() => _get('load'); | |
22141 EventListenerList get loadStart() => _get('loadstart'); | |
22142 EventListenerList get progress() => _get('progress'); | |
22143 EventListenerList get readyStateChange() => _get('readystatechange'); | |
22144 } | |
22145 | |
22146 class XMLHttpRequestWrappingImplementation extends EventTargetWrappingImplementa
tion implements XMLHttpRequest { | |
22147 XMLHttpRequestWrappingImplementation._wrap( | |
22148 dom.XMLHttpRequest ptr) : super._wrap(ptr); | |
22149 | |
22150 factory XMLHttpRequestWrappingImplementation() { | |
22151 return new XMLHttpRequestWrappingImplementation._wrap( | |
22152 new dom.XMLHttpRequest()); | |
22153 } | |
22154 | |
22155 factory XMLHttpRequestWrappingImplementation.getTEMPNAME(String url, | |
22156 onSuccess(XMLHttpRequest request)) { | |
22157 final request = new XMLHttpRequest(); | |
22158 request.open('GET', url, true); | |
22159 | |
22160 // TODO(terry): Validate after client login added if necessary to forward | |
22161 // cookies to server. | |
22162 request.withCredentials = true; | |
22163 | |
22164 // Status 0 is for local XHR request. | |
22165 request.on.readyStateChange.add((e) { | |
22166 if (request.readyState == XMLHttpRequest.DONE && | |
22167 (request.status == 200 || request.status == 0)) { | |
22168 onSuccess(request); | |
22169 } | |
22170 }); | |
22171 | |
22172 request.send(); | |
22173 | |
22174 return request; | |
22175 } | |
22176 | |
22177 int get readyState() => _ptr.readyState; | |
22178 | |
22179 String get responseText() => _ptr.responseText; | |
22180 | |
22181 String get responseType() => _ptr.responseType; | |
22182 | |
22183 void set responseType(String value) { _ptr.responseType = value; } | |
22184 | |
22185 Document get responseXML() => LevelDom.wrapDocument(_ptr.responseXML); | |
22186 | |
22187 int get status() => _ptr.status; | |
22188 | |
22189 String get statusText() => _ptr.statusText; | |
22190 | |
22191 XMLHttpRequestUpload get upload() => LevelDom.wrapXMLHttpRequestUpload(_ptr.up
load); | |
22192 | |
22193 bool get withCredentials() => _ptr.withCredentials; | |
22194 | |
22195 void set withCredentials(bool value) { _ptr.withCredentials = value; } | |
22196 | |
22197 void abort() { | |
22198 _ptr.abort(); | |
22199 return; | |
22200 } | |
22201 | |
22202 String getAllResponseHeaders() { | |
22203 return _ptr.getAllResponseHeaders(); | |
22204 } | |
22205 | |
22206 String getResponseHeader(String header) { | |
22207 return _ptr.getResponseHeader(header); | |
22208 } | |
22209 | |
22210 void open(String method, String url, bool async, [String user = null, String p
assword = null]) { | |
22211 if (user === null) { | |
22212 if (password === null) { | |
22213 _ptr.open(method, url, async); | |
22214 return; | |
22215 } | |
22216 } else { | |
22217 if (password === null) { | |
22218 _ptr.open(method, url, async, user); | |
22219 return; | |
22220 } else { | |
22221 _ptr.open(method, url, async, user, password); | |
22222 return; | |
22223 } | |
22224 } | |
22225 throw "Incorrect number or type of arguments"; | |
22226 } | |
22227 | |
22228 void overrideMimeType(String mime) { | |
22229 _ptr.overrideMimeType(mime); | |
22230 } | |
22231 | |
22232 void send([var data = null]) { | |
22233 if (data === null) { | |
22234 _ptr.send(); | |
22235 return; | |
22236 } else { | |
22237 if (data is Document) { | |
22238 _ptr.send(LevelDom.unwrapMaybePrimitive(data)); | |
22239 return; | |
22240 } else { | |
22241 if (data is String) { | |
22242 _ptr.send(LevelDom.unwrapMaybePrimitive(data)); | |
22243 return; | |
22244 } | |
22245 } | |
22246 } | |
22247 throw "Incorrect number or type of arguments"; | |
22248 } | |
22249 | |
22250 void setRequestHeader(String header, String value) { | |
22251 _ptr.setRequestHeader(header, value); | |
22252 } | |
22253 | |
22254 XMLHttpRequestEvents get on() { | |
22255 if (_on === null) { | |
22256 _on = new XMLHttpRequestEventsImplementation._wrap(_ptr); | |
22257 } | |
22258 return _on; | |
22259 } | |
22260 } | |
22261 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
22262 // for details. All rights reserved. Use of this source code is governed by a | |
22263 // BSD-style license that can be found in the LICENSE file. | |
22264 | |
22265 /** | |
22266 * The [Collections] class implements static methods useful when | |
22267 * writing a class that implements [Collection] and the [iterator] | |
22268 * method. | |
22269 */ | |
22270 class _Collections { | |
22271 static void forEach(Iterable<Object> iterable, void f(Object o)) { | |
22272 for (final e in iterable) { | |
22273 f(e); | |
22274 } | |
22275 } | |
22276 | |
22277 static bool some(Iterable<Object> iterable, bool f(Object o)) { | |
22278 for (final e in iterable) { | |
22279 if (f(e)) return true; | |
22280 } | |
22281 return false; | |
22282 } | |
22283 | |
22284 static bool every(Iterable<Object> iterable, bool f(Object o)) { | |
22285 for (final e in iterable) { | |
22286 if (!f(e)) return false; | |
22287 } | |
22288 return true; | |
22289 } | |
22290 | |
22291 static List filter(Iterable<Object> source, | |
22292 List<Object> destination, | |
22293 bool f(o)) { | |
22294 for (final e in source) { | |
22295 if (f(e)) destination.add(e); | |
22296 } | |
22297 return destination; | |
22298 } | |
22299 | |
22300 static bool isEmpty(Iterable<Object> iterable) { | |
22301 return !iterable.iterator().hasNext(); | |
22302 } | |
22303 } | |
22304 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
22305 // for details. All rights reserved. Use of this source code is governed by a | |
22306 // BSD-style license that can be found in the LICENSE file. | |
22307 | |
22308 | |
22309 // These factory methods could all live in one factory provider class but dartc | |
22310 // has a bug (5399939) preventing that. | |
22311 | |
22312 class _FileReaderFactoryProvider { | |
22313 | |
22314 factory FileReader() { | |
22315 return new dom.FileReader(); | |
22316 } | |
22317 } | |
22318 | |
22319 class _CSSMatrixFactoryProvider { | |
22320 | |
22321 factory CSSMatrix([String spec = '']) { | |
22322 return new CSSMatrixWrappingImplementation._wrap( | |
22323 new dom.WebKitCSSMatrix(spec)); | |
22324 } | |
22325 } | |
22326 | |
22327 class _PointFactoryProvider { | |
22328 | |
22329 factory Point(num x, num y) { | |
22330 return new PointWrappingImplementation._wrap(new dom.WebKitPoint(x, y)); | |
22331 } | |
22332 } | |
22333 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
22334 // for details. All rights reserved. Use of this source code is governed by a | |
22335 // BSD-style license that can be found in the LICENSE file. | |
22336 | |
22337 // Iterator for lists with fixed size. | |
22338 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> { | |
22339 _FixedSizeListIterator(List<T> list) | |
22340 : super(list), | |
22341 _length = list.length; | |
22342 | |
22343 bool hasNext() => _length > _pos; | |
22344 | |
22345 final int _length; // Cache list length for faster access. | |
22346 } | |
22347 | |
22348 // Iterator for lists with variable size. | |
22349 class _VariableSizeListIterator<T> implements Iterator<T> { | |
22350 _VariableSizeListIterator(List<T> list) | |
22351 : _list = list, | |
22352 _pos = 0; | |
22353 | |
22354 bool hasNext() => _list.length > _pos; | |
22355 | |
22356 T next() { | |
22357 if (!hasNext()) { | |
22358 throw const NoMoreElementsException(); | |
22359 } | |
22360 return _list[_pos++]; | |
22361 } | |
22362 | |
22363 final List<T> _list; | |
22364 int _pos; | |
22365 } | |
22366 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
22367 // for details. All rights reserved. Use of this source code is governed by a | |
22368 // BSD-style license that can be found in the LICENSE file. | |
22369 | |
22370 // TODO(jacobr): move into a core library or at least merge with the copy | |
22371 // in client/dom/src | |
22372 class _Lists { | |
22373 | |
22374 /** | |
22375 * Returns the index in the array [a] of the given [element], starting | |
22376 * the search at index [startIndex] to [endIndex] (exclusive). | |
22377 * Returns -1 if [element] is not found. | |
22378 */ | |
22379 static int indexOf(List a, | |
22380 Object element, | |
22381 int startIndex, | |
22382 int endIndex) { | |
22383 if (startIndex >= a.length) { | |
22384 return -1; | |
22385 } | |
22386 if (startIndex < 0) { | |
22387 startIndex = 0; | |
22388 } | |
22389 for (int i = startIndex; i < endIndex; i++) { | |
22390 if (a[i] == element) { | |
22391 return i; | |
22392 } | |
22393 } | |
22394 return -1; | |
22395 } | |
22396 | |
22397 /** | |
22398 * Returns the last index in the array [a] of the given [element], starting | |
22399 * the search at index [startIndex] to 0. | |
22400 * Returns -1 if [element] is not found. | |
22401 */ | |
22402 static int lastIndexOf(List a, Object element, int startIndex) { | |
22403 if (startIndex < 0) { | |
22404 return -1; | |
22405 } | |
22406 if (startIndex >= a.length) { | |
22407 startIndex = a.length - 1; | |
22408 } | |
22409 for (int i = startIndex; i >= 0; i--) { | |
22410 if (a[i] == element) { | |
22411 return i; | |
22412 } | |
22413 } | |
22414 return -1; | |
22415 } | |
22416 } | |
OLD | NEW |