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

Side by Side Diff: client/html/frog/html_frog.dart

Issue 9403004: Wrapperless dart:html generator (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #library('html');
2
3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file.
6
7 // DO NOT EDIT
8 // Auto-generated dart:html library.
9
10
11
12
13
14 // TODO(sra): What 'window' do we get in a worker? Perhaps this
15 // should return the interface type.
16 Window get window() native "return window;";
17 _WindowJs get _window() native "return window;";
18
19 Document get document() native "return window.document.documentElement;";
20 _DocumentJs get _document() native "return window.document.documentElement;";
21
22 class _AbstractWorkerJs implements AbstractWorker native "*AbstractWorker" {
23
24 _AbstractWorkerEventsImpl get on() =>
25 new _AbstractWorkerEventsImpl(this);
26
27 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
28
29 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);";
30
31 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
32 }
33
34 class _AbstractWorkerEventsImpl extends _EventsImpl implements AbstractWorkerEve nts {
35 _AbstractWorkerEventsImpl(_ptr) : super(_ptr);
36
37 EventListenerList get error() => _get('error');
38 }
39
40 class _AnchorElementJs extends _ElementJs implements AnchorElement native "*HTML AnchorElement" {
41
42 String charset;
43
44 String coords;
45
46 String download;
47
48 String hash;
49
50 String host;
51
52 String hostname;
53
54 String href;
55
56 String hreflang;
57
58 String name;
59
60 final String origin;
61
62 String pathname;
63
64 String ping;
65
66 String port;
67
68 String protocol;
69
70 String rel;
71
72 String rev;
73
74 String search;
75
76 String shape;
77
78 String target;
79
80 final String text;
81
82 String type;
83
84 String toString() native;
85 }
86
87 class _AnimationJs implements Animation native "*WebKitAnimation" {
88
89 static final int DIRECTION_ALTERNATE = 1;
90
91 static final int DIRECTION_NORMAL = 0;
92
93 static final int FILL_BACKWARDS = 1;
94
95 static final int FILL_BOTH = 3;
96
97 static final int FILL_FORWARDS = 2;
98
99 static final int FILL_NONE = 0;
100
101 final num delay;
102
103 final int direction;
104
105 final num duration;
106
107 num elapsedTime;
108
109 final bool ended;
110
111 final int fillMode;
112
113 final int iterationCount;
114
115 final String name;
116
117 final bool paused;
118
119 void pause() native;
120
121 void play() native;
122 }
123
124 class _AnimationEventJs extends _EventJs implements AnimationEvent native "*WebK itAnimationEvent" {
125
126 final String animationName;
127
128 final num elapsedTime;
129 }
130
131 class _AnimationListJs implements AnimationList native "*WebKitAnimationList" {
132
133 final int length;
134
135 _AnimationJs item(int index) native;
136 }
137
138 class _AppletElementJs extends _ElementJs implements AppletElement native "*HTML AppletElement" {
139
140 String align;
141
142 String alt;
143
144 String archive;
145
146 String code;
147
148 String codeBase;
149
150 String height;
151
152 String hspace;
153
154 String name;
155
156 String object;
157
158 String vspace;
159
160 String width;
161 }
162
163 class _AreaElementJs extends _ElementJs implements AreaElement native "*HTMLArea Element" {
164
165 String alt;
166
167 String coords;
168
169 final String hash;
170
171 final String host;
172
173 final String hostname;
174
175 String href;
176
177 bool noHref;
178
179 final String pathname;
180
181 String ping;
182
183 final String port;
184
185 final String protocol;
186
187 final String search;
188
189 String shape;
190
191 String target;
192 }
193
194 class _ArrayBufferJs implements ArrayBuffer native "*ArrayBuffer" {
195
196 final int byteLength;
197
198 _ArrayBufferJs slice(int begin, [int end = null]) native;
199 }
200
201 class _ArrayBufferViewJs implements ArrayBufferView native "*ArrayBufferView" {
202
203 final _ArrayBufferJs buffer;
204
205 final int byteLength;
206
207 final int byteOffset;
208 }
209
210 class _AttrJs extends _NodeJs implements Attr native "*Attr" {
211
212 final bool isId;
213
214 final String name;
215
216 final _ElementJs ownerElement;
217
218 final bool specified;
219
220 String value;
221 }
222
223 class _AudioBufferJs implements AudioBuffer native "*AudioBuffer" {
224
225 final num duration;
226
227 num gain;
228
229 final int length;
230
231 final int numberOfChannels;
232
233 final num sampleRate;
234
235 _Float32ArrayJs getChannelData(int channelIndex) native;
236 }
237
238 class _AudioBufferSourceNodeJs extends _AudioSourceNodeJs implements AudioBuffer SourceNode native "*AudioBufferSourceNode" {
239
240 _AudioBufferJs buffer;
241
242 final _AudioGainJs gain;
243
244 bool loop;
245
246 bool looping;
247
248 final _AudioParamJs playbackRate;
249
250 void noteGrainOn(num when, num grainOffset, num grainDuration) native;
251
252 void noteOff(num when) native;
253
254 void noteOn(num when) native;
255 }
256
257 class _AudioChannelMergerJs extends _AudioNodeJs implements AudioChannelMerger n ative "*AudioChannelMerger" {
258 }
259
260 class _AudioChannelSplitterJs extends _AudioNodeJs implements AudioChannelSplitt er native "*AudioChannelSplitter" {
261 }
262
263 class _AudioContextJs implements AudioContext native "*AudioContext" {
264
265 final num currentTime;
266
267 final _AudioDestinationNodeJs destination;
268
269 final _AudioListenerJs listener;
270
271 EventListener oncomplete;
272
273 final num sampleRate;
274
275 _RealtimeAnalyserNodeJs createAnalyser() native;
276
277 _BiquadFilterNodeJs createBiquadFilter() native;
278
279 _AudioBufferJs createBuffer(var buffer_OR_numberOfChannels, var mixToMono_OR_n umberOfFrames, [num sampleRate = null]) native;
280
281 _AudioBufferSourceNodeJs createBufferSource() native;
282
283 _AudioChannelMergerJs createChannelMerger() native;
284
285 _AudioChannelSplitterJs createChannelSplitter() native;
286
287 _ConvolverNodeJs createConvolver() native;
288
289 _DelayNodeJs createDelayNode() native;
290
291 _DynamicsCompressorNodeJs createDynamicsCompressor() native;
292
293 _AudioGainNodeJs createGainNode() native;
294
295 _HighPass2FilterNodeJs createHighPass2Filter() native;
296
297 _JavaScriptAudioNodeJs createJavaScriptNode(int bufferSize) native;
298
299 _LowPass2FilterNodeJs createLowPass2Filter() native;
300
301 _MediaElementAudioSourceNodeJs createMediaElementSource(_MediaElementJs mediaE lement) native;
302
303 _AudioPannerNodeJs createPanner() native;
304
305 _WaveShaperNodeJs createWaveShaper() native;
306
307 void decodeAudioData(_ArrayBufferJs audioData, AudioBufferCallback successCall back, [AudioBufferCallback errorCallback = null]) native;
308
309 void startRendering() native;
310 }
311
312 class _AudioDestinationNodeJs extends _AudioNodeJs implements AudioDestinationNo de native "*AudioDestinationNode" {
313
314 final int numberOfChannels;
315 }
316
317 class _AudioElementJs extends _MediaElementJs implements AudioElement native "*H TMLAudioElement" {
318 }
319
320 class _AudioGainJs extends _AudioParamJs implements AudioGain native "*AudioGain " {
321 }
322
323 class _AudioGainNodeJs extends _AudioNodeJs implements AudioGainNode native "*Au dioGainNode" {
324
325 final _AudioGainJs gain;
326 }
327
328 class _AudioListenerJs implements AudioListener native "*AudioListener" {
329
330 num dopplerFactor;
331
332 num speedOfSound;
333
334 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
335
336 void setPosition(num x, num y, num z) native;
337
338 void setVelocity(num x, num y, num z) native;
339 }
340
341 class _AudioNodeJs implements AudioNode native "*AudioNode" {
342
343 final _AudioContextJs context;
344
345 final int numberOfInputs;
346
347 final int numberOfOutputs;
348
349 void connect(_AudioNodeJs destination, int output, int input) native;
350
351 void disconnect(int output) native;
352 }
353
354 class _AudioPannerNodeJs extends _AudioNodeJs implements AudioPannerNode native "*AudioPannerNode" {
355
356 static final int EQUALPOWER = 0;
357
358 static final int HRTF = 1;
359
360 static final int SOUNDFIELD = 2;
361
362 final _AudioGainJs coneGain;
363
364 num coneInnerAngle;
365
366 num coneOuterAngle;
367
368 num coneOuterGain;
369
370 final _AudioGainJs distanceGain;
371
372 int distanceModel;
373
374 num maxDistance;
375
376 int panningModel;
377
378 num refDistance;
379
380 num rolloffFactor;
381
382 void setOrientation(num x, num y, num z) native;
383
384 void setPosition(num x, num y, num z) native;
385
386 void setVelocity(num x, num y, num z) native;
387 }
388
389 class _AudioParamJs implements AudioParam native "*AudioParam" {
390
391 final num defaultValue;
392
393 final num maxValue;
394
395 final num minValue;
396
397 final String name;
398
399 final int units;
400
401 num value;
402
403 void cancelScheduledValues(num startTime) native;
404
405 void exponentialRampToValueAtTime(num value, num time) native;
406
407 void linearRampToValueAtTime(num value, num time) native;
408
409 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native;
410
411 void setValueAtTime(num value, num time) native;
412
413 void setValueCurveAtTime(_Float32ArrayJs values, num time, num duration) nativ e;
414 }
415
416 class _AudioProcessingEventJs extends _EventJs implements AudioProcessingEvent n ative "*AudioProcessingEvent" {
417
418 final _AudioBufferJs inputBuffer;
419
420 final _AudioBufferJs outputBuffer;
421 }
422
423 class _AudioSourceNodeJs extends _AudioNodeJs implements AudioSourceNode native "*AudioSourceNode" {
424 }
425
426 class _BRElementJs extends _ElementJs implements BRElement native "*HTMLBRElemen t" {
427
428 String clear;
429 }
430
431 class _BarInfoJs implements BarInfo native "*BarInfo" {
432
433 final bool visible;
434 }
435
436 class _BaseElementJs extends _ElementJs implements BaseElement native "*HTMLBase Element" {
437
438 String href;
439
440 String target;
441 }
442
443 class _BaseFontElementJs extends _ElementJs implements BaseFontElement native "* HTMLBaseFontElement" {
444
445 String color;
446
447 String face;
448
449 int size;
450 }
451
452 class _BeforeLoadEventJs extends _EventJs implements BeforeLoadEvent native "*Be foreLoadEvent" {
453
454 final String url;
455 }
456
457 class _BiquadFilterNodeJs extends _AudioNodeJs implements BiquadFilterNode nativ e "*BiquadFilterNode" {
458
459 static final int ALLPASS = 7;
460
461 static final int BANDPASS = 2;
462
463 static final int HIGHPASS = 1;
464
465 static final int HIGHSHELF = 4;
466
467 static final int LOWPASS = 0;
468
469 static final int LOWSHELF = 3;
470
471 static final int NOTCH = 6;
472
473 static final int PEAKING = 5;
474
475 final _AudioParamJs Q;
476
477 final _AudioParamJs frequency;
478
479 final _AudioParamJs gain;
480
481 int type;
482
483 void getFrequencyResponse(_Float32ArrayJs frequencyHz, _Float32ArrayJs magResp onse, _Float32ArrayJs phaseResponse) native;
484 }
485
486 class _BlobJs implements Blob native "*Blob" {
487
488 final int size;
489
490 final String type;
491
492 _BlobJs webkitSlice([int start = null, int end = null, String contentType = nu ll]) native;
493 }
494
495 class _BlobBuilderJs implements BlobBuilder native "*WebKitBlobBuilder" {
496
497 void append(var arrayBuffer_OR_blob_OR_value, [String endings = null]) native;
498
499 _BlobJs getBlob([String contentType = null]) native;
500 }
501
502 class _BodyElementJs extends _ElementJs implements BodyElement native "*HTMLBody Element" {
503
504 String aLink;
505
506 String background;
507
508 String bgColor;
509
510 String link;
511
512 String text;
513
514 String vLink;
515
516 _BodyElementEventsImpl get on() =>
517 new _BodyElementEventsImpl(this);
518 }
519
520 class _BodyElementEventsImpl extends _ElementEventsImpl implements BodyElementEv ents {
521 _BodyElementEventsImpl(_ptr) : super(_ptr);
522
523 EventListenerList get beforeUnload() => _get('beforeunload');
524
525 EventListenerList get blur() => _get('blur');
526
527 EventListenerList get error() => _get('error');
528
529 EventListenerList get focus() => _get('focus');
530
531 EventListenerList get hashChange() => _get('hashchange');
532
533 EventListenerList get load() => _get('load');
534
535 EventListenerList get message() => _get('message');
536
537 EventListenerList get offline() => _get('offline');
538
539 EventListenerList get online() => _get('online');
540
541 EventListenerList get popState() => _get('popstate');
542
543 EventListenerList get resize() => _get('resize');
544
545 EventListenerList get storage() => _get('storage');
546
547 EventListenerList get unload() => _get('unload');
548 }
549
550 class _ButtonElementJs extends _ElementJs implements ButtonElement native "*HTML ButtonElement" {
551
552 bool autofocus;
553
554 bool disabled;
555
556 final _FormElementJs form;
557
558 String formAction;
559
560 String formEnctype;
561
562 String formMethod;
563
564 bool formNoValidate;
565
566 String formTarget;
567
568 final _NodeListJs labels;
569
570 String name;
571
572 final String type;
573
574 final String validationMessage;
575
576 final _ValidityStateJs validity;
577
578 String value;
579
580 final bool willValidate;
581
582 bool checkValidity() native;
583
584 void click() native;
585
586 void setCustomValidity(String error) native;
587 }
588
589 class _CDATASectionJs extends _TextJs implements CDATASection native "*CDATASect ion" {
590 }
591
592 class _CSSCharsetRuleJs extends _CSSRuleJs implements CSSCharsetRule native "*CS SCharsetRule" {
593
594 String encoding;
595 }
596
597 class _CSSFontFaceRuleJs extends _CSSRuleJs implements CSSFontFaceRule native "* CSSFontFaceRule" {
598
599 final _CSSStyleDeclarationJs style;
600 }
601
602 class _CSSImportRuleJs extends _CSSRuleJs implements CSSImportRule native "*CSSI mportRule" {
603
604 final String href;
605
606 final _MediaListJs media;
607
608 final _CSSStyleSheetJs styleSheet;
609 }
610
611 class _CSSKeyframeRuleJs extends _CSSRuleJs implements CSSKeyframeRule native "* WebKitCSSKeyframeRule" {
612
613 String keyText;
614
615 final _CSSStyleDeclarationJs style;
616 }
617
618 class _CSSKeyframesRuleJs extends _CSSRuleJs implements CSSKeyframesRule native "*WebKitCSSKeyframesRule" {
619
620 final _CSSRuleListJs cssRules;
621
622 String name;
623
624 void deleteRule(String key) native;
625
626 _CSSKeyframeRuleJs findRule(String key) native;
627
628 void insertRule(String rule) native;
629 }
630
631 class _CSSMatrixJs implements CSSMatrix native "*WebKitCSSMatrix" {
632
633 num a;
634
635 num b;
636
637 num c;
638
639 num d;
640
641 num e;
642
643 num f;
644
645 num m11;
646
647 num m12;
648
649 num m13;
650
651 num m14;
652
653 num m21;
654
655 num m22;
656
657 num m23;
658
659 num m24;
660
661 num m31;
662
663 num m32;
664
665 num m33;
666
667 num m34;
668
669 num m41;
670
671 num m42;
672
673 num m43;
674
675 num m44;
676
677 _CSSMatrixJs inverse() native;
678
679 _CSSMatrixJs multiply(_CSSMatrixJs secondMatrix) native;
680
681 _CSSMatrixJs rotate(num rotX, num rotY, num rotZ) native;
682
683 _CSSMatrixJs rotateAxisAngle(num x, num y, num z, num angle) native;
684
685 _CSSMatrixJs scale(num scaleX, num scaleY, num scaleZ) native;
686
687 void setMatrixValue(String string) native;
688
689 _CSSMatrixJs skewX(num angle) native;
690
691 _CSSMatrixJs skewY(num angle) native;
692
693 String toString() native;
694
695 _CSSMatrixJs translate(num x, num y, num z) native;
696 }
697
698 class _CSSMediaRuleJs extends _CSSRuleJs implements CSSMediaRule native "*CSSMed iaRule" {
699
700 final _CSSRuleListJs cssRules;
701
702 final _MediaListJs media;
703
704 void deleteRule(int index) native;
705
706 int insertRule(String rule, int index) native;
707 }
708
709 class _CSSPageRuleJs extends _CSSRuleJs implements CSSPageRule native "*CSSPageR ule" {
710
711 String selectorText;
712
713 final _CSSStyleDeclarationJs style;
714 }
715
716 class _CSSPrimitiveValueJs extends _CSSValueJs implements CSSPrimitiveValue nati ve "*CSSPrimitiveValue" {
717
718 static final int CSS_ATTR = 22;
719
720 static final int CSS_CM = 6;
721
722 static final int CSS_COUNTER = 23;
723
724 static final int CSS_DEG = 11;
725
726 static final int CSS_DIMENSION = 18;
727
728 static final int CSS_EMS = 3;
729
730 static final int CSS_EXS = 4;
731
732 static final int CSS_GRAD = 13;
733
734 static final int CSS_HZ = 16;
735
736 static final int CSS_IDENT = 21;
737
738 static final int CSS_IN = 8;
739
740 static final int CSS_KHZ = 17;
741
742 static final int CSS_MM = 7;
743
744 static final int CSS_MS = 14;
745
746 static final int CSS_NUMBER = 1;
747
748 static final int CSS_PC = 10;
749
750 static final int CSS_PERCENTAGE = 2;
751
752 static final int CSS_PT = 9;
753
754 static final int CSS_PX = 5;
755
756 static final int CSS_RAD = 12;
757
758 static final int CSS_RECT = 24;
759
760 static final int CSS_RGBCOLOR = 25;
761
762 static final int CSS_S = 15;
763
764 static final int CSS_STRING = 19;
765
766 static final int CSS_UNKNOWN = 0;
767
768 static final int CSS_URI = 20;
769
770 final int primitiveType;
771
772 _CounterJs getCounterValue() native;
773
774 num getFloatValue(int unitType) native;
775
776 _RGBColorJs getRGBColorValue() native;
777
778 _RectJs getRectValue() native;
779
780 String getStringValue() native;
781
782 void setFloatValue(int unitType, num floatValue) native;
783
784 void setStringValue(int stringType, String stringValue) native;
785 }
786
787 class _CSSRuleJs implements CSSRule native "*CSSRule" {
788
789 static final int CHARSET_RULE = 2;
790
791 static final int FONT_FACE_RULE = 5;
792
793 static final int IMPORT_RULE = 3;
794
795 static final int MEDIA_RULE = 4;
796
797 static final int PAGE_RULE = 6;
798
799 static final int STYLE_RULE = 1;
800
801 static final int UNKNOWN_RULE = 0;
802
803 static final int WEBKIT_KEYFRAMES_RULE = 8;
804
805 static final int WEBKIT_KEYFRAME_RULE = 9;
806
807 static final int WEBKIT_REGION_RULE = 10;
808
809 String cssText;
810
811 final _CSSRuleJs parentRule;
812
813 final _CSSStyleSheetJs parentStyleSheet;
814
815 final int type;
816 }
817
818 class _CSSRuleListJs implements CSSRuleList native "*CSSRuleList" {
819
820 final int length;
821
822 _CSSRuleJs item(int index) native;
823 }
824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
825 // for details. All rights reserved. Use of this source code is governed by a
826 // BSD-style license that can be found in the LICENSE file.
827
828 String _cachedBrowserPrefix;
829
830 class _CSSStyleDeclarationJs implements CSSStyleDeclaration native "*CSSStyleDec laration" {
831
832 factory _CSSStyleDeclarationJs.css(String css) {
833 var style = new Element.tag('div').style;
834 style.cssText = css;
835 return style;
836 }
837
838 factory _CSSStyleDeclarationJs() {
839 return new _CSSStyleDeclarationJs.css('');
840 }
841
842 static String get _browserPrefix() {
843 if (_cachedBrowserPrefix === null) {
844 if (_Device.isFirefox) {
845 _cachedBrowserPrefix = '-moz-';
846 } else {
847 _cachedBrowserPrefix = '-webkit-';
848 }
849 // TODO(jacobr): support IE 9.0 and Opera as well.
850 }
851 return _cachedBrowserPrefix;
852 }
853
854
855 String cssText;
856
857 final int length;
858
859 final _CSSRuleJs parentRule;
860
861 _CSSValueJs getPropertyCSSValue(String propertyName) native;
862
863 String getPropertyPriority(String propertyName) native;
864
865 String getPropertyShorthand(String propertyName) native;
866
867 String getPropertyValue(String propertyName) native;
868
869 bool isPropertyImplicit(String propertyName) native;
870
871 String item(int index) native;
872
873 String removeProperty(String propertyName) native;
874
875 void setProperty(String propertyName, String value, [String priority = null]) native;
876
877
878 // TODO(jacobr): generate this list of properties using the existing script.
879 /** Gets the value of "animation" */
880 String get animation() =>
881 getPropertyValue('${_browserPrefix}animation');
882
883 /** Sets the value of "animation" */
884 void set animation(var value) {
885 setProperty('${_browserPrefix}animation', value, '');
886 }
887
888 /** Gets the value of "animation-delay" */
889 String get animationDelay() =>
890 getPropertyValue('${_browserPrefix}animation-delay');
891
892 /** Sets the value of "animation-delay" */
893 void set animationDelay(var value) {
894 setProperty('${_browserPrefix}animation-delay', value, '');
895 }
896
897 /** Gets the value of "animation-direction" */
898 String get animationDirection() =>
899 getPropertyValue('${_browserPrefix}animation-direction');
900
901 /** Sets the value of "animation-direction" */
902 void set animationDirection(var value) {
903 setProperty('${_browserPrefix}animation-direction', value, '');
904 }
905
906 /** Gets the value of "animation-duration" */
907 String get animationDuration() =>
908 getPropertyValue('${_browserPrefix}animation-duration');
909
910 /** Sets the value of "animation-duration" */
911 void set animationDuration(var value) {
912 setProperty('${_browserPrefix}animation-duration', value, '');
913 }
914
915 /** Gets the value of "animation-fill-mode" */
916 String get animationFillMode() =>
917 getPropertyValue('${_browserPrefix}animation-fill-mode');
918
919 /** Sets the value of "animation-fill-mode" */
920 void set animationFillMode(var value) {
921 setProperty('${_browserPrefix}animation-fill-mode', value, '');
922 }
923
924 /** Gets the value of "animation-iteration-count" */
925 String get animationIterationCount() =>
926 getPropertyValue('${_browserPrefix}animation-iteration-count');
927
928 /** Sets the value of "animation-iteration-count" */
929 void set animationIterationCount(var value) {
930 setProperty('${_browserPrefix}animation-iteration-count', value, '');
931 }
932
933 /** Gets the value of "animation-name" */
934 String get animationName() =>
935 getPropertyValue('${_browserPrefix}animation-name');
936
937 /** Sets the value of "animation-name" */
938 void set animationName(var value) {
939 setProperty('${_browserPrefix}animation-name', value, '');
940 }
941
942 /** Gets the value of "animation-play-state" */
943 String get animationPlayState() =>
944 getPropertyValue('${_browserPrefix}animation-play-state');
945
946 /** Sets the value of "animation-play-state" */
947 void set animationPlayState(var value) {
948 setProperty('${_browserPrefix}animation-play-state', value, '');
949 }
950
951 /** Gets the value of "animation-timing-function" */
952 String get animationTimingFunction() =>
953 getPropertyValue('${_browserPrefix}animation-timing-function');
954
955 /** Sets the value of "animation-timing-function" */
956 void set animationTimingFunction(var value) {
957 setProperty('${_browserPrefix}animation-timing-function', value, '');
958 }
959
960 /** Gets the value of "appearance" */
961 String get appearance() =>
962 getPropertyValue('${_browserPrefix}appearance');
963
964 /** Sets the value of "appearance" */
965 void set appearance(var value) {
966 setProperty('${_browserPrefix}appearance', value, '');
967 }
968
969 /** Gets the value of "backface-visibility" */
970 String get backfaceVisibility() =>
971 getPropertyValue('${_browserPrefix}backface-visibility');
972
973 /** Sets the value of "backface-visibility" */
974 void set backfaceVisibility(var value) {
975 setProperty('${_browserPrefix}backface-visibility', value, '');
976 }
977
978 /** Gets the value of "background" */
979 String get background() =>
980 getPropertyValue('background');
981
982 /** Sets the value of "background" */
983 void set background(var value) {
984 setProperty('background', value, '');
985 }
986
987 /** Gets the value of "background-attachment" */
988 String get backgroundAttachment() =>
989 getPropertyValue('background-attachment');
990
991 /** Sets the value of "background-attachment" */
992 void set backgroundAttachment(var value) {
993 setProperty('background-attachment', value, '');
994 }
995
996 /** Gets the value of "background-clip" */
997 String get backgroundClip() =>
998 getPropertyValue('background-clip');
999
1000 /** Sets the value of "background-clip" */
1001 void set backgroundClip(var value) {
1002 setProperty('background-clip', value, '');
1003 }
1004
1005 /** Gets the value of "background-color" */
1006 String get backgroundColor() =>
1007 getPropertyValue('background-color');
1008
1009 /** Sets the value of "background-color" */
1010 void set backgroundColor(var value) {
1011 setProperty('background-color', value, '');
1012 }
1013
1014 /** Gets the value of "background-composite" */
1015 String get backgroundComposite() =>
1016 getPropertyValue('${_browserPrefix}background-composite');
1017
1018 /** Sets the value of "background-composite" */
1019 void set backgroundComposite(var value) {
1020 setProperty('${_browserPrefix}background-composite', value, '');
1021 }
1022
1023 /** Gets the value of "background-image" */
1024 String get backgroundImage() =>
1025 getPropertyValue('background-image');
1026
1027 /** Sets the value of "background-image" */
1028 void set backgroundImage(var value) {
1029 setProperty('background-image', value, '');
1030 }
1031
1032 /** Gets the value of "background-origin" */
1033 String get backgroundOrigin() =>
1034 getPropertyValue('background-origin');
1035
1036 /** Sets the value of "background-origin" */
1037 void set backgroundOrigin(var value) {
1038 setProperty('background-origin', value, '');
1039 }
1040
1041 /** Gets the value of "background-position" */
1042 String get backgroundPosition() =>
1043 getPropertyValue('background-position');
1044
1045 /** Sets the value of "background-position" */
1046 void set backgroundPosition(var value) {
1047 setProperty('background-position', value, '');
1048 }
1049
1050 /** Gets the value of "background-position-x" */
1051 String get backgroundPositionX() =>
1052 getPropertyValue('background-position-x');
1053
1054 /** Sets the value of "background-position-x" */
1055 void set backgroundPositionX(var value) {
1056 setProperty('background-position-x', value, '');
1057 }
1058
1059 /** Gets the value of "background-position-y" */
1060 String get backgroundPositionY() =>
1061 getPropertyValue('background-position-y');
1062
1063 /** Sets the value of "background-position-y" */
1064 void set backgroundPositionY(var value) {
1065 setProperty('background-position-y', value, '');
1066 }
1067
1068 /** Gets the value of "background-repeat" */
1069 String get backgroundRepeat() =>
1070 getPropertyValue('background-repeat');
1071
1072 /** Sets the value of "background-repeat" */
1073 void set backgroundRepeat(var value) {
1074 setProperty('background-repeat', value, '');
1075 }
1076
1077 /** Gets the value of "background-repeat-x" */
1078 String get backgroundRepeatX() =>
1079 getPropertyValue('background-repeat-x');
1080
1081 /** Sets the value of "background-repeat-x" */
1082 void set backgroundRepeatX(var value) {
1083 setProperty('background-repeat-x', value, '');
1084 }
1085
1086 /** Gets the value of "background-repeat-y" */
1087 String get backgroundRepeatY() =>
1088 getPropertyValue('background-repeat-y');
1089
1090 /** Sets the value of "background-repeat-y" */
1091 void set backgroundRepeatY(var value) {
1092 setProperty('background-repeat-y', value, '');
1093 }
1094
1095 /** Gets the value of "background-size" */
1096 String get backgroundSize() =>
1097 getPropertyValue('background-size');
1098
1099 /** Sets the value of "background-size" */
1100 void set backgroundSize(var value) {
1101 setProperty('background-size', value, '');
1102 }
1103
1104 /** Gets the value of "border" */
1105 String get border() =>
1106 getPropertyValue('border');
1107
1108 /** Sets the value of "border" */
1109 void set border(var value) {
1110 setProperty('border', value, '');
1111 }
1112
1113 /** Gets the value of "border-after" */
1114 String get borderAfter() =>
1115 getPropertyValue('${_browserPrefix}border-after');
1116
1117 /** Sets the value of "border-after" */
1118 void set borderAfter(var value) {
1119 setProperty('${_browserPrefix}border-after', value, '');
1120 }
1121
1122 /** Gets the value of "border-after-color" */
1123 String get borderAfterColor() =>
1124 getPropertyValue('${_browserPrefix}border-after-color');
1125
1126 /** Sets the value of "border-after-color" */
1127 void set borderAfterColor(var value) {
1128 setProperty('${_browserPrefix}border-after-color', value, '');
1129 }
1130
1131 /** Gets the value of "border-after-style" */
1132 String get borderAfterStyle() =>
1133 getPropertyValue('${_browserPrefix}border-after-style');
1134
1135 /** Sets the value of "border-after-style" */
1136 void set borderAfterStyle(var value) {
1137 setProperty('${_browserPrefix}border-after-style', value, '');
1138 }
1139
1140 /** Gets the value of "border-after-width" */
1141 String get borderAfterWidth() =>
1142 getPropertyValue('${_browserPrefix}border-after-width');
1143
1144 /** Sets the value of "border-after-width" */
1145 void set borderAfterWidth(var value) {
1146 setProperty('${_browserPrefix}border-after-width', value, '');
1147 }
1148
1149 /** Gets the value of "border-before" */
1150 String get borderBefore() =>
1151 getPropertyValue('${_browserPrefix}border-before');
1152
1153 /** Sets the value of "border-before" */
1154 void set borderBefore(var value) {
1155 setProperty('${_browserPrefix}border-before', value, '');
1156 }
1157
1158 /** Gets the value of "border-before-color" */
1159 String get borderBeforeColor() =>
1160 getPropertyValue('${_browserPrefix}border-before-color');
1161
1162 /** Sets the value of "border-before-color" */
1163 void set borderBeforeColor(var value) {
1164 setProperty('${_browserPrefix}border-before-color', value, '');
1165 }
1166
1167 /** Gets the value of "border-before-style" */
1168 String get borderBeforeStyle() =>
1169 getPropertyValue('${_browserPrefix}border-before-style');
1170
1171 /** Sets the value of "border-before-style" */
1172 void set borderBeforeStyle(var value) {
1173 setProperty('${_browserPrefix}border-before-style', value, '');
1174 }
1175
1176 /** Gets the value of "border-before-width" */
1177 String get borderBeforeWidth() =>
1178 getPropertyValue('${_browserPrefix}border-before-width');
1179
1180 /** Sets the value of "border-before-width" */
1181 void set borderBeforeWidth(var value) {
1182 setProperty('${_browserPrefix}border-before-width', value, '');
1183 }
1184
1185 /** Gets the value of "border-bottom" */
1186 String get borderBottom() =>
1187 getPropertyValue('border-bottom');
1188
1189 /** Sets the value of "border-bottom" */
1190 void set borderBottom(var value) {
1191 setProperty('border-bottom', value, '');
1192 }
1193
1194 /** Gets the value of "border-bottom-color" */
1195 String get borderBottomColor() =>
1196 getPropertyValue('border-bottom-color');
1197
1198 /** Sets the value of "border-bottom-color" */
1199 void set borderBottomColor(var value) {
1200 setProperty('border-bottom-color', value, '');
1201 }
1202
1203 /** Gets the value of "border-bottom-left-radius" */
1204 String get borderBottomLeftRadius() =>
1205 getPropertyValue('border-bottom-left-radius');
1206
1207 /** Sets the value of "border-bottom-left-radius" */
1208 void set borderBottomLeftRadius(var value) {
1209 setProperty('border-bottom-left-radius', value, '');
1210 }
1211
1212 /** Gets the value of "border-bottom-right-radius" */
1213 String get borderBottomRightRadius() =>
1214 getPropertyValue('border-bottom-right-radius');
1215
1216 /** Sets the value of "border-bottom-right-radius" */
1217 void set borderBottomRightRadius(var value) {
1218 setProperty('border-bottom-right-radius', value, '');
1219 }
1220
1221 /** Gets the value of "border-bottom-style" */
1222 String get borderBottomStyle() =>
1223 getPropertyValue('border-bottom-style');
1224
1225 /** Sets the value of "border-bottom-style" */
1226 void set borderBottomStyle(var value) {
1227 setProperty('border-bottom-style', value, '');
1228 }
1229
1230 /** Gets the value of "border-bottom-width" */
1231 String get borderBottomWidth() =>
1232 getPropertyValue('border-bottom-width');
1233
1234 /** Sets the value of "border-bottom-width" */
1235 void set borderBottomWidth(var value) {
1236 setProperty('border-bottom-width', value, '');
1237 }
1238
1239 /** Gets the value of "border-collapse" */
1240 String get borderCollapse() =>
1241 getPropertyValue('border-collapse');
1242
1243 /** Sets the value of "border-collapse" */
1244 void set borderCollapse(var value) {
1245 setProperty('border-collapse', value, '');
1246 }
1247
1248 /** Gets the value of "border-color" */
1249 String get borderColor() =>
1250 getPropertyValue('border-color');
1251
1252 /** Sets the value of "border-color" */
1253 void set borderColor(var value) {
1254 setProperty('border-color', value, '');
1255 }
1256
1257 /** Gets the value of "border-end" */
1258 String get borderEnd() =>
1259 getPropertyValue('${_browserPrefix}border-end');
1260
1261 /** Sets the value of "border-end" */
1262 void set borderEnd(var value) {
1263 setProperty('${_browserPrefix}border-end', value, '');
1264 }
1265
1266 /** Gets the value of "border-end-color" */
1267 String get borderEndColor() =>
1268 getPropertyValue('${_browserPrefix}border-end-color');
1269
1270 /** Sets the value of "border-end-color" */
1271 void set borderEndColor(var value) {
1272 setProperty('${_browserPrefix}border-end-color', value, '');
1273 }
1274
1275 /** Gets the value of "border-end-style" */
1276 String get borderEndStyle() =>
1277 getPropertyValue('${_browserPrefix}border-end-style');
1278
1279 /** Sets the value of "border-end-style" */
1280 void set borderEndStyle(var value) {
1281 setProperty('${_browserPrefix}border-end-style', value, '');
1282 }
1283
1284 /** Gets the value of "border-end-width" */
1285 String get borderEndWidth() =>
1286 getPropertyValue('${_browserPrefix}border-end-width');
1287
1288 /** Sets the value of "border-end-width" */
1289 void set borderEndWidth(var value) {
1290 setProperty('${_browserPrefix}border-end-width', value, '');
1291 }
1292
1293 /** Gets the value of "border-fit" */
1294 String get borderFit() =>
1295 getPropertyValue('${_browserPrefix}border-fit');
1296
1297 /** Sets the value of "border-fit" */
1298 void set borderFit(var value) {
1299 setProperty('${_browserPrefix}border-fit', value, '');
1300 }
1301
1302 /** Gets the value of "border-horizontal-spacing" */
1303 String get borderHorizontalSpacing() =>
1304 getPropertyValue('${_browserPrefix}border-horizontal-spacing');
1305
1306 /** Sets the value of "border-horizontal-spacing" */
1307 void set borderHorizontalSpacing(var value) {
1308 setProperty('${_browserPrefix}border-horizontal-spacing', value, '');
1309 }
1310
1311 /** Gets the value of "border-image" */
1312 String get borderImage() =>
1313 getPropertyValue('border-image');
1314
1315 /** Sets the value of "border-image" */
1316 void set borderImage(var value) {
1317 setProperty('border-image', value, '');
1318 }
1319
1320 /** Gets the value of "border-image-outset" */
1321 String get borderImageOutset() =>
1322 getPropertyValue('border-image-outset');
1323
1324 /** Sets the value of "border-image-outset" */
1325 void set borderImageOutset(var value) {
1326 setProperty('border-image-outset', value, '');
1327 }
1328
1329 /** Gets the value of "border-image-repeat" */
1330 String get borderImageRepeat() =>
1331 getPropertyValue('border-image-repeat');
1332
1333 /** Sets the value of "border-image-repeat" */
1334 void set borderImageRepeat(var value) {
1335 setProperty('border-image-repeat', value, '');
1336 }
1337
1338 /** Gets the value of "border-image-slice" */
1339 String get borderImageSlice() =>
1340 getPropertyValue('border-image-slice');
1341
1342 /** Sets the value of "border-image-slice" */
1343 void set borderImageSlice(var value) {
1344 setProperty('border-image-slice', value, '');
1345 }
1346
1347 /** Gets the value of "border-image-source" */
1348 String get borderImageSource() =>
1349 getPropertyValue('border-image-source');
1350
1351 /** Sets the value of "border-image-source" */
1352 void set borderImageSource(var value) {
1353 setProperty('border-image-source', value, '');
1354 }
1355
1356 /** Gets the value of "border-image-width" */
1357 String get borderImageWidth() =>
1358 getPropertyValue('border-image-width');
1359
1360 /** Sets the value of "border-image-width" */
1361 void set borderImageWidth(var value) {
1362 setProperty('border-image-width', value, '');
1363 }
1364
1365 /** Gets the value of "border-left" */
1366 String get borderLeft() =>
1367 getPropertyValue('border-left');
1368
1369 /** Sets the value of "border-left" */
1370 void set borderLeft(var value) {
1371 setProperty('border-left', value, '');
1372 }
1373
1374 /** Gets the value of "border-left-color" */
1375 String get borderLeftColor() =>
1376 getPropertyValue('border-left-color');
1377
1378 /** Sets the value of "border-left-color" */
1379 void set borderLeftColor(var value) {
1380 setProperty('border-left-color', value, '');
1381 }
1382
1383 /** Gets the value of "border-left-style" */
1384 String get borderLeftStyle() =>
1385 getPropertyValue('border-left-style');
1386
1387 /** Sets the value of "border-left-style" */
1388 void set borderLeftStyle(var value) {
1389 setProperty('border-left-style', value, '');
1390 }
1391
1392 /** Gets the value of "border-left-width" */
1393 String get borderLeftWidth() =>
1394 getPropertyValue('border-left-width');
1395
1396 /** Sets the value of "border-left-width" */
1397 void set borderLeftWidth(var value) {
1398 setProperty('border-left-width', value, '');
1399 }
1400
1401 /** Gets the value of "border-radius" */
1402 String get borderRadius() =>
1403 getPropertyValue('border-radius');
1404
1405 /** Sets the value of "border-radius" */
1406 void set borderRadius(var value) {
1407 setProperty('border-radius', value, '');
1408 }
1409
1410 /** Gets the value of "border-right" */
1411 String get borderRight() =>
1412 getPropertyValue('border-right');
1413
1414 /** Sets the value of "border-right" */
1415 void set borderRight(var value) {
1416 setProperty('border-right', value, '');
1417 }
1418
1419 /** Gets the value of "border-right-color" */
1420 String get borderRightColor() =>
1421 getPropertyValue('border-right-color');
1422
1423 /** Sets the value of "border-right-color" */
1424 void set borderRightColor(var value) {
1425 setProperty('border-right-color', value, '');
1426 }
1427
1428 /** Gets the value of "border-right-style" */
1429 String get borderRightStyle() =>
1430 getPropertyValue('border-right-style');
1431
1432 /** Sets the value of "border-right-style" */
1433 void set borderRightStyle(var value) {
1434 setProperty('border-right-style', value, '');
1435 }
1436
1437 /** Gets the value of "border-right-width" */
1438 String get borderRightWidth() =>
1439 getPropertyValue('border-right-width');
1440
1441 /** Sets the value of "border-right-width" */
1442 void set borderRightWidth(var value) {
1443 setProperty('border-right-width', value, '');
1444 }
1445
1446 /** Gets the value of "border-spacing" */
1447 String get borderSpacing() =>
1448 getPropertyValue('border-spacing');
1449
1450 /** Sets the value of "border-spacing" */
1451 void set borderSpacing(var value) {
1452 setProperty('border-spacing', value, '');
1453 }
1454
1455 /** Gets the value of "border-start" */
1456 String get borderStart() =>
1457 getPropertyValue('${_browserPrefix}border-start');
1458
1459 /** Sets the value of "border-start" */
1460 void set borderStart(var value) {
1461 setProperty('${_browserPrefix}border-start', value, '');
1462 }
1463
1464 /** Gets the value of "border-start-color" */
1465 String get borderStartColor() =>
1466 getPropertyValue('${_browserPrefix}border-start-color');
1467
1468 /** Sets the value of "border-start-color" */
1469 void set borderStartColor(var value) {
1470 setProperty('${_browserPrefix}border-start-color', value, '');
1471 }
1472
1473 /** Gets the value of "border-start-style" */
1474 String get borderStartStyle() =>
1475 getPropertyValue('${_browserPrefix}border-start-style');
1476
1477 /** Sets the value of "border-start-style" */
1478 void set borderStartStyle(var value) {
1479 setProperty('${_browserPrefix}border-start-style', value, '');
1480 }
1481
1482 /** Gets the value of "border-start-width" */
1483 String get borderStartWidth() =>
1484 getPropertyValue('${_browserPrefix}border-start-width');
1485
1486 /** Sets the value of "border-start-width" */
1487 void set borderStartWidth(var value) {
1488 setProperty('${_browserPrefix}border-start-width', value, '');
1489 }
1490
1491 /** Gets the value of "border-style" */
1492 String get borderStyle() =>
1493 getPropertyValue('border-style');
1494
1495 /** Sets the value of "border-style" */
1496 void set borderStyle(var value) {
1497 setProperty('border-style', value, '');
1498 }
1499
1500 /** Gets the value of "border-top" */
1501 String get borderTop() =>
1502 getPropertyValue('border-top');
1503
1504 /** Sets the value of "border-top" */
1505 void set borderTop(var value) {
1506 setProperty('border-top', value, '');
1507 }
1508
1509 /** Gets the value of "border-top-color" */
1510 String get borderTopColor() =>
1511 getPropertyValue('border-top-color');
1512
1513 /** Sets the value of "border-top-color" */
1514 void set borderTopColor(var value) {
1515 setProperty('border-top-color', value, '');
1516 }
1517
1518 /** Gets the value of "border-top-left-radius" */
1519 String get borderTopLeftRadius() =>
1520 getPropertyValue('border-top-left-radius');
1521
1522 /** Sets the value of "border-top-left-radius" */
1523 void set borderTopLeftRadius(var value) {
1524 setProperty('border-top-left-radius', value, '');
1525 }
1526
1527 /** Gets the value of "border-top-right-radius" */
1528 String get borderTopRightRadius() =>
1529 getPropertyValue('border-top-right-radius');
1530
1531 /** Sets the value of "border-top-right-radius" */
1532 void set borderTopRightRadius(var value) {
1533 setProperty('border-top-right-radius', value, '');
1534 }
1535
1536 /** Gets the value of "border-top-style" */
1537 String get borderTopStyle() =>
1538 getPropertyValue('border-top-style');
1539
1540 /** Sets the value of "border-top-style" */
1541 void set borderTopStyle(var value) {
1542 setProperty('border-top-style', value, '');
1543 }
1544
1545 /** Gets the value of "border-top-width" */
1546 String get borderTopWidth() =>
1547 getPropertyValue('border-top-width');
1548
1549 /** Sets the value of "border-top-width" */
1550 void set borderTopWidth(var value) {
1551 setProperty('border-top-width', value, '');
1552 }
1553
1554 /** Gets the value of "border-vertical-spacing" */
1555 String get borderVerticalSpacing() =>
1556 getPropertyValue('${_browserPrefix}border-vertical-spacing');
1557
1558 /** Sets the value of "border-vertical-spacing" */
1559 void set borderVerticalSpacing(var value) {
1560 setProperty('${_browserPrefix}border-vertical-spacing', value, '');
1561 }
1562
1563 /** Gets the value of "border-width" */
1564 String get borderWidth() =>
1565 getPropertyValue('border-width');
1566
1567 /** Sets the value of "border-width" */
1568 void set borderWidth(var value) {
1569 setProperty('border-width', value, '');
1570 }
1571
1572 /** Gets the value of "bottom" */
1573 String get bottom() =>
1574 getPropertyValue('bottom');
1575
1576 /** Sets the value of "bottom" */
1577 void set bottom(var value) {
1578 setProperty('bottom', value, '');
1579 }
1580
1581 /** Gets the value of "box-align" */
1582 String get boxAlign() =>
1583 getPropertyValue('${_browserPrefix}box-align');
1584
1585 /** Sets the value of "box-align" */
1586 void set boxAlign(var value) {
1587 setProperty('${_browserPrefix}box-align', value, '');
1588 }
1589
1590 /** Gets the value of "box-direction" */
1591 String get boxDirection() =>
1592 getPropertyValue('${_browserPrefix}box-direction');
1593
1594 /** Sets the value of "box-direction" */
1595 void set boxDirection(var value) {
1596 setProperty('${_browserPrefix}box-direction', value, '');
1597 }
1598
1599 /** Gets the value of "box-flex" */
1600 String get boxFlex() =>
1601 getPropertyValue('${_browserPrefix}box-flex');
1602
1603 /** Sets the value of "box-flex" */
1604 void set boxFlex(var value) {
1605 setProperty('${_browserPrefix}box-flex', value, '');
1606 }
1607
1608 /** Gets the value of "box-flex-group" */
1609 String get boxFlexGroup() =>
1610 getPropertyValue('${_browserPrefix}box-flex-group');
1611
1612 /** Sets the value of "box-flex-group" */
1613 void set boxFlexGroup(var value) {
1614 setProperty('${_browserPrefix}box-flex-group', value, '');
1615 }
1616
1617 /** Gets the value of "box-lines" */
1618 String get boxLines() =>
1619 getPropertyValue('${_browserPrefix}box-lines');
1620
1621 /** Sets the value of "box-lines" */
1622 void set boxLines(var value) {
1623 setProperty('${_browserPrefix}box-lines', value, '');
1624 }
1625
1626 /** Gets the value of "box-ordinal-group" */
1627 String get boxOrdinalGroup() =>
1628 getPropertyValue('${_browserPrefix}box-ordinal-group');
1629
1630 /** Sets the value of "box-ordinal-group" */
1631 void set boxOrdinalGroup(var value) {
1632 setProperty('${_browserPrefix}box-ordinal-group', value, '');
1633 }
1634
1635 /** Gets the value of "box-orient" */
1636 String get boxOrient() =>
1637 getPropertyValue('${_browserPrefix}box-orient');
1638
1639 /** Sets the value of "box-orient" */
1640 void set boxOrient(var value) {
1641 setProperty('${_browserPrefix}box-orient', value, '');
1642 }
1643
1644 /** Gets the value of "box-pack" */
1645 String get boxPack() =>
1646 getPropertyValue('${_browserPrefix}box-pack');
1647
1648 /** Sets the value of "box-pack" */
1649 void set boxPack(var value) {
1650 setProperty('${_browserPrefix}box-pack', value, '');
1651 }
1652
1653 /** Gets the value of "box-reflect" */
1654 String get boxReflect() =>
1655 getPropertyValue('${_browserPrefix}box-reflect');
1656
1657 /** Sets the value of "box-reflect" */
1658 void set boxReflect(var value) {
1659 setProperty('${_browserPrefix}box-reflect', value, '');
1660 }
1661
1662 /** Gets the value of "box-shadow" */
1663 String get boxShadow() =>
1664 getPropertyValue('box-shadow');
1665
1666 /** Sets the value of "box-shadow" */
1667 void set boxShadow(var value) {
1668 setProperty('box-shadow', value, '');
1669 }
1670
1671 /** Gets the value of "box-sizing" */
1672 String get boxSizing() =>
1673 getPropertyValue('box-sizing');
1674
1675 /** Sets the value of "box-sizing" */
1676 void set boxSizing(var value) {
1677 setProperty('box-sizing', value, '');
1678 }
1679
1680 /** Gets the value of "caption-side" */
1681 String get captionSide() =>
1682 getPropertyValue('caption-side');
1683
1684 /** Sets the value of "caption-side" */
1685 void set captionSide(var value) {
1686 setProperty('caption-side', value, '');
1687 }
1688
1689 /** Gets the value of "clear" */
1690 String get clear() =>
1691 getPropertyValue('clear');
1692
1693 /** Sets the value of "clear" */
1694 void set clear(var value) {
1695 setProperty('clear', value, '');
1696 }
1697
1698 /** Gets the value of "clip" */
1699 String get clip() =>
1700 getPropertyValue('clip');
1701
1702 /** Sets the value of "clip" */
1703 void set clip(var value) {
1704 setProperty('clip', value, '');
1705 }
1706
1707 /** Gets the value of "color" */
1708 String get color() =>
1709 getPropertyValue('color');
1710
1711 /** Sets the value of "color" */
1712 void set color(var value) {
1713 setProperty('color', value, '');
1714 }
1715
1716 /** Gets the value of "color-correction" */
1717 String get colorCorrection() =>
1718 getPropertyValue('${_browserPrefix}color-correction');
1719
1720 /** Sets the value of "color-correction" */
1721 void set colorCorrection(var value) {
1722 setProperty('${_browserPrefix}color-correction', value, '');
1723 }
1724
1725 /** Gets the value of "column-break-after" */
1726 String get columnBreakAfter() =>
1727 getPropertyValue('${_browserPrefix}column-break-after');
1728
1729 /** Sets the value of "column-break-after" */
1730 void set columnBreakAfter(var value) {
1731 setProperty('${_browserPrefix}column-break-after', value, '');
1732 }
1733
1734 /** Gets the value of "column-break-before" */
1735 String get columnBreakBefore() =>
1736 getPropertyValue('${_browserPrefix}column-break-before');
1737
1738 /** Sets the value of "column-break-before" */
1739 void set columnBreakBefore(var value) {
1740 setProperty('${_browserPrefix}column-break-before', value, '');
1741 }
1742
1743 /** Gets the value of "column-break-inside" */
1744 String get columnBreakInside() =>
1745 getPropertyValue('${_browserPrefix}column-break-inside');
1746
1747 /** Sets the value of "column-break-inside" */
1748 void set columnBreakInside(var value) {
1749 setProperty('${_browserPrefix}column-break-inside', value, '');
1750 }
1751
1752 /** Gets the value of "column-count" */
1753 String get columnCount() =>
1754 getPropertyValue('${_browserPrefix}column-count');
1755
1756 /** Sets the value of "column-count" */
1757 void set columnCount(var value) {
1758 setProperty('${_browserPrefix}column-count', value, '');
1759 }
1760
1761 /** Gets the value of "column-gap" */
1762 String get columnGap() =>
1763 getPropertyValue('${_browserPrefix}column-gap');
1764
1765 /** Sets the value of "column-gap" */
1766 void set columnGap(var value) {
1767 setProperty('${_browserPrefix}column-gap', value, '');
1768 }
1769
1770 /** Gets the value of "column-rule" */
1771 String get columnRule() =>
1772 getPropertyValue('${_browserPrefix}column-rule');
1773
1774 /** Sets the value of "column-rule" */
1775 void set columnRule(var value) {
1776 setProperty('${_browserPrefix}column-rule', value, '');
1777 }
1778
1779 /** Gets the value of "column-rule-color" */
1780 String get columnRuleColor() =>
1781 getPropertyValue('${_browserPrefix}column-rule-color');
1782
1783 /** Sets the value of "column-rule-color" */
1784 void set columnRuleColor(var value) {
1785 setProperty('${_browserPrefix}column-rule-color', value, '');
1786 }
1787
1788 /** Gets the value of "column-rule-style" */
1789 String get columnRuleStyle() =>
1790 getPropertyValue('${_browserPrefix}column-rule-style');
1791
1792 /** Sets the value of "column-rule-style" */
1793 void set columnRuleStyle(var value) {
1794 setProperty('${_browserPrefix}column-rule-style', value, '');
1795 }
1796
1797 /** Gets the value of "column-rule-width" */
1798 String get columnRuleWidth() =>
1799 getPropertyValue('${_browserPrefix}column-rule-width');
1800
1801 /** Sets the value of "column-rule-width" */
1802 void set columnRuleWidth(var value) {
1803 setProperty('${_browserPrefix}column-rule-width', value, '');
1804 }
1805
1806 /** Gets the value of "column-span" */
1807 String get columnSpan() =>
1808 getPropertyValue('${_browserPrefix}column-span');
1809
1810 /** Sets the value of "column-span" */
1811 void set columnSpan(var value) {
1812 setProperty('${_browserPrefix}column-span', value, '');
1813 }
1814
1815 /** Gets the value of "column-width" */
1816 String get columnWidth() =>
1817 getPropertyValue('${_browserPrefix}column-width');
1818
1819 /** Sets the value of "column-width" */
1820 void set columnWidth(var value) {
1821 setProperty('${_browserPrefix}column-width', value, '');
1822 }
1823
1824 /** Gets the value of "columns" */
1825 String get columns() =>
1826 getPropertyValue('${_browserPrefix}columns');
1827
1828 /** Sets the value of "columns" */
1829 void set columns(var value) {
1830 setProperty('${_browserPrefix}columns', value, '');
1831 }
1832
1833 /** Gets the value of "content" */
1834 String get content() =>
1835 getPropertyValue('content');
1836
1837 /** Sets the value of "content" */
1838 void set content(var value) {
1839 setProperty('content', value, '');
1840 }
1841
1842 /** Gets the value of "counter-increment" */
1843 String get counterIncrement() =>
1844 getPropertyValue('counter-increment');
1845
1846 /** Sets the value of "counter-increment" */
1847 void set counterIncrement(var value) {
1848 setProperty('counter-increment', value, '');
1849 }
1850
1851 /** Gets the value of "counter-reset" */
1852 String get counterReset() =>
1853 getPropertyValue('counter-reset');
1854
1855 /** Sets the value of "counter-reset" */
1856 void set counterReset(var value) {
1857 setProperty('counter-reset', value, '');
1858 }
1859
1860 /** Gets the value of "cursor" */
1861 String get cursor() =>
1862 getPropertyValue('cursor');
1863
1864 /** Sets the value of "cursor" */
1865 void set cursor(var value) {
1866 setProperty('cursor', value, '');
1867 }
1868
1869 /** Gets the value of "direction" */
1870 String get direction() =>
1871 getPropertyValue('direction');
1872
1873 /** Sets the value of "direction" */
1874 void set direction(var value) {
1875 setProperty('direction', value, '');
1876 }
1877
1878 /** Gets the value of "display" */
1879 String get display() =>
1880 getPropertyValue('display');
1881
1882 /** Sets the value of "display" */
1883 void set display(var value) {
1884 setProperty('display', value, '');
1885 }
1886
1887 /** Gets the value of "empty-cells" */
1888 String get emptyCells() =>
1889 getPropertyValue('empty-cells');
1890
1891 /** Sets the value of "empty-cells" */
1892 void set emptyCells(var value) {
1893 setProperty('empty-cells', value, '');
1894 }
1895
1896 /** Gets the value of "filter" */
1897 String get filter() =>
1898 getPropertyValue('${_browserPrefix}filter');
1899
1900 /** Sets the value of "filter" */
1901 void set filter(var value) {
1902 setProperty('${_browserPrefix}filter', value, '');
1903 }
1904
1905 /** Gets the value of "flex-align" */
1906 String get flexAlign() =>
1907 getPropertyValue('${_browserPrefix}flex-align');
1908
1909 /** Sets the value of "flex-align" */
1910 void set flexAlign(var value) {
1911 setProperty('${_browserPrefix}flex-align', value, '');
1912 }
1913
1914 /** Gets the value of "flex-flow" */
1915 String get flexFlow() =>
1916 getPropertyValue('${_browserPrefix}flex-flow');
1917
1918 /** Sets the value of "flex-flow" */
1919 void set flexFlow(var value) {
1920 setProperty('${_browserPrefix}flex-flow', value, '');
1921 }
1922
1923 /** Gets the value of "flex-order" */
1924 String get flexOrder() =>
1925 getPropertyValue('${_browserPrefix}flex-order');
1926
1927 /** Sets the value of "flex-order" */
1928 void set flexOrder(var value) {
1929 setProperty('${_browserPrefix}flex-order', value, '');
1930 }
1931
1932 /** Gets the value of "flex-pack" */
1933 String get flexPack() =>
1934 getPropertyValue('${_browserPrefix}flex-pack');
1935
1936 /** Sets the value of "flex-pack" */
1937 void set flexPack(var value) {
1938 setProperty('${_browserPrefix}flex-pack', value, '');
1939 }
1940
1941 /** Gets the value of "float" */
1942 String get float() =>
1943 getPropertyValue('float');
1944
1945 /** Sets the value of "float" */
1946 void set float(var value) {
1947 setProperty('float', value, '');
1948 }
1949
1950 /** Gets the value of "flow-from" */
1951 String get flowFrom() =>
1952 getPropertyValue('${_browserPrefix}flow-from');
1953
1954 /** Sets the value of "flow-from" */
1955 void set flowFrom(var value) {
1956 setProperty('${_browserPrefix}flow-from', value, '');
1957 }
1958
1959 /** Gets the value of "flow-into" */
1960 String get flowInto() =>
1961 getPropertyValue('${_browserPrefix}flow-into');
1962
1963 /** Sets the value of "flow-into" */
1964 void set flowInto(var value) {
1965 setProperty('${_browserPrefix}flow-into', value, '');
1966 }
1967
1968 /** Gets the value of "font" */
1969 String get font() =>
1970 getPropertyValue('font');
1971
1972 /** Sets the value of "font" */
1973 void set font(var value) {
1974 setProperty('font', value, '');
1975 }
1976
1977 /** Gets the value of "font-family" */
1978 String get fontFamily() =>
1979 getPropertyValue('font-family');
1980
1981 /** Sets the value of "font-family" */
1982 void set fontFamily(var value) {
1983 setProperty('font-family', value, '');
1984 }
1985
1986 /** Gets the value of "font-feature-settings" */
1987 String get fontFeatureSettings() =>
1988 getPropertyValue('${_browserPrefix}font-feature-settings');
1989
1990 /** Sets the value of "font-feature-settings" */
1991 void set fontFeatureSettings(var value) {
1992 setProperty('${_browserPrefix}font-feature-settings', value, '');
1993 }
1994
1995 /** Gets the value of "font-size" */
1996 String get fontSize() =>
1997 getPropertyValue('font-size');
1998
1999 /** Sets the value of "font-size" */
2000 void set fontSize(var value) {
2001 setProperty('font-size', value, '');
2002 }
2003
2004 /** Gets the value of "font-size-delta" */
2005 String get fontSizeDelta() =>
2006 getPropertyValue('${_browserPrefix}font-size-delta');
2007
2008 /** Sets the value of "font-size-delta" */
2009 void set fontSizeDelta(var value) {
2010 setProperty('${_browserPrefix}font-size-delta', value, '');
2011 }
2012
2013 /** Gets the value of "font-smoothing" */
2014 String get fontSmoothing() =>
2015 getPropertyValue('${_browserPrefix}font-smoothing');
2016
2017 /** Sets the value of "font-smoothing" */
2018 void set fontSmoothing(var value) {
2019 setProperty('${_browserPrefix}font-smoothing', value, '');
2020 }
2021
2022 /** Gets the value of "font-stretch" */
2023 String get fontStretch() =>
2024 getPropertyValue('font-stretch');
2025
2026 /** Sets the value of "font-stretch" */
2027 void set fontStretch(var value) {
2028 setProperty('font-stretch', value, '');
2029 }
2030
2031 /** Gets the value of "font-style" */
2032 String get fontStyle() =>
2033 getPropertyValue('font-style');
2034
2035 /** Sets the value of "font-style" */
2036 void set fontStyle(var value) {
2037 setProperty('font-style', value, '');
2038 }
2039
2040 /** Gets the value of "font-variant" */
2041 String get fontVariant() =>
2042 getPropertyValue('font-variant');
2043
2044 /** Sets the value of "font-variant" */
2045 void set fontVariant(var value) {
2046 setProperty('font-variant', value, '');
2047 }
2048
2049 /** Gets the value of "font-weight" */
2050 String get fontWeight() =>
2051 getPropertyValue('font-weight');
2052
2053 /** Sets the value of "font-weight" */
2054 void set fontWeight(var value) {
2055 setProperty('font-weight', value, '');
2056 }
2057
2058 /** Gets the value of "height" */
2059 String get height() =>
2060 getPropertyValue('height');
2061
2062 /** Sets the value of "height" */
2063 void set height(var value) {
2064 setProperty('height', value, '');
2065 }
2066
2067 /** Gets the value of "highlight" */
2068 String get highlight() =>
2069 getPropertyValue('${_browserPrefix}highlight');
2070
2071 /** Sets the value of "highlight" */
2072 void set highlight(var value) {
2073 setProperty('${_browserPrefix}highlight', value, '');
2074 }
2075
2076 /** Gets the value of "hyphenate-character" */
2077 String get hyphenateCharacter() =>
2078 getPropertyValue('${_browserPrefix}hyphenate-character');
2079
2080 /** Sets the value of "hyphenate-character" */
2081 void set hyphenateCharacter(var value) {
2082 setProperty('${_browserPrefix}hyphenate-character', value, '');
2083 }
2084
2085 /** Gets the value of "hyphenate-limit-after" */
2086 String get hyphenateLimitAfter() =>
2087 getPropertyValue('${_browserPrefix}hyphenate-limit-after');
2088
2089 /** Sets the value of "hyphenate-limit-after" */
2090 void set hyphenateLimitAfter(var value) {
2091 setProperty('${_browserPrefix}hyphenate-limit-after', value, '');
2092 }
2093
2094 /** Gets the value of "hyphenate-limit-before" */
2095 String get hyphenateLimitBefore() =>
2096 getPropertyValue('${_browserPrefix}hyphenate-limit-before');
2097
2098 /** Sets the value of "hyphenate-limit-before" */
2099 void set hyphenateLimitBefore(var value) {
2100 setProperty('${_browserPrefix}hyphenate-limit-before', value, '');
2101 }
2102
2103 /** Gets the value of "hyphenate-limit-lines" */
2104 String get hyphenateLimitLines() =>
2105 getPropertyValue('${_browserPrefix}hyphenate-limit-lines');
2106
2107 /** Sets the value of "hyphenate-limit-lines" */
2108 void set hyphenateLimitLines(var value) {
2109 setProperty('${_browserPrefix}hyphenate-limit-lines', value, '');
2110 }
2111
2112 /** Gets the value of "hyphens" */
2113 String get hyphens() =>
2114 getPropertyValue('${_browserPrefix}hyphens');
2115
2116 /** Sets the value of "hyphens" */
2117 void set hyphens(var value) {
2118 setProperty('${_browserPrefix}hyphens', value, '');
2119 }
2120
2121 /** Gets the value of "image-rendering" */
2122 String get imageRendering() =>
2123 getPropertyValue('image-rendering');
2124
2125 /** Sets the value of "image-rendering" */
2126 void set imageRendering(var value) {
2127 setProperty('image-rendering', value, '');
2128 }
2129
2130 /** Gets the value of "left" */
2131 String get left() =>
2132 getPropertyValue('left');
2133
2134 /** Sets the value of "left" */
2135 void set left(var value) {
2136 setProperty('left', value, '');
2137 }
2138
2139 /** Gets the value of "letter-spacing" */
2140 String get letterSpacing() =>
2141 getPropertyValue('letter-spacing');
2142
2143 /** Sets the value of "letter-spacing" */
2144 void set letterSpacing(var value) {
2145 setProperty('letter-spacing', value, '');
2146 }
2147
2148 /** Gets the value of "line-box-contain" */
2149 String get lineBoxContain() =>
2150 getPropertyValue('${_browserPrefix}line-box-contain');
2151
2152 /** Sets the value of "line-box-contain" */
2153 void set lineBoxContain(var value) {
2154 setProperty('${_browserPrefix}line-box-contain', value, '');
2155 }
2156
2157 /** Gets the value of "line-break" */
2158 String get lineBreak() =>
2159 getPropertyValue('${_browserPrefix}line-break');
2160
2161 /** Sets the value of "line-break" */
2162 void set lineBreak(var value) {
2163 setProperty('${_browserPrefix}line-break', value, '');
2164 }
2165
2166 /** Gets the value of "line-clamp" */
2167 String get lineClamp() =>
2168 getPropertyValue('${_browserPrefix}line-clamp');
2169
2170 /** Sets the value of "line-clamp" */
2171 void set lineClamp(var value) {
2172 setProperty('${_browserPrefix}line-clamp', value, '');
2173 }
2174
2175 /** Gets the value of "line-height" */
2176 String get lineHeight() =>
2177 getPropertyValue('line-height');
2178
2179 /** Sets the value of "line-height" */
2180 void set lineHeight(var value) {
2181 setProperty('line-height', value, '');
2182 }
2183
2184 /** Gets the value of "list-style" */
2185 String get listStyle() =>
2186 getPropertyValue('list-style');
2187
2188 /** Sets the value of "list-style" */
2189 void set listStyle(var value) {
2190 setProperty('list-style', value, '');
2191 }
2192
2193 /** Gets the value of "list-style-image" */
2194 String get listStyleImage() =>
2195 getPropertyValue('list-style-image');
2196
2197 /** Sets the value of "list-style-image" */
2198 void set listStyleImage(var value) {
2199 setProperty('list-style-image', value, '');
2200 }
2201
2202 /** Gets the value of "list-style-position" */
2203 String get listStylePosition() =>
2204 getPropertyValue('list-style-position');
2205
2206 /** Sets the value of "list-style-position" */
2207 void set listStylePosition(var value) {
2208 setProperty('list-style-position', value, '');
2209 }
2210
2211 /** Gets the value of "list-style-type" */
2212 String get listStyleType() =>
2213 getPropertyValue('list-style-type');
2214
2215 /** Sets the value of "list-style-type" */
2216 void set listStyleType(var value) {
2217 setProperty('list-style-type', value, '');
2218 }
2219
2220 /** Gets the value of "locale" */
2221 String get locale() =>
2222 getPropertyValue('${_browserPrefix}locale');
2223
2224 /** Sets the value of "locale" */
2225 void set locale(var value) {
2226 setProperty('${_browserPrefix}locale', value, '');
2227 }
2228
2229 /** Gets the value of "logical-height" */
2230 String get logicalHeight() =>
2231 getPropertyValue('${_browserPrefix}logical-height');
2232
2233 /** Sets the value of "logical-height" */
2234 void set logicalHeight(var value) {
2235 setProperty('${_browserPrefix}logical-height', value, '');
2236 }
2237
2238 /** Gets the value of "logical-width" */
2239 String get logicalWidth() =>
2240 getPropertyValue('${_browserPrefix}logical-width');
2241
2242 /** Sets the value of "logical-width" */
2243 void set logicalWidth(var value) {
2244 setProperty('${_browserPrefix}logical-width', value, '');
2245 }
2246
2247 /** Gets the value of "margin" */
2248 String get margin() =>
2249 getPropertyValue('margin');
2250
2251 /** Sets the value of "margin" */
2252 void set margin(var value) {
2253 setProperty('margin', value, '');
2254 }
2255
2256 /** Gets the value of "margin-after" */
2257 String get marginAfter() =>
2258 getPropertyValue('${_browserPrefix}margin-after');
2259
2260 /** Sets the value of "margin-after" */
2261 void set marginAfter(var value) {
2262 setProperty('${_browserPrefix}margin-after', value, '');
2263 }
2264
2265 /** Gets the value of "margin-after-collapse" */
2266 String get marginAfterCollapse() =>
2267 getPropertyValue('${_browserPrefix}margin-after-collapse');
2268
2269 /** Sets the value of "margin-after-collapse" */
2270 void set marginAfterCollapse(var value) {
2271 setProperty('${_browserPrefix}margin-after-collapse', value, '');
2272 }
2273
2274 /** Gets the value of "margin-before" */
2275 String get marginBefore() =>
2276 getPropertyValue('${_browserPrefix}margin-before');
2277
2278 /** Sets the value of "margin-before" */
2279 void set marginBefore(var value) {
2280 setProperty('${_browserPrefix}margin-before', value, '');
2281 }
2282
2283 /** Gets the value of "margin-before-collapse" */
2284 String get marginBeforeCollapse() =>
2285 getPropertyValue('${_browserPrefix}margin-before-collapse');
2286
2287 /** Sets the value of "margin-before-collapse" */
2288 void set marginBeforeCollapse(var value) {
2289 setProperty('${_browserPrefix}margin-before-collapse', value, '');
2290 }
2291
2292 /** Gets the value of "margin-bottom" */
2293 String get marginBottom() =>
2294 getPropertyValue('margin-bottom');
2295
2296 /** Sets the value of "margin-bottom" */
2297 void set marginBottom(var value) {
2298 setProperty('margin-bottom', value, '');
2299 }
2300
2301 /** Gets the value of "margin-bottom-collapse" */
2302 String get marginBottomCollapse() =>
2303 getPropertyValue('${_browserPrefix}margin-bottom-collapse');
2304
2305 /** Sets the value of "margin-bottom-collapse" */
2306 void set marginBottomCollapse(var value) {
2307 setProperty('${_browserPrefix}margin-bottom-collapse', value, '');
2308 }
2309
2310 /** Gets the value of "margin-collapse" */
2311 String get marginCollapse() =>
2312 getPropertyValue('${_browserPrefix}margin-collapse');
2313
2314 /** Sets the value of "margin-collapse" */
2315 void set marginCollapse(var value) {
2316 setProperty('${_browserPrefix}margin-collapse', value, '');
2317 }
2318
2319 /** Gets the value of "margin-end" */
2320 String get marginEnd() =>
2321 getPropertyValue('${_browserPrefix}margin-end');
2322
2323 /** Sets the value of "margin-end" */
2324 void set marginEnd(var value) {
2325 setProperty('${_browserPrefix}margin-end', value, '');
2326 }
2327
2328 /** Gets the value of "margin-left" */
2329 String get marginLeft() =>
2330 getPropertyValue('margin-left');
2331
2332 /** Sets the value of "margin-left" */
2333 void set marginLeft(var value) {
2334 setProperty('margin-left', value, '');
2335 }
2336
2337 /** Gets the value of "margin-right" */
2338 String get marginRight() =>
2339 getPropertyValue('margin-right');
2340
2341 /** Sets the value of "margin-right" */
2342 void set marginRight(var value) {
2343 setProperty('margin-right', value, '');
2344 }
2345
2346 /** Gets the value of "margin-start" */
2347 String get marginStart() =>
2348 getPropertyValue('${_browserPrefix}margin-start');
2349
2350 /** Sets the value of "margin-start" */
2351 void set marginStart(var value) {
2352 setProperty('${_browserPrefix}margin-start', value, '');
2353 }
2354
2355 /** Gets the value of "margin-top" */
2356 String get marginTop() =>
2357 getPropertyValue('margin-top');
2358
2359 /** Sets the value of "margin-top" */
2360 void set marginTop(var value) {
2361 setProperty('margin-top', value, '');
2362 }
2363
2364 /** Gets the value of "margin-top-collapse" */
2365 String get marginTopCollapse() =>
2366 getPropertyValue('${_browserPrefix}margin-top-collapse');
2367
2368 /** Sets the value of "margin-top-collapse" */
2369 void set marginTopCollapse(var value) {
2370 setProperty('${_browserPrefix}margin-top-collapse', value, '');
2371 }
2372
2373 /** Gets the value of "marquee" */
2374 String get marquee() =>
2375 getPropertyValue('${_browserPrefix}marquee');
2376
2377 /** Sets the value of "marquee" */
2378 void set marquee(var value) {
2379 setProperty('${_browserPrefix}marquee', value, '');
2380 }
2381
2382 /** Gets the value of "marquee-direction" */
2383 String get marqueeDirection() =>
2384 getPropertyValue('${_browserPrefix}marquee-direction');
2385
2386 /** Sets the value of "marquee-direction" */
2387 void set marqueeDirection(var value) {
2388 setProperty('${_browserPrefix}marquee-direction', value, '');
2389 }
2390
2391 /** Gets the value of "marquee-increment" */
2392 String get marqueeIncrement() =>
2393 getPropertyValue('${_browserPrefix}marquee-increment');
2394
2395 /** Sets the value of "marquee-increment" */
2396 void set marqueeIncrement(var value) {
2397 setProperty('${_browserPrefix}marquee-increment', value, '');
2398 }
2399
2400 /** Gets the value of "marquee-repetition" */
2401 String get marqueeRepetition() =>
2402 getPropertyValue('${_browserPrefix}marquee-repetition');
2403
2404 /** Sets the value of "marquee-repetition" */
2405 void set marqueeRepetition(var value) {
2406 setProperty('${_browserPrefix}marquee-repetition', value, '');
2407 }
2408
2409 /** Gets the value of "marquee-speed" */
2410 String get marqueeSpeed() =>
2411 getPropertyValue('${_browserPrefix}marquee-speed');
2412
2413 /** Sets the value of "marquee-speed" */
2414 void set marqueeSpeed(var value) {
2415 setProperty('${_browserPrefix}marquee-speed', value, '');
2416 }
2417
2418 /** Gets the value of "marquee-style" */
2419 String get marqueeStyle() =>
2420 getPropertyValue('${_browserPrefix}marquee-style');
2421
2422 /** Sets the value of "marquee-style" */
2423 void set marqueeStyle(var value) {
2424 setProperty('${_browserPrefix}marquee-style', value, '');
2425 }
2426
2427 /** Gets the value of "mask" */
2428 String get mask() =>
2429 getPropertyValue('${_browserPrefix}mask');
2430
2431 /** Sets the value of "mask" */
2432 void set mask(var value) {
2433 setProperty('${_browserPrefix}mask', value, '');
2434 }
2435
2436 /** Gets the value of "mask-attachment" */
2437 String get maskAttachment() =>
2438 getPropertyValue('${_browserPrefix}mask-attachment');
2439
2440 /** Sets the value of "mask-attachment" */
2441 void set maskAttachment(var value) {
2442 setProperty('${_browserPrefix}mask-attachment', value, '');
2443 }
2444
2445 /** Gets the value of "mask-box-image" */
2446 String get maskBoxImage() =>
2447 getPropertyValue('${_browserPrefix}mask-box-image');
2448
2449 /** Sets the value of "mask-box-image" */
2450 void set maskBoxImage(var value) {
2451 setProperty('${_browserPrefix}mask-box-image', value, '');
2452 }
2453
2454 /** Gets the value of "mask-box-image-outset" */
2455 String get maskBoxImageOutset() =>
2456 getPropertyValue('${_browserPrefix}mask-box-image-outset');
2457
2458 /** Sets the value of "mask-box-image-outset" */
2459 void set maskBoxImageOutset(var value) {
2460 setProperty('${_browserPrefix}mask-box-image-outset', value, '');
2461 }
2462
2463 /** Gets the value of "mask-box-image-repeat" */
2464 String get maskBoxImageRepeat() =>
2465 getPropertyValue('${_browserPrefix}mask-box-image-repeat');
2466
2467 /** Sets the value of "mask-box-image-repeat" */
2468 void set maskBoxImageRepeat(var value) {
2469 setProperty('${_browserPrefix}mask-box-image-repeat', value, '');
2470 }
2471
2472 /** Gets the value of "mask-box-image-slice" */
2473 String get maskBoxImageSlice() =>
2474 getPropertyValue('${_browserPrefix}mask-box-image-slice');
2475
2476 /** Sets the value of "mask-box-image-slice" */
2477 void set maskBoxImageSlice(var value) {
2478 setProperty('${_browserPrefix}mask-box-image-slice', value, '');
2479 }
2480
2481 /** Gets the value of "mask-box-image-source" */
2482 String get maskBoxImageSource() =>
2483 getPropertyValue('${_browserPrefix}mask-box-image-source');
2484
2485 /** Sets the value of "mask-box-image-source" */
2486 void set maskBoxImageSource(var value) {
2487 setProperty('${_browserPrefix}mask-box-image-source', value, '');
2488 }
2489
2490 /** Gets the value of "mask-box-image-width" */
2491 String get maskBoxImageWidth() =>
2492 getPropertyValue('${_browserPrefix}mask-box-image-width');
2493
2494 /** Sets the value of "mask-box-image-width" */
2495 void set maskBoxImageWidth(var value) {
2496 setProperty('${_browserPrefix}mask-box-image-width', value, '');
2497 }
2498
2499 /** Gets the value of "mask-clip" */
2500 String get maskClip() =>
2501 getPropertyValue('${_browserPrefix}mask-clip');
2502
2503 /** Sets the value of "mask-clip" */
2504 void set maskClip(var value) {
2505 setProperty('${_browserPrefix}mask-clip', value, '');
2506 }
2507
2508 /** Gets the value of "mask-composite" */
2509 String get maskComposite() =>
2510 getPropertyValue('${_browserPrefix}mask-composite');
2511
2512 /** Sets the value of "mask-composite" */
2513 void set maskComposite(var value) {
2514 setProperty('${_browserPrefix}mask-composite', value, '');
2515 }
2516
2517 /** Gets the value of "mask-image" */
2518 String get maskImage() =>
2519 getPropertyValue('${_browserPrefix}mask-image');
2520
2521 /** Sets the value of "mask-image" */
2522 void set maskImage(var value) {
2523 setProperty('${_browserPrefix}mask-image', value, '');
2524 }
2525
2526 /** Gets the value of "mask-origin" */
2527 String get maskOrigin() =>
2528 getPropertyValue('${_browserPrefix}mask-origin');
2529
2530 /** Sets the value of "mask-origin" */
2531 void set maskOrigin(var value) {
2532 setProperty('${_browserPrefix}mask-origin', value, '');
2533 }
2534
2535 /** Gets the value of "mask-position" */
2536 String get maskPosition() =>
2537 getPropertyValue('${_browserPrefix}mask-position');
2538
2539 /** Sets the value of "mask-position" */
2540 void set maskPosition(var value) {
2541 setProperty('${_browserPrefix}mask-position', value, '');
2542 }
2543
2544 /** Gets the value of "mask-position-x" */
2545 String get maskPositionX() =>
2546 getPropertyValue('${_browserPrefix}mask-position-x');
2547
2548 /** Sets the value of "mask-position-x" */
2549 void set maskPositionX(var value) {
2550 setProperty('${_browserPrefix}mask-position-x', value, '');
2551 }
2552
2553 /** Gets the value of "mask-position-y" */
2554 String get maskPositionY() =>
2555 getPropertyValue('${_browserPrefix}mask-position-y');
2556
2557 /** Sets the value of "mask-position-y" */
2558 void set maskPositionY(var value) {
2559 setProperty('${_browserPrefix}mask-position-y', value, '');
2560 }
2561
2562 /** Gets the value of "mask-repeat" */
2563 String get maskRepeat() =>
2564 getPropertyValue('${_browserPrefix}mask-repeat');
2565
2566 /** Sets the value of "mask-repeat" */
2567 void set maskRepeat(var value) {
2568 setProperty('${_browserPrefix}mask-repeat', value, '');
2569 }
2570
2571 /** Gets the value of "mask-repeat-x" */
2572 String get maskRepeatX() =>
2573 getPropertyValue('${_browserPrefix}mask-repeat-x');
2574
2575 /** Sets the value of "mask-repeat-x" */
2576 void set maskRepeatX(var value) {
2577 setProperty('${_browserPrefix}mask-repeat-x', value, '');
2578 }
2579
2580 /** Gets the value of "mask-repeat-y" */
2581 String get maskRepeatY() =>
2582 getPropertyValue('${_browserPrefix}mask-repeat-y');
2583
2584 /** Sets the value of "mask-repeat-y" */
2585 void set maskRepeatY(var value) {
2586 setProperty('${_browserPrefix}mask-repeat-y', value, '');
2587 }
2588
2589 /** Gets the value of "mask-size" */
2590 String get maskSize() =>
2591 getPropertyValue('${_browserPrefix}mask-size');
2592
2593 /** Sets the value of "mask-size" */
2594 void set maskSize(var value) {
2595 setProperty('${_browserPrefix}mask-size', value, '');
2596 }
2597
2598 /** Gets the value of "match-nearest-mail-blockquote-color" */
2599 String get matchNearestMailBlockquoteColor() =>
2600 getPropertyValue('${_browserPrefix}match-nearest-mail-blockquote-color');
2601
2602 /** Sets the value of "match-nearest-mail-blockquote-color" */
2603 void set matchNearestMailBlockquoteColor(var value) {
2604 setProperty('${_browserPrefix}match-nearest-mail-blockquote-color', value, ' ');
2605 }
2606
2607 /** Gets the value of "max-height" */
2608 String get maxHeight() =>
2609 getPropertyValue('max-height');
2610
2611 /** Sets the value of "max-height" */
2612 void set maxHeight(var value) {
2613 setProperty('max-height', value, '');
2614 }
2615
2616 /** Gets the value of "max-logical-height" */
2617 String get maxLogicalHeight() =>
2618 getPropertyValue('${_browserPrefix}max-logical-height');
2619
2620 /** Sets the value of "max-logical-height" */
2621 void set maxLogicalHeight(var value) {
2622 setProperty('${_browserPrefix}max-logical-height', value, '');
2623 }
2624
2625 /** Gets the value of "max-logical-width" */
2626 String get maxLogicalWidth() =>
2627 getPropertyValue('${_browserPrefix}max-logical-width');
2628
2629 /** Sets the value of "max-logical-width" */
2630 void set maxLogicalWidth(var value) {
2631 setProperty('${_browserPrefix}max-logical-width', value, '');
2632 }
2633
2634 /** Gets the value of "max-width" */
2635 String get maxWidth() =>
2636 getPropertyValue('max-width');
2637
2638 /** Sets the value of "max-width" */
2639 void set maxWidth(var value) {
2640 setProperty('max-width', value, '');
2641 }
2642
2643 /** Gets the value of "min-height" */
2644 String get minHeight() =>
2645 getPropertyValue('min-height');
2646
2647 /** Sets the value of "min-height" */
2648 void set minHeight(var value) {
2649 setProperty('min-height', value, '');
2650 }
2651
2652 /** Gets the value of "min-logical-height" */
2653 String get minLogicalHeight() =>
2654 getPropertyValue('${_browserPrefix}min-logical-height');
2655
2656 /** Sets the value of "min-logical-height" */
2657 void set minLogicalHeight(var value) {
2658 setProperty('${_browserPrefix}min-logical-height', value, '');
2659 }
2660
2661 /** Gets the value of "min-logical-width" */
2662 String get minLogicalWidth() =>
2663 getPropertyValue('${_browserPrefix}min-logical-width');
2664
2665 /** Sets the value of "min-logical-width" */
2666 void set minLogicalWidth(var value) {
2667 setProperty('${_browserPrefix}min-logical-width', value, '');
2668 }
2669
2670 /** Gets the value of "min-width" */
2671 String get minWidth() =>
2672 getPropertyValue('min-width');
2673
2674 /** Sets the value of "min-width" */
2675 void set minWidth(var value) {
2676 setProperty('min-width', value, '');
2677 }
2678
2679 /** Gets the value of "nbsp-mode" */
2680 String get nbspMode() =>
2681 getPropertyValue('${_browserPrefix}nbsp-mode');
2682
2683 /** Sets the value of "nbsp-mode" */
2684 void set nbspMode(var value) {
2685 setProperty('${_browserPrefix}nbsp-mode', value, '');
2686 }
2687
2688 /** Gets the value of "opacity" */
2689 String get opacity() =>
2690 getPropertyValue('opacity');
2691
2692 /** Sets the value of "opacity" */
2693 void set opacity(var value) {
2694 setProperty('opacity', value, '');
2695 }
2696
2697 /** Gets the value of "orphans" */
2698 String get orphans() =>
2699 getPropertyValue('orphans');
2700
2701 /** Sets the value of "orphans" */
2702 void set orphans(var value) {
2703 setProperty('orphans', value, '');
2704 }
2705
2706 /** Gets the value of "outline" */
2707 String get outline() =>
2708 getPropertyValue('outline');
2709
2710 /** Sets the value of "outline" */
2711 void set outline(var value) {
2712 setProperty('outline', value, '');
2713 }
2714
2715 /** Gets the value of "outline-color" */
2716 String get outlineColor() =>
2717 getPropertyValue('outline-color');
2718
2719 /** Sets the value of "outline-color" */
2720 void set outlineColor(var value) {
2721 setProperty('outline-color', value, '');
2722 }
2723
2724 /** Gets the value of "outline-offset" */
2725 String get outlineOffset() =>
2726 getPropertyValue('outline-offset');
2727
2728 /** Sets the value of "outline-offset" */
2729 void set outlineOffset(var value) {
2730 setProperty('outline-offset', value, '');
2731 }
2732
2733 /** Gets the value of "outline-style" */
2734 String get outlineStyle() =>
2735 getPropertyValue('outline-style');
2736
2737 /** Sets the value of "outline-style" */
2738 void set outlineStyle(var value) {
2739 setProperty('outline-style', value, '');
2740 }
2741
2742 /** Gets the value of "outline-width" */
2743 String get outlineWidth() =>
2744 getPropertyValue('outline-width');
2745
2746 /** Sets the value of "outline-width" */
2747 void set outlineWidth(var value) {
2748 setProperty('outline-width', value, '');
2749 }
2750
2751 /** Gets the value of "overflow" */
2752 String get overflow() =>
2753 getPropertyValue('overflow');
2754
2755 /** Sets the value of "overflow" */
2756 void set overflow(var value) {
2757 setProperty('overflow', value, '');
2758 }
2759
2760 /** Gets the value of "overflow-x" */
2761 String get overflowX() =>
2762 getPropertyValue('overflow-x');
2763
2764 /** Sets the value of "overflow-x" */
2765 void set overflowX(var value) {
2766 setProperty('overflow-x', value, '');
2767 }
2768
2769 /** Gets the value of "overflow-y" */
2770 String get overflowY() =>
2771 getPropertyValue('overflow-y');
2772
2773 /** Sets the value of "overflow-y" */
2774 void set overflowY(var value) {
2775 setProperty('overflow-y', value, '');
2776 }
2777
2778 /** Gets the value of "padding" */
2779 String get padding() =>
2780 getPropertyValue('padding');
2781
2782 /** Sets the value of "padding" */
2783 void set padding(var value) {
2784 setProperty('padding', value, '');
2785 }
2786
2787 /** Gets the value of "padding-after" */
2788 String get paddingAfter() =>
2789 getPropertyValue('${_browserPrefix}padding-after');
2790
2791 /** Sets the value of "padding-after" */
2792 void set paddingAfter(var value) {
2793 setProperty('${_browserPrefix}padding-after', value, '');
2794 }
2795
2796 /** Gets the value of "padding-before" */
2797 String get paddingBefore() =>
2798 getPropertyValue('${_browserPrefix}padding-before');
2799
2800 /** Sets the value of "padding-before" */
2801 void set paddingBefore(var value) {
2802 setProperty('${_browserPrefix}padding-before', value, '');
2803 }
2804
2805 /** Gets the value of "padding-bottom" */
2806 String get paddingBottom() =>
2807 getPropertyValue('padding-bottom');
2808
2809 /** Sets the value of "padding-bottom" */
2810 void set paddingBottom(var value) {
2811 setProperty('padding-bottom', value, '');
2812 }
2813
2814 /** Gets the value of "padding-end" */
2815 String get paddingEnd() =>
2816 getPropertyValue('${_browserPrefix}padding-end');
2817
2818 /** Sets the value of "padding-end" */
2819 void set paddingEnd(var value) {
2820 setProperty('${_browserPrefix}padding-end', value, '');
2821 }
2822
2823 /** Gets the value of "padding-left" */
2824 String get paddingLeft() =>
2825 getPropertyValue('padding-left');
2826
2827 /** Sets the value of "padding-left" */
2828 void set paddingLeft(var value) {
2829 setProperty('padding-left', value, '');
2830 }
2831
2832 /** Gets the value of "padding-right" */
2833 String get paddingRight() =>
2834 getPropertyValue('padding-right');
2835
2836 /** Sets the value of "padding-right" */
2837 void set paddingRight(var value) {
2838 setProperty('padding-right', value, '');
2839 }
2840
2841 /** Gets the value of "padding-start" */
2842 String get paddingStart() =>
2843 getPropertyValue('${_browserPrefix}padding-start');
2844
2845 /** Sets the value of "padding-start" */
2846 void set paddingStart(var value) {
2847 setProperty('${_browserPrefix}padding-start', value, '');
2848 }
2849
2850 /** Gets the value of "padding-top" */
2851 String get paddingTop() =>
2852 getPropertyValue('padding-top');
2853
2854 /** Sets the value of "padding-top" */
2855 void set paddingTop(var value) {
2856 setProperty('padding-top', value, '');
2857 }
2858
2859 /** Gets the value of "page" */
2860 String get page() =>
2861 getPropertyValue('page');
2862
2863 /** Sets the value of "page" */
2864 void set page(var value) {
2865 setProperty('page', value, '');
2866 }
2867
2868 /** Gets the value of "page-break-after" */
2869 String get pageBreakAfter() =>
2870 getPropertyValue('page-break-after');
2871
2872 /** Sets the value of "page-break-after" */
2873 void set pageBreakAfter(var value) {
2874 setProperty('page-break-after', value, '');
2875 }
2876
2877 /** Gets the value of "page-break-before" */
2878 String get pageBreakBefore() =>
2879 getPropertyValue('page-break-before');
2880
2881 /** Sets the value of "page-break-before" */
2882 void set pageBreakBefore(var value) {
2883 setProperty('page-break-before', value, '');
2884 }
2885
2886 /** Gets the value of "page-break-inside" */
2887 String get pageBreakInside() =>
2888 getPropertyValue('page-break-inside');
2889
2890 /** Sets the value of "page-break-inside" */
2891 void set pageBreakInside(var value) {
2892 setProperty('page-break-inside', value, '');
2893 }
2894
2895 /** Gets the value of "perspective" */
2896 String get perspective() =>
2897 getPropertyValue('${_browserPrefix}perspective');
2898
2899 /** Sets the value of "perspective" */
2900 void set perspective(var value) {
2901 setProperty('${_browserPrefix}perspective', value, '');
2902 }
2903
2904 /** Gets the value of "perspective-origin" */
2905 String get perspectiveOrigin() =>
2906 getPropertyValue('${_browserPrefix}perspective-origin');
2907
2908 /** Sets the value of "perspective-origin" */
2909 void set perspectiveOrigin(var value) {
2910 setProperty('${_browserPrefix}perspective-origin', value, '');
2911 }
2912
2913 /** Gets the value of "perspective-origin-x" */
2914 String get perspectiveOriginX() =>
2915 getPropertyValue('${_browserPrefix}perspective-origin-x');
2916
2917 /** Sets the value of "perspective-origin-x" */
2918 void set perspectiveOriginX(var value) {
2919 setProperty('${_browserPrefix}perspective-origin-x', value, '');
2920 }
2921
2922 /** Gets the value of "perspective-origin-y" */
2923 String get perspectiveOriginY() =>
2924 getPropertyValue('${_browserPrefix}perspective-origin-y');
2925
2926 /** Sets the value of "perspective-origin-y" */
2927 void set perspectiveOriginY(var value) {
2928 setProperty('${_browserPrefix}perspective-origin-y', value, '');
2929 }
2930
2931 /** Gets the value of "pointer-events" */
2932 String get pointerEvents() =>
2933 getPropertyValue('pointer-events');
2934
2935 /** Sets the value of "pointer-events" */
2936 void set pointerEvents(var value) {
2937 setProperty('pointer-events', value, '');
2938 }
2939
2940 /** Gets the value of "position" */
2941 String get position() =>
2942 getPropertyValue('position');
2943
2944 /** Sets the value of "position" */
2945 void set position(var value) {
2946 setProperty('position', value, '');
2947 }
2948
2949 /** Gets the value of "quotes" */
2950 String get quotes() =>
2951 getPropertyValue('quotes');
2952
2953 /** Sets the value of "quotes" */
2954 void set quotes(var value) {
2955 setProperty('quotes', value, '');
2956 }
2957
2958 /** Gets the value of "region-break-after" */
2959 String get regionBreakAfter() =>
2960 getPropertyValue('${_browserPrefix}region-break-after');
2961
2962 /** Sets the value of "region-break-after" */
2963 void set regionBreakAfter(var value) {
2964 setProperty('${_browserPrefix}region-break-after', value, '');
2965 }
2966
2967 /** Gets the value of "region-break-before" */
2968 String get regionBreakBefore() =>
2969 getPropertyValue('${_browserPrefix}region-break-before');
2970
2971 /** Sets the value of "region-break-before" */
2972 void set regionBreakBefore(var value) {
2973 setProperty('${_browserPrefix}region-break-before', value, '');
2974 }
2975
2976 /** Gets the value of "region-break-inside" */
2977 String get regionBreakInside() =>
2978 getPropertyValue('${_browserPrefix}region-break-inside');
2979
2980 /** Sets the value of "region-break-inside" */
2981 void set regionBreakInside(var value) {
2982 setProperty('${_browserPrefix}region-break-inside', value, '');
2983 }
2984
2985 /** Gets the value of "region-overflow" */
2986 String get regionOverflow() =>
2987 getPropertyValue('${_browserPrefix}region-overflow');
2988
2989 /** Sets the value of "region-overflow" */
2990 void set regionOverflow(var value) {
2991 setProperty('${_browserPrefix}region-overflow', value, '');
2992 }
2993
2994 /** Gets the value of "resize" */
2995 String get resize() =>
2996 getPropertyValue('resize');
2997
2998 /** Sets the value of "resize" */
2999 void set resize(var value) {
3000 setProperty('resize', value, '');
3001 }
3002
3003 /** Gets the value of "right" */
3004 String get right() =>
3005 getPropertyValue('right');
3006
3007 /** Sets the value of "right" */
3008 void set right(var value) {
3009 setProperty('right', value, '');
3010 }
3011
3012 /** Gets the value of "rtl-ordering" */
3013 String get rtlOrdering() =>
3014 getPropertyValue('${_browserPrefix}rtl-ordering');
3015
3016 /** Sets the value of "rtl-ordering" */
3017 void set rtlOrdering(var value) {
3018 setProperty('${_browserPrefix}rtl-ordering', value, '');
3019 }
3020
3021 /** Gets the value of "size" */
3022 String get size() =>
3023 getPropertyValue('size');
3024
3025 /** Sets the value of "size" */
3026 void set size(var value) {
3027 setProperty('size', value, '');
3028 }
3029
3030 /** Gets the value of "speak" */
3031 String get speak() =>
3032 getPropertyValue('speak');
3033
3034 /** Sets the value of "speak" */
3035 void set speak(var value) {
3036 setProperty('speak', value, '');
3037 }
3038
3039 /** Gets the value of "src" */
3040 String get src() =>
3041 getPropertyValue('src');
3042
3043 /** Sets the value of "src" */
3044 void set src(var value) {
3045 setProperty('src', value, '');
3046 }
3047
3048 /** Gets the value of "table-layout" */
3049 String get tableLayout() =>
3050 getPropertyValue('table-layout');
3051
3052 /** Sets the value of "table-layout" */
3053 void set tableLayout(var value) {
3054 setProperty('table-layout', value, '');
3055 }
3056
3057 /** Gets the value of "tap-highlight-color" */
3058 String get tapHighlightColor() =>
3059 getPropertyValue('${_browserPrefix}tap-highlight-color');
3060
3061 /** Sets the value of "tap-highlight-color" */
3062 void set tapHighlightColor(var value) {
3063 setProperty('${_browserPrefix}tap-highlight-color', value, '');
3064 }
3065
3066 /** Gets the value of "text-align" */
3067 String get textAlign() =>
3068 getPropertyValue('text-align');
3069
3070 /** Sets the value of "text-align" */
3071 void set textAlign(var value) {
3072 setProperty('text-align', value, '');
3073 }
3074
3075 /** Gets the value of "text-combine" */
3076 String get textCombine() =>
3077 getPropertyValue('${_browserPrefix}text-combine');
3078
3079 /** Sets the value of "text-combine" */
3080 void set textCombine(var value) {
3081 setProperty('${_browserPrefix}text-combine', value, '');
3082 }
3083
3084 /** Gets the value of "text-decoration" */
3085 String get textDecoration() =>
3086 getPropertyValue('text-decoration');
3087
3088 /** Sets the value of "text-decoration" */
3089 void set textDecoration(var value) {
3090 setProperty('text-decoration', value, '');
3091 }
3092
3093 /** Gets the value of "text-decorations-in-effect" */
3094 String get textDecorationsInEffect() =>
3095 getPropertyValue('${_browserPrefix}text-decorations-in-effect');
3096
3097 /** Sets the value of "text-decorations-in-effect" */
3098 void set textDecorationsInEffect(var value) {
3099 setProperty('${_browserPrefix}text-decorations-in-effect', value, '');
3100 }
3101
3102 /** Gets the value of "text-emphasis" */
3103 String get textEmphasis() =>
3104 getPropertyValue('${_browserPrefix}text-emphasis');
3105
3106 /** Sets the value of "text-emphasis" */
3107 void set textEmphasis(var value) {
3108 setProperty('${_browserPrefix}text-emphasis', value, '');
3109 }
3110
3111 /** Gets the value of "text-emphasis-color" */
3112 String get textEmphasisColor() =>
3113 getPropertyValue('${_browserPrefix}text-emphasis-color');
3114
3115 /** Sets the value of "text-emphasis-color" */
3116 void set textEmphasisColor(var value) {
3117 setProperty('${_browserPrefix}text-emphasis-color', value, '');
3118 }
3119
3120 /** Gets the value of "text-emphasis-position" */
3121 String get textEmphasisPosition() =>
3122 getPropertyValue('${_browserPrefix}text-emphasis-position');
3123
3124 /** Sets the value of "text-emphasis-position" */
3125 void set textEmphasisPosition(var value) {
3126 setProperty('${_browserPrefix}text-emphasis-position', value, '');
3127 }
3128
3129 /** Gets the value of "text-emphasis-style" */
3130 String get textEmphasisStyle() =>
3131 getPropertyValue('${_browserPrefix}text-emphasis-style');
3132
3133 /** Sets the value of "text-emphasis-style" */
3134 void set textEmphasisStyle(var value) {
3135 setProperty('${_browserPrefix}text-emphasis-style', value, '');
3136 }
3137
3138 /** Gets the value of "text-fill-color" */
3139 String get textFillColor() =>
3140 getPropertyValue('${_browserPrefix}text-fill-color');
3141
3142 /** Sets the value of "text-fill-color" */
3143 void set textFillColor(var value) {
3144 setProperty('${_browserPrefix}text-fill-color', value, '');
3145 }
3146
3147 /** Gets the value of "text-indent" */
3148 String get textIndent() =>
3149 getPropertyValue('text-indent');
3150
3151 /** Sets the value of "text-indent" */
3152 void set textIndent(var value) {
3153 setProperty('text-indent', value, '');
3154 }
3155
3156 /** Gets the value of "text-line-through" */
3157 String get textLineThrough() =>
3158 getPropertyValue('text-line-through');
3159
3160 /** Sets the value of "text-line-through" */
3161 void set textLineThrough(var value) {
3162 setProperty('text-line-through', value, '');
3163 }
3164
3165 /** Gets the value of "text-line-through-color" */
3166 String get textLineThroughColor() =>
3167 getPropertyValue('text-line-through-color');
3168
3169 /** Sets the value of "text-line-through-color" */
3170 void set textLineThroughColor(var value) {
3171 setProperty('text-line-through-color', value, '');
3172 }
3173
3174 /** Gets the value of "text-line-through-mode" */
3175 String get textLineThroughMode() =>
3176 getPropertyValue('text-line-through-mode');
3177
3178 /** Sets the value of "text-line-through-mode" */
3179 void set textLineThroughMode(var value) {
3180 setProperty('text-line-through-mode', value, '');
3181 }
3182
3183 /** Gets the value of "text-line-through-style" */
3184 String get textLineThroughStyle() =>
3185 getPropertyValue('text-line-through-style');
3186
3187 /** Sets the value of "text-line-through-style" */
3188 void set textLineThroughStyle(var value) {
3189 setProperty('text-line-through-style', value, '');
3190 }
3191
3192 /** Gets the value of "text-line-through-width" */
3193 String get textLineThroughWidth() =>
3194 getPropertyValue('text-line-through-width');
3195
3196 /** Sets the value of "text-line-through-width" */
3197 void set textLineThroughWidth(var value) {
3198 setProperty('text-line-through-width', value, '');
3199 }
3200
3201 /** Gets the value of "text-orientation" */
3202 String get textOrientation() =>
3203 getPropertyValue('${_browserPrefix}text-orientation');
3204
3205 /** Sets the value of "text-orientation" */
3206 void set textOrientation(var value) {
3207 setProperty('${_browserPrefix}text-orientation', value, '');
3208 }
3209
3210 /** Gets the value of "text-overflow" */
3211 String get textOverflow() =>
3212 getPropertyValue('text-overflow');
3213
3214 /** Sets the value of "text-overflow" */
3215 void set textOverflow(var value) {
3216 setProperty('text-overflow', value, '');
3217 }
3218
3219 /** Gets the value of "text-overline" */
3220 String get textOverline() =>
3221 getPropertyValue('text-overline');
3222
3223 /** Sets the value of "text-overline" */
3224 void set textOverline(var value) {
3225 setProperty('text-overline', value, '');
3226 }
3227
3228 /** Gets the value of "text-overline-color" */
3229 String get textOverlineColor() =>
3230 getPropertyValue('text-overline-color');
3231
3232 /** Sets the value of "text-overline-color" */
3233 void set textOverlineColor(var value) {
3234 setProperty('text-overline-color', value, '');
3235 }
3236
3237 /** Gets the value of "text-overline-mode" */
3238 String get textOverlineMode() =>
3239 getPropertyValue('text-overline-mode');
3240
3241 /** Sets the value of "text-overline-mode" */
3242 void set textOverlineMode(var value) {
3243 setProperty('text-overline-mode', value, '');
3244 }
3245
3246 /** Gets the value of "text-overline-style" */
3247 String get textOverlineStyle() =>
3248 getPropertyValue('text-overline-style');
3249
3250 /** Sets the value of "text-overline-style" */
3251 void set textOverlineStyle(var value) {
3252 setProperty('text-overline-style', value, '');
3253 }
3254
3255 /** Gets the value of "text-overline-width" */
3256 String get textOverlineWidth() =>
3257 getPropertyValue('text-overline-width');
3258
3259 /** Sets the value of "text-overline-width" */
3260 void set textOverlineWidth(var value) {
3261 setProperty('text-overline-width', value, '');
3262 }
3263
3264 /** Gets the value of "text-rendering" */
3265 String get textRendering() =>
3266 getPropertyValue('text-rendering');
3267
3268 /** Sets the value of "text-rendering" */
3269 void set textRendering(var value) {
3270 setProperty('text-rendering', value, '');
3271 }
3272
3273 /** Gets the value of "text-security" */
3274 String get textSecurity() =>
3275 getPropertyValue('${_browserPrefix}text-security');
3276
3277 /** Sets the value of "text-security" */
3278 void set textSecurity(var value) {
3279 setProperty('${_browserPrefix}text-security', value, '');
3280 }
3281
3282 /** Gets the value of "text-shadow" */
3283 String get textShadow() =>
3284 getPropertyValue('text-shadow');
3285
3286 /** Sets the value of "text-shadow" */
3287 void set textShadow(var value) {
3288 setProperty('text-shadow', value, '');
3289 }
3290
3291 /** Gets the value of "text-size-adjust" */
3292 String get textSizeAdjust() =>
3293 getPropertyValue('${_browserPrefix}text-size-adjust');
3294
3295 /** Sets the value of "text-size-adjust" */
3296 void set textSizeAdjust(var value) {
3297 setProperty('${_browserPrefix}text-size-adjust', value, '');
3298 }
3299
3300 /** Gets the value of "text-stroke" */
3301 String get textStroke() =>
3302 getPropertyValue('${_browserPrefix}text-stroke');
3303
3304 /** Sets the value of "text-stroke" */
3305 void set textStroke(var value) {
3306 setProperty('${_browserPrefix}text-stroke', value, '');
3307 }
3308
3309 /** Gets the value of "text-stroke-color" */
3310 String get textStrokeColor() =>
3311 getPropertyValue('${_browserPrefix}text-stroke-color');
3312
3313 /** Sets the value of "text-stroke-color" */
3314 void set textStrokeColor(var value) {
3315 setProperty('${_browserPrefix}text-stroke-color', value, '');
3316 }
3317
3318 /** Gets the value of "text-stroke-width" */
3319 String get textStrokeWidth() =>
3320 getPropertyValue('${_browserPrefix}text-stroke-width');
3321
3322 /** Sets the value of "text-stroke-width" */
3323 void set textStrokeWidth(var value) {
3324 setProperty('${_browserPrefix}text-stroke-width', value, '');
3325 }
3326
3327 /** Gets the value of "text-transform" */
3328 String get textTransform() =>
3329 getPropertyValue('text-transform');
3330
3331 /** Sets the value of "text-transform" */
3332 void set textTransform(var value) {
3333 setProperty('text-transform', value, '');
3334 }
3335
3336 /** Gets the value of "text-underline" */
3337 String get textUnderline() =>
3338 getPropertyValue('text-underline');
3339
3340 /** Sets the value of "text-underline" */
3341 void set textUnderline(var value) {
3342 setProperty('text-underline', value, '');
3343 }
3344
3345 /** Gets the value of "text-underline-color" */
3346 String get textUnderlineColor() =>
3347 getPropertyValue('text-underline-color');
3348
3349 /** Sets the value of "text-underline-color" */
3350 void set textUnderlineColor(var value) {
3351 setProperty('text-underline-color', value, '');
3352 }
3353
3354 /** Gets the value of "text-underline-mode" */
3355 String get textUnderlineMode() =>
3356 getPropertyValue('text-underline-mode');
3357
3358 /** Sets the value of "text-underline-mode" */
3359 void set textUnderlineMode(var value) {
3360 setProperty('text-underline-mode', value, '');
3361 }
3362
3363 /** Gets the value of "text-underline-style" */
3364 String get textUnderlineStyle() =>
3365 getPropertyValue('text-underline-style');
3366
3367 /** Sets the value of "text-underline-style" */
3368 void set textUnderlineStyle(var value) {
3369 setProperty('text-underline-style', value, '');
3370 }
3371
3372 /** Gets the value of "text-underline-width" */
3373 String get textUnderlineWidth() =>
3374 getPropertyValue('text-underline-width');
3375
3376 /** Sets the value of "text-underline-width" */
3377 void set textUnderlineWidth(var value) {
3378 setProperty('text-underline-width', value, '');
3379 }
3380
3381 /** Gets the value of "top" */
3382 String get top() =>
3383 getPropertyValue('top');
3384
3385 /** Sets the value of "top" */
3386 void set top(var value) {
3387 setProperty('top', value, '');
3388 }
3389
3390 /** Gets the value of "transform" */
3391 String get transform() =>
3392 getPropertyValue('${_browserPrefix}transform');
3393
3394 /** Sets the value of "transform" */
3395 void set transform(var value) {
3396 setProperty('${_browserPrefix}transform', value, '');
3397 }
3398
3399 /** Gets the value of "transform-origin" */
3400 String get transformOrigin() =>
3401 getPropertyValue('${_browserPrefix}transform-origin');
3402
3403 /** Sets the value of "transform-origin" */
3404 void set transformOrigin(var value) {
3405 setProperty('${_browserPrefix}transform-origin', value, '');
3406 }
3407
3408 /** Gets the value of "transform-origin-x" */
3409 String get transformOriginX() =>
3410 getPropertyValue('${_browserPrefix}transform-origin-x');
3411
3412 /** Sets the value of "transform-origin-x" */
3413 void set transformOriginX(var value) {
3414 setProperty('${_browserPrefix}transform-origin-x', value, '');
3415 }
3416
3417 /** Gets the value of "transform-origin-y" */
3418 String get transformOriginY() =>
3419 getPropertyValue('${_browserPrefix}transform-origin-y');
3420
3421 /** Sets the value of "transform-origin-y" */
3422 void set transformOriginY(var value) {
3423 setProperty('${_browserPrefix}transform-origin-y', value, '');
3424 }
3425
3426 /** Gets the value of "transform-origin-z" */
3427 String get transformOriginZ() =>
3428 getPropertyValue('${_browserPrefix}transform-origin-z');
3429
3430 /** Sets the value of "transform-origin-z" */
3431 void set transformOriginZ(var value) {
3432 setProperty('${_browserPrefix}transform-origin-z', value, '');
3433 }
3434
3435 /** Gets the value of "transform-style" */
3436 String get transformStyle() =>
3437 getPropertyValue('${_browserPrefix}transform-style');
3438
3439 /** Sets the value of "transform-style" */
3440 void set transformStyle(var value) {
3441 setProperty('${_browserPrefix}transform-style', value, '');
3442 }
3443
3444 /** Gets the value of "transition" */
3445 String get transition() =>
3446 getPropertyValue('${_browserPrefix}transition');
3447
3448 /** Sets the value of "transition" */
3449 void set transition(var value) {
3450 setProperty('${_browserPrefix}transition', value, '');
3451 }
3452
3453 /** Gets the value of "transition-delay" */
3454 String get transitionDelay() =>
3455 getPropertyValue('${_browserPrefix}transition-delay');
3456
3457 /** Sets the value of "transition-delay" */
3458 void set transitionDelay(var value) {
3459 setProperty('${_browserPrefix}transition-delay', value, '');
3460 }
3461
3462 /** Gets the value of "transition-duration" */
3463 String get transitionDuration() =>
3464 getPropertyValue('${_browserPrefix}transition-duration');
3465
3466 /** Sets the value of "transition-duration" */
3467 void set transitionDuration(var value) {
3468 setProperty('${_browserPrefix}transition-duration', value, '');
3469 }
3470
3471 /** Gets the value of "transition-property" */
3472 String get transitionProperty() =>
3473 getPropertyValue('${_browserPrefix}transition-property');
3474
3475 /** Sets the value of "transition-property" */
3476 void set transitionProperty(var value) {
3477 setProperty('${_browserPrefix}transition-property', value, '');
3478 }
3479
3480 /** Gets the value of "transition-timing-function" */
3481 String get transitionTimingFunction() =>
3482 getPropertyValue('${_browserPrefix}transition-timing-function');
3483
3484 /** Sets the value of "transition-timing-function" */
3485 void set transitionTimingFunction(var value) {
3486 setProperty('${_browserPrefix}transition-timing-function', value, '');
3487 }
3488
3489 /** Gets the value of "unicode-bidi" */
3490 String get unicodeBidi() =>
3491 getPropertyValue('unicode-bidi');
3492
3493 /** Sets the value of "unicode-bidi" */
3494 void set unicodeBidi(var value) {
3495 setProperty('unicode-bidi', value, '');
3496 }
3497
3498 /** Gets the value of "unicode-range" */
3499 String get unicodeRange() =>
3500 getPropertyValue('unicode-range');
3501
3502 /** Sets the value of "unicode-range" */
3503 void set unicodeRange(var value) {
3504 setProperty('unicode-range', value, '');
3505 }
3506
3507 /** Gets the value of "user-drag" */
3508 String get userDrag() =>
3509 getPropertyValue('${_browserPrefix}user-drag');
3510
3511 /** Sets the value of "user-drag" */
3512 void set userDrag(var value) {
3513 setProperty('${_browserPrefix}user-drag', value, '');
3514 }
3515
3516 /** Gets the value of "user-modify" */
3517 String get userModify() =>
3518 getPropertyValue('${_browserPrefix}user-modify');
3519
3520 /** Sets the value of "user-modify" */
3521 void set userModify(var value) {
3522 setProperty('${_browserPrefix}user-modify', value, '');
3523 }
3524
3525 /** Gets the value of "user-select" */
3526 String get userSelect() =>
3527 getPropertyValue('${_browserPrefix}user-select');
3528
3529 /** Sets the value of "user-select" */
3530 void set userSelect(var value) {
3531 setProperty('${_browserPrefix}user-select', value, '');
3532 }
3533
3534 /** Gets the value of "vertical-align" */
3535 String get verticalAlign() =>
3536 getPropertyValue('vertical-align');
3537
3538 /** Sets the value of "vertical-align" */
3539 void set verticalAlign(var value) {
3540 setProperty('vertical-align', value, '');
3541 }
3542
3543 /** Gets the value of "visibility" */
3544 String get visibility() =>
3545 getPropertyValue('visibility');
3546
3547 /** Sets the value of "visibility" */
3548 void set visibility(var value) {
3549 setProperty('visibility', value, '');
3550 }
3551
3552 /** Gets the value of "white-space" */
3553 String get whiteSpace() =>
3554 getPropertyValue('white-space');
3555
3556 /** Sets the value of "white-space" */
3557 void set whiteSpace(var value) {
3558 setProperty('white-space', value, '');
3559 }
3560
3561 /** Gets the value of "widows" */
3562 String get widows() =>
3563 getPropertyValue('widows');
3564
3565 /** Sets the value of "widows" */
3566 void set widows(var value) {
3567 setProperty('widows', value, '');
3568 }
3569
3570 /** Gets the value of "width" */
3571 String get width() =>
3572 getPropertyValue('width');
3573
3574 /** Sets the value of "width" */
3575 void set width(var value) {
3576 setProperty('width', value, '');
3577 }
3578
3579 /** Gets the value of "word-break" */
3580 String get wordBreak() =>
3581 getPropertyValue('word-break');
3582
3583 /** Sets the value of "word-break" */
3584 void set wordBreak(var value) {
3585 setProperty('word-break', value, '');
3586 }
3587
3588 /** Gets the value of "word-spacing" */
3589 String get wordSpacing() =>
3590 getPropertyValue('word-spacing');
3591
3592 /** Sets the value of "word-spacing" */
3593 void set wordSpacing(var value) {
3594 setProperty('word-spacing', value, '');
3595 }
3596
3597 /** Gets the value of "word-wrap" */
3598 String get wordWrap() =>
3599 getPropertyValue('word-wrap');
3600
3601 /** Sets the value of "word-wrap" */
3602 void set wordWrap(var value) {
3603 setProperty('word-wrap', value, '');
3604 }
3605
3606 /** Gets the value of "wrap-shape" */
3607 String get wrapShape() =>
3608 getPropertyValue('${_browserPrefix}wrap-shape');
3609
3610 /** Sets the value of "wrap-shape" */
3611 void set wrapShape(var value) {
3612 setProperty('${_browserPrefix}wrap-shape', value, '');
3613 }
3614
3615 /** Gets the value of "writing-mode" */
3616 String get writingMode() =>
3617 getPropertyValue('${_browserPrefix}writing-mode');
3618
3619 /** Sets the value of "writing-mode" */
3620 void set writingMode(var value) {
3621 setProperty('${_browserPrefix}writing-mode', value, '');
3622 }
3623
3624 /** Gets the value of "z-index" */
3625 String get zIndex() =>
3626 getPropertyValue('z-index');
3627
3628 /** Sets the value of "z-index" */
3629 void set zIndex(var value) {
3630 setProperty('z-index', value, '');
3631 }
3632
3633 /** Gets the value of "zoom" */
3634 String get zoom() =>
3635 getPropertyValue('zoom');
3636
3637 /** Sets the value of "zoom" */
3638 void set zoom(var value) {
3639 setProperty('zoom', value, '');
3640 }
3641 }
3642
3643 class _CSSStyleRuleJs extends _CSSRuleJs implements CSSStyleRule native "*CSSSty leRule" {
3644
3645 String selectorText;
3646
3647 final _CSSStyleDeclarationJs style;
3648 }
3649
3650 class _CSSStyleSheetJs extends _StyleSheetJs implements CSSStyleSheet native "*C SSStyleSheet" {
3651
3652 final _CSSRuleListJs cssRules;
3653
3654 final _CSSRuleJs ownerRule;
3655
3656 final _CSSRuleListJs rules;
3657
3658 int addRule(String selector, String style, [int index = null]) native;
3659
3660 void deleteRule(int index) native;
3661
3662 int insertRule(String rule, int index) native;
3663
3664 void removeRule(int index) native;
3665 }
3666
3667 class _CSSTransformValueJs extends _CSSValueListJs implements CSSTransformValue native "*WebKitCSSTransformValue" {
3668
3669 static final int CSS_MATRIX = 11;
3670
3671 static final int CSS_MATRIX3D = 21;
3672
3673 static final int CSS_PERSPECTIVE = 20;
3674
3675 static final int CSS_ROTATE = 4;
3676
3677 static final int CSS_ROTATE3D = 17;
3678
3679 static final int CSS_ROTATEX = 14;
3680
3681 static final int CSS_ROTATEY = 15;
3682
3683 static final int CSS_ROTATEZ = 16;
3684
3685 static final int CSS_SCALE = 5;
3686
3687 static final int CSS_SCALE3D = 19;
3688
3689 static final int CSS_SCALEX = 6;
3690
3691 static final int CSS_SCALEY = 7;
3692
3693 static final int CSS_SCALEZ = 18;
3694
3695 static final int CSS_SKEW = 8;
3696
3697 static final int CSS_SKEWX = 9;
3698
3699 static final int CSS_SKEWY = 10;
3700
3701 static final int CSS_TRANSLATE = 1;
3702
3703 static final int CSS_TRANSLATE3D = 13;
3704
3705 static final int CSS_TRANSLATEX = 2;
3706
3707 static final int CSS_TRANSLATEY = 3;
3708
3709 static final int CSS_TRANSLATEZ = 12;
3710
3711 final int operationType;
3712 }
3713
3714 class _CSSUnknownRuleJs extends _CSSRuleJs implements CSSUnknownRule native "*CS SUnknownRule" {
3715 }
3716
3717 class _CSSValueJs implements CSSValue native "*CSSValue" {
3718
3719 static final int CSS_CUSTOM = 3;
3720
3721 static final int CSS_INHERIT = 0;
3722
3723 static final int CSS_PRIMITIVE_VALUE = 1;
3724
3725 static final int CSS_VALUE_LIST = 2;
3726
3727 String cssText;
3728
3729 final int cssValueType;
3730 }
3731
3732 class _CSSValueListJs extends _CSSValueJs implements CSSValueList native "*CSSVa lueList" {
3733
3734 final int length;
3735
3736 _CSSValueJs item(int index) native;
3737 }
3738
3739 class _CanvasElementJs extends _ElementJs implements CanvasElement native "*HTML CanvasElement" {
3740
3741 int height;
3742
3743 int width;
3744
3745 Object getContext(String contextId) native;
3746
3747 String toDataURL(String type) native;
3748 }
3749
3750 class _CanvasGradientJs implements CanvasGradient native "*CanvasGradient" {
3751
3752 void addColorStop(num offset, String color) native;
3753 }
3754
3755 class _CanvasPatternJs implements CanvasPattern native "*CanvasPattern" {
3756 }
3757
3758 class _CanvasPixelArrayJs implements CanvasPixelArray native "*CanvasPixelArray" {
3759
3760 final int length;
3761
3762 int operator[](int index) native "return this[index];";
3763
3764 void operator[]=(int index, int value) native "this[index] = value";
3765 // -- start List<int> mixins.
3766 // int is the element type.
3767
3768 // From Iterable<int>:
3769
3770 Iterator<int> iterator() {
3771 // Note: NodeLists are not fixed size. And most probably length shouldn't
3772 // be cached in both iterator _and_ forEach method. For now caching it
3773 // for consistency.
3774 return new _FixedSizeListIterator<int>(this);
3775 }
3776
3777 // From Collection<int>:
3778
3779 void add(int value) {
3780 throw new UnsupportedOperationException("Cannot add to immutable List.");
3781 }
3782
3783 void addLast(int value) {
3784 throw new UnsupportedOperationException("Cannot add to immutable List.");
3785 }
3786
3787 void addAll(Collection<int> collection) {
3788 throw new UnsupportedOperationException("Cannot add to immutable List.");
3789 }
3790
3791 void forEach(void f(int element)) => _Collections.forEach(this, f);
3792
3793 Collection map(f(int element)) => _Collections.map(this, [], f);
3794
3795 Collection<int> filter(bool f(int element)) =>
3796 _Collections.filter(this, <int>[], f);
3797
3798 bool every(bool f(int element)) => _Collections.every(this, f);
3799
3800 bool some(bool f(int element)) => _Collections.some(this, f);
3801
3802 bool isEmpty() => this.length == 0;
3803
3804 // From List<int>:
3805
3806 void sort(int compare(int a, int b)) {
3807 throw new UnsupportedOperationException("Cannot sort immutable List.");
3808 }
3809
3810 int indexOf(int element, [int start = 0]) =>
3811 _Lists.indexOf(this, element, start, this.length);
3812
3813 int lastIndexOf(int element, [int start = 0]) =>
3814 _Lists.lastIndexOf(this, element, start);
3815
3816 int last() => this[length - 1];
3817
3818 // FIXME: implement thesee.
3819 void setRange(int start, int length, List<int> from, [int startFrom]) {
3820 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
3821 }
3822 void removeRange(int start, int length) {
3823 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
3824 }
3825 void insertRange(int start, int length, [int initialValue]) {
3826 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
3827 }
3828 List<int> getRange(int start, int length) =>
3829 _Lists.getRange(this, start, length, <int>[]);
3830
3831 // -- end List<int> mixins.
3832 }
3833
3834 class _CanvasRenderingContextJs implements CanvasRenderingContext native "*Canva sRenderingContext" {
3835
3836 final _CanvasElementJs canvas;
3837 }
3838
3839 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C anvasRenderingContext2D native "*CanvasRenderingContext2D" {
3840
3841 Dynamic fillStyle;
3842
3843 String font;
3844
3845 num globalAlpha;
3846
3847 String globalCompositeOperation;
3848
3849 String lineCap;
3850
3851 String lineJoin;
3852
3853 num lineWidth;
3854
3855 num miterLimit;
3856
3857 num shadowBlur;
3858
3859 String shadowColor;
3860
3861 num shadowOffsetX;
3862
3863 num shadowOffsetY;
3864
3865 Dynamic strokeStyle;
3866
3867 String textAlign;
3868
3869 String textBaseline;
3870
3871 List webkitLineDash;
3872
3873 num webkitLineDashOffset;
3874
3875 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise) native;
3876
3877 void arcTo(num x1, num y1, num x2, num y2, num radius) native;
3878
3879 void beginPath() native;
3880
3881 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ e;
3882
3883 void clearRect(num x, num y, num width, num height) native;
3884
3885 void clearShadow() native;
3886
3887 void clip() native;
3888
3889 void closePath() native;
3890
3891 _ImageDataJs createImageData(var imagedata_OR_sw, [num sh = null]) native;
3892
3893 _CanvasGradientJs createLinearGradient(num x0, num y0, num x1, num y1) native;
3894
3895 _CanvasPatternJs createPattern(var canvas_OR_image, String repetitionType) nat ive;
3896
3897 _CanvasGradientJs createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1) native;
3898
3899 void drawImage(var canvas_OR_image_OR_video, 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, num dh = null]) native;
3900
3901 void drawImageFromRect(_ImageElementJs image, [num sx = null, num sy = null, n um sw = null, num sh = null, num dx = null, num dy = null, num dw = null, num dh = null, String compositeOperation = null]) native;
3902
3903 void fill() native;
3904
3905 void fillRect(num x, num y, num width, num height) native;
3906
3907 void fillText(String text, num x, num y, [num maxWidth = null]) native;
3908
3909 _ImageDataJs getImageData(num sx, num sy, num sw, num sh) native;
3910
3911 bool isPointInPath(num x, num y) native;
3912
3913 void lineTo(num x, num y) native;
3914
3915 _TextMetricsJs measureText(String text) native;
3916
3917 void moveTo(num x, num y) native;
3918
3919 void putImageData(_ImageDataJs imagedata, num dx, num dy, [num dirtyX = null, num dirtyY = null, num dirtyWidth = null, num dirtyHeight = null]) native;
3920
3921 void quadraticCurveTo(num cpx, num cpy, num x, num y) native;
3922
3923 void rect(num x, num y, num width, num height) native;
3924
3925 void restore() native;
3926
3927 void rotate(num angle) native;
3928
3929 void save() native;
3930
3931 void scale(num sx, num sy) native;
3932
3933 void setAlpha(num alpha) native;
3934
3935 void setCompositeOperation(String compositeOperation) native;
3936
3937 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]) native;
3938
3939 void setLineCap(String cap) native;
3940
3941 void setLineJoin(String join) native;
3942
3943 void setLineWidth(num width) native;
3944
3945 void setMiterLimit(num limit) native;
3946
3947 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]) native;
3948
3949 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]) native;
3950
3951 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native;
3952
3953 void stroke() native;
3954
3955 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n ative;
3956
3957 void strokeText(String text, num x, num y, [num maxWidth = null]) native;
3958
3959 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native;
3960
3961 void translate(num tx, num ty) native;
3962 }
3963
3964 class _CharacterDataJs extends _NodeJs implements CharacterData native "*Charact erData" {
3965
3966 String data;
3967
3968 final int length;
3969
3970 void appendData(String data) native;
3971
3972 void deleteData(int offset, int length) native;
3973
3974 void insertData(int offset, String data) native;
3975
3976 void replaceData(int offset, int length, String data) native;
3977
3978 String substringData(int offset, int length) native;
3979 }
3980
3981 class _ClientRectJs implements ClientRect native "*ClientRect" {
3982
3983 final num bottom;
3984
3985 final num height;
3986
3987 final num left;
3988
3989 final num right;
3990
3991 final num top;
3992
3993 final num width;
3994 }
3995
3996 class _ClientRectListJs implements ClientRectList native "*ClientRectList" {
3997
3998 final int length;
3999
4000 _ClientRectJs item(int index) native;
4001 }
4002
4003 class _ClipboardJs implements Clipboard native "*Clipboard" {
4004
4005 String dropEffect;
4006
4007 String effectAllowed;
4008
4009 final _FileListJs files;
4010
4011 final _DataTransferItemListJs items;
4012
4013 final List types;
4014
4015 void clearData([String type = null]) native;
4016
4017 void getData(String type) native;
4018
4019 bool setData(String type, String data) native;
4020
4021 void setDragImage(_ImageElementJs image, int x, int y) native;
4022 }
4023
4024 class _CloseEventJs extends _EventJs implements CloseEvent native "*CloseEvent" {
4025
4026 final int code;
4027
4028 final String reason;
4029
4030 final bool wasClean;
4031 }
4032
4033 class _CommentJs extends _CharacterDataJs implements Comment native "*Comment" {
4034 }
4035
4036 class _CompositionEventJs extends _UIEventJs implements CompositionEvent native "*CompositionEvent" {
4037
4038 final String data;
4039
4040 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, _WindowJs viewArg, String dataArg) native;
4041 }
4042 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4043 // for details. All rights reserved. Use of this source code is governed by a
4044 // BSD-style license that can be found in the LICENSE file.
4045
4046 class _ConsoleJs
4047 // Console is sometimes a singleton bag-of-properties without a prototype.
4048 implements Console
4049 native "=(typeof console == 'undefined' ? {} : console)" {
4050
4051 final _MemoryInfoJs memory;
4052
4053 final List profiles;
4054
4055 void assertCondition(bool condition) native;
4056
4057 void count() native;
4058
4059 void debug(Object arg) native;
4060
4061 void dir() native;
4062
4063 void dirxml() native;
4064
4065 void error(Object arg) native;
4066
4067 void group() native;
4068
4069 void groupCollapsed() native;
4070
4071 void groupEnd() native;
4072
4073 void info(Object arg) native;
4074
4075 void log(Object arg) native;
4076
4077 void markTimeline() native;
4078
4079 void profile(String title) native;
4080
4081 void profileEnd(String title) native;
4082
4083 void time(String title) native;
4084
4085 void timeEnd(String title) native;
4086
4087 void timeStamp() native;
4088
4089 void trace(Object arg) native;
4090
4091 void warn(Object arg) native;
4092
4093 }
4094
4095 class _ConvolverNodeJs extends _AudioNodeJs implements ConvolverNode native "*Co nvolverNode" {
4096
4097 _AudioBufferJs buffer;
4098
4099 bool normalize;
4100 }
4101
4102 class _CoordinatesJs implements Coordinates native "*Coordinates" {
4103
4104 final num accuracy;
4105
4106 final num altitude;
4107
4108 final num altitudeAccuracy;
4109
4110 final num heading;
4111
4112 final num latitude;
4113
4114 final num longitude;
4115
4116 final num speed;
4117 }
4118
4119 class _CounterJs implements Counter native "*Counter" {
4120
4121 final String identifier;
4122
4123 final String listStyle;
4124
4125 final String separator;
4126 }
4127
4128 class _CryptoJs implements Crypto native "*Crypto" {
4129
4130 void getRandomValues(_ArrayBufferViewJs array) native;
4131 }
4132
4133 class _CustomEventJs extends _EventJs implements CustomEvent native "*CustomEven t" {
4134
4135 final Object detail;
4136
4137 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob ject detailArg) native;
4138 }
4139
4140 class _DListElementJs extends _ElementJs implements DListElement native "*HTMLDL istElement" {
4141
4142 bool compact;
4143 }
4144
4145 class _DOMApplicationCacheJs implements DOMApplicationCache native "*DOMApplicat ionCache" {
4146
4147 static final int CHECKING = 2;
4148
4149 static final int DOWNLOADING = 3;
4150
4151 static final int IDLE = 1;
4152
4153 static final int OBSOLETE = 5;
4154
4155 static final int UNCACHED = 0;
4156
4157 static final int UPDATEREADY = 4;
4158
4159 final int status;
4160
4161 _DOMApplicationCacheEventsImpl get on() =>
4162 new _DOMApplicationCacheEventsImpl(this);
4163
4164 void abort() native;
4165
4166 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
4167
4168 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);";
4169
4170 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
4171
4172 void swapCache() native;
4173
4174 void update() native;
4175 }
4176
4177 class _DOMApplicationCacheEventsImpl extends _EventsImpl implements DOMApplicati onCacheEvents {
4178 _DOMApplicationCacheEventsImpl(_ptr) : super(_ptr);
4179
4180 EventListenerList get cached() => _get('cached');
4181
4182 EventListenerList get checking() => _get('checking');
4183
4184 EventListenerList get downloading() => _get('downloading');
4185
4186 EventListenerList get error() => _get('error');
4187
4188 EventListenerList get noUpdate() => _get('noupdate');
4189
4190 EventListenerList get obsolete() => _get('obsolete');
4191
4192 EventListenerList get progress() => _get('progress');
4193
4194 EventListenerList get updateReady() => _get('updateready');
4195 }
4196
4197 class _DOMExceptionJs implements DOMException native "*DOMException" {
4198
4199 static final int ABORT_ERR = 20;
4200
4201 static final int DATA_CLONE_ERR = 25;
4202
4203 static final int DOMSTRING_SIZE_ERR = 2;
4204
4205 static final int HIERARCHY_REQUEST_ERR = 3;
4206
4207 static final int INDEX_SIZE_ERR = 1;
4208
4209 static final int INUSE_ATTRIBUTE_ERR = 10;
4210
4211 static final int INVALID_ACCESS_ERR = 15;
4212
4213 static final int INVALID_CHARACTER_ERR = 5;
4214
4215 static final int INVALID_MODIFICATION_ERR = 13;
4216
4217 static final int INVALID_NODE_TYPE_ERR = 24;
4218
4219 static final int INVALID_STATE_ERR = 11;
4220
4221 static final int NAMESPACE_ERR = 14;
4222
4223 static final int NETWORK_ERR = 19;
4224
4225 static final int NOT_FOUND_ERR = 8;
4226
4227 static final int NOT_SUPPORTED_ERR = 9;
4228
4229 static final int NO_DATA_ALLOWED_ERR = 6;
4230
4231 static final int NO_MODIFICATION_ALLOWED_ERR = 7;
4232
4233 static final int QUOTA_EXCEEDED_ERR = 22;
4234
4235 static final int SECURITY_ERR = 18;
4236
4237 static final int SYNTAX_ERR = 12;
4238
4239 static final int TIMEOUT_ERR = 23;
4240
4241 static final int TYPE_MISMATCH_ERR = 17;
4242
4243 static final int URL_MISMATCH_ERR = 21;
4244
4245 static final int VALIDATION_ERR = 16;
4246
4247 static final int WRONG_DOCUMENT_ERR = 4;
4248
4249 final int code;
4250
4251 final String message;
4252
4253 final String name;
4254
4255 String toString() native;
4256 }
4257
4258 class _DOMFileSystemJs implements DOMFileSystem native "*DOMFileSystem" {
4259
4260 final String name;
4261
4262 final _DirectoryEntryJs root;
4263 }
4264
4265 class _DOMFileSystemSyncJs implements DOMFileSystemSync native "*DOMFileSystemSy nc" {
4266
4267 final String name;
4268
4269 final _DirectoryEntrySyncJs root;
4270 }
4271
4272 class _DOMFormDataJs implements DOMFormData native "*DOMFormData" {
4273
4274 void append(String name, String value, String filename) native;
4275 }
4276
4277 class _DOMImplementationJs implements DOMImplementation native "*DOMImplementati on" {
4278
4279 _CSSStyleSheetJs createCSSStyleSheet(String title, String media) native;
4280
4281 _DocumentJs createDocument(String namespaceURI, String qualifiedName, _Documen tTypeJs doctype) native;
4282
4283 _DocumentTypeJs createDocumentType(String qualifiedName, String publicId, Stri ng systemId) native;
4284
4285 _DocumentJs createHTMLDocument(String title) native;
4286
4287 bool hasFeature(String feature, String version) native;
4288 }
4289
4290 class _DOMMimeTypeJs implements DOMMimeType native "*DOMMimeType" {
4291
4292 final String description;
4293
4294 final _DOMPluginJs enabledPlugin;
4295
4296 final String suffixes;
4297
4298 final String type;
4299 }
4300
4301 class _DOMMimeTypeArrayJs implements DOMMimeTypeArray native "*DOMMimeTypeArray" {
4302
4303 final int length;
4304
4305 _DOMMimeTypeJs item(int index) native;
4306
4307 _DOMMimeTypeJs namedItem(String name) native;
4308 }
4309
4310 class _DOMParserJs implements DOMParser native "*DOMParser" {
4311
4312 _DocumentJs parseFromString(String str, String contentType) native;
4313 }
4314
4315 class _DOMPluginJs implements DOMPlugin native "*DOMPlugin" {
4316
4317 final String description;
4318
4319 final String filename;
4320
4321 final int length;
4322
4323 final String name;
4324
4325 _DOMMimeTypeJs item(int index) native;
4326
4327 _DOMMimeTypeJs namedItem(String name) native;
4328 }
4329
4330 class _DOMPluginArrayJs implements DOMPluginArray native "*DOMPluginArray" {
4331
4332 final int length;
4333
4334 _DOMPluginJs item(int index) native;
4335
4336 _DOMPluginJs namedItem(String name) native;
4337
4338 void refresh(bool reload) native;
4339 }
4340
4341 class _DOMSelectionJs implements DOMSelection native "*DOMSelection" {
4342
4343 final _NodeJs anchorNode;
4344
4345 final int anchorOffset;
4346
4347 final _NodeJs baseNode;
4348
4349 final int baseOffset;
4350
4351 final _NodeJs extentNode;
4352
4353 final int extentOffset;
4354
4355 final _NodeJs focusNode;
4356
4357 final int focusOffset;
4358
4359 final bool isCollapsed;
4360
4361 final int rangeCount;
4362
4363 final String type;
4364
4365 void addRange(_RangeJs range) native;
4366
4367 void collapse(_NodeJs node, int index) native;
4368
4369 void collapseToEnd() native;
4370
4371 void collapseToStart() native;
4372
4373 bool containsNode(_NodeJs node, bool allowPartial) native;
4374
4375 void deleteFromDocument() native;
4376
4377 void empty() native;
4378
4379 void extend(_NodeJs node, int offset) native;
4380
4381 _RangeJs getRangeAt(int index) native;
4382
4383 void modify(String alter, String direction, String granularity) native;
4384
4385 void removeAllRanges() native;
4386
4387 void selectAllChildren(_NodeJs node) native;
4388
4389 void setBaseAndExtent(_NodeJs baseNode, int baseOffset, _NodeJs extentNode, in t extentOffset) native;
4390
4391 void setPosition(_NodeJs node, int offset) native;
4392
4393 String toString() native;
4394 }
4395
4396 class _DOMSettableTokenListJs extends _DOMTokenListJs implements DOMSettableToke nList native "*DOMSettableTokenList" {
4397
4398 String value;
4399 }
4400
4401 class _DOMTokenListJs implements DOMTokenList native "*DOMTokenList" {
4402
4403 final int length;
4404
4405 void add(String token) native;
4406
4407 bool contains(String token) native;
4408
4409 String item(int index) native;
4410
4411 void remove(String token) native;
4412
4413 String toString() native;
4414
4415 bool toggle(String token) native;
4416 }
4417
4418 class _DOMURLJs implements DOMURL native "*DOMURL" {
4419
4420 String createObjectURL(_BlobJs blob) native;
4421
4422 void revokeObjectURL(String url) native;
4423 }
4424
4425 class _DataTransferItemJs implements DataTransferItem native "*DataTransferItem" {
4426
4427 final String kind;
4428
4429 final String type;
4430
4431 _BlobJs getAsFile() native;
4432
4433 void getAsString(StringCallback callback) native;
4434 }
4435
4436 class _DataTransferItemListJs implements DataTransferItemList native "*DataTrans ferItemList" {
4437
4438 final int length;
4439
4440 void add(var data_OR_file, [String type = null]) native;
4441
4442 void clear() native;
4443
4444 _DataTransferItemJs item(int index) native;
4445 }
4446
4447 class _DataViewJs extends _ArrayBufferViewJs implements DataView native "*DataVi ew" {
4448
4449 num getFloat32(int byteOffset, [bool littleEndian = null]) native;
4450
4451 num getFloat64(int byteOffset, [bool littleEndian = null]) native;
4452
4453 int getInt16(int byteOffset, [bool littleEndian = null]) native;
4454
4455 int getInt32(int byteOffset, [bool littleEndian = null]) native;
4456
4457 Object getInt8() native;
4458
4459 int getUint16(int byteOffset, [bool littleEndian = null]) native;
4460
4461 int getUint32(int byteOffset, [bool littleEndian = null]) native;
4462
4463 Object getUint8() native;
4464
4465 void setFloat32(int byteOffset, num value, [bool littleEndian = null]) native;
4466
4467 void setFloat64(int byteOffset, num value, [bool littleEndian = null]) native;
4468
4469 void setInt16(int byteOffset, int value, [bool littleEndian = null]) native;
4470
4471 void setInt32(int byteOffset, int value, [bool littleEndian = null]) native;
4472
4473 void setInt8() native;
4474
4475 void setUint16(int byteOffset, int value, [bool littleEndian = null]) native;
4476
4477 void setUint32(int byteOffset, int value, [bool littleEndian = null]) native;
4478
4479 void setUint8() native;
4480 }
4481
4482 class _DatabaseJs implements Database native "*Database" {
4483
4484 final String version;
4485
4486 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba ck successCallback = null]) native;
4487
4488 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall back errorCallback = null, VoidCallback successCallback = null]) native;
4489
4490 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback = null, VoidCallback successCallback = null]) native;
4491 }
4492
4493 class _DatabaseSyncJs implements DatabaseSync native "*DatabaseSync" {
4494
4495 final String lastErrorMessage;
4496
4497 final String version;
4498
4499 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa llback callback = null]) native;
4500
4501 void readTransaction(SQLTransactionSyncCallback callback) native;
4502
4503 void transaction(SQLTransactionSyncCallback callback) native;
4504 }
4505
4506 class _DedicatedWorkerContextJs extends _WorkerContextJs implements DedicatedWor kerContext native "*DedicatedWorkerContext" {
4507
4508 EventListener onmessage;
4509
4510 void postMessage(Object message, [List messagePorts = null]) native;
4511
4512 void webkitPostMessage(Object message, [List transferList = null]) native;
4513 }
4514
4515 class _DelayNodeJs extends _AudioNodeJs implements DelayNode native "*DelayNode" {
4516
4517 final _AudioParamJs delayTime;
4518 }
4519
4520 class _DetailsElementJs extends _ElementJs implements DetailsElement native "*HT MLDetailsElement" {
4521
4522 bool open;
4523 }
4524
4525 class _DeviceMotionEventJs extends _EventJs implements DeviceMotionEvent native "*DeviceMotionEvent" {
4526
4527 final num interval;
4528 }
4529
4530 class _DeviceOrientationEventJs extends _EventJs implements DeviceOrientationEve nt native "*DeviceOrientationEvent" {
4531
4532 final bool absolute;
4533
4534 final num alpha;
4535
4536 final num beta;
4537
4538 final num gamma;
4539
4540 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu m alpha, num beta, num gamma, bool absolute) native;
4541 }
4542
4543 class _DirectoryElementJs extends _ElementJs implements DirectoryElement native "*HTMLDirectoryElement" {
4544
4545 bool compact;
4546 }
4547
4548 class _DirectoryEntryJs extends _EntryJs implements DirectoryEntry native "*Dire ctoryEntry" {
4549
4550 _DirectoryReaderJs createReader() native;
4551
4552 void getDirectory(String path, [Object flags = null, EntryCallback successCall back = null, ErrorCallback errorCallback = null]) native;
4553
4554 void getFile(String path, [Object flags = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) native;
4555
4556 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack = null]) native;
4557 }
4558
4559 class _DirectoryEntrySyncJs extends _EntrySyncJs implements DirectoryEntrySync n ative "*DirectoryEntrySync" {
4560
4561 _DirectoryReaderSyncJs createReader() native;
4562
4563 _DirectoryEntrySyncJs getDirectory(String path, Object flags) native;
4564
4565 _FileEntrySyncJs getFile(String path, Object flags) native;
4566
4567 void removeRecursively() native;
4568 }
4569
4570 class _DirectoryReaderJs implements DirectoryReader native "*DirectoryReader" {
4571
4572 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback = null]) native;
4573 }
4574
4575 class _DirectoryReaderSyncJs implements DirectoryReaderSync native "*DirectoryRe aderSync" {
4576
4577 _EntryArraySyncJs readEntries() native;
4578 }
4579
4580 class _DivElementJs extends _ElementJs implements DivElement native "*HTMLDivEle ment" {
4581
4582 String align;
4583 }
4584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4585 // for details. All rights reserved. Use of this source code is governed by a
4586 // BSD-style license that can be found in the LICENSE file.
4587
4588 class _DocumentJs extends _ElementJs
4589 implements Document
4590 native "*HTMLHtmlElement" {
4591
4592 _ElementJs get activeElement() native "return this.parentNode.activeElement;";
4593
4594 _ElementJs get body() native "return this.parentNode.body;";
4595
4596 void set body(_ElementJs value) native "this.parentNode.body = value;";
4597
4598 String get charset() native "return this.parentNode.charset;";
4599
4600 void set charset(String value) native "this.parentNode.charset = value;";
4601
4602 String get cookie() native "return this.parentNode.cookie;";
4603
4604 void set cookie(String value) native "this.parentNode.cookie = value;";
4605
4606 _WindowJs get defaultView() native "return this.parentNode.defaultView;";
4607
4608 String get domain() native "return this.parentNode.domain;";
4609
4610 _HeadElementJs get head() native "return this.parentNode.head;";
4611
4612 String get lastModified() native "return this.parentNode.lastModified;";
4613
4614 String get preferredStylesheetSet() native "return this.parentNode.preferredSt ylesheetSet;";
4615
4616 String get readyState() native "return this.parentNode.readyState;";
4617
4618 String get referrer() native "return this.parentNode.referrer;";
4619
4620 String get selectedStylesheetSet() native "return this.parentNode.selectedStyl esheetSet;";
4621
4622 void set selectedStylesheetSet(String value) native "this.parentNode.selectedS tylesheetSet = value;";
4623
4624 _StyleSheetListJs get styleSheets() native "return this.parentNode.styleSheets ;";
4625
4626 _ElementJs get webkitCurrentFullScreenElement() native "return this.parentNode .webkitCurrentFullScreenElement;";
4627
4628 bool get webkitFullScreenKeyboardInputAllowed() native "return this.parentNode .webkitFullScreenKeyboardInputAllowed;";
4629
4630 bool get webkitHidden() native "return this.parentNode.webkitHidden;";
4631
4632 bool get webkitIsFullScreen() native "return this.parentNode.webkitIsFullScree n;";
4633
4634 String get webkitVisibilityState() native "return this.parentNode.webkitVisibi lityState;";
4635
4636 _DocumentEventsImpl get on() =>
4637 new _DocumentEventsImpl(_jsDocument);
4638
4639 _NodeJs adoptNode(_NodeJs source) native "return this.parentNode.adoptNode(sou rce);";
4640
4641 void captureEvents() native "this.parentNode.captureEvents();";
4642
4643 _RangeJs caretRangeFromPoint(int x, int y) native "return this.parentNode.care tRangeFromPoint(x, y);";
4644
4645 void clear() native "this.parentNode.clear();";
4646
4647 void close() native "this.parentNode.close();";
4648
4649 _AttrJs createAttribute(String name) native "return this.parentNode.createAttr ibute(name);";
4650
4651 _AttrJs createAttributeNS(String namespaceURI, String qualifiedName) native "r eturn this.parentNode.createAttributeNS(namespaceURI, qualifiedName);";
4652
4653 _CDATASectionJs createCDATASection(String data) native "return this.parentNode .createCDATASection(data);";
4654
4655 _CommentJs createComment(String data) native "return this.parentNode.createCom ment(data);";
4656
4657 _DocumentFragmentJs createDocumentFragment() native "return this.parentNode.cr eateDocumentFragment();";
4658
4659 _ElementJs _createElement(String tagName) native "return this.parentNode.creat eElement(tagName);";
4660
4661 _ElementJs createElementNS(String namespaceURI, String qualifiedName) native " return this.parentNode.createElementNS(namespaceURI, qualifiedName);";
4662
4663 _EntityReferenceJs createEntityReference(String name) native "return this.pare ntNode.createEntityReference(name);";
4664
4665 _EventJs _createEvent(String eventType) native "return this.parentNode.createE vent(eventType);";
4666
4667 _XPathExpressionJs createExpression(String expression, _XPathNSResolverJs reso lver) native "return this.parentNode.createExpression(expression, resolver);";
4668
4669 _XPathNSResolverJs createNSResolver(_NodeJs nodeResolver) native "return this. parentNode.createNSResolver(nodeResolver);";
4670
4671 _NodeIteratorJs createNodeIterator(_NodeJs root, int whatToShow, _NodeFilterJs filter, bool expandEntityReferences) native "return this.parentNode.createNodeI terator(root, whatToShow, filter, expandEntityReferences);";
4672
4673 _ProcessingInstructionJs createProcessingInstruction(String target, String dat a) native "return this.parentNode.createProcessingInstruction(target, data);";
4674
4675 _RangeJs createRange() native "return this.parentNode.createRange();";
4676
4677 _TextJs createTextNode(String data) native "return this.parentNode.createTextN ode(data);";
4678
4679 _TouchJs createTouch(_WindowJs window, _EventTargetJs target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRad iusY, num webkitRotationAngle, num webkitForce) native "return this.parentNode.c reateTouch(window, target, identifier, pageX, pageY, screenX, screenY, webkitRad iusX, webkitRadiusY, webkitRotationAngle, webkitForce);";
4680
4681 _TouchListJs createTouchList() native "return this.parentNode.createTouchList( );";
4682
4683 _TreeWalkerJs createTreeWalker(_NodeJs root, int whatToShow, _NodeFilterJs fil ter, bool expandEntityReferences) native "return this.parentNode.createTreeWalke r(root, whatToShow, filter, expandEntityReferences);";
4684
4685 _ElementJs elementFromPoint(int x, int y) native "return this.parentNode.eleme ntFromPoint(x, y);";
4686
4687 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv erJs resolver, int type, _XPathResultJs inResult) native "return this.parentNode .evaluate(expression, contextNode, resolver, type, inResult);";
4688
4689 bool execCommand(String command, bool userInterface, String value) native "ret urn this.parentNode.execCommand(command, userInterface, value);";
4690
4691 Object getCSSCanvasContext(String contextId, String name, int width, int heigh t) native "return this.parentNode.getCSSCanvasContext(contextId, name, width, he ight);";
4692
4693 _ElementJs getElementById(String elementId) native "return this.parentNode.get ElementById(elementId);";
4694
4695 _NodeListJs getElementsByClassName(String tagname) native "return this.parentN ode.getElementsByClassName(tagname);";
4696
4697 _NodeListJs getElementsByName(String elementName) native "return this.parentNo de.getElementsByName(elementName);";
4698
4699 _NodeListJs getElementsByTagName(String tagname) native "return this.parentNod e.getElementsByTagName(tagname);";
4700
4701 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati ve "return this.parentNode.getElementsByTagNameNS(namespaceURI, localName);";
4702
4703 _CSSStyleDeclarationJs getOverrideStyle(_ElementJs element, String pseudoEleme nt) native "return this.parentNode.getOverrideStyle(element, pseudoElement);";
4704
4705 _DOMSelectionJs getSelection() native "return this.parentNode.getSelection();" ;
4706
4707 bool hasFocus() native "return this.parentNode.hasFocus();";
4708
4709 _NodeJs importNode(_NodeJs importedNode, [bool deep = null]) native "return th is.parentNode.importNode(importedNode, deep);";
4710
4711 void open() native "this.parentNode.open();";
4712
4713 bool queryCommandEnabled(String command) native "return this.parentNode.queryC ommandEnabled(command);";
4714
4715 bool queryCommandIndeterm(String command) native "return this.parentNode.query CommandIndeterm(command);";
4716
4717 bool queryCommandState(String command) native "return this.parentNode.queryCom mandState(command);";
4718
4719 bool queryCommandSupported(String command) native "return this.parentNode.quer yCommandSupported(command);";
4720
4721 String queryCommandValue(String command) native "return this.parentNode.queryC ommandValue(command);";
4722
4723 _ElementJs querySelector(String selectors) native "return this.parentNode.quer ySelector(selectors);";
4724
4725 _NodeListJs querySelectorAll(String selectors) native "return this.parentNode. querySelectorAll(selectors);";
4726
4727 void releaseEvents() native "this.parentNode.releaseEvents();";
4728
4729 void webkitCancelFullScreen() native "this.parentNode.webkitCancelFullScreen() ;";
4730
4731 _WebKitNamedFlowJs webkitGetFlowByName(String name) native "return this.parent Node.webkitGetFlowByName(name);";
4732
4733 void write(String text) native "this.parentNode.write(text);";
4734
4735 void writeln(String text) native "this.parentNode.writeln(text);";
4736
4737
4738 // We use the real document rather than the HTMLHtmlElement to make the
4739 // result of query and queryAll less surprising. Note: this means that
4740 // document.query('html') will return the Document.
4741 _ElementJs query(String selectors) native "return this.parentNode.querySelecto r(selectors);";
4742 ElementList queryAll(String selectors) native "return this.parentNode.querySel ectorAll(selectors);";
4743
4744 // TODO(jacobr): remove these methods and let them be generated automatically
4745 // once dart supports defining fields with the same name in an interface and
4746 // its parent interface.
4747 String get title() native "return this.parentNode.title;";
4748 void set title(String value) native "this.parentNode.title = value;";
4749
4750
4751 // For efficiency and simplicity, we always use the HtmlElement as the
4752 // Document but sometimes internally we need the real JS document object.
4753 _NodeJs get _jsDocument() native "return this.parentNode;";
4754
4755 // The document doesn't have a parent element.
4756 _ElementJs get parent() => null;
4757 }
4758
4759 // This class should not be externally visible. If a user ever gets access to
4760 // a _SecretHtmlDocumentJs object that is a bug. This object is hidden by
4761 // adding checks to all methods that could an HTMLDocument. We believe that
4762 // list is limited to Event.target, and HTMLHtmlElement.parent.
4763 class _SecretHtmlDocumentJs extends _NodeJs implements Node
4764 native "*HTMLDocument" {
4765 _DocumentJs get _documentElement() native "return this.documentElement;";
4766 }
4767
4768 EventTarget _FixHtmlDocumentReference(EventTarget eventTarget) {
4769 if (eventTarget is _SecretHtmlDocumentJs) {
4770 _SecretHtmlDocumentJs secretDocument = eventTarget;
4771 return secretDocument._documentElement;
4772 } else {
4773 return eventTarget;
4774 }
4775 }
4776 class _DocumentEventsImpl extends _ElementEventsImpl implements DocumentEvents {
4777 _DocumentEventsImpl(_ptr) : super(_ptr);
4778
4779 EventListenerList get abort() => _get('abort');
4780
4781 EventListenerList get beforeCopy() => _get('beforecopy');
4782
4783 EventListenerList get beforeCut() => _get('beforecut');
4784
4785 EventListenerList get beforePaste() => _get('beforepaste');
4786
4787 EventListenerList get blur() => _get('blur');
4788
4789 EventListenerList get change() => _get('change');
4790
4791 EventListenerList get click() => _get('click');
4792
4793 EventListenerList get contextMenu() => _get('contextmenu');
4794
4795 EventListenerList get copy() => _get('copy');
4796
4797 EventListenerList get cut() => _get('cut');
4798
4799 EventListenerList get doubleClick() => _get('dblclick');
4800
4801 EventListenerList get drag() => _get('drag');
4802
4803 EventListenerList get dragEnd() => _get('dragend');
4804
4805 EventListenerList get dragEnter() => _get('dragenter');
4806
4807 EventListenerList get dragLeave() => _get('dragleave');
4808
4809 EventListenerList get dragOver() => _get('dragover');
4810
4811 EventListenerList get dragStart() => _get('dragstart');
4812
4813 EventListenerList get drop() => _get('drop');
4814
4815 EventListenerList get error() => _get('error');
4816
4817 EventListenerList get focus() => _get('focus');
4818
4819 EventListenerList get fullScreenChange() => _get('webkitFullScreenChange');
4820
4821 EventListenerList get fullScreenError() => _get('webkitFullScreenError');
4822
4823 EventListenerList get input() => _get('input');
4824
4825 EventListenerList get invalid() => _get('invalid');
4826
4827 EventListenerList get keyDown() => _get('keydown');
4828
4829 EventListenerList get keyPress() => _get('keypress');
4830
4831 EventListenerList get keyUp() => _get('keyup');
4832
4833 EventListenerList get load() => _get('load');
4834
4835 EventListenerList get mouseDown() => _get('mousedown');
4836
4837 EventListenerList get mouseMove() => _get('mousemove');
4838
4839 EventListenerList get mouseOut() => _get('mouseout');
4840
4841 EventListenerList get mouseOver() => _get('mouseover');
4842
4843 EventListenerList get mouseUp() => _get('mouseup');
4844
4845 EventListenerList get mouseWheel() => _get('mousewheel');
4846
4847 EventListenerList get paste() => _get('paste');
4848
4849 EventListenerList get readyStateChange() => _get('readystatechange');
4850
4851 EventListenerList get reset() => _get('reset');
4852
4853 EventListenerList get scroll() => _get('scroll');
4854
4855 EventListenerList get search() => _get('search');
4856
4857 EventListenerList get select() => _get('select');
4858
4859 EventListenerList get selectStart() => _get('selectstart');
4860
4861 EventListenerList get selectionChange() => _get('selectionchange');
4862
4863 EventListenerList get submit() => _get('submit');
4864
4865 EventListenerList get touchCancel() => _get('touchcancel');
4866
4867 EventListenerList get touchEnd() => _get('touchend');
4868
4869 EventListenerList get touchMove() => _get('touchmove');
4870
4871 EventListenerList get touchStart() => _get('touchstart');
4872 }
4873
4874 class _DocumentFragmentJs extends _NodeJs implements DocumentFragment native "*D ocumentFragment" {
4875
4876 _ElementJs querySelector(String selectors) native;
4877
4878 _NodeListJs querySelectorAll(String selectors) native;
4879 }
4880
4881 class _DocumentTypeJs extends _NodeJs implements DocumentType native "*DocumentT ype" {
4882
4883 final _NamedNodeMapJs entities;
4884
4885 final String internalSubset;
4886
4887 final String name;
4888
4889 final _NamedNodeMapJs notations;
4890
4891 final String publicId;
4892
4893 final String systemId;
4894 }
4895
4896 class _DynamicsCompressorNodeJs extends _AudioNodeJs implements DynamicsCompress orNode native "*DynamicsCompressorNode" {
4897 }
4898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4899 // for details. All rights reserved. Use of this source code is governed by a
4900 // BSD-style license that can be found in the LICENSE file.
4901
4902 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality.
4903 class _ChildrenElementList implements ElementList {
4904 // Raw Element.
4905 final _ElementJs _element;
4906 final _HTMLCollectionJs _childElements;
4907
4908 _ChildrenElementList._wrap(_ElementJs element)
4909 : _childElements = element._children,
4910 _element = element;
4911
4912 List<Element> _toList() {
4913 final output = new List(_childElements.length);
4914 for (int i = 0, len = _childElements.length; i < len; i++) {
4915 output[i] = _childElements[i];
4916 }
4917 return output;
4918 }
4919
4920 _ElementJs get first() {
4921 return _element._firstElementChild;
4922 }
4923
4924 void forEach(void f(Element element)) {
4925 for (_ElementJs element in _childElements) {
4926 f(element);
4927 }
4928 }
4929
4930 Collection<Element> filter(bool f(Element element)) {
4931 List<Element> output = <Element>[];
4932 forEach((Element element) {
4933 if (f(element)) {
4934 output.add(element);
4935 }
4936 });
4937 return output;
4938 }
4939
4940 bool every(bool f(Element element)) {
4941 for(Element element in this) {
4942 if (!f(element)) {
4943 return false;
4944 }
4945 };
4946 return true;
4947 }
4948
4949 bool some(bool f(Element element)) {
4950 for(Element element in this) {
4951 if (f(element)) {
4952 return true;
4953 }
4954 };
4955 return false;
4956 }
4957
4958 bool isEmpty() {
4959 return _element._firstElementChild !== null;
4960 }
4961
4962 int get length() {
4963 return _childElements.length;
4964 }
4965
4966 _ElementJs operator [](int index) {
4967 return _childElements[index];
4968 }
4969
4970 void operator []=(int index, _ElementJs value) {
4971 _element._replaceChild(value, _childElements.item(index));
4972 }
4973
4974 void set length(int newLength) {
4975 // TODO(jacobr): remove children when length is reduced.
4976 throw const UnsupportedOperationException('');
4977 }
4978
4979 Element add(_ElementJs value) {
4980 _element._appendChild(value);
4981 return value;
4982 }
4983
4984 Element addLast(_ElementJs value) => add(value);
4985
4986 Iterator<Element> iterator() => _toList().iterator();
4987
4988 void addAll(Collection<_ElementJs> collection) {
4989 for (_ElementJs element in collection) {
4990 _element._appendChild(element);
4991 }
4992 }
4993
4994 void sort(int compare(Element a, Element b)) {
4995 throw const UnsupportedOperationException('TODO(jacobr): should we impl?');
4996 }
4997
4998 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
4999 throw 'Not impl yet. todo(jacobr)';
5000 }
5001
5002 void setRange(int start, int length, List from, [int startFrom = 0]) {
5003 throw const NotImplementedException();
5004 }
5005
5006 void removeRange(int start, int length) {
5007 throw const NotImplementedException();
5008 }
5009
5010 void insertRange(int start, int length, [initialValue = null]) {
5011 throw const NotImplementedException();
5012 }
5013
5014 List getRange(int start, int length) {
5015 throw const NotImplementedException();
5016 }
5017
5018 int indexOf(Element element, [int start = 0]) {
5019 return _Lists.indexOf(this, element, start, this.length);
5020 }
5021
5022 int lastIndexOf(Element element, [int start = null]) {
5023 if (start === null) start = length - 1;
5024 return _Lists.lastIndexOf(this, element, start);
5025 }
5026
5027 void clear() {
5028 // It is unclear if we want to keep non element nodes?
5029 _element.text = '';
5030 }
5031
5032 Element removeLast() {
5033 final last = this.last();
5034 if (last != null) {
5035 _element._removeChild(last);
5036 }
5037 return last;
5038 }
5039
5040 Element last() {
5041 return _element.lastElementChild;
5042 }
5043 }
5044
5045 class ElementAttributeMap implements Map<String, String> {
5046
5047 final _ElementJs _element;
5048
5049 ElementAttributeMap._wrap(this._element);
5050
5051 bool containsValue(String value) {
5052 final attributes = _element.attributes;
5053 for (int i = 0, len = attributes.length; i < len; i++) {
5054 if(value == attributes.item(i).value) {
5055 return true;
5056 }
5057 }
5058 return false;
5059 }
5060
5061 bool containsKey(String key) {
5062 return _element._hasAttribute(key);
5063 }
5064
5065 String operator [](String key) {
5066 return _element._getAttribute(key);
5067 }
5068
5069 void operator []=(String key, String value) {
5070 _element._setAttribute(key, value);
5071 }
5072
5073 String putIfAbsent(String key, String ifAbsent()) {
5074 if (!containsKey(key)) {
5075 this[key] = ifAbsent();
5076 }
5077 }
5078
5079 String remove(String key) {
5080 _element._removeAttribute(key);
5081 }
5082
5083 void clear() {
5084 final attributes = _element._attributes;
5085 for (int i = attributes.length - 1; i >= 0; i--) {
5086 remove(attributes.item(i).name);
5087 }
5088 }
5089
5090 void forEach(void f(String key, String value)) {
5091 final attributes = _element.attributes;
5092 for (int i = 0, len = attributes.length; i < len; i++) {
5093 final item = attributes.item(i);
5094 f(item.name, item.value);
5095 }
5096 }
5097
5098 Collection<String> getKeys() {
5099 // TODO(jacobr): generate a lazy collection instead.
5100 final attributes = _element.attributes;
5101 final keys = new List<String>(attributes.length);
5102 for (int i = 0, len = attributes.length; i < len; i++) {
5103 keys[i] = attributes.item(i).name;
5104 }
5105 return keys;
5106 }
5107
5108 Collection<String> getValues() {
5109 // TODO(jacobr): generate a lazy collection instead.
5110 final attributes = _element.attributes;
5111 final values = new List<String>(attributes.length);
5112 for (int i = 0, len = attributes.length; i < len; i++) {
5113 values[i] = attributes.item(i).value;
5114 }
5115 return values;
5116 }
5117
5118 /**
5119 * The number of {key, value} pairs in the map.
5120 */
5121 int get length() {
5122 return _element._attributes.length;
5123 }
5124
5125 /**
5126 * Returns true if there is no {key, value} pair in the map.
5127 */
5128 bool isEmpty() {
5129 return length == 0;
5130 }
5131 }
5132
5133 class _SimpleClientRect implements ClientRect {
5134 final num left;
5135 final num top;
5136 final num width;
5137 final num height;
5138 num get right() => left + width;
5139 num get bottom() => top + height;
5140
5141 const _SimpleClientRect(this.left, this.top, this.width, this.height);
5142
5143 bool operator ==(ClientRect other) {
5144 return other !== null && left == other.left && top == other.top
5145 && width == other.width && height == other.height;
5146 }
5147
5148 String toString() => "($left, $top, $width, $height)";
5149 }
5150
5151 // TODO(jacobr): we cannot currently be lazy about calculating the client
5152 // rects as we must perform all measurement queries at a safe point to avoid
5153 // triggering unneeded layouts.
5154 /**
5155 * All your element measurement needs in one place
5156 * @domName none
5157 */
5158 class _ElementRectImpl implements ElementRect {
5159 final ClientRect client;
5160 final ClientRect offset;
5161 final ClientRect scroll;
5162
5163 // TODO(jacobr): should we move these outside of ElementRect to avoid the
5164 // overhead of computing them every time even though they are rarely used.
5165 final _ClientRectJs _boundingClientRect;
5166 final _ClientRectListJs _clientRects;
5167
5168 _ElementRectImpl(_ElementJs element) :
5169 client = new _SimpleClientRect(element._clientLeft,
5170 element._clientTop,
5171 element._clientWidth,
5172 element._clientHeight),
5173 offset = new _SimpleClientRect(element._offsetLeft,
5174 element._offsetTop,
5175 element._offsetWidth,
5176 element._offsetHeight),
5177 scroll = new _SimpleClientRect(element._scrollLeft,
5178 element._scrollTop,
5179 element._scrollWidth,
5180 element._scrollHeight),
5181 _boundingClientRect = element.getBoundingClientRect(),
5182 _clientRects = element.getClientRects();
5183
5184 _ClientRectJs get bounding() => _boundingClientRect;
5185
5186 // TODO(jacobr): cleanup.
5187 List<ClientRect> get clientRects() {
5188 final out = new List(_clientRects.length);
5189 for (num i = 0; i < _clientRects.length; i++) {
5190 out[i] = _clientRects.item(i);
5191 }
5192 return out;
5193 }
5194 }
5195
5196 final _START_TAG_REGEXP = const RegExp('<(\\w+)');
5197
5198 class _ElementJs extends _NodeJs implements Element native "*Element" {
5199
5200 static final _CUSTOM_PARENT_TAG_MAP = const {
5201 'body' : 'html',
5202 'head' : 'html',
5203 'caption' : 'table',
5204 'td': 'tr',
5205 'tbody': 'table',
5206 'colgroup': 'table',
5207 'col' : 'colgroup',
5208 'tr' : 'tbody',
5209 'tbody' : 'table',
5210 'tfoot' : 'table',
5211 'thead' : 'table',
5212 'track' : 'audio',
5213 };
5214
5215 /** @domName Document.createElement */
5216 factory Element.html(String html) {
5217 // TODO(jacobr): this method can be made more robust and performant.
5218 // 1) Cache the dummy parent elements required to use innerHTML rather than
5219 // creating them every call.
5220 // 2) Verify that the html does not contain leading or trailing text nodes.
5221 // 3) Verify that the html does not contain both <head> and <body> tags.
5222 // 4) Detatch the created element from its dummy parent.
5223 String parentTag = 'div';
5224 String tag;
5225 final match = _START_TAG_REGEXP.firstMatch(html);
5226 if (match !== null) {
5227 tag = match.group(1).toLowerCase();
5228 if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) {
5229 parentTag = _CUSTOM_PARENT_TAG_MAP[tag];
5230 }
5231 }
5232 _ElementJs temp = _document._createElement(parentTag);
5233 temp.innerHTML = html;
5234
5235 if (temp._childElementCount == 1) {
5236 return temp._firstElementChild;
5237 } else if (parentTag == 'html' && temp._childElementCount == 2) {
5238 // Work around for edge case in WebKit and possibly other browsers where
5239 // both body and head elements are created even though the inner html
5240 // only contains a head or body element.
5241 return temp.elements[tag == 'head' ? 0 : 1];
5242 } else {
5243 throw new IllegalArgumentException('HTML had ${temp._childElementCount} ' +
5244 'top level elements but 1 expected');
5245 }
5246 }
5247
5248 /** @domName Document.createElement */
5249 factory Element.tag(String tag) {
5250 return _document._createElement(tag);
5251 }
5252
5253 // TODO(jacobr): caching these may hurt performance.
5254 ElementAttributeMap _elementAttributeMap;
5255 _CssClassSet _cssClassSet;
5256 _DataAttributeMap _dataAttributes;
5257
5258 // TODO(jacobr): remove these methods and let them be generated automatically
5259 // once dart supports defining fields with the same name in an interface and
5260 // its parent interface.
5261 String get title() native "return this.parentNode.title;";
5262 void set title(String value) native "this.parentNode.title = value;";
5263
5264 /**
5265 * @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute,
5266 * Element.removeAttribute
5267 */
5268 Map<String, String> get attributes() {
5269 if (_elementAttributeMap === null) {
5270 _elementAttributeMap = new ElementAttributeMap._wrap(this);
5271 }
5272 return _elementAttributeMap;
5273 }
5274
5275 void set attributes(Map<String, String> value) {
5276 Map<String, String> attributes = this.attributes;
5277 attributes.clear();
5278 for (String key in value.getKeys()) {
5279 attributes[key] = value[key];
5280 }
5281 }
5282
5283 void set elements(Collection<Element> value) {
5284 final elements = this.elements;
5285 elements.clear();
5286 elements.addAll(value);
5287 }
5288
5289 /**
5290 * @domName childElementCount, firstElementChild, lastElementChild,
5291 * children, Node.nodes.add
5292 */
5293 ElementList get elements() => new _ChildrenElementList._wrap(this);
5294
5295 /** @domName querySelector, Document.getElementById */
5296 Element query(String selectors) native "return this.querySelector(selectors);" ;
5297
5298 /**
5299 * @domName querySelectorAll, getElementsByClassName, getElementsByTagName,
5300 * getElementsByTagNameNS
5301 */
5302 ElementList queryAll(String selectors) native "return this.querySelectorAll(se lectors);";
5303
5304 /** @domName className, classList */
5305 Set<String> get classes() {
5306 if (_cssClassSet === null) {
5307 _cssClassSet = new _CssClassSet(this);
5308 }
5309 return _cssClassSet;
5310 }
5311
5312 void set classes(Collection<String> value) {
5313 _CssClassSet classSet = classes;
5314 classSet.clear();
5315 classSet.addAll(value);
5316 }
5317
5318 Map<String, String> get dataAttributes() {
5319 if (_dataAttributes === null) {
5320 _dataAttributes = new _DataAttributeMap(attributes);
5321 }
5322 return _dataAttributes;
5323 }
5324
5325 void set dataAttributes(Map<String, String> value) {
5326 Map<String, String> dataAttributes = this.dataAttributes;
5327 dataAttributes.clear();
5328 for (String key in value.getKeys()) {
5329 dataAttributes[key] = value[key];
5330 }
5331 }
5332
5333 bool matchesSelector(String selectors) native "return this.webkitMatchesSelect or(selectors)";
5334
5335 /**
5336 * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth,
5337 * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft,
5338 * scrollHeight, scrollWidth, scrollTop, scrollLeft
5339 */
5340 Future<ElementRect> get rect() {
5341 return _createMeasurementFuture(
5342 () => new _ElementRectImpl(this),
5343 new Completer<ElementRect>());
5344 }
5345
5346 /** @domName Window.getComputedStyle */
5347 Future<CSSStyleDeclaration> get computedStyle() {
5348 // TODO(jacobr): last param should be null, see b/5045788
5349 return getComputedStyle('');
5350 }
5351
5352 /** @domName Window.getComputedStyle */
5353 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) {
5354 return _createMeasurementFuture(() =>
5355 _window._getComputedStyle(this, pseudoElement),
5356 new Completer<CSSStyleDeclaration>());
5357 }
5358
5359 _ElementJs clone(bool deep) native;
5360
5361 static final int ALLOW_KEYBOARD_INPUT = 1;
5362
5363 int get _childElementCount() native "return this.childElementCount;";
5364
5365 _HTMLCollectionJs get _children() native "return this.children;";
5366
5367 final _DOMTokenListJs classList;
5368
5369 String get _className() native "return this.className;";
5370
5371 void set _className(String value) native "this.className = value;";
5372
5373 int get _clientHeight() native "return this.clientHeight;";
5374
5375 int get _clientLeft() native "return this.clientLeft;";
5376
5377 int get _clientTop() native "return this.clientTop;";
5378
5379 int get _clientWidth() native "return this.clientWidth;";
5380
5381 String contentEditable;
5382
5383 String dir;
5384
5385 bool draggable;
5386
5387 _ElementJs get _firstElementChild() native "return this.firstElementChild;";
5388
5389 bool hidden;
5390
5391 String id;
5392
5393 String innerHTML;
5394
5395 final bool isContentEditable;
5396
5397 String lang;
5398
5399 final _ElementJs lastElementChild;
5400
5401 final _ElementJs nextElementSibling;
5402
5403 int get _offsetHeight() native "return this.offsetHeight;";
5404
5405 int get _offsetLeft() native "return this.offsetLeft;";
5406
5407 final _ElementJs offsetParent;
5408
5409 int get _offsetTop() native "return this.offsetTop;";
5410
5411 int get _offsetWidth() native "return this.offsetWidth;";
5412
5413 final String outerHTML;
5414
5415 final _ElementJs previousElementSibling;
5416
5417 int get _scrollHeight() native "return this.scrollHeight;";
5418
5419 int get _scrollLeft() native "return this.scrollLeft;";
5420
5421 void set _scrollLeft(int value) native "this.scrollLeft = value;";
5422
5423 int get _scrollTop() native "return this.scrollTop;";
5424
5425 void set _scrollTop(int value) native "this.scrollTop = value;";
5426
5427 int get _scrollWidth() native "return this.scrollWidth;";
5428
5429 bool spellcheck;
5430
5431 final _CSSStyleDeclarationJs style;
5432
5433 int tabIndex;
5434
5435 final String tagName;
5436
5437 String webkitdropzone;
5438
5439 _ElementEventsImpl get on() =>
5440 new _ElementEventsImpl(this);
5441
5442 void blur() native;
5443
5444 void focus() native;
5445
5446 String _getAttribute(String name) native "return this.getAttribute(name);";
5447
5448 _ClientRectJs getBoundingClientRect() native;
5449
5450 _ClientRectListJs getClientRects() native;
5451
5452 _NodeListJs getElementsByClassName(String name) native;
5453
5454 _NodeListJs getElementsByTagName(String name) native;
5455
5456 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati ve;
5457
5458 bool _hasAttribute(String name) native "return this.hasAttribute(name);";
5459
5460 _ElementJs insertAdjacentElement(String where, _ElementJs element) native;
5461
5462 void insertAdjacentHTML(String where, String html) native;
5463
5464 void insertAdjacentText(String where, String text) native;
5465
5466 _ElementJs querySelector(String selectors) native;
5467
5468 _NodeListJs querySelectorAll(String selectors) native;
5469
5470 void _removeAttribute(String name) native "this.removeAttribute(name);";
5471
5472 void scrollByLines(int lines) native;
5473
5474 void scrollByPages(int pages) native;
5475
5476 void scrollIntoView([bool alignWithTop = null]) native;
5477
5478 void scrollIntoViewIfNeeded([bool centerIfNeeded = null]) native;
5479
5480 void _setAttribute(String name, String value) native "this.setAttribute(name, value);";
5481
5482 bool webkitMatchesSelector(String selectors) native;
5483
5484 void webkitRequestFullScreen(int flags) native;
5485
5486 }
5487
5488 class _ElementEventsImpl extends _EventsImpl implements ElementEvents {
5489 _ElementEventsImpl(_ptr) : super(_ptr);
5490
5491 EventListenerList get abort() => _get('abort');
5492
5493 EventListenerList get beforeCopy() => _get('beforecopy');
5494
5495 EventListenerList get beforeCut() => _get('beforecut');
5496
5497 EventListenerList get beforePaste() => _get('beforepaste');
5498
5499 EventListenerList get blur() => _get('blur');
5500
5501 EventListenerList get change() => _get('change');
5502
5503 EventListenerList get click() => _get('click');
5504
5505 EventListenerList get contextMenu() => _get('contextmenu');
5506
5507 EventListenerList get copy() => _get('copy');
5508
5509 EventListenerList get cut() => _get('cut');
5510
5511 EventListenerList get doubleClick() => _get('dblclick');
5512
5513 EventListenerList get drag() => _get('drag');
5514
5515 EventListenerList get dragEnd() => _get('dragend');
5516
5517 EventListenerList get dragEnter() => _get('dragenter');
5518
5519 EventListenerList get dragLeave() => _get('dragleave');
5520
5521 EventListenerList get dragOver() => _get('dragover');
5522
5523 EventListenerList get dragStart() => _get('dragstart');
5524
5525 EventListenerList get drop() => _get('drop');
5526
5527 EventListenerList get error() => _get('error');
5528
5529 EventListenerList get focus() => _get('focus');
5530
5531 EventListenerList get fullScreenChange() => _get('webkitFullScreenChange');
5532
5533 EventListenerList get fullScreenError() => _get('webkitFullScreenError');
5534
5535 EventListenerList get input() => _get('input');
5536
5537 EventListenerList get invalid() => _get('invalid');
5538
5539 EventListenerList get keyDown() => _get('keydown');
5540
5541 EventListenerList get keyPress() => _get('keypress');
5542
5543 EventListenerList get keyUp() => _get('keyup');
5544
5545 EventListenerList get load() => _get('load');
5546
5547 EventListenerList get mouseDown() => _get('mousedown');
5548
5549 EventListenerList get mouseMove() => _get('mousemove');
5550
5551 EventListenerList get mouseOut() => _get('mouseout');
5552
5553 EventListenerList get mouseOver() => _get('mouseover');
5554
5555 EventListenerList get mouseUp() => _get('mouseup');
5556
5557 EventListenerList get mouseWheel() => _get('mousewheel');
5558
5559 EventListenerList get paste() => _get('paste');
5560
5561 EventListenerList get reset() => _get('reset');
5562
5563 EventListenerList get scroll() => _get('scroll');
5564
5565 EventListenerList get search() => _get('search');
5566
5567 EventListenerList get select() => _get('select');
5568
5569 EventListenerList get selectStart() => _get('selectstart');
5570
5571 EventListenerList get submit() => _get('submit');
5572
5573 EventListenerList get touchCancel() => _get('touchcancel');
5574
5575 EventListenerList get touchEnd() => _get('touchend');
5576
5577 EventListenerList get touchLeave() => _get('touchleave');
5578
5579 EventListenerList get touchMove() => _get('touchmove');
5580
5581 EventListenerList get touchStart() => _get('touchstart');
5582
5583 EventListenerList get transitionEnd() => _get('webkitTransitionEnd');
5584 }
5585
5586 class _ElementTimeControlJs implements ElementTimeControl native "*ElementTimeCo ntrol" {
5587
5588 void beginElement() native;
5589
5590 void beginElementAt(num offset) native;
5591
5592 void endElement() native;
5593
5594 void endElementAt(num offset) native;
5595 }
5596
5597 class _ElementTraversalJs implements ElementTraversal native "*ElementTraversal" {
5598
5599 final int childElementCount;
5600
5601 final _ElementJs firstElementChild;
5602
5603 final _ElementJs lastElementChild;
5604
5605 final _ElementJs nextElementSibling;
5606
5607 final _ElementJs previousElementSibling;
5608 }
5609
5610 class _EmbedElementJs extends _ElementJs implements EmbedElement native "*HTMLEm bedElement" {
5611
5612 String align;
5613
5614 String height;
5615
5616 String name;
5617
5618 String src;
5619
5620 String type;
5621
5622 String width;
5623 }
5624
5625 class _EntityJs extends _NodeJs implements Entity native "*Entity" {
5626
5627 final String notationName;
5628
5629 final String publicId;
5630
5631 final String systemId;
5632 }
5633
5634 class _EntityReferenceJs extends _NodeJs implements EntityReference native "*Ent ityReference" {
5635 }
5636
5637 class _EntryJs implements Entry native "*Entry" {
5638
5639 final _DOMFileSystemJs filesystem;
5640
5641 final String fullPath;
5642
5643 final bool isDirectory;
5644
5645 final bool isFile;
5646
5647 final String name;
5648
5649 void copyTo(_DirectoryEntryJs parent, [String name = null, EntryCallback succe ssCallback = null, ErrorCallback errorCallback = null]) native;
5650
5651 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac k = null]) native;
5652
5653 void getParent([EntryCallback successCallback = null, ErrorCallback errorCallb ack = null]) native;
5654
5655 void moveTo(_DirectoryEntryJs parent, [String name = null, EntryCallback succe ssCallback = null, ErrorCallback errorCallback = null]) native;
5656
5657 void remove(VoidCallback successCallback, [ErrorCallback errorCallback = null] ) native;
5658
5659 String toURL() native;
5660 }
5661
5662 class _EntryArrayJs implements EntryArray native "*EntryArray" {
5663
5664 final int length;
5665
5666 _EntryJs item(int index) native;
5667 }
5668
5669 class _EntryArraySyncJs implements EntryArraySync native "*EntryArraySync" {
5670
5671 final int length;
5672
5673 _EntrySyncJs item(int index) native;
5674 }
5675
5676 class _EntrySyncJs implements EntrySync native "*EntrySync" {
5677
5678 final _DOMFileSystemSyncJs filesystem;
5679
5680 final String fullPath;
5681
5682 final bool isDirectory;
5683
5684 final bool isFile;
5685
5686 final String name;
5687
5688 _EntrySyncJs copyTo(_DirectoryEntrySyncJs parent, String name) native;
5689
5690 _MetadataJs getMetadata() native;
5691
5692 _DirectoryEntrySyncJs getParent() native;
5693
5694 _EntrySyncJs moveTo(_DirectoryEntrySyncJs parent, String name) native;
5695
5696 void remove() native;
5697
5698 String toURL() native;
5699 }
5700
5701 class _ErrorEventJs extends _EventJs implements ErrorEvent native "*ErrorEvent" {
5702
5703 final String filename;
5704
5705 final int lineno;
5706
5707 final String message;
5708 }
5709 // Copyright (c) 2012, 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 class _EventJs implements Event native "*Event" {
5714
5715 EventTarget get target() => _FixHtmlDocumentReference(_target);
5716 EventTarget get srcElement() => _FixHtmlDocumentReference(_srcElement);
5717 EventTarget get currentTarget() =>
5718 _FixHtmlDocumentReference(_currentTarget);
5719
5720 static final int AT_TARGET = 2;
5721
5722 static final int BLUR = 8192;
5723
5724 static final int BUBBLING_PHASE = 3;
5725
5726 static final int CAPTURING_PHASE = 1;
5727
5728 static final int CHANGE = 32768;
5729
5730 static final int CLICK = 64;
5731
5732 static final int DBLCLICK = 128;
5733
5734 static final int DRAGDROP = 2048;
5735
5736 static final int FOCUS = 4096;
5737
5738 static final int KEYDOWN = 256;
5739
5740 static final int KEYPRESS = 1024;
5741
5742 static final int KEYUP = 512;
5743
5744 static final int MOUSEDOWN = 1;
5745
5746 static final int MOUSEDRAG = 32;
5747
5748 static final int MOUSEMOVE = 16;
5749
5750 static final int MOUSEOUT = 8;
5751
5752 static final int MOUSEOVER = 4;
5753
5754 static final int MOUSEUP = 2;
5755
5756 static final int SELECT = 16384;
5757
5758 final bool bubbles;
5759
5760 bool cancelBubble;
5761
5762 final bool cancelable;
5763
5764 final _ClipboardJs clipboardData;
5765
5766 _EventTargetJs get _currentTarget() native "return this.currentTarget;";
5767
5768 final bool defaultPrevented;
5769
5770 final int eventPhase;
5771
5772 bool returnValue;
5773
5774 _EventTargetJs get _srcElement() native "return this.srcElement;";
5775
5776 _EventTargetJs get _target() native "return this.target;";
5777
5778 final int timeStamp;
5779
5780 final String type;
5781
5782 void _initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) na tive "this.initEvent(eventTypeArg, canBubbleArg, cancelableArg);";
5783
5784 void preventDefault() native;
5785
5786 void stopImmediatePropagation() native;
5787
5788 void stopPropagation() native;
5789
5790 }
5791
5792 class _EventExceptionJs implements EventException native "*EventException" {
5793
5794 static final int DISPATCH_REQUEST_ERR = 1;
5795
5796 static final int UNSPECIFIED_EVENT_TYPE_ERR = 0;
5797
5798 final int code;
5799
5800 final String message;
5801
5802 final String name;
5803
5804 String toString() native;
5805 }
5806
5807 class _EventSourceJs implements EventSource native "*EventSource" {
5808
5809 static final int CLOSED = 2;
5810
5811 static final int CONNECTING = 0;
5812
5813 static final int OPEN = 1;
5814
5815 final String URL;
5816
5817 final int readyState;
5818
5819 final String url;
5820
5821 _EventSourceEventsImpl get on() =>
5822 new _EventSourceEventsImpl(this);
5823
5824 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
5825
5826 void close() native;
5827
5828 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);";
5829
5830 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
5831 }
5832
5833 class _EventSourceEventsImpl extends _EventsImpl implements EventSourceEvents {
5834 _EventSourceEventsImpl(_ptr) : super(_ptr);
5835
5836 EventListenerList get error() => _get('error');
5837
5838 EventListenerList get message() => _get('message');
5839
5840 EventListenerList get open() => _get('open');
5841 }
5842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5843 // for details. All rights reserved. Use of this source code is governed by a
5844 // BSD-style license that can be found in the LICENSE file.
5845
5846 class _EventsImpl implements Events {
5847 /* Raw event target. */
5848 // TODO(jacobr): it would be nice if we could specify this as
5849 // _EventTargetJs or EventTarget
5850 final var _ptr;
5851
5852 _EventsImpl(this._ptr);
5853
5854 _EventListenerListImpl operator [](String type) => _get(type.toLowerCase());
5855
5856 _EventListenerListImpl _get(String type) {
5857 return new _EventListenerListImpl(_ptr, type);
5858 }
5859 }
5860
5861 class _EventListenerListImpl implements EventListenerList {
5862
5863 // TODO(jacobr): make this _EventTargetJs
5864 final var _ptr;
5865 final String _type;
5866
5867 _EventListenerListImpl(this._ptr, this._type);
5868
5869 // TODO(jacobr): implement equals.
5870
5871 _EventListenerListImpl add(EventListener listener,
5872 [bool useCapture = false]) {
5873 _add(listener, useCapture);
5874 return this;
5875 }
5876
5877 _EventListenerListImpl remove(EventListener listener,
5878 [bool useCapture = false]) {
5879 _remove(listener, useCapture);
5880 return this;
5881 }
5882
5883 bool dispatch(Event evt) {
5884 // TODO(jacobr): what is the correct behavior here. We could alternately
5885 // force the event to have the expected type.
5886 assert(evt.type == _type);
5887 return _ptr._dispatchEvent(evt);
5888 }
5889
5890 void _add(EventListener listener, bool useCapture) {
5891 _ptr._addEventListener(_type, listener, useCapture);
5892 }
5893
5894 void _remove(EventListener listener, bool useCapture) {
5895 _ptr._removeEventListener(_type, listener, useCapture);
5896 }
5897 }
5898
5899
5900 class _EventTargetJs implements EventTarget native "*EventTarget" {
5901
5902 Events get on() => new _EventsImpl(this);
5903
5904 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
5905
5906 bool _dispatchEvent(_EventJs event) native "return this.dispatchEvent(event);" ;
5907
5908 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
5909
5910 }
5911
5912 class _FieldSetElementJs extends _ElementJs implements FieldSetElement native "* HTMLFieldSetElement" {
5913
5914 final _FormElementJs form;
5915
5916 final String validationMessage;
5917
5918 final _ValidityStateJs validity;
5919
5920 final bool willValidate;
5921
5922 bool checkValidity() native;
5923
5924 void setCustomValidity(String error) native;
5925 }
5926
5927 class _FileJs extends _BlobJs implements File native "*File" {
5928
5929 final String fileName;
5930
5931 final int fileSize;
5932
5933 final Date lastModifiedDate;
5934
5935 final String name;
5936
5937 final String webkitRelativePath;
5938 }
5939
5940 class _FileEntryJs extends _EntryJs implements FileEntry native "*FileEntry" {
5941
5942 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall back = null]) native;
5943
5944 void file(FileCallback successCallback, [ErrorCallback errorCallback = null]) native;
5945 }
5946
5947 class _FileEntrySyncJs extends _EntrySyncJs implements FileEntrySync native "*Fi leEntrySync" {
5948
5949 _FileWriterSyncJs createWriter() native;
5950
5951 _FileJs file() native;
5952 }
5953
5954 class _FileErrorJs implements FileError native "*FileError" {
5955
5956 static final int ABORT_ERR = 3;
5957
5958 static final int ENCODING_ERR = 5;
5959
5960 static final int INVALID_MODIFICATION_ERR = 9;
5961
5962 static final int INVALID_STATE_ERR = 7;
5963
5964 static final int NOT_FOUND_ERR = 1;
5965
5966 static final int NOT_READABLE_ERR = 4;
5967
5968 static final int NO_MODIFICATION_ALLOWED_ERR = 6;
5969
5970 static final int PATH_EXISTS_ERR = 12;
5971
5972 static final int QUOTA_EXCEEDED_ERR = 10;
5973
5974 static final int SECURITY_ERR = 2;
5975
5976 static final int SYNTAX_ERR = 8;
5977
5978 static final int TYPE_MISMATCH_ERR = 11;
5979
5980 final int code;
5981 }
5982
5983 class _FileExceptionJs implements FileException native "*FileException" {
5984
5985 static final int ABORT_ERR = 3;
5986
5987 static final int ENCODING_ERR = 5;
5988
5989 static final int INVALID_MODIFICATION_ERR = 9;
5990
5991 static final int INVALID_STATE_ERR = 7;
5992
5993 static final int NOT_FOUND_ERR = 1;
5994
5995 static final int NOT_READABLE_ERR = 4;
5996
5997 static final int NO_MODIFICATION_ALLOWED_ERR = 6;
5998
5999 static final int PATH_EXISTS_ERR = 12;
6000
6001 static final int QUOTA_EXCEEDED_ERR = 10;
6002
6003 static final int SECURITY_ERR = 2;
6004
6005 static final int SYNTAX_ERR = 8;
6006
6007 static final int TYPE_MISMATCH_ERR = 11;
6008
6009 final int code;
6010
6011 final String message;
6012
6013 final String name;
6014
6015 String toString() native;
6016 }
6017
6018 class _FileListJs implements FileList native "*FileList" {
6019
6020 final int length;
6021
6022 _FileJs item(int index) native;
6023 }
6024
6025 class _FileReaderJs implements FileReader native "*FileReader" {
6026
6027 static final int DONE = 2;
6028
6029 static final int EMPTY = 0;
6030
6031 static final int LOADING = 1;
6032
6033 final _FileErrorJs error;
6034
6035 EventListener onabort;
6036
6037 EventListener onerror;
6038
6039 EventListener onload;
6040
6041 EventListener onloadend;
6042
6043 EventListener onloadstart;
6044
6045 EventListener onprogress;
6046
6047 final int readyState;
6048
6049 final Object result;
6050
6051 void abort() native;
6052
6053 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
6054
6055 bool dispatchEvent(_EventJs evt) native;
6056
6057 void readAsArrayBuffer(_BlobJs blob) native;
6058
6059 void readAsBinaryString(_BlobJs blob) native;
6060
6061 void readAsDataURL(_BlobJs blob) native;
6062
6063 void readAsText(_BlobJs blob, [String encoding = null]) native;
6064
6065 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
6066 }
6067
6068 class _FileReaderSyncJs implements FileReaderSync native "*FileReaderSync" {
6069
6070 _ArrayBufferJs readAsArrayBuffer(_BlobJs blob) native;
6071
6072 String readAsBinaryString(_BlobJs blob) native;
6073
6074 String readAsDataURL(_BlobJs blob) native;
6075
6076 String readAsText(_BlobJs blob, [String encoding = null]) native;
6077 }
6078
6079 class _FileWriterJs implements FileWriter native "*FileWriter" {
6080
6081 static final int DONE = 2;
6082
6083 static final int INIT = 0;
6084
6085 static final int WRITING = 1;
6086
6087 final _FileErrorJs error;
6088
6089 final int length;
6090
6091 EventListener onabort;
6092
6093 EventListener onerror;
6094
6095 EventListener onprogress;
6096
6097 EventListener onwrite;
6098
6099 EventListener onwriteend;
6100
6101 EventListener onwritestart;
6102
6103 final int position;
6104
6105 final int readyState;
6106
6107 void abort() native;
6108
6109 void seek(int position) native;
6110
6111 void truncate(int size) native;
6112
6113 void write(_BlobJs data) native;
6114 }
6115
6116 class _FileWriterSyncJs implements FileWriterSync native "*FileWriterSync" {
6117
6118 final int length;
6119
6120 final int position;
6121
6122 void seek(int position) native;
6123
6124 void truncate(int size) native;
6125
6126 void write(_BlobJs data) native;
6127 }
6128
6129 class _Float32ArrayJs extends _ArrayBufferViewJs implements Float32Array, List<n um> native "*Float32Array" {
6130
6131 factory Float32Array(int length) => _construct_Float32Array(length);
6132
6133 factory Float32Array.fromList(List<num> list) => _construct_Float32Array(list) ;
6134
6135 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _construct_Float32Array (buffer);
6136
6137 static _construct_Float32Array(arg) native 'return new Float32Array(arg);';
6138
6139 static final int BYTES_PER_ELEMENT = 4;
6140
6141 final int length;
6142
6143 num operator[](int index) native "return this[index];";
6144
6145 void operator[]=(int index, num value) native "this[index] = value";
6146 // -- start List<num> mixins.
6147 // num is the element type.
6148
6149 // From Iterable<num>:
6150
6151 Iterator<num> iterator() {
6152 // Note: NodeLists are not fixed size. And most probably length shouldn't
6153 // be cached in both iterator _and_ forEach method. For now caching it
6154 // for consistency.
6155 return new _FixedSizeListIterator<num>(this);
6156 }
6157
6158 // From Collection<num>:
6159
6160 void add(num value) {
6161 throw new UnsupportedOperationException("Cannot add to immutable List.");
6162 }
6163
6164 void addLast(num value) {
6165 throw new UnsupportedOperationException("Cannot add to immutable List.");
6166 }
6167
6168 void addAll(Collection<num> collection) {
6169 throw new UnsupportedOperationException("Cannot add to immutable List.");
6170 }
6171
6172 void forEach(void f(num element)) => _Collections.forEach(this, f);
6173
6174 Collection map(f(num element)) => _Collections.map(this, [], f);
6175
6176 Collection<num> filter(bool f(num element)) =>
6177 _Collections.filter(this, <num>[], f);
6178
6179 bool every(bool f(num element)) => _Collections.every(this, f);
6180
6181 bool some(bool f(num element)) => _Collections.some(this, f);
6182
6183 bool isEmpty() => this.length == 0;
6184
6185 // From List<num>:
6186
6187 void sort(int compare(num a, num b)) {
6188 throw new UnsupportedOperationException("Cannot sort immutable List.");
6189 }
6190
6191 int indexOf(num element, [int start = 0]) =>
6192 _Lists.indexOf(this, element, start, this.length);
6193
6194 int lastIndexOf(num element, [int start = 0]) =>
6195 _Lists.lastIndexOf(this, element, start);
6196
6197 num last() => this[length - 1];
6198
6199 // FIXME: implement thesee.
6200 void setRange(int start, int length, List<num> from, [int startFrom]) {
6201 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
6202 }
6203 void removeRange(int start, int length) {
6204 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
6205 }
6206 void insertRange(int start, int length, [num initialValue]) {
6207 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
6208 }
6209 List<num> getRange(int start, int length) =>
6210 _Lists.getRange(this, start, length, <num>[]);
6211
6212 // -- end List<num> mixins.
6213
6214 void setElements(Object array, [int offset = null]) native;
6215
6216 _Float32ArrayJs subarray(int start, [int end = null]) native;
6217 }
6218
6219 class _Float64ArrayJs extends _ArrayBufferViewJs implements Float64Array, List<n um> native "*Float64Array" {
6220
6221 factory Float64Array(int length) => _construct_Float64Array(length);
6222
6223 factory Float64Array.fromList(List<num> list) => _construct_Float64Array(list) ;
6224
6225 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _construct_Float64Array (buffer);
6226
6227 static _construct_Float64Array(arg) native 'return new Float64Array(arg);';
6228
6229 static final int BYTES_PER_ELEMENT = 8;
6230
6231 final int length;
6232
6233 num operator[](int index) native "return this[index];";
6234
6235 void operator[]=(int index, num value) native "this[index] = value";
6236 // -- start List<num> mixins.
6237 // num is the element type.
6238
6239 // From Iterable<num>:
6240
6241 Iterator<num> iterator() {
6242 // Note: NodeLists are not fixed size. And most probably length shouldn't
6243 // be cached in both iterator _and_ forEach method. For now caching it
6244 // for consistency.
6245 return new _FixedSizeListIterator<num>(this);
6246 }
6247
6248 // From Collection<num>:
6249
6250 void add(num value) {
6251 throw new UnsupportedOperationException("Cannot add to immutable List.");
6252 }
6253
6254 void addLast(num value) {
6255 throw new UnsupportedOperationException("Cannot add to immutable List.");
6256 }
6257
6258 void addAll(Collection<num> collection) {
6259 throw new UnsupportedOperationException("Cannot add to immutable List.");
6260 }
6261
6262 void forEach(void f(num element)) => _Collections.forEach(this, f);
6263
6264 Collection map(f(num element)) => _Collections.map(this, [], f);
6265
6266 Collection<num> filter(bool f(num element)) =>
6267 _Collections.filter(this, <num>[], f);
6268
6269 bool every(bool f(num element)) => _Collections.every(this, f);
6270
6271 bool some(bool f(num element)) => _Collections.some(this, f);
6272
6273 bool isEmpty() => this.length == 0;
6274
6275 // From List<num>:
6276
6277 void sort(int compare(num a, num b)) {
6278 throw new UnsupportedOperationException("Cannot sort immutable List.");
6279 }
6280
6281 int indexOf(num element, [int start = 0]) =>
6282 _Lists.indexOf(this, element, start, this.length);
6283
6284 int lastIndexOf(num element, [int start = 0]) =>
6285 _Lists.lastIndexOf(this, element, start);
6286
6287 num last() => this[length - 1];
6288
6289 // FIXME: implement thesee.
6290 void setRange(int start, int length, List<num> from, [int startFrom]) {
6291 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
6292 }
6293 void removeRange(int start, int length) {
6294 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
6295 }
6296 void insertRange(int start, int length, [num initialValue]) {
6297 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
6298 }
6299 List<num> getRange(int start, int length) =>
6300 _Lists.getRange(this, start, length, <num>[]);
6301
6302 // -- end List<num> mixins.
6303
6304 void setElements(Object array, [int offset = null]) native;
6305
6306 _Float64ArrayJs subarray(int start, [int end = null]) native;
6307 }
6308
6309 class _FontElementJs extends _ElementJs implements FontElement native "*HTMLFont Element" {
6310
6311 String color;
6312
6313 String face;
6314
6315 String size;
6316 }
6317
6318 class _FormElementJs extends _ElementJs implements FormElement native "*HTMLForm Element" {
6319
6320 String acceptCharset;
6321
6322 String action;
6323
6324 String autocomplete;
6325
6326 String encoding;
6327
6328 String enctype;
6329
6330 final int length;
6331
6332 String method;
6333
6334 String name;
6335
6336 bool noValidate;
6337
6338 String target;
6339
6340 bool checkValidity() native;
6341
6342 void reset() native;
6343
6344 void submit() native;
6345 }
6346
6347 class _FrameElementJs extends _ElementJs implements FrameElement native "*HTMLFr ameElement" {
6348
6349 final _DocumentJs contentDocument;
6350
6351 final _WindowJs contentWindow;
6352
6353 String frameBorder;
6354
6355 final int height;
6356
6357 String location;
6358
6359 String longDesc;
6360
6361 String marginHeight;
6362
6363 String marginWidth;
6364
6365 String name;
6366
6367 bool noResize;
6368
6369 String scrolling;
6370
6371 String src;
6372
6373 final int width;
6374
6375 _SVGDocumentJs getSVGDocument() native;
6376 }
6377
6378 class _FrameSetElementJs extends _ElementJs implements FrameSetElement native "* HTMLFrameSetElement" {
6379
6380 String cols;
6381
6382 String rows;
6383
6384 _FrameSetElementEventsImpl get on() =>
6385 new _FrameSetElementEventsImpl(this);
6386 }
6387
6388 class _FrameSetElementEventsImpl extends _ElementEventsImpl implements FrameSetE lementEvents {
6389 _FrameSetElementEventsImpl(_ptr) : super(_ptr);
6390
6391 EventListenerList get beforeUnload() => _get('beforeunload');
6392
6393 EventListenerList get blur() => _get('blur');
6394
6395 EventListenerList get error() => _get('error');
6396
6397 EventListenerList get focus() => _get('focus');
6398
6399 EventListenerList get hashChange() => _get('hashchange');
6400
6401 EventListenerList get load() => _get('load');
6402
6403 EventListenerList get message() => _get('message');
6404
6405 EventListenerList get offline() => _get('offline');
6406
6407 EventListenerList get online() => _get('online');
6408
6409 EventListenerList get popState() => _get('popstate');
6410
6411 EventListenerList get resize() => _get('resize');
6412
6413 EventListenerList get storage() => _get('storage');
6414
6415 EventListenerList get unload() => _get('unload');
6416 }
6417
6418 class _GeolocationJs implements Geolocation native "*Geolocation" {
6419
6420 void clearWatch(int watchId) native;
6421
6422 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback = null]) native;
6423
6424 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err orCallback = null]) native;
6425 }
6426
6427 class _GeopositionJs implements Geoposition native "*Geoposition" {
6428
6429 final _CoordinatesJs coords;
6430
6431 final int timestamp;
6432 }
6433
6434 class _HRElementJs extends _ElementJs implements HRElement native "*HTMLHRElemen t" {
6435
6436 String align;
6437
6438 bool noShade;
6439
6440 String size;
6441
6442 String width;
6443 }
6444
6445 class _HTMLAllCollectionJs implements HTMLAllCollection native "*HTMLAllCollecti on" {
6446
6447 final int length;
6448
6449 _NodeJs item(int index) native;
6450
6451 _NodeJs namedItem(String name) native;
6452
6453 _NodeListJs tags(String name) native;
6454 }
6455
6456 class _HTMLCollectionJs implements HTMLCollection native "*HTMLCollection" {
6457
6458 final int length;
6459
6460 _NodeJs operator[](int index) native "return this[index];";
6461
6462 void operator[]=(int index, _NodeJs value) {
6463 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
6464 }
6465 // -- start List<Node> mixins.
6466 // Node is the element type.
6467
6468 // From Iterable<Node>:
6469
6470 Iterator<Node> iterator() {
6471 // Note: NodeLists are not fixed size. And most probably length shouldn't
6472 // be cached in both iterator _and_ forEach method. For now caching it
6473 // for consistency.
6474 return new _FixedSizeListIterator<Node>(this);
6475 }
6476
6477 // From Collection<Node>:
6478
6479 void add(Node value) {
6480 throw new UnsupportedOperationException("Cannot add to immutable List.");
6481 }
6482
6483 void addLast(Node value) {
6484 throw new UnsupportedOperationException("Cannot add to immutable List.");
6485 }
6486
6487 void addAll(Collection<Node> collection) {
6488 throw new UnsupportedOperationException("Cannot add to immutable List.");
6489 }
6490
6491 void forEach(void f(Node element)) => _Collections.forEach(this, f);
6492
6493 Collection map(f(Node element)) => _Collections.map(this, [], f);
6494
6495 Collection<Node> filter(bool f(Node element)) =>
6496 _Collections.filter(this, <Node>[], f);
6497
6498 bool every(bool f(Node element)) => _Collections.every(this, f);
6499
6500 bool some(bool f(Node element)) => _Collections.some(this, f);
6501
6502 bool isEmpty() => this.length == 0;
6503
6504 // From List<Node>:
6505
6506 void sort(int compare(Node a, Node b)) {
6507 throw new UnsupportedOperationException("Cannot sort immutable List.");
6508 }
6509
6510 int indexOf(Node element, [int start = 0]) =>
6511 _Lists.indexOf(this, element, start, this.length);
6512
6513 int lastIndexOf(Node element, [int start = 0]) =>
6514 _Lists.lastIndexOf(this, element, start);
6515
6516 Node last() => this[length - 1];
6517
6518 // FIXME: implement thesee.
6519 void setRange(int start, int length, List<Node> from, [int startFrom]) {
6520 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
6521 }
6522 void removeRange(int start, int length) {
6523 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
6524 }
6525 void insertRange(int start, int length, [Node initialValue]) {
6526 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
6527 }
6528 List<Node> getRange(int start, int length) =>
6529 _Lists.getRange(this, start, length, <Node>[]);
6530
6531 // -- end List<Node> mixins.
6532
6533 _NodeJs item(int index) native;
6534
6535 _NodeJs namedItem(String name) native;
6536 }
6537
6538 class _HTMLOptionsCollectionJs extends _HTMLCollectionJs implements HTMLOptionsC ollection native "*HTMLOptionsCollection" {
6539
6540 // Shadowing definition.
6541 int get length() native "return this.length;";
6542
6543 void set length(int value) native "this.length = value;";
6544
6545 int selectedIndex;
6546
6547 void remove(int index) native;
6548 }
6549
6550 class _HashChangeEventJs extends _EventJs implements HashChangeEvent native "*Ha shChangeEvent" {
6551
6552 final String newURL;
6553
6554 final String oldURL;
6555
6556 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native;
6557 }
6558
6559 class _HeadElementJs extends _ElementJs implements HeadElement native "*HTMLHead Element" {
6560
6561 String profile;
6562 }
6563
6564 class _HeadingElementJs extends _ElementJs implements HeadingElement native "*HT MLHeadingElement" {
6565
6566 String align;
6567 }
6568
6569 class _HighPass2FilterNodeJs extends _AudioNodeJs implements HighPass2FilterNode native "*HighPass2FilterNode" {
6570
6571 final _AudioParamJs cutoff;
6572
6573 final _AudioParamJs resonance;
6574 }
6575
6576 class _HistoryJs implements History native "*History" {
6577
6578 final int length;
6579
6580 void back() native;
6581
6582 void forward() native;
6583
6584 void go(int distance) native;
6585
6586 void pushState(Object data, String title, [String url = null]) native;
6587
6588 void replaceState(Object data, String title, [String url = null]) native;
6589 }
6590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6591 // for details. All rights reserved. Use of this source code is governed by a
6592 // BSD-style license that can be found in the LICENSE file.
6593
6594 class _HtmlElementJs extends _ElementJs implements HtmlElement
6595 native "*IntentionallyInvalid" {
6596
6597 String manifest;
6598
6599 String version;
6600
6601 }
6602
6603 class _IDBAnyJs implements IDBAny native "*IDBAny" {
6604 }
6605
6606 class _IDBCursorJs implements IDBCursor native "*IDBCursor" {
6607
6608 static final int NEXT = 0;
6609
6610 static final int NEXT_NO_DUPLICATE = 1;
6611
6612 static final int PREV = 2;
6613
6614 static final int PREV_NO_DUPLICATE = 3;
6615
6616 final int direction;
6617
6618 final _IDBKeyJs key;
6619
6620 final _IDBKeyJs primaryKey;
6621
6622 final _IDBAnyJs source;
6623
6624 void continueFunction([_IDBKeyJs key = null]) native;
6625
6626 _IDBRequestJs delete() native;
6627
6628 _IDBRequestJs update(Dynamic value) native;
6629 }
6630
6631 class _IDBCursorWithValueJs extends _IDBCursorJs implements IDBCursorWithValue n ative "*IDBCursorWithValue" {
6632
6633 final _IDBAnyJs value;
6634 }
6635
6636 class _IDBDatabaseJs implements IDBDatabase native "*IDBDatabase" {
6637
6638 final String name;
6639
6640 EventListener onabort;
6641
6642 EventListener onerror;
6643
6644 EventListener onversionchange;
6645
6646 final String version;
6647
6648 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
6649
6650 void close() native;
6651
6652 _IDBObjectStoreJs createObjectStore(String name) native;
6653
6654 void deleteObjectStore(String name) native;
6655
6656 bool dispatchEvent(_EventJs evt) native;
6657
6658 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
6659
6660 _IDBVersionChangeRequestJs setVersion(String version) native;
6661
6662 _IDBTransactionJs transaction(String storeName, int mode) native;
6663 }
6664
6665 class _IDBDatabaseErrorJs implements IDBDatabaseError native "*IDBDatabaseError" {
6666
6667 int code;
6668
6669 String message;
6670 }
6671
6672 class _IDBDatabaseExceptionJs implements IDBDatabaseException native "*IDBDataba seException" {
6673
6674 static final int ABORT_ERR = 8;
6675
6676 static final int CONSTRAINT_ERR = 4;
6677
6678 static final int DATA_ERR = 5;
6679
6680 static final int NON_TRANSIENT_ERR = 2;
6681
6682 static final int NOT_ALLOWED_ERR = 6;
6683
6684 static final int NOT_FOUND_ERR = 3;
6685
6686 static final int NO_ERR = 0;
6687
6688 static final int QUOTA_ERR = 11;
6689
6690 static final int READ_ONLY_ERR = 9;
6691
6692 static final int TIMEOUT_ERR = 10;
6693
6694 static final int TRANSACTION_INACTIVE_ERR = 7;
6695
6696 static final int UNKNOWN_ERR = 1;
6697
6698 static final int VER_ERR = 12;
6699
6700 final int code;
6701
6702 final String message;
6703
6704 final String name;
6705
6706 String toString() native;
6707 }
6708
6709 class _IDBFactoryJs implements IDBFactory native "*IDBFactory" {
6710
6711 int cmp(_IDBKeyJs first, _IDBKeyJs second) native;
6712
6713 _IDBVersionChangeRequestJs deleteDatabase(String name) native;
6714
6715 _IDBRequestJs getDatabaseNames() native;
6716
6717 _IDBRequestJs open(String name) native;
6718 }
6719
6720 class _IDBIndexJs implements IDBIndex native "*IDBIndex" {
6721
6722 final String keyPath;
6723
6724 final bool multiEntry;
6725
6726 final String name;
6727
6728 final _IDBObjectStoreJs objectStore;
6729
6730 final bool unique;
6731
6732 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native;
6733
6734 _IDBRequestJs getObject(_IDBKeyJs key) native;
6735
6736 _IDBRequestJs getKey(_IDBKeyJs key) native;
6737
6738 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null]) native;
6739
6740 _IDBRequestJs openKeyCursor([_IDBKeyRangeJs range = null, int direction = null ]) native;
6741 }
6742
6743 class _IDBKeyJs implements IDBKey native "*IDBKey" {
6744 }
6745
6746 class _IDBKeyRangeJs implements IDBKeyRange native "*IDBKeyRange" {
6747
6748 final _IDBKeyJs lower;
6749
6750 final bool lowerOpen;
6751
6752 final _IDBKeyJs upper;
6753
6754 final bool upperOpen;
6755
6756 _IDBKeyRangeJs bound(_IDBKeyJs lower, _IDBKeyJs upper, [bool lowerOpen = null, bool upperOpen = null]) native;
6757
6758 _IDBKeyRangeJs lowerBound(_IDBKeyJs bound, [bool open = null]) native;
6759
6760 _IDBKeyRangeJs only(_IDBKeyJs value) native;
6761
6762 _IDBKeyRangeJs upperBound(_IDBKeyJs bound, [bool open = null]) native;
6763 }
6764
6765 class _IDBObjectStoreJs implements IDBObjectStore native "*IDBObjectStore" {
6766
6767 final String keyPath;
6768
6769 final String name;
6770
6771 final _IDBTransactionJs transaction;
6772
6773 _IDBRequestJs add(Dynamic value, [_IDBKeyJs key = null]) native;
6774
6775 _IDBRequestJs clear() native;
6776
6777 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native;
6778
6779 _IDBIndexJs createIndex(String name, String keyPath) native;
6780
6781 _IDBRequestJs delete(_IDBKeyJs key) native;
6782
6783 void deleteIndex(String name) native;
6784
6785 _IDBRequestJs getObject(_IDBKeyJs key) native;
6786
6787 _IDBIndexJs index(String name) native;
6788
6789 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null]) native;
6790
6791 _IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native;
6792 }
6793
6794 class _IDBRequestJs implements IDBRequest native "*IDBRequest" {
6795
6796 static final int DONE = 2;
6797
6798 static final int LOADING = 1;
6799
6800 final int errorCode;
6801
6802 EventListener onerror;
6803
6804 EventListener onsuccess;
6805
6806 final int readyState;
6807
6808 final _IDBAnyJs result;
6809
6810 final _IDBAnyJs source;
6811
6812 final _IDBTransactionJs transaction;
6813
6814 final String webkitErrorMessage;
6815
6816 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
6817
6818 bool dispatchEvent(_EventJs evt) native;
6819
6820 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
6821 }
6822
6823 class _IDBTransactionJs implements IDBTransaction native "*IDBTransaction" {
6824
6825 static final int READ_ONLY = 0;
6826
6827 static final int READ_WRITE = 1;
6828
6829 static final int VERSION_CHANGE = 2;
6830
6831 final _IDBDatabaseJs db;
6832
6833 final int mode;
6834
6835 EventListener onabort;
6836
6837 EventListener oncomplete;
6838
6839 EventListener onerror;
6840
6841 void abort() native;
6842
6843 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
6844
6845 bool dispatchEvent(_EventJs evt) native;
6846
6847 _IDBObjectStoreJs objectStore(String name) native;
6848
6849 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
6850 }
6851
6852 class _IDBVersionChangeEventJs extends _EventJs implements IDBVersionChangeEvent native "*IDBVersionChangeEvent" {
6853
6854 final String version;
6855 }
6856
6857 class _IDBVersionChangeRequestJs extends _IDBRequestJs implements IDBVersionChan geRequest native "*IDBVersionChangeRequest" {
6858
6859 EventListener onblocked;
6860 }
6861
6862 class _IFrameElementJs extends _ElementJs implements IFrameElement native "*HTML IFrameElement" {
6863
6864 String align;
6865
6866 final _DocumentJs contentDocument;
6867
6868 final _WindowJs contentWindow;
6869
6870 String frameBorder;
6871
6872 String height;
6873
6874 String longDesc;
6875
6876 String marginHeight;
6877
6878 String marginWidth;
6879
6880 String name;
6881
6882 String sandbox;
6883
6884 String scrolling;
6885
6886 String src;
6887
6888 String width;
6889
6890 _SVGDocumentJs getSVGDocument() native;
6891 }
6892
6893 class _ImageDataJs implements ImageData native "*ImageData" {
6894
6895 final _CanvasPixelArrayJs data;
6896
6897 final int height;
6898
6899 final int width;
6900 }
6901
6902 class _ImageElementJs extends _ElementJs implements ImageElement native "*HTMLIm ageElement" {
6903
6904 String align;
6905
6906 String alt;
6907
6908 String border;
6909
6910 final bool complete;
6911
6912 String crossOrigin;
6913
6914 int height;
6915
6916 int hspace;
6917
6918 bool isMap;
6919
6920 String longDesc;
6921
6922 String lowsrc;
6923
6924 String name;
6925
6926 final int naturalHeight;
6927
6928 final int naturalWidth;
6929
6930 String src;
6931
6932 String useMap;
6933
6934 int vspace;
6935
6936 int width;
6937
6938 final int x;
6939
6940 final int y;
6941 }
6942
6943 class _InputElementJs extends _ElementJs implements InputElement native "*HTMLIn putElement" {
6944
6945 String accept;
6946
6947 String align;
6948
6949 String alt;
6950
6951 String autocomplete;
6952
6953 bool autofocus;
6954
6955 bool checked;
6956
6957 bool defaultChecked;
6958
6959 String defaultValue;
6960
6961 bool disabled;
6962
6963 final _FileListJs files;
6964
6965 final _FormElementJs form;
6966
6967 String formAction;
6968
6969 String formEnctype;
6970
6971 String formMethod;
6972
6973 bool formNoValidate;
6974
6975 String formTarget;
6976
6977 bool incremental;
6978
6979 bool indeterminate;
6980
6981 final _NodeListJs labels;
6982
6983 String max;
6984
6985 int maxLength;
6986
6987 String min;
6988
6989 bool multiple;
6990
6991 String name;
6992
6993 String pattern;
6994
6995 String placeholder;
6996
6997 bool readOnly;
6998
6999 bool required;
7000
7001 String selectionDirection;
7002
7003 int selectionEnd;
7004
7005 int selectionStart;
7006
7007 int size;
7008
7009 String src;
7010
7011 String step;
7012
7013 String type;
7014
7015 String useMap;
7016
7017 final String validationMessage;
7018
7019 final _ValidityStateJs validity;
7020
7021 String value;
7022
7023 Date valueAsDate;
7024
7025 num valueAsNumber;
7026
7027 bool webkitGrammar;
7028
7029 bool webkitSpeech;
7030
7031 bool webkitdirectory;
7032
7033 final bool willValidate;
7034
7035 _InputElementEventsImpl get on() =>
7036 new _InputElementEventsImpl(this);
7037
7038 bool checkValidity() native;
7039
7040 void click() native;
7041
7042 void select() native;
7043
7044 void setCustomValidity(String error) native;
7045
7046 void setSelectionRange(int start, int end, [String direction = null]) native;
7047
7048 void stepDown([int n = null]) native;
7049
7050 void stepUp([int n = null]) native;
7051 }
7052
7053 class _InputElementEventsImpl extends _ElementEventsImpl implements InputElement Events {
7054 _InputElementEventsImpl(_ptr) : super(_ptr);
7055
7056 EventListenerList get speechChange() => _get('webkitSpeechChange');
7057 }
7058
7059 class _Int16ArrayJs extends _ArrayBufferViewJs implements Int16Array, List<int> native "*Int16Array" {
7060
7061 factory Int16Array(int length) => _construct_Int16Array(length);
7062
7063 factory Int16Array.fromList(List<int> list) => _construct_Int16Array(list);
7064
7065 factory Int16Array.fromBuffer(ArrayBuffer buffer) => _construct_Int16Array(buf fer);
7066
7067 static _construct_Int16Array(arg) native 'return new Int16Array(arg);';
7068
7069 static final int BYTES_PER_ELEMENT = 2;
7070
7071 final int length;
7072
7073 int operator[](int index) native "return this[index];";
7074
7075 void operator[]=(int index, int value) native "this[index] = value";
7076 // -- start List<int> mixins.
7077 // int is the element type.
7078
7079 // From Iterable<int>:
7080
7081 Iterator<int> iterator() {
7082 // Note: NodeLists are not fixed size. And most probably length shouldn't
7083 // be cached in both iterator _and_ forEach method. For now caching it
7084 // for consistency.
7085 return new _FixedSizeListIterator<int>(this);
7086 }
7087
7088 // From Collection<int>:
7089
7090 void add(int value) {
7091 throw new UnsupportedOperationException("Cannot add to immutable List.");
7092 }
7093
7094 void addLast(int value) {
7095 throw new UnsupportedOperationException("Cannot add to immutable List.");
7096 }
7097
7098 void addAll(Collection<int> collection) {
7099 throw new UnsupportedOperationException("Cannot add to immutable List.");
7100 }
7101
7102 void forEach(void f(int element)) => _Collections.forEach(this, f);
7103
7104 Collection map(f(int element)) => _Collections.map(this, [], f);
7105
7106 Collection<int> filter(bool f(int element)) =>
7107 _Collections.filter(this, <int>[], f);
7108
7109 bool every(bool f(int element)) => _Collections.every(this, f);
7110
7111 bool some(bool f(int element)) => _Collections.some(this, f);
7112
7113 bool isEmpty() => this.length == 0;
7114
7115 // From List<int>:
7116
7117 void sort(int compare(int a, int b)) {
7118 throw new UnsupportedOperationException("Cannot sort immutable List.");
7119 }
7120
7121 int indexOf(int element, [int start = 0]) =>
7122 _Lists.indexOf(this, element, start, this.length);
7123
7124 int lastIndexOf(int element, [int start = 0]) =>
7125 _Lists.lastIndexOf(this, element, start);
7126
7127 int last() => this[length - 1];
7128
7129 // FIXME: implement thesee.
7130 void setRange(int start, int length, List<int> from, [int startFrom]) {
7131 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
7132 }
7133 void removeRange(int start, int length) {
7134 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7135 }
7136 void insertRange(int start, int length, [int initialValue]) {
7137 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7138 }
7139 List<int> getRange(int start, int length) =>
7140 _Lists.getRange(this, start, length, <int>[]);
7141
7142 // -- end List<int> mixins.
7143
7144 void setElements(Object array, [int offset = null]) native;
7145
7146 _Int16ArrayJs subarray(int start, [int end = null]) native;
7147 }
7148
7149 class _Int32ArrayJs extends _ArrayBufferViewJs implements Int32Array, List<int> native "*Int32Array" {
7150
7151 factory Int32Array(int length) => _construct_Int32Array(length);
7152
7153 factory Int32Array.fromList(List<int> list) => _construct_Int32Array(list);
7154
7155 factory Int32Array.fromBuffer(ArrayBuffer buffer) => _construct_Int32Array(buf fer);
7156
7157 static _construct_Int32Array(arg) native 'return new Int32Array(arg);';
7158
7159 static final int BYTES_PER_ELEMENT = 4;
7160
7161 final int length;
7162
7163 int operator[](int index) native "return this[index];";
7164
7165 void operator[]=(int index, int value) native "this[index] = value";
7166 // -- start List<int> mixins.
7167 // int is the element type.
7168
7169 // From Iterable<int>:
7170
7171 Iterator<int> iterator() {
7172 // Note: NodeLists are not fixed size. And most probably length shouldn't
7173 // be cached in both iterator _and_ forEach method. For now caching it
7174 // for consistency.
7175 return new _FixedSizeListIterator<int>(this);
7176 }
7177
7178 // From Collection<int>:
7179
7180 void add(int value) {
7181 throw new UnsupportedOperationException("Cannot add to immutable List.");
7182 }
7183
7184 void addLast(int value) {
7185 throw new UnsupportedOperationException("Cannot add to immutable List.");
7186 }
7187
7188 void addAll(Collection<int> collection) {
7189 throw new UnsupportedOperationException("Cannot add to immutable List.");
7190 }
7191
7192 void forEach(void f(int element)) => _Collections.forEach(this, f);
7193
7194 Collection map(f(int element)) => _Collections.map(this, [], f);
7195
7196 Collection<int> filter(bool f(int element)) =>
7197 _Collections.filter(this, <int>[], f);
7198
7199 bool every(bool f(int element)) => _Collections.every(this, f);
7200
7201 bool some(bool f(int element)) => _Collections.some(this, f);
7202
7203 bool isEmpty() => this.length == 0;
7204
7205 // From List<int>:
7206
7207 void sort(int compare(int a, int b)) {
7208 throw new UnsupportedOperationException("Cannot sort immutable List.");
7209 }
7210
7211 int indexOf(int element, [int start = 0]) =>
7212 _Lists.indexOf(this, element, start, this.length);
7213
7214 int lastIndexOf(int element, [int start = 0]) =>
7215 _Lists.lastIndexOf(this, element, start);
7216
7217 int last() => this[length - 1];
7218
7219 // FIXME: implement thesee.
7220 void setRange(int start, int length, List<int> from, [int startFrom]) {
7221 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
7222 }
7223 void removeRange(int start, int length) {
7224 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7225 }
7226 void insertRange(int start, int length, [int initialValue]) {
7227 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7228 }
7229 List<int> getRange(int start, int length) =>
7230 _Lists.getRange(this, start, length, <int>[]);
7231
7232 // -- end List<int> mixins.
7233
7234 void setElements(Object array, [int offset = null]) native;
7235
7236 _Int32ArrayJs subarray(int start, [int end = null]) native;
7237 }
7238
7239 class _Int8ArrayJs extends _ArrayBufferViewJs implements Int8Array, List<int> na tive "*Int8Array" {
7240
7241 factory Int8Array(int length) => _construct_Int8Array(length);
7242
7243 factory Int8Array.fromList(List<int> list) => _construct_Int8Array(list);
7244
7245 factory Int8Array.fromBuffer(ArrayBuffer buffer) => _construct_Int8Array(buffe r);
7246
7247 static _construct_Int8Array(arg) native 'return new Int8Array(arg);';
7248
7249 static final int BYTES_PER_ELEMENT = 1;
7250
7251 final int length;
7252
7253 int operator[](int index) native "return this[index];";
7254
7255 void operator[]=(int index, int value) native "this[index] = value";
7256 // -- start List<int> mixins.
7257 // int is the element type.
7258
7259 // From Iterable<int>:
7260
7261 Iterator<int> iterator() {
7262 // Note: NodeLists are not fixed size. And most probably length shouldn't
7263 // be cached in both iterator _and_ forEach method. For now caching it
7264 // for consistency.
7265 return new _FixedSizeListIterator<int>(this);
7266 }
7267
7268 // From Collection<int>:
7269
7270 void add(int value) {
7271 throw new UnsupportedOperationException("Cannot add to immutable List.");
7272 }
7273
7274 void addLast(int value) {
7275 throw new UnsupportedOperationException("Cannot add to immutable List.");
7276 }
7277
7278 void addAll(Collection<int> collection) {
7279 throw new UnsupportedOperationException("Cannot add to immutable List.");
7280 }
7281
7282 void forEach(void f(int element)) => _Collections.forEach(this, f);
7283
7284 Collection map(f(int element)) => _Collections.map(this, [], f);
7285
7286 Collection<int> filter(bool f(int element)) =>
7287 _Collections.filter(this, <int>[], f);
7288
7289 bool every(bool f(int element)) => _Collections.every(this, f);
7290
7291 bool some(bool f(int element)) => _Collections.some(this, f);
7292
7293 bool isEmpty() => this.length == 0;
7294
7295 // From List<int>:
7296
7297 void sort(int compare(int a, int b)) {
7298 throw new UnsupportedOperationException("Cannot sort immutable List.");
7299 }
7300
7301 int indexOf(int element, [int start = 0]) =>
7302 _Lists.indexOf(this, element, start, this.length);
7303
7304 int lastIndexOf(int element, [int start = 0]) =>
7305 _Lists.lastIndexOf(this, element, start);
7306
7307 int last() => this[length - 1];
7308
7309 // FIXME: implement thesee.
7310 void setRange(int start, int length, List<int> from, [int startFrom]) {
7311 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
7312 }
7313 void removeRange(int start, int length) {
7314 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7315 }
7316 void insertRange(int start, int length, [int initialValue]) {
7317 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7318 }
7319 List<int> getRange(int start, int length) =>
7320 _Lists.getRange(this, start, length, <int>[]);
7321
7322 // -- end List<int> mixins.
7323
7324 void setElements(Object array, [int offset = null]) native;
7325
7326 _Int8ArrayJs subarray(int start, [int end = null]) native;
7327 }
7328
7329 class _IsIndexElementJs extends _InputElementJs implements IsIndexElement native "*HTMLIsIndexElement" {
7330
7331 // Use implementation from InputElement.
7332 // final _FormElementJs form;
7333
7334 String prompt;
7335 }
7336
7337 class _JavaScriptAudioNodeJs extends _AudioNodeJs implements JavaScriptAudioNode native "*JavaScriptAudioNode" {
7338
7339 final int bufferSize;
7340
7341 EventListener onaudioprocess;
7342 }
7343
7344 class _JavaScriptCallFrameJs implements JavaScriptCallFrame native "*JavaScriptC allFrame" {
7345
7346 static final int CATCH_SCOPE = 4;
7347
7348 static final int CLOSURE_SCOPE = 3;
7349
7350 static final int GLOBAL_SCOPE = 0;
7351
7352 static final int LOCAL_SCOPE = 1;
7353
7354 static final int WITH_SCOPE = 2;
7355
7356 final _JavaScriptCallFrameJs caller;
7357
7358 final int column;
7359
7360 final String functionName;
7361
7362 final int line;
7363
7364 final List scopeChain;
7365
7366 final int sourceID;
7367
7368 final Object thisObject;
7369
7370 final String type;
7371
7372 void evaluate(String script) native;
7373
7374 int scopeType(int scopeIndex) native;
7375 }
7376
7377 class _KeyboardEventJs extends _UIEventJs implements KeyboardEvent native "*Keyb oardEvent" {
7378
7379 final bool altGraphKey;
7380
7381 final bool altKey;
7382
7383 final bool ctrlKey;
7384
7385 final String keyIdentifier;
7386
7387 final int keyLocation;
7388
7389 final bool metaKey;
7390
7391 final bool shiftKey;
7392
7393 void initKeyboardEvent(String type, bool canBubble, bool cancelable, _WindowJs view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool sh iftKey, bool metaKey, bool altGraphKey) native;
7394 }
7395
7396 class _KeygenElementJs extends _ElementJs implements KeygenElement native "*HTML KeygenElement" {
7397
7398 bool autofocus;
7399
7400 String challenge;
7401
7402 bool disabled;
7403
7404 final _FormElementJs form;
7405
7406 String keytype;
7407
7408 final _NodeListJs labels;
7409
7410 String name;
7411
7412 final String type;
7413
7414 final String validationMessage;
7415
7416 final _ValidityStateJs validity;
7417
7418 final bool willValidate;
7419
7420 bool checkValidity() native;
7421
7422 void setCustomValidity(String error) native;
7423 }
7424
7425 class _LIElementJs extends _ElementJs implements LIElement native "*HTMLLIElemen t" {
7426
7427 String type;
7428
7429 int value;
7430 }
7431
7432 class _LabelElementJs extends _ElementJs implements LabelElement native "*HTMLLa belElement" {
7433
7434 final _ElementJs control;
7435
7436 final _FormElementJs form;
7437
7438 String htmlFor;
7439 }
7440
7441 class _LegendElementJs extends _ElementJs implements LegendElement native "*HTML LegendElement" {
7442
7443 String align;
7444
7445 final _FormElementJs form;
7446 }
7447
7448 class _LinkElementJs extends _ElementJs implements LinkElement native "*HTMLLink Element" {
7449
7450 String charset;
7451
7452 bool disabled;
7453
7454 String href;
7455
7456 String hreflang;
7457
7458 String media;
7459
7460 String rel;
7461
7462 String rev;
7463
7464 final _StyleSheetJs sheet;
7465
7466 _DOMSettableTokenListJs sizes;
7467
7468 String target;
7469
7470 String type;
7471 }
7472
7473 class _LocationJs implements Location native "*Location" {
7474
7475 String hash;
7476
7477 String host;
7478
7479 String hostname;
7480
7481 String href;
7482
7483 final String origin;
7484
7485 String pathname;
7486
7487 String port;
7488
7489 String protocol;
7490
7491 String search;
7492
7493 void assign(String url) native;
7494
7495 void reload() native;
7496
7497 void replace(String url) native;
7498
7499 String toString() native;
7500 }
7501
7502 class _LowPass2FilterNodeJs extends _AudioNodeJs implements LowPass2FilterNode n ative "*LowPass2FilterNode" {
7503
7504 final _AudioParamJs cutoff;
7505
7506 final _AudioParamJs resonance;
7507 }
7508
7509 class _MapElementJs extends _ElementJs implements MapElement native "*HTMLMapEle ment" {
7510
7511 final _HTMLCollectionJs areas;
7512
7513 String name;
7514 }
7515
7516 class _MarqueeElementJs extends _ElementJs implements MarqueeElement native "*HT MLMarqueeElement" {
7517
7518 String behavior;
7519
7520 String bgColor;
7521
7522 String direction;
7523
7524 String height;
7525
7526 int hspace;
7527
7528 int loop;
7529
7530 int scrollAmount;
7531
7532 int scrollDelay;
7533
7534 bool trueSpeed;
7535
7536 int vspace;
7537
7538 String width;
7539
7540 void start() native;
7541
7542 void stop() native;
7543 }
7544
7545 class _MediaControllerJs implements MediaController native "*MediaController" {
7546
7547 final _TimeRangesJs buffered;
7548
7549 num currentTime;
7550
7551 num defaultPlaybackRate;
7552
7553 final num duration;
7554
7555 bool muted;
7556
7557 final bool paused;
7558
7559 num playbackRate;
7560
7561 final _TimeRangesJs played;
7562
7563 final _TimeRangesJs seekable;
7564
7565 num volume;
7566
7567 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
7568
7569 bool dispatchEvent(_EventJs evt) native;
7570
7571 void pause() native;
7572
7573 void play() native;
7574
7575 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
7576 }
7577
7578 class _MediaElementJs extends _ElementJs implements MediaElement native "*HTMLMe diaElement" {
7579
7580 static final int EOS_DECODE_ERR = 2;
7581
7582 static final int EOS_NETWORK_ERR = 1;
7583
7584 static final int EOS_NO_ERROR = 0;
7585
7586 static final int HAVE_CURRENT_DATA = 2;
7587
7588 static final int HAVE_ENOUGH_DATA = 4;
7589
7590 static final int HAVE_FUTURE_DATA = 3;
7591
7592 static final int HAVE_METADATA = 1;
7593
7594 static final int HAVE_NOTHING = 0;
7595
7596 static final int NETWORK_EMPTY = 0;
7597
7598 static final int NETWORK_IDLE = 1;
7599
7600 static final int NETWORK_LOADING = 2;
7601
7602 static final int NETWORK_NO_SOURCE = 3;
7603
7604 static final int SOURCE_CLOSED = 0;
7605
7606 static final int SOURCE_ENDED = 2;
7607
7608 static final int SOURCE_OPEN = 1;
7609
7610 bool autoplay;
7611
7612 final _TimeRangesJs buffered;
7613
7614 _MediaControllerJs controller;
7615
7616 bool controls;
7617
7618 final String currentSrc;
7619
7620 num currentTime;
7621
7622 bool defaultMuted;
7623
7624 num defaultPlaybackRate;
7625
7626 final num duration;
7627
7628 final bool ended;
7629
7630 final _MediaErrorJs error;
7631
7632 final num initialTime;
7633
7634 bool loop;
7635
7636 String mediaGroup;
7637
7638 bool muted;
7639
7640 final int networkState;
7641
7642 final bool paused;
7643
7644 num playbackRate;
7645
7646 final _TimeRangesJs played;
7647
7648 String preload;
7649
7650 final int readyState;
7651
7652 final _TimeRangesJs seekable;
7653
7654 final bool seeking;
7655
7656 String src;
7657
7658 final num startTime;
7659
7660 final _TextTrackListJs textTracks;
7661
7662 num volume;
7663
7664 final int webkitAudioDecodedByteCount;
7665
7666 bool webkitClosedCaptionsVisible;
7667
7668 final bool webkitHasClosedCaptions;
7669
7670 final String webkitMediaSourceURL;
7671
7672 bool webkitPreservesPitch;
7673
7674 final int webkitSourceState;
7675
7676 final int webkitVideoDecodedByteCount;
7677
7678 _TextTrackJs addTrack(String kind, [String label = null, String language = nul l]) native;
7679
7680 String canPlayType(String type) native;
7681
7682 void load() native;
7683
7684 void pause() native;
7685
7686 void play() native;
7687
7688 void webkitSourceAppend(_Uint8ArrayJs data) native;
7689
7690 void webkitSourceEndOfStream(int status) native;
7691 }
7692
7693 class _MediaElementAudioSourceNodeJs extends _AudioSourceNodeJs implements Media ElementAudioSourceNode native "*MediaElementAudioSourceNode" {
7694
7695 final _MediaElementJs mediaElement;
7696 }
7697
7698 class _MediaErrorJs implements MediaError native "*MediaError" {
7699
7700 static final int MEDIA_ERR_ABORTED = 1;
7701
7702 static final int MEDIA_ERR_DECODE = 3;
7703
7704 static final int MEDIA_ERR_NETWORK = 2;
7705
7706 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
7707
7708 final int code;
7709 }
7710
7711 class _MediaListJs implements MediaList native "*MediaList" {
7712
7713 final int length;
7714
7715 String mediaText;
7716
7717 String operator[](int index) native "return this[index];";
7718
7719 void operator[]=(int index, String value) {
7720 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
7721 }
7722 // -- start List<String> mixins.
7723 // String is the element type.
7724
7725 // From Iterable<String>:
7726
7727 Iterator<String> iterator() {
7728 // Note: NodeLists are not fixed size. And most probably length shouldn't
7729 // be cached in both iterator _and_ forEach method. For now caching it
7730 // for consistency.
7731 return new _FixedSizeListIterator<String>(this);
7732 }
7733
7734 // From Collection<String>:
7735
7736 void add(String value) {
7737 throw new UnsupportedOperationException("Cannot add to immutable List.");
7738 }
7739
7740 void addLast(String value) {
7741 throw new UnsupportedOperationException("Cannot add to immutable List.");
7742 }
7743
7744 void addAll(Collection<String> collection) {
7745 throw new UnsupportedOperationException("Cannot add to immutable List.");
7746 }
7747
7748 void forEach(void f(String element)) => _Collections.forEach(this, f);
7749
7750 Collection map(f(String element)) => _Collections.map(this, [], f);
7751
7752 Collection<String> filter(bool f(String element)) =>
7753 _Collections.filter(this, <String>[], f);
7754
7755 bool every(bool f(String element)) => _Collections.every(this, f);
7756
7757 bool some(bool f(String element)) => _Collections.some(this, f);
7758
7759 bool isEmpty() => this.length == 0;
7760
7761 // From List<String>:
7762
7763 void sort(int compare(String a, String b)) {
7764 throw new UnsupportedOperationException("Cannot sort immutable List.");
7765 }
7766
7767 int indexOf(String element, [int start = 0]) =>
7768 _Lists.indexOf(this, element, start, this.length);
7769
7770 int lastIndexOf(String element, [int start = 0]) =>
7771 _Lists.lastIndexOf(this, element, start);
7772
7773 String last() => this[length - 1];
7774
7775 // FIXME: implement thesee.
7776 void setRange(int start, int length, List<String> from, [int startFrom]) {
7777 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
7778 }
7779 void removeRange(int start, int length) {
7780 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7781 }
7782 void insertRange(int start, int length, [String initialValue]) {
7783 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7784 }
7785 List<String> getRange(int start, int length) =>
7786 _Lists.getRange(this, start, length, <String>[]);
7787
7788 // -- end List<String> mixins.
7789
7790 void appendMedium(String newMedium) native;
7791
7792 void deleteMedium(String oldMedium) native;
7793
7794 String item(int index) native;
7795 }
7796
7797 class _MediaQueryListJs implements MediaQueryList native "*MediaQueryList" {
7798
7799 final bool matches;
7800
7801 final String media;
7802
7803 void addListener(_MediaQueryListListenerJs listener) native;
7804
7805 void removeListener(_MediaQueryListListenerJs listener) native;
7806 }
7807
7808 class _MediaQueryListListenerJs implements MediaQueryListListener native "*Media QueryListListener" {
7809
7810 void queryChanged(_MediaQueryListJs list) native;
7811 }
7812
7813 class _MemoryInfoJs implements MemoryInfo native "*MemoryInfo" {
7814
7815 final int jsHeapSizeLimit;
7816
7817 final int totalJSHeapSize;
7818
7819 final int usedJSHeapSize;
7820 }
7821
7822 class _MenuElementJs extends _ElementJs implements MenuElement native "*HTMLMenu Element" {
7823
7824 bool compact;
7825 }
7826
7827 class _MessageChannelJs implements MessageChannel native "*MessageChannel" {
7828
7829 final _MessagePortJs port1;
7830
7831 final _MessagePortJs port2;
7832 }
7833
7834 class _MessageEventJs extends _EventJs implements MessageEvent native "*MessageE vent" {
7835
7836 final Object data;
7837
7838 final String lastEventId;
7839
7840 final String origin;
7841
7842 final List ports;
7843
7844 final _WindowJs source;
7845
7846 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, _WindowJs sourceArg, Lis t messagePorts) native;
7847
7848 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, _WindowJs sourceAr g, List transferables) native;
7849 }
7850
7851 class _MessagePortJs implements MessagePort native "*MessagePort" {
7852
7853 _MessagePortEventsImpl get on() =>
7854 new _MessagePortEventsImpl(this);
7855
7856 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
7857
7858 void close() native;
7859
7860 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);";
7861
7862 void postMessage(String message, [List messagePorts = null]) native;
7863
7864 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
7865
7866 void start() native;
7867
7868 void webkitPostMessage(String message, [List transfer = null]) native;
7869 }
7870
7871 class _MessagePortEventsImpl extends _EventsImpl implements MessagePortEvents {
7872 _MessagePortEventsImpl(_ptr) : super(_ptr);
7873
7874 EventListenerList get message() => _get('message');
7875 }
7876
7877 class _MetaElementJs extends _ElementJs implements MetaElement native "*HTMLMeta Element" {
7878
7879 String content;
7880
7881 String httpEquiv;
7882
7883 String name;
7884
7885 String scheme;
7886 }
7887
7888 class _MetadataJs implements Metadata native "*Metadata" {
7889
7890 final Date modificationTime;
7891 }
7892
7893 class _MeterElementJs extends _ElementJs implements MeterElement native "*HTMLMe terElement" {
7894
7895 final _FormElementJs form;
7896
7897 num high;
7898
7899 final _NodeListJs labels;
7900
7901 num low;
7902
7903 num max;
7904
7905 num min;
7906
7907 num optimum;
7908
7909 num value;
7910 }
7911
7912 class _ModElementJs extends _ElementJs implements ModElement native "*HTMLModEle ment" {
7913
7914 String cite;
7915
7916 String dateTime;
7917 }
7918
7919 class _MouseEventJs extends _UIEventJs implements MouseEvent native "*MouseEvent " {
7920
7921 final bool altKey;
7922
7923 final int button;
7924
7925 final int clientX;
7926
7927 final int clientY;
7928
7929 final bool ctrlKey;
7930
7931 final _ClipboardJs dataTransfer;
7932
7933 final _NodeJs fromElement;
7934
7935 final bool metaKey;
7936
7937 final int offsetX;
7938
7939 final int offsetY;
7940
7941 final _EventTargetJs relatedTarget;
7942
7943 final int screenX;
7944
7945 final int screenY;
7946
7947 final bool shiftKey;
7948
7949 final _NodeJs toElement;
7950
7951 final int x;
7952
7953 final int y;
7954
7955 void initMouseEvent(String type, bool canBubble, bool cancelable, _WindowJs vi ew, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey , bool altKey, bool shiftKey, bool metaKey, int button, _EventTargetJs relatedTa rget) native;
7956 }
7957
7958 class _MutationEventJs extends _EventJs implements MutationEvent native "*Mutati onEvent" {
7959
7960 static final int ADDITION = 2;
7961
7962 static final int MODIFICATION = 1;
7963
7964 static final int REMOVAL = 3;
7965
7966 final int attrChange;
7967
7968 final String attrName;
7969
7970 final String newValue;
7971
7972 final String prevValue;
7973
7974 final _NodeJs relatedNode;
7975
7976 void initMutationEvent(String type, bool canBubble, bool cancelable, _NodeJs r elatedNode, String prevValue, String newValue, String attrName, int attrChange) native;
7977 }
7978
7979 class _NamedNodeMapJs implements NamedNodeMap native "*NamedNodeMap" {
7980
7981 final int length;
7982
7983 _NodeJs operator[](int index) native "return this[index];";
7984
7985 void operator[]=(int index, _NodeJs value) {
7986 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
7987 }
7988 // -- start List<Node> mixins.
7989 // Node is the element type.
7990
7991 // From Iterable<Node>:
7992
7993 Iterator<Node> iterator() {
7994 // Note: NodeLists are not fixed size. And most probably length shouldn't
7995 // be cached in both iterator _and_ forEach method. For now caching it
7996 // for consistency.
7997 return new _FixedSizeListIterator<Node>(this);
7998 }
7999
8000 // From Collection<Node>:
8001
8002 void add(Node value) {
8003 throw new UnsupportedOperationException("Cannot add to immutable List.");
8004 }
8005
8006 void addLast(Node value) {
8007 throw new UnsupportedOperationException("Cannot add to immutable List.");
8008 }
8009
8010 void addAll(Collection<Node> collection) {
8011 throw new UnsupportedOperationException("Cannot add to immutable List.");
8012 }
8013
8014 void forEach(void f(Node element)) => _Collections.forEach(this, f);
8015
8016 Collection map(f(Node element)) => _Collections.map(this, [], f);
8017
8018 Collection<Node> filter(bool f(Node element)) =>
8019 _Collections.filter(this, <Node>[], f);
8020
8021 bool every(bool f(Node element)) => _Collections.every(this, f);
8022
8023 bool some(bool f(Node element)) => _Collections.some(this, f);
8024
8025 bool isEmpty() => this.length == 0;
8026
8027 // From List<Node>:
8028
8029 void sort(int compare(Node a, Node b)) {
8030 throw new UnsupportedOperationException("Cannot sort immutable List.");
8031 }
8032
8033 int indexOf(Node element, [int start = 0]) =>
8034 _Lists.indexOf(this, element, start, this.length);
8035
8036 int lastIndexOf(Node element, [int start = 0]) =>
8037 _Lists.lastIndexOf(this, element, start);
8038
8039 Node last() => this[length - 1];
8040
8041 // FIXME: implement thesee.
8042 void setRange(int start, int length, List<Node> from, [int startFrom]) {
8043 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
8044 }
8045 void removeRange(int start, int length) {
8046 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
8047 }
8048 void insertRange(int start, int length, [Node initialValue]) {
8049 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
8050 }
8051 List<Node> getRange(int start, int length) =>
8052 _Lists.getRange(this, start, length, <Node>[]);
8053
8054 // -- end List<Node> mixins.
8055
8056 _NodeJs getNamedItem(String name) native;
8057
8058 _NodeJs getNamedItemNS(String namespaceURI, String localName) native;
8059
8060 _NodeJs item(int index) native;
8061
8062 _NodeJs removeNamedItem(String name) native;
8063
8064 _NodeJs removeNamedItemNS(String namespaceURI, String localName) native;
8065
8066 _NodeJs setNamedItem(_NodeJs node) native;
8067
8068 _NodeJs setNamedItemNS(_NodeJs node) native;
8069 }
8070
8071 class _NavigatorJs implements Navigator native "*Navigator" {
8072
8073 final String appCodeName;
8074
8075 final String appName;
8076
8077 final String appVersion;
8078
8079 final bool cookieEnabled;
8080
8081 final _GeolocationJs geolocation;
8082
8083 final String language;
8084
8085 final _DOMMimeTypeArrayJs mimeTypes;
8086
8087 final bool onLine;
8088
8089 final String platform;
8090
8091 final _DOMPluginArrayJs plugins;
8092
8093 final String product;
8094
8095 final String productSub;
8096
8097 final String userAgent;
8098
8099 final String vendor;
8100
8101 final String vendorSub;
8102
8103 void getStorageUpdates() native;
8104
8105 bool javaEnabled() native;
8106
8107 void registerProtocolHandler(String scheme, String url, String title) native;
8108 }
8109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8110 // for details. All rights reserved. Use of this source code is governed by a
8111 // BSD-style license that can be found in the LICENSE file.
8112
8113 // TODO(nweiz): when all implementations we target have the same name for the
8114 // coreimpl implementation of List<E>, extend that rather than wrapping.
8115 class _ListWrapper<E> implements List<E> {
8116 List<E> _list;
8117
8118 _ListWrapper(List<E> this._list);
8119
8120 Iterator<E> iterator() => _list.iterator();
8121
8122 void forEach(void f(E element)) => _list.forEach(f);
8123
8124 Collection map(f(E element)) => _list.map(f);
8125
8126 List<E> filter(bool f(E element)) => _list.filter(f);
8127
8128 bool every(bool f(E element)) => _list.every(f);
8129
8130 bool some(bool f(E element)) => _list.some(f);
8131
8132 bool isEmpty() => _list.isEmpty();
8133
8134 int get length() => _list.length;
8135
8136 E operator [](int index) => _list[index];
8137
8138 void operator []=(int index, E value) { _list[index] = value; }
8139
8140 void set length(int newLength) { _list.length = newLength; }
8141
8142 void add(E value) => _list.add(value);
8143
8144 void addLast(E value) => _list.addLast(value);
8145
8146 void addAll(Collection<E> collection) => _list.addAll(collection);
8147
8148 void sort(int compare(E a, E b)) => _list.sort(compare);
8149
8150 int indexOf(E element, [int start = 0]) => _list.indexOf(element, start);
8151
8152 int lastIndexOf(E element, [int start = 0]) =>
8153 _list.lastIndexOf(element, start);
8154
8155 void clear() => _list.clear();
8156
8157 E removeLast() => _list.removeLast();
8158
8159 E last() => _list.last();
8160
8161 List<E> getRange(int start, int length) => _list.getRange(start, length);
8162
8163 void setRange(int start, int length, List<E> from, [int startFrom = 0]) =>
8164 _list.setRange(start, length, from, startFrom);
8165
8166 void removeRange(int start, int length) => _list.removeRange(start, length);
8167
8168 void insertRange(int start, int length, [E initialValue = null]) =>
8169 _list.insertRange(start, length, initialValue);
8170
8171 E get first() => _list[0];
8172 }
8173
8174 class _NodeList extends _ListWrapper<Node> implements NodeList {
8175 _NodeList(List<Node> list) : super(list);
8176
8177 NodeList filter(bool f(Node element)) => new _NodeList(super.filter(f));
8178
8179 NodeList getRange(int start, int length) =>
8180 new _NodeList(super.getRange(start, length));
8181 }
8182
8183 class _NodeJs implements Node native "*Node" {
8184 _NodeListJs get nodes() {
8185 final list = _childNodes;
8186 list._parent = this;
8187 return list;
8188 }
8189
8190 void set nodes(Collection<Node> value) {
8191 // Copy list first since we don't want liveness during iteration.
8192 // TODO(jacobr): there is a better way to do this.
8193 List copy = new List.from(value);
8194 nodes.clear();
8195 nodes.addAll(copy);
8196 }
8197
8198 _NodeJs get nextNode() native "return this.nextSibling;";
8199
8200 _NodeJs get previousNode() native "return this.previousSibling;";
8201
8202 _DocumentJs get document() native "return this.ownerDocument;";
8203
8204 _NodeJs get parent() native "return this.parentNode;";
8205
8206 String get text() native "return this.textContent;";
8207
8208 void set text(String value) native "this.textContent = value;";
8209
8210 // TODO(jacobr): should we throw an exception if parent is already null?
8211 _NodeJs remove() {
8212 if (this.parent != null) {
8213 this.parent._removeChild(this);
8214 }
8215 return this;
8216 }
8217
8218 _NodeJs replaceWith(Node otherNode) {
8219 try {
8220 this.parent._replaceChild(otherNode, this);
8221 } catch(var e) {
8222
8223 };
8224 return this;
8225 }
8226
8227
8228 static final int ATTRIBUTE_NODE = 2;
8229
8230 static final int CDATA_SECTION_NODE = 4;
8231
8232 static final int COMMENT_NODE = 8;
8233
8234 static final int DOCUMENT_FRAGMENT_NODE = 11;
8235
8236 static final int DOCUMENT_NODE = 9;
8237
8238 static final int DOCUMENT_POSITION_CONTAINED_BY = 0x10;
8239
8240 static final int DOCUMENT_POSITION_CONTAINS = 0x08;
8241
8242 static final int DOCUMENT_POSITION_DISCONNECTED = 0x01;
8243
8244 static final int DOCUMENT_POSITION_FOLLOWING = 0x04;
8245
8246 static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
8247
8248 static final int DOCUMENT_POSITION_PRECEDING = 0x02;
8249
8250 static final int DOCUMENT_TYPE_NODE = 10;
8251
8252 static final int ELEMENT_NODE = 1;
8253
8254 static final int ENTITY_NODE = 6;
8255
8256 static final int ENTITY_REFERENCE_NODE = 5;
8257
8258 static final int NOTATION_NODE = 12;
8259
8260 static final int PROCESSING_INSTRUCTION_NODE = 7;
8261
8262 static final int TEXT_NODE = 3;
8263
8264 _NamedNodeMapJs get _attributes() native "return this.attributes;";
8265
8266 _NodeListJs get _childNodes() native "return this.childNodes;";
8267
8268 final _NodeJs nextSibling;
8269
8270 final _DocumentJs ownerDocument;
8271
8272 final _NodeJs parentNode;
8273
8274 final _NodeJs previousSibling;
8275
8276 String textContent;
8277
8278 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
8279
8280 _NodeJs _appendChild(_NodeJs newChild) native "return this.appendChild(newChil d);";
8281
8282 _NodeJs cloneNode(bool deep) native;
8283
8284 bool contains(_NodeJs other) native;
8285
8286 bool _dispatchEvent(_EventJs event) native "return this.dispatchEvent(event);" ;
8287
8288 bool hasChildNodes() native;
8289
8290 _NodeJs insertBefore(_NodeJs newChild, _NodeJs refChild) native;
8291
8292 _NodeJs _removeChild(_NodeJs oldChild) native "return this.removeChild(oldChil d);";
8293
8294 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
8295
8296 _NodeJs _replaceChild(_NodeJs newChild, _NodeJs oldChild) native "return this. replaceChild(newChild, oldChild);";
8297
8298 }
8299
8300 class _NodeFilterJs implements NodeFilter native "*NodeFilter" {
8301
8302 static final int FILTER_ACCEPT = 1;
8303
8304 static final int FILTER_REJECT = 2;
8305
8306 static final int FILTER_SKIP = 3;
8307
8308 static final int SHOW_ALL = 0xFFFFFFFF;
8309
8310 static final int SHOW_ATTRIBUTE = 0x00000002;
8311
8312 static final int SHOW_CDATA_SECTION = 0x00000008;
8313
8314 static final int SHOW_COMMENT = 0x00000080;
8315
8316 static final int SHOW_DOCUMENT = 0x00000100;
8317
8318 static final int SHOW_DOCUMENT_FRAGMENT = 0x00000400;
8319
8320 static final int SHOW_DOCUMENT_TYPE = 0x00000200;
8321
8322 static final int SHOW_ELEMENT = 0x00000001;
8323
8324 static final int SHOW_ENTITY = 0x00000020;
8325
8326 static final int SHOW_ENTITY_REFERENCE = 0x00000010;
8327
8328 static final int SHOW_NOTATION = 0x00000800;
8329
8330 static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040;
8331
8332 static final int SHOW_TEXT = 0x00000004;
8333
8334 int acceptNode(_NodeJs n) native;
8335 }
8336
8337 class _NodeIteratorJs implements NodeIterator native "*NodeIterator" {
8338
8339 final bool expandEntityReferences;
8340
8341 final _NodeFilterJs filter;
8342
8343 final bool pointerBeforeReferenceNode;
8344
8345 final _NodeJs referenceNode;
8346
8347 final _NodeJs root;
8348
8349 final int whatToShow;
8350
8351 void detach() native;
8352
8353 _NodeJs nextNode() native;
8354
8355 _NodeJs previousNode() native;
8356 }
8357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8358 // for details. All rights reserved. Use of this source code is governed by a
8359 // BSD-style license that can be found in the LICENSE file.
8360
8361 class _NodeListJs implements NodeList native "*NodeList" {
8362 _NodeJs _parent;
8363
8364 int get length() native "return this.length;";
8365
8366 _NodeJs operator[](int index) native "return this[index];";
8367
8368 void operator[]=(int index, _NodeJs value) {
8369 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
8370 }
8371 // -- start List<Node> mixins.
8372 // Node is the element type.
8373
8374 // From Iterable<Node>:
8375
8376 Iterator<Node> iterator() {
8377 // Note: NodeLists are not fixed size. And most probably length shouldn't
8378 // be cached in both iterator _and_ forEach method. For now caching it
8379 // for consistency.
8380 return new _FixedSizeListIterator<Node>(this);
8381 }
8382
8383 // From Collection<Node>:
8384
8385 void add(_NodeJs value) {
8386 _parent._appendChild(value);
8387 }
8388
8389 void addLast(_NodeJs value) {
8390 _parent._appendChild(value);
8391 }
8392
8393 void addAll(Collection<_NodeJs> collection) {
8394 for (_NodeJs node in collection) {
8395 _parent._appendChild(node);
8396 }
8397 }
8398
8399 void forEach(void f(Node element)) => _Collections.forEach(this, f);
8400
8401 Collection map(f(Node element)) => _Collections.map(this, [], f);
8402
8403 Collection<Node> filter(bool f(Node element)) =>
8404 _Collections.filter(this, <Node>[], f);
8405
8406 bool every(bool f(Node element)) => _Collections.every(this, f);
8407
8408 bool some(bool f(Node element)) => _Collections.some(this, f);
8409
8410 bool isEmpty() => this.length == 0;
8411
8412 // From List<Node>:
8413
8414 void sort(int compare(Node a, Node b)) {
8415 throw new UnsupportedOperationException("Cannot sort immutable List.");
8416 }
8417
8418 int indexOf(Node element, [int start = 0]) =>
8419 _Lists.indexOf(this, element, start, this.length);
8420
8421 int lastIndexOf(Node element, [int start = 0]) =>
8422 _Lists.lastIndexOf(this, element, start);
8423
8424 Node last() => this[length - 1];
8425
8426 // FIXME: implement thesee.
8427 void setRange(int start, int length, List<Node> from, [int startFrom]) {
8428 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
8429 }
8430 void removeRange(int start, int length) {
8431 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
8432 }
8433 void insertRange(int start, int length, [Node initialValue]) {
8434 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
8435 }
8436 List<Node> getRange(int start, int length) =>
8437 _Lists.getRange(this, start, length, <Node>[]);
8438
8439 // -- end List<Node> mixins.
8440
8441 /*
8442 Ignore members. TODO(jacobr): find a cleaner solution.
8443
8444 final int length;
8445
8446 _NodeJs operator[](int index) native "return this[index];";
8447
8448 void operator[]=(int index, _NodeJs value) {
8449 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
8450 }
8451 // -- start List<Node> mixins.
8452 // Node is the element type.
8453
8454 // From Iterable<Node>:
8455
8456 Iterator<Node> iterator() {
8457 // Note: NodeLists are not fixed size. And most probably length shouldn't
8458 // be cached in both iterator _and_ forEach method. For now caching it
8459 // for consistency.
8460 return new _FixedSizeListIterator<Node>(this);
8461 }
8462
8463 // From Collection<Node>:
8464
8465 void add(Node value) {
8466 throw new UnsupportedOperationException("Cannot add to immutable List.");
8467 }
8468
8469 void addLast(Node value) {
8470 throw new UnsupportedOperationException("Cannot add to immutable List.");
8471 }
8472
8473 void addAll(Collection<Node> collection) {
8474 throw new UnsupportedOperationException("Cannot add to immutable List.");
8475 }
8476
8477 void forEach(void f(Node element)) => _Collections.forEach(this, f);
8478
8479 Collection map(f(Node element)) => _Collections.map(this, [], f);
8480
8481 Collection<Node> filter(bool f(Node element)) =>
8482 _Collections.filter(this, <Node>[], f);
8483
8484 bool every(bool f(Node element)) => _Collections.every(this, f);
8485
8486 bool some(bool f(Node element)) => _Collections.some(this, f);
8487
8488 bool isEmpty() => this.length == 0;
8489
8490 // From List<Node>:
8491
8492 void sort(int compare(Node a, Node b)) {
8493 throw new UnsupportedOperationException("Cannot sort immutable List.");
8494 }
8495
8496 int indexOf(Node element, [int start = 0]) =>
8497 _Lists.indexOf(this, element, start, this.length);
8498
8499 int lastIndexOf(Node element, [int start = 0]) =>
8500 _Lists.lastIndexOf(this, element, start);
8501
8502 Node last() => this[length - 1];
8503
8504 // FIXME: implement thesee.
8505 void setRange(int start, int length, List<Node> from, [int startFrom]) {
8506 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
8507 }
8508 void removeRange(int start, int length) {
8509 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
8510 }
8511 void insertRange(int start, int length, [Node initialValue]) {
8512 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
8513 }
8514 List<Node> getRange(int start, int length) =>
8515 _Lists.getRange(this, start, length, <Node>[]);
8516
8517 // -- end List<Node> mixins.
8518
8519 */
8520 }
8521
8522 class _NodeSelectorJs implements NodeSelector native "*NodeSelector" {
8523
8524 _ElementJs querySelector(String selectors) native;
8525
8526 _NodeListJs querySelectorAll(String selectors) native;
8527 }
8528
8529 class _NotationJs extends _NodeJs implements Notation native "*Notation" {
8530
8531 final String publicId;
8532
8533 final String systemId;
8534 }
8535
8536 class _NotificationJs implements Notification native "*Notification" {
8537
8538 String dir;
8539
8540 String replaceId;
8541
8542 _NotificationEventsImpl get on() =>
8543 new _NotificationEventsImpl(this);
8544
8545 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
8546
8547 void cancel() native;
8548
8549 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);";
8550
8551 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
8552
8553 void show() native;
8554 }
8555
8556 class _NotificationEventsImpl extends _EventsImpl implements NotificationEvents {
8557 _NotificationEventsImpl(_ptr) : super(_ptr);
8558
8559 EventListenerList get click() => _get('click');
8560
8561 EventListenerList get close() => _get('close');
8562
8563 EventListenerList get display() => _get('display');
8564
8565 EventListenerList get error() => _get('error');
8566
8567 EventListenerList get show() => _get('show');
8568 }
8569
8570 class _NotificationCenterJs implements NotificationCenter native "*NotificationC enter" {
8571
8572 int checkPermission() native;
8573
8574 _NotificationJs createHTMLNotification(String url) native;
8575
8576 _NotificationJs createNotification(String iconUrl, String title, String body) native;
8577
8578 void requestPermission(VoidCallback callback) native;
8579 }
8580
8581 class _OESStandardDerivativesJs implements OESStandardDerivatives native "*OESSt andardDerivatives" {
8582
8583 static final int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
8584 }
8585
8586 class _OESTextureFloatJs implements OESTextureFloat native "*OESTextureFloat" {
8587 }
8588
8589 class _OESVertexArrayObjectJs implements OESVertexArrayObject native "*OESVertex ArrayObject" {
8590
8591 static final int VERTEX_ARRAY_BINDING_OES = 0x85B5;
8592
8593 void bindVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native;
8594
8595 _WebGLVertexArrayObjectOESJs createVertexArrayOES() native;
8596
8597 void deleteVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native;
8598
8599 bool isVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native;
8600 }
8601
8602 class _OListElementJs extends _ElementJs implements OListElement native "*HTMLOL istElement" {
8603
8604 bool compact;
8605
8606 bool reversed;
8607
8608 int start;
8609
8610 String type;
8611 }
8612
8613 class _ObjectElementJs extends _ElementJs implements ObjectElement native "*HTML ObjectElement" {
8614
8615 String align;
8616
8617 String archive;
8618
8619 String border;
8620
8621 String code;
8622
8623 String codeBase;
8624
8625 String codeType;
8626
8627 final _DocumentJs contentDocument;
8628
8629 String data;
8630
8631 bool declare;
8632
8633 final _FormElementJs form;
8634
8635 String height;
8636
8637 int hspace;
8638
8639 String name;
8640
8641 String standby;
8642
8643 String type;
8644
8645 String useMap;
8646
8647 final String validationMessage;
8648
8649 final _ValidityStateJs validity;
8650
8651 int vspace;
8652
8653 String width;
8654
8655 final bool willValidate;
8656
8657 bool checkValidity() native;
8658
8659 void setCustomValidity(String error) native;
8660 }
8661
8662 class _OfflineAudioCompletionEventJs extends _EventJs implements OfflineAudioCom pletionEvent native "*OfflineAudioCompletionEvent" {
8663
8664 final _AudioBufferJs renderedBuffer;
8665 }
8666
8667 class _OperationNotAllowedExceptionJs implements OperationNotAllowedException na tive "*OperationNotAllowedException" {
8668
8669 static final int NOT_ALLOWED_ERR = 1;
8670
8671 final int code;
8672
8673 final String message;
8674
8675 final String name;
8676
8677 String toString() native;
8678 }
8679
8680 class _OptGroupElementJs extends _ElementJs implements OptGroupElement native "* HTMLOptGroupElement" {
8681
8682 bool disabled;
8683
8684 String label;
8685 }
8686
8687 class _OptionElementJs extends _ElementJs implements OptionElement native "*HTML OptionElement" {
8688
8689 bool defaultSelected;
8690
8691 bool disabled;
8692
8693 final _FormElementJs form;
8694
8695 final int index;
8696
8697 String label;
8698
8699 bool selected;
8700
8701 String text;
8702
8703 String value;
8704 }
8705
8706 class _OutputElementJs extends _ElementJs implements OutputElement native "*HTML OutputElement" {
8707
8708 String defaultValue;
8709
8710 final _FormElementJs form;
8711
8712 _DOMSettableTokenListJs htmlFor;
8713
8714 final _NodeListJs labels;
8715
8716 String name;
8717
8718 final String type;
8719
8720 final String validationMessage;
8721
8722 final _ValidityStateJs validity;
8723
8724 String value;
8725
8726 final bool willValidate;
8727
8728 bool checkValidity() native;
8729
8730 void setCustomValidity(String error) native;
8731 }
8732
8733 class _OverflowEventJs extends _EventJs implements OverflowEvent native "*Overfl owEvent" {
8734
8735 static final int BOTH = 2;
8736
8737 static final int HORIZONTAL = 0;
8738
8739 static final int VERTICAL = 1;
8740
8741 final bool horizontalOverflow;
8742
8743 final int orient;
8744
8745 final bool verticalOverflow;
8746 }
8747
8748 class _PageTransitionEventJs extends _EventJs implements PageTransitionEvent nat ive "*PageTransitionEvent" {
8749
8750 final bool persisted;
8751 }
8752
8753 class _ParagraphElementJs extends _ElementJs implements ParagraphElement native "*HTMLParagraphElement" {
8754
8755 String align;
8756 }
8757
8758 class _ParamElementJs extends _ElementJs implements ParamElement native "*HTMLPa ramElement" {
8759
8760 String name;
8761
8762 String type;
8763
8764 String value;
8765
8766 String valueType;
8767 }
8768
8769 class _PerformanceJs implements Performance native "*Performance" {
8770
8771 final _MemoryInfoJs memory;
8772
8773 final _PerformanceNavigationJs navigation;
8774
8775 final _PerformanceTimingJs timing;
8776 }
8777
8778 class _PerformanceNavigationJs implements PerformanceNavigation native "*Perform anceNavigation" {
8779
8780 static final int TYPE_BACK_FORWARD = 2;
8781
8782 static final int TYPE_NAVIGATE = 0;
8783
8784 static final int TYPE_RELOAD = 1;
8785
8786 static final int TYPE_RESERVED = 255;
8787
8788 final int redirectCount;
8789
8790 final int type;
8791 }
8792
8793 class _PerformanceTimingJs implements PerformanceTiming native "*PerformanceTimi ng" {
8794
8795 final int connectEnd;
8796
8797 final int connectStart;
8798
8799 final int domComplete;
8800
8801 final int domContentLoadedEventEnd;
8802
8803 final int domContentLoadedEventStart;
8804
8805 final int domInteractive;
8806
8807 final int domLoading;
8808
8809 final int domainLookupEnd;
8810
8811 final int domainLookupStart;
8812
8813 final int fetchStart;
8814
8815 final int loadEventEnd;
8816
8817 final int loadEventStart;
8818
8819 final int navigationStart;
8820
8821 final int redirectEnd;
8822
8823 final int redirectStart;
8824
8825 final int requestStart;
8826
8827 final int responseEnd;
8828
8829 final int responseStart;
8830
8831 final int secureConnectionStart;
8832
8833 final int unloadEventEnd;
8834
8835 final int unloadEventStart;
8836 }
8837
8838 class _PointJs implements Point native "*WebKitPoint" {
8839
8840 num x;
8841
8842 num y;
8843 }
8844
8845 class _PopStateEventJs extends _EventJs implements PopStateEvent native "*PopSta teEvent" {
8846
8847 final Object state;
8848 }
8849
8850 class _PositionErrorJs implements PositionError native "*PositionError" {
8851
8852 static final int PERMISSION_DENIED = 1;
8853
8854 static final int POSITION_UNAVAILABLE = 2;
8855
8856 static final int TIMEOUT = 3;
8857
8858 final int code;
8859
8860 final String message;
8861 }
8862
8863 class _PreElementJs extends _ElementJs implements PreElement native "*HTMLPreEle ment" {
8864
8865 int width;
8866
8867 bool wrap;
8868 }
8869
8870 class _ProcessingInstructionJs extends _NodeJs implements ProcessingInstruction native "*ProcessingInstruction" {
8871
8872 String data;
8873
8874 final _StyleSheetJs sheet;
8875
8876 final String target;
8877 }
8878
8879 class _ProgressElementJs extends _ElementJs implements ProgressElement native "* HTMLProgressElement" {
8880
8881 final _FormElementJs form;
8882
8883 final _NodeListJs labels;
8884
8885 num max;
8886
8887 final num position;
8888
8889 num value;
8890 }
8891
8892 class _ProgressEventJs extends _EventJs implements ProgressEvent native "*Progre ssEvent" {
8893
8894 final bool lengthComputable;
8895
8896 final int loaded;
8897
8898 final int total;
8899 }
8900
8901 class _QuoteElementJs extends _ElementJs implements QuoteElement native "*HTMLQu oteElement" {
8902
8903 String cite;
8904 }
8905
8906 class _RGBColorJs implements RGBColor native "*RGBColor" {
8907
8908 final _CSSPrimitiveValueJs blue;
8909
8910 final _CSSPrimitiveValueJs green;
8911
8912 final _CSSPrimitiveValueJs red;
8913 }
8914
8915 class _RangeJs implements Range native "*Range" {
8916
8917 static final int END_TO_END = 2;
8918
8919 static final int END_TO_START = 3;
8920
8921 static final int NODE_AFTER = 1;
8922
8923 static final int NODE_BEFORE = 0;
8924
8925 static final int NODE_BEFORE_AND_AFTER = 2;
8926
8927 static final int NODE_INSIDE = 3;
8928
8929 static final int START_TO_END = 1;
8930
8931 static final int START_TO_START = 0;
8932
8933 final bool collapsed;
8934
8935 final _NodeJs commonAncestorContainer;
8936
8937 final _NodeJs endContainer;
8938
8939 final int endOffset;
8940
8941 final _NodeJs startContainer;
8942
8943 final int startOffset;
8944
8945 _DocumentFragmentJs cloneContents() native;
8946
8947 _RangeJs cloneRange() native;
8948
8949 void collapse(bool toStart) native;
8950
8951 int compareNode(_NodeJs refNode) native;
8952
8953 int comparePoint(_NodeJs refNode, int offset) native;
8954
8955 _DocumentFragmentJs createContextualFragment(String html) native;
8956
8957 void deleteContents() native;
8958
8959 void detach() native;
8960
8961 void expand(String unit) native;
8962
8963 _DocumentFragmentJs extractContents() native;
8964
8965 _ClientRectJs getBoundingClientRect() native;
8966
8967 _ClientRectListJs getClientRects() native;
8968
8969 void insertNode(_NodeJs newNode) native;
8970
8971 bool intersectsNode(_NodeJs refNode) native;
8972
8973 bool isPointInRange(_NodeJs refNode, int offset) native;
8974
8975 void selectNode(_NodeJs refNode) native;
8976
8977 void selectNodeContents(_NodeJs refNode) native;
8978
8979 void setEnd(_NodeJs refNode, int offset) native;
8980
8981 void setEndAfter(_NodeJs refNode) native;
8982
8983 void setEndBefore(_NodeJs refNode) native;
8984
8985 void setStart(_NodeJs refNode, int offset) native;
8986
8987 void setStartAfter(_NodeJs refNode) native;
8988
8989 void setStartBefore(_NodeJs refNode) native;
8990
8991 void surroundContents(_NodeJs newParent) native;
8992
8993 String toString() native;
8994 }
8995
8996 class _RangeExceptionJs implements RangeException native "*RangeException" {
8997
8998 static final int BAD_BOUNDARYPOINTS_ERR = 1;
8999
9000 static final int INVALID_NODE_TYPE_ERR = 2;
9001
9002 final int code;
9003
9004 final String message;
9005
9006 final String name;
9007
9008 String toString() native;
9009 }
9010
9011 class _RealtimeAnalyserNodeJs extends _AudioNodeJs implements RealtimeAnalyserNo de native "*RealtimeAnalyserNode" {
9012
9013 int fftSize;
9014
9015 final int frequencyBinCount;
9016
9017 num maxDecibels;
9018
9019 num minDecibels;
9020
9021 num smoothingTimeConstant;
9022
9023 void getByteFrequencyData(_Uint8ArrayJs array) native;
9024
9025 void getByteTimeDomainData(_Uint8ArrayJs array) native;
9026
9027 void getFloatFrequencyData(_Float32ArrayJs array) native;
9028 }
9029
9030 class _RectJs implements Rect native "*Rect" {
9031
9032 final _CSSPrimitiveValueJs bottom;
9033
9034 final _CSSPrimitiveValueJs left;
9035
9036 final _CSSPrimitiveValueJs right;
9037
9038 final _CSSPrimitiveValueJs top;
9039 }
9040
9041 class _SQLErrorJs implements SQLError native "*SQLError" {
9042
9043 static final int CONSTRAINT_ERR = 6;
9044
9045 static final int DATABASE_ERR = 1;
9046
9047 static final int QUOTA_ERR = 4;
9048
9049 static final int SYNTAX_ERR = 5;
9050
9051 static final int TIMEOUT_ERR = 7;
9052
9053 static final int TOO_LARGE_ERR = 3;
9054
9055 static final int UNKNOWN_ERR = 0;
9056
9057 static final int VERSION_ERR = 2;
9058
9059 final int code;
9060
9061 final String message;
9062 }
9063
9064 class _SQLExceptionJs implements SQLException native "*SQLException" {
9065
9066 static final int CONSTRAINT_ERR = 6;
9067
9068 static final int DATABASE_ERR = 1;
9069
9070 static final int QUOTA_ERR = 4;
9071
9072 static final int SYNTAX_ERR = 5;
9073
9074 static final int TIMEOUT_ERR = 7;
9075
9076 static final int TOO_LARGE_ERR = 3;
9077
9078 static final int UNKNOWN_ERR = 0;
9079
9080 static final int VERSION_ERR = 2;
9081
9082 final int code;
9083
9084 final String message;
9085 }
9086
9087 class _SQLResultSetJs implements SQLResultSet native "*SQLResultSet" {
9088
9089 final int insertId;
9090
9091 final _SQLResultSetRowListJs rows;
9092
9093 final int rowsAffected;
9094 }
9095
9096 class _SQLResultSetRowListJs implements SQLResultSetRowList native "*SQLResultSe tRowList" {
9097
9098 final int length;
9099
9100 Object item(int index) native;
9101 }
9102
9103 class _SQLTransactionJs implements SQLTransaction native "*SQLTransaction" {
9104 }
9105
9106 class _SQLTransactionSyncJs implements SQLTransactionSync native "*SQLTransactio nSync" {
9107 }
9108
9109 class _SVGAElementJs extends _SVGElementJs implements SVGAElement native "*SVGAE lement" {
9110
9111 final _SVGAnimatedStringJs target;
9112
9113 // From SVGURIReference
9114
9115 final _SVGAnimatedStringJs href;
9116
9117 // From SVGTests
9118
9119 final _SVGStringListJs requiredExtensions;
9120
9121 final _SVGStringListJs requiredFeatures;
9122
9123 final _SVGStringListJs systemLanguage;
9124
9125 bool hasExtension(String extension) native;
9126
9127 // From SVGLangSpace
9128
9129 String xmllang;
9130
9131 String xmlspace;
9132
9133 // From SVGExternalResourcesRequired
9134
9135 final _SVGAnimatedBooleanJs externalResourcesRequired;
9136
9137 // From SVGStylable
9138
9139 _SVGAnimatedStringJs get _className() native "return this.className;";
9140
9141 // Use implementation from Element.
9142 // final _CSSStyleDeclarationJs style;
9143
9144 _CSSValueJs getPresentationAttribute(String name) native;
9145
9146 // From SVGTransformable
9147
9148 final _SVGAnimatedTransformListJs transform;
9149
9150 // From SVGLocatable
9151
9152 final _SVGElementJs farthestViewportElement;
9153
9154 final _SVGElementJs nearestViewportElement;
9155
9156 _SVGRectJs getBBox() native;
9157
9158 _SVGMatrixJs getCTM() native;
9159
9160 _SVGMatrixJs getScreenCTM() native;
9161
9162 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
9163 }
9164
9165 class _SVGAltGlyphDefElementJs extends _SVGElementJs implements SVGAltGlyphDefEl ement native "*SVGAltGlyphDefElement" {
9166 }
9167
9168 class _SVGAltGlyphElementJs extends _SVGTextPositioningElementJs implements SVGA ltGlyphElement native "*SVGAltGlyphElement" {
9169
9170 String format;
9171
9172 String glyphRef;
9173
9174 // From SVGURIReference
9175
9176 final _SVGAnimatedStringJs href;
9177 }
9178
9179 class _SVGAltGlyphItemElementJs extends _SVGElementJs implements SVGAltGlyphItem Element native "*SVGAltGlyphItemElement" {
9180 }
9181
9182 class _SVGAngleJs implements SVGAngle native "*SVGAngle" {
9183
9184 static final int SVG_ANGLETYPE_DEG = 2;
9185
9186 static final int SVG_ANGLETYPE_GRAD = 4;
9187
9188 static final int SVG_ANGLETYPE_RAD = 3;
9189
9190 static final int SVG_ANGLETYPE_UNKNOWN = 0;
9191
9192 static final int SVG_ANGLETYPE_UNSPECIFIED = 1;
9193
9194 final int unitType;
9195
9196 num value;
9197
9198 String valueAsString;
9199
9200 num valueInSpecifiedUnits;
9201
9202 void convertToSpecifiedUnits(int unitType) native;
9203
9204 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native;
9205 }
9206
9207 class _SVGAnimateColorElementJs extends _SVGAnimationElementJs implements SVGAni mateColorElement native "*SVGAnimateColorElement" {
9208 }
9209
9210 class _SVGAnimateElementJs extends _SVGAnimationElementJs implements SVGAnimateE lement native "*SVGAnimateElement" {
9211 }
9212
9213 class _SVGAnimateMotionElementJs extends _SVGAnimationElementJs implements SVGAn imateMotionElement native "*SVGAnimateMotionElement" {
9214 }
9215
9216 class _SVGAnimateTransformElementJs extends _SVGAnimationElementJs implements SV GAnimateTransformElement native "*SVGAnimateTransformElement" {
9217 }
9218
9219 class _SVGAnimatedAngleJs implements SVGAnimatedAngle native "*SVGAnimatedAngle" {
9220
9221 final _SVGAngleJs animVal;
9222
9223 final _SVGAngleJs baseVal;
9224 }
9225
9226 class _SVGAnimatedBooleanJs implements SVGAnimatedBoolean native "*SVGAnimatedBo olean" {
9227
9228 final bool animVal;
9229
9230 bool baseVal;
9231 }
9232
9233 class _SVGAnimatedEnumerationJs implements SVGAnimatedEnumeration native "*SVGAn imatedEnumeration" {
9234
9235 final int animVal;
9236
9237 int baseVal;
9238 }
9239
9240 class _SVGAnimatedIntegerJs implements SVGAnimatedInteger native "*SVGAnimatedIn teger" {
9241
9242 final int animVal;
9243
9244 int baseVal;
9245 }
9246
9247 class _SVGAnimatedLengthJs implements SVGAnimatedLength native "*SVGAnimatedLeng th" {
9248
9249 final _SVGLengthJs animVal;
9250
9251 final _SVGLengthJs baseVal;
9252 }
9253
9254 class _SVGAnimatedLengthListJs implements SVGAnimatedLengthList native "*SVGAnim atedLengthList" {
9255
9256 final _SVGLengthListJs animVal;
9257
9258 final _SVGLengthListJs baseVal;
9259 }
9260
9261 class _SVGAnimatedNumberJs implements SVGAnimatedNumber native "*SVGAnimatedNumb er" {
9262
9263 final num animVal;
9264
9265 num baseVal;
9266 }
9267
9268 class _SVGAnimatedNumberListJs implements SVGAnimatedNumberList native "*SVGAnim atedNumberList" {
9269
9270 final _SVGNumberListJs animVal;
9271
9272 final _SVGNumberListJs baseVal;
9273 }
9274
9275 class _SVGAnimatedPreserveAspectRatioJs implements SVGAnimatedPreserveAspectRati o native "*SVGAnimatedPreserveAspectRatio" {
9276
9277 final _SVGPreserveAspectRatioJs animVal;
9278
9279 final _SVGPreserveAspectRatioJs baseVal;
9280 }
9281
9282 class _SVGAnimatedRectJs implements SVGAnimatedRect native "*SVGAnimatedRect" {
9283
9284 final _SVGRectJs animVal;
9285
9286 final _SVGRectJs baseVal;
9287 }
9288
9289 class _SVGAnimatedStringJs implements SVGAnimatedString native "*SVGAnimatedStri ng" {
9290
9291 final String animVal;
9292
9293 String baseVal;
9294 }
9295
9296 class _SVGAnimatedTransformListJs implements SVGAnimatedTransformList native "*S VGAnimatedTransformList" {
9297
9298 final _SVGTransformListJs animVal;
9299
9300 final _SVGTransformListJs baseVal;
9301 }
9302
9303 class _SVGAnimationElementJs extends _SVGElementJs implements SVGAnimationElemen t native "*SVGAnimationElement" {
9304
9305 final _SVGElementJs targetElement;
9306
9307 num getCurrentTime() native;
9308
9309 num getSimpleDuration() native;
9310
9311 num getStartTime() native;
9312
9313 // From SVGTests
9314
9315 final _SVGStringListJs requiredExtensions;
9316
9317 final _SVGStringListJs requiredFeatures;
9318
9319 final _SVGStringListJs systemLanguage;
9320
9321 bool hasExtension(String extension) native;
9322
9323 // From SVGExternalResourcesRequired
9324
9325 final _SVGAnimatedBooleanJs externalResourcesRequired;
9326
9327 // From ElementTimeControl
9328
9329 void beginElement() native;
9330
9331 void beginElementAt(num offset) native;
9332
9333 void endElement() native;
9334
9335 void endElementAt(num offset) native;
9336 }
9337
9338 class _SVGCircleElementJs extends _SVGElementJs implements SVGCircleElement nati ve "*SVGCircleElement" {
9339
9340 final _SVGAnimatedLengthJs cx;
9341
9342 final _SVGAnimatedLengthJs cy;
9343
9344 final _SVGAnimatedLengthJs r;
9345
9346 // From SVGTests
9347
9348 final _SVGStringListJs requiredExtensions;
9349
9350 final _SVGStringListJs requiredFeatures;
9351
9352 final _SVGStringListJs systemLanguage;
9353
9354 bool hasExtension(String extension) native;
9355
9356 // From SVGLangSpace
9357
9358 String xmllang;
9359
9360 String xmlspace;
9361
9362 // From SVGExternalResourcesRequired
9363
9364 final _SVGAnimatedBooleanJs externalResourcesRequired;
9365
9366 // From SVGStylable
9367
9368 _SVGAnimatedStringJs get _className() native "return this.className;";
9369
9370 // Use implementation from Element.
9371 // final _CSSStyleDeclarationJs style;
9372
9373 _CSSValueJs getPresentationAttribute(String name) native;
9374
9375 // From SVGTransformable
9376
9377 final _SVGAnimatedTransformListJs transform;
9378
9379 // From SVGLocatable
9380
9381 final _SVGElementJs farthestViewportElement;
9382
9383 final _SVGElementJs nearestViewportElement;
9384
9385 _SVGRectJs getBBox() native;
9386
9387 _SVGMatrixJs getCTM() native;
9388
9389 _SVGMatrixJs getScreenCTM() native;
9390
9391 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
9392 }
9393
9394 class _SVGClipPathElementJs extends _SVGElementJs implements SVGClipPathElement native "*SVGClipPathElement" {
9395
9396 final _SVGAnimatedEnumerationJs clipPathUnits;
9397
9398 // From SVGTests
9399
9400 final _SVGStringListJs requiredExtensions;
9401
9402 final _SVGStringListJs requiredFeatures;
9403
9404 final _SVGStringListJs systemLanguage;
9405
9406 bool hasExtension(String extension) native;
9407
9408 // From SVGLangSpace
9409
9410 String xmllang;
9411
9412 String xmlspace;
9413
9414 // From SVGExternalResourcesRequired
9415
9416 final _SVGAnimatedBooleanJs externalResourcesRequired;
9417
9418 // From SVGStylable
9419
9420 _SVGAnimatedStringJs get _className() native "return this.className;";
9421
9422 // Use implementation from Element.
9423 // final _CSSStyleDeclarationJs style;
9424
9425 _CSSValueJs getPresentationAttribute(String name) native;
9426
9427 // From SVGTransformable
9428
9429 final _SVGAnimatedTransformListJs transform;
9430
9431 // From SVGLocatable
9432
9433 final _SVGElementJs farthestViewportElement;
9434
9435 final _SVGElementJs nearestViewportElement;
9436
9437 _SVGRectJs getBBox() native;
9438
9439 _SVGMatrixJs getCTM() native;
9440
9441 _SVGMatrixJs getScreenCTM() native;
9442
9443 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
9444 }
9445
9446 class _SVGColorJs extends _CSSValueJs implements SVGColor native "*SVGColor" {
9447
9448 static final int SVG_COLORTYPE_CURRENTCOLOR = 3;
9449
9450 static final int SVG_COLORTYPE_RGBCOLOR = 1;
9451
9452 static final int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
9453
9454 static final int SVG_COLORTYPE_UNKNOWN = 0;
9455
9456 final int colorType;
9457
9458 final _RGBColorJs rgbColor;
9459
9460 void setColor(int colorType, String rgbColor, String iccColor) native;
9461
9462 void setRGBColor(String rgbColor) native;
9463
9464 void setRGBColorICCColor(String rgbColor, String iccColor) native;
9465 }
9466
9467 class _SVGComponentTransferFunctionElementJs extends _SVGElementJs implements SV GComponentTransferFunctionElement native "*SVGComponentTransferFunctionElement" {
9468
9469 static final int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3;
9470
9471 static final int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
9472
9473 static final int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1;
9474
9475 static final int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4;
9476
9477 static final int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2;
9478
9479 static final int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0;
9480
9481 final _SVGAnimatedNumberJs amplitude;
9482
9483 final _SVGAnimatedNumberJs exponent;
9484
9485 final _SVGAnimatedNumberJs intercept;
9486
9487 final _SVGAnimatedNumberJs offset;
9488
9489 final _SVGAnimatedNumberJs slope;
9490
9491 final _SVGAnimatedNumberListJs tableValues;
9492
9493 final _SVGAnimatedEnumerationJs type;
9494 }
9495
9496 class _SVGCursorElementJs extends _SVGElementJs implements SVGCursorElement nati ve "*SVGCursorElement" {
9497
9498 final _SVGAnimatedLengthJs x;
9499
9500 final _SVGAnimatedLengthJs y;
9501
9502 // From SVGURIReference
9503
9504 final _SVGAnimatedStringJs href;
9505
9506 // From SVGTests
9507
9508 final _SVGStringListJs requiredExtensions;
9509
9510 final _SVGStringListJs requiredFeatures;
9511
9512 final _SVGStringListJs systemLanguage;
9513
9514 bool hasExtension(String extension) native;
9515
9516 // From SVGExternalResourcesRequired
9517
9518 final _SVGAnimatedBooleanJs externalResourcesRequired;
9519 }
9520
9521 class _SVGDefsElementJs extends _SVGElementJs implements SVGDefsElement native " *SVGDefsElement" {
9522
9523 // From SVGTests
9524
9525 final _SVGStringListJs requiredExtensions;
9526
9527 final _SVGStringListJs requiredFeatures;
9528
9529 final _SVGStringListJs systemLanguage;
9530
9531 bool hasExtension(String extension) native;
9532
9533 // From SVGLangSpace
9534
9535 String xmllang;
9536
9537 String xmlspace;
9538
9539 // From SVGExternalResourcesRequired
9540
9541 final _SVGAnimatedBooleanJs externalResourcesRequired;
9542
9543 // From SVGStylable
9544
9545 _SVGAnimatedStringJs get _className() native "return this.className;";
9546
9547 // Use implementation from Element.
9548 // final _CSSStyleDeclarationJs style;
9549
9550 _CSSValueJs getPresentationAttribute(String name) native;
9551
9552 // From SVGTransformable
9553
9554 final _SVGAnimatedTransformListJs transform;
9555
9556 // From SVGLocatable
9557
9558 final _SVGElementJs farthestViewportElement;
9559
9560 final _SVGElementJs nearestViewportElement;
9561
9562 _SVGRectJs getBBox() native;
9563
9564 _SVGMatrixJs getCTM() native;
9565
9566 _SVGMatrixJs getScreenCTM() native;
9567
9568 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
9569 }
9570
9571 class _SVGDescElementJs extends _SVGElementJs implements SVGDescElement native " *SVGDescElement" {
9572
9573 // From SVGLangSpace
9574
9575 String xmllang;
9576
9577 String xmlspace;
9578
9579 // From SVGStylable
9580
9581 _SVGAnimatedStringJs get _className() native "return this.className;";
9582
9583 // Use implementation from Element.
9584 // final _CSSStyleDeclarationJs style;
9585
9586 _CSSValueJs getPresentationAttribute(String name) native;
9587 }
9588
9589 class _SVGDocumentJs extends _DocumentJs implements SVGDocument native "*SVGDocu ment" {
9590
9591 final _SVGSVGElementJs rootElement;
9592
9593 _EventJs _createEvent(String eventType) native "return this.createEvent(eventT ype);";
9594 }
9595
9596 class _SVGElementJs extends _ElementJs implements SVGElement native "*SVGElement " {
9597
9598 // Shadowing definition.
9599 String get id() native "return this.id;";
9600
9601 void set id(String value) native "this.id = value;";
9602
9603 final _SVGSVGElementJs ownerSVGElement;
9604
9605 final _SVGElementJs viewportElement;
9606
9607 String xmlbase;
9608 }
9609
9610 class _SVGElementInstanceJs implements SVGElementInstance native "*SVGElementIns tance" {
9611
9612 final _SVGElementInstanceListJs childNodes;
9613
9614 final _SVGElementJs correspondingElement;
9615
9616 final _SVGUseElementJs correspondingUseElement;
9617
9618 final _SVGElementInstanceJs firstChild;
9619
9620 final _SVGElementInstanceJs lastChild;
9621
9622 final _SVGElementInstanceJs nextSibling;
9623
9624 final _SVGElementInstanceJs parentNode;
9625
9626 final _SVGElementInstanceJs previousSibling;
9627
9628 _SVGElementInstanceEventsImpl get on() =>
9629 new _SVGElementInstanceEventsImpl(this);
9630
9631 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
9632
9633 bool _dispatchEvent(_EventJs event) native "return this.dispatchEvent(event);" ;
9634
9635 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
9636 }
9637
9638 class _SVGElementInstanceEventsImpl extends _EventsImpl implements SVGElementIns tanceEvents {
9639 _SVGElementInstanceEventsImpl(_ptr) : super(_ptr);
9640
9641 EventListenerList get abort() => _get('abort');
9642
9643 EventListenerList get beforeCopy() => _get('beforecopy');
9644
9645 EventListenerList get beforeCut() => _get('beforecut');
9646
9647 EventListenerList get beforePaste() => _get('beforepaste');
9648
9649 EventListenerList get blur() => _get('blur');
9650
9651 EventListenerList get change() => _get('change');
9652
9653 EventListenerList get click() => _get('click');
9654
9655 EventListenerList get contextMenu() => _get('contextmenu');
9656
9657 EventListenerList get copy() => _get('copy');
9658
9659 EventListenerList get cut() => _get('cut');
9660
9661 EventListenerList get doubleClick() => _get('dblclick');
9662
9663 EventListenerList get drag() => _get('drag');
9664
9665 EventListenerList get dragEnd() => _get('dragend');
9666
9667 EventListenerList get dragEnter() => _get('dragenter');
9668
9669 EventListenerList get dragLeave() => _get('dragleave');
9670
9671 EventListenerList get dragOver() => _get('dragover');
9672
9673 EventListenerList get dragStart() => _get('dragstart');
9674
9675 EventListenerList get drop() => _get('drop');
9676
9677 EventListenerList get error() => _get('error');
9678
9679 EventListenerList get focus() => _get('focus');
9680
9681 EventListenerList get input() => _get('input');
9682
9683 EventListenerList get keyDown() => _get('keydown');
9684
9685 EventListenerList get keyPress() => _get('keypress');
9686
9687 EventListenerList get keyUp() => _get('keyup');
9688
9689 EventListenerList get load() => _get('load');
9690
9691 EventListenerList get mouseDown() => _get('mousedown');
9692
9693 EventListenerList get mouseMove() => _get('mousemove');
9694
9695 EventListenerList get mouseOut() => _get('mouseout');
9696
9697 EventListenerList get mouseOver() => _get('mouseover');
9698
9699 EventListenerList get mouseUp() => _get('mouseup');
9700
9701 EventListenerList get mouseWheel() => _get('mousewheel');
9702
9703 EventListenerList get paste() => _get('paste');
9704
9705 EventListenerList get reset() => _get('reset');
9706
9707 EventListenerList get resize() => _get('resize');
9708
9709 EventListenerList get scroll() => _get('scroll');
9710
9711 EventListenerList get search() => _get('search');
9712
9713 EventListenerList get select() => _get('select');
9714
9715 EventListenerList get selectStart() => _get('selectstart');
9716
9717 EventListenerList get submit() => _get('submit');
9718
9719 EventListenerList get unload() => _get('unload');
9720 }
9721
9722 class _SVGElementInstanceListJs implements SVGElementInstanceList native "*SVGEl ementInstanceList" {
9723
9724 final int length;
9725
9726 _SVGElementInstanceJs item(int index) native;
9727 }
9728
9729 class _SVGEllipseElementJs extends _SVGElementJs implements SVGEllipseElement na tive "*SVGEllipseElement" {
9730
9731 final _SVGAnimatedLengthJs cx;
9732
9733 final _SVGAnimatedLengthJs cy;
9734
9735 final _SVGAnimatedLengthJs rx;
9736
9737 final _SVGAnimatedLengthJs ry;
9738
9739 // From SVGTests
9740
9741 final _SVGStringListJs requiredExtensions;
9742
9743 final _SVGStringListJs requiredFeatures;
9744
9745 final _SVGStringListJs systemLanguage;
9746
9747 bool hasExtension(String extension) native;
9748
9749 // From SVGLangSpace
9750
9751 String xmllang;
9752
9753 String xmlspace;
9754
9755 // From SVGExternalResourcesRequired
9756
9757 final _SVGAnimatedBooleanJs externalResourcesRequired;
9758
9759 // From SVGStylable
9760
9761 _SVGAnimatedStringJs get _className() native "return this.className;";
9762
9763 // Use implementation from Element.
9764 // final _CSSStyleDeclarationJs style;
9765
9766 _CSSValueJs getPresentationAttribute(String name) native;
9767
9768 // From SVGTransformable
9769
9770 final _SVGAnimatedTransformListJs transform;
9771
9772 // From SVGLocatable
9773
9774 final _SVGElementJs farthestViewportElement;
9775
9776 final _SVGElementJs nearestViewportElement;
9777
9778 _SVGRectJs getBBox() native;
9779
9780 _SVGMatrixJs getCTM() native;
9781
9782 _SVGMatrixJs getScreenCTM() native;
9783
9784 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
9785 }
9786
9787 class _SVGExceptionJs implements SVGException native "*SVGException" {
9788
9789 static final int SVG_INVALID_VALUE_ERR = 1;
9790
9791 static final int SVG_MATRIX_NOT_INVERTABLE = 2;
9792
9793 static final int SVG_WRONG_TYPE_ERR = 0;
9794
9795 final int code;
9796
9797 final String message;
9798
9799 final String name;
9800
9801 String toString() native;
9802 }
9803
9804 class _SVGExternalResourcesRequiredJs implements SVGExternalResourcesRequired na tive "*SVGExternalResourcesRequired" {
9805
9806 final _SVGAnimatedBooleanJs externalResourcesRequired;
9807 }
9808
9809 class _SVGFEBlendElementJs extends _SVGElementJs implements SVGFEBlendElement na tive "*SVGFEBlendElement" {
9810
9811 static final int SVG_FEBLEND_MODE_DARKEN = 4;
9812
9813 static final int SVG_FEBLEND_MODE_LIGHTEN = 5;
9814
9815 static final int SVG_FEBLEND_MODE_MULTIPLY = 2;
9816
9817 static final int SVG_FEBLEND_MODE_NORMAL = 1;
9818
9819 static final int SVG_FEBLEND_MODE_SCREEN = 3;
9820
9821 static final int SVG_FEBLEND_MODE_UNKNOWN = 0;
9822
9823 final _SVGAnimatedStringJs in1;
9824
9825 final _SVGAnimatedStringJs in2;
9826
9827 final _SVGAnimatedEnumerationJs mode;
9828
9829 // From SVGFilterPrimitiveStandardAttributes
9830
9831 final _SVGAnimatedLengthJs height;
9832
9833 final _SVGAnimatedStringJs result;
9834
9835 final _SVGAnimatedLengthJs width;
9836
9837 final _SVGAnimatedLengthJs x;
9838
9839 final _SVGAnimatedLengthJs y;
9840
9841 // From SVGStylable
9842
9843 _SVGAnimatedStringJs get _className() native "return this.className;";
9844
9845 // Use implementation from Element.
9846 // final _CSSStyleDeclarationJs style;
9847
9848 _CSSValueJs getPresentationAttribute(String name) native;
9849 }
9850
9851 class _SVGFEColorMatrixElementJs extends _SVGElementJs implements SVGFEColorMatr ixElement native "*SVGFEColorMatrixElement" {
9852
9853 static final int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3;
9854
9855 static final int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4;
9856
9857 static final int SVG_FECOLORMATRIX_TYPE_MATRIX = 1;
9858
9859 static final int SVG_FECOLORMATRIX_TYPE_SATURATE = 2;
9860
9861 static final int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0;
9862
9863 final _SVGAnimatedStringJs in1;
9864
9865 final _SVGAnimatedEnumerationJs type;
9866
9867 final _SVGAnimatedNumberListJs values;
9868
9869 // From SVGFilterPrimitiveStandardAttributes
9870
9871 final _SVGAnimatedLengthJs height;
9872
9873 final _SVGAnimatedStringJs result;
9874
9875 final _SVGAnimatedLengthJs width;
9876
9877 final _SVGAnimatedLengthJs x;
9878
9879 final _SVGAnimatedLengthJs y;
9880
9881 // From SVGStylable
9882
9883 _SVGAnimatedStringJs get _className() native "return this.className;";
9884
9885 // Use implementation from Element.
9886 // final _CSSStyleDeclarationJs style;
9887
9888 _CSSValueJs getPresentationAttribute(String name) native;
9889 }
9890
9891 class _SVGFEComponentTransferElementJs extends _SVGElementJs implements SVGFECom ponentTransferElement native "*SVGFEComponentTransferElement" {
9892
9893 final _SVGAnimatedStringJs in1;
9894
9895 // From SVGFilterPrimitiveStandardAttributes
9896
9897 final _SVGAnimatedLengthJs height;
9898
9899 final _SVGAnimatedStringJs result;
9900
9901 final _SVGAnimatedLengthJs width;
9902
9903 final _SVGAnimatedLengthJs x;
9904
9905 final _SVGAnimatedLengthJs y;
9906
9907 // From SVGStylable
9908
9909 _SVGAnimatedStringJs get _className() native "return this.className;";
9910
9911 // Use implementation from Element.
9912 // final _CSSStyleDeclarationJs style;
9913
9914 _CSSValueJs getPresentationAttribute(String name) native;
9915 }
9916
9917 class _SVGFECompositeElementJs extends _SVGElementJs implements SVGFECompositeEl ement native "*SVGFECompositeElement" {
9918
9919 static final int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
9920
9921 static final int SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
9922
9923 static final int SVG_FECOMPOSITE_OPERATOR_IN = 2;
9924
9925 static final int SVG_FECOMPOSITE_OPERATOR_OUT = 3;
9926
9927 static final int SVG_FECOMPOSITE_OPERATOR_OVER = 1;
9928
9929 static final int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
9930
9931 static final int SVG_FECOMPOSITE_OPERATOR_XOR = 5;
9932
9933 final _SVGAnimatedStringJs in1;
9934
9935 final _SVGAnimatedStringJs in2;
9936
9937 final _SVGAnimatedNumberJs k1;
9938
9939 final _SVGAnimatedNumberJs k2;
9940
9941 final _SVGAnimatedNumberJs k3;
9942
9943 final _SVGAnimatedNumberJs k4;
9944
9945 final _SVGAnimatedEnumerationJs operator;
9946
9947 // From SVGFilterPrimitiveStandardAttributes
9948
9949 final _SVGAnimatedLengthJs height;
9950
9951 final _SVGAnimatedStringJs result;
9952
9953 final _SVGAnimatedLengthJs width;
9954
9955 final _SVGAnimatedLengthJs x;
9956
9957 final _SVGAnimatedLengthJs y;
9958
9959 // From SVGStylable
9960
9961 _SVGAnimatedStringJs get _className() native "return this.className;";
9962
9963 // Use implementation from Element.
9964 // final _CSSStyleDeclarationJs style;
9965
9966 _CSSValueJs getPresentationAttribute(String name) native;
9967 }
9968
9969 class _SVGFEConvolveMatrixElementJs extends _SVGElementJs implements SVGFEConvol veMatrixElement native "*SVGFEConvolveMatrixElement" {
9970
9971 static final int SVG_EDGEMODE_DUPLICATE = 1;
9972
9973 static final int SVG_EDGEMODE_NONE = 3;
9974
9975 static final int SVG_EDGEMODE_UNKNOWN = 0;
9976
9977 static final int SVG_EDGEMODE_WRAP = 2;
9978
9979 final _SVGAnimatedNumberJs bias;
9980
9981 final _SVGAnimatedNumberJs divisor;
9982
9983 final _SVGAnimatedEnumerationJs edgeMode;
9984
9985 final _SVGAnimatedStringJs in1;
9986
9987 final _SVGAnimatedNumberListJs kernelMatrix;
9988
9989 final _SVGAnimatedNumberJs kernelUnitLengthX;
9990
9991 final _SVGAnimatedNumberJs kernelUnitLengthY;
9992
9993 final _SVGAnimatedIntegerJs orderX;
9994
9995 final _SVGAnimatedIntegerJs orderY;
9996
9997 final _SVGAnimatedBooleanJs preserveAlpha;
9998
9999 final _SVGAnimatedIntegerJs targetX;
10000
10001 final _SVGAnimatedIntegerJs targetY;
10002
10003 // From SVGFilterPrimitiveStandardAttributes
10004
10005 final _SVGAnimatedLengthJs height;
10006
10007 final _SVGAnimatedStringJs result;
10008
10009 final _SVGAnimatedLengthJs width;
10010
10011 final _SVGAnimatedLengthJs x;
10012
10013 final _SVGAnimatedLengthJs y;
10014
10015 // From SVGStylable
10016
10017 _SVGAnimatedStringJs get _className() native "return this.className;";
10018
10019 // Use implementation from Element.
10020 // final _CSSStyleDeclarationJs style;
10021
10022 _CSSValueJs getPresentationAttribute(String name) native;
10023 }
10024
10025 class _SVGFEDiffuseLightingElementJs extends _SVGElementJs implements SVGFEDiffu seLightingElement native "*SVGFEDiffuseLightingElement" {
10026
10027 final _SVGAnimatedNumberJs diffuseConstant;
10028
10029 final _SVGAnimatedStringJs in1;
10030
10031 final _SVGAnimatedNumberJs kernelUnitLengthX;
10032
10033 final _SVGAnimatedNumberJs kernelUnitLengthY;
10034
10035 final _SVGAnimatedNumberJs surfaceScale;
10036
10037 // From SVGFilterPrimitiveStandardAttributes
10038
10039 final _SVGAnimatedLengthJs height;
10040
10041 final _SVGAnimatedStringJs result;
10042
10043 final _SVGAnimatedLengthJs width;
10044
10045 final _SVGAnimatedLengthJs x;
10046
10047 final _SVGAnimatedLengthJs y;
10048
10049 // From SVGStylable
10050
10051 _SVGAnimatedStringJs get _className() native "return this.className;";
10052
10053 // Use implementation from Element.
10054 // final _CSSStyleDeclarationJs style;
10055
10056 _CSSValueJs getPresentationAttribute(String name) native;
10057 }
10058
10059 class _SVGFEDisplacementMapElementJs extends _SVGElementJs implements SVGFEDispl acementMapElement native "*SVGFEDisplacementMapElement" {
10060
10061 static final int SVG_CHANNEL_A = 4;
10062
10063 static final int SVG_CHANNEL_B = 3;
10064
10065 static final int SVG_CHANNEL_G = 2;
10066
10067 static final int SVG_CHANNEL_R = 1;
10068
10069 static final int SVG_CHANNEL_UNKNOWN = 0;
10070
10071 final _SVGAnimatedStringJs in1;
10072
10073 final _SVGAnimatedStringJs in2;
10074
10075 final _SVGAnimatedNumberJs scale;
10076
10077 final _SVGAnimatedEnumerationJs xChannelSelector;
10078
10079 final _SVGAnimatedEnumerationJs yChannelSelector;
10080
10081 // From SVGFilterPrimitiveStandardAttributes
10082
10083 final _SVGAnimatedLengthJs height;
10084
10085 final _SVGAnimatedStringJs result;
10086
10087 final _SVGAnimatedLengthJs width;
10088
10089 final _SVGAnimatedLengthJs x;
10090
10091 final _SVGAnimatedLengthJs y;
10092
10093 // From SVGStylable
10094
10095 _SVGAnimatedStringJs get _className() native "return this.className;";
10096
10097 // Use implementation from Element.
10098 // final _CSSStyleDeclarationJs style;
10099
10100 _CSSValueJs getPresentationAttribute(String name) native;
10101 }
10102
10103 class _SVGFEDistantLightElementJs extends _SVGElementJs implements SVGFEDistantL ightElement native "*SVGFEDistantLightElement" {
10104
10105 final _SVGAnimatedNumberJs azimuth;
10106
10107 final _SVGAnimatedNumberJs elevation;
10108 }
10109
10110 class _SVGFEDropShadowElementJs extends _SVGElementJs implements SVGFEDropShadow Element native "*SVGFEDropShadowElement" {
10111
10112 final _SVGAnimatedNumberJs dx;
10113
10114 final _SVGAnimatedNumberJs dy;
10115
10116 final _SVGAnimatedStringJs in1;
10117
10118 final _SVGAnimatedNumberJs stdDeviationX;
10119
10120 final _SVGAnimatedNumberJs stdDeviationY;
10121
10122 void setStdDeviation(num stdDeviationX, num stdDeviationY) native;
10123
10124 // From SVGFilterPrimitiveStandardAttributes
10125
10126 final _SVGAnimatedLengthJs height;
10127
10128 final _SVGAnimatedStringJs result;
10129
10130 final _SVGAnimatedLengthJs width;
10131
10132 final _SVGAnimatedLengthJs x;
10133
10134 final _SVGAnimatedLengthJs y;
10135
10136 // From SVGStylable
10137
10138 _SVGAnimatedStringJs get _className() native "return this.className;";
10139
10140 // Use implementation from Element.
10141 // final _CSSStyleDeclarationJs style;
10142
10143 _CSSValueJs getPresentationAttribute(String name) native;
10144 }
10145
10146 class _SVGFEFloodElementJs extends _SVGElementJs implements SVGFEFloodElement na tive "*SVGFEFloodElement" {
10147
10148 // From SVGFilterPrimitiveStandardAttributes
10149
10150 final _SVGAnimatedLengthJs height;
10151
10152 final _SVGAnimatedStringJs result;
10153
10154 final _SVGAnimatedLengthJs width;
10155
10156 final _SVGAnimatedLengthJs x;
10157
10158 final _SVGAnimatedLengthJs y;
10159
10160 // From SVGStylable
10161
10162 _SVGAnimatedStringJs get _className() native "return this.className;";
10163
10164 // Use implementation from Element.
10165 // final _CSSStyleDeclarationJs style;
10166
10167 _CSSValueJs getPresentationAttribute(String name) native;
10168 }
10169
10170 class _SVGFEFuncAElementJs extends _SVGComponentTransferFunctionElementJs implem ents SVGFEFuncAElement native "*SVGFEFuncAElement" {
10171 }
10172
10173 class _SVGFEFuncBElementJs extends _SVGComponentTransferFunctionElementJs implem ents SVGFEFuncBElement native "*SVGFEFuncBElement" {
10174 }
10175
10176 class _SVGFEFuncGElementJs extends _SVGComponentTransferFunctionElementJs implem ents SVGFEFuncGElement native "*SVGFEFuncGElement" {
10177 }
10178
10179 class _SVGFEFuncRElementJs extends _SVGComponentTransferFunctionElementJs implem ents SVGFEFuncRElement native "*SVGFEFuncRElement" {
10180 }
10181
10182 class _SVGFEGaussianBlurElementJs extends _SVGElementJs implements SVGFEGaussian BlurElement native "*SVGFEGaussianBlurElement" {
10183
10184 final _SVGAnimatedStringJs in1;
10185
10186 final _SVGAnimatedNumberJs stdDeviationX;
10187
10188 final _SVGAnimatedNumberJs stdDeviationY;
10189
10190 void setStdDeviation(num stdDeviationX, num stdDeviationY) native;
10191
10192 // From SVGFilterPrimitiveStandardAttributes
10193
10194 final _SVGAnimatedLengthJs height;
10195
10196 final _SVGAnimatedStringJs result;
10197
10198 final _SVGAnimatedLengthJs width;
10199
10200 final _SVGAnimatedLengthJs x;
10201
10202 final _SVGAnimatedLengthJs y;
10203
10204 // From SVGStylable
10205
10206 _SVGAnimatedStringJs get _className() native "return this.className;";
10207
10208 // Use implementation from Element.
10209 // final _CSSStyleDeclarationJs style;
10210
10211 _CSSValueJs getPresentationAttribute(String name) native;
10212 }
10213
10214 class _SVGFEImageElementJs extends _SVGElementJs implements SVGFEImageElement na tive "*SVGFEImageElement" {
10215
10216 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
10217
10218 // From SVGURIReference
10219
10220 final _SVGAnimatedStringJs href;
10221
10222 // From SVGLangSpace
10223
10224 String xmllang;
10225
10226 String xmlspace;
10227
10228 // From SVGExternalResourcesRequired
10229
10230 final _SVGAnimatedBooleanJs externalResourcesRequired;
10231
10232 // From SVGFilterPrimitiveStandardAttributes
10233
10234 final _SVGAnimatedLengthJs height;
10235
10236 final _SVGAnimatedStringJs result;
10237
10238 final _SVGAnimatedLengthJs width;
10239
10240 final _SVGAnimatedLengthJs x;
10241
10242 final _SVGAnimatedLengthJs y;
10243
10244 // From SVGStylable
10245
10246 _SVGAnimatedStringJs get _className() native "return this.className;";
10247
10248 // Use implementation from Element.
10249 // final _CSSStyleDeclarationJs style;
10250
10251 _CSSValueJs getPresentationAttribute(String name) native;
10252 }
10253
10254 class _SVGFEMergeElementJs extends _SVGElementJs implements SVGFEMergeElement na tive "*SVGFEMergeElement" {
10255
10256 // From SVGFilterPrimitiveStandardAttributes
10257
10258 final _SVGAnimatedLengthJs height;
10259
10260 final _SVGAnimatedStringJs result;
10261
10262 final _SVGAnimatedLengthJs width;
10263
10264 final _SVGAnimatedLengthJs x;
10265
10266 final _SVGAnimatedLengthJs y;
10267
10268 // From SVGStylable
10269
10270 _SVGAnimatedStringJs get _className() native "return this.className;";
10271
10272 // Use implementation from Element.
10273 // final _CSSStyleDeclarationJs style;
10274
10275 _CSSValueJs getPresentationAttribute(String name) native;
10276 }
10277
10278 class _SVGFEMergeNodeElementJs extends _SVGElementJs implements SVGFEMergeNodeEl ement native "*SVGFEMergeNodeElement" {
10279
10280 final _SVGAnimatedStringJs in1;
10281 }
10282
10283 class _SVGFEMorphologyElementJs extends _SVGElementJs implements SVGFEMorphology Element native "*SVGFEMorphologyElement" {
10284
10285 static final int SVG_MORPHOLOGY_OPERATOR_DILATE = 2;
10286
10287 static final int SVG_MORPHOLOGY_OPERATOR_ERODE = 1;
10288
10289 static final int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0;
10290
10291 final _SVGAnimatedStringJs in1;
10292
10293 final _SVGAnimatedEnumerationJs operator;
10294
10295 final _SVGAnimatedNumberJs radiusX;
10296
10297 final _SVGAnimatedNumberJs radiusY;
10298
10299 void setRadius(num radiusX, num radiusY) native;
10300
10301 // From SVGFilterPrimitiveStandardAttributes
10302
10303 final _SVGAnimatedLengthJs height;
10304
10305 final _SVGAnimatedStringJs result;
10306
10307 final _SVGAnimatedLengthJs width;
10308
10309 final _SVGAnimatedLengthJs x;
10310
10311 final _SVGAnimatedLengthJs y;
10312
10313 // From SVGStylable
10314
10315 _SVGAnimatedStringJs get _className() native "return this.className;";
10316
10317 // Use implementation from Element.
10318 // final _CSSStyleDeclarationJs style;
10319
10320 _CSSValueJs getPresentationAttribute(String name) native;
10321 }
10322
10323 class _SVGFEOffsetElementJs extends _SVGElementJs implements SVGFEOffsetElement native "*SVGFEOffsetElement" {
10324
10325 final _SVGAnimatedNumberJs dx;
10326
10327 final _SVGAnimatedNumberJs dy;
10328
10329 final _SVGAnimatedStringJs in1;
10330
10331 // From SVGFilterPrimitiveStandardAttributes
10332
10333 final _SVGAnimatedLengthJs height;
10334
10335 final _SVGAnimatedStringJs result;
10336
10337 final _SVGAnimatedLengthJs width;
10338
10339 final _SVGAnimatedLengthJs x;
10340
10341 final _SVGAnimatedLengthJs y;
10342
10343 // From SVGStylable
10344
10345 _SVGAnimatedStringJs get _className() native "return this.className;";
10346
10347 // Use implementation from Element.
10348 // final _CSSStyleDeclarationJs style;
10349
10350 _CSSValueJs getPresentationAttribute(String name) native;
10351 }
10352
10353 class _SVGFEPointLightElementJs extends _SVGElementJs implements SVGFEPointLight Element native "*SVGFEPointLightElement" {
10354
10355 final _SVGAnimatedNumberJs x;
10356
10357 final _SVGAnimatedNumberJs y;
10358
10359 final _SVGAnimatedNumberJs z;
10360 }
10361
10362 class _SVGFESpecularLightingElementJs extends _SVGElementJs implements SVGFESpec ularLightingElement native "*SVGFESpecularLightingElement" {
10363
10364 final _SVGAnimatedStringJs in1;
10365
10366 final _SVGAnimatedNumberJs specularConstant;
10367
10368 final _SVGAnimatedNumberJs specularExponent;
10369
10370 final _SVGAnimatedNumberJs surfaceScale;
10371
10372 // From SVGFilterPrimitiveStandardAttributes
10373
10374 final _SVGAnimatedLengthJs height;
10375
10376 final _SVGAnimatedStringJs result;
10377
10378 final _SVGAnimatedLengthJs width;
10379
10380 final _SVGAnimatedLengthJs x;
10381
10382 final _SVGAnimatedLengthJs y;
10383
10384 // From SVGStylable
10385
10386 _SVGAnimatedStringJs get _className() native "return this.className;";
10387
10388 // Use implementation from Element.
10389 // final _CSSStyleDeclarationJs style;
10390
10391 _CSSValueJs getPresentationAttribute(String name) native;
10392 }
10393
10394 class _SVGFESpotLightElementJs extends _SVGElementJs implements SVGFESpotLightEl ement native "*SVGFESpotLightElement" {
10395
10396 final _SVGAnimatedNumberJs limitingConeAngle;
10397
10398 final _SVGAnimatedNumberJs pointsAtX;
10399
10400 final _SVGAnimatedNumberJs pointsAtY;
10401
10402 final _SVGAnimatedNumberJs pointsAtZ;
10403
10404 final _SVGAnimatedNumberJs specularExponent;
10405
10406 final _SVGAnimatedNumberJs x;
10407
10408 final _SVGAnimatedNumberJs y;
10409
10410 final _SVGAnimatedNumberJs z;
10411 }
10412
10413 class _SVGFETileElementJs extends _SVGElementJs implements SVGFETileElement nati ve "*SVGFETileElement" {
10414
10415 final _SVGAnimatedStringJs in1;
10416
10417 // From SVGFilterPrimitiveStandardAttributes
10418
10419 final _SVGAnimatedLengthJs height;
10420
10421 final _SVGAnimatedStringJs result;
10422
10423 final _SVGAnimatedLengthJs width;
10424
10425 final _SVGAnimatedLengthJs x;
10426
10427 final _SVGAnimatedLengthJs y;
10428
10429 // From SVGStylable
10430
10431 _SVGAnimatedStringJs get _className() native "return this.className;";
10432
10433 // Use implementation from Element.
10434 // final _CSSStyleDeclarationJs style;
10435
10436 _CSSValueJs getPresentationAttribute(String name) native;
10437 }
10438
10439 class _SVGFETurbulenceElementJs extends _SVGElementJs implements SVGFETurbulence Element native "*SVGFETurbulenceElement" {
10440
10441 static final int SVG_STITCHTYPE_NOSTITCH = 2;
10442
10443 static final int SVG_STITCHTYPE_STITCH = 1;
10444
10445 static final int SVG_STITCHTYPE_UNKNOWN = 0;
10446
10447 static final int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1;
10448
10449 static final int SVG_TURBULENCE_TYPE_TURBULENCE = 2;
10450
10451 static final int SVG_TURBULENCE_TYPE_UNKNOWN = 0;
10452
10453 final _SVGAnimatedNumberJs baseFrequencyX;
10454
10455 final _SVGAnimatedNumberJs baseFrequencyY;
10456
10457 final _SVGAnimatedIntegerJs numOctaves;
10458
10459 final _SVGAnimatedNumberJs seed;
10460
10461 final _SVGAnimatedEnumerationJs stitchTiles;
10462
10463 final _SVGAnimatedEnumerationJs type;
10464
10465 // From SVGFilterPrimitiveStandardAttributes
10466
10467 final _SVGAnimatedLengthJs height;
10468
10469 final _SVGAnimatedStringJs result;
10470
10471 final _SVGAnimatedLengthJs width;
10472
10473 final _SVGAnimatedLengthJs x;
10474
10475 final _SVGAnimatedLengthJs y;
10476
10477 // From SVGStylable
10478
10479 _SVGAnimatedStringJs get _className() native "return this.className;";
10480
10481 // Use implementation from Element.
10482 // final _CSSStyleDeclarationJs style;
10483
10484 _CSSValueJs getPresentationAttribute(String name) native;
10485 }
10486
10487 class _SVGFilterElementJs extends _SVGElementJs implements SVGFilterElement nati ve "*SVGFilterElement" {
10488
10489 final _SVGAnimatedIntegerJs filterResX;
10490
10491 final _SVGAnimatedIntegerJs filterResY;
10492
10493 final _SVGAnimatedEnumerationJs filterUnits;
10494
10495 final _SVGAnimatedLengthJs height;
10496
10497 final _SVGAnimatedEnumerationJs primitiveUnits;
10498
10499 final _SVGAnimatedLengthJs width;
10500
10501 final _SVGAnimatedLengthJs x;
10502
10503 final _SVGAnimatedLengthJs y;
10504
10505 void setFilterRes(int filterResX, int filterResY) native;
10506
10507 // From SVGURIReference
10508
10509 final _SVGAnimatedStringJs href;
10510
10511 // From SVGLangSpace
10512
10513 String xmllang;
10514
10515 String xmlspace;
10516
10517 // From SVGExternalResourcesRequired
10518
10519 final _SVGAnimatedBooleanJs externalResourcesRequired;
10520
10521 // From SVGStylable
10522
10523 _SVGAnimatedStringJs get _className() native "return this.className;";
10524
10525 // Use implementation from Element.
10526 // final _CSSStyleDeclarationJs style;
10527
10528 _CSSValueJs getPresentationAttribute(String name) native;
10529 }
10530
10531 class _SVGFilterPrimitiveStandardAttributesJs extends _SVGStylableJs implements SVGFilterPrimitiveStandardAttributes native "*SVGFilterPrimitiveStandardAttribut es" {
10532
10533 final _SVGAnimatedLengthJs height;
10534
10535 final _SVGAnimatedStringJs result;
10536
10537 final _SVGAnimatedLengthJs width;
10538
10539 final _SVGAnimatedLengthJs x;
10540
10541 final _SVGAnimatedLengthJs y;
10542 }
10543
10544 class _SVGFitToViewBoxJs implements SVGFitToViewBox native "*SVGFitToViewBox" {
10545
10546 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
10547
10548 final _SVGAnimatedRectJs viewBox;
10549 }
10550
10551 class _SVGFontElementJs extends _SVGElementJs implements SVGFontElement native " *SVGFontElement" {
10552 }
10553
10554 class _SVGFontFaceElementJs extends _SVGElementJs implements SVGFontFaceElement native "*SVGFontFaceElement" {
10555 }
10556
10557 class _SVGFontFaceFormatElementJs extends _SVGElementJs implements SVGFontFaceFo rmatElement native "*SVGFontFaceFormatElement" {
10558 }
10559
10560 class _SVGFontFaceNameElementJs extends _SVGElementJs implements SVGFontFaceName Element native "*SVGFontFaceNameElement" {
10561 }
10562
10563 class _SVGFontFaceSrcElementJs extends _SVGElementJs implements SVGFontFaceSrcEl ement native "*SVGFontFaceSrcElement" {
10564 }
10565
10566 class _SVGFontFaceUriElementJs extends _SVGElementJs implements SVGFontFaceUriEl ement native "*SVGFontFaceUriElement" {
10567 }
10568
10569 class _SVGForeignObjectElementJs extends _SVGElementJs implements SVGForeignObje ctElement native "*SVGForeignObjectElement" {
10570
10571 final _SVGAnimatedLengthJs height;
10572
10573 final _SVGAnimatedLengthJs width;
10574
10575 final _SVGAnimatedLengthJs x;
10576
10577 final _SVGAnimatedLengthJs y;
10578
10579 // From SVGTests
10580
10581 final _SVGStringListJs requiredExtensions;
10582
10583 final _SVGStringListJs requiredFeatures;
10584
10585 final _SVGStringListJs systemLanguage;
10586
10587 bool hasExtension(String extension) native;
10588
10589 // From SVGLangSpace
10590
10591 String xmllang;
10592
10593 String xmlspace;
10594
10595 // From SVGExternalResourcesRequired
10596
10597 final _SVGAnimatedBooleanJs externalResourcesRequired;
10598
10599 // From SVGStylable
10600
10601 _SVGAnimatedStringJs get _className() native "return this.className;";
10602
10603 // Use implementation from Element.
10604 // final _CSSStyleDeclarationJs style;
10605
10606 _CSSValueJs getPresentationAttribute(String name) native;
10607
10608 // From SVGTransformable
10609
10610 final _SVGAnimatedTransformListJs transform;
10611
10612 // From SVGLocatable
10613
10614 final _SVGElementJs farthestViewportElement;
10615
10616 final _SVGElementJs nearestViewportElement;
10617
10618 _SVGRectJs getBBox() native;
10619
10620 _SVGMatrixJs getCTM() native;
10621
10622 _SVGMatrixJs getScreenCTM() native;
10623
10624 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
10625 }
10626
10627 class _SVGGElementJs extends _SVGElementJs implements SVGGElement native "*SVGGE lement" {
10628
10629 // From SVGTests
10630
10631 final _SVGStringListJs requiredExtensions;
10632
10633 final _SVGStringListJs requiredFeatures;
10634
10635 final _SVGStringListJs systemLanguage;
10636
10637 bool hasExtension(String extension) native;
10638
10639 // From SVGLangSpace
10640
10641 String xmllang;
10642
10643 String xmlspace;
10644
10645 // From SVGExternalResourcesRequired
10646
10647 final _SVGAnimatedBooleanJs externalResourcesRequired;
10648
10649 // From SVGStylable
10650
10651 _SVGAnimatedStringJs get _className() native "return this.className;";
10652
10653 // Use implementation from Element.
10654 // final _CSSStyleDeclarationJs style;
10655
10656 _CSSValueJs getPresentationAttribute(String name) native;
10657
10658 // From SVGTransformable
10659
10660 final _SVGAnimatedTransformListJs transform;
10661
10662 // From SVGLocatable
10663
10664 final _SVGElementJs farthestViewportElement;
10665
10666 final _SVGElementJs nearestViewportElement;
10667
10668 _SVGRectJs getBBox() native;
10669
10670 _SVGMatrixJs getCTM() native;
10671
10672 _SVGMatrixJs getScreenCTM() native;
10673
10674 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
10675 }
10676
10677 class _SVGGlyphElementJs extends _SVGElementJs implements SVGGlyphElement native "*SVGGlyphElement" {
10678 }
10679
10680 class _SVGGlyphRefElementJs extends _SVGElementJs implements SVGGlyphRefElement native "*SVGGlyphRefElement" {
10681
10682 num dx;
10683
10684 num dy;
10685
10686 String format;
10687
10688 String glyphRef;
10689
10690 num x;
10691
10692 num y;
10693
10694 // From SVGURIReference
10695
10696 final _SVGAnimatedStringJs href;
10697
10698 // From SVGStylable
10699
10700 _SVGAnimatedStringJs get _className() native "return this.className;";
10701
10702 // Use implementation from Element.
10703 // final _CSSStyleDeclarationJs style;
10704
10705 _CSSValueJs getPresentationAttribute(String name) native;
10706 }
10707
10708 class _SVGGradientElementJs extends _SVGElementJs implements SVGGradientElement native "*SVGGradientElement" {
10709
10710 static final int SVG_SPREADMETHOD_PAD = 1;
10711
10712 static final int SVG_SPREADMETHOD_REFLECT = 2;
10713
10714 static final int SVG_SPREADMETHOD_REPEAT = 3;
10715
10716 static final int SVG_SPREADMETHOD_UNKNOWN = 0;
10717
10718 final _SVGAnimatedTransformListJs gradientTransform;
10719
10720 final _SVGAnimatedEnumerationJs gradientUnits;
10721
10722 final _SVGAnimatedEnumerationJs spreadMethod;
10723
10724 // From SVGURIReference
10725
10726 final _SVGAnimatedStringJs href;
10727
10728 // From SVGExternalResourcesRequired
10729
10730 final _SVGAnimatedBooleanJs externalResourcesRequired;
10731
10732 // From SVGStylable
10733
10734 _SVGAnimatedStringJs get _className() native "return this.className;";
10735
10736 // Use implementation from Element.
10737 // final _CSSStyleDeclarationJs style;
10738
10739 _CSSValueJs getPresentationAttribute(String name) native;
10740 }
10741
10742 class _SVGHKernElementJs extends _SVGElementJs implements SVGHKernElement native "*SVGHKernElement" {
10743 }
10744
10745 class _SVGImageElementJs extends _SVGElementJs implements SVGImageElement native "*SVGImageElement" {
10746
10747 final _SVGAnimatedLengthJs height;
10748
10749 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
10750
10751 final _SVGAnimatedLengthJs width;
10752
10753 final _SVGAnimatedLengthJs x;
10754
10755 final _SVGAnimatedLengthJs y;
10756
10757 // From SVGURIReference
10758
10759 final _SVGAnimatedStringJs href;
10760
10761 // From SVGTests
10762
10763 final _SVGStringListJs requiredExtensions;
10764
10765 final _SVGStringListJs requiredFeatures;
10766
10767 final _SVGStringListJs systemLanguage;
10768
10769 bool hasExtension(String extension) native;
10770
10771 // From SVGLangSpace
10772
10773 String xmllang;
10774
10775 String xmlspace;
10776
10777 // From SVGExternalResourcesRequired
10778
10779 final _SVGAnimatedBooleanJs externalResourcesRequired;
10780
10781 // From SVGStylable
10782
10783 _SVGAnimatedStringJs get _className() native "return this.className;";
10784
10785 // Use implementation from Element.
10786 // final _CSSStyleDeclarationJs style;
10787
10788 _CSSValueJs getPresentationAttribute(String name) native;
10789
10790 // From SVGTransformable
10791
10792 final _SVGAnimatedTransformListJs transform;
10793
10794 // From SVGLocatable
10795
10796 final _SVGElementJs farthestViewportElement;
10797
10798 final _SVGElementJs nearestViewportElement;
10799
10800 _SVGRectJs getBBox() native;
10801
10802 _SVGMatrixJs getCTM() native;
10803
10804 _SVGMatrixJs getScreenCTM() native;
10805
10806 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
10807 }
10808
10809 class _SVGLangSpaceJs implements SVGLangSpace native "*SVGLangSpace" {
10810
10811 String xmllang;
10812
10813 String xmlspace;
10814 }
10815
10816 class _SVGLengthJs implements SVGLength native "*SVGLength" {
10817
10818 static final int SVG_LENGTHTYPE_CM = 6;
10819
10820 static final int SVG_LENGTHTYPE_EMS = 3;
10821
10822 static final int SVG_LENGTHTYPE_EXS = 4;
10823
10824 static final int SVG_LENGTHTYPE_IN = 8;
10825
10826 static final int SVG_LENGTHTYPE_MM = 7;
10827
10828 static final int SVG_LENGTHTYPE_NUMBER = 1;
10829
10830 static final int SVG_LENGTHTYPE_PC = 10;
10831
10832 static final int SVG_LENGTHTYPE_PERCENTAGE = 2;
10833
10834 static final int SVG_LENGTHTYPE_PT = 9;
10835
10836 static final int SVG_LENGTHTYPE_PX = 5;
10837
10838 static final int SVG_LENGTHTYPE_UNKNOWN = 0;
10839
10840 final int unitType;
10841
10842 num value;
10843
10844 String valueAsString;
10845
10846 num valueInSpecifiedUnits;
10847
10848 void convertToSpecifiedUnits(int unitType) native;
10849
10850 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native;
10851 }
10852
10853 class _SVGLengthListJs implements SVGLengthList native "*SVGLengthList" {
10854
10855 final int numberOfItems;
10856
10857 _SVGLengthJs appendItem(_SVGLengthJs item) native;
10858
10859 void clear() native;
10860
10861 _SVGLengthJs getItem(int index) native;
10862
10863 _SVGLengthJs initialize(_SVGLengthJs item) native;
10864
10865 _SVGLengthJs insertItemBefore(_SVGLengthJs item, int index) native;
10866
10867 _SVGLengthJs removeItem(int index) native;
10868
10869 _SVGLengthJs replaceItem(_SVGLengthJs item, int index) native;
10870 }
10871
10872 class _SVGLineElementJs extends _SVGElementJs implements SVGLineElement native " *SVGLineElement" {
10873
10874 final _SVGAnimatedLengthJs x1;
10875
10876 final _SVGAnimatedLengthJs x2;
10877
10878 final _SVGAnimatedLengthJs y1;
10879
10880 final _SVGAnimatedLengthJs y2;
10881
10882 // From SVGTests
10883
10884 final _SVGStringListJs requiredExtensions;
10885
10886 final _SVGStringListJs requiredFeatures;
10887
10888 final _SVGStringListJs systemLanguage;
10889
10890 bool hasExtension(String extension) native;
10891
10892 // From SVGLangSpace
10893
10894 String xmllang;
10895
10896 String xmlspace;
10897
10898 // From SVGExternalResourcesRequired
10899
10900 final _SVGAnimatedBooleanJs externalResourcesRequired;
10901
10902 // From SVGStylable
10903
10904 _SVGAnimatedStringJs get _className() native "return this.className;";
10905
10906 // Use implementation from Element.
10907 // final _CSSStyleDeclarationJs style;
10908
10909 _CSSValueJs getPresentationAttribute(String name) native;
10910
10911 // From SVGTransformable
10912
10913 final _SVGAnimatedTransformListJs transform;
10914
10915 // From SVGLocatable
10916
10917 final _SVGElementJs farthestViewportElement;
10918
10919 final _SVGElementJs nearestViewportElement;
10920
10921 _SVGRectJs getBBox() native;
10922
10923 _SVGMatrixJs getCTM() native;
10924
10925 _SVGMatrixJs getScreenCTM() native;
10926
10927 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
10928 }
10929
10930 class _SVGLinearGradientElementJs extends _SVGGradientElementJs implements SVGLi nearGradientElement native "*SVGLinearGradientElement" {
10931
10932 final _SVGAnimatedLengthJs x1;
10933
10934 final _SVGAnimatedLengthJs x2;
10935
10936 final _SVGAnimatedLengthJs y1;
10937
10938 final _SVGAnimatedLengthJs y2;
10939 }
10940
10941 class _SVGLocatableJs implements SVGLocatable native "*SVGLocatable" {
10942
10943 final _SVGElementJs farthestViewportElement;
10944
10945 final _SVGElementJs nearestViewportElement;
10946
10947 _SVGRectJs getBBox() native;
10948
10949 _SVGMatrixJs getCTM() native;
10950
10951 _SVGMatrixJs getScreenCTM() native;
10952
10953 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
10954 }
10955
10956 class _SVGMPathElementJs extends _SVGElementJs implements SVGMPathElement native "*SVGMPathElement" {
10957
10958 // From SVGURIReference
10959
10960 final _SVGAnimatedStringJs href;
10961
10962 // From SVGExternalResourcesRequired
10963
10964 final _SVGAnimatedBooleanJs externalResourcesRequired;
10965 }
10966
10967 class _SVGMarkerElementJs extends _SVGElementJs implements SVGMarkerElement nati ve "*SVGMarkerElement" {
10968
10969 static final int SVG_MARKERUNITS_STROKEWIDTH = 2;
10970
10971 static final int SVG_MARKERUNITS_UNKNOWN = 0;
10972
10973 static final int SVG_MARKERUNITS_USERSPACEONUSE = 1;
10974
10975 static final int SVG_MARKER_ORIENT_ANGLE = 2;
10976
10977 static final int SVG_MARKER_ORIENT_AUTO = 1;
10978
10979 static final int SVG_MARKER_ORIENT_UNKNOWN = 0;
10980
10981 final _SVGAnimatedLengthJs markerHeight;
10982
10983 final _SVGAnimatedEnumerationJs markerUnits;
10984
10985 final _SVGAnimatedLengthJs markerWidth;
10986
10987 final _SVGAnimatedAngleJs orientAngle;
10988
10989 final _SVGAnimatedEnumerationJs orientType;
10990
10991 final _SVGAnimatedLengthJs refX;
10992
10993 final _SVGAnimatedLengthJs refY;
10994
10995 void setOrientToAngle(_SVGAngleJs angle) native;
10996
10997 void setOrientToAuto() native;
10998
10999 // From SVGLangSpace
11000
11001 String xmllang;
11002
11003 String xmlspace;
11004
11005 // From SVGExternalResourcesRequired
11006
11007 final _SVGAnimatedBooleanJs externalResourcesRequired;
11008
11009 // From SVGStylable
11010
11011 _SVGAnimatedStringJs get _className() native "return this.className;";
11012
11013 // Use implementation from Element.
11014 // final _CSSStyleDeclarationJs style;
11015
11016 _CSSValueJs getPresentationAttribute(String name) native;
11017
11018 // From SVGFitToViewBox
11019
11020 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
11021
11022 final _SVGAnimatedRectJs viewBox;
11023 }
11024
11025 class _SVGMaskElementJs extends _SVGElementJs implements SVGMaskElement native " *SVGMaskElement" {
11026
11027 final _SVGAnimatedLengthJs height;
11028
11029 final _SVGAnimatedEnumerationJs maskContentUnits;
11030
11031 final _SVGAnimatedEnumerationJs maskUnits;
11032
11033 final _SVGAnimatedLengthJs width;
11034
11035 final _SVGAnimatedLengthJs x;
11036
11037 final _SVGAnimatedLengthJs y;
11038
11039 // From SVGTests
11040
11041 final _SVGStringListJs requiredExtensions;
11042
11043 final _SVGStringListJs requiredFeatures;
11044
11045 final _SVGStringListJs systemLanguage;
11046
11047 bool hasExtension(String extension) native;
11048
11049 // From SVGLangSpace
11050
11051 String xmllang;
11052
11053 String xmlspace;
11054
11055 // From SVGExternalResourcesRequired
11056
11057 final _SVGAnimatedBooleanJs externalResourcesRequired;
11058
11059 // From SVGStylable
11060
11061 _SVGAnimatedStringJs get _className() native "return this.className;";
11062
11063 // Use implementation from Element.
11064 // final _CSSStyleDeclarationJs style;
11065
11066 _CSSValueJs getPresentationAttribute(String name) native;
11067 }
11068
11069 class _SVGMatrixJs implements SVGMatrix native "*SVGMatrix" {
11070
11071 num a;
11072
11073 num b;
11074
11075 num c;
11076
11077 num d;
11078
11079 num e;
11080
11081 num f;
11082
11083 _SVGMatrixJs flipX() native;
11084
11085 _SVGMatrixJs flipY() native;
11086
11087 _SVGMatrixJs inverse() native;
11088
11089 _SVGMatrixJs multiply(_SVGMatrixJs secondMatrix) native;
11090
11091 _SVGMatrixJs rotate(num angle) native;
11092
11093 _SVGMatrixJs rotateFromVector(num x, num y) native;
11094
11095 _SVGMatrixJs scale(num scaleFactor) native;
11096
11097 _SVGMatrixJs scaleNonUniform(num scaleFactorX, num scaleFactorY) native;
11098
11099 _SVGMatrixJs skewX(num angle) native;
11100
11101 _SVGMatrixJs skewY(num angle) native;
11102
11103 _SVGMatrixJs translate(num x, num y) native;
11104 }
11105
11106 class _SVGMetadataElementJs extends _SVGElementJs implements SVGMetadataElement native "*SVGMetadataElement" {
11107 }
11108
11109 class _SVGMissingGlyphElementJs extends _SVGElementJs implements SVGMissingGlyph Element native "*SVGMissingGlyphElement" {
11110 }
11111
11112 class _SVGNumberJs implements SVGNumber native "*SVGNumber" {
11113
11114 num value;
11115 }
11116
11117 class _SVGNumberListJs implements SVGNumberList native "*SVGNumberList" {
11118
11119 final int numberOfItems;
11120
11121 _SVGNumberJs appendItem(_SVGNumberJs item) native;
11122
11123 void clear() native;
11124
11125 _SVGNumberJs getItem(int index) native;
11126
11127 _SVGNumberJs initialize(_SVGNumberJs item) native;
11128
11129 _SVGNumberJs insertItemBefore(_SVGNumberJs item, int index) native;
11130
11131 _SVGNumberJs removeItem(int index) native;
11132
11133 _SVGNumberJs replaceItem(_SVGNumberJs item, int index) native;
11134 }
11135
11136 class _SVGPaintJs extends _SVGColorJs implements SVGPaint native "*SVGPaint" {
11137
11138 static final int SVG_PAINTTYPE_CURRENTCOLOR = 102;
11139
11140 static final int SVG_PAINTTYPE_NONE = 101;
11141
11142 static final int SVG_PAINTTYPE_RGBCOLOR = 1;
11143
11144 static final int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
11145
11146 static final int SVG_PAINTTYPE_UNKNOWN = 0;
11147
11148 static final int SVG_PAINTTYPE_URI = 107;
11149
11150 static final int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
11151
11152 static final int SVG_PAINTTYPE_URI_NONE = 103;
11153
11154 static final int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
11155
11156 static final int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
11157
11158 final int paintType;
11159
11160 final String uri;
11161
11162 void setPaint(int paintType, String uri, String rgbColor, String iccColor) nat ive;
11163
11164 void setUri(String uri) native;
11165 }
11166
11167 class _SVGPathElementJs extends _SVGElementJs implements SVGPathElement native " *SVGPathElement" {
11168
11169 final _SVGPathSegListJs animatedNormalizedPathSegList;
11170
11171 final _SVGPathSegListJs animatedPathSegList;
11172
11173 final _SVGPathSegListJs normalizedPathSegList;
11174
11175 final _SVGAnimatedNumberJs pathLength;
11176
11177 final _SVGPathSegListJs pathSegList;
11178
11179 _SVGPathSegArcAbsJs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num a ngle, bool largeArcFlag, bool sweepFlag) native;
11180
11181 _SVGPathSegArcRelJs createSVGPathSegArcRel(num x, num y, num r1, num r2, num a ngle, bool largeArcFlag, bool sweepFlag) native;
11182
11183 _SVGPathSegClosePathJs createSVGPathSegClosePath() native;
11184
11185 _SVGPathSegCurvetoCubicAbsJs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1, num y1, num x2, num y2) native;
11186
11187 _SVGPathSegCurvetoCubicRelJs createSVGPathSegCurvetoCubicRel(num x, num y, num x1, num y1, num x2, num y2) native;
11188
11189 _SVGPathSegCurvetoCubicSmoothAbsJs createSVGPathSegCurvetoCubicSmoothAbs(num x , num y, num x2, num y2) native;
11190
11191 _SVGPathSegCurvetoCubicSmoothRelJs createSVGPathSegCurvetoCubicSmoothRel(num x , num y, num x2, num y2) native;
11192
11193 _SVGPathSegCurvetoQuadraticAbsJs createSVGPathSegCurvetoQuadraticAbs(num x, nu m y, num x1, num y1) native;
11194
11195 _SVGPathSegCurvetoQuadraticRelJs createSVGPathSegCurvetoQuadraticRel(num x, nu m y, num x1, num y1) native;
11196
11197 _SVGPathSegCurvetoQuadraticSmoothAbsJs createSVGPathSegCurvetoQuadraticSmoothA bs(num x, num y) native;
11198
11199 _SVGPathSegCurvetoQuadraticSmoothRelJs createSVGPathSegCurvetoQuadraticSmoothR el(num x, num y) native;
11200
11201 _SVGPathSegLinetoAbsJs createSVGPathSegLinetoAbs(num x, num y) native;
11202
11203 _SVGPathSegLinetoHorizontalAbsJs createSVGPathSegLinetoHorizontalAbs(num x) na tive;
11204
11205 _SVGPathSegLinetoHorizontalRelJs createSVGPathSegLinetoHorizontalRel(num x) na tive;
11206
11207 _SVGPathSegLinetoRelJs createSVGPathSegLinetoRel(num x, num y) native;
11208
11209 _SVGPathSegLinetoVerticalAbsJs createSVGPathSegLinetoVerticalAbs(num y) native ;
11210
11211 _SVGPathSegLinetoVerticalRelJs createSVGPathSegLinetoVerticalRel(num y) native ;
11212
11213 _SVGPathSegMovetoAbsJs createSVGPathSegMovetoAbs(num x, num y) native;
11214
11215 _SVGPathSegMovetoRelJs createSVGPathSegMovetoRel(num x, num y) native;
11216
11217 int getPathSegAtLength(num distance) native;
11218
11219 _SVGPointJs getPointAtLength(num distance) native;
11220
11221 num getTotalLength() native;
11222
11223 // From SVGTests
11224
11225 final _SVGStringListJs requiredExtensions;
11226
11227 final _SVGStringListJs requiredFeatures;
11228
11229 final _SVGStringListJs systemLanguage;
11230
11231 bool hasExtension(String extension) native;
11232
11233 // From SVGLangSpace
11234
11235 String xmllang;
11236
11237 String xmlspace;
11238
11239 // From SVGExternalResourcesRequired
11240
11241 final _SVGAnimatedBooleanJs externalResourcesRequired;
11242
11243 // From SVGStylable
11244
11245 _SVGAnimatedStringJs get _className() native "return this.className;";
11246
11247 // Use implementation from Element.
11248 // final _CSSStyleDeclarationJs style;
11249
11250 _CSSValueJs getPresentationAttribute(String name) native;
11251
11252 // From SVGTransformable
11253
11254 final _SVGAnimatedTransformListJs transform;
11255
11256 // From SVGLocatable
11257
11258 final _SVGElementJs farthestViewportElement;
11259
11260 final _SVGElementJs nearestViewportElement;
11261
11262 _SVGRectJs getBBox() native;
11263
11264 _SVGMatrixJs getCTM() native;
11265
11266 _SVGMatrixJs getScreenCTM() native;
11267
11268 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
11269 }
11270
11271 class _SVGPathSegJs implements SVGPathSeg native "*SVGPathSeg" {
11272
11273 static final int PATHSEG_ARC_ABS = 10;
11274
11275 static final int PATHSEG_ARC_REL = 11;
11276
11277 static final int PATHSEG_CLOSEPATH = 1;
11278
11279 static final int PATHSEG_CURVETO_CUBIC_ABS = 6;
11280
11281 static final int PATHSEG_CURVETO_CUBIC_REL = 7;
11282
11283 static final int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
11284
11285 static final int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
11286
11287 static final int PATHSEG_CURVETO_QUADRATIC_ABS = 8;
11288
11289 static final int PATHSEG_CURVETO_QUADRATIC_REL = 9;
11290
11291 static final int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
11292
11293 static final int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
11294
11295 static final int PATHSEG_LINETO_ABS = 4;
11296
11297 static final int PATHSEG_LINETO_HORIZONTAL_ABS = 12;
11298
11299 static final int PATHSEG_LINETO_HORIZONTAL_REL = 13;
11300
11301 static final int PATHSEG_LINETO_REL = 5;
11302
11303 static final int PATHSEG_LINETO_VERTICAL_ABS = 14;
11304
11305 static final int PATHSEG_LINETO_VERTICAL_REL = 15;
11306
11307 static final int PATHSEG_MOVETO_ABS = 2;
11308
11309 static final int PATHSEG_MOVETO_REL = 3;
11310
11311 static final int PATHSEG_UNKNOWN = 0;
11312
11313 final int pathSegType;
11314
11315 final String pathSegTypeAsLetter;
11316 }
11317
11318 class _SVGPathSegArcAbsJs extends _SVGPathSegJs implements SVGPathSegArcAbs nati ve "*SVGPathSegArcAbs" {
11319
11320 num angle;
11321
11322 bool largeArcFlag;
11323
11324 num r1;
11325
11326 num r2;
11327
11328 bool sweepFlag;
11329
11330 num x;
11331
11332 num y;
11333 }
11334
11335 class _SVGPathSegArcRelJs extends _SVGPathSegJs implements SVGPathSegArcRel nati ve "*SVGPathSegArcRel" {
11336
11337 num angle;
11338
11339 bool largeArcFlag;
11340
11341 num r1;
11342
11343 num r2;
11344
11345 bool sweepFlag;
11346
11347 num x;
11348
11349 num y;
11350 }
11351
11352 class _SVGPathSegClosePathJs extends _SVGPathSegJs implements SVGPathSegClosePat h native "*SVGPathSegClosePath" {
11353 }
11354
11355 class _SVGPathSegCurvetoCubicAbsJs extends _SVGPathSegJs implements SVGPathSegCu rvetoCubicAbs native "*SVGPathSegCurvetoCubicAbs" {
11356
11357 num x;
11358
11359 num x1;
11360
11361 num x2;
11362
11363 num y;
11364
11365 num y1;
11366
11367 num y2;
11368 }
11369
11370 class _SVGPathSegCurvetoCubicRelJs extends _SVGPathSegJs implements SVGPathSegCu rvetoCubicRel native "*SVGPathSegCurvetoCubicRel" {
11371
11372 num x;
11373
11374 num x1;
11375
11376 num x2;
11377
11378 num y;
11379
11380 num y1;
11381
11382 num y2;
11383 }
11384
11385 class _SVGPathSegCurvetoCubicSmoothAbsJs extends _SVGPathSegJs implements SVGPat hSegCurvetoCubicSmoothAbs native "*SVGPathSegCurvetoCubicSmoothAbs" {
11386
11387 num x;
11388
11389 num x2;
11390
11391 num y;
11392
11393 num y2;
11394 }
11395
11396 class _SVGPathSegCurvetoCubicSmoothRelJs extends _SVGPathSegJs implements SVGPat hSegCurvetoCubicSmoothRel native "*SVGPathSegCurvetoCubicSmoothRel" {
11397
11398 num x;
11399
11400 num x2;
11401
11402 num y;
11403
11404 num y2;
11405 }
11406
11407 class _SVGPathSegCurvetoQuadraticAbsJs extends _SVGPathSegJs implements SVGPathS egCurvetoQuadraticAbs native "*SVGPathSegCurvetoQuadraticAbs" {
11408
11409 num x;
11410
11411 num x1;
11412
11413 num y;
11414
11415 num y1;
11416 }
11417
11418 class _SVGPathSegCurvetoQuadraticRelJs extends _SVGPathSegJs implements SVGPathS egCurvetoQuadraticRel native "*SVGPathSegCurvetoQuadraticRel" {
11419
11420 num x;
11421
11422 num x1;
11423
11424 num y;
11425
11426 num y1;
11427 }
11428
11429 class _SVGPathSegCurvetoQuadraticSmoothAbsJs extends _SVGPathSegJs implements SV GPathSegCurvetoQuadraticSmoothAbs native "*SVGPathSegCurvetoQuadraticSmoothAbs" {
11430
11431 num x;
11432
11433 num y;
11434 }
11435
11436 class _SVGPathSegCurvetoQuadraticSmoothRelJs extends _SVGPathSegJs implements SV GPathSegCurvetoQuadraticSmoothRel native "*SVGPathSegCurvetoQuadraticSmoothRel" {
11437
11438 num x;
11439
11440 num y;
11441 }
11442
11443 class _SVGPathSegLinetoAbsJs extends _SVGPathSegJs implements SVGPathSegLinetoAb s native "*SVGPathSegLinetoAbs" {
11444
11445 num x;
11446
11447 num y;
11448 }
11449
11450 class _SVGPathSegLinetoHorizontalAbsJs extends _SVGPathSegJs implements SVGPathS egLinetoHorizontalAbs native "*SVGPathSegLinetoHorizontalAbs" {
11451
11452 num x;
11453 }
11454
11455 class _SVGPathSegLinetoHorizontalRelJs extends _SVGPathSegJs implements SVGPathS egLinetoHorizontalRel native "*SVGPathSegLinetoHorizontalRel" {
11456
11457 num x;
11458 }
11459
11460 class _SVGPathSegLinetoRelJs extends _SVGPathSegJs implements SVGPathSegLinetoRe l native "*SVGPathSegLinetoRel" {
11461
11462 num x;
11463
11464 num y;
11465 }
11466
11467 class _SVGPathSegLinetoVerticalAbsJs extends _SVGPathSegJs implements SVGPathSeg LinetoVerticalAbs native "*SVGPathSegLinetoVerticalAbs" {
11468
11469 num y;
11470 }
11471
11472 class _SVGPathSegLinetoVerticalRelJs extends _SVGPathSegJs implements SVGPathSeg LinetoVerticalRel native "*SVGPathSegLinetoVerticalRel" {
11473
11474 num y;
11475 }
11476
11477 class _SVGPathSegListJs implements SVGPathSegList native "*SVGPathSegList" {
11478
11479 final int numberOfItems;
11480
11481 _SVGPathSegJs appendItem(_SVGPathSegJs newItem) native;
11482
11483 void clear() native;
11484
11485 _SVGPathSegJs getItem(int index) native;
11486
11487 _SVGPathSegJs initialize(_SVGPathSegJs newItem) native;
11488
11489 _SVGPathSegJs insertItemBefore(_SVGPathSegJs newItem, int index) native;
11490
11491 _SVGPathSegJs removeItem(int index) native;
11492
11493 _SVGPathSegJs replaceItem(_SVGPathSegJs newItem, int index) native;
11494 }
11495
11496 class _SVGPathSegMovetoAbsJs extends _SVGPathSegJs implements SVGPathSegMovetoAb s native "*SVGPathSegMovetoAbs" {
11497
11498 num x;
11499
11500 num y;
11501 }
11502
11503 class _SVGPathSegMovetoRelJs extends _SVGPathSegJs implements SVGPathSegMovetoRe l native "*SVGPathSegMovetoRel" {
11504
11505 num x;
11506
11507 num y;
11508 }
11509
11510 class _SVGPatternElementJs extends _SVGElementJs implements SVGPatternElement na tive "*SVGPatternElement" {
11511
11512 final _SVGAnimatedLengthJs height;
11513
11514 final _SVGAnimatedEnumerationJs patternContentUnits;
11515
11516 final _SVGAnimatedTransformListJs patternTransform;
11517
11518 final _SVGAnimatedEnumerationJs patternUnits;
11519
11520 final _SVGAnimatedLengthJs width;
11521
11522 final _SVGAnimatedLengthJs x;
11523
11524 final _SVGAnimatedLengthJs y;
11525
11526 // From SVGURIReference
11527
11528 final _SVGAnimatedStringJs href;
11529
11530 // From SVGTests
11531
11532 final _SVGStringListJs requiredExtensions;
11533
11534 final _SVGStringListJs requiredFeatures;
11535
11536 final _SVGStringListJs systemLanguage;
11537
11538 bool hasExtension(String extension) native;
11539
11540 // From SVGLangSpace
11541
11542 String xmllang;
11543
11544 String xmlspace;
11545
11546 // From SVGExternalResourcesRequired
11547
11548 final _SVGAnimatedBooleanJs externalResourcesRequired;
11549
11550 // From SVGStylable
11551
11552 _SVGAnimatedStringJs get _className() native "return this.className;";
11553
11554 // Use implementation from Element.
11555 // final _CSSStyleDeclarationJs style;
11556
11557 _CSSValueJs getPresentationAttribute(String name) native;
11558
11559 // From SVGFitToViewBox
11560
11561 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
11562
11563 final _SVGAnimatedRectJs viewBox;
11564 }
11565
11566 class _SVGPointJs implements SVGPoint native "*SVGPoint" {
11567
11568 num x;
11569
11570 num y;
11571
11572 _SVGPointJs matrixTransform(_SVGMatrixJs matrix) native;
11573 }
11574
11575 class _SVGPointListJs implements SVGPointList native "*SVGPointList" {
11576
11577 final int numberOfItems;
11578
11579 _SVGPointJs appendItem(_SVGPointJs item) native;
11580
11581 void clear() native;
11582
11583 _SVGPointJs getItem(int index) native;
11584
11585 _SVGPointJs initialize(_SVGPointJs item) native;
11586
11587 _SVGPointJs insertItemBefore(_SVGPointJs item, int index) native;
11588
11589 _SVGPointJs removeItem(int index) native;
11590
11591 _SVGPointJs replaceItem(_SVGPointJs item, int index) native;
11592 }
11593
11594 class _SVGPolygonElementJs extends _SVGElementJs implements SVGPolygonElement na tive "*SVGPolygonElement" {
11595
11596 final _SVGPointListJs animatedPoints;
11597
11598 final _SVGPointListJs points;
11599
11600 // From SVGTests
11601
11602 final _SVGStringListJs requiredExtensions;
11603
11604 final _SVGStringListJs requiredFeatures;
11605
11606 final _SVGStringListJs systemLanguage;
11607
11608 bool hasExtension(String extension) native;
11609
11610 // From SVGLangSpace
11611
11612 String xmllang;
11613
11614 String xmlspace;
11615
11616 // From SVGExternalResourcesRequired
11617
11618 final _SVGAnimatedBooleanJs externalResourcesRequired;
11619
11620 // From SVGStylable
11621
11622 _SVGAnimatedStringJs get _className() native "return this.className;";
11623
11624 // Use implementation from Element.
11625 // final _CSSStyleDeclarationJs style;
11626
11627 _CSSValueJs getPresentationAttribute(String name) native;
11628
11629 // From SVGTransformable
11630
11631 final _SVGAnimatedTransformListJs transform;
11632
11633 // From SVGLocatable
11634
11635 final _SVGElementJs farthestViewportElement;
11636
11637 final _SVGElementJs nearestViewportElement;
11638
11639 _SVGRectJs getBBox() native;
11640
11641 _SVGMatrixJs getCTM() native;
11642
11643 _SVGMatrixJs getScreenCTM() native;
11644
11645 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
11646 }
11647
11648 class _SVGPolylineElementJs extends _SVGElementJs implements SVGPolylineElement native "*SVGPolylineElement" {
11649
11650 final _SVGPointListJs animatedPoints;
11651
11652 final _SVGPointListJs points;
11653
11654 // From SVGTests
11655
11656 final _SVGStringListJs requiredExtensions;
11657
11658 final _SVGStringListJs requiredFeatures;
11659
11660 final _SVGStringListJs systemLanguage;
11661
11662 bool hasExtension(String extension) native;
11663
11664 // From SVGLangSpace
11665
11666 String xmllang;
11667
11668 String xmlspace;
11669
11670 // From SVGExternalResourcesRequired
11671
11672 final _SVGAnimatedBooleanJs externalResourcesRequired;
11673
11674 // From SVGStylable
11675
11676 _SVGAnimatedStringJs get _className() native "return this.className;";
11677
11678 // Use implementation from Element.
11679 // final _CSSStyleDeclarationJs style;
11680
11681 _CSSValueJs getPresentationAttribute(String name) native;
11682
11683 // From SVGTransformable
11684
11685 final _SVGAnimatedTransformListJs transform;
11686
11687 // From SVGLocatable
11688
11689 final _SVGElementJs farthestViewportElement;
11690
11691 final _SVGElementJs nearestViewportElement;
11692
11693 _SVGRectJs getBBox() native;
11694
11695 _SVGMatrixJs getCTM() native;
11696
11697 _SVGMatrixJs getScreenCTM() native;
11698
11699 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
11700 }
11701
11702 class _SVGPreserveAspectRatioJs implements SVGPreserveAspectRatio native "*SVGPr eserveAspectRatio" {
11703
11704 static final int SVG_MEETORSLICE_MEET = 1;
11705
11706 static final int SVG_MEETORSLICE_SLICE = 2;
11707
11708 static final int SVG_MEETORSLICE_UNKNOWN = 0;
11709
11710 static final int SVG_PRESERVEASPECTRATIO_NONE = 1;
11711
11712 static final int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
11713
11714 static final int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
11715
11716 static final int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
11717
11718 static final int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;
11719
11720 static final int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;
11721
11722 static final int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;
11723
11724 static final int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;
11725
11726 static final int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;
11727
11728 static final int SVG_PRESERVEASPECTRATIO_XMINYMID = 5;
11729
11730 static final int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;
11731
11732 int align;
11733
11734 int meetOrSlice;
11735 }
11736
11737 class _SVGRadialGradientElementJs extends _SVGGradientElementJs implements SVGRa dialGradientElement native "*SVGRadialGradientElement" {
11738
11739 final _SVGAnimatedLengthJs cx;
11740
11741 final _SVGAnimatedLengthJs cy;
11742
11743 final _SVGAnimatedLengthJs fx;
11744
11745 final _SVGAnimatedLengthJs fy;
11746
11747 final _SVGAnimatedLengthJs r;
11748 }
11749
11750 class _SVGRectJs implements SVGRect native "*SVGRect" {
11751
11752 num height;
11753
11754 num width;
11755
11756 num x;
11757
11758 num y;
11759 }
11760
11761 class _SVGRectElementJs extends _SVGElementJs implements SVGRectElement native " *SVGRectElement" {
11762
11763 final _SVGAnimatedLengthJs height;
11764
11765 final _SVGAnimatedLengthJs rx;
11766
11767 final _SVGAnimatedLengthJs ry;
11768
11769 final _SVGAnimatedLengthJs width;
11770
11771 final _SVGAnimatedLengthJs x;
11772
11773 final _SVGAnimatedLengthJs y;
11774
11775 // From SVGTests
11776
11777 final _SVGStringListJs requiredExtensions;
11778
11779 final _SVGStringListJs requiredFeatures;
11780
11781 final _SVGStringListJs systemLanguage;
11782
11783 bool hasExtension(String extension) native;
11784
11785 // From SVGLangSpace
11786
11787 String xmllang;
11788
11789 String xmlspace;
11790
11791 // From SVGExternalResourcesRequired
11792
11793 final _SVGAnimatedBooleanJs externalResourcesRequired;
11794
11795 // From SVGStylable
11796
11797 _SVGAnimatedStringJs get _className() native "return this.className;";
11798
11799 // Use implementation from Element.
11800 // final _CSSStyleDeclarationJs style;
11801
11802 _CSSValueJs getPresentationAttribute(String name) native;
11803
11804 // From SVGTransformable
11805
11806 final _SVGAnimatedTransformListJs transform;
11807
11808 // From SVGLocatable
11809
11810 final _SVGElementJs farthestViewportElement;
11811
11812 final _SVGElementJs nearestViewportElement;
11813
11814 _SVGRectJs getBBox() native;
11815
11816 _SVGMatrixJs getCTM() native;
11817
11818 _SVGMatrixJs getScreenCTM() native;
11819
11820 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
11821 }
11822
11823 class _SVGRenderingIntentJs implements SVGRenderingIntent native "*SVGRenderingI ntent" {
11824
11825 static final int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5;
11826
11827 static final int RENDERING_INTENT_AUTO = 1;
11828
11829 static final int RENDERING_INTENT_PERCEPTUAL = 2;
11830
11831 static final int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3;
11832
11833 static final int RENDERING_INTENT_SATURATION = 4;
11834
11835 static final int RENDERING_INTENT_UNKNOWN = 0;
11836 }
11837
11838 class _SVGSVGElementJs extends _SVGElementJs implements SVGSVGElement native "*S VGSVGElement" {
11839
11840 String contentScriptType;
11841
11842 String contentStyleType;
11843
11844 num currentScale;
11845
11846 final _SVGPointJs currentTranslate;
11847
11848 final _SVGAnimatedLengthJs height;
11849
11850 final num pixelUnitToMillimeterX;
11851
11852 final num pixelUnitToMillimeterY;
11853
11854 final num screenPixelToMillimeterX;
11855
11856 final num screenPixelToMillimeterY;
11857
11858 bool useCurrentView;
11859
11860 final _SVGRectJs viewport;
11861
11862 final _SVGAnimatedLengthJs width;
11863
11864 final _SVGAnimatedLengthJs x;
11865
11866 final _SVGAnimatedLengthJs y;
11867
11868 bool animationsPaused() native;
11869
11870 bool checkEnclosure(_SVGElementJs element, _SVGRectJs rect) native;
11871
11872 bool checkIntersection(_SVGElementJs element, _SVGRectJs rect) native;
11873
11874 _SVGAngleJs createSVGAngle() native;
11875
11876 _SVGLengthJs createSVGLength() native;
11877
11878 _SVGMatrixJs createSVGMatrix() native;
11879
11880 _SVGNumberJs createSVGNumber() native;
11881
11882 _SVGPointJs createSVGPoint() native;
11883
11884 _SVGRectJs createSVGRect() native;
11885
11886 _SVGTransformJs createSVGTransform() native;
11887
11888 _SVGTransformJs createSVGTransformFromMatrix(_SVGMatrixJs matrix) native;
11889
11890 void deselectAll() native;
11891
11892 void forceRedraw() native;
11893
11894 num getCurrentTime() native;
11895
11896 _ElementJs getElementById(String elementId) native;
11897
11898 _NodeListJs getEnclosureList(_SVGRectJs rect, _SVGElementJs referenceElement) native;
11899
11900 _NodeListJs getIntersectionList(_SVGRectJs rect, _SVGElementJs referenceElemen t) native;
11901
11902 void pauseAnimations() native;
11903
11904 void setCurrentTime(num seconds) native;
11905
11906 int suspendRedraw(int maxWaitMilliseconds) native;
11907
11908 void unpauseAnimations() native;
11909
11910 void unsuspendRedraw(int suspendHandleId) native;
11911
11912 void unsuspendRedrawAll() native;
11913
11914 // From SVGTests
11915
11916 final _SVGStringListJs requiredExtensions;
11917
11918 final _SVGStringListJs requiredFeatures;
11919
11920 final _SVGStringListJs systemLanguage;
11921
11922 bool hasExtension(String extension) native;
11923
11924 // From SVGLangSpace
11925
11926 String xmllang;
11927
11928 String xmlspace;
11929
11930 // From SVGExternalResourcesRequired
11931
11932 final _SVGAnimatedBooleanJs externalResourcesRequired;
11933
11934 // From SVGStylable
11935
11936 _SVGAnimatedStringJs get _className() native "return this.className;";
11937
11938 // Use implementation from Element.
11939 // final _CSSStyleDeclarationJs style;
11940
11941 _CSSValueJs getPresentationAttribute(String name) native;
11942
11943 // From SVGLocatable
11944
11945 final _SVGElementJs farthestViewportElement;
11946
11947 final _SVGElementJs nearestViewportElement;
11948
11949 _SVGRectJs getBBox() native;
11950
11951 _SVGMatrixJs getCTM() native;
11952
11953 _SVGMatrixJs getScreenCTM() native;
11954
11955 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
11956
11957 // From SVGFitToViewBox
11958
11959 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
11960
11961 final _SVGAnimatedRectJs viewBox;
11962
11963 // From SVGZoomAndPan
11964
11965 int zoomAndPan;
11966 }
11967
11968 class _SVGScriptElementJs extends _SVGElementJs implements SVGScriptElement nati ve "*SVGScriptElement" {
11969
11970 String type;
11971
11972 // From SVGURIReference
11973
11974 final _SVGAnimatedStringJs href;
11975
11976 // From SVGExternalResourcesRequired
11977
11978 final _SVGAnimatedBooleanJs externalResourcesRequired;
11979 }
11980
11981 class _SVGSetElementJs extends _SVGAnimationElementJs implements SVGSetElement n ative "*SVGSetElement" {
11982 }
11983
11984 class _SVGStopElementJs extends _SVGElementJs implements SVGStopElement native " *SVGStopElement" {
11985
11986 final _SVGAnimatedNumberJs offset;
11987
11988 // From SVGStylable
11989
11990 _SVGAnimatedStringJs get _className() native "return this.className;";
11991
11992 // Use implementation from Element.
11993 // final _CSSStyleDeclarationJs style;
11994
11995 _CSSValueJs getPresentationAttribute(String name) native;
11996 }
11997
11998 class _SVGStringListJs implements SVGStringList native "*SVGStringList" {
11999
12000 final int numberOfItems;
12001
12002 String appendItem(String item) native;
12003
12004 void clear() native;
12005
12006 String getItem(int index) native;
12007
12008 String initialize(String item) native;
12009
12010 String insertItemBefore(String item, int index) native;
12011
12012 String removeItem(int index) native;
12013
12014 String replaceItem(String item, int index) native;
12015 }
12016
12017 class _SVGStylableJs implements SVGStylable native "*SVGStylable" {
12018
12019 final _SVGAnimatedStringJs className;
12020
12021 final _CSSStyleDeclarationJs style;
12022
12023 _CSSValueJs getPresentationAttribute(String name) native;
12024 }
12025
12026 class _SVGStyleElementJs extends _SVGElementJs implements SVGStyleElement native "*SVGStyleElement" {
12027
12028 String media;
12029
12030 // Shadowing definition.
12031 String get title() native "return this.title;";
12032
12033 void set title(String value) native "this.title = value;";
12034
12035 String type;
12036
12037 // From SVGLangSpace
12038
12039 String xmllang;
12040
12041 String xmlspace;
12042 }
12043
12044 class _SVGSwitchElementJs extends _SVGElementJs implements SVGSwitchElement nati ve "*SVGSwitchElement" {
12045
12046 // From SVGTests
12047
12048 final _SVGStringListJs requiredExtensions;
12049
12050 final _SVGStringListJs requiredFeatures;
12051
12052 final _SVGStringListJs systemLanguage;
12053
12054 bool hasExtension(String extension) native;
12055
12056 // From SVGLangSpace
12057
12058 String xmllang;
12059
12060 String xmlspace;
12061
12062 // From SVGExternalResourcesRequired
12063
12064 final _SVGAnimatedBooleanJs externalResourcesRequired;
12065
12066 // From SVGStylable
12067
12068 _SVGAnimatedStringJs get _className() native "return this.className;";
12069
12070 // Use implementation from Element.
12071 // final _CSSStyleDeclarationJs style;
12072
12073 _CSSValueJs getPresentationAttribute(String name) native;
12074
12075 // From SVGTransformable
12076
12077 final _SVGAnimatedTransformListJs transform;
12078
12079 // From SVGLocatable
12080
12081 final _SVGElementJs farthestViewportElement;
12082
12083 final _SVGElementJs nearestViewportElement;
12084
12085 _SVGRectJs getBBox() native;
12086
12087 _SVGMatrixJs getCTM() native;
12088
12089 _SVGMatrixJs getScreenCTM() native;
12090
12091 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
12092 }
12093
12094 class _SVGSymbolElementJs extends _SVGElementJs implements SVGSymbolElement nati ve "*SVGSymbolElement" {
12095
12096 // From SVGLangSpace
12097
12098 String xmllang;
12099
12100 String xmlspace;
12101
12102 // From SVGExternalResourcesRequired
12103
12104 final _SVGAnimatedBooleanJs externalResourcesRequired;
12105
12106 // From SVGStylable
12107
12108 _SVGAnimatedStringJs get _className() native "return this.className;";
12109
12110 // Use implementation from Element.
12111 // final _CSSStyleDeclarationJs style;
12112
12113 _CSSValueJs getPresentationAttribute(String name) native;
12114
12115 // From SVGFitToViewBox
12116
12117 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
12118
12119 final _SVGAnimatedRectJs viewBox;
12120 }
12121
12122 class _SVGTRefElementJs extends _SVGTextPositioningElementJs implements SVGTRefE lement native "*SVGTRefElement" {
12123
12124 // From SVGURIReference
12125
12126 final _SVGAnimatedStringJs href;
12127 }
12128
12129 class _SVGTSpanElementJs extends _SVGTextPositioningElementJs implements SVGTSpa nElement native "*SVGTSpanElement" {
12130 }
12131
12132 class _SVGTestsJs implements SVGTests native "*SVGTests" {
12133
12134 final _SVGStringListJs requiredExtensions;
12135
12136 final _SVGStringListJs requiredFeatures;
12137
12138 final _SVGStringListJs systemLanguage;
12139
12140 bool hasExtension(String extension) native;
12141 }
12142
12143 class _SVGTextContentElementJs extends _SVGElementJs implements SVGTextContentEl ement native "*SVGTextContentElement" {
12144
12145 static final int LENGTHADJUST_SPACING = 1;
12146
12147 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2;
12148
12149 static final int LENGTHADJUST_UNKNOWN = 0;
12150
12151 final _SVGAnimatedEnumerationJs lengthAdjust;
12152
12153 final _SVGAnimatedLengthJs textLength;
12154
12155 int getCharNumAtPosition(_SVGPointJs point) native;
12156
12157 num getComputedTextLength() native;
12158
12159 _SVGPointJs getEndPositionOfChar(int offset) native;
12160
12161 _SVGRectJs getExtentOfChar(int offset) native;
12162
12163 int getNumberOfChars() native;
12164
12165 num getRotationOfChar(int offset) native;
12166
12167 _SVGPointJs getStartPositionOfChar(int offset) native;
12168
12169 num getSubStringLength(int offset, int length) native;
12170
12171 void selectSubString(int offset, int length) native;
12172
12173 // From SVGTests
12174
12175 final _SVGStringListJs requiredExtensions;
12176
12177 final _SVGStringListJs requiredFeatures;
12178
12179 final _SVGStringListJs systemLanguage;
12180
12181 bool hasExtension(String extension) native;
12182
12183 // From SVGLangSpace
12184
12185 String xmllang;
12186
12187 String xmlspace;
12188
12189 // From SVGExternalResourcesRequired
12190
12191 final _SVGAnimatedBooleanJs externalResourcesRequired;
12192
12193 // From SVGStylable
12194
12195 _SVGAnimatedStringJs get _className() native "return this.className;";
12196
12197 // Use implementation from Element.
12198 // final _CSSStyleDeclarationJs style;
12199
12200 _CSSValueJs getPresentationAttribute(String name) native;
12201 }
12202
12203 class _SVGTextElementJs extends _SVGTextPositioningElementJs implements SVGTextE lement native "*SVGTextElement" {
12204
12205 // From SVGTransformable
12206
12207 final _SVGAnimatedTransformListJs transform;
12208
12209 // From SVGLocatable
12210
12211 final _SVGElementJs farthestViewportElement;
12212
12213 final _SVGElementJs nearestViewportElement;
12214
12215 _SVGRectJs getBBox() native;
12216
12217 _SVGMatrixJs getCTM() native;
12218
12219 _SVGMatrixJs getScreenCTM() native;
12220
12221 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
12222 }
12223
12224 class _SVGTextPathElementJs extends _SVGTextContentElementJs implements SVGTextP athElement native "*SVGTextPathElement" {
12225
12226 static final int TEXTPATH_METHODTYPE_ALIGN = 1;
12227
12228 static final int TEXTPATH_METHODTYPE_STRETCH = 2;
12229
12230 static final int TEXTPATH_METHODTYPE_UNKNOWN = 0;
12231
12232 static final int TEXTPATH_SPACINGTYPE_AUTO = 1;
12233
12234 static final int TEXTPATH_SPACINGTYPE_EXACT = 2;
12235
12236 static final int TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
12237
12238 final _SVGAnimatedEnumerationJs method;
12239
12240 final _SVGAnimatedEnumerationJs spacing;
12241
12242 final _SVGAnimatedLengthJs startOffset;
12243
12244 // From SVGURIReference
12245
12246 final _SVGAnimatedStringJs href;
12247 }
12248
12249 class _SVGTextPositioningElementJs extends _SVGTextContentElementJs implements S VGTextPositioningElement native "*SVGTextPositioningElement" {
12250
12251 final _SVGAnimatedLengthListJs dx;
12252
12253 final _SVGAnimatedLengthListJs dy;
12254
12255 final _SVGAnimatedNumberListJs rotate;
12256
12257 final _SVGAnimatedLengthListJs x;
12258
12259 final _SVGAnimatedLengthListJs y;
12260 }
12261
12262 class _SVGTitleElementJs extends _SVGElementJs implements SVGTitleElement native "*SVGTitleElement" {
12263
12264 // From SVGLangSpace
12265
12266 String xmllang;
12267
12268 String xmlspace;
12269
12270 // From SVGStylable
12271
12272 _SVGAnimatedStringJs get _className() native "return this.className;";
12273
12274 // Use implementation from Element.
12275 // final _CSSStyleDeclarationJs style;
12276
12277 _CSSValueJs getPresentationAttribute(String name) native;
12278 }
12279
12280 class _SVGTransformJs implements SVGTransform native "*SVGTransform" {
12281
12282 static final int SVG_TRANSFORM_MATRIX = 1;
12283
12284 static final int SVG_TRANSFORM_ROTATE = 4;
12285
12286 static final int SVG_TRANSFORM_SCALE = 3;
12287
12288 static final int SVG_TRANSFORM_SKEWX = 5;
12289
12290 static final int SVG_TRANSFORM_SKEWY = 6;
12291
12292 static final int SVG_TRANSFORM_TRANSLATE = 2;
12293
12294 static final int SVG_TRANSFORM_UNKNOWN = 0;
12295
12296 final num angle;
12297
12298 final _SVGMatrixJs matrix;
12299
12300 final int type;
12301
12302 void setMatrix(_SVGMatrixJs matrix) native;
12303
12304 void setRotate(num angle, num cx, num cy) native;
12305
12306 void setScale(num sx, num sy) native;
12307
12308 void setSkewX(num angle) native;
12309
12310 void setSkewY(num angle) native;
12311
12312 void setTranslate(num tx, num ty) native;
12313 }
12314
12315 class _SVGTransformListJs implements SVGTransformList native "*SVGTransformList" {
12316
12317 final int numberOfItems;
12318
12319 _SVGTransformJs appendItem(_SVGTransformJs item) native;
12320
12321 void clear() native;
12322
12323 _SVGTransformJs consolidate() native;
12324
12325 _SVGTransformJs createSVGTransformFromMatrix(_SVGMatrixJs matrix) native;
12326
12327 _SVGTransformJs getItem(int index) native;
12328
12329 _SVGTransformJs initialize(_SVGTransformJs item) native;
12330
12331 _SVGTransformJs insertItemBefore(_SVGTransformJs item, int index) native;
12332
12333 _SVGTransformJs removeItem(int index) native;
12334
12335 _SVGTransformJs replaceItem(_SVGTransformJs item, int index) native;
12336 }
12337
12338 class _SVGTransformableJs extends _SVGLocatableJs implements SVGTransformable na tive "*SVGTransformable" {
12339
12340 final _SVGAnimatedTransformListJs transform;
12341 }
12342
12343 class _SVGURIReferenceJs implements SVGURIReference native "*SVGURIReference" {
12344
12345 final _SVGAnimatedStringJs href;
12346 }
12347
12348 class _SVGUnitTypesJs implements SVGUnitTypes native "*SVGUnitTypes" {
12349
12350 static final int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2;
12351
12352 static final int SVG_UNIT_TYPE_UNKNOWN = 0;
12353
12354 static final int SVG_UNIT_TYPE_USERSPACEONUSE = 1;
12355 }
12356
12357 class _SVGUseElementJs extends _SVGElementJs implements SVGUseElement native "*S VGUseElement" {
12358
12359 final _SVGElementInstanceJs animatedInstanceRoot;
12360
12361 final _SVGAnimatedLengthJs height;
12362
12363 final _SVGElementInstanceJs instanceRoot;
12364
12365 final _SVGAnimatedLengthJs width;
12366
12367 final _SVGAnimatedLengthJs x;
12368
12369 final _SVGAnimatedLengthJs y;
12370
12371 // From SVGURIReference
12372
12373 final _SVGAnimatedStringJs href;
12374
12375 // From SVGTests
12376
12377 final _SVGStringListJs requiredExtensions;
12378
12379 final _SVGStringListJs requiredFeatures;
12380
12381 final _SVGStringListJs systemLanguage;
12382
12383 bool hasExtension(String extension) native;
12384
12385 // From SVGLangSpace
12386
12387 String xmllang;
12388
12389 String xmlspace;
12390
12391 // From SVGExternalResourcesRequired
12392
12393 final _SVGAnimatedBooleanJs externalResourcesRequired;
12394
12395 // From SVGStylable
12396
12397 _SVGAnimatedStringJs get _className() native "return this.className;";
12398
12399 // Use implementation from Element.
12400 // final _CSSStyleDeclarationJs style;
12401
12402 _CSSValueJs getPresentationAttribute(String name) native;
12403
12404 // From SVGTransformable
12405
12406 final _SVGAnimatedTransformListJs transform;
12407
12408 // From SVGLocatable
12409
12410 final _SVGElementJs farthestViewportElement;
12411
12412 final _SVGElementJs nearestViewportElement;
12413
12414 _SVGRectJs getBBox() native;
12415
12416 _SVGMatrixJs getCTM() native;
12417
12418 _SVGMatrixJs getScreenCTM() native;
12419
12420 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
12421 }
12422
12423 class _SVGVKernElementJs extends _SVGElementJs implements SVGVKernElement native "*SVGVKernElement" {
12424 }
12425
12426 class _SVGViewElementJs extends _SVGElementJs implements SVGViewElement native " *SVGViewElement" {
12427
12428 final _SVGStringListJs viewTarget;
12429
12430 // From SVGExternalResourcesRequired
12431
12432 final _SVGAnimatedBooleanJs externalResourcesRequired;
12433
12434 // From SVGFitToViewBox
12435
12436 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
12437
12438 final _SVGAnimatedRectJs viewBox;
12439
12440 // From SVGZoomAndPan
12441
12442 int zoomAndPan;
12443 }
12444
12445 class _SVGViewSpecJs extends _SVGZoomAndPanJs implements SVGViewSpec native "*SV GViewSpec" {
12446
12447 final String preserveAspectRatioString;
12448
12449 final _SVGTransformListJs transform;
12450
12451 final String transformString;
12452
12453 final String viewBoxString;
12454
12455 final _SVGElementJs viewTarget;
12456
12457 final String viewTargetString;
12458
12459 // From SVGFitToViewBox
12460
12461 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
12462
12463 final _SVGAnimatedRectJs viewBox;
12464 }
12465
12466 class _SVGZoomAndPanJs implements SVGZoomAndPan native "*SVGZoomAndPan" {
12467
12468 static final int SVG_ZOOMANDPAN_DISABLE = 1;
12469
12470 static final int SVG_ZOOMANDPAN_MAGNIFY = 2;
12471
12472 static final int SVG_ZOOMANDPAN_UNKNOWN = 0;
12473
12474 int zoomAndPan;
12475 }
12476
12477 class _SVGZoomEventJs extends _UIEventJs implements SVGZoomEvent native "*SVGZoo mEvent" {
12478
12479 final num newScale;
12480
12481 final _SVGPointJs newTranslate;
12482
12483 final num previousScale;
12484
12485 final _SVGPointJs previousTranslate;
12486
12487 final _SVGRectJs zoomRectScreen;
12488 }
12489
12490 class _ScreenJs implements Screen native "*Screen" {
12491
12492 final int availHeight;
12493
12494 final int availLeft;
12495
12496 final int availTop;
12497
12498 final int availWidth;
12499
12500 final int colorDepth;
12501
12502 final int height;
12503
12504 final int pixelDepth;
12505
12506 final int width;
12507 }
12508
12509 class _ScriptElementJs extends _ElementJs implements ScriptElement native "*HTML ScriptElement" {
12510
12511 bool async;
12512
12513 String charset;
12514
12515 bool defer;
12516
12517 String event;
12518
12519 String htmlFor;
12520
12521 String src;
12522
12523 String text;
12524
12525 String type;
12526 }
12527
12528 class _ScriptProfileJs implements ScriptProfile native "*ScriptProfile" {
12529
12530 final _ScriptProfileNodeJs head;
12531
12532 final String title;
12533
12534 final int uid;
12535 }
12536
12537 class _ScriptProfileNodeJs implements ScriptProfileNode native "*ScriptProfileNo de" {
12538
12539 final int callUID;
12540
12541 final List children;
12542
12543 final String functionName;
12544
12545 final int lineNumber;
12546
12547 final int numberOfCalls;
12548
12549 final num selfTime;
12550
12551 final num totalTime;
12552
12553 final String url;
12554
12555 final bool visible;
12556 }
12557
12558 class _SelectElementJs extends _ElementJs implements SelectElement native "*HTML SelectElement" {
12559
12560 bool autofocus;
12561
12562 bool disabled;
12563
12564 final _FormElementJs form;
12565
12566 final _NodeListJs labels;
12567
12568 int length;
12569
12570 bool multiple;
12571
12572 String name;
12573
12574 final _HTMLOptionsCollectionJs options;
12575
12576 bool required;
12577
12578 int selectedIndex;
12579
12580 int size;
12581
12582 final String type;
12583
12584 final String validationMessage;
12585
12586 final _ValidityStateJs validity;
12587
12588 String value;
12589
12590 final bool willValidate;
12591
12592 void add(_ElementJs element, _ElementJs before) native;
12593
12594 bool checkValidity() native;
12595
12596 _NodeJs item(int index) native;
12597
12598 _NodeJs namedItem(String name) native;
12599
12600 void setCustomValidity(String error) native;
12601 }
12602
12603 class _SharedWorkerJs extends _AbstractWorkerJs implements SharedWorker native " *SharedWorker" {
12604
12605 final _MessagePortJs port;
12606 }
12607
12608 class _SharedWorkerContextJs extends _WorkerContextJs implements SharedWorkerCon text native "*SharedWorkerContext" {
12609
12610 final String name;
12611
12612 EventListener onconnect;
12613 }
12614
12615 class _SourceElementJs extends _ElementJs implements SourceElement native "*HTML SourceElement" {
12616
12617 String media;
12618
12619 String src;
12620
12621 String type;
12622 }
12623
12624 class _SpanElementJs extends _ElementJs implements SpanElement native "*HTMLSpan Element" {
12625 }
12626
12627 class _SpeechInputEventJs extends _EventJs implements SpeechInputEvent native "* SpeechInputEvent" {
12628
12629 final _SpeechInputResultListJs results;
12630 }
12631
12632 class _SpeechInputResultJs implements SpeechInputResult native "*SpeechInputResu lt" {
12633
12634 final num confidence;
12635
12636 final String utterance;
12637 }
12638
12639 class _SpeechInputResultListJs implements SpeechInputResultList native "*SpeechI nputResultList" {
12640
12641 final int length;
12642
12643 _SpeechInputResultJs item(int index) native;
12644 }
12645
12646 class _StorageJs implements Storage native "*Storage" {
12647
12648 final int length;
12649
12650 void clear() native;
12651
12652 String getItem(String key) native;
12653
12654 String key(int index) native;
12655
12656 void removeItem(String key) native;
12657
12658 void setItem(String key, String data) native;
12659 }
12660
12661 class _StorageEventJs extends _EventJs implements StorageEvent native "*StorageE vent" {
12662
12663 final String key;
12664
12665 final String newValue;
12666
12667 final String oldValue;
12668
12669 final _StorageJs storageArea;
12670
12671 final String url;
12672
12673 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring keyArg, String oldValueArg, String newValueArg, String urlArg, _StorageJs storageAreaArg) native;
12674 }
12675
12676 class _StorageInfoJs implements StorageInfo native "*StorageInfo" {
12677
12678 static final int PERSISTENT = 1;
12679
12680 static final int TEMPORARY = 0;
12681
12682 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck = null, StorageInfoErrorCallback errorCallback = null]) native;
12683
12684 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback = null, StorageInfoErrorCallback errorCallback = null]) native ;
12685 }
12686
12687 class _StyleElementJs extends _ElementJs implements StyleElement native "*HTMLSt yleElement" {
12688
12689 bool disabled;
12690
12691 String media;
12692
12693 final _StyleSheetJs sheet;
12694
12695 String type;
12696 }
12697
12698 class _StyleMediaJs implements StyleMedia native "*StyleMedia" {
12699
12700 final String type;
12701
12702 bool matchMedium(String mediaquery) native;
12703 }
12704
12705 class _StyleSheetJs implements StyleSheet native "*StyleSheet" {
12706
12707 bool disabled;
12708
12709 final String href;
12710
12711 final _MediaListJs media;
12712
12713 final _NodeJs ownerNode;
12714
12715 final _StyleSheetJs parentStyleSheet;
12716
12717 final String title;
12718
12719 final String type;
12720 }
12721
12722 class _StyleSheetListJs implements StyleSheetList native "*StyleSheetList" {
12723
12724 final int length;
12725
12726 _StyleSheetJs operator[](int index) native "return this[index];";
12727
12728 void operator[]=(int index, _StyleSheetJs value) {
12729 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
12730 }
12731 // -- start List<StyleSheet> mixins.
12732 // StyleSheet is the element type.
12733
12734 // From Iterable<StyleSheet>:
12735
12736 Iterator<StyleSheet> iterator() {
12737 // Note: NodeLists are not fixed size. And most probably length shouldn't
12738 // be cached in both iterator _and_ forEach method. For now caching it
12739 // for consistency.
12740 return new _FixedSizeListIterator<StyleSheet>(this);
12741 }
12742
12743 // From Collection<StyleSheet>:
12744
12745 void add(StyleSheet value) {
12746 throw new UnsupportedOperationException("Cannot add to immutable List.");
12747 }
12748
12749 void addLast(StyleSheet value) {
12750 throw new UnsupportedOperationException("Cannot add to immutable List.");
12751 }
12752
12753 void addAll(Collection<StyleSheet> collection) {
12754 throw new UnsupportedOperationException("Cannot add to immutable List.");
12755 }
12756
12757 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f);
12758
12759 Collection map(f(StyleSheet element)) => _Collections.map(this, [], f);
12760
12761 Collection<StyleSheet> filter(bool f(StyleSheet element)) =>
12762 _Collections.filter(this, <StyleSheet>[], f);
12763
12764 bool every(bool f(StyleSheet element)) => _Collections.every(this, f);
12765
12766 bool some(bool f(StyleSheet element)) => _Collections.some(this, f);
12767
12768 bool isEmpty() => this.length == 0;
12769
12770 // From List<StyleSheet>:
12771
12772 void sort(int compare(StyleSheet a, StyleSheet b)) {
12773 throw new UnsupportedOperationException("Cannot sort immutable List.");
12774 }
12775
12776 int indexOf(StyleSheet element, [int start = 0]) =>
12777 _Lists.indexOf(this, element, start, this.length);
12778
12779 int lastIndexOf(StyleSheet element, [int start = 0]) =>
12780 _Lists.lastIndexOf(this, element, start);
12781
12782 StyleSheet last() => this[length - 1];
12783
12784 // FIXME: implement thesee.
12785 void setRange(int start, int length, List<StyleSheet> from, [int startFrom]) {
12786 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
12787 }
12788 void removeRange(int start, int length) {
12789 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
12790 }
12791 void insertRange(int start, int length, [StyleSheet initialValue]) {
12792 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
12793 }
12794 List<StyleSheet> getRange(int start, int length) =>
12795 _Lists.getRange(this, start, length, <StyleSheet>[]);
12796
12797 // -- end List<StyleSheet> mixins.
12798
12799 _StyleSheetJs item(int index) native;
12800 }
12801
12802 class _TableCaptionElementJs extends _ElementJs implements TableCaptionElement n ative "*HTMLTableCaptionElement" {
12803
12804 String align;
12805 }
12806
12807 class _TableCellElementJs extends _ElementJs implements TableCellElement native "*HTMLTableCellElement" {
12808
12809 String abbr;
12810
12811 String align;
12812
12813 String axis;
12814
12815 String bgColor;
12816
12817 final int cellIndex;
12818
12819 String ch;
12820
12821 String chOff;
12822
12823 int colSpan;
12824
12825 String headers;
12826
12827 String height;
12828
12829 bool noWrap;
12830
12831 int rowSpan;
12832
12833 String scope;
12834
12835 String vAlign;
12836
12837 String width;
12838 }
12839
12840 class _TableColElementJs extends _ElementJs implements TableColElement native "* HTMLTableColElement" {
12841
12842 String align;
12843
12844 String ch;
12845
12846 String chOff;
12847
12848 int span;
12849
12850 String vAlign;
12851
12852 String width;
12853 }
12854
12855 class _TableElementJs extends _ElementJs implements TableElement native "*HTMLTa bleElement" {
12856
12857 String align;
12858
12859 String bgColor;
12860
12861 String border;
12862
12863 _TableCaptionElementJs caption;
12864
12865 String cellPadding;
12866
12867 String cellSpacing;
12868
12869 String frame;
12870
12871 final _HTMLCollectionJs rows;
12872
12873 String rules;
12874
12875 String summary;
12876
12877 final _HTMLCollectionJs tBodies;
12878
12879 _TableSectionElementJs tFoot;
12880
12881 _TableSectionElementJs tHead;
12882
12883 String width;
12884
12885 _ElementJs createCaption() native;
12886
12887 _ElementJs createTFoot() native;
12888
12889 _ElementJs createTHead() native;
12890
12891 void deleteCaption() native;
12892
12893 void deleteRow(int index) native;
12894
12895 void deleteTFoot() native;
12896
12897 void deleteTHead() native;
12898
12899 _ElementJs insertRow(int index) native;
12900 }
12901
12902 class _TableRowElementJs extends _ElementJs implements TableRowElement native "* HTMLTableRowElement" {
12903
12904 String align;
12905
12906 String bgColor;
12907
12908 final _HTMLCollectionJs cells;
12909
12910 String ch;
12911
12912 String chOff;
12913
12914 final int rowIndex;
12915
12916 final int sectionRowIndex;
12917
12918 String vAlign;
12919
12920 void deleteCell(int index) native;
12921
12922 _ElementJs insertCell(int index) native;
12923 }
12924
12925 class _TableSectionElementJs extends _ElementJs implements TableSectionElement n ative "*HTMLTableSectionElement" {
12926
12927 String align;
12928
12929 String ch;
12930
12931 String chOff;
12932
12933 final _HTMLCollectionJs rows;
12934
12935 String vAlign;
12936
12937 void deleteRow(int index) native;
12938
12939 _ElementJs insertRow(int index) native;
12940 }
12941
12942 class _TextJs extends _CharacterDataJs implements Text native "*Text" {
12943
12944 final String wholeText;
12945
12946 _TextJs replaceWholeText(String content) native;
12947
12948 _TextJs splitText(int offset) native;
12949 }
12950
12951 class _TextAreaElementJs extends _ElementJs implements TextAreaElement native "* HTMLTextAreaElement" {
12952
12953 bool autofocus;
12954
12955 int cols;
12956
12957 String defaultValue;
12958
12959 bool disabled;
12960
12961 final _FormElementJs form;
12962
12963 final _NodeListJs labels;
12964
12965 int maxLength;
12966
12967 String name;
12968
12969 String placeholder;
12970
12971 bool readOnly;
12972
12973 bool required;
12974
12975 int rows;
12976
12977 String selectionDirection;
12978
12979 int selectionEnd;
12980
12981 int selectionStart;
12982
12983 final int textLength;
12984
12985 final String type;
12986
12987 final String validationMessage;
12988
12989 final _ValidityStateJs validity;
12990
12991 String value;
12992
12993 final bool willValidate;
12994
12995 String wrap;
12996
12997 bool checkValidity() native;
12998
12999 void select() native;
13000
13001 void setCustomValidity(String error) native;
13002
13003 void setSelectionRange(int start, int end, [String direction = null]) native;
13004 }
13005
13006 class _TextEventJs extends _UIEventJs implements TextEvent native "*TextEvent" {
13007
13008 final String data;
13009
13010 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, _Win dowJs viewArg, String dataArg) native;
13011 }
13012
13013 class _TextMetricsJs implements TextMetrics native "*TextMetrics" {
13014
13015 final num width;
13016 }
13017
13018 class _TextTrackJs implements TextTrack native "*TextTrack" {
13019
13020 static final int DISABLED = 0;
13021
13022 static final int HIDDEN = 1;
13023
13024 static final int SHOWING = 2;
13025
13026 final _TextTrackCueListJs activeCues;
13027
13028 final _TextTrackCueListJs cues;
13029
13030 final String kind;
13031
13032 final String label;
13033
13034 final String language;
13035
13036 int mode;
13037
13038 EventListener oncuechange;
13039
13040 void addCue(_TextTrackCueJs cue) native;
13041
13042 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
13043
13044 bool dispatchEvent(_EventJs evt) native;
13045
13046 void removeCue(_TextTrackCueJs cue) native;
13047
13048 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
13049 }
13050
13051 class _TextTrackCueJs implements TextTrackCue native "*TextTrackCue" {
13052
13053 String alignment;
13054
13055 String direction;
13056
13057 num endTime;
13058
13059 String id;
13060
13061 int linePosition;
13062
13063 EventListener onenter;
13064
13065 EventListener onexit;
13066
13067 bool pauseOnExit;
13068
13069 int size;
13070
13071 bool snapToLines;
13072
13073 num startTime;
13074
13075 String text;
13076
13077 int textPosition;
13078
13079 final _TextTrackJs track;
13080
13081 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
13082
13083 bool dispatchEvent(_EventJs evt) native;
13084
13085 _DocumentFragmentJs getCueAsHTML() native;
13086
13087 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
13088 }
13089
13090 class _TextTrackCueListJs implements TextTrackCueList native "*TextTrackCueList" {
13091
13092 final int length;
13093
13094 _TextTrackCueJs getCueById(String id) native;
13095
13096 _TextTrackCueJs item(int index) native;
13097 }
13098
13099 class _TextTrackListJs implements TextTrackList native "*TextTrackList" {
13100
13101 final int length;
13102
13103 EventListener onaddtrack;
13104
13105 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
13106
13107 bool dispatchEvent(_EventJs evt) native;
13108
13109 _TextTrackJs item(int index) native;
13110
13111 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
13112 }
13113
13114 class _TimeRangesJs implements TimeRanges native "*TimeRanges" {
13115
13116 final int length;
13117
13118 num end(int index) native;
13119
13120 num start(int index) native;
13121 }
13122
13123 class _TitleElementJs extends _ElementJs implements TitleElement native "*HTMLTi tleElement" {
13124
13125 String text;
13126 }
13127
13128 class _TouchJs implements Touch native "*Touch" {
13129
13130 final int clientX;
13131
13132 final int clientY;
13133
13134 final int identifier;
13135
13136 final int pageX;
13137
13138 final int pageY;
13139
13140 final int screenX;
13141
13142 final int screenY;
13143
13144 final _EventTargetJs target;
13145
13146 final num webkitForce;
13147
13148 final int webkitRadiusX;
13149
13150 final int webkitRadiusY;
13151
13152 final num webkitRotationAngle;
13153 }
13154
13155 class _TouchEventJs extends _UIEventJs implements TouchEvent native "*TouchEvent " {
13156
13157 final bool altKey;
13158
13159 final _TouchListJs changedTouches;
13160
13161 final bool ctrlKey;
13162
13163 final bool metaKey;
13164
13165 final bool shiftKey;
13166
13167 final _TouchListJs targetTouches;
13168
13169 final _TouchListJs touches;
13170
13171 void initTouchEvent(_TouchListJs touches, _TouchListJs targetTouches, _TouchLi stJs changedTouches, String type, _WindowJs view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) na tive;
13172 }
13173
13174 class _TouchListJs implements TouchList native "*TouchList" {
13175
13176 final int length;
13177
13178 _TouchJs operator[](int index) native "return this[index];";
13179
13180 void operator[]=(int index, _TouchJs value) {
13181 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
13182 }
13183 // -- start List<Touch> mixins.
13184 // Touch is the element type.
13185
13186 // From Iterable<Touch>:
13187
13188 Iterator<Touch> iterator() {
13189 // Note: NodeLists are not fixed size. And most probably length shouldn't
13190 // be cached in both iterator _and_ forEach method. For now caching it
13191 // for consistency.
13192 return new _FixedSizeListIterator<Touch>(this);
13193 }
13194
13195 // From Collection<Touch>:
13196
13197 void add(Touch value) {
13198 throw new UnsupportedOperationException("Cannot add to immutable List.");
13199 }
13200
13201 void addLast(Touch value) {
13202 throw new UnsupportedOperationException("Cannot add to immutable List.");
13203 }
13204
13205 void addAll(Collection<Touch> collection) {
13206 throw new UnsupportedOperationException("Cannot add to immutable List.");
13207 }
13208
13209 void forEach(void f(Touch element)) => _Collections.forEach(this, f);
13210
13211 Collection map(f(Touch element)) => _Collections.map(this, [], f);
13212
13213 Collection<Touch> filter(bool f(Touch element)) =>
13214 _Collections.filter(this, <Touch>[], f);
13215
13216 bool every(bool f(Touch element)) => _Collections.every(this, f);
13217
13218 bool some(bool f(Touch element)) => _Collections.some(this, f);
13219
13220 bool isEmpty() => this.length == 0;
13221
13222 // From List<Touch>:
13223
13224 void sort(int compare(Touch a, Touch b)) {
13225 throw new UnsupportedOperationException("Cannot sort immutable List.");
13226 }
13227
13228 int indexOf(Touch element, [int start = 0]) =>
13229 _Lists.indexOf(this, element, start, this.length);
13230
13231 int lastIndexOf(Touch element, [int start = 0]) =>
13232 _Lists.lastIndexOf(this, element, start);
13233
13234 Touch last() => this[length - 1];
13235
13236 // FIXME: implement thesee.
13237 void setRange(int start, int length, List<Touch> from, [int startFrom]) {
13238 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
13239 }
13240 void removeRange(int start, int length) {
13241 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
13242 }
13243 void insertRange(int start, int length, [Touch initialValue]) {
13244 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
13245 }
13246 List<Touch> getRange(int start, int length) =>
13247 _Lists.getRange(this, start, length, <Touch>[]);
13248
13249 // -- end List<Touch> mixins.
13250
13251 _TouchJs item(int index) native;
13252 }
13253
13254 class _TrackElementJs extends _ElementJs implements TrackElement native "*HTMLTr ackElement" {
13255
13256 static final int ERROR = 3;
13257
13258 static final int LOADED = 2;
13259
13260 static final int LOADING = 1;
13261
13262 static final int NONE = 0;
13263
13264 bool isDefault;
13265
13266 String kind;
13267
13268 String label;
13269
13270 final int readyState;
13271
13272 String src;
13273
13274 String srclang;
13275
13276 final _TextTrackJs track;
13277 }
13278
13279 class _TrackEventJs extends _EventJs implements TrackEvent native "*TrackEvent" {
13280
13281 final Object track;
13282 }
13283
13284 class _TransitionEventJs extends _EventJs implements TransitionEvent native "*We bKitTransitionEvent" {
13285
13286 final num elapsedTime;
13287
13288 final String propertyName;
13289 }
13290
13291 class _TreeWalkerJs implements TreeWalker native "*TreeWalker" {
13292
13293 _NodeJs currentNode;
13294
13295 final bool expandEntityReferences;
13296
13297 final _NodeFilterJs filter;
13298
13299 final _NodeJs root;
13300
13301 final int whatToShow;
13302
13303 _NodeJs firstChild() native;
13304
13305 _NodeJs lastChild() native;
13306
13307 _NodeJs nextNode() native;
13308
13309 _NodeJs nextSibling() native;
13310
13311 _NodeJs parentNode() native;
13312
13313 _NodeJs previousNode() native;
13314
13315 _NodeJs previousSibling() native;
13316 }
13317
13318 class _UIEventJs extends _EventJs implements UIEvent native "*UIEvent" {
13319
13320 final int charCode;
13321
13322 final int detail;
13323
13324 final int keyCode;
13325
13326 final int layerX;
13327
13328 final int layerY;
13329
13330 final int pageX;
13331
13332 final int pageY;
13333
13334 final _WindowJs view;
13335
13336 final int which;
13337
13338 void initUIEvent(String type, bool canBubble, bool cancelable, _WindowJs view, int detail) native;
13339 }
13340
13341 class _UListElementJs extends _ElementJs implements UListElement native "*HTMLUL istElement" {
13342
13343 bool compact;
13344
13345 String type;
13346 }
13347
13348 class _Uint16ArrayJs extends _ArrayBufferViewJs implements Uint16Array, List<int > native "*Uint16Array" {
13349
13350 factory Uint16Array(int length) => _construct_Uint16Array(length);
13351
13352 factory Uint16Array.fromList(List<int> list) => _construct_Uint16Array(list);
13353
13354 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint16Array(b uffer);
13355
13356 static _construct_Uint16Array(arg) native 'return new Uint16Array(arg);';
13357
13358 static final int BYTES_PER_ELEMENT = 2;
13359
13360 final int length;
13361
13362 int operator[](int index) native "return this[index];";
13363
13364 void operator[]=(int index, int value) native "this[index] = value";
13365 // -- start List<int> mixins.
13366 // int is the element type.
13367
13368 // From Iterable<int>:
13369
13370 Iterator<int> iterator() {
13371 // Note: NodeLists are not fixed size. And most probably length shouldn't
13372 // be cached in both iterator _and_ forEach method. For now caching it
13373 // for consistency.
13374 return new _FixedSizeListIterator<int>(this);
13375 }
13376
13377 // From Collection<int>:
13378
13379 void add(int value) {
13380 throw new UnsupportedOperationException("Cannot add to immutable List.");
13381 }
13382
13383 void addLast(int value) {
13384 throw new UnsupportedOperationException("Cannot add to immutable List.");
13385 }
13386
13387 void addAll(Collection<int> collection) {
13388 throw new UnsupportedOperationException("Cannot add to immutable List.");
13389 }
13390
13391 void forEach(void f(int element)) => _Collections.forEach(this, f);
13392
13393 Collection map(f(int element)) => _Collections.map(this, [], f);
13394
13395 Collection<int> filter(bool f(int element)) =>
13396 _Collections.filter(this, <int>[], f);
13397
13398 bool every(bool f(int element)) => _Collections.every(this, f);
13399
13400 bool some(bool f(int element)) => _Collections.some(this, f);
13401
13402 bool isEmpty() => this.length == 0;
13403
13404 // From List<int>:
13405
13406 void sort(int compare(int a, int b)) {
13407 throw new UnsupportedOperationException("Cannot sort immutable List.");
13408 }
13409
13410 int indexOf(int element, [int start = 0]) =>
13411 _Lists.indexOf(this, element, start, this.length);
13412
13413 int lastIndexOf(int element, [int start = 0]) =>
13414 _Lists.lastIndexOf(this, element, start);
13415
13416 int last() => this[length - 1];
13417
13418 // FIXME: implement thesee.
13419 void setRange(int start, int length, List<int> from, [int startFrom]) {
13420 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
13421 }
13422 void removeRange(int start, int length) {
13423 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
13424 }
13425 void insertRange(int start, int length, [int initialValue]) {
13426 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
13427 }
13428 List<int> getRange(int start, int length) =>
13429 _Lists.getRange(this, start, length, <int>[]);
13430
13431 // -- end List<int> mixins.
13432
13433 void setElements(Object array, [int offset = null]) native;
13434
13435 _Uint16ArrayJs subarray(int start, [int end = null]) native;
13436 }
13437
13438 class _Uint32ArrayJs extends _ArrayBufferViewJs implements Uint32Array, List<int > native "*Uint32Array" {
13439
13440 factory Uint32Array(int length) => _construct_Uint32Array(length);
13441
13442 factory Uint32Array.fromList(List<int> list) => _construct_Uint32Array(list);
13443
13444 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint32Array(b uffer);
13445
13446 static _construct_Uint32Array(arg) native 'return new Uint32Array(arg);';
13447
13448 static final int BYTES_PER_ELEMENT = 4;
13449
13450 final int length;
13451
13452 int operator[](int index) native "return this[index];";
13453
13454 void operator[]=(int index, int value) native "this[index] = value";
13455 // -- start List<int> mixins.
13456 // int is the element type.
13457
13458 // From Iterable<int>:
13459
13460 Iterator<int> iterator() {
13461 // Note: NodeLists are not fixed size. And most probably length shouldn't
13462 // be cached in both iterator _and_ forEach method. For now caching it
13463 // for consistency.
13464 return new _FixedSizeListIterator<int>(this);
13465 }
13466
13467 // From Collection<int>:
13468
13469 void add(int value) {
13470 throw new UnsupportedOperationException("Cannot add to immutable List.");
13471 }
13472
13473 void addLast(int value) {
13474 throw new UnsupportedOperationException("Cannot add to immutable List.");
13475 }
13476
13477 void addAll(Collection<int> collection) {
13478 throw new UnsupportedOperationException("Cannot add to immutable List.");
13479 }
13480
13481 void forEach(void f(int element)) => _Collections.forEach(this, f);
13482
13483 Collection map(f(int element)) => _Collections.map(this, [], f);
13484
13485 Collection<int> filter(bool f(int element)) =>
13486 _Collections.filter(this, <int>[], f);
13487
13488 bool every(bool f(int element)) => _Collections.every(this, f);
13489
13490 bool some(bool f(int element)) => _Collections.some(this, f);
13491
13492 bool isEmpty() => this.length == 0;
13493
13494 // From List<int>:
13495
13496 void sort(int compare(int a, int b)) {
13497 throw new UnsupportedOperationException("Cannot sort immutable List.");
13498 }
13499
13500 int indexOf(int element, [int start = 0]) =>
13501 _Lists.indexOf(this, element, start, this.length);
13502
13503 int lastIndexOf(int element, [int start = 0]) =>
13504 _Lists.lastIndexOf(this, element, start);
13505
13506 int last() => this[length - 1];
13507
13508 // FIXME: implement thesee.
13509 void setRange(int start, int length, List<int> from, [int startFrom]) {
13510 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
13511 }
13512 void removeRange(int start, int length) {
13513 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
13514 }
13515 void insertRange(int start, int length, [int initialValue]) {
13516 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
13517 }
13518 List<int> getRange(int start, int length) =>
13519 _Lists.getRange(this, start, length, <int>[]);
13520
13521 // -- end List<int> mixins.
13522
13523 void setElements(Object array, [int offset = null]) native;
13524
13525 _Uint32ArrayJs subarray(int start, [int end = null]) native;
13526 }
13527
13528 class _Uint8ArrayJs extends _ArrayBufferViewJs implements Uint8Array, List<int> native "*Uint8Array" {
13529
13530 factory Uint8Array(int length) => _construct_Uint8Array(length);
13531
13532 factory Uint8Array.fromList(List<int> list) => _construct_Uint8Array(list);
13533
13534 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Array(buf fer);
13535
13536 static _construct_Uint8Array(arg) native 'return new Uint8Array(arg);';
13537
13538 static final int BYTES_PER_ELEMENT = 1;
13539
13540 final int length;
13541
13542 int operator[](int index) native "return this[index];";
13543
13544 void operator[]=(int index, int value) native "this[index] = value";
13545 // -- start List<int> mixins.
13546 // int is the element type.
13547
13548 // From Iterable<int>:
13549
13550 Iterator<int> iterator() {
13551 // Note: NodeLists are not fixed size. And most probably length shouldn't
13552 // be cached in both iterator _and_ forEach method. For now caching it
13553 // for consistency.
13554 return new _FixedSizeListIterator<int>(this);
13555 }
13556
13557 // From Collection<int>:
13558
13559 void add(int value) {
13560 throw new UnsupportedOperationException("Cannot add to immutable List.");
13561 }
13562
13563 void addLast(int value) {
13564 throw new UnsupportedOperationException("Cannot add to immutable List.");
13565 }
13566
13567 void addAll(Collection<int> collection) {
13568 throw new UnsupportedOperationException("Cannot add to immutable List.");
13569 }
13570
13571 void forEach(void f(int element)) => _Collections.forEach(this, f);
13572
13573 Collection map(f(int element)) => _Collections.map(this, [], f);
13574
13575 Collection<int> filter(bool f(int element)) =>
13576 _Collections.filter(this, <int>[], f);
13577
13578 bool every(bool f(int element)) => _Collections.every(this, f);
13579
13580 bool some(bool f(int element)) => _Collections.some(this, f);
13581
13582 bool isEmpty() => this.length == 0;
13583
13584 // From List<int>:
13585
13586 void sort(int compare(int a, int b)) {
13587 throw new UnsupportedOperationException("Cannot sort immutable List.");
13588 }
13589
13590 int indexOf(int element, [int start = 0]) =>
13591 _Lists.indexOf(this, element, start, this.length);
13592
13593 int lastIndexOf(int element, [int start = 0]) =>
13594 _Lists.lastIndexOf(this, element, start);
13595
13596 int last() => this[length - 1];
13597
13598 // FIXME: implement thesee.
13599 void setRange(int start, int length, List<int> from, [int startFrom]) {
13600 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
13601 }
13602 void removeRange(int start, int length) {
13603 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
13604 }
13605 void insertRange(int start, int length, [int initialValue]) {
13606 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
13607 }
13608 List<int> getRange(int start, int length) =>
13609 _Lists.getRange(this, start, length, <int>[]);
13610
13611 // -- end List<int> mixins.
13612
13613 void setElements(Object array, [int offset = null]) native;
13614
13615 _Uint8ArrayJs subarray(int start, [int end = null]) native;
13616 }
13617
13618 class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray, L ist<int> native "*Uint8ClampedArray" {
13619
13620 factory Uint8ClampedArray(int length) => _construct_Uint8ClampedArray(length) ;
13621
13622 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA rray(list);
13623
13624 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Cl ampedArray(buffer);
13625
13626 static _construct_Uint8ClampedArray(arg) native 'return new Uint8ClampedArray( arg);';
13627
13628 // Use implementation from Uint8Array.
13629 // final int length;
13630
13631 _Uint8ClampedArrayJs subarray(int start, [int end = null]) native;
13632 }
13633
13634 class _UnknownElementJs extends _ElementJs implements UnknownElement native "*HT MLUnknownElement" {
13635 }
13636
13637 class _ValidityStateJs implements ValidityState native "*ValidityState" {
13638
13639 final bool customError;
13640
13641 final bool patternMismatch;
13642
13643 final bool rangeOverflow;
13644
13645 final bool rangeUnderflow;
13646
13647 final bool stepMismatch;
13648
13649 final bool tooLong;
13650
13651 final bool typeMismatch;
13652
13653 final bool valid;
13654
13655 final bool valueMissing;
13656 }
13657
13658 class _VideoElementJs extends _MediaElementJs implements VideoElement native "*H TMLVideoElement" {
13659
13660 int height;
13661
13662 String poster;
13663
13664 final int videoHeight;
13665
13666 final int videoWidth;
13667
13668 final int webkitDecodedFrameCount;
13669
13670 final bool webkitDisplayingFullscreen;
13671
13672 final int webkitDroppedFrameCount;
13673
13674 final bool webkitSupportsFullscreen;
13675
13676 int width;
13677
13678 void webkitEnterFullScreen() native;
13679
13680 void webkitEnterFullscreen() native;
13681
13682 void webkitExitFullScreen() native;
13683
13684 void webkitExitFullscreen() native;
13685 }
13686
13687 class _WaveShaperNodeJs extends _AudioNodeJs implements WaveShaperNode native "* WaveShaperNode" {
13688
13689 _Float32ArrayJs curve;
13690 }
13691
13692 class _WebGLActiveInfoJs implements WebGLActiveInfo native "*WebGLActiveInfo" {
13693
13694 final String name;
13695
13696 final int size;
13697
13698 final int type;
13699 }
13700
13701 class _WebGLBufferJs implements WebGLBuffer native "*WebGLBuffer" {
13702 }
13703
13704 class _WebGLCompressedTexturesJs implements WebGLCompressedTextures native "*Web GLCompressedTextures" {
13705
13706 static final int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02;
13707
13708 static final int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
13709
13710 static final int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
13711
13712 static final int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
13713
13714 static final int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
13715
13716 static final int ETC1_RGB8_OES = 0x8D64;
13717
13718 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, _ArrayBufferViewJs data) native;
13719
13720 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, _ArrayBufferViewJs data) native;
13721 }
13722
13723 class _WebGLContextAttributesJs implements WebGLContextAttributes native "*WebGL ContextAttributes" {
13724
13725 bool alpha;
13726
13727 bool antialias;
13728
13729 bool depth;
13730
13731 bool premultipliedAlpha;
13732
13733 bool preserveDrawingBuffer;
13734
13735 bool stencil;
13736 }
13737
13738 class _WebGLContextEventJs extends _EventJs implements WebGLContextEvent native "*WebGLContextEvent" {
13739
13740 final String statusMessage;
13741 }
13742
13743 class _WebGLDebugRendererInfoJs implements WebGLDebugRendererInfo native "*WebGL DebugRendererInfo" {
13744
13745 static final int UNMASKED_RENDERER_WEBGL = 0x9246;
13746
13747 static final int UNMASKED_VENDOR_WEBGL = 0x9245;
13748 }
13749
13750 class _WebGLDebugShadersJs implements WebGLDebugShaders native "*WebGLDebugShade rs" {
13751
13752 String getTranslatedShaderSource(_WebGLShaderJs shader) native;
13753 }
13754
13755 class _WebGLFramebufferJs implements WebGLFramebuffer native "*WebGLFramebuffer" {
13756 }
13757
13758 class _WebGLLoseContextJs implements WebGLLoseContext native "*WebGLLoseContext" {
13759
13760 void loseContext() native;
13761
13762 void restoreContext() native;
13763 }
13764
13765 class _WebGLProgramJs implements WebGLProgram native "*WebGLProgram" {
13766 }
13767
13768 class _WebGLRenderbufferJs implements WebGLRenderbuffer native "*WebGLRenderbuff er" {
13769 }
13770
13771 class _WebGLRenderingContextJs extends _CanvasRenderingContextJs implements WebG LRenderingContext native "*WebGLRenderingContext" {
13772
13773 static final int ACTIVE_ATTRIBUTES = 0x8B89;
13774
13775 static final int ACTIVE_TEXTURE = 0x84E0;
13776
13777 static final int ACTIVE_UNIFORMS = 0x8B86;
13778
13779 static final int ALIASED_LINE_WIDTH_RANGE = 0x846E;
13780
13781 static final int ALIASED_POINT_SIZE_RANGE = 0x846D;
13782
13783 static final int ALPHA = 0x1906;
13784
13785 static final int ALPHA_BITS = 0x0D55;
13786
13787 static final int ALWAYS = 0x0207;
13788
13789 static final int ARRAY_BUFFER = 0x8892;
13790
13791 static final int ARRAY_BUFFER_BINDING = 0x8894;
13792
13793 static final int ATTACHED_SHADERS = 0x8B85;
13794
13795 static final int BACK = 0x0405;
13796
13797 static final int BLEND = 0x0BE2;
13798
13799 static final int BLEND_COLOR = 0x8005;
13800
13801 static final int BLEND_DST_ALPHA = 0x80CA;
13802
13803 static final int BLEND_DST_RGB = 0x80C8;
13804
13805 static final int BLEND_EQUATION = 0x8009;
13806
13807 static final int BLEND_EQUATION_ALPHA = 0x883D;
13808
13809 static final int BLEND_EQUATION_RGB = 0x8009;
13810
13811 static final int BLEND_SRC_ALPHA = 0x80CB;
13812
13813 static final int BLEND_SRC_RGB = 0x80C9;
13814
13815 static final int BLUE_BITS = 0x0D54;
13816
13817 static final int BOOL = 0x8B56;
13818
13819 static final int BOOL_VEC2 = 0x8B57;
13820
13821 static final int BOOL_VEC3 = 0x8B58;
13822
13823 static final int BOOL_VEC4 = 0x8B59;
13824
13825 static final int BROWSER_DEFAULT_WEBGL = 0x9244;
13826
13827 static final int BUFFER_SIZE = 0x8764;
13828
13829 static final int BUFFER_USAGE = 0x8765;
13830
13831 static final int BYTE = 0x1400;
13832
13833 static final int CCW = 0x0901;
13834
13835 static final int CLAMP_TO_EDGE = 0x812F;
13836
13837 static final int COLOR_ATTACHMENT0 = 0x8CE0;
13838
13839 static final int COLOR_BUFFER_BIT = 0x00004000;
13840
13841 static final int COLOR_CLEAR_VALUE = 0x0C22;
13842
13843 static final int COLOR_WRITEMASK = 0x0C23;
13844
13845 static final int COMPILE_STATUS = 0x8B81;
13846
13847 static final int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
13848
13849 static final int CONSTANT_ALPHA = 0x8003;
13850
13851 static final int CONSTANT_COLOR = 0x8001;
13852
13853 static final int CONTEXT_LOST_WEBGL = 0x9242;
13854
13855 static final int CULL_FACE = 0x0B44;
13856
13857 static final int CULL_FACE_MODE = 0x0B45;
13858
13859 static final int CURRENT_PROGRAM = 0x8B8D;
13860
13861 static final int CURRENT_VERTEX_ATTRIB = 0x8626;
13862
13863 static final int CW = 0x0900;
13864
13865 static final int DECR = 0x1E03;
13866
13867 static final int DECR_WRAP = 0x8508;
13868
13869 static final int DELETE_STATUS = 0x8B80;
13870
13871 static final int DEPTH_ATTACHMENT = 0x8D00;
13872
13873 static final int DEPTH_BITS = 0x0D56;
13874
13875 static final int DEPTH_BUFFER_BIT = 0x00000100;
13876
13877 static final int DEPTH_CLEAR_VALUE = 0x0B73;
13878
13879 static final int DEPTH_COMPONENT = 0x1902;
13880
13881 static final int DEPTH_COMPONENT16 = 0x81A5;
13882
13883 static final int DEPTH_FUNC = 0x0B74;
13884
13885 static final int DEPTH_RANGE = 0x0B70;
13886
13887 static final int DEPTH_STENCIL = 0x84F9;
13888
13889 static final int DEPTH_STENCIL_ATTACHMENT = 0x821A;
13890
13891 static final int DEPTH_TEST = 0x0B71;
13892
13893 static final int DEPTH_WRITEMASK = 0x0B72;
13894
13895 static final int DITHER = 0x0BD0;
13896
13897 static final int DONT_CARE = 0x1100;
13898
13899 static final int DST_ALPHA = 0x0304;
13900
13901 static final int DST_COLOR = 0x0306;
13902
13903 static final int DYNAMIC_DRAW = 0x88E8;
13904
13905 static final int ELEMENT_ARRAY_BUFFER = 0x8893;
13906
13907 static final int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
13908
13909 static final int EQUAL = 0x0202;
13910
13911 static final int FASTEST = 0x1101;
13912
13913 static final int FLOAT = 0x1406;
13914
13915 static final int FLOAT_MAT2 = 0x8B5A;
13916
13917 static final int FLOAT_MAT3 = 0x8B5B;
13918
13919 static final int FLOAT_MAT4 = 0x8B5C;
13920
13921 static final int FLOAT_VEC2 = 0x8B50;
13922
13923 static final int FLOAT_VEC3 = 0x8B51;
13924
13925 static final int FLOAT_VEC4 = 0x8B52;
13926
13927 static final int FRAGMENT_SHADER = 0x8B30;
13928
13929 static final int FRAMEBUFFER = 0x8D40;
13930
13931 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
13932
13933 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
13934
13935 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
13936
13937 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
13938
13939 static final int FRAMEBUFFER_BINDING = 0x8CA6;
13940
13941 static final int FRAMEBUFFER_COMPLETE = 0x8CD5;
13942
13943 static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
13944
13945 static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
13946
13947 static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
13948
13949 static final int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
13950
13951 static final int FRONT = 0x0404;
13952
13953 static final int FRONT_AND_BACK = 0x0408;
13954
13955 static final int FRONT_FACE = 0x0B46;
13956
13957 static final int FUNC_ADD = 0x8006;
13958
13959 static final int FUNC_REVERSE_SUBTRACT = 0x800B;
13960
13961 static final int FUNC_SUBTRACT = 0x800A;
13962
13963 static final int GENERATE_MIPMAP_HINT = 0x8192;
13964
13965 static final int GEQUAL = 0x0206;
13966
13967 static final int GREATER = 0x0204;
13968
13969 static final int GREEN_BITS = 0x0D53;
13970
13971 static final int HIGH_FLOAT = 0x8DF2;
13972
13973 static final int HIGH_INT = 0x8DF5;
13974
13975 static final int INCR = 0x1E02;
13976
13977 static final int INCR_WRAP = 0x8507;
13978
13979 static final int INT = 0x1404;
13980
13981 static final int INT_VEC2 = 0x8B53;
13982
13983 static final int INT_VEC3 = 0x8B54;
13984
13985 static final int INT_VEC4 = 0x8B55;
13986
13987 static final int INVALID_ENUM = 0x0500;
13988
13989 static final int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
13990
13991 static final int INVALID_OPERATION = 0x0502;
13992
13993 static final int INVALID_VALUE = 0x0501;
13994
13995 static final int INVERT = 0x150A;
13996
13997 static final int KEEP = 0x1E00;
13998
13999 static final int LEQUAL = 0x0203;
14000
14001 static final int LESS = 0x0201;
14002
14003 static final int LINEAR = 0x2601;
14004
14005 static final int LINEAR_MIPMAP_LINEAR = 0x2703;
14006
14007 static final int LINEAR_MIPMAP_NEAREST = 0x2701;
14008
14009 static final int LINES = 0x0001;
14010
14011 static final int LINE_LOOP = 0x0002;
14012
14013 static final int LINE_STRIP = 0x0003;
14014
14015 static final int LINE_WIDTH = 0x0B21;
14016
14017 static final int LINK_STATUS = 0x8B82;
14018
14019 static final int LOW_FLOAT = 0x8DF0;
14020
14021 static final int LOW_INT = 0x8DF3;
14022
14023 static final int LUMINANCE = 0x1909;
14024
14025 static final int LUMINANCE_ALPHA = 0x190A;
14026
14027 static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
14028
14029 static final int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
14030
14031 static final int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
14032
14033 static final int MAX_RENDERBUFFER_SIZE = 0x84E8;
14034
14035 static final int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
14036
14037 static final int MAX_TEXTURE_SIZE = 0x0D33;
14038
14039 static final int MAX_VARYING_VECTORS = 0x8DFC;
14040
14041 static final int MAX_VERTEX_ATTRIBS = 0x8869;
14042
14043 static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
14044
14045 static final int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
14046
14047 static final int MAX_VIEWPORT_DIMS = 0x0D3A;
14048
14049 static final int MEDIUM_FLOAT = 0x8DF1;
14050
14051 static final int MEDIUM_INT = 0x8DF4;
14052
14053 static final int MIRRORED_REPEAT = 0x8370;
14054
14055 static final int NEAREST = 0x2600;
14056
14057 static final int NEAREST_MIPMAP_LINEAR = 0x2702;
14058
14059 static final int NEAREST_MIPMAP_NEAREST = 0x2700;
14060
14061 static final int NEVER = 0x0200;
14062
14063 static final int NICEST = 0x1102;
14064
14065 static final int NONE = 0;
14066
14067 static final int NOTEQUAL = 0x0205;
14068
14069 static final int NO_ERROR = 0;
14070
14071 static final int NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2;
14072
14073 static final int ONE = 1;
14074
14075 static final int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
14076
14077 static final int ONE_MINUS_CONSTANT_COLOR = 0x8002;
14078
14079 static final int ONE_MINUS_DST_ALPHA = 0x0305;
14080
14081 static final int ONE_MINUS_DST_COLOR = 0x0307;
14082
14083 static final int ONE_MINUS_SRC_ALPHA = 0x0303;
14084
14085 static final int ONE_MINUS_SRC_COLOR = 0x0301;
14086
14087 static final int OUT_OF_MEMORY = 0x0505;
14088
14089 static final int PACK_ALIGNMENT = 0x0D05;
14090
14091 static final int POINTS = 0x0000;
14092
14093 static final int POLYGON_OFFSET_FACTOR = 0x8038;
14094
14095 static final int POLYGON_OFFSET_FILL = 0x8037;
14096
14097 static final int POLYGON_OFFSET_UNITS = 0x2A00;
14098
14099 static final int RED_BITS = 0x0D52;
14100
14101 static final int RENDERBUFFER = 0x8D41;
14102
14103 static final int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
14104
14105 static final int RENDERBUFFER_BINDING = 0x8CA7;
14106
14107 static final int RENDERBUFFER_BLUE_SIZE = 0x8D52;
14108
14109 static final int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
14110
14111 static final int RENDERBUFFER_GREEN_SIZE = 0x8D51;
14112
14113 static final int RENDERBUFFER_HEIGHT = 0x8D43;
14114
14115 static final int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
14116
14117 static final int RENDERBUFFER_RED_SIZE = 0x8D50;
14118
14119 static final int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
14120
14121 static final int RENDERBUFFER_WIDTH = 0x8D42;
14122
14123 static final int RENDERER = 0x1F01;
14124
14125 static final int REPEAT = 0x2901;
14126
14127 static final int REPLACE = 0x1E01;
14128
14129 static final int RGB = 0x1907;
14130
14131 static final int RGB565 = 0x8D62;
14132
14133 static final int RGB5_A1 = 0x8057;
14134
14135 static final int RGBA = 0x1908;
14136
14137 static final int RGBA4 = 0x8056;
14138
14139 static final int SAMPLER_2D = 0x8B5E;
14140
14141 static final int SAMPLER_CUBE = 0x8B60;
14142
14143 static final int SAMPLES = 0x80A9;
14144
14145 static final int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
14146
14147 static final int SAMPLE_BUFFERS = 0x80A8;
14148
14149 static final int SAMPLE_COVERAGE = 0x80A0;
14150
14151 static final int SAMPLE_COVERAGE_INVERT = 0x80AB;
14152
14153 static final int SAMPLE_COVERAGE_VALUE = 0x80AA;
14154
14155 static final int SCISSOR_BOX = 0x0C10;
14156
14157 static final int SCISSOR_TEST = 0x0C11;
14158
14159 static final int SHADER_COMPILER = 0x8DFA;
14160
14161 static final int SHADER_TYPE = 0x8B4F;
14162
14163 static final int SHADING_LANGUAGE_VERSION = 0x8B8C;
14164
14165 static final int SHORT = 0x1402;
14166
14167 static final int SRC_ALPHA = 0x0302;
14168
14169 static final int SRC_ALPHA_SATURATE = 0x0308;
14170
14171 static final int SRC_COLOR = 0x0300;
14172
14173 static final int STATIC_DRAW = 0x88E4;
14174
14175 static final int STENCIL_ATTACHMENT = 0x8D20;
14176
14177 static final int STENCIL_BACK_FAIL = 0x8801;
14178
14179 static final int STENCIL_BACK_FUNC = 0x8800;
14180
14181 static final int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
14182
14183 static final int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
14184
14185 static final int STENCIL_BACK_REF = 0x8CA3;
14186
14187 static final int STENCIL_BACK_VALUE_MASK = 0x8CA4;
14188
14189 static final int STENCIL_BACK_WRITEMASK = 0x8CA5;
14190
14191 static final int STENCIL_BITS = 0x0D57;
14192
14193 static final int STENCIL_BUFFER_BIT = 0x00000400;
14194
14195 static final int STENCIL_CLEAR_VALUE = 0x0B91;
14196
14197 static final int STENCIL_FAIL = 0x0B94;
14198
14199 static final int STENCIL_FUNC = 0x0B92;
14200
14201 static final int STENCIL_INDEX = 0x1901;
14202
14203 static final int STENCIL_INDEX8 = 0x8D48;
14204
14205 static final int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
14206
14207 static final int STENCIL_PASS_DEPTH_PASS = 0x0B96;
14208
14209 static final int STENCIL_REF = 0x0B97;
14210
14211 static final int STENCIL_TEST = 0x0B90;
14212
14213 static final int STENCIL_VALUE_MASK = 0x0B93;
14214
14215 static final int STENCIL_WRITEMASK = 0x0B98;
14216
14217 static final int STREAM_DRAW = 0x88E0;
14218
14219 static final int SUBPIXEL_BITS = 0x0D50;
14220
14221 static final int TEXTURE = 0x1702;
14222
14223 static final int TEXTURE0 = 0x84C0;
14224
14225 static final int TEXTURE1 = 0x84C1;
14226
14227 static final int TEXTURE10 = 0x84CA;
14228
14229 static final int TEXTURE11 = 0x84CB;
14230
14231 static final int TEXTURE12 = 0x84CC;
14232
14233 static final int TEXTURE13 = 0x84CD;
14234
14235 static final int TEXTURE14 = 0x84CE;
14236
14237 static final int TEXTURE15 = 0x84CF;
14238
14239 static final int TEXTURE16 = 0x84D0;
14240
14241 static final int TEXTURE17 = 0x84D1;
14242
14243 static final int TEXTURE18 = 0x84D2;
14244
14245 static final int TEXTURE19 = 0x84D3;
14246
14247 static final int TEXTURE2 = 0x84C2;
14248
14249 static final int TEXTURE20 = 0x84D4;
14250
14251 static final int TEXTURE21 = 0x84D5;
14252
14253 static final int TEXTURE22 = 0x84D6;
14254
14255 static final int TEXTURE23 = 0x84D7;
14256
14257 static final int TEXTURE24 = 0x84D8;
14258
14259 static final int TEXTURE25 = 0x84D9;
14260
14261 static final int TEXTURE26 = 0x84DA;
14262
14263 static final int TEXTURE27 = 0x84DB;
14264
14265 static final int TEXTURE28 = 0x84DC;
14266
14267 static final int TEXTURE29 = 0x84DD;
14268
14269 static final int TEXTURE3 = 0x84C3;
14270
14271 static final int TEXTURE30 = 0x84DE;
14272
14273 static final int TEXTURE31 = 0x84DF;
14274
14275 static final int TEXTURE4 = 0x84C4;
14276
14277 static final int TEXTURE5 = 0x84C5;
14278
14279 static final int TEXTURE6 = 0x84C6;
14280
14281 static final int TEXTURE7 = 0x84C7;
14282
14283 static final int TEXTURE8 = 0x84C8;
14284
14285 static final int TEXTURE9 = 0x84C9;
14286
14287 static final int TEXTURE_2D = 0x0DE1;
14288
14289 static final int TEXTURE_BINDING_2D = 0x8069;
14290
14291 static final int TEXTURE_BINDING_CUBE_MAP = 0x8514;
14292
14293 static final int TEXTURE_CUBE_MAP = 0x8513;
14294
14295 static final int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
14296
14297 static final int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
14298
14299 static final int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
14300
14301 static final int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
14302
14303 static final int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
14304
14305 static final int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
14306
14307 static final int TEXTURE_MAG_FILTER = 0x2800;
14308
14309 static final int TEXTURE_MIN_FILTER = 0x2801;
14310
14311 static final int TEXTURE_WRAP_S = 0x2802;
14312
14313 static final int TEXTURE_WRAP_T = 0x2803;
14314
14315 static final int TRIANGLES = 0x0004;
14316
14317 static final int TRIANGLE_FAN = 0x0006;
14318
14319 static final int TRIANGLE_STRIP = 0x0005;
14320
14321 static final int UNPACK_ALIGNMENT = 0x0CF5;
14322
14323 static final int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
14324
14325 static final int UNPACK_FLIP_Y_WEBGL = 0x9240;
14326
14327 static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
14328
14329 static final int UNSIGNED_BYTE = 0x1401;
14330
14331 static final int UNSIGNED_INT = 0x1405;
14332
14333 static final int UNSIGNED_SHORT = 0x1403;
14334
14335 static final int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
14336
14337 static final int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
14338
14339 static final int UNSIGNED_SHORT_5_6_5 = 0x8363;
14340
14341 static final int VALIDATE_STATUS = 0x8B83;
14342
14343 static final int VENDOR = 0x1F00;
14344
14345 static final int VERSION = 0x1F02;
14346
14347 static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
14348
14349 static final int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
14350
14351 static final int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
14352
14353 static final int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
14354
14355 static final int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
14356
14357 static final int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
14358
14359 static final int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
14360
14361 static final int VERTEX_SHADER = 0x8B31;
14362
14363 static final int VIEWPORT = 0x0BA2;
14364
14365 static final int ZERO = 0;
14366
14367 final int drawingBufferHeight;
14368
14369 final int drawingBufferWidth;
14370
14371 void activeTexture(int texture) native;
14372
14373 void attachShader(_WebGLProgramJs program, _WebGLShaderJs shader) native;
14374
14375 void bindAttribLocation(_WebGLProgramJs program, int index, String name) nativ e;
14376
14377 void bindBuffer(int target, _WebGLBufferJs buffer) native;
14378
14379 void bindFramebuffer(int target, _WebGLFramebufferJs framebuffer) native;
14380
14381 void bindRenderbuffer(int target, _WebGLRenderbufferJs renderbuffer) native;
14382
14383 void bindTexture(int target, _WebGLTextureJs texture) native;
14384
14385 void blendColor(num red, num green, num blue, num alpha) native;
14386
14387 void blendEquation(int mode) native;
14388
14389 void blendEquationSeparate(int modeRGB, int modeAlpha) native;
14390
14391 void blendFunc(int sfactor, int dfactor) native;
14392
14393 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive;
14394
14395 void bufferData(int target, var data_OR_size, int usage) native;
14396
14397 void bufferSubData(int target, int offset, var data) native;
14398
14399 int checkFramebufferStatus(int target) native;
14400
14401 void clear(int mask) native;
14402
14403 void clearColor(num red, num green, num blue, num alpha) native;
14404
14405 void clearDepth(num depth) native;
14406
14407 void clearStencil(int s) native;
14408
14409 void colorMask(bool red, bool green, bool blue, bool alpha) native;
14410
14411 void compileShader(_WebGLShaderJs shader) native;
14412
14413 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, _ArrayBufferViewJs data) native;
14414
14415 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, _ArrayBufferViewJs data) native;
14416
14417 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native;
14418
14419 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native;
14420
14421 _WebGLBufferJs createBuffer() native;
14422
14423 _WebGLFramebufferJs createFramebuffer() native;
14424
14425 _WebGLProgramJs createProgram() native;
14426
14427 _WebGLRenderbufferJs createRenderbuffer() native;
14428
14429 _WebGLShaderJs createShader(int type) native;
14430
14431 _WebGLTextureJs createTexture() native;
14432
14433 void cullFace(int mode) native;
14434
14435 void deleteBuffer(_WebGLBufferJs buffer) native;
14436
14437 void deleteFramebuffer(_WebGLFramebufferJs framebuffer) native;
14438
14439 void deleteProgram(_WebGLProgramJs program) native;
14440
14441 void deleteRenderbuffer(_WebGLRenderbufferJs renderbuffer) native;
14442
14443 void deleteShader(_WebGLShaderJs shader) native;
14444
14445 void deleteTexture(_WebGLTextureJs texture) native;
14446
14447 void depthFunc(int func) native;
14448
14449 void depthMask(bool flag) native;
14450
14451 void depthRange(num zNear, num zFar) native;
14452
14453 void detachShader(_WebGLProgramJs program, _WebGLShaderJs shader) native;
14454
14455 void disable(int cap) native;
14456
14457 void disableVertexAttribArray(int index) native;
14458
14459 void drawArrays(int mode, int first, int count) native;
14460
14461 void drawElements(int mode, int count, int type, int offset) native;
14462
14463 void enable(int cap) native;
14464
14465 void enableVertexAttribArray(int index) native;
14466
14467 void finish() native;
14468
14469 void flush() native;
14470
14471 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, _WebGLRenderbufferJs renderbuffer) native;
14472
14473 void framebufferTexture2D(int target, int attachment, int textarget, _WebGLTex tureJs texture, int level) native;
14474
14475 void frontFace(int mode) native;
14476
14477 void generateMipmap(int target) native;
14478
14479 _WebGLActiveInfoJs getActiveAttrib(_WebGLProgramJs program, int index) native;
14480
14481 _WebGLActiveInfoJs getActiveUniform(_WebGLProgramJs program, int index) native ;
14482
14483 List getAttachedShaders(_WebGLProgramJs program) native;
14484
14485 int getAttribLocation(_WebGLProgramJs program, String name) native;
14486
14487 Object getBufferParameter(int target, int pname) native;
14488
14489 _WebGLContextAttributesJs getContextAttributes() native;
14490
14491 int getError() native;
14492
14493 Object getExtension(String name) native;
14494
14495 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
14496
14497 Object getParameter(int pname) native;
14498
14499 String getProgramInfoLog(_WebGLProgramJs program) native;
14500
14501 Object getProgramParameter(_WebGLProgramJs program, int pname) native;
14502
14503 Object getRenderbufferParameter(int target, int pname) native;
14504
14505 String getShaderInfoLog(_WebGLShaderJs shader) native;
14506
14507 Object getShaderParameter(_WebGLShaderJs shader, int pname) native;
14508
14509 String getShaderSource(_WebGLShaderJs shader) native;
14510
14511 Object getTexParameter(int target, int pname) native;
14512
14513 Object getUniform(_WebGLProgramJs program, _WebGLUniformLocationJs location) n ative;
14514
14515 _WebGLUniformLocationJs getUniformLocation(_WebGLProgramJs program, String nam e) native;
14516
14517 Object getVertexAttrib(int index, int pname) native;
14518
14519 int getVertexAttribOffset(int index, int pname) native;
14520
14521 void hint(int target, int mode) native;
14522
14523 bool isBuffer(_WebGLBufferJs buffer) native;
14524
14525 bool isContextLost() native;
14526
14527 bool isEnabled(int cap) native;
14528
14529 bool isFramebuffer(_WebGLFramebufferJs framebuffer) native;
14530
14531 bool isProgram(_WebGLProgramJs program) native;
14532
14533 bool isRenderbuffer(_WebGLRenderbufferJs renderbuffer) native;
14534
14535 bool isShader(_WebGLShaderJs shader) native;
14536
14537 bool isTexture(_WebGLTextureJs texture) native;
14538
14539 void lineWidth(num width) native;
14540
14541 void linkProgram(_WebGLProgramJs program) native;
14542
14543 void pixelStorei(int pname, int param) native;
14544
14545 void polygonOffset(num factor, num units) native;
14546
14547 void readPixels(int x, int y, int width, int height, int format, int type, _Ar rayBufferViewJs pixels) native;
14548
14549 void releaseShaderCompiler() native;
14550
14551 void renderbufferStorage(int target, int internalformat, int width, int height ) native;
14552
14553 void sampleCoverage(num value, bool invert) native;
14554
14555 void scissor(int x, int y, int width, int height) native;
14556
14557 void shaderSource(_WebGLShaderJs shader, String string) native;
14558
14559 void stencilFunc(int func, int ref, int mask) native;
14560
14561 void stencilFuncSeparate(int face, int func, int ref, int mask) native;
14562
14563 void stencilMask(int mask) native;
14564
14565 void stencilMaskSeparate(int face, int mask) native;
14566
14567 void stencilOp(int fail, int zfail, int zpass) native;
14568
14569 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
14570
14571 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, var border_OR_canvas_OR_image_OR_pixels_OR_video, [int for mat = null, int type = null, _ArrayBufferViewJs pixels = null]) native;
14572
14573 void texParameterf(int target, int pname, num param) native;
14574
14575 void texParameteri(int target, int pname, int param) native;
14576
14577 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_OR_video, [int type = null, _ArrayBufferViewJs pixels = null]) native;
14578
14579 void uniform1f(_WebGLUniformLocationJs location, num x) native;
14580
14581 void uniform1fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native;
14582
14583 void uniform1i(_WebGLUniformLocationJs location, int x) native;
14584
14585 void uniform1iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native;
14586
14587 void uniform2f(_WebGLUniformLocationJs location, num x, num y) native;
14588
14589 void uniform2fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native;
14590
14591 void uniform2i(_WebGLUniformLocationJs location, int x, int y) native;
14592
14593 void uniform2iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native;
14594
14595 void uniform3f(_WebGLUniformLocationJs location, num x, num y, num z) native;
14596
14597 void uniform3fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native;
14598
14599 void uniform3i(_WebGLUniformLocationJs location, int x, int y, int z) native;
14600
14601 void uniform3iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native;
14602
14603 void uniform4f(_WebGLUniformLocationJs location, num x, num y, num z, num w) n ative;
14604
14605 void uniform4fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native;
14606
14607 void uniform4i(_WebGLUniformLocationJs location, int x, int y, int z, int w) n ative;
14608
14609 void uniform4iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native;
14610
14611 void uniformMatrix2fv(_WebGLUniformLocationJs location, bool transpose, _Float 32ArrayJs array) native;
14612
14613 void uniformMatrix3fv(_WebGLUniformLocationJs location, bool transpose, _Float 32ArrayJs array) native;
14614
14615 void uniformMatrix4fv(_WebGLUniformLocationJs location, bool transpose, _Float 32ArrayJs array) native;
14616
14617 void useProgram(_WebGLProgramJs program) native;
14618
14619 void validateProgram(_WebGLProgramJs program) native;
14620
14621 void vertexAttrib1f(int indx, num x) native;
14622
14623 void vertexAttrib1fv(int indx, _Float32ArrayJs values) native;
14624
14625 void vertexAttrib2f(int indx, num x, num y) native;
14626
14627 void vertexAttrib2fv(int indx, _Float32ArrayJs values) native;
14628
14629 void vertexAttrib3f(int indx, num x, num y, num z) native;
14630
14631 void vertexAttrib3fv(int indx, _Float32ArrayJs values) native;
14632
14633 void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
14634
14635 void vertexAttrib4fv(int indx, _Float32ArrayJs values) native;
14636
14637 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native;
14638
14639 void viewport(int x, int y, int width, int height) native;
14640 }
14641
14642 class _WebGLShaderJs implements WebGLShader native "*WebGLShader" {
14643 }
14644
14645 class _WebGLTextureJs implements WebGLTexture native "*WebGLTexture" {
14646 }
14647
14648 class _WebGLUniformLocationJs implements WebGLUniformLocation native "*WebGLUnif ormLocation" {
14649 }
14650
14651 class _WebGLVertexArrayObjectOESJs implements WebGLVertexArrayObjectOES native " *WebGLVertexArrayObjectOES" {
14652 }
14653
14654 class _WebKitCSSRegionRuleJs extends _CSSRuleJs implements WebKitCSSRegionRule n ative "*WebKitCSSRegionRule" {
14655
14656 final _CSSRuleListJs cssRules;
14657 }
14658
14659 class _WebKitNamedFlowJs implements WebKitNamedFlow native "*WebKitNamedFlow" {
14660 }
14661
14662 class _WebSocketJs implements WebSocket native "*WebSocket" {
14663
14664 static final int CLOSED = 3;
14665
14666 static final int CLOSING = 2;
14667
14668 static final int CONNECTING = 0;
14669
14670 static final int OPEN = 1;
14671
14672 final String URL;
14673
14674 String binaryType;
14675
14676 final int bufferedAmount;
14677
14678 final String extensions;
14679
14680 final String protocol;
14681
14682 final int readyState;
14683
14684 final String url;
14685
14686 _WebSocketEventsImpl get on() =>
14687 new _WebSocketEventsImpl(this);
14688
14689 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
14690
14691 void close([int code = null, String reason = null]) native;
14692
14693 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);";
14694
14695 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
14696
14697 bool send(String data) native;
14698 }
14699
14700 class _WebSocketEventsImpl extends _EventsImpl implements WebSocketEvents {
14701 _WebSocketEventsImpl(_ptr) : super(_ptr);
14702
14703 EventListenerList get close() => _get('close');
14704
14705 EventListenerList get error() => _get('error');
14706
14707 EventListenerList get message() => _get('message');
14708
14709 EventListenerList get open() => _get('open');
14710 }
14711
14712 class _WheelEventJs extends _UIEventJs implements WheelEvent native "*WheelEvent " {
14713
14714 final bool altKey;
14715
14716 final int clientX;
14717
14718 final int clientY;
14719
14720 final bool ctrlKey;
14721
14722 final bool metaKey;
14723
14724 final int offsetX;
14725
14726 final int offsetY;
14727
14728 final int screenX;
14729
14730 final int screenY;
14731
14732 final bool shiftKey;
14733
14734 final bool webkitDirectionInvertedFromDevice;
14735
14736 final int wheelDelta;
14737
14738 final int wheelDeltaX;
14739
14740 final int wheelDeltaY;
14741
14742 final int x;
14743
14744 final int y;
14745
14746 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, _WindowJs view, in t screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, boo l shiftKey, bool metaKey) native;
14747 }
14748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14749 // for details. All rights reserved. Use of this source code is governed by a
14750 // BSD-style license that can be found in the LICENSE file.
14751
14752 typedef Object ComputeValue();
14753
14754 class _MeasurementRequest<T> {
14755 final ComputeValue computeValue;
14756 final Completer<T> completer;
14757 Object value;
14758 bool exception = false;
14759 _MeasurementRequest(this.computeValue, this.completer);
14760 }
14761
14762 final _MEASUREMENT_MESSAGE = "DART-MEASURE";
14763 List<_MeasurementRequest> _pendingRequests;
14764 List<TimeoutHandler> _pendingMeasurementFrameCallbacks;
14765 bool _nextMeasurementFrameScheduled = false;
14766 bool _firstMeasurementRequest = true;
14767
14768 void _maybeScheduleMeasurementFrame() {
14769 if (_nextMeasurementFrameScheduled) return;
14770
14771 _nextMeasurementFrameScheduled = true;
14772 // postMessage gives us a way to receive a callback after the current
14773 // event listener has unwound but before the browser has repainted.
14774 if (_firstMeasurementRequest) {
14775 // Messages from other windows do not cause a security risk as
14776 // all we care about is that _onCompleteMeasurementRequests is called
14777 // after the current event loop is unwound and calling the function is
14778 // a noop when zero requests are pending.
14779 window.on.message.add((e) => _completeMeasurementFutures());
14780 _firstMeasurementRequest = false;
14781 }
14782
14783 // TODO(jacobr): other mechanisms such as setImmediate and
14784 // requestAnimationFrame may work better of platforms that support them.
14785 // The key is we need a way to execute code immediately after the current
14786 // event listener queue unwinds.
14787 window.postMessage(_MEASUREMENT_MESSAGE, "*");
14788 }
14789
14790 /**
14791 * Registers a [callback] which is called after the next batch of measurements
14792 * completes. Even if no measurements completed, the callback is triggered
14793 * when they would have completed to avoid confusing bugs if it happened that
14794 * no measurements were actually requested.
14795 */
14796 void _addMeasurementFrameCallback(TimeoutHandler callback) {
14797 if (_pendingMeasurementFrameCallbacks === null) {
14798 _pendingMeasurementFrameCallbacks = <TimeoutHandler>[];
14799 _maybeScheduleMeasurementFrame();
14800 }
14801 _pendingMeasurementFrameCallbacks.add(callback);
14802 }
14803
14804 /**
14805 * Returns a [Future] whose value will be the result of evaluating
14806 * [computeValue] during the next safe measurement interval.
14807 * The next safe measurement interval is after the current event loop has
14808 * unwound but before the browser has rendered the page.
14809 * It is important that the [computeValue] function only queries the html
14810 * layout and html in any way.
14811 */
14812 Future _createMeasurementFuture(ComputeValue computeValue,
14813 Completer completer) {
14814 if (_pendingRequests === null) {
14815 _pendingRequests = <_MeasurementRequest>[];
14816 _maybeScheduleMeasurementFrame();
14817 }
14818 _pendingRequests.add(new _MeasurementRequest(computeValue, completer));
14819 return completer.future;
14820 }
14821
14822 /**
14823 * Complete all pending measurement futures evaluating them in a single batch
14824 * so that the the browser is guaranteed to avoid multiple layouts.
14825 */
14826 void _completeMeasurementFutures() {
14827 if (_nextMeasurementFrameScheduled == false) {
14828 // Ignore spurious call to this function.
14829 return;
14830 }
14831
14832 _nextMeasurementFrameScheduled = false;
14833 // We must compute all new values before fulfilling the futures as
14834 // the onComplete callbacks for the futures could modify the DOM making
14835 // subsequent measurement calculations expensive to compute.
14836 if (_pendingRequests !== null) {
14837 for (_MeasurementRequest request in _pendingRequests) {
14838 try {
14839 request.value = request.computeValue();
14840 } catch(var e) {
14841 request.value = e;
14842 request.exception = true;
14843 }
14844 }
14845 }
14846
14847 final completedRequests = _pendingRequests;
14848 final readyMeasurementFrameCallbacks = _pendingMeasurementFrameCallbacks;
14849 _pendingRequests = null;
14850 _pendingMeasurementFrameCallbacks = null;
14851 if (completedRequests !== null) {
14852 for (_MeasurementRequest request in completedRequests) {
14853 if (request.exception) {
14854 request.completer.completeException(request.value);
14855 } else {
14856 request.completer.complete(request.value);
14857 }
14858 }
14859 }
14860
14861 if (readyMeasurementFrameCallbacks !== null) {
14862 for (TimeoutHandler handler in readyMeasurementFrameCallbacks) {
14863 // TODO(jacobr): wrap each call to a handler in a try-catch block.
14864 handler();
14865 }
14866 }
14867 }
14868
14869 class _WindowJs implements Window native "@*DOMWindow" {
14870
14871 _DocumentJs get document() native "return this.document.documentElement;";
14872
14873 void requestLayoutFrame(TimeoutHandler callback) {
14874 _addMeasurementFrameCallback(callback);
14875 }
14876
14877
14878 static final int PERSISTENT = 1;
14879
14880 static final int TEMPORARY = 0;
14881
14882 final _DOMApplicationCacheJs applicationCache;
14883
14884 _NavigatorJs clientInformation;
14885
14886 final bool closed;
14887
14888 _ConsoleJs console;
14889
14890 final _CryptoJs crypto;
14891
14892 String defaultStatus;
14893
14894 String defaultstatus;
14895
14896 num devicePixelRatio;
14897
14898 _EventJs event;
14899
14900 final _ElementJs frameElement;
14901
14902 _WindowJs frames;
14903
14904 _HistoryJs history;
14905
14906 int innerHeight;
14907
14908 int innerWidth;
14909
14910 int length;
14911
14912 final _StorageJs localStorage;
14913
14914 _LocationJs location;
14915
14916 _BarInfoJs locationbar;
14917
14918 _BarInfoJs menubar;
14919
14920 String name;
14921
14922 _NavigatorJs navigator;
14923
14924 bool offscreenBuffering;
14925
14926 _WindowJs opener;
14927
14928 int outerHeight;
14929
14930 int outerWidth;
14931
14932 final int pageXOffset;
14933
14934 final int pageYOffset;
14935
14936 _WindowJs parent;
14937
14938 _PerformanceJs performance;
14939
14940 _BarInfoJs personalbar;
14941
14942 _ScreenJs screen;
14943
14944 int screenLeft;
14945
14946 int screenTop;
14947
14948 int screenX;
14949
14950 int screenY;
14951
14952 int scrollX;
14953
14954 int scrollY;
14955
14956 _BarInfoJs scrollbars;
14957
14958 _WindowJs self;
14959
14960 final _StorageJs sessionStorage;
14961
14962 String status;
14963
14964 _BarInfoJs statusbar;
14965
14966 final _StyleMediaJs styleMedia;
14967
14968 _BarInfoJs toolbar;
14969
14970 _WindowJs top;
14971
14972 final _IDBFactoryJs webkitIndexedDB;
14973
14974 final _NotificationCenterJs webkitNotifications;
14975
14976 final _StorageInfoJs webkitStorageInfo;
14977
14978 final _DOMURLJs webkitURL;
14979
14980 final _WindowJs window;
14981
14982 _WindowEventsImpl get on() =>
14983 new _WindowEventsImpl(this);
14984
14985 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
14986
14987 void alert(String message) native;
14988
14989 String atob(String string) native;
14990
14991 void blur() native;
14992
14993 String btoa(String string) native;
14994
14995 void captureEvents() native;
14996
14997 void clearInterval(int handle) native;
14998
14999 void clearTimeout(int handle) native;
15000
15001 void close() native;
15002
15003 bool confirm(String message) native;
15004
15005 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);";
15006
15007 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog) native;
15008
15009 void focus() native;
15010
15011 _CSSStyleDeclarationJs _getComputedStyle(_ElementJs element, String pseudoElem ent) native "return this.getComputedStyle(element, pseudoElement);";
15012
15013 _CSSRuleListJs getMatchedCSSRules(_ElementJs element, String pseudoElement) na tive;
15014
15015 _DOMSelectionJs getSelection() native;
15016
15017 _MediaQueryListJs matchMedia(String query) native;
15018
15019 void moveBy(num x, num y) native;
15020
15021 void moveTo(num x, num y) native;
15022
15023 _WindowJs open(String url, String name, [String options = null]) native;
15024
15025 _DatabaseJs openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback = null]) native;
15026
15027 void postMessage(Dynamic message, String targetOrigin, [List messagePorts = nu ll]) native;
15028
15029 void print() native;
15030
15031 String prompt(String message, String defaultValue) native;
15032
15033 void releaseEvents() native;
15034
15035 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
15036
15037 void resizeBy(num x, num y) native;
15038
15039 void resizeTo(num width, num height) native;
15040
15041 void scroll(int x, int y) native;
15042
15043 void scrollBy(int x, int y) native;
15044
15045 void scrollTo(int x, int y) native;
15046
15047 int setInterval(TimeoutHandler handler, int timeout) native;
15048
15049 int setTimeout(TimeoutHandler handler, int timeout) native;
15050
15051 Object showModalDialog(String url, [Object dialogArgs = null, String featureAr gs = null]) native;
15052
15053 void stop() native;
15054
15055 void webkitCancelAnimationFrame(int id) native;
15056
15057 void webkitCancelRequestAnimationFrame(int id) native;
15058
15059 _PointJs webkitConvertPointFromNodeToPage(_NodeJs node, _PointJs p) native;
15060
15061 _PointJs webkitConvertPointFromPageToNode(_NodeJs node, _PointJs p) native;
15062
15063 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis t = null]) native;
15064
15065 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, _Eleme ntJs element) native;
15066
15067 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback = null]) native;
15068
15069 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k = null, ErrorCallback errorCallback = null]) native;
15070
15071 }
15072
15073 class _WindowEventsImpl extends _EventsImpl implements WindowEvents {
15074 _WindowEventsImpl(_ptr) : super(_ptr);
15075
15076 EventListenerList get abort() => _get('abort');
15077
15078 EventListenerList get animationEnd() => _get('webkitAnimationEnd');
15079
15080 EventListenerList get animationIteration() => _get('webkitAnimationIteration') ;
15081
15082 EventListenerList get animationStart() => _get('webkitAnimationStart');
15083
15084 EventListenerList get beforeUnload() => _get('beforeunload');
15085
15086 EventListenerList get blur() => _get('blur');
15087
15088 EventListenerList get canPlay() => _get('canplay');
15089
15090 EventListenerList get canPlayThrough() => _get('canplaythrough');
15091
15092 EventListenerList get change() => _get('change');
15093
15094 EventListenerList get click() => _get('click');
15095
15096 EventListenerList get contentLoaded() => _get('DOMContentLoaded');
15097
15098 EventListenerList get contextMenu() => _get('contextmenu');
15099
15100 EventListenerList get deviceMotion() => _get('devicemotion');
15101
15102 EventListenerList get deviceOrientation() => _get('deviceorientation');
15103
15104 EventListenerList get doubleClick() => _get('dblclick');
15105
15106 EventListenerList get drag() => _get('drag');
15107
15108 EventListenerList get dragEnd() => _get('dragend');
15109
15110 EventListenerList get dragEnter() => _get('dragenter');
15111
15112 EventListenerList get dragLeave() => _get('dragleave');
15113
15114 EventListenerList get dragOver() => _get('dragover');
15115
15116 EventListenerList get dragStart() => _get('dragstart');
15117
15118 EventListenerList get drop() => _get('drop');
15119
15120 EventListenerList get durationChange() => _get('durationchange');
15121
15122 EventListenerList get emptied() => _get('emptied');
15123
15124 EventListenerList get ended() => _get('ended');
15125
15126 EventListenerList get error() => _get('error');
15127
15128 EventListenerList get focus() => _get('focus');
15129
15130 EventListenerList get hashChange() => _get('hashchange');
15131
15132 EventListenerList get input() => _get('input');
15133
15134 EventListenerList get invalid() => _get('invalid');
15135
15136 EventListenerList get keyDown() => _get('keydown');
15137
15138 EventListenerList get keyPress() => _get('keypress');
15139
15140 EventListenerList get keyUp() => _get('keyup');
15141
15142 EventListenerList get load() => _get('load');
15143
15144 EventListenerList get loadStart() => _get('loadstart');
15145
15146 EventListenerList get loadedData() => _get('loadeddata');
15147
15148 EventListenerList get loadedMetadata() => _get('loadedmetadata');
15149
15150 EventListenerList get message() => _get('message');
15151
15152 EventListenerList get mouseDown() => _get('mousedown');
15153
15154 EventListenerList get mouseMove() => _get('mousemove');
15155
15156 EventListenerList get mouseOut() => _get('mouseout');
15157
15158 EventListenerList get mouseOver() => _get('mouseover');
15159
15160 EventListenerList get mouseUp() => _get('mouseup');
15161
15162 EventListenerList get mouseWheel() => _get('mousewheel');
15163
15164 EventListenerList get offline() => _get('offline');
15165
15166 EventListenerList get online() => _get('online');
15167
15168 EventListenerList get pageHide() => _get('pagehide');
15169
15170 EventListenerList get pageShow() => _get('pageshow');
15171
15172 EventListenerList get pause() => _get('pause');
15173
15174 EventListenerList get play() => _get('play');
15175
15176 EventListenerList get playing() => _get('playing');
15177
15178 EventListenerList get popState() => _get('popstate');
15179
15180 EventListenerList get progress() => _get('progress');
15181
15182 EventListenerList get rateChange() => _get('ratechange');
15183
15184 EventListenerList get reset() => _get('reset');
15185
15186 EventListenerList get resize() => _get('resize');
15187
15188 EventListenerList get scroll() => _get('scroll');
15189
15190 EventListenerList get search() => _get('search');
15191
15192 EventListenerList get seeked() => _get('seeked');
15193
15194 EventListenerList get seeking() => _get('seeking');
15195
15196 EventListenerList get select() => _get('select');
15197
15198 EventListenerList get stalled() => _get('stalled');
15199
15200 EventListenerList get storage() => _get('storage');
15201
15202 EventListenerList get submit() => _get('submit');
15203
15204 EventListenerList get suspend() => _get('suspend');
15205
15206 EventListenerList get timeUpdate() => _get('timeupdate');
15207
15208 EventListenerList get touchCancel() => _get('touchcancel');
15209
15210 EventListenerList get touchEnd() => _get('touchend');
15211
15212 EventListenerList get touchMove() => _get('touchmove');
15213
15214 EventListenerList get touchStart() => _get('touchstart');
15215
15216 EventListenerList get transitionEnd() => _get('webkitTransitionEnd');
15217
15218 EventListenerList get unload() => _get('unload');
15219
15220 EventListenerList get volumeChange() => _get('volumechange');
15221
15222 EventListenerList get waiting() => _get('waiting');
15223 }
15224
15225 class _WorkerJs extends _AbstractWorkerJs implements Worker native "*Worker" {
15226
15227 _WorkerEventsImpl get on() =>
15228 new _WorkerEventsImpl(this);
15229
15230 void postMessage(Dynamic message, [List messagePorts = null]) native;
15231
15232 void terminate() native;
15233
15234 void webkitPostMessage(Dynamic message, [List messagePorts = null]) native;
15235 }
15236
15237 class _WorkerEventsImpl extends _AbstractWorkerEventsImpl implements WorkerEvent s {
15238 _WorkerEventsImpl(_ptr) : super(_ptr);
15239
15240 EventListenerList get message() => _get('message');
15241 }
15242
15243 class _WorkerContextJs implements WorkerContext native "*WorkerContext" {
15244
15245 static final int PERSISTENT = 1;
15246
15247 static final int TEMPORARY = 0;
15248
15249 _WorkerLocationJs location;
15250
15251 _WorkerNavigatorJs navigator;
15252
15253 EventListener onerror;
15254
15255 _WorkerContextJs self;
15256
15257 final _IDBFactoryJs webkitIndexedDB;
15258
15259 final _NotificationCenterJs webkitNotifications;
15260
15261 final _DOMURLJs webkitURL;
15262
15263 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
15264
15265 void clearInterval(int handle) native;
15266
15267 void clearTimeout(int handle) native;
15268
15269 void close() native;
15270
15271 bool dispatchEvent(_EventJs evt) native;
15272
15273 void importScripts() native;
15274
15275 _DatabaseJs openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback = null]) native;
15276
15277 _DatabaseSyncJs openDatabaseSync(String name, String version, String displayNa me, int estimatedSize, [DatabaseCallback creationCallback = null]) native;
15278
15279 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
15280
15281 int setInterval(TimeoutHandler handler, int timeout) native;
15282
15283 int setTimeout(TimeoutHandler handler, int timeout) native;
15284
15285 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa llback = null, ErrorCallback errorCallback = null]) native;
15286
15287 _DOMFileSystemSyncJs webkitRequestFileSystemSync(int type, int size) native;
15288
15289 _EntrySyncJs webkitResolveLocalFileSystemSyncURL(String url) native;
15290
15291 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k = null, ErrorCallback errorCallback = null]) native;
15292 }
15293
15294 class _WorkerLocationJs implements WorkerLocation native "*WorkerLocation" {
15295
15296 final String hash;
15297
15298 final String host;
15299
15300 final String hostname;
15301
15302 final String href;
15303
15304 final String pathname;
15305
15306 final String port;
15307
15308 final String protocol;
15309
15310 final String search;
15311
15312 String toString() native;
15313 }
15314
15315 class _WorkerNavigatorJs implements WorkerNavigator native "*WorkerNavigator" {
15316
15317 final String appName;
15318
15319 final String appVersion;
15320
15321 final bool onLine;
15322
15323 final String platform;
15324
15325 final String userAgent;
15326 }
15327
15328 class _XMLHttpRequestJs implements XMLHttpRequest native "*XMLHttpRequest" {
15329
15330 static final int DONE = 4;
15331
15332 static final int HEADERS_RECEIVED = 2;
15333
15334 static final int LOADING = 3;
15335
15336 static final int OPENED = 1;
15337
15338 static final int UNSENT = 0;
15339
15340 bool asBlob;
15341
15342 final int readyState;
15343
15344 final Object response;
15345
15346 final _BlobJs responseBlob;
15347
15348 final String responseText;
15349
15350 String responseType;
15351
15352 final _DocumentJs responseXML;
15353
15354 final int status;
15355
15356 final String statusText;
15357
15358 final _XMLHttpRequestUploadJs upload;
15359
15360 bool withCredentials;
15361
15362 _XMLHttpRequestEventsImpl get on() =>
15363 new _XMLHttpRequestEventsImpl(this);
15364
15365 void abort() native;
15366
15367 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
15368
15369 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);";
15370
15371 String getAllResponseHeaders() native;
15372
15373 String getResponseHeader(String header) native;
15374
15375 void open(String method, String url, [bool async = null, String user = null, S tring password = null]) native;
15376
15377 void overrideMimeType(String override) native;
15378
15379 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
15380
15381 void send([var data = null]) native;
15382
15383 void setRequestHeader(String header, String value) native;
15384 }
15385
15386 class _XMLHttpRequestEventsImpl extends _EventsImpl implements XMLHttpRequestEve nts {
15387 _XMLHttpRequestEventsImpl(_ptr) : super(_ptr);
15388
15389 EventListenerList get abort() => _get('abort');
15390
15391 EventListenerList get error() => _get('error');
15392
15393 EventListenerList get load() => _get('load');
15394
15395 EventListenerList get loadEnd() => _get('loadend');
15396
15397 EventListenerList get loadStart() => _get('loadstart');
15398
15399 EventListenerList get progress() => _get('progress');
15400
15401 EventListenerList get readyStateChange() => _get('readystatechange');
15402 }
15403
15404 class _XMLHttpRequestExceptionJs implements XMLHttpRequestException native "*XML HttpRequestException" {
15405
15406 static final int ABORT_ERR = 102;
15407
15408 static final int NETWORK_ERR = 101;
15409
15410 final int code;
15411
15412 final String message;
15413
15414 final String name;
15415
15416 String toString() native;
15417 }
15418
15419 class _XMLHttpRequestProgressEventJs extends _ProgressEventJs implements XMLHttp RequestProgressEvent native "*XMLHttpRequestProgressEvent" {
15420
15421 final int position;
15422
15423 final int totalSize;
15424 }
15425
15426 class _XMLHttpRequestUploadJs implements XMLHttpRequestUpload native "*XMLHttpRe questUpload" {
15427
15428 _XMLHttpRequestUploadEventsImpl get on() =>
15429 new _XMLHttpRequestUploadEventsImpl(this);
15430
15431 void _addEventListener(String type, EventListener listener, [bool useCapture = null]) native "this.addEventListener(type, listener, useCapture);";
15432
15433 bool _dispatchEvent(_EventJs evt) native "return this.dispatchEvent(evt);";
15434
15435 void _removeEventListener(String type, EventListener listener, [bool useCaptur e = null]) native "this.removeEventListener(type, listener, useCapture);";
15436 }
15437
15438 class _XMLHttpRequestUploadEventsImpl extends _EventsImpl implements XMLHttpRequ estUploadEvents {
15439 _XMLHttpRequestUploadEventsImpl(_ptr) : super(_ptr);
15440
15441 EventListenerList get abort() => _get('abort');
15442
15443 EventListenerList get error() => _get('error');
15444
15445 EventListenerList get load() => _get('load');
15446
15447 EventListenerList get loadEnd() => _get('loadend');
15448
15449 EventListenerList get loadStart() => _get('loadstart');
15450
15451 EventListenerList get progress() => _get('progress');
15452 }
15453
15454 class _XMLSerializerJs implements XMLSerializer native "*XMLSerializer" {
15455
15456 String serializeToString(_NodeJs node) native;
15457 }
15458
15459 class _XPathEvaluatorJs implements XPathEvaluator native "*XPathEvaluator" {
15460
15461 _XPathExpressionJs createExpression(String expression, _XPathNSResolverJs reso lver) native;
15462
15463 _XPathNSResolverJs createNSResolver(_NodeJs nodeResolver) native;
15464
15465 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv erJs resolver, int type, _XPathResultJs inResult) native;
15466 }
15467
15468 class _XPathExceptionJs implements XPathException native "*XPathException" {
15469
15470 static final int INVALID_EXPRESSION_ERR = 51;
15471
15472 static final int TYPE_ERR = 52;
15473
15474 final int code;
15475
15476 final String message;
15477
15478 final String name;
15479
15480 String toString() native;
15481 }
15482
15483 class _XPathExpressionJs implements XPathExpression native "*XPathExpression" {
15484
15485 _XPathResultJs evaluate(_NodeJs contextNode, int type, _XPathResultJs inResult ) native;
15486 }
15487
15488 class _XPathNSResolverJs implements XPathNSResolver native "*XPathNSResolver" {
15489
15490 String lookupNamespaceURI(String prefix) native;
15491 }
15492
15493 class _XPathResultJs implements XPathResult native "*XPathResult" {
15494
15495 static final int ANY_TYPE = 0;
15496
15497 static final int ANY_UNORDERED_NODE_TYPE = 8;
15498
15499 static final int BOOLEAN_TYPE = 3;
15500
15501 static final int FIRST_ORDERED_NODE_TYPE = 9;
15502
15503 static final int NUMBER_TYPE = 1;
15504
15505 static final int ORDERED_NODE_ITERATOR_TYPE = 5;
15506
15507 static final int ORDERED_NODE_SNAPSHOT_TYPE = 7;
15508
15509 static final int STRING_TYPE = 2;
15510
15511 static final int UNORDERED_NODE_ITERATOR_TYPE = 4;
15512
15513 static final int UNORDERED_NODE_SNAPSHOT_TYPE = 6;
15514
15515 final bool booleanValue;
15516
15517 final bool invalidIteratorState;
15518
15519 final num numberValue;
15520
15521 final int resultType;
15522
15523 final _NodeJs singleNodeValue;
15524
15525 final int snapshotLength;
15526
15527 final String stringValue;
15528
15529 _NodeJs iterateNext() native;
15530
15531 _NodeJs snapshotItem(int index) native;
15532 }
15533
15534 class _XSLTProcessorJs implements XSLTProcessor native "*XSLTProcessor" {
15535
15536 void clearParameters() native;
15537
15538 String getParameter(String namespaceURI, String localName) native;
15539
15540 void importStylesheet(_NodeJs stylesheet) native;
15541
15542 void removeParameter(String namespaceURI, String localName) native;
15543
15544 void reset() native;
15545
15546 void setParameter(String namespaceURI, String localName, String value) native;
15547
15548 _DocumentJs transformToDocument(_NodeJs source) native;
15549
15550 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na tive;
15551 }
15552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15553 // for details. All rights reserved. Use of this source code is governed by a
15554 // BSD-style license that can be found in the LICENSE file.
15555
15556 // WARNING: Do not edit - generated code.
15557
15558 interface AbstractWorker extends EventTarget {
15559
15560 AbstractWorkerEvents get on();
15561 }
15562
15563 interface AbstractWorkerEvents extends Events {
15564
15565 EventListenerList get error();
15566 }
15567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15568 // for details. All rights reserved. Use of this source code is governed by a
15569 // BSD-style license that can be found in the LICENSE file.
15570
15571 // WARNING: Do not edit - generated code.
15572
15573 interface AnchorElement extends Element {
15574
15575 String charset;
15576
15577 String coords;
15578
15579 String download;
15580
15581 String hash;
15582
15583 String host;
15584
15585 String hostname;
15586
15587 String href;
15588
15589 String hreflang;
15590
15591 String name;
15592
15593 final String origin;
15594
15595 String pathname;
15596
15597 String ping;
15598
15599 String port;
15600
15601 String protocol;
15602
15603 String rel;
15604
15605 String rev;
15606
15607 String search;
15608
15609 String shape;
15610
15611 String target;
15612
15613 final String text;
15614
15615 String type;
15616
15617 String toString();
15618 }
15619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15620 // for details. All rights reserved. Use of this source code is governed by a
15621 // BSD-style license that can be found in the LICENSE file.
15622
15623 // WARNING: Do not edit - generated code.
15624
15625 interface Animation {
15626
15627 static final int DIRECTION_ALTERNATE = 1;
15628
15629 static final int DIRECTION_NORMAL = 0;
15630
15631 static final int FILL_BACKWARDS = 1;
15632
15633 static final int FILL_BOTH = 3;
15634
15635 static final int FILL_FORWARDS = 2;
15636
15637 static final int FILL_NONE = 0;
15638
15639 final num delay;
15640
15641 final int direction;
15642
15643 final num duration;
15644
15645 num elapsedTime;
15646
15647 final bool ended;
15648
15649 final int fillMode;
15650
15651 final int iterationCount;
15652
15653 final String name;
15654
15655 final bool paused;
15656
15657 void pause();
15658
15659 void play();
15660 }
15661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15662 // for details. All rights reserved. Use of this source code is governed by a
15663 // BSD-style license that can be found in the LICENSE file.
15664
15665 // WARNING: Do not edit - generated code.
15666
15667 interface AnimationEvent extends Event {
15668
15669 final String animationName;
15670
15671 final num elapsedTime;
15672 }
15673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15674 // for details. All rights reserved. Use of this source code is governed by a
15675 // BSD-style license that can be found in the LICENSE file.
15676
15677 // WARNING: Do not edit - generated code.
15678
15679 interface AnimationList {
15680
15681 final int length;
15682
15683 Animation item(int index);
15684 }
15685 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15686 // for details. All rights reserved. Use of this source code is governed by a
15687 // BSD-style license that can be found in the LICENSE file.
15688
15689 // WARNING: Do not edit - generated code.
15690
15691 interface AppletElement extends Element {
15692
15693 String align;
15694
15695 String alt;
15696
15697 String archive;
15698
15699 String code;
15700
15701 String codeBase;
15702
15703 String height;
15704
15705 String hspace;
15706
15707 String name;
15708
15709 String object;
15710
15711 String vspace;
15712
15713 String width;
15714 }
15715 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15716 // for details. All rights reserved. Use of this source code is governed by a
15717 // BSD-style license that can be found in the LICENSE file.
15718
15719 // WARNING: Do not edit - generated code.
15720
15721 interface AreaElement extends Element {
15722
15723 String alt;
15724
15725 String coords;
15726
15727 final String hash;
15728
15729 final String host;
15730
15731 final String hostname;
15732
15733 String href;
15734
15735 bool noHref;
15736
15737 final String pathname;
15738
15739 String ping;
15740
15741 final String port;
15742
15743 final String protocol;
15744
15745 final String search;
15746
15747 String shape;
15748
15749 String target;
15750 }
15751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15752 // for details. All rights reserved. Use of this source code is governed by a
15753 // BSD-style license that can be found in the LICENSE file.
15754
15755 // WARNING: Do not edit - generated code.
15756
15757 interface ArrayBuffer {
15758
15759 final int byteLength;
15760
15761 ArrayBuffer slice(int begin, [int end]);
15762 }
15763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15764 // for details. All rights reserved. Use of this source code is governed by a
15765 // BSD-style license that can be found in the LICENSE file.
15766
15767 // WARNING: Do not edit - generated code.
15768
15769 interface ArrayBufferView {
15770
15771 final ArrayBuffer buffer;
15772
15773 final int byteLength;
15774
15775 final int byteOffset;
15776 }
15777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15778 // for details. All rights reserved. Use of this source code is governed by a
15779 // BSD-style license that can be found in the LICENSE file.
15780
15781 // WARNING: Do not edit - generated code.
15782
15783 interface Attr extends Node {
15784
15785 final bool isId;
15786
15787 final String name;
15788
15789 final Element ownerElement;
15790
15791 final bool specified;
15792
15793 String value;
15794 }
15795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15796 // for details. All rights reserved. Use of this source code is governed by a
15797 // BSD-style license that can be found in the LICENSE file.
15798
15799 // WARNING: Do not edit - generated code.
15800
15801 interface AudioBuffer {
15802
15803 final num duration;
15804
15805 num gain;
15806
15807 final int length;
15808
15809 final int numberOfChannels;
15810
15811 final num sampleRate;
15812
15813 Float32Array getChannelData(int channelIndex);
15814 }
15815 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
15816 // for details. All rights reserved. Use of this source code is governed by a
15817 // BSD-style license that can be found in the LICENSE file.
15818
15819 // WARNING: Do not edit - generated code.
15820
15821 typedef bool AudioBufferCallback(AudioBuffer audioBuffer);
15822 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15823 // for details. All rights reserved. Use of this source code is governed by a
15824 // BSD-style license that can be found in the LICENSE file.
15825
15826 // WARNING: Do not edit - generated code.
15827
15828 interface AudioBufferSourceNode extends AudioSourceNode {
15829
15830 AudioBuffer buffer;
15831
15832 final AudioGain gain;
15833
15834 bool loop;
15835
15836 bool looping;
15837
15838 final AudioParam playbackRate;
15839
15840 void noteGrainOn(num when, num grainOffset, num grainDuration);
15841
15842 void noteOff(num when);
15843
15844 void noteOn(num when);
15845 }
15846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15847 // for details. All rights reserved. Use of this source code is governed by a
15848 // BSD-style license that can be found in the LICENSE file.
15849
15850 // WARNING: Do not edit - generated code.
15851
15852 interface AudioChannelMerger extends AudioNode {
15853 }
15854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15855 // for details. All rights reserved. Use of this source code is governed by a
15856 // BSD-style license that can be found in the LICENSE file.
15857
15858 // WARNING: Do not edit - generated code.
15859
15860 interface AudioChannelSplitter extends AudioNode {
15861 }
15862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15863 // for details. All rights reserved. Use of this source code is governed by a
15864 // BSD-style license that can be found in the LICENSE file.
15865
15866 // WARNING: Do not edit - generated code.
15867
15868 interface AudioContext {
15869
15870 final num currentTime;
15871
15872 final AudioDestinationNode destination;
15873
15874 final AudioListener listener;
15875
15876 EventListener oncomplete;
15877
15878 final num sampleRate;
15879
15880 RealtimeAnalyserNode createAnalyser();
15881
15882 BiquadFilterNode createBiquadFilter();
15883
15884 AudioBuffer createBuffer(var buffer_OR_numberOfChannels, var mixToMono_OR_numb erOfFrames, [num sampleRate]);
15885
15886 AudioBufferSourceNode createBufferSource();
15887
15888 AudioChannelMerger createChannelMerger();
15889
15890 AudioChannelSplitter createChannelSplitter();
15891
15892 ConvolverNode createConvolver();
15893
15894 DelayNode createDelayNode();
15895
15896 DynamicsCompressorNode createDynamicsCompressor();
15897
15898 AudioGainNode createGainNode();
15899
15900 HighPass2FilterNode createHighPass2Filter();
15901
15902 JavaScriptAudioNode createJavaScriptNode(int bufferSize);
15903
15904 LowPass2FilterNode createLowPass2Filter();
15905
15906 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement );
15907
15908 AudioPannerNode createPanner();
15909
15910 WaveShaperNode createWaveShaper();
15911
15912 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]);
15913
15914 void startRendering();
15915 }
15916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15917 // for details. All rights reserved. Use of this source code is governed by a
15918 // BSD-style license that can be found in the LICENSE file.
15919
15920 // WARNING: Do not edit - generated code.
15921
15922 interface AudioDestinationNode extends AudioNode {
15923
15924 final int numberOfChannels;
15925 }
15926 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15927 // for details. All rights reserved. Use of this source code is governed by a
15928 // BSD-style license that can be found in the LICENSE file.
15929
15930 // WARNING: Do not edit - generated code.
15931
15932 interface AudioElement extends MediaElement {
15933 }
15934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15935 // for details. All rights reserved. Use of this source code is governed by a
15936 // BSD-style license that can be found in the LICENSE file.
15937
15938 // WARNING: Do not edit - generated code.
15939
15940 interface AudioGain extends AudioParam {
15941 }
15942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15943 // for details. All rights reserved. Use of this source code is governed by a
15944 // BSD-style license that can be found in the LICENSE file.
15945
15946 // WARNING: Do not edit - generated code.
15947
15948 interface AudioGainNode extends AudioNode {
15949
15950 final AudioGain gain;
15951 }
15952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15953 // for details. All rights reserved. Use of this source code is governed by a
15954 // BSD-style license that can be found in the LICENSE file.
15955
15956 // WARNING: Do not edit - generated code.
15957
15958 interface AudioListener {
15959
15960 num dopplerFactor;
15961
15962 num speedOfSound;
15963
15964 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp);
15965
15966 void setPosition(num x, num y, num z);
15967
15968 void setVelocity(num x, num y, num z);
15969 }
15970 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15971 // for details. All rights reserved. Use of this source code is governed by a
15972 // BSD-style license that can be found in the LICENSE file.
15973
15974 // WARNING: Do not edit - generated code.
15975
15976 interface AudioNode {
15977
15978 final AudioContext context;
15979
15980 final int numberOfInputs;
15981
15982 final int numberOfOutputs;
15983
15984 void connect(AudioNode destination, int output, int input);
15985
15986 void disconnect(int output);
15987 }
15988 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15989 // for details. All rights reserved. Use of this source code is governed by a
15990 // BSD-style license that can be found in the LICENSE file.
15991
15992 // WARNING: Do not edit - generated code.
15993
15994 interface AudioPannerNode extends AudioNode {
15995
15996 static final int EQUALPOWER = 0;
15997
15998 static final int HRTF = 1;
15999
16000 static final int SOUNDFIELD = 2;
16001
16002 final AudioGain coneGain;
16003
16004 num coneInnerAngle;
16005
16006 num coneOuterAngle;
16007
16008 num coneOuterGain;
16009
16010 final AudioGain distanceGain;
16011
16012 int distanceModel;
16013
16014 num maxDistance;
16015
16016 int panningModel;
16017
16018 num refDistance;
16019
16020 num rolloffFactor;
16021
16022 void setOrientation(num x, num y, num z);
16023
16024 void setPosition(num x, num y, num z);
16025
16026 void setVelocity(num x, num y, num z);
16027 }
16028 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16029 // for details. All rights reserved. Use of this source code is governed by a
16030 // BSD-style license that can be found in the LICENSE file.
16031
16032 // WARNING: Do not edit - generated code.
16033
16034 interface AudioParam {
16035
16036 final num defaultValue;
16037
16038 final num maxValue;
16039
16040 final num minValue;
16041
16042 final String name;
16043
16044 final int units;
16045
16046 num value;
16047
16048 void cancelScheduledValues(num startTime);
16049
16050 void exponentialRampToValueAtTime(num value, num time);
16051
16052 void linearRampToValueAtTime(num value, num time);
16053
16054 void setTargetValueAtTime(num targetValue, num time, num timeConstant);
16055
16056 void setValueAtTime(num value, num time);
16057
16058 void setValueCurveAtTime(Float32Array values, num time, num duration);
16059 }
16060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16061 // for details. All rights reserved. Use of this source code is governed by a
16062 // BSD-style license that can be found in the LICENSE file.
16063
16064 // WARNING: Do not edit - generated code.
16065
16066 interface AudioProcessingEvent extends Event {
16067
16068 final AudioBuffer inputBuffer;
16069
16070 final AudioBuffer outputBuffer;
16071 }
16072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16073 // for details. All rights reserved. Use of this source code is governed by a
16074 // BSD-style license that can be found in the LICENSE file.
16075
16076 // WARNING: Do not edit - generated code.
16077
16078 interface AudioSourceNode extends AudioNode {
16079 }
16080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16081 // for details. All rights reserved. Use of this source code is governed by a
16082 // BSD-style license that can be found in the LICENSE file.
16083
16084 // WARNING: Do not edit - generated code.
16085
16086 interface BRElement extends Element {
16087
16088 String clear;
16089 }
16090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16091 // for details. All rights reserved. Use of this source code is governed by a
16092 // BSD-style license that can be found in the LICENSE file.
16093
16094 // WARNING: Do not edit - generated code.
16095
16096 interface BarInfo {
16097
16098 final bool visible;
16099 }
16100 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16101 // for details. All rights reserved. Use of this source code is governed by a
16102 // BSD-style license that can be found in the LICENSE file.
16103
16104 // WARNING: Do not edit - generated code.
16105
16106 interface BaseElement extends Element {
16107
16108 String href;
16109
16110 String target;
16111 }
16112 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16113 // for details. All rights reserved. Use of this source code is governed by a
16114 // BSD-style license that can be found in the LICENSE file.
16115
16116 // WARNING: Do not edit - generated code.
16117
16118 interface BaseFontElement extends Element {
16119
16120 String color;
16121
16122 String face;
16123
16124 int size;
16125 }
16126 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16127 // for details. All rights reserved. Use of this source code is governed by a
16128 // BSD-style license that can be found in the LICENSE file.
16129
16130 // WARNING: Do not edit - generated code.
16131
16132 interface BeforeLoadEvent extends Event {
16133
16134 final String url;
16135 }
16136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16137 // for details. All rights reserved. Use of this source code is governed by a
16138 // BSD-style license that can be found in the LICENSE file.
16139
16140 // WARNING: Do not edit - generated code.
16141
16142 interface BiquadFilterNode extends AudioNode {
16143
16144 static final int ALLPASS = 7;
16145
16146 static final int BANDPASS = 2;
16147
16148 static final int HIGHPASS = 1;
16149
16150 static final int HIGHSHELF = 4;
16151
16152 static final int LOWPASS = 0;
16153
16154 static final int LOWSHELF = 3;
16155
16156 static final int NOTCH = 6;
16157
16158 static final int PEAKING = 5;
16159
16160 final AudioParam Q;
16161
16162 final AudioParam frequency;
16163
16164 final AudioParam gain;
16165
16166 int type;
16167
16168 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse);
16169 }
16170 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16171 // for details. All rights reserved. Use of this source code is governed by a
16172 // BSD-style license that can be found in the LICENSE file.
16173
16174 // WARNING: Do not edit - generated code.
16175
16176 interface Blob {
16177
16178 final int size;
16179
16180 final String type;
16181
16182 Blob webkitSlice([int start, int end, String contentType]);
16183 }
16184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16185 // for details. All rights reserved. Use of this source code is governed by a
16186 // BSD-style license that can be found in the LICENSE file.
16187
16188 // WARNING: Do not edit - generated code.
16189
16190 interface BlobBuilder {
16191
16192 void append(var arrayBuffer_OR_blob_OR_value, [String endings]);
16193
16194 Blob getBlob([String contentType]);
16195 }
16196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16197 // for details. All rights reserved. Use of this source code is governed by a
16198 // BSD-style license that can be found in the LICENSE file.
16199
16200 // WARNING: Do not edit - generated code.
16201
16202 interface BodyElement extends Element {
16203
16204 String aLink;
16205
16206 String background;
16207
16208 String bgColor;
16209
16210 String link;
16211
16212 String text;
16213
16214 String vLink;
16215
16216 BodyElementEvents get on();
16217 }
16218
16219 interface BodyElementEvents extends ElementEvents {
16220
16221 EventListenerList get beforeUnload();
16222
16223 EventListenerList get blur();
16224
16225 EventListenerList get error();
16226
16227 EventListenerList get focus();
16228
16229 EventListenerList get hashChange();
16230
16231 EventListenerList get load();
16232
16233 EventListenerList get message();
16234
16235 EventListenerList get offline();
16236
16237 EventListenerList get online();
16238
16239 EventListenerList get popState();
16240
16241 EventListenerList get resize();
16242
16243 EventListenerList get storage();
16244
16245 EventListenerList get unload();
16246 }
16247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16248 // for details. All rights reserved. Use of this source code is governed by a
16249 // BSD-style license that can be found in the LICENSE file.
16250
16251 // WARNING: Do not edit - generated code.
16252
16253 interface ButtonElement extends Element {
16254
16255 bool autofocus;
16256
16257 bool disabled;
16258
16259 final FormElement form;
16260
16261 String formAction;
16262
16263 String formEnctype;
16264
16265 String formMethod;
16266
16267 bool formNoValidate;
16268
16269 String formTarget;
16270
16271 final NodeList labels;
16272
16273 String name;
16274
16275 final String type;
16276
16277 final String validationMessage;
16278
16279 final ValidityState validity;
16280
16281 String value;
16282
16283 final bool willValidate;
16284
16285 bool checkValidity();
16286
16287 void click();
16288
16289 void setCustomValidity(String error);
16290 }
16291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16292 // for details. All rights reserved. Use of this source code is governed by a
16293 // BSD-style license that can be found in the LICENSE file.
16294
16295 // WARNING: Do not edit - generated code.
16296
16297 interface CDATASection extends Text {
16298 }
16299 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16300 // for details. All rights reserved. Use of this source code is governed by a
16301 // BSD-style license that can be found in the LICENSE file.
16302
16303 // WARNING: Do not edit - generated code.
16304
16305 interface CSSCharsetRule extends CSSRule {
16306
16307 String encoding;
16308 }
16309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16310 // for details. All rights reserved. Use of this source code is governed by a
16311 // BSD-style license that can be found in the LICENSE file.
16312
16313 // WARNING: Do not edit - generated code.
16314
16315 interface CSSFontFaceRule extends CSSRule {
16316
16317 final CSSStyleDeclaration style;
16318 }
16319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16320 // for details. All rights reserved. Use of this source code is governed by a
16321 // BSD-style license that can be found in the LICENSE file.
16322
16323 // WARNING: Do not edit - generated code.
16324
16325 interface CSSImportRule extends CSSRule {
16326
16327 final String href;
16328
16329 final MediaList media;
16330
16331 final CSSStyleSheet styleSheet;
16332 }
16333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16334 // for details. All rights reserved. Use of this source code is governed by a
16335 // BSD-style license that can be found in the LICENSE file.
16336
16337 // WARNING: Do not edit - generated code.
16338
16339 interface CSSKeyframeRule extends CSSRule {
16340
16341 String keyText;
16342
16343 final CSSStyleDeclaration style;
16344 }
16345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16346 // for details. All rights reserved. Use of this source code is governed by a
16347 // BSD-style license that can be found in the LICENSE file.
16348
16349 // WARNING: Do not edit - generated code.
16350
16351 interface CSSKeyframesRule extends CSSRule {
16352
16353 final CSSRuleList cssRules;
16354
16355 String name;
16356
16357 void deleteRule(String key);
16358
16359 CSSKeyframeRule findRule(String key);
16360
16361 void insertRule(String rule);
16362 }
16363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16364 // for details. All rights reserved. Use of this source code is governed by a
16365 // BSD-style license that can be found in the LICENSE file.
16366
16367 // WARNING: Do not edit - generated code.
16368
16369 interface CSSMatrix {
16370
16371 num a;
16372
16373 num b;
16374
16375 num c;
16376
16377 num d;
16378
16379 num e;
16380
16381 num f;
16382
16383 num m11;
16384
16385 num m12;
16386
16387 num m13;
16388
16389 num m14;
16390
16391 num m21;
16392
16393 num m22;
16394
16395 num m23;
16396
16397 num m24;
16398
16399 num m31;
16400
16401 num m32;
16402
16403 num m33;
16404
16405 num m34;
16406
16407 num m41;
16408
16409 num m42;
16410
16411 num m43;
16412
16413 num m44;
16414
16415 CSSMatrix inverse();
16416
16417 CSSMatrix multiply(CSSMatrix secondMatrix);
16418
16419 CSSMatrix rotate(num rotX, num rotY, num rotZ);
16420
16421 CSSMatrix rotateAxisAngle(num x, num y, num z, num angle);
16422
16423 CSSMatrix scale(num scaleX, num scaleY, num scaleZ);
16424
16425 void setMatrixValue(String string);
16426
16427 CSSMatrix skewX(num angle);
16428
16429 CSSMatrix skewY(num angle);
16430
16431 String toString();
16432
16433 CSSMatrix translate(num x, num y, num z);
16434 }
16435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16436 // for details. All rights reserved. Use of this source code is governed by a
16437 // BSD-style license that can be found in the LICENSE file.
16438
16439 // WARNING: Do not edit - generated code.
16440
16441 interface CSSMediaRule extends CSSRule {
16442
16443 final CSSRuleList cssRules;
16444
16445 final MediaList media;
16446
16447 void deleteRule(int index);
16448
16449 int insertRule(String rule, int index);
16450 }
16451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16452 // for details. All rights reserved. Use of this source code is governed by a
16453 // BSD-style license that can be found in the LICENSE file.
16454
16455 // WARNING: Do not edit - generated code.
16456
16457 interface CSSPageRule extends CSSRule {
16458
16459 String selectorText;
16460
16461 final CSSStyleDeclaration style;
16462 }
16463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16464 // for details. All rights reserved. Use of this source code is governed by a
16465 // BSD-style license that can be found in the LICENSE file.
16466
16467 // WARNING: Do not edit - generated code.
16468
16469 interface CSSPrimitiveValue extends CSSValue {
16470
16471 static final int CSS_ATTR = 22;
16472
16473 static final int CSS_CM = 6;
16474
16475 static final int CSS_COUNTER = 23;
16476
16477 static final int CSS_DEG = 11;
16478
16479 static final int CSS_DIMENSION = 18;
16480
16481 static final int CSS_EMS = 3;
16482
16483 static final int CSS_EXS = 4;
16484
16485 static final int CSS_GRAD = 13;
16486
16487 static final int CSS_HZ = 16;
16488
16489 static final int CSS_IDENT = 21;
16490
16491 static final int CSS_IN = 8;
16492
16493 static final int CSS_KHZ = 17;
16494
16495 static final int CSS_MM = 7;
16496
16497 static final int CSS_MS = 14;
16498
16499 static final int CSS_NUMBER = 1;
16500
16501 static final int CSS_PC = 10;
16502
16503 static final int CSS_PERCENTAGE = 2;
16504
16505 static final int CSS_PT = 9;
16506
16507 static final int CSS_PX = 5;
16508
16509 static final int CSS_RAD = 12;
16510
16511 static final int CSS_RECT = 24;
16512
16513 static final int CSS_RGBCOLOR = 25;
16514
16515 static final int CSS_S = 15;
16516
16517 static final int CSS_STRING = 19;
16518
16519 static final int CSS_UNKNOWN = 0;
16520
16521 static final int CSS_URI = 20;
16522
16523 final int primitiveType;
16524
16525 Counter getCounterValue();
16526
16527 num getFloatValue(int unitType);
16528
16529 RGBColor getRGBColorValue();
16530
16531 Rect getRectValue();
16532
16533 String getStringValue();
16534
16535 void setFloatValue(int unitType, num floatValue);
16536
16537 void setStringValue(int stringType, String stringValue);
16538 }
16539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16540 // for details. All rights reserved. Use of this source code is governed by a
16541 // BSD-style license that can be found in the LICENSE file.
16542
16543 // WARNING: Do not edit - generated code.
16544
16545 interface CSSRule {
16546
16547 static final int CHARSET_RULE = 2;
16548
16549 static final int FONT_FACE_RULE = 5;
16550
16551 static final int IMPORT_RULE = 3;
16552
16553 static final int MEDIA_RULE = 4;
16554
16555 static final int PAGE_RULE = 6;
16556
16557 static final int STYLE_RULE = 1;
16558
16559 static final int UNKNOWN_RULE = 0;
16560
16561 static final int WEBKIT_KEYFRAMES_RULE = 8;
16562
16563 static final int WEBKIT_KEYFRAME_RULE = 9;
16564
16565 static final int WEBKIT_REGION_RULE = 10;
16566
16567 String cssText;
16568
16569 final CSSRule parentRule;
16570
16571 final CSSStyleSheet parentStyleSheet;
16572
16573 final int type;
16574 }
16575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16576 // for details. All rights reserved. Use of this source code is governed by a
16577 // BSD-style license that can be found in the LICENSE file.
16578
16579 // WARNING: Do not edit - generated code.
16580
16581 interface CSSRuleList {
16582
16583 final int length;
16584
16585 CSSRule item(int index);
16586 }
16587 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
16588 // for details. All rights reserved. Use of this source code is governed by a
16589 // BSD-style license that can be found in the LICENSE file.
16590
16591 // WARNING: Do not edit - generated code.
16592
16593 interface CSSStyleDeclaration {
16594 CSSStyleDeclaration();
16595
16596 CSSStyleDeclaration.css(String css);
16597
16598
16599 String cssText;
16600
16601 final int length;
16602
16603 final CSSRule parentRule;
16604
16605 CSSValue getPropertyCSSValue(String propertyName);
16606
16607 String getPropertyPriority(String propertyName);
16608
16609 String getPropertyShorthand(String propertyName);
16610
16611 String getPropertyValue(String propertyName);
16612
16613 bool isPropertyImplicit(String propertyName);
16614
16615 String item(int index);
16616
16617 String removeProperty(String propertyName);
16618
16619 void setProperty(String propertyName, String value, [String priority]);
16620
16621
16622 /** Gets the value of "animation" */
16623 String get animation();
16624
16625 /** Sets the value of "animation" */
16626 void set animation(var value);
16627
16628 /** Gets the value of "animation-delay" */
16629 String get animationDelay();
16630
16631 /** Sets the value of "animation-delay" */
16632 void set animationDelay(var value);
16633
16634 /** Gets the value of "animation-direction" */
16635 String get animationDirection();
16636
16637 /** Sets the value of "animation-direction" */
16638 void set animationDirection(var value);
16639
16640 /** Gets the value of "animation-duration" */
16641 String get animationDuration();
16642
16643 /** Sets the value of "animation-duration" */
16644 void set animationDuration(var value);
16645
16646 /** Gets the value of "animation-fill-mode" */
16647 String get animationFillMode();
16648
16649 /** Sets the value of "animation-fill-mode" */
16650 void set animationFillMode(var value);
16651
16652 /** Gets the value of "animation-iteration-count" */
16653 String get animationIterationCount();
16654
16655 /** Sets the value of "animation-iteration-count" */
16656 void set animationIterationCount(var value);
16657
16658 /** Gets the value of "animation-name" */
16659 String get animationName();
16660
16661 /** Sets the value of "animation-name" */
16662 void set animationName(var value);
16663
16664 /** Gets the value of "animation-play-state" */
16665 String get animationPlayState();
16666
16667 /** Sets the value of "animation-play-state" */
16668 void set animationPlayState(var value);
16669
16670 /** Gets the value of "animation-timing-function" */
16671 String get animationTimingFunction();
16672
16673 /** Sets the value of "animation-timing-function" */
16674 void set animationTimingFunction(var value);
16675
16676 /** Gets the value of "appearance" */
16677 String get appearance();
16678
16679 /** Sets the value of "appearance" */
16680 void set appearance(var value);
16681
16682 /** Gets the value of "backface-visibility" */
16683 String get backfaceVisibility();
16684
16685 /** Sets the value of "backface-visibility" */
16686 void set backfaceVisibility(var value);
16687
16688 /** Gets the value of "background" */
16689 String get background();
16690
16691 /** Sets the value of "background" */
16692 void set background(var value);
16693
16694 /** Gets the value of "background-attachment" */
16695 String get backgroundAttachment();
16696
16697 /** Sets the value of "background-attachment" */
16698 void set backgroundAttachment(var value);
16699
16700 /** Gets the value of "background-clip" */
16701 String get backgroundClip();
16702
16703 /** Sets the value of "background-clip" */
16704 void set backgroundClip(var value);
16705
16706 /** Gets the value of "background-color" */
16707 String get backgroundColor();
16708
16709 /** Sets the value of "background-color" */
16710 void set backgroundColor(var value);
16711
16712 /** Gets the value of "background-composite" */
16713 String get backgroundComposite();
16714
16715 /** Sets the value of "background-composite" */
16716 void set backgroundComposite(var value);
16717
16718 /** Gets the value of "background-image" */
16719 String get backgroundImage();
16720
16721 /** Sets the value of "background-image" */
16722 void set backgroundImage(var value);
16723
16724 /** Gets the value of "background-origin" */
16725 String get backgroundOrigin();
16726
16727 /** Sets the value of "background-origin" */
16728 void set backgroundOrigin(var value);
16729
16730 /** Gets the value of "background-position" */
16731 String get backgroundPosition();
16732
16733 /** Sets the value of "background-position" */
16734 void set backgroundPosition(var value);
16735
16736 /** Gets the value of "background-position-x" */
16737 String get backgroundPositionX();
16738
16739 /** Sets the value of "background-position-x" */
16740 void set backgroundPositionX(var value);
16741
16742 /** Gets the value of "background-position-y" */
16743 String get backgroundPositionY();
16744
16745 /** Sets the value of "background-position-y" */
16746 void set backgroundPositionY(var value);
16747
16748 /** Gets the value of "background-repeat" */
16749 String get backgroundRepeat();
16750
16751 /** Sets the value of "background-repeat" */
16752 void set backgroundRepeat(var value);
16753
16754 /** Gets the value of "background-repeat-x" */
16755 String get backgroundRepeatX();
16756
16757 /** Sets the value of "background-repeat-x" */
16758 void set backgroundRepeatX(var value);
16759
16760 /** Gets the value of "background-repeat-y" */
16761 String get backgroundRepeatY();
16762
16763 /** Sets the value of "background-repeat-y" */
16764 void set backgroundRepeatY(var value);
16765
16766 /** Gets the value of "background-size" */
16767 String get backgroundSize();
16768
16769 /** Sets the value of "background-size" */
16770 void set backgroundSize(var value);
16771
16772 /** Gets the value of "border" */
16773 String get border();
16774
16775 /** Sets the value of "border" */
16776 void set border(var value);
16777
16778 /** Gets the value of "border-after" */
16779 String get borderAfter();
16780
16781 /** Sets the value of "border-after" */
16782 void set borderAfter(var value);
16783
16784 /** Gets the value of "border-after-color" */
16785 String get borderAfterColor();
16786
16787 /** Sets the value of "border-after-color" */
16788 void set borderAfterColor(var value);
16789
16790 /** Gets the value of "border-after-style" */
16791 String get borderAfterStyle();
16792
16793 /** Sets the value of "border-after-style" */
16794 void set borderAfterStyle(var value);
16795
16796 /** Gets the value of "border-after-width" */
16797 String get borderAfterWidth();
16798
16799 /** Sets the value of "border-after-width" */
16800 void set borderAfterWidth(var value);
16801
16802 /** Gets the value of "border-before" */
16803 String get borderBefore();
16804
16805 /** Sets the value of "border-before" */
16806 void set borderBefore(var value);
16807
16808 /** Gets the value of "border-before-color" */
16809 String get borderBeforeColor();
16810
16811 /** Sets the value of "border-before-color" */
16812 void set borderBeforeColor(var value);
16813
16814 /** Gets the value of "border-before-style" */
16815 String get borderBeforeStyle();
16816
16817 /** Sets the value of "border-before-style" */
16818 void set borderBeforeStyle(var value);
16819
16820 /** Gets the value of "border-before-width" */
16821 String get borderBeforeWidth();
16822
16823 /** Sets the value of "border-before-width" */
16824 void set borderBeforeWidth(var value);
16825
16826 /** Gets the value of "border-bottom" */
16827 String get borderBottom();
16828
16829 /** Sets the value of "border-bottom" */
16830 void set borderBottom(var value);
16831
16832 /** Gets the value of "border-bottom-color" */
16833 String get borderBottomColor();
16834
16835 /** Sets the value of "border-bottom-color" */
16836 void set borderBottomColor(var value);
16837
16838 /** Gets the value of "border-bottom-left-radius" */
16839 String get borderBottomLeftRadius();
16840
16841 /** Sets the value of "border-bottom-left-radius" */
16842 void set borderBottomLeftRadius(var value);
16843
16844 /** Gets the value of "border-bottom-right-radius" */
16845 String get borderBottomRightRadius();
16846
16847 /** Sets the value of "border-bottom-right-radius" */
16848 void set borderBottomRightRadius(var value);
16849
16850 /** Gets the value of "border-bottom-style" */
16851 String get borderBottomStyle();
16852
16853 /** Sets the value of "border-bottom-style" */
16854 void set borderBottomStyle(var value);
16855
16856 /** Gets the value of "border-bottom-width" */
16857 String get borderBottomWidth();
16858
16859 /** Sets the value of "border-bottom-width" */
16860 void set borderBottomWidth(var value);
16861
16862 /** Gets the value of "border-collapse" */
16863 String get borderCollapse();
16864
16865 /** Sets the value of "border-collapse" */
16866 void set borderCollapse(var value);
16867
16868 /** Gets the value of "border-color" */
16869 String get borderColor();
16870
16871 /** Sets the value of "border-color" */
16872 void set borderColor(var value);
16873
16874 /** Gets the value of "border-end" */
16875 String get borderEnd();
16876
16877 /** Sets the value of "border-end" */
16878 void set borderEnd(var value);
16879
16880 /** Gets the value of "border-end-color" */
16881 String get borderEndColor();
16882
16883 /** Sets the value of "border-end-color" */
16884 void set borderEndColor(var value);
16885
16886 /** Gets the value of "border-end-style" */
16887 String get borderEndStyle();
16888
16889 /** Sets the value of "border-end-style" */
16890 void set borderEndStyle(var value);
16891
16892 /** Gets the value of "border-end-width" */
16893 String get borderEndWidth();
16894
16895 /** Sets the value of "border-end-width" */
16896 void set borderEndWidth(var value);
16897
16898 /** Gets the value of "border-fit" */
16899 String get borderFit();
16900
16901 /** Sets the value of "border-fit" */
16902 void set borderFit(var value);
16903
16904 /** Gets the value of "border-horizontal-spacing" */
16905 String get borderHorizontalSpacing();
16906
16907 /** Sets the value of "border-horizontal-spacing" */
16908 void set borderHorizontalSpacing(var value);
16909
16910 /** Gets the value of "border-image" */
16911 String get borderImage();
16912
16913 /** Sets the value of "border-image" */
16914 void set borderImage(var value);
16915
16916 /** Gets the value of "border-image-outset" */
16917 String get borderImageOutset();
16918
16919 /** Sets the value of "border-image-outset" */
16920 void set borderImageOutset(var value);
16921
16922 /** Gets the value of "border-image-repeat" */
16923 String get borderImageRepeat();
16924
16925 /** Sets the value of "border-image-repeat" */
16926 void set borderImageRepeat(var value);
16927
16928 /** Gets the value of "border-image-slice" */
16929 String get borderImageSlice();
16930
16931 /** Sets the value of "border-image-slice" */
16932 void set borderImageSlice(var value);
16933
16934 /** Gets the value of "border-image-source" */
16935 String get borderImageSource();
16936
16937 /** Sets the value of "border-image-source" */
16938 void set borderImageSource(var value);
16939
16940 /** Gets the value of "border-image-width" */
16941 String get borderImageWidth();
16942
16943 /** Sets the value of "border-image-width" */
16944 void set borderImageWidth(var value);
16945
16946 /** Gets the value of "border-left" */
16947 String get borderLeft();
16948
16949 /** Sets the value of "border-left" */
16950 void set borderLeft(var value);
16951
16952 /** Gets the value of "border-left-color" */
16953 String get borderLeftColor();
16954
16955 /** Sets the value of "border-left-color" */
16956 void set borderLeftColor(var value);
16957
16958 /** Gets the value of "border-left-style" */
16959 String get borderLeftStyle();
16960
16961 /** Sets the value of "border-left-style" */
16962 void set borderLeftStyle(var value);
16963
16964 /** Gets the value of "border-left-width" */
16965 String get borderLeftWidth();
16966
16967 /** Sets the value of "border-left-width" */
16968 void set borderLeftWidth(var value);
16969
16970 /** Gets the value of "border-radius" */
16971 String get borderRadius();
16972
16973 /** Sets the value of "border-radius" */
16974 void set borderRadius(var value);
16975
16976 /** Gets the value of "border-right" */
16977 String get borderRight();
16978
16979 /** Sets the value of "border-right" */
16980 void set borderRight(var value);
16981
16982 /** Gets the value of "border-right-color" */
16983 String get borderRightColor();
16984
16985 /** Sets the value of "border-right-color" */
16986 void set borderRightColor(var value);
16987
16988 /** Gets the value of "border-right-style" */
16989 String get borderRightStyle();
16990
16991 /** Sets the value of "border-right-style" */
16992 void set borderRightStyle(var value);
16993
16994 /** Gets the value of "border-right-width" */
16995 String get borderRightWidth();
16996
16997 /** Sets the value of "border-right-width" */
16998 void set borderRightWidth(var value);
16999
17000 /** Gets the value of "border-spacing" */
17001 String get borderSpacing();
17002
17003 /** Sets the value of "border-spacing" */
17004 void set borderSpacing(var value);
17005
17006 /** Gets the value of "border-start" */
17007 String get borderStart();
17008
17009 /** Sets the value of "border-start" */
17010 void set borderStart(var value);
17011
17012 /** Gets the value of "border-start-color" */
17013 String get borderStartColor();
17014
17015 /** Sets the value of "border-start-color" */
17016 void set borderStartColor(var value);
17017
17018 /** Gets the value of "border-start-style" */
17019 String get borderStartStyle();
17020
17021 /** Sets the value of "border-start-style" */
17022 void set borderStartStyle(var value);
17023
17024 /** Gets the value of "border-start-width" */
17025 String get borderStartWidth();
17026
17027 /** Sets the value of "border-start-width" */
17028 void set borderStartWidth(var value);
17029
17030 /** Gets the value of "border-style" */
17031 String get borderStyle();
17032
17033 /** Sets the value of "border-style" */
17034 void set borderStyle(var value);
17035
17036 /** Gets the value of "border-top" */
17037 String get borderTop();
17038
17039 /** Sets the value of "border-top" */
17040 void set borderTop(var value);
17041
17042 /** Gets the value of "border-top-color" */
17043 String get borderTopColor();
17044
17045 /** Sets the value of "border-top-color" */
17046 void set borderTopColor(var value);
17047
17048 /** Gets the value of "border-top-left-radius" */
17049 String get borderTopLeftRadius();
17050
17051 /** Sets the value of "border-top-left-radius" */
17052 void set borderTopLeftRadius(var value);
17053
17054 /** Gets the value of "border-top-right-radius" */
17055 String get borderTopRightRadius();
17056
17057 /** Sets the value of "border-top-right-radius" */
17058 void set borderTopRightRadius(var value);
17059
17060 /** Gets the value of "border-top-style" */
17061 String get borderTopStyle();
17062
17063 /** Sets the value of "border-top-style" */
17064 void set borderTopStyle(var value);
17065
17066 /** Gets the value of "border-top-width" */
17067 String get borderTopWidth();
17068
17069 /** Sets the value of "border-top-width" */
17070 void set borderTopWidth(var value);
17071
17072 /** Gets the value of "border-vertical-spacing" */
17073 String get borderVerticalSpacing();
17074
17075 /** Sets the value of "border-vertical-spacing" */
17076 void set borderVerticalSpacing(var value);
17077
17078 /** Gets the value of "border-width" */
17079 String get borderWidth();
17080
17081 /** Sets the value of "border-width" */
17082 void set borderWidth(var value);
17083
17084 /** Gets the value of "bottom" */
17085 String get bottom();
17086
17087 /** Sets the value of "bottom" */
17088 void set bottom(var value);
17089
17090 /** Gets the value of "box-align" */
17091 String get boxAlign();
17092
17093 /** Sets the value of "box-align" */
17094 void set boxAlign(var value);
17095
17096 /** Gets the value of "box-direction" */
17097 String get boxDirection();
17098
17099 /** Sets the value of "box-direction" */
17100 void set boxDirection(var value);
17101
17102 /** Gets the value of "box-flex" */
17103 String get boxFlex();
17104
17105 /** Sets the value of "box-flex" */
17106 void set boxFlex(var value);
17107
17108 /** Gets the value of "box-flex-group" */
17109 String get boxFlexGroup();
17110
17111 /** Sets the value of "box-flex-group" */
17112 void set boxFlexGroup(var value);
17113
17114 /** Gets the value of "box-lines" */
17115 String get boxLines();
17116
17117 /** Sets the value of "box-lines" */
17118 void set boxLines(var value);
17119
17120 /** Gets the value of "box-ordinal-group" */
17121 String get boxOrdinalGroup();
17122
17123 /** Sets the value of "box-ordinal-group" */
17124 void set boxOrdinalGroup(var value);
17125
17126 /** Gets the value of "box-orient" */
17127 String get boxOrient();
17128
17129 /** Sets the value of "box-orient" */
17130 void set boxOrient(var value);
17131
17132 /** Gets the value of "box-pack" */
17133 String get boxPack();
17134
17135 /** Sets the value of "box-pack" */
17136 void set boxPack(var value);
17137
17138 /** Gets the value of "box-reflect" */
17139 String get boxReflect();
17140
17141 /** Sets the value of "box-reflect" */
17142 void set boxReflect(var value);
17143
17144 /** Gets the value of "box-shadow" */
17145 String get boxShadow();
17146
17147 /** Sets the value of "box-shadow" */
17148 void set boxShadow(var value);
17149
17150 /** Gets the value of "box-sizing" */
17151 String get boxSizing();
17152
17153 /** Sets the value of "box-sizing" */
17154 void set boxSizing(var value);
17155
17156 /** Gets the value of "caption-side" */
17157 String get captionSide();
17158
17159 /** Sets the value of "caption-side" */
17160 void set captionSide(var value);
17161
17162 /** Gets the value of "clear" */
17163 String get clear();
17164
17165 /** Sets the value of "clear" */
17166 void set clear(var value);
17167
17168 /** Gets the value of "clip" */
17169 String get clip();
17170
17171 /** Sets the value of "clip" */
17172 void set clip(var value);
17173
17174 /** Gets the value of "color" */
17175 String get color();
17176
17177 /** Sets the value of "color" */
17178 void set color(var value);
17179
17180 /** Gets the value of "color-correction" */
17181 String get colorCorrection();
17182
17183 /** Sets the value of "color-correction" */
17184 void set colorCorrection(var value);
17185
17186 /** Gets the value of "column-break-after" */
17187 String get columnBreakAfter();
17188
17189 /** Sets the value of "column-break-after" */
17190 void set columnBreakAfter(var value);
17191
17192 /** Gets the value of "column-break-before" */
17193 String get columnBreakBefore();
17194
17195 /** Sets the value of "column-break-before" */
17196 void set columnBreakBefore(var value);
17197
17198 /** Gets the value of "column-break-inside" */
17199 String get columnBreakInside();
17200
17201 /** Sets the value of "column-break-inside" */
17202 void set columnBreakInside(var value);
17203
17204 /** Gets the value of "column-count" */
17205 String get columnCount();
17206
17207 /** Sets the value of "column-count" */
17208 void set columnCount(var value);
17209
17210 /** Gets the value of "column-gap" */
17211 String get columnGap();
17212
17213 /** Sets the value of "column-gap" */
17214 void set columnGap(var value);
17215
17216 /** Gets the value of "column-rule" */
17217 String get columnRule();
17218
17219 /** Sets the value of "column-rule" */
17220 void set columnRule(var value);
17221
17222 /** Gets the value of "column-rule-color" */
17223 String get columnRuleColor();
17224
17225 /** Sets the value of "column-rule-color" */
17226 void set columnRuleColor(var value);
17227
17228 /** Gets the value of "column-rule-style" */
17229 String get columnRuleStyle();
17230
17231 /** Sets the value of "column-rule-style" */
17232 void set columnRuleStyle(var value);
17233
17234 /** Gets the value of "column-rule-width" */
17235 String get columnRuleWidth();
17236
17237 /** Sets the value of "column-rule-width" */
17238 void set columnRuleWidth(var value);
17239
17240 /** Gets the value of "column-span" */
17241 String get columnSpan();
17242
17243 /** Sets the value of "column-span" */
17244 void set columnSpan(var value);
17245
17246 /** Gets the value of "column-width" */
17247 String get columnWidth();
17248
17249 /** Sets the value of "column-width" */
17250 void set columnWidth(var value);
17251
17252 /** Gets the value of "columns" */
17253 String get columns();
17254
17255 /** Sets the value of "columns" */
17256 void set columns(var value);
17257
17258 /** Gets the value of "content" */
17259 String get content();
17260
17261 /** Sets the value of "content" */
17262 void set content(var value);
17263
17264 /** Gets the value of "counter-increment" */
17265 String get counterIncrement();
17266
17267 /** Sets the value of "counter-increment" */
17268 void set counterIncrement(var value);
17269
17270 /** Gets the value of "counter-reset" */
17271 String get counterReset();
17272
17273 /** Sets the value of "counter-reset" */
17274 void set counterReset(var value);
17275
17276 /** Gets the value of "cursor" */
17277 String get cursor();
17278
17279 /** Sets the value of "cursor" */
17280 void set cursor(var value);
17281
17282 /** Gets the value of "direction" */
17283 String get direction();
17284
17285 /** Sets the value of "direction" */
17286 void set direction(var value);
17287
17288 /** Gets the value of "display" */
17289 String get display();
17290
17291 /** Sets the value of "display" */
17292 void set display(var value);
17293
17294 /** Gets the value of "empty-cells" */
17295 String get emptyCells();
17296
17297 /** Sets the value of "empty-cells" */
17298 void set emptyCells(var value);
17299
17300 /** Gets the value of "filter" */
17301 String get filter();
17302
17303 /** Sets the value of "filter" */
17304 void set filter(var value);
17305
17306 /** Gets the value of "flex-align" */
17307 String get flexAlign();
17308
17309 /** Sets the value of "flex-align" */
17310 void set flexAlign(var value);
17311
17312 /** Gets the value of "flex-flow" */
17313 String get flexFlow();
17314
17315 /** Sets the value of "flex-flow" */
17316 void set flexFlow(var value);
17317
17318 /** Gets the value of "flex-order" */
17319 String get flexOrder();
17320
17321 /** Sets the value of "flex-order" */
17322 void set flexOrder(var value);
17323
17324 /** Gets the value of "flex-pack" */
17325 String get flexPack();
17326
17327 /** Sets the value of "flex-pack" */
17328 void set flexPack(var value);
17329
17330 /** Gets the value of "float" */
17331 String get float();
17332
17333 /** Sets the value of "float" */
17334 void set float(var value);
17335
17336 /** Gets the value of "flow-from" */
17337 String get flowFrom();
17338
17339 /** Sets the value of "flow-from" */
17340 void set flowFrom(var value);
17341
17342 /** Gets the value of "flow-into" */
17343 String get flowInto();
17344
17345 /** Sets the value of "flow-into" */
17346 void set flowInto(var value);
17347
17348 /** Gets the value of "font" */
17349 String get font();
17350
17351 /** Sets the value of "font" */
17352 void set font(var value);
17353
17354 /** Gets the value of "font-family" */
17355 String get fontFamily();
17356
17357 /** Sets the value of "font-family" */
17358 void set fontFamily(var value);
17359
17360 /** Gets the value of "font-feature-settings" */
17361 String get fontFeatureSettings();
17362
17363 /** Sets the value of "font-feature-settings" */
17364 void set fontFeatureSettings(var value);
17365
17366 /** Gets the value of "font-size" */
17367 String get fontSize();
17368
17369 /** Sets the value of "font-size" */
17370 void set fontSize(var value);
17371
17372 /** Gets the value of "font-size-delta" */
17373 String get fontSizeDelta();
17374
17375 /** Sets the value of "font-size-delta" */
17376 void set fontSizeDelta(var value);
17377
17378 /** Gets the value of "font-smoothing" */
17379 String get fontSmoothing();
17380
17381 /** Sets the value of "font-smoothing" */
17382 void set fontSmoothing(var value);
17383
17384 /** Gets the value of "font-stretch" */
17385 String get fontStretch();
17386
17387 /** Sets the value of "font-stretch" */
17388 void set fontStretch(var value);
17389
17390 /** Gets the value of "font-style" */
17391 String get fontStyle();
17392
17393 /** Sets the value of "font-style" */
17394 void set fontStyle(var value);
17395
17396 /** Gets the value of "font-variant" */
17397 String get fontVariant();
17398
17399 /** Sets the value of "font-variant" */
17400 void set fontVariant(var value);
17401
17402 /** Gets the value of "font-weight" */
17403 String get fontWeight();
17404
17405 /** Sets the value of "font-weight" */
17406 void set fontWeight(var value);
17407
17408 /** Gets the value of "height" */
17409 String get height();
17410
17411 /** Sets the value of "height" */
17412 void set height(var value);
17413
17414 /** Gets the value of "highlight" */
17415 String get highlight();
17416
17417 /** Sets the value of "highlight" */
17418 void set highlight(var value);
17419
17420 /** Gets the value of "hyphenate-character" */
17421 String get hyphenateCharacter();
17422
17423 /** Sets the value of "hyphenate-character" */
17424 void set hyphenateCharacter(var value);
17425
17426 /** Gets the value of "hyphenate-limit-after" */
17427 String get hyphenateLimitAfter();
17428
17429 /** Sets the value of "hyphenate-limit-after" */
17430 void set hyphenateLimitAfter(var value);
17431
17432 /** Gets the value of "hyphenate-limit-before" */
17433 String get hyphenateLimitBefore();
17434
17435 /** Sets the value of "hyphenate-limit-before" */
17436 void set hyphenateLimitBefore(var value);
17437
17438 /** Gets the value of "hyphenate-limit-lines" */
17439 String get hyphenateLimitLines();
17440
17441 /** Sets the value of "hyphenate-limit-lines" */
17442 void set hyphenateLimitLines(var value);
17443
17444 /** Gets the value of "hyphens" */
17445 String get hyphens();
17446
17447 /** Sets the value of "hyphens" */
17448 void set hyphens(var value);
17449
17450 /** Gets the value of "image-rendering" */
17451 String get imageRendering();
17452
17453 /** Sets the value of "image-rendering" */
17454 void set imageRendering(var value);
17455
17456 /** Gets the value of "left" */
17457 String get left();
17458
17459 /** Sets the value of "left" */
17460 void set left(var value);
17461
17462 /** Gets the value of "letter-spacing" */
17463 String get letterSpacing();
17464
17465 /** Sets the value of "letter-spacing" */
17466 void set letterSpacing(var value);
17467
17468 /** Gets the value of "line-box-contain" */
17469 String get lineBoxContain();
17470
17471 /** Sets the value of "line-box-contain" */
17472 void set lineBoxContain(var value);
17473
17474 /** Gets the value of "line-break" */
17475 String get lineBreak();
17476
17477 /** Sets the value of "line-break" */
17478 void set lineBreak(var value);
17479
17480 /** Gets the value of "line-clamp" */
17481 String get lineClamp();
17482
17483 /** Sets the value of "line-clamp" */
17484 void set lineClamp(var value);
17485
17486 /** Gets the value of "line-height" */
17487 String get lineHeight();
17488
17489 /** Sets the value of "line-height" */
17490 void set lineHeight(var value);
17491
17492 /** Gets the value of "list-style" */
17493 String get listStyle();
17494
17495 /** Sets the value of "list-style" */
17496 void set listStyle(var value);
17497
17498 /** Gets the value of "list-style-image" */
17499 String get listStyleImage();
17500
17501 /** Sets the value of "list-style-image" */
17502 void set listStyleImage(var value);
17503
17504 /** Gets the value of "list-style-position" */
17505 String get listStylePosition();
17506
17507 /** Sets the value of "list-style-position" */
17508 void set listStylePosition(var value);
17509
17510 /** Gets the value of "list-style-type" */
17511 String get listStyleType();
17512
17513 /** Sets the value of "list-style-type" */
17514 void set listStyleType(var value);
17515
17516 /** Gets the value of "locale" */
17517 String get locale();
17518
17519 /** Sets the value of "locale" */
17520 void set locale(var value);
17521
17522 /** Gets the value of "logical-height" */
17523 String get logicalHeight();
17524
17525 /** Sets the value of "logical-height" */
17526 void set logicalHeight(var value);
17527
17528 /** Gets the value of "logical-width" */
17529 String get logicalWidth();
17530
17531 /** Sets the value of "logical-width" */
17532 void set logicalWidth(var value);
17533
17534 /** Gets the value of "margin" */
17535 String get margin();
17536
17537 /** Sets the value of "margin" */
17538 void set margin(var value);
17539
17540 /** Gets the value of "margin-after" */
17541 String get marginAfter();
17542
17543 /** Sets the value of "margin-after" */
17544 void set marginAfter(var value);
17545
17546 /** Gets the value of "margin-after-collapse" */
17547 String get marginAfterCollapse();
17548
17549 /** Sets the value of "margin-after-collapse" */
17550 void set marginAfterCollapse(var value);
17551
17552 /** Gets the value of "margin-before" */
17553 String get marginBefore();
17554
17555 /** Sets the value of "margin-before" */
17556 void set marginBefore(var value);
17557
17558 /** Gets the value of "margin-before-collapse" */
17559 String get marginBeforeCollapse();
17560
17561 /** Sets the value of "margin-before-collapse" */
17562 void set marginBeforeCollapse(var value);
17563
17564 /** Gets the value of "margin-bottom" */
17565 String get marginBottom();
17566
17567 /** Sets the value of "margin-bottom" */
17568 void set marginBottom(var value);
17569
17570 /** Gets the value of "margin-bottom-collapse" */
17571 String get marginBottomCollapse();
17572
17573 /** Sets the value of "margin-bottom-collapse" */
17574 void set marginBottomCollapse(var value);
17575
17576 /** Gets the value of "margin-collapse" */
17577 String get marginCollapse();
17578
17579 /** Sets the value of "margin-collapse" */
17580 void set marginCollapse(var value);
17581
17582 /** Gets the value of "margin-end" */
17583 String get marginEnd();
17584
17585 /** Sets the value of "margin-end" */
17586 void set marginEnd(var value);
17587
17588 /** Gets the value of "margin-left" */
17589 String get marginLeft();
17590
17591 /** Sets the value of "margin-left" */
17592 void set marginLeft(var value);
17593
17594 /** Gets the value of "margin-right" */
17595 String get marginRight();
17596
17597 /** Sets the value of "margin-right" */
17598 void set marginRight(var value);
17599
17600 /** Gets the value of "margin-start" */
17601 String get marginStart();
17602
17603 /** Sets the value of "margin-start" */
17604 void set marginStart(var value);
17605
17606 /** Gets the value of "margin-top" */
17607 String get marginTop();
17608
17609 /** Sets the value of "margin-top" */
17610 void set marginTop(var value);
17611
17612 /** Gets the value of "margin-top-collapse" */
17613 String get marginTopCollapse();
17614
17615 /** Sets the value of "margin-top-collapse" */
17616 void set marginTopCollapse(var value);
17617
17618 /** Gets the value of "marquee" */
17619 String get marquee();
17620
17621 /** Sets the value of "marquee" */
17622 void set marquee(var value);
17623
17624 /** Gets the value of "marquee-direction" */
17625 String get marqueeDirection();
17626
17627 /** Sets the value of "marquee-direction" */
17628 void set marqueeDirection(var value);
17629
17630 /** Gets the value of "marquee-increment" */
17631 String get marqueeIncrement();
17632
17633 /** Sets the value of "marquee-increment" */
17634 void set marqueeIncrement(var value);
17635
17636 /** Gets the value of "marquee-repetition" */
17637 String get marqueeRepetition();
17638
17639 /** Sets the value of "marquee-repetition" */
17640 void set marqueeRepetition(var value);
17641
17642 /** Gets the value of "marquee-speed" */
17643 String get marqueeSpeed();
17644
17645 /** Sets the value of "marquee-speed" */
17646 void set marqueeSpeed(var value);
17647
17648 /** Gets the value of "marquee-style" */
17649 String get marqueeStyle();
17650
17651 /** Sets the value of "marquee-style" */
17652 void set marqueeStyle(var value);
17653
17654 /** Gets the value of "mask" */
17655 String get mask();
17656
17657 /** Sets the value of "mask" */
17658 void set mask(var value);
17659
17660 /** Gets the value of "mask-attachment" */
17661 String get maskAttachment();
17662
17663 /** Sets the value of "mask-attachment" */
17664 void set maskAttachment(var value);
17665
17666 /** Gets the value of "mask-box-image" */
17667 String get maskBoxImage();
17668
17669 /** Sets the value of "mask-box-image" */
17670 void set maskBoxImage(var value);
17671
17672 /** Gets the value of "mask-box-image-outset" */
17673 String get maskBoxImageOutset();
17674
17675 /** Sets the value of "mask-box-image-outset" */
17676 void set maskBoxImageOutset(var value);
17677
17678 /** Gets the value of "mask-box-image-repeat" */
17679 String get maskBoxImageRepeat();
17680
17681 /** Sets the value of "mask-box-image-repeat" */
17682 void set maskBoxImageRepeat(var value);
17683
17684 /** Gets the value of "mask-box-image-slice" */
17685 String get maskBoxImageSlice();
17686
17687 /** Sets the value of "mask-box-image-slice" */
17688 void set maskBoxImageSlice(var value);
17689
17690 /** Gets the value of "mask-box-image-source" */
17691 String get maskBoxImageSource();
17692
17693 /** Sets the value of "mask-box-image-source" */
17694 void set maskBoxImageSource(var value);
17695
17696 /** Gets the value of "mask-box-image-width" */
17697 String get maskBoxImageWidth();
17698
17699 /** Sets the value of "mask-box-image-width" */
17700 void set maskBoxImageWidth(var value);
17701
17702 /** Gets the value of "mask-clip" */
17703 String get maskClip();
17704
17705 /** Sets the value of "mask-clip" */
17706 void set maskClip(var value);
17707
17708 /** Gets the value of "mask-composite" */
17709 String get maskComposite();
17710
17711 /** Sets the value of "mask-composite" */
17712 void set maskComposite(var value);
17713
17714 /** Gets the value of "mask-image" */
17715 String get maskImage();
17716
17717 /** Sets the value of "mask-image" */
17718 void set maskImage(var value);
17719
17720 /** Gets the value of "mask-origin" */
17721 String get maskOrigin();
17722
17723 /** Sets the value of "mask-origin" */
17724 void set maskOrigin(var value);
17725
17726 /** Gets the value of "mask-position" */
17727 String get maskPosition();
17728
17729 /** Sets the value of "mask-position" */
17730 void set maskPosition(var value);
17731
17732 /** Gets the value of "mask-position-x" */
17733 String get maskPositionX();
17734
17735 /** Sets the value of "mask-position-x" */
17736 void set maskPositionX(var value);
17737
17738 /** Gets the value of "mask-position-y" */
17739 String get maskPositionY();
17740
17741 /** Sets the value of "mask-position-y" */
17742 void set maskPositionY(var value);
17743
17744 /** Gets the value of "mask-repeat" */
17745 String get maskRepeat();
17746
17747 /** Sets the value of "mask-repeat" */
17748 void set maskRepeat(var value);
17749
17750 /** Gets the value of "mask-repeat-x" */
17751 String get maskRepeatX();
17752
17753 /** Sets the value of "mask-repeat-x" */
17754 void set maskRepeatX(var value);
17755
17756 /** Gets the value of "mask-repeat-y" */
17757 String get maskRepeatY();
17758
17759 /** Sets the value of "mask-repeat-y" */
17760 void set maskRepeatY(var value);
17761
17762 /** Gets the value of "mask-size" */
17763 String get maskSize();
17764
17765 /** Sets the value of "mask-size" */
17766 void set maskSize(var value);
17767
17768 /** Gets the value of "match-nearest-mail-blockquote-color" */
17769 String get matchNearestMailBlockquoteColor();
17770
17771 /** Sets the value of "match-nearest-mail-blockquote-color" */
17772 void set matchNearestMailBlockquoteColor(var value);
17773
17774 /** Gets the value of "max-height" */
17775 String get maxHeight();
17776
17777 /** Sets the value of "max-height" */
17778 void set maxHeight(var value);
17779
17780 /** Gets the value of "max-logical-height" */
17781 String get maxLogicalHeight();
17782
17783 /** Sets the value of "max-logical-height" */
17784 void set maxLogicalHeight(var value);
17785
17786 /** Gets the value of "max-logical-width" */
17787 String get maxLogicalWidth();
17788
17789 /** Sets the value of "max-logical-width" */
17790 void set maxLogicalWidth(var value);
17791
17792 /** Gets the value of "max-width" */
17793 String get maxWidth();
17794
17795 /** Sets the value of "max-width" */
17796 void set maxWidth(var value);
17797
17798 /** Gets the value of "min-height" */
17799 String get minHeight();
17800
17801 /** Sets the value of "min-height" */
17802 void set minHeight(var value);
17803
17804 /** Gets the value of "min-logical-height" */
17805 String get minLogicalHeight();
17806
17807 /** Sets the value of "min-logical-height" */
17808 void set minLogicalHeight(var value);
17809
17810 /** Gets the value of "min-logical-width" */
17811 String get minLogicalWidth();
17812
17813 /** Sets the value of "min-logical-width" */
17814 void set minLogicalWidth(var value);
17815
17816 /** Gets the value of "min-width" */
17817 String get minWidth();
17818
17819 /** Sets the value of "min-width" */
17820 void set minWidth(var value);
17821
17822 /** Gets the value of "nbsp-mode" */
17823 String get nbspMode();
17824
17825 /** Sets the value of "nbsp-mode" */
17826 void set nbspMode(var value);
17827
17828 /** Gets the value of "opacity" */
17829 String get opacity();
17830
17831 /** Sets the value of "opacity" */
17832 void set opacity(var value);
17833
17834 /** Gets the value of "orphans" */
17835 String get orphans();
17836
17837 /** Sets the value of "orphans" */
17838 void set orphans(var value);
17839
17840 /** Gets the value of "outline" */
17841 String get outline();
17842
17843 /** Sets the value of "outline" */
17844 void set outline(var value);
17845
17846 /** Gets the value of "outline-color" */
17847 String get outlineColor();
17848
17849 /** Sets the value of "outline-color" */
17850 void set outlineColor(var value);
17851
17852 /** Gets the value of "outline-offset" */
17853 String get outlineOffset();
17854
17855 /** Sets the value of "outline-offset" */
17856 void set outlineOffset(var value);
17857
17858 /** Gets the value of "outline-style" */
17859 String get outlineStyle();
17860
17861 /** Sets the value of "outline-style" */
17862 void set outlineStyle(var value);
17863
17864 /** Gets the value of "outline-width" */
17865 String get outlineWidth();
17866
17867 /** Sets the value of "outline-width" */
17868 void set outlineWidth(var value);
17869
17870 /** Gets the value of "overflow" */
17871 String get overflow();
17872
17873 /** Sets the value of "overflow" */
17874 void set overflow(var value);
17875
17876 /** Gets the value of "overflow-x" */
17877 String get overflowX();
17878
17879 /** Sets the value of "overflow-x" */
17880 void set overflowX(var value);
17881
17882 /** Gets the value of "overflow-y" */
17883 String get overflowY();
17884
17885 /** Sets the value of "overflow-y" */
17886 void set overflowY(var value);
17887
17888 /** Gets the value of "padding" */
17889 String get padding();
17890
17891 /** Sets the value of "padding" */
17892 void set padding(var value);
17893
17894 /** Gets the value of "padding-after" */
17895 String get paddingAfter();
17896
17897 /** Sets the value of "padding-after" */
17898 void set paddingAfter(var value);
17899
17900 /** Gets the value of "padding-before" */
17901 String get paddingBefore();
17902
17903 /** Sets the value of "padding-before" */
17904 void set paddingBefore(var value);
17905
17906 /** Gets the value of "padding-bottom" */
17907 String get paddingBottom();
17908
17909 /** Sets the value of "padding-bottom" */
17910 void set paddingBottom(var value);
17911
17912 /** Gets the value of "padding-end" */
17913 String get paddingEnd();
17914
17915 /** Sets the value of "padding-end" */
17916 void set paddingEnd(var value);
17917
17918 /** Gets the value of "padding-left" */
17919 String get paddingLeft();
17920
17921 /** Sets the value of "padding-left" */
17922 void set paddingLeft(var value);
17923
17924 /** Gets the value of "padding-right" */
17925 String get paddingRight();
17926
17927 /** Sets the value of "padding-right" */
17928 void set paddingRight(var value);
17929
17930 /** Gets the value of "padding-start" */
17931 String get paddingStart();
17932
17933 /** Sets the value of "padding-start" */
17934 void set paddingStart(var value);
17935
17936 /** Gets the value of "padding-top" */
17937 String get paddingTop();
17938
17939 /** Sets the value of "padding-top" */
17940 void set paddingTop(var value);
17941
17942 /** Gets the value of "page" */
17943 String get page();
17944
17945 /** Sets the value of "page" */
17946 void set page(var value);
17947
17948 /** Gets the value of "page-break-after" */
17949 String get pageBreakAfter();
17950
17951 /** Sets the value of "page-break-after" */
17952 void set pageBreakAfter(var value);
17953
17954 /** Gets the value of "page-break-before" */
17955 String get pageBreakBefore();
17956
17957 /** Sets the value of "page-break-before" */
17958 void set pageBreakBefore(var value);
17959
17960 /** Gets the value of "page-break-inside" */
17961 String get pageBreakInside();
17962
17963 /** Sets the value of "page-break-inside" */
17964 void set pageBreakInside(var value);
17965
17966 /** Gets the value of "perspective" */
17967 String get perspective();
17968
17969 /** Sets the value of "perspective" */
17970 void set perspective(var value);
17971
17972 /** Gets the value of "perspective-origin" */
17973 String get perspectiveOrigin();
17974
17975 /** Sets the value of "perspective-origin" */
17976 void set perspectiveOrigin(var value);
17977
17978 /** Gets the value of "perspective-origin-x" */
17979 String get perspectiveOriginX();
17980
17981 /** Sets the value of "perspective-origin-x" */
17982 void set perspectiveOriginX(var value);
17983
17984 /** Gets the value of "perspective-origin-y" */
17985 String get perspectiveOriginY();
17986
17987 /** Sets the value of "perspective-origin-y" */
17988 void set perspectiveOriginY(var value);
17989
17990 /** Gets the value of "pointer-events" */
17991 String get pointerEvents();
17992
17993 /** Sets the value of "pointer-events" */
17994 void set pointerEvents(var value);
17995
17996 /** Gets the value of "position" */
17997 String get position();
17998
17999 /** Sets the value of "position" */
18000 void set position(var value);
18001
18002 /** Gets the value of "quotes" */
18003 String get quotes();
18004
18005 /** Sets the value of "quotes" */
18006 void set quotes(var value);
18007
18008 /** Gets the value of "region-break-after" */
18009 String get regionBreakAfter();
18010
18011 /** Sets the value of "region-break-after" */
18012 void set regionBreakAfter(var value);
18013
18014 /** Gets the value of "region-break-before" */
18015 String get regionBreakBefore();
18016
18017 /** Sets the value of "region-break-before" */
18018 void set regionBreakBefore(var value);
18019
18020 /** Gets the value of "region-break-inside" */
18021 String get regionBreakInside();
18022
18023 /** Sets the value of "region-break-inside" */
18024 void set regionBreakInside(var value);
18025
18026 /** Gets the value of "region-overflow" */
18027 String get regionOverflow();
18028
18029 /** Sets the value of "region-overflow" */
18030 void set regionOverflow(var value);
18031
18032 /** Gets the value of "resize" */
18033 String get resize();
18034
18035 /** Sets the value of "resize" */
18036 void set resize(var value);
18037
18038 /** Gets the value of "right" */
18039 String get right();
18040
18041 /** Sets the value of "right" */
18042 void set right(var value);
18043
18044 /** Gets the value of "rtl-ordering" */
18045 String get rtlOrdering();
18046
18047 /** Sets the value of "rtl-ordering" */
18048 void set rtlOrdering(var value);
18049
18050 /** Gets the value of "size" */
18051 String get size();
18052
18053 /** Sets the value of "size" */
18054 void set size(var value);
18055
18056 /** Gets the value of "speak" */
18057 String get speak();
18058
18059 /** Sets the value of "speak" */
18060 void set speak(var value);
18061
18062 /** Gets the value of "src" */
18063 String get src();
18064
18065 /** Sets the value of "src" */
18066 void set src(var value);
18067
18068 /** Gets the value of "table-layout" */
18069 String get tableLayout();
18070
18071 /** Sets the value of "table-layout" */
18072 void set tableLayout(var value);
18073
18074 /** Gets the value of "tap-highlight-color" */
18075 String get tapHighlightColor();
18076
18077 /** Sets the value of "tap-highlight-color" */
18078 void set tapHighlightColor(var value);
18079
18080 /** Gets the value of "text-align" */
18081 String get textAlign();
18082
18083 /** Sets the value of "text-align" */
18084 void set textAlign(var value);
18085
18086 /** Gets the value of "text-combine" */
18087 String get textCombine();
18088
18089 /** Sets the value of "text-combine" */
18090 void set textCombine(var value);
18091
18092 /** Gets the value of "text-decoration" */
18093 String get textDecoration();
18094
18095 /** Sets the value of "text-decoration" */
18096 void set textDecoration(var value);
18097
18098 /** Gets the value of "text-decorations-in-effect" */
18099 String get textDecorationsInEffect();
18100
18101 /** Sets the value of "text-decorations-in-effect" */
18102 void set textDecorationsInEffect(var value);
18103
18104 /** Gets the value of "text-emphasis" */
18105 String get textEmphasis();
18106
18107 /** Sets the value of "text-emphasis" */
18108 void set textEmphasis(var value);
18109
18110 /** Gets the value of "text-emphasis-color" */
18111 String get textEmphasisColor();
18112
18113 /** Sets the value of "text-emphasis-color" */
18114 void set textEmphasisColor(var value);
18115
18116 /** Gets the value of "text-emphasis-position" */
18117 String get textEmphasisPosition();
18118
18119 /** Sets the value of "text-emphasis-position" */
18120 void set textEmphasisPosition(var value);
18121
18122 /** Gets the value of "text-emphasis-style" */
18123 String get textEmphasisStyle();
18124
18125 /** Sets the value of "text-emphasis-style" */
18126 void set textEmphasisStyle(var value);
18127
18128 /** Gets the value of "text-fill-color" */
18129 String get textFillColor();
18130
18131 /** Sets the value of "text-fill-color" */
18132 void set textFillColor(var value);
18133
18134 /** Gets the value of "text-indent" */
18135 String get textIndent();
18136
18137 /** Sets the value of "text-indent" */
18138 void set textIndent(var value);
18139
18140 /** Gets the value of "text-line-through" */
18141 String get textLineThrough();
18142
18143 /** Sets the value of "text-line-through" */
18144 void set textLineThrough(var value);
18145
18146 /** Gets the value of "text-line-through-color" */
18147 String get textLineThroughColor();
18148
18149 /** Sets the value of "text-line-through-color" */
18150 void set textLineThroughColor(var value);
18151
18152 /** Gets the value of "text-line-through-mode" */
18153 String get textLineThroughMode();
18154
18155 /** Sets the value of "text-line-through-mode" */
18156 void set textLineThroughMode(var value);
18157
18158 /** Gets the value of "text-line-through-style" */
18159 String get textLineThroughStyle();
18160
18161 /** Sets the value of "text-line-through-style" */
18162 void set textLineThroughStyle(var value);
18163
18164 /** Gets the value of "text-line-through-width" */
18165 String get textLineThroughWidth();
18166
18167 /** Sets the value of "text-line-through-width" */
18168 void set textLineThroughWidth(var value);
18169
18170 /** Gets the value of "text-orientation" */
18171 String get textOrientation();
18172
18173 /** Sets the value of "text-orientation" */
18174 void set textOrientation(var value);
18175
18176 /** Gets the value of "text-overflow" */
18177 String get textOverflow();
18178
18179 /** Sets the value of "text-overflow" */
18180 void set textOverflow(var value);
18181
18182 /** Gets the value of "text-overline" */
18183 String get textOverline();
18184
18185 /** Sets the value of "text-overline" */
18186 void set textOverline(var value);
18187
18188 /** Gets the value of "text-overline-color" */
18189 String get textOverlineColor();
18190
18191 /** Sets the value of "text-overline-color" */
18192 void set textOverlineColor(var value);
18193
18194 /** Gets the value of "text-overline-mode" */
18195 String get textOverlineMode();
18196
18197 /** Sets the value of "text-overline-mode" */
18198 void set textOverlineMode(var value);
18199
18200 /** Gets the value of "text-overline-style" */
18201 String get textOverlineStyle();
18202
18203 /** Sets the value of "text-overline-style" */
18204 void set textOverlineStyle(var value);
18205
18206 /** Gets the value of "text-overline-width" */
18207 String get textOverlineWidth();
18208
18209 /** Sets the value of "text-overline-width" */
18210 void set textOverlineWidth(var value);
18211
18212 /** Gets the value of "text-rendering" */
18213 String get textRendering();
18214
18215 /** Sets the value of "text-rendering" */
18216 void set textRendering(var value);
18217
18218 /** Gets the value of "text-security" */
18219 String get textSecurity();
18220
18221 /** Sets the value of "text-security" */
18222 void set textSecurity(var value);
18223
18224 /** Gets the value of "text-shadow" */
18225 String get textShadow();
18226
18227 /** Sets the value of "text-shadow" */
18228 void set textShadow(var value);
18229
18230 /** Gets the value of "text-size-adjust" */
18231 String get textSizeAdjust();
18232
18233 /** Sets the value of "text-size-adjust" */
18234 void set textSizeAdjust(var value);
18235
18236 /** Gets the value of "text-stroke" */
18237 String get textStroke();
18238
18239 /** Sets the value of "text-stroke" */
18240 void set textStroke(var value);
18241
18242 /** Gets the value of "text-stroke-color" */
18243 String get textStrokeColor();
18244
18245 /** Sets the value of "text-stroke-color" */
18246 void set textStrokeColor(var value);
18247
18248 /** Gets the value of "text-stroke-width" */
18249 String get textStrokeWidth();
18250
18251 /** Sets the value of "text-stroke-width" */
18252 void set textStrokeWidth(var value);
18253
18254 /** Gets the value of "text-transform" */
18255 String get textTransform();
18256
18257 /** Sets the value of "text-transform" */
18258 void set textTransform(var value);
18259
18260 /** Gets the value of "text-underline" */
18261 String get textUnderline();
18262
18263 /** Sets the value of "text-underline" */
18264 void set textUnderline(var value);
18265
18266 /** Gets the value of "text-underline-color" */
18267 String get textUnderlineColor();
18268
18269 /** Sets the value of "text-underline-color" */
18270 void set textUnderlineColor(var value);
18271
18272 /** Gets the value of "text-underline-mode" */
18273 String get textUnderlineMode();
18274
18275 /** Sets the value of "text-underline-mode" */
18276 void set textUnderlineMode(var value);
18277
18278 /** Gets the value of "text-underline-style" */
18279 String get textUnderlineStyle();
18280
18281 /** Sets the value of "text-underline-style" */
18282 void set textUnderlineStyle(var value);
18283
18284 /** Gets the value of "text-underline-width" */
18285 String get textUnderlineWidth();
18286
18287 /** Sets the value of "text-underline-width" */
18288 void set textUnderlineWidth(var value);
18289
18290 /** Gets the value of "top" */
18291 String get top();
18292
18293 /** Sets the value of "top" */
18294 void set top(var value);
18295
18296 /** Gets the value of "transform" */
18297 String get transform();
18298
18299 /** Sets the value of "transform" */
18300 void set transform(var value);
18301
18302 /** Gets the value of "transform-origin" */
18303 String get transformOrigin();
18304
18305 /** Sets the value of "transform-origin" */
18306 void set transformOrigin(var value);
18307
18308 /** Gets the value of "transform-origin-x" */
18309 String get transformOriginX();
18310
18311 /** Sets the value of "transform-origin-x" */
18312 void set transformOriginX(var value);
18313
18314 /** Gets the value of "transform-origin-y" */
18315 String get transformOriginY();
18316
18317 /** Sets the value of "transform-origin-y" */
18318 void set transformOriginY(var value);
18319
18320 /** Gets the value of "transform-origin-z" */
18321 String get transformOriginZ();
18322
18323 /** Sets the value of "transform-origin-z" */
18324 void set transformOriginZ(var value);
18325
18326 /** Gets the value of "transform-style" */
18327 String get transformStyle();
18328
18329 /** Sets the value of "transform-style" */
18330 void set transformStyle(var value);
18331
18332 /** Gets the value of "transition" */
18333 String get transition();
18334
18335 /** Sets the value of "transition" */
18336 void set transition(var value);
18337
18338 /** Gets the value of "transition-delay" */
18339 String get transitionDelay();
18340
18341 /** Sets the value of "transition-delay" */
18342 void set transitionDelay(var value);
18343
18344 /** Gets the value of "transition-duration" */
18345 String get transitionDuration();
18346
18347 /** Sets the value of "transition-duration" */
18348 void set transitionDuration(var value);
18349
18350 /** Gets the value of "transition-property" */
18351 String get transitionProperty();
18352
18353 /** Sets the value of "transition-property" */
18354 void set transitionProperty(var value);
18355
18356 /** Gets the value of "transition-timing-function" */
18357 String get transitionTimingFunction();
18358
18359 /** Sets the value of "transition-timing-function" */
18360 void set transitionTimingFunction(var value);
18361
18362 /** Gets the value of "unicode-bidi" */
18363 String get unicodeBidi();
18364
18365 /** Sets the value of "unicode-bidi" */
18366 void set unicodeBidi(var value);
18367
18368 /** Gets the value of "unicode-range" */
18369 String get unicodeRange();
18370
18371 /** Sets the value of "unicode-range" */
18372 void set unicodeRange(var value);
18373
18374 /** Gets the value of "user-drag" */
18375 String get userDrag();
18376
18377 /** Sets the value of "user-drag" */
18378 void set userDrag(var value);
18379
18380 /** Gets the value of "user-modify" */
18381 String get userModify();
18382
18383 /** Sets the value of "user-modify" */
18384 void set userModify(var value);
18385
18386 /** Gets the value of "user-select" */
18387 String get userSelect();
18388
18389 /** Sets the value of "user-select" */
18390 void set userSelect(var value);
18391
18392 /** Gets the value of "vertical-align" */
18393 String get verticalAlign();
18394
18395 /** Sets the value of "vertical-align" */
18396 void set verticalAlign(var value);
18397
18398 /** Gets the value of "visibility" */
18399 String get visibility();
18400
18401 /** Sets the value of "visibility" */
18402 void set visibility(var value);
18403
18404 /** Gets the value of "white-space" */
18405 String get whiteSpace();
18406
18407 /** Sets the value of "white-space" */
18408 void set whiteSpace(var value);
18409
18410 /** Gets the value of "widows" */
18411 String get widows();
18412
18413 /** Sets the value of "widows" */
18414 void set widows(var value);
18415
18416 /** Gets the value of "width" */
18417 String get width();
18418
18419 /** Sets the value of "width" */
18420 void set width(var value);
18421
18422 /** Gets the value of "word-break" */
18423 String get wordBreak();
18424
18425 /** Sets the value of "word-break" */
18426 void set wordBreak(var value);
18427
18428 /** Gets the value of "word-spacing" */
18429 String get wordSpacing();
18430
18431 /** Sets the value of "word-spacing" */
18432 void set wordSpacing(var value);
18433
18434 /** Gets the value of "word-wrap" */
18435 String get wordWrap();
18436
18437 /** Sets the value of "word-wrap" */
18438 void set wordWrap(var value);
18439
18440 /** Gets the value of "wrap-shape" */
18441 String get wrapShape();
18442
18443 /** Sets the value of "wrap-shape" */
18444 void set wrapShape(var value);
18445
18446 /** Gets the value of "writing-mode" */
18447 String get writingMode();
18448
18449 /** Sets the value of "writing-mode" */
18450 void set writingMode(var value);
18451
18452 /** Gets the value of "z-index" */
18453 String get zIndex();
18454
18455 /** Sets the value of "z-index" */
18456 void set zIndex(var value);
18457
18458 /** Gets the value of "zoom" */
18459 String get zoom();
18460
18461 /** Sets the value of "zoom" */
18462 void set zoom(var value);
18463 }
18464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18465 // for details. All rights reserved. Use of this source code is governed by a
18466 // BSD-style license that can be found in the LICENSE file.
18467
18468 // WARNING: Do not edit - generated code.
18469
18470 interface CSSStyleRule extends CSSRule {
18471
18472 String selectorText;
18473
18474 final CSSStyleDeclaration style;
18475 }
18476 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18477 // for details. All rights reserved. Use of this source code is governed by a
18478 // BSD-style license that can be found in the LICENSE file.
18479
18480 // WARNING: Do not edit - generated code.
18481
18482 interface CSSStyleSheet extends StyleSheet {
18483
18484 final CSSRuleList cssRules;
18485
18486 final CSSRule ownerRule;
18487
18488 final CSSRuleList rules;
18489
18490 int addRule(String selector, String style, [int index]);
18491
18492 void deleteRule(int index);
18493
18494 int insertRule(String rule, int index);
18495
18496 void removeRule(int index);
18497 }
18498 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18499 // for details. All rights reserved. Use of this source code is governed by a
18500 // BSD-style license that can be found in the LICENSE file.
18501
18502 // WARNING: Do not edit - generated code.
18503
18504 interface CSSTransformValue extends CSSValueList {
18505
18506 static final int CSS_MATRIX = 11;
18507
18508 static final int CSS_MATRIX3D = 21;
18509
18510 static final int CSS_PERSPECTIVE = 20;
18511
18512 static final int CSS_ROTATE = 4;
18513
18514 static final int CSS_ROTATE3D = 17;
18515
18516 static final int CSS_ROTATEX = 14;
18517
18518 static final int CSS_ROTATEY = 15;
18519
18520 static final int CSS_ROTATEZ = 16;
18521
18522 static final int CSS_SCALE = 5;
18523
18524 static final int CSS_SCALE3D = 19;
18525
18526 static final int CSS_SCALEX = 6;
18527
18528 static final int CSS_SCALEY = 7;
18529
18530 static final int CSS_SCALEZ = 18;
18531
18532 static final int CSS_SKEW = 8;
18533
18534 static final int CSS_SKEWX = 9;
18535
18536 static final int CSS_SKEWY = 10;
18537
18538 static final int CSS_TRANSLATE = 1;
18539
18540 static final int CSS_TRANSLATE3D = 13;
18541
18542 static final int CSS_TRANSLATEX = 2;
18543
18544 static final int CSS_TRANSLATEY = 3;
18545
18546 static final int CSS_TRANSLATEZ = 12;
18547
18548 final int operationType;
18549 }
18550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18551 // for details. All rights reserved. Use of this source code is governed by a
18552 // BSD-style license that can be found in the LICENSE file.
18553
18554 // WARNING: Do not edit - generated code.
18555
18556 interface CSSUnknownRule extends CSSRule {
18557 }
18558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18559 // for details. All rights reserved. Use of this source code is governed by a
18560 // BSD-style license that can be found in the LICENSE file.
18561
18562 // WARNING: Do not edit - generated code.
18563
18564 interface CSSValue {
18565
18566 static final int CSS_CUSTOM = 3;
18567
18568 static final int CSS_INHERIT = 0;
18569
18570 static final int CSS_PRIMITIVE_VALUE = 1;
18571
18572 static final int CSS_VALUE_LIST = 2;
18573
18574 String cssText;
18575
18576 final int cssValueType;
18577 }
18578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18579 // for details. All rights reserved. Use of this source code is governed by a
18580 // BSD-style license that can be found in the LICENSE file.
18581
18582 // WARNING: Do not edit - generated code.
18583
18584 interface CSSValueList extends CSSValue {
18585
18586 final int length;
18587
18588 CSSValue item(int index);
18589 }
18590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18591 // for details. All rights reserved. Use of this source code is governed by a
18592 // BSD-style license that can be found in the LICENSE file.
18593
18594 // WARNING: Do not edit - generated code.
18595
18596 interface CanvasElement extends Element {
18597
18598 int height;
18599
18600 int width;
18601
18602 Object getContext(String contextId);
18603
18604 String toDataURL(String type);
18605 }
18606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18607 // for details. All rights reserved. Use of this source code is governed by a
18608 // BSD-style license that can be found in the LICENSE file.
18609
18610 // WARNING: Do not edit - generated code.
18611
18612 interface CanvasGradient {
18613
18614 void addColorStop(num offset, String color);
18615 }
18616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18617 // for details. All rights reserved. Use of this source code is governed by a
18618 // BSD-style license that can be found in the LICENSE file.
18619
18620 // WARNING: Do not edit - generated code.
18621
18622 interface CanvasPattern {
18623 }
18624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18625 // for details. All rights reserved. Use of this source code is governed by a
18626 // BSD-style license that can be found in the LICENSE file.
18627
18628 // WARNING: Do not edit - generated code.
18629
18630 interface CanvasPixelArray extends List<int> {
18631
18632 final int length;
18633 }
18634 // Copyright (c) 2012, 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 // WARNING: Do not edit - generated code.
18639
18640 interface CanvasRenderingContext {
18641
18642 final CanvasElement canvas;
18643 }
18644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18645 // for details. All rights reserved. Use of this source code is governed by a
18646 // BSD-style license that can be found in the LICENSE file.
18647
18648 // WARNING: Do not edit - generated code.
18649
18650 interface CanvasRenderingContext2D extends CanvasRenderingContext {
18651
18652 Dynamic fillStyle;
18653
18654 String font;
18655
18656 num globalAlpha;
18657
18658 String globalCompositeOperation;
18659
18660 String lineCap;
18661
18662 String lineJoin;
18663
18664 num lineWidth;
18665
18666 num miterLimit;
18667
18668 num shadowBlur;
18669
18670 String shadowColor;
18671
18672 num shadowOffsetX;
18673
18674 num shadowOffsetY;
18675
18676 Dynamic strokeStyle;
18677
18678 String textAlign;
18679
18680 String textBaseline;
18681
18682 List webkitLineDash;
18683
18684 num webkitLineDashOffset;
18685
18686 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc kwise);
18687
18688 void arcTo(num x1, num y1, num x2, num y2, num radius);
18689
18690 void beginPath();
18691
18692 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y);
18693
18694 void clearRect(num x, num y, num width, num height);
18695
18696 void clearShadow();
18697
18698 void clip();
18699
18700 void closePath();
18701
18702 ImageData createImageData(var imagedata_OR_sw, [num sh]);
18703
18704 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1);
18705
18706 CanvasPattern createPattern(var canvas_OR_image, String repetitionType);
18707
18708 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu m r1);
18709
18710 void drawImage(var canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw _OR_width, num height_OR_sh, num dx, num dy, num dw, num dh]);
18711
18712 void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, nu m dx, num dy, num dw, num dh, String compositeOperation]);
18713
18714 void fill();
18715
18716 void fillRect(num x, num y, num width, num height);
18717
18718 void fillText(String text, num x, num y, [num maxWidth]);
18719
18720 ImageData getImageData(num sx, num sy, num sw, num sh);
18721
18722 bool isPointInPath(num x, num y);
18723
18724 void lineTo(num x, num y);
18725
18726 TextMetrics measureText(String text);
18727
18728 void moveTo(num x, num y);
18729
18730 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY , num dirtyWidth, num dirtyHeight]);
18731
18732 void quadraticCurveTo(num cpx, num cpy, num x, num y);
18733
18734 void rect(num x, num y, num width, num height);
18735
18736 void restore();
18737
18738 void rotate(num angle);
18739
18740 void save();
18741
18742 void scale(num sx, num sy);
18743
18744 void setAlpha(num alpha);
18745
18746 void setCompositeOperation(String compositeOperation);
18747
18748 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]);
18749
18750 void setLineCap(String cap);
18751
18752 void setLineJoin(String join);
18753
18754 void setLineWidth(num width);
18755
18756 void setMiterLimit(num limit);
18757
18758 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]);
18759
18760 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]);
18761
18762 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy);
18763
18764 void stroke();
18765
18766 void strokeRect(num x, num y, num width, num height, [num lineWidth]);
18767
18768 void strokeText(String text, num x, num y, [num maxWidth]);
18769
18770 void transform(num m11, num m12, num m21, num m22, num dx, num dy);
18771
18772 void translate(num tx, num ty);
18773 }
18774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18775 // for details. All rights reserved. Use of this source code is governed by a
18776 // BSD-style license that can be found in the LICENSE file.
18777
18778 // WARNING: Do not edit - generated code.
18779
18780 interface CharacterData extends Node {
18781
18782 String data;
18783
18784 final int length;
18785
18786 void appendData(String data);
18787
18788 void deleteData(int offset, int length);
18789
18790 void insertData(int offset, String data);
18791
18792 void replaceData(int offset, int length, String data);
18793
18794 String substringData(int offset, int length);
18795 }
18796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18797 // for details. All rights reserved. Use of this source code is governed by a
18798 // BSD-style license that can be found in the LICENSE file.
18799
18800 // WARNING: Do not edit - generated code.
18801
18802 interface ClientRect {
18803
18804 final num bottom;
18805
18806 final num height;
18807
18808 final num left;
18809
18810 final num right;
18811
18812 final num top;
18813
18814 final num width;
18815 }
18816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18817 // for details. All rights reserved. Use of this source code is governed by a
18818 // BSD-style license that can be found in the LICENSE file.
18819
18820 // WARNING: Do not edit - generated code.
18821
18822 interface ClientRectList {
18823
18824 final int length;
18825
18826 ClientRect item(int index);
18827 }
18828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18829 // for details. All rights reserved. Use of this source code is governed by a
18830 // BSD-style license that can be found in the LICENSE file.
18831
18832 // WARNING: Do not edit - generated code.
18833
18834 interface Clipboard {
18835
18836 String dropEffect;
18837
18838 String effectAllowed;
18839
18840 final FileList files;
18841
18842 final DataTransferItemList items;
18843
18844 final List types;
18845
18846 void clearData([String type]);
18847
18848 void getData(String type);
18849
18850 bool setData(String type, String data);
18851
18852 void setDragImage(ImageElement image, int x, int y);
18853 }
18854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18855 // for details. All rights reserved. Use of this source code is governed by a
18856 // BSD-style license that can be found in the LICENSE file.
18857
18858 // WARNING: Do not edit - generated code.
18859
18860 interface CloseEvent extends Event {
18861
18862 final int code;
18863
18864 final String reason;
18865
18866 final bool wasClean;
18867 }
18868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18869 // for details. All rights reserved. Use of this source code is governed by a
18870 // BSD-style license that can be found in the LICENSE file.
18871
18872 // WARNING: Do not edit - generated code.
18873
18874 interface Comment extends CharacterData {
18875 }
18876 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18877 // for details. All rights reserved. Use of this source code is governed by a
18878 // BSD-style license that can be found in the LICENSE file.
18879
18880 // WARNING: Do not edit - generated code.
18881
18882 interface CompositionEvent extends UIEvent {
18883
18884 final String data;
18885
18886 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr g, Window viewArg, String dataArg);
18887 }
18888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18889 // for details. All rights reserved. Use of this source code is governed by a
18890 // BSD-style license that can be found in the LICENSE file.
18891
18892 // WARNING: Do not edit - generated code.
18893
18894 interface Console {
18895
18896 final MemoryInfo memory;
18897
18898 final List profiles;
18899
18900 void assertCondition(bool condition);
18901
18902 void count();
18903
18904 void debug(Object arg);
18905
18906 void dir();
18907
18908 void dirxml();
18909
18910 void error(Object arg);
18911
18912 void group();
18913
18914 void groupCollapsed();
18915
18916 void groupEnd();
18917
18918 void info(Object arg);
18919
18920 void log(Object arg);
18921
18922 void markTimeline();
18923
18924 void profile(String title);
18925
18926 void profileEnd(String title);
18927
18928 void time(String title);
18929
18930 void timeEnd(String title);
18931
18932 void timeStamp();
18933
18934 void trace(Object arg);
18935
18936 void warn(Object arg);
18937 }
18938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18939 // for details. All rights reserved. Use of this source code is governed by a
18940 // BSD-style license that can be found in the LICENSE file.
18941
18942 // WARNING: Do not edit - generated code.
18943
18944 interface ConvolverNode extends AudioNode {
18945
18946 AudioBuffer buffer;
18947
18948 bool normalize;
18949 }
18950 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18951 // for details. All rights reserved. Use of this source code is governed by a
18952 // BSD-style license that can be found in the LICENSE file.
18953
18954 // WARNING: Do not edit - generated code.
18955
18956 interface Coordinates {
18957
18958 final num accuracy;
18959
18960 final num altitude;
18961
18962 final num altitudeAccuracy;
18963
18964 final num heading;
18965
18966 final num latitude;
18967
18968 final num longitude;
18969
18970 final num speed;
18971 }
18972 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18973 // for details. All rights reserved. Use of this source code is governed by a
18974 // BSD-style license that can be found in the LICENSE file.
18975
18976 // WARNING: Do not edit - generated code.
18977
18978 interface Counter {
18979
18980 final String identifier;
18981
18982 final String listStyle;
18983
18984 final String separator;
18985 }
18986 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18987 // for details. All rights reserved. Use of this source code is governed by a
18988 // BSD-style license that can be found in the LICENSE file.
18989
18990 // WARNING: Do not edit - generated code.
18991
18992 interface Crypto {
18993
18994 void getRandomValues(ArrayBufferView array);
18995 }
18996 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18997 // for details. All rights reserved. Use of this source code is governed by a
18998 // BSD-style license that can be found in the LICENSE file.
18999
19000 // WARNING: Do not edit - generated code.
19001
19002 interface CustomEvent extends Event {
19003
19004 final Object detail;
19005
19006 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob ject detailArg);
19007 }
19008 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19009 // for details. All rights reserved. Use of this source code is governed by a
19010 // BSD-style license that can be found in the LICENSE file.
19011
19012 // WARNING: Do not edit - generated code.
19013
19014 interface DListElement extends Element {
19015
19016 bool compact;
19017 }
19018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19019 // for details. All rights reserved. Use of this source code is governed by a
19020 // BSD-style license that can be found in the LICENSE file.
19021
19022 // WARNING: Do not edit - generated code.
19023
19024 interface DOMApplicationCache extends EventTarget {
19025
19026 static final int CHECKING = 2;
19027
19028 static final int DOWNLOADING = 3;
19029
19030 static final int IDLE = 1;
19031
19032 static final int OBSOLETE = 5;
19033
19034 static final int UNCACHED = 0;
19035
19036 static final int UPDATEREADY = 4;
19037
19038 final int status;
19039
19040 DOMApplicationCacheEvents get on();
19041
19042 void abort();
19043
19044 void swapCache();
19045
19046 void update();
19047 }
19048
19049 interface DOMApplicationCacheEvents extends Events {
19050
19051 EventListenerList get cached();
19052
19053 EventListenerList get checking();
19054
19055 EventListenerList get downloading();
19056
19057 EventListenerList get error();
19058
19059 EventListenerList get noUpdate();
19060
19061 EventListenerList get obsolete();
19062
19063 EventListenerList get progress();
19064
19065 EventListenerList get updateReady();
19066 }
19067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19068 // for details. All rights reserved. Use of this source code is governed by a
19069 // BSD-style license that can be found in the LICENSE file.
19070
19071 // WARNING: Do not edit - generated code.
19072
19073 interface DOMException {
19074
19075 static final int ABORT_ERR = 20;
19076
19077 static final int DATA_CLONE_ERR = 25;
19078
19079 static final int DOMSTRING_SIZE_ERR = 2;
19080
19081 static final int HIERARCHY_REQUEST_ERR = 3;
19082
19083 static final int INDEX_SIZE_ERR = 1;
19084
19085 static final int INUSE_ATTRIBUTE_ERR = 10;
19086
19087 static final int INVALID_ACCESS_ERR = 15;
19088
19089 static final int INVALID_CHARACTER_ERR = 5;
19090
19091 static final int INVALID_MODIFICATION_ERR = 13;
19092
19093 static final int INVALID_NODE_TYPE_ERR = 24;
19094
19095 static final int INVALID_STATE_ERR = 11;
19096
19097 static final int NAMESPACE_ERR = 14;
19098
19099 static final int NETWORK_ERR = 19;
19100
19101 static final int NOT_FOUND_ERR = 8;
19102
19103 static final int NOT_SUPPORTED_ERR = 9;
19104
19105 static final int NO_DATA_ALLOWED_ERR = 6;
19106
19107 static final int NO_MODIFICATION_ALLOWED_ERR = 7;
19108
19109 static final int QUOTA_EXCEEDED_ERR = 22;
19110
19111 static final int SECURITY_ERR = 18;
19112
19113 static final int SYNTAX_ERR = 12;
19114
19115 static final int TIMEOUT_ERR = 23;
19116
19117 static final int TYPE_MISMATCH_ERR = 17;
19118
19119 static final int URL_MISMATCH_ERR = 21;
19120
19121 static final int VALIDATION_ERR = 16;
19122
19123 static final int WRONG_DOCUMENT_ERR = 4;
19124
19125 final int code;
19126
19127 final String message;
19128
19129 final String name;
19130
19131 String toString();
19132 }
19133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19134 // for details. All rights reserved. Use of this source code is governed by a
19135 // BSD-style license that can be found in the LICENSE file.
19136
19137 // WARNING: Do not edit - generated code.
19138
19139 interface DOMFileSystem {
19140
19141 final String name;
19142
19143 final DirectoryEntry root;
19144 }
19145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19146 // for details. All rights reserved. Use of this source code is governed by a
19147 // BSD-style license that can be found in the LICENSE file.
19148
19149 // WARNING: Do not edit - generated code.
19150
19151 interface DOMFileSystemSync {
19152
19153 final String name;
19154
19155 final DirectoryEntrySync root;
19156 }
19157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19158 // for details. All rights reserved. Use of this source code is governed by a
19159 // BSD-style license that can be found in the LICENSE file.
19160
19161 // WARNING: Do not edit - generated code.
19162
19163 interface DOMFormData {
19164
19165 void append(String name, String value, String filename);
19166 }
19167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19168 // for details. All rights reserved. Use of this source code is governed by a
19169 // BSD-style license that can be found in the LICENSE file.
19170
19171 // WARNING: Do not edit - generated code.
19172
19173 interface DOMImplementation {
19174
19175 CSSStyleSheet createCSSStyleSheet(String title, String media);
19176
19177 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp e doctype);
19178
19179 DocumentType createDocumentType(String qualifiedName, String publicId, String systemId);
19180
19181 Document createHTMLDocument(String title);
19182
19183 bool hasFeature(String feature, String version);
19184 }
19185 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19186 // for details. All rights reserved. Use of this source code is governed by a
19187 // BSD-style license that can be found in the LICENSE file.
19188
19189 // WARNING: Do not edit - generated code.
19190
19191 interface DOMMimeType {
19192
19193 final String description;
19194
19195 final DOMPlugin enabledPlugin;
19196
19197 final String suffixes;
19198
19199 final String type;
19200 }
19201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19202 // for details. All rights reserved. Use of this source code is governed by a
19203 // BSD-style license that can be found in the LICENSE file.
19204
19205 // WARNING: Do not edit - generated code.
19206
19207 interface DOMMimeTypeArray {
19208
19209 final int length;
19210
19211 DOMMimeType item(int index);
19212
19213 DOMMimeType namedItem(String name);
19214 }
19215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19216 // for details. All rights reserved. Use of this source code is governed by a
19217 // BSD-style license that can be found in the LICENSE file.
19218
19219 // WARNING: Do not edit - generated code.
19220
19221 interface DOMParser {
19222
19223 Document parseFromString(String str, String contentType);
19224 }
19225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19226 // for details. All rights reserved. Use of this source code is governed by a
19227 // BSD-style license that can be found in the LICENSE file.
19228
19229 // WARNING: Do not edit - generated code.
19230
19231 interface DOMPlugin {
19232
19233 final String description;
19234
19235 final String filename;
19236
19237 final int length;
19238
19239 final String name;
19240
19241 DOMMimeType item(int index);
19242
19243 DOMMimeType namedItem(String name);
19244 }
19245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19246 // for details. All rights reserved. Use of this source code is governed by a
19247 // BSD-style license that can be found in the LICENSE file.
19248
19249 // WARNING: Do not edit - generated code.
19250
19251 interface DOMPluginArray {
19252
19253 final int length;
19254
19255 DOMPlugin item(int index);
19256
19257 DOMPlugin namedItem(String name);
19258
19259 void refresh(bool reload);
19260 }
19261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19262 // for details. All rights reserved. Use of this source code is governed by a
19263 // BSD-style license that can be found in the LICENSE file.
19264
19265 // WARNING: Do not edit - generated code.
19266
19267 interface DOMSelection {
19268
19269 final Node anchorNode;
19270
19271 final int anchorOffset;
19272
19273 final Node baseNode;
19274
19275 final int baseOffset;
19276
19277 final Node extentNode;
19278
19279 final int extentOffset;
19280
19281 final Node focusNode;
19282
19283 final int focusOffset;
19284
19285 final bool isCollapsed;
19286
19287 final int rangeCount;
19288
19289 final String type;
19290
19291 void addRange(Range range);
19292
19293 void collapse(Node node, int index);
19294
19295 void collapseToEnd();
19296
19297 void collapseToStart();
19298
19299 bool containsNode(Node node, bool allowPartial);
19300
19301 void deleteFromDocument();
19302
19303 void empty();
19304
19305 void extend(Node node, int offset);
19306
19307 Range getRangeAt(int index);
19308
19309 void modify(String alter, String direction, String granularity);
19310
19311 void removeAllRanges();
19312
19313 void selectAllChildren(Node node);
19314
19315 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte ntOffset);
19316
19317 void setPosition(Node node, int offset);
19318
19319 String toString();
19320 }
19321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19322 // for details. All rights reserved. Use of this source code is governed by a
19323 // BSD-style license that can be found in the LICENSE file.
19324
19325 // WARNING: Do not edit - generated code.
19326
19327 interface DOMSettableTokenList extends DOMTokenList {
19328
19329 String value;
19330 }
19331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19332 // for details. All rights reserved. Use of this source code is governed by a
19333 // BSD-style license that can be found in the LICENSE file.
19334
19335 // WARNING: Do not edit - generated code.
19336
19337 interface DOMTokenList {
19338
19339 final int length;
19340
19341 void add(String token);
19342
19343 bool contains(String token);
19344
19345 String item(int index);
19346
19347 void remove(String token);
19348
19349 String toString();
19350
19351 bool toggle(String token);
19352 }
19353 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19354 // for details. All rights reserved. Use of this source code is governed by a
19355 // BSD-style license that can be found in the LICENSE file.
19356
19357 // WARNING: Do not edit - generated code.
19358
19359 interface DOMURL {
19360
19361 String createObjectURL(Blob blob);
19362
19363 void revokeObjectURL(String url);
19364 }
19365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19366 // for details. All rights reserved. Use of this source code is governed by a
19367 // BSD-style license that can be found in the LICENSE file.
19368
19369 // WARNING: Do not edit - generated code.
19370
19371 interface DataTransferItem {
19372
19373 final String kind;
19374
19375 final String type;
19376
19377 Blob getAsFile();
19378
19379 void getAsString(StringCallback callback);
19380 }
19381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19382 // for details. All rights reserved. Use of this source code is governed by a
19383 // BSD-style license that can be found in the LICENSE file.
19384
19385 // WARNING: Do not edit - generated code.
19386
19387 interface DataTransferItemList {
19388
19389 final int length;
19390
19391 void add(var data_OR_file, [String type]);
19392
19393 void clear();
19394
19395 DataTransferItem item(int index);
19396 }
19397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19398 // for details. All rights reserved. Use of this source code is governed by a
19399 // BSD-style license that can be found in the LICENSE file.
19400
19401 // WARNING: Do not edit - generated code.
19402
19403 interface DataView extends ArrayBufferView {
19404
19405 num getFloat32(int byteOffset, [bool littleEndian]);
19406
19407 num getFloat64(int byteOffset, [bool littleEndian]);
19408
19409 int getInt16(int byteOffset, [bool littleEndian]);
19410
19411 int getInt32(int byteOffset, [bool littleEndian]);
19412
19413 Object getInt8();
19414
19415 int getUint16(int byteOffset, [bool littleEndian]);
19416
19417 int getUint32(int byteOffset, [bool littleEndian]);
19418
19419 Object getUint8();
19420
19421 void setFloat32(int byteOffset, num value, [bool littleEndian]);
19422
19423 void setFloat64(int byteOffset, num value, [bool littleEndian]);
19424
19425 void setInt16(int byteOffset, int value, [bool littleEndian]);
19426
19427 void setInt32(int byteOffset, int value, [bool littleEndian]);
19428
19429 void setInt8();
19430
19431 void setUint16(int byteOffset, int value, [bool littleEndian]);
19432
19433 void setUint32(int byteOffset, int value, [bool littleEndian]);
19434
19435 void setUint8();
19436 }
19437 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19438 // for details. All rights reserved. Use of this source code is governed by a
19439 // BSD-style license that can be found in the LICENSE file.
19440
19441 // WARNING: Do not edit - generated code.
19442
19443 interface Database {
19444
19445 final String version;
19446
19447 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall back]);
19448
19449 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall back errorCallback, VoidCallback successCallback]);
19450
19451 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]);
19452 }
19453 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
19454 // for details. All rights reserved. Use of this source code is governed by a
19455 // BSD-style license that can be found in the LICENSE file.
19456
19457 // WARNING: Do not edit - generated code.
19458
19459 typedef bool DatabaseCallback(var database);
19460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19461 // for details. All rights reserved. Use of this source code is governed by a
19462 // BSD-style license that can be found in the LICENSE file.
19463
19464 // WARNING: Do not edit - generated code.
19465
19466 interface DatabaseSync {
19467
19468 final String lastErrorMessage;
19469
19470 final String version;
19471
19472 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa llback callback]);
19473
19474 void readTransaction(SQLTransactionSyncCallback callback);
19475
19476 void transaction(SQLTransactionSyncCallback callback);
19477 }
19478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19479 // for details. All rights reserved. Use of this source code is governed by a
19480 // BSD-style license that can be found in the LICENSE file.
19481
19482 // WARNING: Do not edit - generated code.
19483
19484 interface DedicatedWorkerContext extends WorkerContext {
19485
19486 EventListener onmessage;
19487
19488 void postMessage(Object message, [List messagePorts]);
19489
19490 void webkitPostMessage(Object message, [List transferList]);
19491 }
19492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19493 // for details. All rights reserved. Use of this source code is governed by a
19494 // BSD-style license that can be found in the LICENSE file.
19495
19496 // WARNING: Do not edit - generated code.
19497
19498 interface DelayNode extends AudioNode {
19499
19500 final AudioParam delayTime;
19501 }
19502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19503 // for details. All rights reserved. Use of this source code is governed by a
19504 // BSD-style license that can be found in the LICENSE file.
19505
19506 // WARNING: Do not edit - generated code.
19507
19508 interface DetailsElement extends Element {
19509
19510 bool open;
19511 }
19512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19513 // for details. All rights reserved. Use of this source code is governed by a
19514 // BSD-style license that can be found in the LICENSE file.
19515
19516 // WARNING: Do not edit - generated code.
19517
19518 interface DeviceMotionEvent extends Event {
19519
19520 final num interval;
19521 }
19522 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19523 // for details. All rights reserved. Use of this source code is governed by a
19524 // BSD-style license that can be found in the LICENSE file.
19525
19526 // WARNING: Do not edit - generated code.
19527
19528 interface DeviceOrientationEvent extends Event {
19529
19530 final bool absolute;
19531
19532 final num alpha;
19533
19534 final num beta;
19535
19536 final num gamma;
19537
19538 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu m alpha, num beta, num gamma, bool absolute);
19539 }
19540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19541 // for details. All rights reserved. Use of this source code is governed by a
19542 // BSD-style license that can be found in the LICENSE file.
19543
19544 // WARNING: Do not edit - generated code.
19545
19546 interface DirectoryElement extends Element {
19547
19548 bool compact;
19549 }
19550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19551 // for details. All rights reserved. Use of this source code is governed by a
19552 // BSD-style license that can be found in the LICENSE file.
19553
19554 // WARNING: Do not edit - generated code.
19555
19556 interface DirectoryEntry extends Entry {
19557
19558 DirectoryReader createReader();
19559
19560 void getDirectory(String path, [Object flags, EntryCallback successCallback, E rrorCallback errorCallback]);
19561
19562 void getFile(String path, [Object flags, EntryCallback successCallback, ErrorC allback errorCallback]);
19563
19564 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb ack]);
19565 }
19566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19567 // for details. All rights reserved. Use of this source code is governed by a
19568 // BSD-style license that can be found in the LICENSE file.
19569
19570 // WARNING: Do not edit - generated code.
19571
19572 interface DirectoryEntrySync extends EntrySync {
19573
19574 DirectoryReaderSync createReader();
19575
19576 DirectoryEntrySync getDirectory(String path, Object flags);
19577
19578 FileEntrySync getFile(String path, Object flags);
19579
19580 void removeRecursively();
19581 }
19582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19583 // for details. All rights reserved. Use of this source code is governed by a
19584 // BSD-style license that can be found in the LICENSE file.
19585
19586 // WARNING: Do not edit - generated code.
19587
19588 interface DirectoryReader {
19589
19590 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback ]);
19591 }
19592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19593 // for details. All rights reserved. Use of this source code is governed by a
19594 // BSD-style license that can be found in the LICENSE file.
19595
19596 // WARNING: Do not edit - generated code.
19597
19598 interface DirectoryReaderSync {
19599
19600 EntryArraySync readEntries();
19601 }
19602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19603 // for details. All rights reserved. Use of this source code is governed by a
19604 // BSD-style license that can be found in the LICENSE file.
19605
19606 // WARNING: Do not edit - generated code.
19607
19608 interface DivElement extends Element {
19609
19610 String align;
19611 }
19612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19613 // for details. All rights reserved. Use of this source code is governed by a
19614 // BSD-style license that can be found in the LICENSE file.
19615
19616 interface Document extends HtmlElement {
19617
19618 // TODO(jacobr): remove these methods and let them be generated automatically
19619 // once dart supports defining fields with the same name in an interface and
19620 // its parent interface.
19621 String get title();
19622 void set title(String value);
19623
19624
19625 final Element activeElement;
19626
19627 Element body;
19628
19629 String charset;
19630
19631 String cookie;
19632
19633 final Window defaultView;
19634
19635 final String domain;
19636
19637 final HeadElement head;
19638
19639 final String lastModified;
19640
19641 final String preferredStylesheetSet;
19642
19643 final String readyState;
19644
19645 final String referrer;
19646
19647 String selectedStylesheetSet;
19648
19649 final StyleSheetList styleSheets;
19650
19651 final Element webkitCurrentFullScreenElement;
19652
19653 final bool webkitFullScreenKeyboardInputAllowed;
19654
19655 final bool webkitHidden;
19656
19657 final bool webkitIsFullScreen;
19658
19659 final String webkitVisibilityState;
19660
19661 DocumentEvents get on();
19662
19663 Range caretRangeFromPoint(int x, int y);
19664
19665 CDATASection createCDATASection(String data);
19666
19667 DocumentFragment createDocumentFragment();
19668
19669 Range createRange();
19670
19671 Text createTextNode(String data);
19672
19673 Touch createTouch(Window window, EventTarget target, int identifier, int pageX , int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num webkitRotationAngle, num webkitForce);
19674
19675 TouchList createTouchList();
19676
19677 Element elementFromPoint(int x, int y);
19678
19679 bool execCommand(String command, bool userInterface, String value);
19680
19681 Object getCSSCanvasContext(String contextId, String name, int width, int heigh t);
19682
19683 Element getElementById(String elementId);
19684
19685 bool queryCommandEnabled(String command);
19686
19687 bool queryCommandIndeterm(String command);
19688
19689 bool queryCommandState(String command);
19690
19691 bool queryCommandSupported(String command);
19692
19693 String queryCommandValue(String command);
19694
19695 void webkitCancelFullScreen();
19696
19697 WebKitNamedFlow webkitGetFlowByName(String name);
19698
19699 }
19700
19701 interface DocumentEvents extends ElementEvents {
19702
19703 EventListenerList get abort();
19704
19705 EventListenerList get beforeCopy();
19706
19707 EventListenerList get beforeCut();
19708
19709 EventListenerList get beforePaste();
19710
19711 EventListenerList get blur();
19712
19713 EventListenerList get change();
19714
19715 EventListenerList get click();
19716
19717 EventListenerList get contextMenu();
19718
19719 EventListenerList get copy();
19720
19721 EventListenerList get cut();
19722
19723 EventListenerList get doubleClick();
19724
19725 EventListenerList get drag();
19726
19727 EventListenerList get dragEnd();
19728
19729 EventListenerList get dragEnter();
19730
19731 EventListenerList get dragLeave();
19732
19733 EventListenerList get dragOver();
19734
19735 EventListenerList get dragStart();
19736
19737 EventListenerList get drop();
19738
19739 EventListenerList get error();
19740
19741 EventListenerList get focus();
19742
19743 EventListenerList get fullScreenChange();
19744
19745 EventListenerList get fullScreenError();
19746
19747 EventListenerList get input();
19748
19749 EventListenerList get invalid();
19750
19751 EventListenerList get keyDown();
19752
19753 EventListenerList get keyPress();
19754
19755 EventListenerList get keyUp();
19756
19757 EventListenerList get load();
19758
19759 EventListenerList get mouseDown();
19760
19761 EventListenerList get mouseMove();
19762
19763 EventListenerList get mouseOut();
19764
19765 EventListenerList get mouseOver();
19766
19767 EventListenerList get mouseUp();
19768
19769 EventListenerList get mouseWheel();
19770
19771 EventListenerList get paste();
19772
19773 EventListenerList get readyStateChange();
19774
19775 EventListenerList get reset();
19776
19777 EventListenerList get scroll();
19778
19779 EventListenerList get search();
19780
19781 EventListenerList get select();
19782
19783 EventListenerList get selectStart();
19784
19785 EventListenerList get selectionChange();
19786
19787 EventListenerList get submit();
19788
19789 EventListenerList get touchCancel();
19790
19791 EventListenerList get touchEnd();
19792
19793 EventListenerList get touchMove();
19794
19795 EventListenerList get touchStart();
19796 }
19797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19798 // for details. All rights reserved. Use of this source code is governed by a
19799 // BSD-style license that can be found in the LICENSE file.
19800
19801 // WARNING: Do not edit - generated code.
19802
19803 interface DocumentFragment extends Node, NodeSelector {
19804
19805 Element querySelector(String selectors);
19806
19807 NodeList querySelectorAll(String selectors);
19808 }
19809 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19810 // for details. All rights reserved. Use of this source code is governed by a
19811 // BSD-style license that can be found in the LICENSE file.
19812
19813 // WARNING: Do not edit - generated code.
19814
19815 interface DocumentType extends Node {
19816
19817 final NamedNodeMap entities;
19818
19819 final String internalSubset;
19820
19821 final String name;
19822
19823 final NamedNodeMap notations;
19824
19825 final String publicId;
19826
19827 final String systemId;
19828 }
19829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19830 // for details. All rights reserved. Use of this source code is governed by a
19831 // BSD-style license that can be found in the LICENSE file.
19832
19833 // WARNING: Do not edit - generated code.
19834
19835 interface DynamicsCompressorNode extends AudioNode {
19836 }
19837 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
19838 // for details. All rights reserved. Use of this source code is governed by a
19839 // BSD-style license that can be found in the LICENSE file.
19840
19841 // WARNING: Do not edit - generated code.
19842
19843 /**
19844 * Provides a Map abstraction on top of data-* attributes, similar to the
19845 * dataSet in the old DOM.
19846 */
19847 class _DataAttributeMap implements Map<String, String> {
19848
19849 final Map<String, String> _attributes;
19850
19851 _DataAttributeMap(this._attributes);
19852
19853 // interface Map
19854
19855 // TODO: Use lazy iterator when it is available on Map.
19856 bool containsValue(String value) => getValues().some((v) => v == value);
19857
19858 bool containsKey(String key) => _attributes.containsKey(_attr(key));
19859
19860 String operator [](String key) => _attributes[_attr(key)];
19861
19862 void operator []=(String key, String value) {
19863 _attributes[_attr(key)] = value;
19864 }
19865
19866 String putIfAbsent(String key, String ifAbsent()) {
19867 if (!containsKey(key)) {
19868 return this[key] = ifAbsent();
19869 }
19870 return this[key];
19871 }
19872
19873 String remove(String key) => _attributes.remove(_attr(key));
19874
19875 void clear() {
19876 // Needs to operate on a snapshot since we are mutatiting the collection.
19877 for (String key in getKeys()) {
19878 remove(key);
19879 }
19880 }
19881
19882 void forEach(void f(String key, String value)) {
19883 _attributes.forEach((String key, String value) {
19884 if (_matches(key)) {
19885 f(_strip(key), value);
19886 }
19887 });
19888 }
19889
19890 Collection<String> getKeys() {
19891 final keys = new List<String>();
19892 _attributes.forEach((String key, String value) {
19893 if (_matches(key)) {
19894 keys.add(_strip(key));
19895 }
19896 });
19897 return keys;
19898 }
19899
19900 Collection<String> getValues() {
19901 final values = new List<String>();
19902 _attributes.forEach((String key, String value) {
19903 if (_matches(key)) {
19904 values.add(value);
19905 }
19906 });
19907 return values;
19908 }
19909
19910 int get length() => getKeys().length;
19911
19912 // TODO: Use lazy iterator when it is available on Map.
19913 bool isEmpty() => length == 0;
19914
19915 // Helpers.
19916 String _attr(String key) => 'data-$key';
19917 bool _matches(String key) => key.startsWith('data-');
19918 String _strip(String key) => key.substring(5);
19919 }
19920
19921 class _CssClassSet implements Set<String> {
19922
19923 final _ElementJs _element;
19924
19925 _CssClassSet(this._element);
19926
19927 String toString() {
19928 return _formatSet(_read());
19929 }
19930
19931 // interface Iterable - BEGIN
19932 Iterator<String> iterator() {
19933 return _read().iterator();
19934 }
19935 // interface Iterable - END
19936
19937 // interface Collection - BEGIN
19938 void forEach(void f(String element)) {
19939 _read().forEach(f);
19940 }
19941
19942 Collection map(f(String element)) {
19943 return _read().map(f);
19944 }
19945
19946 Collection<String> filter(bool f(String element)) {
19947 return _read().filter(f);
19948 }
19949
19950 bool every(bool f(String element)) {
19951 return _read().every(f);
19952 }
19953
19954 bool some(bool f(String element)) {
19955 return _read().some(f);
19956 }
19957
19958 bool isEmpty() {
19959 return _read().isEmpty();
19960 }
19961
19962 int get length() {
19963 return _read().length;
19964 }
19965 // interface Collection - END
19966
19967 // interface Set - BEGIN
19968 bool contains(String value) {
19969 return _read().contains(value);
19970 }
19971
19972 void add(String value) {
19973 // TODO - figure out if we need to do any validation here
19974 // or if the browser natively does enough
19975 _modify((s) => s.add(value));
19976 }
19977
19978 bool remove(String value) {
19979 Set<String> s = _read();
19980 bool result = s.remove(value);
19981 _write(s);
19982 return result;
19983 }
19984
19985 void addAll(Collection<String> collection) {
19986 // TODO - see comment above about validation
19987 _modify((s) => s.addAll(collection));
19988 }
19989
19990 void removeAll(Collection<String> collection) {
19991 _modify((s) => s.removeAll(collection));
19992 }
19993
19994 bool isSubsetOf(Collection<String> collection) {
19995 return _read().isSubsetOf(collection);
19996 }
19997
19998 bool containsAll(Collection<String> collection) {
19999 return _read().containsAll(collection);
20000 }
20001
20002 Set<String> intersection(Collection<String> other) {
20003 return _read().intersection(other);
20004 }
20005
20006 void clear() {
20007 _modify((s) => s.clear());
20008 }
20009 // interface Set - END
20010
20011 /**
20012 * Helper method used to modify the set of css classes on this element.
20013 *
20014 * f - callback with:
20015 * s - a Set of all the css class name currently on this element.
20016 *
20017 * After f returns, the modified set is written to the
20018 * className property of this element.
20019 */
20020 void _modify( f(Set<String> s)) {
20021 Set<String> s = _read();
20022 f(s);
20023 _write(s);
20024 }
20025
20026 /**
20027 * Read the class names from the Element class property,
20028 * and put them into a set (duplicates are discarded).
20029 */
20030 Set<String> _read() {
20031 // TODO(mattsh) simplify this once split can take regex.
20032 Set<String> s = new Set<String>();
20033 for (String name in _className().split(' ')) {
20034 String trimmed = name.trim();
20035 if (!trimmed.isEmpty()) {
20036 s.add(trimmed);
20037 }
20038 }
20039 return s;
20040 }
20041
20042 /**
20043 * Read the class names as a space-separated string. This is meant to be
20044 * overridden by subclasses.
20045 */
20046 String _className() => _element._className;
20047
20048 /**
20049 * Join all the elements of a set into one string and write
20050 * back to the element.
20051 */
20052 void _write(Set s) {
20053 _element._className = _formatSet(s);
20054 }
20055
20056 String _formatSet(Set<String> s) {
20057 // TODO(mattsh) should be able to pass Set to String.joins http:/b/5398605
20058 List list = new List.from(s);
20059 return Strings.join(list, ' ');
20060 }
20061 }
20062
20063 interface ElementList extends List<Element> {
20064 // TODO(jacobr): add element batch manipulation methods.
20065 ElementList filter(bool f(Element element));
20066
20067 ElementList getRange(int start, int length);
20068
20069 Element get first();
20070 // TODO(jacobr): add insertAt
20071 }
20072
20073 /**
20074 * All your element measurement needs in one place
20075 */
20076 interface ElementRect {
20077 // Relative to offsetParent
20078 ClientRect get client();
20079 ClientRect get offset();
20080 ClientRect get scroll();
20081 // In global coords
20082 ClientRect get bounding();
20083 // In global coords
20084 List<ClientRect> get clientRects();
20085 }
20086
20087 // TODO(jacobr): referencing _ElementJs here is problematic when we need
20088 // to support wrappers as well.
20089 interface Element extends Node, NodeSelector default _ElementJs {
20090 // TODO(jacobr): switch back to:
20091 // interface Element extends Node, NodeSelector, ElementTraversal default _Eleme ntJs {
20092 Element.html(String html);
20093 Element.tag(String tag);
20094
20095 Map<String, String> get attributes();
20096 void set attributes(Map<String, String> value);
20097
20098 // TODO(jacobr): remove these methods and let them be generated automatically
20099 // once dart supports defining fields with the same name in an interface and
20100 // its parent interface.
20101 String get title();
20102 void set title(String value);
20103
20104 ElementList get elements();
20105
20106 // TODO: The type of value should be Collection<Element>. See http://b/5392897
20107 void set elements(value);
20108
20109 Element query(String selectors);
20110
20111 ElementList queryAll(String selectors);
20112
20113 Set<String> get classes();
20114
20115 // TODO: The type of value should be Collection<String>. See http://b/5392897
20116 void set classes(value);
20117
20118 Map<String, String> get dataAttributes();
20119 void set dataAttributes(Map<String, String> value);
20120
20121 bool matchesSelector([String selectors]);
20122
20123 Future<ElementRect> get rect();
20124
20125 Future<CSSStyleDeclaration> get computedStyle();
20126
20127 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
20128
20129 Element clone(bool deep);
20130
20131
20132 Element get parent();
20133
20134
20135 static final int ALLOW_KEYBOARD_INPUT = 1;
20136
20137 final int childElementCount;
20138
20139 final HTMLCollection children;
20140
20141 final DOMTokenList classList;
20142
20143 final String className;
20144
20145 final int clientHeight;
20146
20147 final int clientLeft;
20148
20149 final int clientTop;
20150
20151 final int clientWidth;
20152
20153 String contentEditable;
20154
20155 String dir;
20156
20157 bool draggable;
20158
20159 final Element firstElementChild;
20160
20161 bool hidden;
20162
20163 String id;
20164
20165 String innerHTML;
20166
20167 final bool isContentEditable;
20168
20169 String lang;
20170
20171 final Element lastElementChild;
20172
20173 final Element nextElementSibling;
20174
20175 final int offsetHeight;
20176
20177 final int offsetLeft;
20178
20179 final Element offsetParent;
20180
20181 final int offsetTop;
20182
20183 final int offsetWidth;
20184
20185 final String outerHTML;
20186
20187 final Element previousElementSibling;
20188
20189 final int scrollHeight;
20190
20191 int scrollLeft;
20192
20193 int scrollTop;
20194
20195 final int scrollWidth;
20196
20197 bool spellcheck;
20198
20199 final CSSStyleDeclaration style;
20200
20201 int tabIndex;
20202
20203 final String tagName;
20204
20205 String webkitdropzone;
20206
20207 ElementEvents get on();
20208
20209 void blur();
20210
20211 void focus();
20212
20213 ClientRect getBoundingClientRect();
20214
20215 ClientRectList getClientRects();
20216
20217 NodeList getElementsByClassName(String name);
20218
20219 NodeList getElementsByTagName(String name);
20220
20221 NodeList getElementsByTagNameNS(String namespaceURI, String localName);
20222
20223 Element insertAdjacentElement(String where, Element element);
20224
20225 void insertAdjacentHTML(String where, String html);
20226
20227 void insertAdjacentText(String where, String text);
20228
20229 Element querySelector(String selectors);
20230
20231 NodeList querySelectorAll(String selectors);
20232
20233 void scrollByLines(int lines);
20234
20235 void scrollByPages(int pages);
20236
20237 void scrollIntoView([bool alignWithTop]);
20238
20239 void scrollIntoViewIfNeeded([bool centerIfNeeded]);
20240
20241 bool webkitMatchesSelector(String selectors);
20242
20243 void webkitRequestFullScreen(int flags);
20244
20245 }
20246
20247 interface ElementEvents extends Events {
20248
20249 EventListenerList get abort();
20250
20251 EventListenerList get beforeCopy();
20252
20253 EventListenerList get beforeCut();
20254
20255 EventListenerList get beforePaste();
20256
20257 EventListenerList get blur();
20258
20259 EventListenerList get change();
20260
20261 EventListenerList get click();
20262
20263 EventListenerList get contextMenu();
20264
20265 EventListenerList get copy();
20266
20267 EventListenerList get cut();
20268
20269 EventListenerList get doubleClick();
20270
20271 EventListenerList get drag();
20272
20273 EventListenerList get dragEnd();
20274
20275 EventListenerList get dragEnter();
20276
20277 EventListenerList get dragLeave();
20278
20279 EventListenerList get dragOver();
20280
20281 EventListenerList get dragStart();
20282
20283 EventListenerList get drop();
20284
20285 EventListenerList get error();
20286
20287 EventListenerList get focus();
20288
20289 EventListenerList get fullScreenChange();
20290
20291 EventListenerList get fullScreenError();
20292
20293 EventListenerList get input();
20294
20295 EventListenerList get invalid();
20296
20297 EventListenerList get keyDown();
20298
20299 EventListenerList get keyPress();
20300
20301 EventListenerList get keyUp();
20302
20303 EventListenerList get load();
20304
20305 EventListenerList get mouseDown();
20306
20307 EventListenerList get mouseMove();
20308
20309 EventListenerList get mouseOut();
20310
20311 EventListenerList get mouseOver();
20312
20313 EventListenerList get mouseUp();
20314
20315 EventListenerList get mouseWheel();
20316
20317 EventListenerList get paste();
20318
20319 EventListenerList get reset();
20320
20321 EventListenerList get scroll();
20322
20323 EventListenerList get search();
20324
20325 EventListenerList get select();
20326
20327 EventListenerList get selectStart();
20328
20329 EventListenerList get submit();
20330
20331 EventListenerList get touchCancel();
20332
20333 EventListenerList get touchEnd();
20334
20335 EventListenerList get touchLeave();
20336
20337 EventListenerList get touchMove();
20338
20339 EventListenerList get touchStart();
20340
20341 EventListenerList get transitionEnd();
20342 }
20343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20344 // for details. All rights reserved. Use of this source code is governed by a
20345 // BSD-style license that can be found in the LICENSE file.
20346
20347 // WARNING: Do not edit - generated code.
20348
20349 interface ElementTimeControl {
20350
20351 void beginElement();
20352
20353 void beginElementAt(num offset);
20354
20355 void endElement();
20356
20357 void endElementAt(num offset);
20358 }
20359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20360 // for details. All rights reserved. Use of this source code is governed by a
20361 // BSD-style license that can be found in the LICENSE file.
20362
20363 // WARNING: Do not edit - generated code.
20364
20365 interface ElementTraversal {
20366
20367 final int childElementCount;
20368
20369 final Element firstElementChild;
20370
20371 final Element lastElementChild;
20372
20373 final Element nextElementSibling;
20374
20375 final Element previousElementSibling;
20376 }
20377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20378 // for details. All rights reserved. Use of this source code is governed by a
20379 // BSD-style license that can be found in the LICENSE file.
20380
20381 // WARNING: Do not edit - generated code.
20382
20383 interface EmbedElement extends Element {
20384
20385 String align;
20386
20387 String height;
20388
20389 String name;
20390
20391 String src;
20392
20393 String type;
20394
20395 String width;
20396 }
20397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20398 // for details. All rights reserved. Use of this source code is governed by a
20399 // BSD-style license that can be found in the LICENSE file.
20400
20401 // WARNING: Do not edit - generated code.
20402
20403 interface Entity extends Node {
20404
20405 final String notationName;
20406
20407 final String publicId;
20408
20409 final String systemId;
20410 }
20411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20412 // for details. All rights reserved. Use of this source code is governed by a
20413 // BSD-style license that can be found in the LICENSE file.
20414
20415 // WARNING: Do not edit - generated code.
20416
20417 interface EntityReference extends Node {
20418 }
20419 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20420 // for details. All rights reserved. Use of this source code is governed by a
20421 // BSD-style license that can be found in the LICENSE file.
20422
20423 // WARNING: Do not edit - generated code.
20424
20425 typedef bool EntriesCallback(EntryArray entries);
20426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20427 // for details. All rights reserved. Use of this source code is governed by a
20428 // BSD-style license that can be found in the LICENSE file.
20429
20430 // WARNING: Do not edit - generated code.
20431
20432 interface Entry {
20433
20434 final DOMFileSystem filesystem;
20435
20436 final String fullPath;
20437
20438 final bool isDirectory;
20439
20440 final bool isFile;
20441
20442 final String name;
20443
20444 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]);
20445
20446 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac k]);
20447
20448 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]);
20449
20450 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback , ErrorCallback errorCallback]);
20451
20452 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]);
20453
20454 String toURL();
20455 }
20456 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20457 // for details. All rights reserved. Use of this source code is governed by a
20458 // BSD-style license that can be found in the LICENSE file.
20459
20460 // WARNING: Do not edit - generated code.
20461
20462 interface EntryArray {
20463
20464 final int length;
20465
20466 Entry item(int index);
20467 }
20468 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20469 // for details. All rights reserved. Use of this source code is governed by a
20470 // BSD-style license that can be found in the LICENSE file.
20471
20472 // WARNING: Do not edit - generated code.
20473
20474 interface EntryArraySync {
20475
20476 final int length;
20477
20478 EntrySync item(int index);
20479 }
20480 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20481 // for details. All rights reserved. Use of this source code is governed by a
20482 // BSD-style license that can be found in the LICENSE file.
20483
20484 // WARNING: Do not edit - generated code.
20485
20486 typedef bool EntryCallback(Entry entry);
20487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20488 // for details. All rights reserved. Use of this source code is governed by a
20489 // BSD-style license that can be found in the LICENSE file.
20490
20491 // WARNING: Do not edit - generated code.
20492
20493 interface EntrySync {
20494
20495 final DOMFileSystemSync filesystem;
20496
20497 final String fullPath;
20498
20499 final bool isDirectory;
20500
20501 final bool isFile;
20502
20503 final String name;
20504
20505 EntrySync copyTo(DirectoryEntrySync parent, String name);
20506
20507 Metadata getMetadata();
20508
20509 DirectoryEntrySync getParent();
20510
20511 EntrySync moveTo(DirectoryEntrySync parent, String name);
20512
20513 void remove();
20514
20515 String toURL();
20516 }
20517 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20518 // for details. All rights reserved. Use of this source code is governed by a
20519 // BSD-style license that can be found in the LICENSE file.
20520
20521 // WARNING: Do not edit - generated code.
20522
20523 typedef bool ErrorCallback(FileError error);
20524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20525 // for details. All rights reserved. Use of this source code is governed by a
20526 // BSD-style license that can be found in the LICENSE file.
20527
20528 // WARNING: Do not edit - generated code.
20529
20530 interface ErrorEvent extends Event {
20531
20532 final String filename;
20533
20534 final int lineno;
20535
20536 final String message;
20537 }
20538 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20539 // for details. All rights reserved. Use of this source code is governed by a
20540 // BSD-style license that can be found in the LICENSE file.
20541
20542 // WARNING: Do not edit - generated code.
20543
20544 interface Event default _EventFactoryProvider {
20545
20546 // In JS, canBubble and cancelable are technically required parameters to
20547 // init*Event. In practice, though, if they aren't provided they simply
20548 // default to false (since that's Boolean(undefined)).
20549 //
20550 // Contrary to JS, we default canBubble and cancelable to true, since that's
20551 // what people want most of the time anyway.
20552 Event(String type, [bool canBubble, bool cancelable]);
20553
20554 static final int AT_TARGET = 2;
20555
20556 static final int BLUR = 8192;
20557
20558 static final int BUBBLING_PHASE = 3;
20559
20560 static final int CAPTURING_PHASE = 1;
20561
20562 static final int CHANGE = 32768;
20563
20564 static final int CLICK = 64;
20565
20566 static final int DBLCLICK = 128;
20567
20568 static final int DRAGDROP = 2048;
20569
20570 static final int FOCUS = 4096;
20571
20572 static final int KEYDOWN = 256;
20573
20574 static final int KEYPRESS = 1024;
20575
20576 static final int KEYUP = 512;
20577
20578 static final int MOUSEDOWN = 1;
20579
20580 static final int MOUSEDRAG = 32;
20581
20582 static final int MOUSEMOVE = 16;
20583
20584 static final int MOUSEOUT = 8;
20585
20586 static final int MOUSEOVER = 4;
20587
20588 static final int MOUSEUP = 2;
20589
20590 static final int SELECT = 16384;
20591
20592 final bool bubbles;
20593
20594 bool cancelBubble;
20595
20596 final bool cancelable;
20597
20598 final Clipboard clipboardData;
20599
20600 final EventTarget currentTarget;
20601
20602 final bool defaultPrevented;
20603
20604 final int eventPhase;
20605
20606 bool returnValue;
20607
20608 final EventTarget srcElement;
20609
20610 final EventTarget target;
20611
20612 final int timeStamp;
20613
20614 final String type;
20615
20616 void preventDefault();
20617
20618 void stopImmediatePropagation();
20619
20620 void stopPropagation();
20621 }
20622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20623 // for details. All rights reserved. Use of this source code is governed by a
20624 // BSD-style license that can be found in the LICENSE file.
20625
20626 // WARNING: Do not edit - generated code.
20627
20628 interface EventException {
20629
20630 static final int DISPATCH_REQUEST_ERR = 1;
20631
20632 static final int UNSPECIFIED_EVENT_TYPE_ERR = 0;
20633
20634 final int code;
20635
20636 final String message;
20637
20638 final String name;
20639
20640 String toString();
20641 }
20642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20643 // for details. All rights reserved. Use of this source code is governed by a
20644 // BSD-style license that can be found in the LICENSE file.
20645
20646 // WARNING: Do not edit - generated code.
20647
20648 interface EventSource extends EventTarget {
20649
20650 static final int CLOSED = 2;
20651
20652 static final int CONNECTING = 0;
20653
20654 static final int OPEN = 1;
20655
20656 final String URL;
20657
20658 final int readyState;
20659
20660 final String url;
20661
20662 EventSourceEvents get on();
20663
20664 void close();
20665 }
20666
20667 interface EventSourceEvents extends Events {
20668
20669 EventListenerList get error();
20670
20671 EventListenerList get message();
20672
20673 EventListenerList get open();
20674 }
20675 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20676 // for details. All rights reserved. Use of this source code is governed by a
20677 // BSD-style license that can be found in the LICENSE file.
20678
20679 // WARNING: Do not edit - generated code.
20680
20681 interface EventListenerList {
20682 EventListenerList add(EventListener handler, [bool useCapture]);
20683
20684 EventListenerList remove(EventListener handler, [bool useCapture]);
20685
20686 bool dispatch(Event evt);
20687 }
20688
20689 interface Events {
20690 EventListenerList operator [](String type);
20691 }
20692
20693 interface EventTarget {
20694
20695 final Events on;
20696
20697 }
20698 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20699 // for details. All rights reserved. Use of this source code is governed by a
20700 // BSD-style license that can be found in the LICENSE file.
20701
20702 // WARNING: Do not edit - generated code.
20703
20704 interface FieldSetElement extends Element {
20705
20706 final FormElement form;
20707
20708 final String validationMessage;
20709
20710 final ValidityState validity;
20711
20712 final bool willValidate;
20713
20714 bool checkValidity();
20715
20716 void setCustomValidity(String error);
20717 }
20718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20719 // for details. All rights reserved. Use of this source code is governed by a
20720 // BSD-style license that can be found in the LICENSE file.
20721
20722 // WARNING: Do not edit - generated code.
20723
20724 interface File extends Blob {
20725
20726 final String fileName;
20727
20728 final int fileSize;
20729
20730 final Date lastModifiedDate;
20731
20732 final String name;
20733
20734 final String webkitRelativePath;
20735 }
20736 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20737 // for details. All rights reserved. Use of this source code is governed by a
20738 // BSD-style license that can be found in the LICENSE file.
20739
20740 // WARNING: Do not edit - generated code.
20741
20742 typedef bool FileCallback(File file);
20743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20744 // for details. All rights reserved. Use of this source code is governed by a
20745 // BSD-style license that can be found in the LICENSE file.
20746
20747 // WARNING: Do not edit - generated code.
20748
20749 interface FileEntry extends Entry {
20750
20751 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall back]);
20752
20753 void file(FileCallback successCallback, [ErrorCallback errorCallback]);
20754 }
20755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20756 // for details. All rights reserved. Use of this source code is governed by a
20757 // BSD-style license that can be found in the LICENSE file.
20758
20759 // WARNING: Do not edit - generated code.
20760
20761 interface FileEntrySync extends EntrySync {
20762
20763 FileWriterSync createWriter();
20764
20765 File file();
20766 }
20767 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20768 // for details. All rights reserved. Use of this source code is governed by a
20769 // BSD-style license that can be found in the LICENSE file.
20770
20771 // WARNING: Do not edit - generated code.
20772
20773 interface FileError {
20774
20775 static final int ABORT_ERR = 3;
20776
20777 static final int ENCODING_ERR = 5;
20778
20779 static final int INVALID_MODIFICATION_ERR = 9;
20780
20781 static final int INVALID_STATE_ERR = 7;
20782
20783 static final int NOT_FOUND_ERR = 1;
20784
20785 static final int NOT_READABLE_ERR = 4;
20786
20787 static final int NO_MODIFICATION_ALLOWED_ERR = 6;
20788
20789 static final int PATH_EXISTS_ERR = 12;
20790
20791 static final int QUOTA_EXCEEDED_ERR = 10;
20792
20793 static final int SECURITY_ERR = 2;
20794
20795 static final int SYNTAX_ERR = 8;
20796
20797 static final int TYPE_MISMATCH_ERR = 11;
20798
20799 final int code;
20800 }
20801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20802 // for details. All rights reserved. Use of this source code is governed by a
20803 // BSD-style license that can be found in the LICENSE file.
20804
20805 // WARNING: Do not edit - generated code.
20806
20807 interface FileException {
20808
20809 static final int ABORT_ERR = 3;
20810
20811 static final int ENCODING_ERR = 5;
20812
20813 static final int INVALID_MODIFICATION_ERR = 9;
20814
20815 static final int INVALID_STATE_ERR = 7;
20816
20817 static final int NOT_FOUND_ERR = 1;
20818
20819 static final int NOT_READABLE_ERR = 4;
20820
20821 static final int NO_MODIFICATION_ALLOWED_ERR = 6;
20822
20823 static final int PATH_EXISTS_ERR = 12;
20824
20825 static final int QUOTA_EXCEEDED_ERR = 10;
20826
20827 static final int SECURITY_ERR = 2;
20828
20829 static final int SYNTAX_ERR = 8;
20830
20831 static final int TYPE_MISMATCH_ERR = 11;
20832
20833 final int code;
20834
20835 final String message;
20836
20837 final String name;
20838
20839 String toString();
20840 }
20841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20842 // for details. All rights reserved. Use of this source code is governed by a
20843 // BSD-style license that can be found in the LICENSE file.
20844
20845 // WARNING: Do not edit - generated code.
20846
20847 interface FileList {
20848
20849 final int length;
20850
20851 File item(int index);
20852 }
20853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20854 // for details. All rights reserved. Use of this source code is governed by a
20855 // BSD-style license that can be found in the LICENSE file.
20856
20857 // WARNING: Do not edit - generated code.
20858
20859 interface FileReader {
20860
20861 static final int DONE = 2;
20862
20863 static final int EMPTY = 0;
20864
20865 static final int LOADING = 1;
20866
20867 final FileError error;
20868
20869 EventListener onabort;
20870
20871 EventListener onerror;
20872
20873 EventListener onload;
20874
20875 EventListener onloadend;
20876
20877 EventListener onloadstart;
20878
20879 EventListener onprogress;
20880
20881 final int readyState;
20882
20883 final Object result;
20884
20885 void abort();
20886
20887 void addEventListener(String type, EventListener listener, [bool useCapture]);
20888
20889 bool dispatchEvent(Event evt);
20890
20891 void readAsArrayBuffer(Blob blob);
20892
20893 void readAsBinaryString(Blob blob);
20894
20895 void readAsDataURL(Blob blob);
20896
20897 void readAsText(Blob blob, [String encoding]);
20898
20899 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
20900 }
20901 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20902 // for details. All rights reserved. Use of this source code is governed by a
20903 // BSD-style license that can be found in the LICENSE file.
20904
20905 // WARNING: Do not edit - generated code.
20906
20907 interface FileReaderSync {
20908
20909 ArrayBuffer readAsArrayBuffer(Blob blob);
20910
20911 String readAsBinaryString(Blob blob);
20912
20913 String readAsDataURL(Blob blob);
20914
20915 String readAsText(Blob blob, [String encoding]);
20916 }
20917 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20918 // for details. All rights reserved. Use of this source code is governed by a
20919 // BSD-style license that can be found in the LICENSE file.
20920
20921 // WARNING: Do not edit - generated code.
20922
20923 typedef bool FileSystemCallback(DOMFileSystem fileSystem);
20924 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20925 // for details. All rights reserved. Use of this source code is governed by a
20926 // BSD-style license that can be found in the LICENSE file.
20927
20928 // WARNING: Do not edit - generated code.
20929
20930 interface FileWriter {
20931
20932 static final int DONE = 2;
20933
20934 static final int INIT = 0;
20935
20936 static final int WRITING = 1;
20937
20938 final FileError error;
20939
20940 final int length;
20941
20942 EventListener onabort;
20943
20944 EventListener onerror;
20945
20946 EventListener onprogress;
20947
20948 EventListener onwrite;
20949
20950 EventListener onwriteend;
20951
20952 EventListener onwritestart;
20953
20954 final int position;
20955
20956 final int readyState;
20957
20958 void abort();
20959
20960 void seek(int position);
20961
20962 void truncate(int size);
20963
20964 void write(Blob data);
20965 }
20966 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
20967 // for details. All rights reserved. Use of this source code is governed by a
20968 // BSD-style license that can be found in the LICENSE file.
20969
20970 // WARNING: Do not edit - generated code.
20971
20972 typedef bool FileWriterCallback(FileWriter fileWriter);
20973 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20974 // for details. All rights reserved. Use of this source code is governed by a
20975 // BSD-style license that can be found in the LICENSE file.
20976
20977 // WARNING: Do not edit - generated code.
20978
20979 interface FileWriterSync {
20980
20981 final int length;
20982
20983 final int position;
20984
20985 void seek(int position);
20986
20987 void truncate(int size);
20988
20989 void write(Blob data);
20990 }
20991 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20992 // for details. All rights reserved. Use of this source code is governed by a
20993 // BSD-style license that can be found in the LICENSE file.
20994
20995 // WARNING: Do not edit - generated code.
20996
20997 interface Float32Array extends ArrayBufferView, List<num> default _TypedArrayFac toryProvider {
20998
20999 Float32Array(int length);
21000
21001 Float32Array.fromList(List<num> list);
21002
21003 Float32Array.fromBuffer(ArrayBuffer buffer);
21004
21005 static final int BYTES_PER_ELEMENT = 4;
21006
21007 final int length;
21008
21009 void setElements(Object array, [int offset]);
21010
21011 Float32Array subarray(int start, [int end]);
21012 }
21013 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21014 // for details. All rights reserved. Use of this source code is governed by a
21015 // BSD-style license that can be found in the LICENSE file.
21016
21017 // WARNING: Do not edit - generated code.
21018
21019 interface Float64Array extends ArrayBufferView, List<num> default _TypedArrayFac toryProvider {
21020
21021 Float64Array(int length);
21022
21023 Float64Array.fromList(List<num> list);
21024
21025 Float64Array.fromBuffer(ArrayBuffer buffer);
21026
21027 static final int BYTES_PER_ELEMENT = 8;
21028
21029 final int length;
21030
21031 void setElements(Object array, [int offset]);
21032
21033 Float64Array subarray(int start, [int end]);
21034 }
21035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21036 // for details. All rights reserved. Use of this source code is governed by a
21037 // BSD-style license that can be found in the LICENSE file.
21038
21039 // WARNING: Do not edit - generated code.
21040
21041 interface FontElement extends Element {
21042
21043 String color;
21044
21045 String face;
21046
21047 String size;
21048 }
21049 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21050 // for details. All rights reserved. Use of this source code is governed by a
21051 // BSD-style license that can be found in the LICENSE file.
21052
21053 // WARNING: Do not edit - generated code.
21054
21055 interface FormElement extends Element {
21056
21057 String acceptCharset;
21058
21059 String action;
21060
21061 String autocomplete;
21062
21063 String encoding;
21064
21065 String enctype;
21066
21067 final int length;
21068
21069 String method;
21070
21071 String name;
21072
21073 bool noValidate;
21074
21075 String target;
21076
21077 bool checkValidity();
21078
21079 void reset();
21080
21081 void submit();
21082 }
21083 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21084 // for details. All rights reserved. Use of this source code is governed by a
21085 // BSD-style license that can be found in the LICENSE file.
21086
21087 // WARNING: Do not edit - generated code.
21088
21089 interface FrameElement extends Element {
21090
21091 final Document contentDocument;
21092
21093 final Window contentWindow;
21094
21095 String frameBorder;
21096
21097 final int height;
21098
21099 String location;
21100
21101 String longDesc;
21102
21103 String marginHeight;
21104
21105 String marginWidth;
21106
21107 String name;
21108
21109 bool noResize;
21110
21111 String scrolling;
21112
21113 String src;
21114
21115 final int width;
21116
21117 SVGDocument getSVGDocument();
21118 }
21119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21120 // for details. All rights reserved. Use of this source code is governed by a
21121 // BSD-style license that can be found in the LICENSE file.
21122
21123 // WARNING: Do not edit - generated code.
21124
21125 interface FrameSetElement extends Element {
21126
21127 String cols;
21128
21129 String rows;
21130
21131 FrameSetElementEvents get on();
21132 }
21133
21134 interface FrameSetElementEvents extends ElementEvents {
21135
21136 EventListenerList get beforeUnload();
21137
21138 EventListenerList get blur();
21139
21140 EventListenerList get error();
21141
21142 EventListenerList get focus();
21143
21144 EventListenerList get hashChange();
21145
21146 EventListenerList get load();
21147
21148 EventListenerList get message();
21149
21150 EventListenerList get offline();
21151
21152 EventListenerList get online();
21153
21154 EventListenerList get popState();
21155
21156 EventListenerList get resize();
21157
21158 EventListenerList get storage();
21159
21160 EventListenerList get unload();
21161 }
21162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21163 // for details. All rights reserved. Use of this source code is governed by a
21164 // BSD-style license that can be found in the LICENSE file.
21165
21166 // WARNING: Do not edit - generated code.
21167
21168 interface Geolocation {
21169
21170 void clearWatch(int watchId);
21171
21172 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba ck errorCallback]);
21173
21174 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err orCallback]);
21175 }
21176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21177 // for details. All rights reserved. Use of this source code is governed by a
21178 // BSD-style license that can be found in the LICENSE file.
21179
21180 // WARNING: Do not edit - generated code.
21181
21182 interface Geoposition {
21183
21184 final Coordinates coords;
21185
21186 final int timestamp;
21187 }
21188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21189 // for details. All rights reserved. Use of this source code is governed by a
21190 // BSD-style license that can be found in the LICENSE file.
21191
21192 // WARNING: Do not edit - generated code.
21193
21194 interface HRElement extends Element {
21195
21196 String align;
21197
21198 bool noShade;
21199
21200 String size;
21201
21202 String width;
21203 }
21204 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21205 // for details. All rights reserved. Use of this source code is governed by a
21206 // BSD-style license that can be found in the LICENSE file.
21207
21208 // WARNING: Do not edit - generated code.
21209
21210 interface HTMLAllCollection {
21211
21212 final int length;
21213
21214 Node item(int index);
21215
21216 Node namedItem(String name);
21217
21218 NodeList tags(String name);
21219 }
21220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21221 // for details. All rights reserved. Use of this source code is governed by a
21222 // BSD-style license that can be found in the LICENSE file.
21223
21224 // WARNING: Do not edit - generated code.
21225
21226 interface HTMLCollection extends List<Node> {
21227
21228 final int length;
21229
21230 Node item(int index);
21231
21232 Node namedItem(String name);
21233 }
21234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21235 // for details. All rights reserved. Use of this source code is governed by a
21236 // BSD-style license that can be found in the LICENSE file.
21237
21238 // WARNING: Do not edit - generated code.
21239
21240 interface HTMLOptionsCollection extends HTMLCollection {
21241
21242 int length;
21243
21244 int selectedIndex;
21245
21246 void remove(int index);
21247 }
21248 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21249 // for details. All rights reserved. Use of this source code is governed by a
21250 // BSD-style license that can be found in the LICENSE file.
21251
21252 // WARNING: Do not edit - generated code.
21253
21254 interface HashChangeEvent extends Event {
21255
21256 final String newURL;
21257
21258 final String oldURL;
21259
21260 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL);
21261 }
21262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21263 // for details. All rights reserved. Use of this source code is governed by a
21264 // BSD-style license that can be found in the LICENSE file.
21265
21266 // WARNING: Do not edit - generated code.
21267
21268 interface HeadElement extends Element {
21269
21270 String profile;
21271 }
21272 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21273 // for details. All rights reserved. Use of this source code is governed by a
21274 // BSD-style license that can be found in the LICENSE file.
21275
21276 // WARNING: Do not edit - generated code.
21277
21278 interface HeadingElement extends Element {
21279
21280 String align;
21281 }
21282 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21283 // for details. All rights reserved. Use of this source code is governed by a
21284 // BSD-style license that can be found in the LICENSE file.
21285
21286 // WARNING: Do not edit - generated code.
21287
21288 interface HighPass2FilterNode extends AudioNode {
21289
21290 final AudioParam cutoff;
21291
21292 final AudioParam resonance;
21293 }
21294 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21295 // for details. All rights reserved. Use of this source code is governed by a
21296 // BSD-style license that can be found in the LICENSE file.
21297
21298 // WARNING: Do not edit - generated code.
21299
21300 interface History {
21301
21302 final int length;
21303
21304 void back();
21305
21306 void forward();
21307
21308 void go(int distance);
21309
21310 void pushState(Object data, String title, [String url]);
21311
21312 void replaceState(Object data, String title, [String url]);
21313 }
21314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21315 // for details. All rights reserved. Use of this source code is governed by a
21316 // BSD-style license that can be found in the LICENSE file.
21317
21318 // WARNING: Do not edit - generated code.
21319
21320 interface HtmlElement extends Element {
21321
21322 String manifest;
21323
21324 String version;
21325 }
21326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21327 // for details. All rights reserved. Use of this source code is governed by a
21328 // BSD-style license that can be found in the LICENSE file.
21329
21330 // WARNING: Do not edit - generated code.
21331
21332 interface IDBAny {
21333 }
21334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21335 // for details. All rights reserved. Use of this source code is governed by a
21336 // BSD-style license that can be found in the LICENSE file.
21337
21338 // WARNING: Do not edit - generated code.
21339
21340 interface IDBCursor {
21341
21342 static final int NEXT = 0;
21343
21344 static final int NEXT_NO_DUPLICATE = 1;
21345
21346 static final int PREV = 2;
21347
21348 static final int PREV_NO_DUPLICATE = 3;
21349
21350 final int direction;
21351
21352 final IDBKey key;
21353
21354 final IDBKey primaryKey;
21355
21356 final IDBAny source;
21357
21358 void continueFunction([IDBKey key]);
21359
21360 IDBRequest delete();
21361
21362 IDBRequest update(Dynamic value);
21363 }
21364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21365 // for details. All rights reserved. Use of this source code is governed by a
21366 // BSD-style license that can be found in the LICENSE file.
21367
21368 // WARNING: Do not edit - generated code.
21369
21370 interface IDBCursorWithValue extends IDBCursor {
21371
21372 final IDBAny value;
21373 }
21374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21375 // for details. All rights reserved. Use of this source code is governed by a
21376 // BSD-style license that can be found in the LICENSE file.
21377
21378 // WARNING: Do not edit - generated code.
21379
21380 interface IDBDatabase {
21381
21382 final String name;
21383
21384 EventListener onabort;
21385
21386 EventListener onerror;
21387
21388 EventListener onversionchange;
21389
21390 final String version;
21391
21392 void addEventListener(String type, EventListener listener, [bool useCapture]);
21393
21394 void close();
21395
21396 IDBObjectStore createObjectStore(String name);
21397
21398 void deleteObjectStore(String name);
21399
21400 bool dispatchEvent(Event evt);
21401
21402 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
21403
21404 IDBVersionChangeRequest setVersion(String version);
21405
21406 IDBTransaction transaction(String storeName, int mode);
21407 }
21408 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21409 // for details. All rights reserved. Use of this source code is governed by a
21410 // BSD-style license that can be found in the LICENSE file.
21411
21412 // WARNING: Do not edit - generated code.
21413
21414 interface IDBDatabaseError {
21415
21416 int code;
21417
21418 String message;
21419 }
21420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21421 // for details. All rights reserved. Use of this source code is governed by a
21422 // BSD-style license that can be found in the LICENSE file.
21423
21424 // WARNING: Do not edit - generated code.
21425
21426 interface IDBDatabaseException {
21427
21428 static final int ABORT_ERR = 8;
21429
21430 static final int CONSTRAINT_ERR = 4;
21431
21432 static final int DATA_ERR = 5;
21433
21434 static final int NON_TRANSIENT_ERR = 2;
21435
21436 static final int NOT_ALLOWED_ERR = 6;
21437
21438 static final int NOT_FOUND_ERR = 3;
21439
21440 static final int NO_ERR = 0;
21441
21442 static final int QUOTA_ERR = 11;
21443
21444 static final int READ_ONLY_ERR = 9;
21445
21446 static final int TIMEOUT_ERR = 10;
21447
21448 static final int TRANSACTION_INACTIVE_ERR = 7;
21449
21450 static final int UNKNOWN_ERR = 1;
21451
21452 static final int VER_ERR = 12;
21453
21454 final int code;
21455
21456 final String message;
21457
21458 final String name;
21459
21460 String toString();
21461 }
21462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21463 // for details. All rights reserved. Use of this source code is governed by a
21464 // BSD-style license that can be found in the LICENSE file.
21465
21466 // WARNING: Do not edit - generated code.
21467
21468 interface IDBFactory {
21469
21470 int cmp(IDBKey first, IDBKey second);
21471
21472 IDBVersionChangeRequest deleteDatabase(String name);
21473
21474 IDBRequest getDatabaseNames();
21475
21476 IDBRequest open(String name);
21477 }
21478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21479 // for details. All rights reserved. Use of this source code is governed by a
21480 // BSD-style license that can be found in the LICENSE file.
21481
21482 // WARNING: Do not edit - generated code.
21483
21484 interface IDBIndex {
21485
21486 final String keyPath;
21487
21488 final bool multiEntry;
21489
21490 final String name;
21491
21492 final IDBObjectStore objectStore;
21493
21494 final bool unique;
21495
21496 IDBRequest count([IDBKeyRange range]);
21497
21498 IDBRequest getObject(IDBKey key);
21499
21500 IDBRequest getKey(IDBKey key);
21501
21502 IDBRequest openCursor([IDBKeyRange range, int direction]);
21503
21504 IDBRequest openKeyCursor([IDBKeyRange range, int direction]);
21505 }
21506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21507 // for details. All rights reserved. Use of this source code is governed by a
21508 // BSD-style license that can be found in the LICENSE file.
21509
21510 // WARNING: Do not edit - generated code.
21511
21512 interface IDBKey {
21513 }
21514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21515 // for details. All rights reserved. Use of this source code is governed by a
21516 // BSD-style license that can be found in the LICENSE file.
21517
21518 // WARNING: Do not edit - generated code.
21519
21520 interface IDBKeyRange {
21521
21522 final IDBKey lower;
21523
21524 final bool lowerOpen;
21525
21526 final IDBKey upper;
21527
21528 final bool upperOpen;
21529
21530 IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen, bool upperOpen] );
21531
21532 IDBKeyRange lowerBound(IDBKey bound, [bool open]);
21533
21534 IDBKeyRange only(IDBKey value);
21535
21536 IDBKeyRange upperBound(IDBKey bound, [bool open]);
21537 }
21538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21539 // for details. All rights reserved. Use of this source code is governed by a
21540 // BSD-style license that can be found in the LICENSE file.
21541
21542 // WARNING: Do not edit - generated code.
21543
21544 interface IDBObjectStore {
21545
21546 final String keyPath;
21547
21548 final String name;
21549
21550 final IDBTransaction transaction;
21551
21552 IDBRequest add(Dynamic value, [IDBKey key]);
21553
21554 IDBRequest clear();
21555
21556 IDBRequest count([IDBKeyRange range]);
21557
21558 IDBIndex createIndex(String name, String keyPath);
21559
21560 IDBRequest delete(IDBKey key);
21561
21562 void deleteIndex(String name);
21563
21564 IDBRequest getObject(IDBKey key);
21565
21566 IDBIndex index(String name);
21567
21568 IDBRequest openCursor([IDBKeyRange range, int direction]);
21569
21570 IDBRequest put(Dynamic value, [IDBKey key]);
21571 }
21572 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21573 // for details. All rights reserved. Use of this source code is governed by a
21574 // BSD-style license that can be found in the LICENSE file.
21575
21576 // WARNING: Do not edit - generated code.
21577
21578 interface IDBRequest {
21579
21580 static final int DONE = 2;
21581
21582 static final int LOADING = 1;
21583
21584 final int errorCode;
21585
21586 EventListener onerror;
21587
21588 EventListener onsuccess;
21589
21590 final int readyState;
21591
21592 final IDBAny result;
21593
21594 final IDBAny source;
21595
21596 final IDBTransaction transaction;
21597
21598 final String webkitErrorMessage;
21599
21600 void addEventListener(String type, EventListener listener, [bool useCapture]);
21601
21602 bool dispatchEvent(Event evt);
21603
21604 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
21605 }
21606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21607 // for details. All rights reserved. Use of this source code is governed by a
21608 // BSD-style license that can be found in the LICENSE file.
21609
21610 // WARNING: Do not edit - generated code.
21611
21612 interface IDBTransaction {
21613
21614 static final int READ_ONLY = 0;
21615
21616 static final int READ_WRITE = 1;
21617
21618 static final int VERSION_CHANGE = 2;
21619
21620 final IDBDatabase db;
21621
21622 final int mode;
21623
21624 EventListener onabort;
21625
21626 EventListener oncomplete;
21627
21628 EventListener onerror;
21629
21630 void abort();
21631
21632 void addEventListener(String type, EventListener listener, [bool useCapture]);
21633
21634 bool dispatchEvent(Event evt);
21635
21636 IDBObjectStore objectStore(String name);
21637
21638 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
21639 }
21640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21641 // for details. All rights reserved. Use of this source code is governed by a
21642 // BSD-style license that can be found in the LICENSE file.
21643
21644 // WARNING: Do not edit - generated code.
21645
21646 interface IDBVersionChangeEvent extends Event {
21647
21648 final String version;
21649 }
21650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21651 // for details. All rights reserved. Use of this source code is governed by a
21652 // BSD-style license that can be found in the LICENSE file.
21653
21654 // WARNING: Do not edit - generated code.
21655
21656 interface IDBVersionChangeRequest extends IDBRequest {
21657
21658 EventListener onblocked;
21659 }
21660 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21661 // for details. All rights reserved. Use of this source code is governed by a
21662 // BSD-style license that can be found in the LICENSE file.
21663
21664 // WARNING: Do not edit - generated code.
21665
21666 interface IFrameElement extends Element {
21667
21668 String align;
21669
21670 final Document contentDocument;
21671
21672 final Window contentWindow;
21673
21674 String frameBorder;
21675
21676 String height;
21677
21678 String longDesc;
21679
21680 String marginHeight;
21681
21682 String marginWidth;
21683
21684 String name;
21685
21686 String sandbox;
21687
21688 String scrolling;
21689
21690 String src;
21691
21692 String width;
21693
21694 SVGDocument getSVGDocument();
21695 }
21696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21697 // for details. All rights reserved. Use of this source code is governed by a
21698 // BSD-style license that can be found in the LICENSE file.
21699
21700 // WARNING: Do not edit - generated code.
21701
21702 interface ImageData {
21703
21704 final CanvasPixelArray data;
21705
21706 final int height;
21707
21708 final int width;
21709 }
21710 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21711 // for details. All rights reserved. Use of this source code is governed by a
21712 // BSD-style license that can be found in the LICENSE file.
21713
21714 // WARNING: Do not edit - generated code.
21715
21716 interface ImageElement extends Element {
21717
21718 String align;
21719
21720 String alt;
21721
21722 String border;
21723
21724 final bool complete;
21725
21726 String crossOrigin;
21727
21728 int height;
21729
21730 int hspace;
21731
21732 bool isMap;
21733
21734 String longDesc;
21735
21736 String lowsrc;
21737
21738 String name;
21739
21740 final int naturalHeight;
21741
21742 final int naturalWidth;
21743
21744 String src;
21745
21746 String useMap;
21747
21748 int vspace;
21749
21750 int width;
21751
21752 final int x;
21753
21754 final int y;
21755 }
21756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21757 // for details. All rights reserved. Use of this source code is governed by a
21758 // BSD-style license that can be found in the LICENSE file.
21759
21760 // WARNING: Do not edit - generated code.
21761
21762 interface InputElement extends Element {
21763
21764 String accept;
21765
21766 String align;
21767
21768 String alt;
21769
21770 String autocomplete;
21771
21772 bool autofocus;
21773
21774 bool checked;
21775
21776 bool defaultChecked;
21777
21778 String defaultValue;
21779
21780 bool disabled;
21781
21782 final FileList files;
21783
21784 final FormElement form;
21785
21786 String formAction;
21787
21788 String formEnctype;
21789
21790 String formMethod;
21791
21792 bool formNoValidate;
21793
21794 String formTarget;
21795
21796 bool incremental;
21797
21798 bool indeterminate;
21799
21800 final NodeList labels;
21801
21802 String max;
21803
21804 int maxLength;
21805
21806 String min;
21807
21808 bool multiple;
21809
21810 String name;
21811
21812 String pattern;
21813
21814 String placeholder;
21815
21816 bool readOnly;
21817
21818 bool required;
21819
21820 String selectionDirection;
21821
21822 int selectionEnd;
21823
21824 int selectionStart;
21825
21826 int size;
21827
21828 String src;
21829
21830 String step;
21831
21832 String type;
21833
21834 String useMap;
21835
21836 final String validationMessage;
21837
21838 final ValidityState validity;
21839
21840 String value;
21841
21842 Date valueAsDate;
21843
21844 num valueAsNumber;
21845
21846 bool webkitGrammar;
21847
21848 bool webkitSpeech;
21849
21850 bool webkitdirectory;
21851
21852 final bool willValidate;
21853
21854 InputElementEvents get on();
21855
21856 bool checkValidity();
21857
21858 void click();
21859
21860 void select();
21861
21862 void setCustomValidity(String error);
21863
21864 void setSelectionRange(int start, int end, [String direction]);
21865
21866 void stepDown([int n]);
21867
21868 void stepUp([int n]);
21869 }
21870
21871 interface InputElementEvents extends ElementEvents {
21872
21873 EventListenerList get speechChange();
21874 }
21875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21876 // for details. All rights reserved. Use of this source code is governed by a
21877 // BSD-style license that can be found in the LICENSE file.
21878
21879 // WARNING: Do not edit - generated code.
21880
21881 interface Int16Array extends ArrayBufferView, List<int> default _TypedArrayFacto ryProvider {
21882
21883 Int16Array(int length);
21884
21885 Int16Array.fromList(List<int> list);
21886
21887 Int16Array.fromBuffer(ArrayBuffer buffer);
21888
21889 static final int BYTES_PER_ELEMENT = 2;
21890
21891 final int length;
21892
21893 void setElements(Object array, [int offset]);
21894
21895 Int16Array subarray(int start, [int end]);
21896 }
21897 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21898 // for details. All rights reserved. Use of this source code is governed by a
21899 // BSD-style license that can be found in the LICENSE file.
21900
21901 // WARNING: Do not edit - generated code.
21902
21903 interface Int32Array extends ArrayBufferView, List<int> default _TypedArrayFacto ryProvider {
21904
21905 Int32Array(int length);
21906
21907 Int32Array.fromList(List<int> list);
21908
21909 Int32Array.fromBuffer(ArrayBuffer buffer);
21910
21911 static final int BYTES_PER_ELEMENT = 4;
21912
21913 final int length;
21914
21915 void setElements(Object array, [int offset]);
21916
21917 Int32Array subarray(int start, [int end]);
21918 }
21919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21920 // for details. All rights reserved. Use of this source code is governed by a
21921 // BSD-style license that can be found in the LICENSE file.
21922
21923 // WARNING: Do not edit - generated code.
21924
21925 interface Int8Array extends ArrayBufferView, List<int> default _TypedArrayFactor yProvider {
21926
21927 Int8Array(int length);
21928
21929 Int8Array.fromList(List<int> list);
21930
21931 Int8Array.fromBuffer(ArrayBuffer buffer);
21932
21933 static final int BYTES_PER_ELEMENT = 1;
21934
21935 final int length;
21936
21937 void setElements(Object array, [int offset]);
21938
21939 Int8Array subarray(int start, [int end]);
21940 }
21941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21942 // for details. All rights reserved. Use of this source code is governed by a
21943 // BSD-style license that can be found in the LICENSE file.
21944
21945 // WARNING: Do not edit - generated code.
21946
21947 interface IsIndexElement extends InputElement {
21948
21949 final FormElement form;
21950
21951 String prompt;
21952 }
21953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21954 // for details. All rights reserved. Use of this source code is governed by a
21955 // BSD-style license that can be found in the LICENSE file.
21956
21957 // WARNING: Do not edit - generated code.
21958
21959 interface JavaScriptAudioNode extends AudioNode {
21960
21961 final int bufferSize;
21962
21963 EventListener onaudioprocess;
21964 }
21965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
21966 // for details. All rights reserved. Use of this source code is governed by a
21967 // BSD-style license that can be found in the LICENSE file.
21968
21969 // WARNING: Do not edit - generated code.
21970
21971 interface JavaScriptCallFrame {
21972
21973 static final int CATCH_SCOPE = 4;
21974
21975 static final int CLOSURE_SCOPE = 3;
21976
21977 static final int GLOBAL_SCOPE = 0;
21978
21979 static final int LOCAL_SCOPE = 1;
21980
21981 static final int WITH_SCOPE = 2;
21982
21983 final JavaScriptCallFrame caller;
21984
21985 final int column;
21986
21987 final String functionName;
21988
21989 final int line;
21990
21991 final List scopeChain;
21992
21993 final int sourceID;
21994
21995 final Object thisObject;
21996
21997 final String type;
21998
21999 void evaluate(String script);
22000
22001 int scopeType(int scopeIndex);
22002 }
22003 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22004 // for details. All rights reserved. Use of this source code is governed by a
22005 // BSD-style license that can be found in the LICENSE file.
22006
22007 // WARNING: Do not edit - generated code.
22008
22009 interface KeyboardEvent extends UIEvent {
22010
22011 final bool altGraphKey;
22012
22013 final bool altKey;
22014
22015 final bool ctrlKey;
22016
22017 final String keyIdentifier;
22018
22019 final int keyLocation;
22020
22021 final bool metaKey;
22022
22023 final bool shiftKey;
22024
22025 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);
22026 }
22027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22028 // for details. All rights reserved. Use of this source code is governed by a
22029 // BSD-style license that can be found in the LICENSE file.
22030
22031 // WARNING: Do not edit - generated code.
22032
22033 interface KeygenElement extends Element {
22034
22035 bool autofocus;
22036
22037 String challenge;
22038
22039 bool disabled;
22040
22041 final FormElement form;
22042
22043 String keytype;
22044
22045 final NodeList labels;
22046
22047 String name;
22048
22049 final String type;
22050
22051 final String validationMessage;
22052
22053 final ValidityState validity;
22054
22055 final bool willValidate;
22056
22057 bool checkValidity();
22058
22059 void setCustomValidity(String error);
22060 }
22061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22062 // for details. All rights reserved. Use of this source code is governed by a
22063 // BSD-style license that can be found in the LICENSE file.
22064
22065 // WARNING: Do not edit - generated code.
22066
22067 interface LIElement extends Element {
22068
22069 String type;
22070
22071 int value;
22072 }
22073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22074 // for details. All rights reserved. Use of this source code is governed by a
22075 // BSD-style license that can be found in the LICENSE file.
22076
22077 // WARNING: Do not edit - generated code.
22078
22079 interface LabelElement extends Element {
22080
22081 final Element control;
22082
22083 final FormElement form;
22084
22085 String htmlFor;
22086 }
22087 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22088 // for details. All rights reserved. Use of this source code is governed by a
22089 // BSD-style license that can be found in the LICENSE file.
22090
22091 // WARNING: Do not edit - generated code.
22092
22093 interface LegendElement extends Element {
22094
22095 String align;
22096
22097 final FormElement form;
22098 }
22099 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22100 // for details. All rights reserved. Use of this source code is governed by a
22101 // BSD-style license that can be found in the LICENSE file.
22102
22103 // WARNING: Do not edit - generated code.
22104
22105 interface LinkElement extends Element {
22106
22107 String charset;
22108
22109 bool disabled;
22110
22111 String href;
22112
22113 String hreflang;
22114
22115 String media;
22116
22117 String rel;
22118
22119 String rev;
22120
22121 final StyleSheet sheet;
22122
22123 DOMSettableTokenList sizes;
22124
22125 String target;
22126
22127 String type;
22128 }
22129 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22130 // for details. All rights reserved. Use of this source code is governed by a
22131 // BSD-style license that can be found in the LICENSE file.
22132
22133 // WARNING: Do not edit - generated code.
22134
22135 interface Location {
22136
22137 String hash;
22138
22139 String host;
22140
22141 String hostname;
22142
22143 String href;
22144
22145 final String origin;
22146
22147 String pathname;
22148
22149 String port;
22150
22151 String protocol;
22152
22153 String search;
22154
22155 void assign(String url);
22156
22157 void reload();
22158
22159 void replace(String url);
22160
22161 String toString();
22162 }
22163 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22164 // for details. All rights reserved. Use of this source code is governed by a
22165 // BSD-style license that can be found in the LICENSE file.
22166
22167 // WARNING: Do not edit - generated code.
22168
22169 interface LowPass2FilterNode extends AudioNode {
22170
22171 final AudioParam cutoff;
22172
22173 final AudioParam resonance;
22174 }
22175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22176 // for details. All rights reserved. Use of this source code is governed by a
22177 // BSD-style license that can be found in the LICENSE file.
22178
22179 // WARNING: Do not edit - generated code.
22180
22181 interface MapElement extends Element {
22182
22183 final HTMLCollection areas;
22184
22185 String name;
22186 }
22187 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22188 // for details. All rights reserved. Use of this source code is governed by a
22189 // BSD-style license that can be found in the LICENSE file.
22190
22191 // WARNING: Do not edit - generated code.
22192
22193 interface MarqueeElement extends Element {
22194
22195 String behavior;
22196
22197 String bgColor;
22198
22199 String direction;
22200
22201 String height;
22202
22203 int hspace;
22204
22205 int loop;
22206
22207 int scrollAmount;
22208
22209 int scrollDelay;
22210
22211 bool trueSpeed;
22212
22213 int vspace;
22214
22215 String width;
22216
22217 void start();
22218
22219 void stop();
22220 }
22221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22222 // for details. All rights reserved. Use of this source code is governed by a
22223 // BSD-style license that can be found in the LICENSE file.
22224
22225 // WARNING: Do not edit - generated code.
22226
22227 interface MediaController {
22228
22229 final TimeRanges buffered;
22230
22231 num currentTime;
22232
22233 num defaultPlaybackRate;
22234
22235 final num duration;
22236
22237 bool muted;
22238
22239 final bool paused;
22240
22241 num playbackRate;
22242
22243 final TimeRanges played;
22244
22245 final TimeRanges seekable;
22246
22247 num volume;
22248
22249 void addEventListener(String type, EventListener listener, [bool useCapture]);
22250
22251 bool dispatchEvent(Event evt);
22252
22253 void pause();
22254
22255 void play();
22256
22257 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
22258 }
22259 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22260 // for details. All rights reserved. Use of this source code is governed by a
22261 // BSD-style license that can be found in the LICENSE file.
22262
22263 // WARNING: Do not edit - generated code.
22264
22265 interface MediaElement extends Element {
22266
22267 static final int EOS_DECODE_ERR = 2;
22268
22269 static final int EOS_NETWORK_ERR = 1;
22270
22271 static final int EOS_NO_ERROR = 0;
22272
22273 static final int HAVE_CURRENT_DATA = 2;
22274
22275 static final int HAVE_ENOUGH_DATA = 4;
22276
22277 static final int HAVE_FUTURE_DATA = 3;
22278
22279 static final int HAVE_METADATA = 1;
22280
22281 static final int HAVE_NOTHING = 0;
22282
22283 static final int NETWORK_EMPTY = 0;
22284
22285 static final int NETWORK_IDLE = 1;
22286
22287 static final int NETWORK_LOADING = 2;
22288
22289 static final int NETWORK_NO_SOURCE = 3;
22290
22291 static final int SOURCE_CLOSED = 0;
22292
22293 static final int SOURCE_ENDED = 2;
22294
22295 static final int SOURCE_OPEN = 1;
22296
22297 bool autoplay;
22298
22299 final TimeRanges buffered;
22300
22301 MediaController controller;
22302
22303 bool controls;
22304
22305 final String currentSrc;
22306
22307 num currentTime;
22308
22309 bool defaultMuted;
22310
22311 num defaultPlaybackRate;
22312
22313 final num duration;
22314
22315 final bool ended;
22316
22317 final MediaError error;
22318
22319 final num initialTime;
22320
22321 bool loop;
22322
22323 String mediaGroup;
22324
22325 bool muted;
22326
22327 final int networkState;
22328
22329 final bool paused;
22330
22331 num playbackRate;
22332
22333 final TimeRanges played;
22334
22335 String preload;
22336
22337 final int readyState;
22338
22339 final TimeRanges seekable;
22340
22341 final bool seeking;
22342
22343 String src;
22344
22345 final num startTime;
22346
22347 final TextTrackList textTracks;
22348
22349 num volume;
22350
22351 final int webkitAudioDecodedByteCount;
22352
22353 bool webkitClosedCaptionsVisible;
22354
22355 final bool webkitHasClosedCaptions;
22356
22357 final String webkitMediaSourceURL;
22358
22359 bool webkitPreservesPitch;
22360
22361 final int webkitSourceState;
22362
22363 final int webkitVideoDecodedByteCount;
22364
22365 TextTrack addTrack(String kind, [String label, String language]);
22366
22367 String canPlayType(String type);
22368
22369 void load();
22370
22371 void pause();
22372
22373 void play();
22374
22375 void webkitSourceAppend(Uint8Array data);
22376
22377 void webkitSourceEndOfStream(int status);
22378 }
22379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22380 // for details. All rights reserved. Use of this source code is governed by a
22381 // BSD-style license that can be found in the LICENSE file.
22382
22383 // WARNING: Do not edit - generated code.
22384
22385 interface MediaElementAudioSourceNode extends AudioSourceNode {
22386
22387 final MediaElement mediaElement;
22388 }
22389 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22390 // for details. All rights reserved. Use of this source code is governed by a
22391 // BSD-style license that can be found in the LICENSE file.
22392
22393 // WARNING: Do not edit - generated code.
22394
22395 interface MediaError {
22396
22397 static final int MEDIA_ERR_ABORTED = 1;
22398
22399 static final int MEDIA_ERR_DECODE = 3;
22400
22401 static final int MEDIA_ERR_NETWORK = 2;
22402
22403 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4;
22404
22405 final int code;
22406 }
22407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22408 // for details. All rights reserved. Use of this source code is governed by a
22409 // BSD-style license that can be found in the LICENSE file.
22410
22411 // WARNING: Do not edit - generated code.
22412
22413 interface MediaList extends List<String> {
22414
22415 final int length;
22416
22417 String mediaText;
22418
22419 void appendMedium(String newMedium);
22420
22421 void deleteMedium(String oldMedium);
22422
22423 String item(int index);
22424 }
22425 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22426 // for details. All rights reserved. Use of this source code is governed by a
22427 // BSD-style license that can be found in the LICENSE file.
22428
22429 // WARNING: Do not edit - generated code.
22430
22431 interface MediaQueryList {
22432
22433 final bool matches;
22434
22435 final String media;
22436
22437 void addListener(MediaQueryListListener listener);
22438
22439 void removeListener(MediaQueryListListener listener);
22440 }
22441 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22442 // for details. All rights reserved. Use of this source code is governed by a
22443 // BSD-style license that can be found in the LICENSE file.
22444
22445 // WARNING: Do not edit - generated code.
22446
22447 interface MediaQueryListListener {
22448
22449 void queryChanged(MediaQueryList list);
22450 }
22451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22452 // for details. All rights reserved. Use of this source code is governed by a
22453 // BSD-style license that can be found in the LICENSE file.
22454
22455 // WARNING: Do not edit - generated code.
22456
22457 interface MemoryInfo {
22458
22459 final int jsHeapSizeLimit;
22460
22461 final int totalJSHeapSize;
22462
22463 final int usedJSHeapSize;
22464 }
22465 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22466 // for details. All rights reserved. Use of this source code is governed by a
22467 // BSD-style license that can be found in the LICENSE file.
22468
22469 // WARNING: Do not edit - generated code.
22470
22471 interface MenuElement extends Element {
22472
22473 bool compact;
22474 }
22475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22476 // for details. All rights reserved. Use of this source code is governed by a
22477 // BSD-style license that can be found in the LICENSE file.
22478
22479 // WARNING: Do not edit - generated code.
22480
22481 interface MessageChannel {
22482
22483 final MessagePort port1;
22484
22485 final MessagePort port2;
22486 }
22487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22488 // for details. All rights reserved. Use of this source code is governed by a
22489 // BSD-style license that can be found in the LICENSE file.
22490
22491 // WARNING: Do not edit - generated code.
22492
22493 interface MessageEvent extends Event {
22494
22495 final Object data;
22496
22497 final String lastEventId;
22498
22499 final String origin;
22500
22501 final List ports;
22502
22503 final Window source;
22504
22505 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, Window sourceArg, List m essagePorts);
22506
22507 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, List transferables);
22508 }
22509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22510 // for details. All rights reserved. Use of this source code is governed by a
22511 // BSD-style license that can be found in the LICENSE file.
22512
22513 // WARNING: Do not edit - generated code.
22514
22515 interface MessagePort extends EventTarget {
22516
22517 MessagePortEvents get on();
22518
22519 void close();
22520
22521 void postMessage(String message, [List messagePorts]);
22522
22523 void start();
22524
22525 void webkitPostMessage(String message, [List transfer]);
22526 }
22527
22528 interface MessagePortEvents extends Events {
22529
22530 EventListenerList get message();
22531 }
22532 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22533 // for details. All rights reserved. Use of this source code is governed by a
22534 // BSD-style license that can be found in the LICENSE file.
22535
22536 // WARNING: Do not edit - generated code.
22537
22538 interface MetaElement extends Element {
22539
22540 String content;
22541
22542 String httpEquiv;
22543
22544 String name;
22545
22546 String scheme;
22547 }
22548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22549 // for details. All rights reserved. Use of this source code is governed by a
22550 // BSD-style license that can be found in the LICENSE file.
22551
22552 // WARNING: Do not edit - generated code.
22553
22554 interface Metadata {
22555
22556 final Date modificationTime;
22557 }
22558 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22559 // for details. All rights reserved. Use of this source code is governed by a
22560 // BSD-style license that can be found in the LICENSE file.
22561
22562 // WARNING: Do not edit - generated code.
22563
22564 typedef bool MetadataCallback(Metadata metadata);
22565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22566 // for details. All rights reserved. Use of this source code is governed by a
22567 // BSD-style license that can be found in the LICENSE file.
22568
22569 // WARNING: Do not edit - generated code.
22570
22571 interface MeterElement extends Element {
22572
22573 final FormElement form;
22574
22575 num high;
22576
22577 final NodeList labels;
22578
22579 num low;
22580
22581 num max;
22582
22583 num min;
22584
22585 num optimum;
22586
22587 num value;
22588 }
22589 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22590 // for details. All rights reserved. Use of this source code is governed by a
22591 // BSD-style license that can be found in the LICENSE file.
22592
22593 // WARNING: Do not edit - generated code.
22594
22595 interface ModElement extends Element {
22596
22597 String cite;
22598
22599 String dateTime;
22600 }
22601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22602 // for details. All rights reserved. Use of this source code is governed by a
22603 // BSD-style license that can be found in the LICENSE file.
22604
22605 // WARNING: Do not edit - generated code.
22606
22607 interface MouseEvent extends UIEvent {
22608
22609 final bool altKey;
22610
22611 final int button;
22612
22613 final int clientX;
22614
22615 final int clientY;
22616
22617 final bool ctrlKey;
22618
22619 final Clipboard dataTransfer;
22620
22621 final Node fromElement;
22622
22623 final bool metaKey;
22624
22625 final int offsetX;
22626
22627 final int offsetY;
22628
22629 final EventTarget relatedTarget;
22630
22631 final int screenX;
22632
22633 final int screenY;
22634
22635 final bool shiftKey;
22636
22637 final Node toElement;
22638
22639 final int x;
22640
22641 final int y;
22642
22643 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);
22644 }
22645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22646 // for details. All rights reserved. Use of this source code is governed by a
22647 // BSD-style license that can be found in the LICENSE file.
22648
22649 // WARNING: Do not edit - generated code.
22650
22651 interface MutationEvent extends Event {
22652
22653 static final int ADDITION = 2;
22654
22655 static final int MODIFICATION = 1;
22656
22657 static final int REMOVAL = 3;
22658
22659 final int attrChange;
22660
22661 final String attrName;
22662
22663 final String newValue;
22664
22665 final String prevValue;
22666
22667 final Node relatedNode;
22668
22669 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela tedNode, String prevValue, String newValue, String attrName, int attrChange);
22670 }
22671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22672 // for details. All rights reserved. Use of this source code is governed by a
22673 // BSD-style license that can be found in the LICENSE file.
22674
22675 // WARNING: Do not edit - generated code.
22676
22677 interface NamedNodeMap extends List<Node> {
22678
22679 final int length;
22680
22681 Node getNamedItem(String name);
22682
22683 Node getNamedItemNS(String namespaceURI, String localName);
22684
22685 Node item(int index);
22686
22687 Node removeNamedItem(String name);
22688
22689 Node removeNamedItemNS(String namespaceURI, String localName);
22690
22691 Node setNamedItem(Node node);
22692
22693 Node setNamedItemNS(Node node);
22694 }
22695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22696 // for details. All rights reserved. Use of this source code is governed by a
22697 // BSD-style license that can be found in the LICENSE file.
22698
22699 // WARNING: Do not edit - generated code.
22700
22701 interface Navigator {
22702
22703 final String appCodeName;
22704
22705 final String appName;
22706
22707 final String appVersion;
22708
22709 final bool cookieEnabled;
22710
22711 final Geolocation geolocation;
22712
22713 final String language;
22714
22715 final DOMMimeTypeArray mimeTypes;
22716
22717 final bool onLine;
22718
22719 final String platform;
22720
22721 final DOMPluginArray plugins;
22722
22723 final String product;
22724
22725 final String productSub;
22726
22727 final String userAgent;
22728
22729 final String vendor;
22730
22731 final String vendorSub;
22732
22733 void getStorageUpdates();
22734
22735 bool javaEnabled();
22736
22737 void registerProtocolHandler(String scheme, String url, String title);
22738 }
22739 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22740 // for details. All rights reserved. Use of this source code is governed by a
22741 // BSD-style license that can be found in the LICENSE file.
22742
22743 // WARNING: Do not edit - generated code.
22744
22745 interface Node extends EventTarget {
22746 NodeList get nodes();
22747
22748 // TODO: The type of value should be Collection<Node>. See http://b/5392897
22749 void set nodes(value);
22750
22751 Node get nextNode();
22752
22753 Document get document();
22754
22755 Node get parent();
22756
22757 Node get previousNode();
22758
22759 String get text();
22760
22761 void set text(String value);
22762
22763 Node replaceWith(Node otherNode);
22764
22765 Node remove();
22766
22767
22768 static final int ATTRIBUTE_NODE = 2;
22769
22770 static final int CDATA_SECTION_NODE = 4;
22771
22772 static final int COMMENT_NODE = 8;
22773
22774 static final int DOCUMENT_FRAGMENT_NODE = 11;
22775
22776 static final int DOCUMENT_NODE = 9;
22777
22778 static final int DOCUMENT_POSITION_CONTAINED_BY = 0x10;
22779
22780 static final int DOCUMENT_POSITION_CONTAINS = 0x08;
22781
22782 static final int DOCUMENT_POSITION_DISCONNECTED = 0x01;
22783
22784 static final int DOCUMENT_POSITION_FOLLOWING = 0x04;
22785
22786 static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
22787
22788 static final int DOCUMENT_POSITION_PRECEDING = 0x02;
22789
22790 static final int DOCUMENT_TYPE_NODE = 10;
22791
22792 static final int ELEMENT_NODE = 1;
22793
22794 static final int ENTITY_NODE = 6;
22795
22796 static final int ENTITY_REFERENCE_NODE = 5;
22797
22798 static final int NOTATION_NODE = 12;
22799
22800 static final int PROCESSING_INSTRUCTION_NODE = 7;
22801
22802 static final int TEXT_NODE = 3;
22803
22804 final Node nextSibling;
22805
22806 final Document ownerDocument;
22807
22808 final Node parentNode;
22809
22810 final Node previousSibling;
22811
22812 String textContent;
22813
22814 Node cloneNode(bool deep);
22815
22816 bool contains(Node other);
22817
22818 bool hasChildNodes();
22819
22820 Node insertBefore(Node newChild, Node refChild);
22821
22822 }
22823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22824 // for details. All rights reserved. Use of this source code is governed by a
22825 // BSD-style license that can be found in the LICENSE file.
22826
22827 // WARNING: Do not edit - generated code.
22828
22829 interface NodeFilter {
22830
22831 static final int FILTER_ACCEPT = 1;
22832
22833 static final int FILTER_REJECT = 2;
22834
22835 static final int FILTER_SKIP = 3;
22836
22837 static final int SHOW_ALL = 0xFFFFFFFF;
22838
22839 static final int SHOW_ATTRIBUTE = 0x00000002;
22840
22841 static final int SHOW_CDATA_SECTION = 0x00000008;
22842
22843 static final int SHOW_COMMENT = 0x00000080;
22844
22845 static final int SHOW_DOCUMENT = 0x00000100;
22846
22847 static final int SHOW_DOCUMENT_FRAGMENT = 0x00000400;
22848
22849 static final int SHOW_DOCUMENT_TYPE = 0x00000200;
22850
22851 static final int SHOW_ELEMENT = 0x00000001;
22852
22853 static final int SHOW_ENTITY = 0x00000020;
22854
22855 static final int SHOW_ENTITY_REFERENCE = 0x00000010;
22856
22857 static final int SHOW_NOTATION = 0x00000800;
22858
22859 static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040;
22860
22861 static final int SHOW_TEXT = 0x00000004;
22862
22863 int acceptNode(Node n);
22864 }
22865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22866 // for details. All rights reserved. Use of this source code is governed by a
22867 // BSD-style license that can be found in the LICENSE file.
22868
22869 // WARNING: Do not edit - generated code.
22870
22871 interface NodeIterator {
22872
22873 final bool expandEntityReferences;
22874
22875 final NodeFilter filter;
22876
22877 final bool pointerBeforeReferenceNode;
22878
22879 final Node referenceNode;
22880
22881 final Node root;
22882
22883 final int whatToShow;
22884
22885 void detach();
22886
22887 Node nextNode();
22888
22889 Node previousNode();
22890 }
22891 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
22892 // for details. All rights reserved. Use of this source code is governed by a
22893 // BSD-style license that can be found in the LICENSE file.
22894
22895 // WARNING: Do not edit - generated code.
22896
22897 interface NodeList extends List<Node> {
22898
22899 NodeList filter(bool f(Node element));
22900
22901 NodeList getRange(int start, int length);
22902
22903 Node get first();
22904
22905
22906 final int length;
22907
22908 }
22909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22910 // for details. All rights reserved. Use of this source code is governed by a
22911 // BSD-style license that can be found in the LICENSE file.
22912
22913 // WARNING: Do not edit - generated code.
22914
22915 interface NodeSelector {
22916
22917 Element querySelector(String selectors);
22918
22919 NodeList querySelectorAll(String selectors);
22920 }
22921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22922 // for details. All rights reserved. Use of this source code is governed by a
22923 // BSD-style license that can be found in the LICENSE file.
22924
22925 // WARNING: Do not edit - generated code.
22926
22927 interface Notation extends Node {
22928
22929 final String publicId;
22930
22931 final String systemId;
22932 }
22933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22934 // for details. All rights reserved. Use of this source code is governed by a
22935 // BSD-style license that can be found in the LICENSE file.
22936
22937 // WARNING: Do not edit - generated code.
22938
22939 interface Notification extends EventTarget {
22940
22941 String dir;
22942
22943 String replaceId;
22944
22945 NotificationEvents get on();
22946
22947 void cancel();
22948
22949 void show();
22950 }
22951
22952 interface NotificationEvents extends Events {
22953
22954 EventListenerList get click();
22955
22956 EventListenerList get close();
22957
22958 EventListenerList get display();
22959
22960 EventListenerList get error();
22961
22962 EventListenerList get show();
22963 }
22964 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22965 // for details. All rights reserved. Use of this source code is governed by a
22966 // BSD-style license that can be found in the LICENSE file.
22967
22968 // WARNING: Do not edit - generated code.
22969
22970 interface NotificationCenter {
22971
22972 int checkPermission();
22973
22974 Notification createHTMLNotification(String url);
22975
22976 Notification createNotification(String iconUrl, String title, String body);
22977
22978 void requestPermission(VoidCallback callback);
22979 }
22980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22981 // for details. All rights reserved. Use of this source code is governed by a
22982 // BSD-style license that can be found in the LICENSE file.
22983
22984 // WARNING: Do not edit - generated code.
22985
22986 interface OESStandardDerivatives {
22987
22988 static final int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
22989 }
22990 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22991 // for details. All rights reserved. Use of this source code is governed by a
22992 // BSD-style license that can be found in the LICENSE file.
22993
22994 // WARNING: Do not edit - generated code.
22995
22996 interface OESTextureFloat {
22997 }
22998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
22999 // for details. All rights reserved. Use of this source code is governed by a
23000 // BSD-style license that can be found in the LICENSE file.
23001
23002 // WARNING: Do not edit - generated code.
23003
23004 interface OESVertexArrayObject {
23005
23006 static final int VERTEX_ARRAY_BINDING_OES = 0x85B5;
23007
23008 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject);
23009
23010 WebGLVertexArrayObjectOES createVertexArrayOES();
23011
23012 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject);
23013
23014 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject);
23015 }
23016 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23017 // for details. All rights reserved. Use of this source code is governed by a
23018 // BSD-style license that can be found in the LICENSE file.
23019
23020 // WARNING: Do not edit - generated code.
23021
23022 interface OListElement extends Element {
23023
23024 bool compact;
23025
23026 bool reversed;
23027
23028 int start;
23029
23030 String type;
23031 }
23032 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23033 // for details. All rights reserved. Use of this source code is governed by a
23034 // BSD-style license that can be found in the LICENSE file.
23035
23036 // WARNING: Do not edit - generated code.
23037
23038 interface ObjectElement extends Element {
23039
23040 String align;
23041
23042 String archive;
23043
23044 String border;
23045
23046 String code;
23047
23048 String codeBase;
23049
23050 String codeType;
23051
23052 final Document contentDocument;
23053
23054 String data;
23055
23056 bool declare;
23057
23058 final FormElement form;
23059
23060 String height;
23061
23062 int hspace;
23063
23064 String name;
23065
23066 String standby;
23067
23068 String type;
23069
23070 String useMap;
23071
23072 final String validationMessage;
23073
23074 final ValidityState validity;
23075
23076 int vspace;
23077
23078 String width;
23079
23080 final bool willValidate;
23081
23082 bool checkValidity();
23083
23084 void setCustomValidity(String error);
23085 }
23086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23087 // for details. All rights reserved. Use of this source code is governed by a
23088 // BSD-style license that can be found in the LICENSE file.
23089
23090 // WARNING: Do not edit - generated code.
23091
23092 interface OfflineAudioCompletionEvent extends Event {
23093
23094 final AudioBuffer renderedBuffer;
23095 }
23096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23097 // for details. All rights reserved. Use of this source code is governed by a
23098 // BSD-style license that can be found in the LICENSE file.
23099
23100 // WARNING: Do not edit - generated code.
23101
23102 interface OperationNotAllowedException {
23103
23104 static final int NOT_ALLOWED_ERR = 1;
23105
23106 final int code;
23107
23108 final String message;
23109
23110 final String name;
23111
23112 String toString();
23113 }
23114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23115 // for details. All rights reserved. Use of this source code is governed by a
23116 // BSD-style license that can be found in the LICENSE file.
23117
23118 // WARNING: Do not edit - generated code.
23119
23120 interface OptGroupElement extends Element {
23121
23122 bool disabled;
23123
23124 String label;
23125 }
23126 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23127 // for details. All rights reserved. Use of this source code is governed by a
23128 // BSD-style license that can be found in the LICENSE file.
23129
23130 // WARNING: Do not edit - generated code.
23131
23132 interface OptionElement extends Element {
23133
23134 bool defaultSelected;
23135
23136 bool disabled;
23137
23138 final FormElement form;
23139
23140 final int index;
23141
23142 String label;
23143
23144 bool selected;
23145
23146 String text;
23147
23148 String value;
23149 }
23150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23151 // for details. All rights reserved. Use of this source code is governed by a
23152 // BSD-style license that can be found in the LICENSE file.
23153
23154 // WARNING: Do not edit - generated code.
23155
23156 interface OutputElement extends Element {
23157
23158 String defaultValue;
23159
23160 final FormElement form;
23161
23162 DOMSettableTokenList htmlFor;
23163
23164 final NodeList labels;
23165
23166 String name;
23167
23168 final String type;
23169
23170 final String validationMessage;
23171
23172 final ValidityState validity;
23173
23174 String value;
23175
23176 final bool willValidate;
23177
23178 bool checkValidity();
23179
23180 void setCustomValidity(String error);
23181 }
23182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23183 // for details. All rights reserved. Use of this source code is governed by a
23184 // BSD-style license that can be found in the LICENSE file.
23185
23186 // WARNING: Do not edit - generated code.
23187
23188 interface OverflowEvent extends Event {
23189
23190 static final int BOTH = 2;
23191
23192 static final int HORIZONTAL = 0;
23193
23194 static final int VERTICAL = 1;
23195
23196 final bool horizontalOverflow;
23197
23198 final int orient;
23199
23200 final bool verticalOverflow;
23201 }
23202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23203 // for details. All rights reserved. Use of this source code is governed by a
23204 // BSD-style license that can be found in the LICENSE file.
23205
23206 // WARNING: Do not edit - generated code.
23207
23208 interface PageTransitionEvent extends Event {
23209
23210 final bool persisted;
23211 }
23212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23213 // for details. All rights reserved. Use of this source code is governed by a
23214 // BSD-style license that can be found in the LICENSE file.
23215
23216 // WARNING: Do not edit - generated code.
23217
23218 interface ParagraphElement extends Element {
23219
23220 String align;
23221 }
23222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23223 // for details. All rights reserved. Use of this source code is governed by a
23224 // BSD-style license that can be found in the LICENSE file.
23225
23226 // WARNING: Do not edit - generated code.
23227
23228 interface ParamElement extends Element {
23229
23230 String name;
23231
23232 String type;
23233
23234 String value;
23235
23236 String valueType;
23237 }
23238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23239 // for details. All rights reserved. Use of this source code is governed by a
23240 // BSD-style license that can be found in the LICENSE file.
23241
23242 // WARNING: Do not edit - generated code.
23243
23244 interface Performance {
23245
23246 final MemoryInfo memory;
23247
23248 final PerformanceNavigation navigation;
23249
23250 final PerformanceTiming timing;
23251 }
23252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23253 // for details. All rights reserved. Use of this source code is governed by a
23254 // BSD-style license that can be found in the LICENSE file.
23255
23256 // WARNING: Do not edit - generated code.
23257
23258 interface PerformanceNavigation {
23259
23260 static final int TYPE_BACK_FORWARD = 2;
23261
23262 static final int TYPE_NAVIGATE = 0;
23263
23264 static final int TYPE_RELOAD = 1;
23265
23266 static final int TYPE_RESERVED = 255;
23267
23268 final int redirectCount;
23269
23270 final int type;
23271 }
23272 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23273 // for details. All rights reserved. Use of this source code is governed by a
23274 // BSD-style license that can be found in the LICENSE file.
23275
23276 // WARNING: Do not edit - generated code.
23277
23278 interface PerformanceTiming {
23279
23280 final int connectEnd;
23281
23282 final int connectStart;
23283
23284 final int domComplete;
23285
23286 final int domContentLoadedEventEnd;
23287
23288 final int domContentLoadedEventStart;
23289
23290 final int domInteractive;
23291
23292 final int domLoading;
23293
23294 final int domainLookupEnd;
23295
23296 final int domainLookupStart;
23297
23298 final int fetchStart;
23299
23300 final int loadEventEnd;
23301
23302 final int loadEventStart;
23303
23304 final int navigationStart;
23305
23306 final int redirectEnd;
23307
23308 final int redirectStart;
23309
23310 final int requestStart;
23311
23312 final int responseEnd;
23313
23314 final int responseStart;
23315
23316 final int secureConnectionStart;
23317
23318 final int unloadEventEnd;
23319
23320 final int unloadEventStart;
23321 }
23322 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23323 // for details. All rights reserved. Use of this source code is governed by a
23324 // BSD-style license that can be found in the LICENSE file.
23325
23326 // WARNING: Do not edit - generated code.
23327
23328 interface Point default _PointFactoryProvider {
23329
23330 Point(num x, num y);
23331
23332 num x;
23333
23334 num y;
23335 }
23336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23337 // for details. All rights reserved. Use of this source code is governed by a
23338 // BSD-style license that can be found in the LICENSE file.
23339
23340 // WARNING: Do not edit - generated code.
23341
23342 interface PopStateEvent extends Event {
23343
23344 final Object state;
23345 }
23346 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23347 // for details. All rights reserved. Use of this source code is governed by a
23348 // BSD-style license that can be found in the LICENSE file.
23349
23350 // WARNING: Do not edit - generated code.
23351
23352 typedef bool PositionCallback(Geoposition position);
23353 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23354 // for details. All rights reserved. Use of this source code is governed by a
23355 // BSD-style license that can be found in the LICENSE file.
23356
23357 // WARNING: Do not edit - generated code.
23358
23359 interface PositionError {
23360
23361 static final int PERMISSION_DENIED = 1;
23362
23363 static final int POSITION_UNAVAILABLE = 2;
23364
23365 static final int TIMEOUT = 3;
23366
23367 final int code;
23368
23369 final String message;
23370 }
23371 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23372 // for details. All rights reserved. Use of this source code is governed by a
23373 // BSD-style license that can be found in the LICENSE file.
23374
23375 // WARNING: Do not edit - generated code.
23376
23377 typedef bool PositionErrorCallback(PositionError error);
23378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23379 // for details. All rights reserved. Use of this source code is governed by a
23380 // BSD-style license that can be found in the LICENSE file.
23381
23382 // WARNING: Do not edit - generated code.
23383
23384 interface PreElement extends Element {
23385
23386 int width;
23387
23388 bool wrap;
23389 }
23390 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23391 // for details. All rights reserved. Use of this source code is governed by a
23392 // BSD-style license that can be found in the LICENSE file.
23393
23394 // WARNING: Do not edit - generated code.
23395
23396 interface ProcessingInstruction extends Node {
23397
23398 String data;
23399
23400 final StyleSheet sheet;
23401
23402 final String target;
23403 }
23404 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23405 // for details. All rights reserved. Use of this source code is governed by a
23406 // BSD-style license that can be found in the LICENSE file.
23407
23408 // WARNING: Do not edit - generated code.
23409
23410 interface ProgressElement extends Element {
23411
23412 final FormElement form;
23413
23414 final NodeList labels;
23415
23416 num max;
23417
23418 final num position;
23419
23420 num value;
23421 }
23422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23423 // for details. All rights reserved. Use of this source code is governed by a
23424 // BSD-style license that can be found in the LICENSE file.
23425
23426 // WARNING: Do not edit - generated code.
23427
23428 interface ProgressEvent extends Event {
23429
23430 final bool lengthComputable;
23431
23432 final int loaded;
23433
23434 final int total;
23435 }
23436 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23437 // for details. All rights reserved. Use of this source code is governed by a
23438 // BSD-style license that can be found in the LICENSE file.
23439
23440 // WARNING: Do not edit - generated code.
23441
23442 interface QuoteElement extends Element {
23443
23444 String cite;
23445 }
23446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23447 // for details. All rights reserved. Use of this source code is governed by a
23448 // BSD-style license that can be found in the LICENSE file.
23449
23450 // WARNING: Do not edit - generated code.
23451
23452 interface RGBColor {
23453
23454 final CSSPrimitiveValue blue;
23455
23456 final CSSPrimitiveValue green;
23457
23458 final CSSPrimitiveValue red;
23459 }
23460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23461 // for details. All rights reserved. Use of this source code is governed by a
23462 // BSD-style license that can be found in the LICENSE file.
23463
23464 // WARNING: Do not edit - generated code.
23465
23466 interface Range {
23467
23468 static final int END_TO_END = 2;
23469
23470 static final int END_TO_START = 3;
23471
23472 static final int NODE_AFTER = 1;
23473
23474 static final int NODE_BEFORE = 0;
23475
23476 static final int NODE_BEFORE_AND_AFTER = 2;
23477
23478 static final int NODE_INSIDE = 3;
23479
23480 static final int START_TO_END = 1;
23481
23482 static final int START_TO_START = 0;
23483
23484 final bool collapsed;
23485
23486 final Node commonAncestorContainer;
23487
23488 final Node endContainer;
23489
23490 final int endOffset;
23491
23492 final Node startContainer;
23493
23494 final int startOffset;
23495
23496 DocumentFragment cloneContents();
23497
23498 Range cloneRange();
23499
23500 void collapse(bool toStart);
23501
23502 int compareNode(Node refNode);
23503
23504 int comparePoint(Node refNode, int offset);
23505
23506 DocumentFragment createContextualFragment(String html);
23507
23508 void deleteContents();
23509
23510 void detach();
23511
23512 void expand(String unit);
23513
23514 DocumentFragment extractContents();
23515
23516 ClientRect getBoundingClientRect();
23517
23518 ClientRectList getClientRects();
23519
23520 void insertNode(Node newNode);
23521
23522 bool intersectsNode(Node refNode);
23523
23524 bool isPointInRange(Node refNode, int offset);
23525
23526 void selectNode(Node refNode);
23527
23528 void selectNodeContents(Node refNode);
23529
23530 void setEnd(Node refNode, int offset);
23531
23532 void setEndAfter(Node refNode);
23533
23534 void setEndBefore(Node refNode);
23535
23536 void setStart(Node refNode, int offset);
23537
23538 void setStartAfter(Node refNode);
23539
23540 void setStartBefore(Node refNode);
23541
23542 void surroundContents(Node newParent);
23543
23544 String toString();
23545 }
23546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23547 // for details. All rights reserved. Use of this source code is governed by a
23548 // BSD-style license that can be found in the LICENSE file.
23549
23550 // WARNING: Do not edit - generated code.
23551
23552 interface RangeException {
23553
23554 static final int BAD_BOUNDARYPOINTS_ERR = 1;
23555
23556 static final int INVALID_NODE_TYPE_ERR = 2;
23557
23558 final int code;
23559
23560 final String message;
23561
23562 final String name;
23563
23564 String toString();
23565 }
23566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23567 // for details. All rights reserved. Use of this source code is governed by a
23568 // BSD-style license that can be found in the LICENSE file.
23569
23570 // WARNING: Do not edit - generated code.
23571
23572 interface RealtimeAnalyserNode extends AudioNode {
23573
23574 int fftSize;
23575
23576 final int frequencyBinCount;
23577
23578 num maxDecibels;
23579
23580 num minDecibels;
23581
23582 num smoothingTimeConstant;
23583
23584 void getByteFrequencyData(Uint8Array array);
23585
23586 void getByteTimeDomainData(Uint8Array array);
23587
23588 void getFloatFrequencyData(Float32Array array);
23589 }
23590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23591 // for details. All rights reserved. Use of this source code is governed by a
23592 // BSD-style license that can be found in the LICENSE file.
23593
23594 // WARNING: Do not edit - generated code.
23595
23596 interface Rect {
23597
23598 final CSSPrimitiveValue bottom;
23599
23600 final CSSPrimitiveValue left;
23601
23602 final CSSPrimitiveValue right;
23603
23604 final CSSPrimitiveValue top;
23605 }
23606 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23607 // for details. All rights reserved. Use of this source code is governed by a
23608 // BSD-style license that can be found in the LICENSE file.
23609
23610 // WARNING: Do not edit - generated code.
23611
23612 typedef bool RequestAnimationFrameCallback(int time);
23613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23614 // for details. All rights reserved. Use of this source code is governed by a
23615 // BSD-style license that can be found in the LICENSE file.
23616
23617 // WARNING: Do not edit - generated code.
23618
23619 interface SQLError {
23620
23621 static final int CONSTRAINT_ERR = 6;
23622
23623 static final int DATABASE_ERR = 1;
23624
23625 static final int QUOTA_ERR = 4;
23626
23627 static final int SYNTAX_ERR = 5;
23628
23629 static final int TIMEOUT_ERR = 7;
23630
23631 static final int TOO_LARGE_ERR = 3;
23632
23633 static final int UNKNOWN_ERR = 0;
23634
23635 static final int VERSION_ERR = 2;
23636
23637 final int code;
23638
23639 final String message;
23640 }
23641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23642 // for details. All rights reserved. Use of this source code is governed by a
23643 // BSD-style license that can be found in the LICENSE file.
23644
23645 // WARNING: Do not edit - generated code.
23646
23647 interface SQLException {
23648
23649 static final int CONSTRAINT_ERR = 6;
23650
23651 static final int DATABASE_ERR = 1;
23652
23653 static final int QUOTA_ERR = 4;
23654
23655 static final int SYNTAX_ERR = 5;
23656
23657 static final int TIMEOUT_ERR = 7;
23658
23659 static final int TOO_LARGE_ERR = 3;
23660
23661 static final int UNKNOWN_ERR = 0;
23662
23663 static final int VERSION_ERR = 2;
23664
23665 final int code;
23666
23667 final String message;
23668 }
23669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23670 // for details. All rights reserved. Use of this source code is governed by a
23671 // BSD-style license that can be found in the LICENSE file.
23672
23673 // WARNING: Do not edit - generated code.
23674
23675 interface SQLResultSet {
23676
23677 final int insertId;
23678
23679 final SQLResultSetRowList rows;
23680
23681 final int rowsAffected;
23682 }
23683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23684 // for details. All rights reserved. Use of this source code is governed by a
23685 // BSD-style license that can be found in the LICENSE file.
23686
23687 // WARNING: Do not edit - generated code.
23688
23689 interface SQLResultSetRowList {
23690
23691 final int length;
23692
23693 Object item(int index);
23694 }
23695 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23696 // for details. All rights reserved. Use of this source code is governed by a
23697 // BSD-style license that can be found in the LICENSE file.
23698
23699 // WARNING: Do not edit - generated code.
23700
23701 typedef bool SQLStatementCallback(SQLTransaction transaction, SQLResultSet resul tSet);
23702 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23703 // for details. All rights reserved. Use of this source code is governed by a
23704 // BSD-style license that can be found in the LICENSE file.
23705
23706 // WARNING: Do not edit - generated code.
23707
23708 typedef bool SQLStatementErrorCallback(SQLTransaction transaction, SQLError erro r);
23709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23710 // for details. All rights reserved. Use of this source code is governed by a
23711 // BSD-style license that can be found in the LICENSE file.
23712
23713 // WARNING: Do not edit - generated code.
23714
23715 interface SQLTransaction {
23716 }
23717 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23718 // for details. All rights reserved. Use of this source code is governed by a
23719 // BSD-style license that can be found in the LICENSE file.
23720
23721 // WARNING: Do not edit - generated code.
23722
23723 typedef bool SQLTransactionCallback(SQLTransaction transaction);
23724 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23725 // for details. All rights reserved. Use of this source code is governed by a
23726 // BSD-style license that can be found in the LICENSE file.
23727
23728 // WARNING: Do not edit - generated code.
23729
23730 typedef bool SQLTransactionErrorCallback(SQLError error);
23731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23732 // for details. All rights reserved. Use of this source code is governed by a
23733 // BSD-style license that can be found in the LICENSE file.
23734
23735 // WARNING: Do not edit - generated code.
23736
23737 interface SQLTransactionSync {
23738 }
23739 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
23740 // for details. All rights reserved. Use of this source code is governed by a
23741 // BSD-style license that can be found in the LICENSE file.
23742
23743 // WARNING: Do not edit - generated code.
23744
23745 typedef bool SQLTransactionSyncCallback(SQLTransactionSync transaction);
23746 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23747 // for details. All rights reserved. Use of this source code is governed by a
23748 // BSD-style license that can be found in the LICENSE file.
23749
23750 // WARNING: Do not edit - generated code.
23751
23752 interface SVGAElement extends SVGElement, SVGURIReference, SVGTests, SVGLangSpac e, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
23753
23754 final SVGAnimatedString target;
23755 }
23756 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23757 // for details. All rights reserved. Use of this source code is governed by a
23758 // BSD-style license that can be found in the LICENSE file.
23759
23760 // WARNING: Do not edit - generated code.
23761
23762 interface SVGAltGlyphDefElement extends SVGElement {
23763 }
23764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23765 // for details. All rights reserved. Use of this source code is governed by a
23766 // BSD-style license that can be found in the LICENSE file.
23767
23768 // WARNING: Do not edit - generated code.
23769
23770 interface SVGAltGlyphElement extends SVGTextPositioningElement, SVGURIReference {
23771
23772 String format;
23773
23774 String glyphRef;
23775 }
23776 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23777 // for details. All rights reserved. Use of this source code is governed by a
23778 // BSD-style license that can be found in the LICENSE file.
23779
23780 // WARNING: Do not edit - generated code.
23781
23782 interface SVGAltGlyphItemElement extends SVGElement {
23783 }
23784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23785 // for details. All rights reserved. Use of this source code is governed by a
23786 // BSD-style license that can be found in the LICENSE file.
23787
23788 // WARNING: Do not edit - generated code.
23789
23790 interface SVGAngle {
23791
23792 static final int SVG_ANGLETYPE_DEG = 2;
23793
23794 static final int SVG_ANGLETYPE_GRAD = 4;
23795
23796 static final int SVG_ANGLETYPE_RAD = 3;
23797
23798 static final int SVG_ANGLETYPE_UNKNOWN = 0;
23799
23800 static final int SVG_ANGLETYPE_UNSPECIFIED = 1;
23801
23802 final int unitType;
23803
23804 num value;
23805
23806 String valueAsString;
23807
23808 num valueInSpecifiedUnits;
23809
23810 void convertToSpecifiedUnits(int unitType);
23811
23812 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits);
23813 }
23814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23815 // for details. All rights reserved. Use of this source code is governed by a
23816 // BSD-style license that can be found in the LICENSE file.
23817
23818 // WARNING: Do not edit - generated code.
23819
23820 interface SVGAnimateColorElement extends SVGAnimationElement {
23821 }
23822 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23823 // for details. All rights reserved. Use of this source code is governed by a
23824 // BSD-style license that can be found in the LICENSE file.
23825
23826 // WARNING: Do not edit - generated code.
23827
23828 interface SVGAnimateElement extends SVGAnimationElement {
23829 }
23830 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23831 // for details. All rights reserved. Use of this source code is governed by a
23832 // BSD-style license that can be found in the LICENSE file.
23833
23834 // WARNING: Do not edit - generated code.
23835
23836 interface SVGAnimateMotionElement extends SVGAnimationElement {
23837 }
23838 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23839 // for details. All rights reserved. Use of this source code is governed by a
23840 // BSD-style license that can be found in the LICENSE file.
23841
23842 // WARNING: Do not edit - generated code.
23843
23844 interface SVGAnimateTransformElement extends SVGAnimationElement {
23845 }
23846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23847 // for details. All rights reserved. Use of this source code is governed by a
23848 // BSD-style license that can be found in the LICENSE file.
23849
23850 // WARNING: Do not edit - generated code.
23851
23852 interface SVGAnimatedAngle {
23853
23854 final SVGAngle animVal;
23855
23856 final SVGAngle baseVal;
23857 }
23858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23859 // for details. All rights reserved. Use of this source code is governed by a
23860 // BSD-style license that can be found in the LICENSE file.
23861
23862 // WARNING: Do not edit - generated code.
23863
23864 interface SVGAnimatedBoolean {
23865
23866 final bool animVal;
23867
23868 bool baseVal;
23869 }
23870 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23871 // for details. All rights reserved. Use of this source code is governed by a
23872 // BSD-style license that can be found in the LICENSE file.
23873
23874 // WARNING: Do not edit - generated code.
23875
23876 interface SVGAnimatedEnumeration {
23877
23878 final int animVal;
23879
23880 int baseVal;
23881 }
23882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23883 // for details. All rights reserved. Use of this source code is governed by a
23884 // BSD-style license that can be found in the LICENSE file.
23885
23886 // WARNING: Do not edit - generated code.
23887
23888 interface SVGAnimatedInteger {
23889
23890 final int animVal;
23891
23892 int baseVal;
23893 }
23894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23895 // for details. All rights reserved. Use of this source code is governed by a
23896 // BSD-style license that can be found in the LICENSE file.
23897
23898 // WARNING: Do not edit - generated code.
23899
23900 interface SVGAnimatedLength {
23901
23902 final SVGLength animVal;
23903
23904 final SVGLength baseVal;
23905 }
23906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23907 // for details. All rights reserved. Use of this source code is governed by a
23908 // BSD-style license that can be found in the LICENSE file.
23909
23910 // WARNING: Do not edit - generated code.
23911
23912 interface SVGAnimatedLengthList {
23913
23914 final SVGLengthList animVal;
23915
23916 final SVGLengthList baseVal;
23917 }
23918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23919 // for details. All rights reserved. Use of this source code is governed by a
23920 // BSD-style license that can be found in the LICENSE file.
23921
23922 // WARNING: Do not edit - generated code.
23923
23924 interface SVGAnimatedNumber {
23925
23926 final num animVal;
23927
23928 num baseVal;
23929 }
23930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23931 // for details. All rights reserved. Use of this source code is governed by a
23932 // BSD-style license that can be found in the LICENSE file.
23933
23934 // WARNING: Do not edit - generated code.
23935
23936 interface SVGAnimatedNumberList {
23937
23938 final SVGNumberList animVal;
23939
23940 final SVGNumberList baseVal;
23941 }
23942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23943 // for details. All rights reserved. Use of this source code is governed by a
23944 // BSD-style license that can be found in the LICENSE file.
23945
23946 // WARNING: Do not edit - generated code.
23947
23948 interface SVGAnimatedPreserveAspectRatio {
23949
23950 final SVGPreserveAspectRatio animVal;
23951
23952 final SVGPreserveAspectRatio baseVal;
23953 }
23954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23955 // for details. All rights reserved. Use of this source code is governed by a
23956 // BSD-style license that can be found in the LICENSE file.
23957
23958 // WARNING: Do not edit - generated code.
23959
23960 interface SVGAnimatedRect {
23961
23962 final SVGRect animVal;
23963
23964 final SVGRect baseVal;
23965 }
23966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23967 // for details. All rights reserved. Use of this source code is governed by a
23968 // BSD-style license that can be found in the LICENSE file.
23969
23970 // WARNING: Do not edit - generated code.
23971
23972 interface SVGAnimatedString {
23973
23974 final String animVal;
23975
23976 String baseVal;
23977 }
23978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23979 // for details. All rights reserved. Use of this source code is governed by a
23980 // BSD-style license that can be found in the LICENSE file.
23981
23982 // WARNING: Do not edit - generated code.
23983
23984 interface SVGAnimatedTransformList {
23985
23986 final SVGTransformList animVal;
23987
23988 final SVGTransformList baseVal;
23989 }
23990 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
23991 // for details. All rights reserved. Use of this source code is governed by a
23992 // BSD-style license that can be found in the LICENSE file.
23993
23994 // WARNING: Do not edit - generated code.
23995
23996 interface SVGAnimationElement extends SVGElement, SVGTests, SVGExternalResources Required, ElementTimeControl {
23997
23998 final SVGElement targetElement;
23999
24000 num getCurrentTime();
24001
24002 num getSimpleDuration();
24003
24004 num getStartTime();
24005 }
24006 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24007 // for details. All rights reserved. Use of this source code is governed by a
24008 // BSD-style license that can be found in the LICENSE file.
24009
24010 // WARNING: Do not edit - generated code.
24011
24012 interface SVGCircleElement extends SVGElement, SVGTests, SVGLangSpace, SVGExtern alResourcesRequired, SVGStylable, SVGTransformable {
24013
24014 final SVGAnimatedLength cx;
24015
24016 final SVGAnimatedLength cy;
24017
24018 final SVGAnimatedLength r;
24019 }
24020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24021 // for details. All rights reserved. Use of this source code is governed by a
24022 // BSD-style license that can be found in the LICENSE file.
24023
24024 // WARNING: Do not edit - generated code.
24025
24026 interface SVGClipPathElement extends SVGElement, SVGTests, SVGLangSpace, SVGExte rnalResourcesRequired, SVGStylable, SVGTransformable {
24027
24028 final SVGAnimatedEnumeration clipPathUnits;
24029 }
24030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24031 // for details. All rights reserved. Use of this source code is governed by a
24032 // BSD-style license that can be found in the LICENSE file.
24033
24034 // WARNING: Do not edit - generated code.
24035
24036 interface SVGColor extends CSSValue {
24037
24038 static final int SVG_COLORTYPE_CURRENTCOLOR = 3;
24039
24040 static final int SVG_COLORTYPE_RGBCOLOR = 1;
24041
24042 static final int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
24043
24044 static final int SVG_COLORTYPE_UNKNOWN = 0;
24045
24046 final int colorType;
24047
24048 final RGBColor rgbColor;
24049
24050 void setColor(int colorType, String rgbColor, String iccColor);
24051
24052 void setRGBColor(String rgbColor);
24053
24054 void setRGBColorICCColor(String rgbColor, String iccColor);
24055 }
24056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24057 // for details. All rights reserved. Use of this source code is governed by a
24058 // BSD-style license that can be found in the LICENSE file.
24059
24060 // WARNING: Do not edit - generated code.
24061
24062 interface SVGComponentTransferFunctionElement extends SVGElement {
24063
24064 static final int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3;
24065
24066 static final int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5;
24067
24068 static final int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1;
24069
24070 static final int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4;
24071
24072 static final int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2;
24073
24074 static final int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0;
24075
24076 final SVGAnimatedNumber amplitude;
24077
24078 final SVGAnimatedNumber exponent;
24079
24080 final SVGAnimatedNumber intercept;
24081
24082 final SVGAnimatedNumber offset;
24083
24084 final SVGAnimatedNumber slope;
24085
24086 final SVGAnimatedNumberList tableValues;
24087
24088 final SVGAnimatedEnumeration type;
24089 }
24090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24091 // for details. All rights reserved. Use of this source code is governed by a
24092 // BSD-style license that can be found in the LICENSE file.
24093
24094 // WARNING: Do not edit - generated code.
24095
24096 interface SVGCursorElement extends SVGElement, SVGURIReference, SVGTests, SVGExt ernalResourcesRequired {
24097
24098 final SVGAnimatedLength x;
24099
24100 final SVGAnimatedLength y;
24101 }
24102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24103 // for details. All rights reserved. Use of this source code is governed by a
24104 // BSD-style license that can be found in the LICENSE file.
24105
24106 // WARNING: Do not edit - generated code.
24107
24108 interface SVGDefsElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal ResourcesRequired, SVGStylable, SVGTransformable {
24109 }
24110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24111 // for details. All rights reserved. Use of this source code is governed by a
24112 // BSD-style license that can be found in the LICENSE file.
24113
24114 // WARNING: Do not edit - generated code.
24115
24116 interface SVGDescElement extends SVGElement, SVGLangSpace, SVGStylable {
24117 }
24118 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24119 // for details. All rights reserved. Use of this source code is governed by a
24120 // BSD-style license that can be found in the LICENSE file.
24121
24122 // WARNING: Do not edit - generated code.
24123
24124 interface SVGDocument extends Document {
24125
24126 final SVGSVGElement rootElement;
24127 }
24128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24129 // for details. All rights reserved. Use of this source code is governed by a
24130 // BSD-style license that can be found in the LICENSE file.
24131
24132 // WARNING: Do not edit - generated code.
24133
24134 interface SVGElement extends Element {
24135
24136 String id;
24137
24138 final SVGSVGElement ownerSVGElement;
24139
24140 final SVGElement viewportElement;
24141
24142 String xmlbase;
24143 }
24144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24145 // for details. All rights reserved. Use of this source code is governed by a
24146 // BSD-style license that can be found in the LICENSE file.
24147
24148 // WARNING: Do not edit - generated code.
24149
24150 interface SVGElementInstance extends EventTarget {
24151
24152 final SVGElementInstanceList childNodes;
24153
24154 final SVGElement correspondingElement;
24155
24156 final SVGUseElement correspondingUseElement;
24157
24158 final SVGElementInstance firstChild;
24159
24160 final SVGElementInstance lastChild;
24161
24162 final SVGElementInstance nextSibling;
24163
24164 final SVGElementInstance parentNode;
24165
24166 final SVGElementInstance previousSibling;
24167
24168 SVGElementInstanceEvents get on();
24169 }
24170
24171 interface SVGElementInstanceEvents extends Events {
24172
24173 EventListenerList get abort();
24174
24175 EventListenerList get beforeCopy();
24176
24177 EventListenerList get beforeCut();
24178
24179 EventListenerList get beforePaste();
24180
24181 EventListenerList get blur();
24182
24183 EventListenerList get change();
24184
24185 EventListenerList get click();
24186
24187 EventListenerList get contextMenu();
24188
24189 EventListenerList get copy();
24190
24191 EventListenerList get cut();
24192
24193 EventListenerList get doubleClick();
24194
24195 EventListenerList get drag();
24196
24197 EventListenerList get dragEnd();
24198
24199 EventListenerList get dragEnter();
24200
24201 EventListenerList get dragLeave();
24202
24203 EventListenerList get dragOver();
24204
24205 EventListenerList get dragStart();
24206
24207 EventListenerList get drop();
24208
24209 EventListenerList get error();
24210
24211 EventListenerList get focus();
24212
24213 EventListenerList get input();
24214
24215 EventListenerList get keyDown();
24216
24217 EventListenerList get keyPress();
24218
24219 EventListenerList get keyUp();
24220
24221 EventListenerList get load();
24222
24223 EventListenerList get mouseDown();
24224
24225 EventListenerList get mouseMove();
24226
24227 EventListenerList get mouseOut();
24228
24229 EventListenerList get mouseOver();
24230
24231 EventListenerList get mouseUp();
24232
24233 EventListenerList get mouseWheel();
24234
24235 EventListenerList get paste();
24236
24237 EventListenerList get reset();
24238
24239 EventListenerList get resize();
24240
24241 EventListenerList get scroll();
24242
24243 EventListenerList get search();
24244
24245 EventListenerList get select();
24246
24247 EventListenerList get selectStart();
24248
24249 EventListenerList get submit();
24250
24251 EventListenerList get unload();
24252 }
24253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24254 // for details. All rights reserved. Use of this source code is governed by a
24255 // BSD-style license that can be found in the LICENSE file.
24256
24257 // WARNING: Do not edit - generated code.
24258
24259 interface SVGElementInstanceList {
24260
24261 final int length;
24262
24263 SVGElementInstance item(int index);
24264 }
24265 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24266 // for details. All rights reserved. Use of this source code is governed by a
24267 // BSD-style license that can be found in the LICENSE file.
24268
24269 // WARNING: Do not edit - generated code.
24270
24271 interface SVGEllipseElement extends SVGElement, SVGTests, SVGLangSpace, SVGExter nalResourcesRequired, SVGStylable, SVGTransformable {
24272
24273 final SVGAnimatedLength cx;
24274
24275 final SVGAnimatedLength cy;
24276
24277 final SVGAnimatedLength rx;
24278
24279 final SVGAnimatedLength ry;
24280 }
24281 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24282 // for details. All rights reserved. Use of this source code is governed by a
24283 // BSD-style license that can be found in the LICENSE file.
24284
24285 // WARNING: Do not edit - generated code.
24286
24287 interface SVGException {
24288
24289 static final int SVG_INVALID_VALUE_ERR = 1;
24290
24291 static final int SVG_MATRIX_NOT_INVERTABLE = 2;
24292
24293 static final int SVG_WRONG_TYPE_ERR = 0;
24294
24295 final int code;
24296
24297 final String message;
24298
24299 final String name;
24300
24301 String toString();
24302 }
24303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24304 // for details. All rights reserved. Use of this source code is governed by a
24305 // BSD-style license that can be found in the LICENSE file.
24306
24307 // WARNING: Do not edit - generated code.
24308
24309 interface SVGExternalResourcesRequired {
24310
24311 final SVGAnimatedBoolean externalResourcesRequired;
24312 }
24313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24314 // for details. All rights reserved. Use of this source code is governed by a
24315 // BSD-style license that can be found in the LICENSE file.
24316
24317 // WARNING: Do not edit - generated code.
24318
24319 interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttrib utes {
24320
24321 static final int SVG_FEBLEND_MODE_DARKEN = 4;
24322
24323 static final int SVG_FEBLEND_MODE_LIGHTEN = 5;
24324
24325 static final int SVG_FEBLEND_MODE_MULTIPLY = 2;
24326
24327 static final int SVG_FEBLEND_MODE_NORMAL = 1;
24328
24329 static final int SVG_FEBLEND_MODE_SCREEN = 3;
24330
24331 static final int SVG_FEBLEND_MODE_UNKNOWN = 0;
24332
24333 final SVGAnimatedString in1;
24334
24335 final SVGAnimatedString in2;
24336
24337 final SVGAnimatedEnumeration mode;
24338 }
24339 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24340 // for details. All rights reserved. Use of this source code is governed by a
24341 // BSD-style license that can be found in the LICENSE file.
24342
24343 // WARNING: Do not edit - generated code.
24344
24345 interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandard Attributes {
24346
24347 static final int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3;
24348
24349 static final int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4;
24350
24351 static final int SVG_FECOLORMATRIX_TYPE_MATRIX = 1;
24352
24353 static final int SVG_FECOLORMATRIX_TYPE_SATURATE = 2;
24354
24355 static final int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0;
24356
24357 final SVGAnimatedString in1;
24358
24359 final SVGAnimatedEnumeration type;
24360
24361 final SVGAnimatedNumberList values;
24362 }
24363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24364 // for details. All rights reserved. Use of this source code is governed by a
24365 // BSD-style license that can be found in the LICENSE file.
24366
24367 // WARNING: Do not edit - generated code.
24368
24369 interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveSt andardAttributes {
24370
24371 final SVGAnimatedString in1;
24372 }
24373 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24374 // for details. All rights reserved. Use of this source code is governed by a
24375 // BSD-style license that can be found in the LICENSE file.
24376
24377 // WARNING: Do not edit - generated code.
24378
24379 interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAt tributes {
24380
24381 static final int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
24382
24383 static final int SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
24384
24385 static final int SVG_FECOMPOSITE_OPERATOR_IN = 2;
24386
24387 static final int SVG_FECOMPOSITE_OPERATOR_OUT = 3;
24388
24389 static final int SVG_FECOMPOSITE_OPERATOR_OVER = 1;
24390
24391 static final int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
24392
24393 static final int SVG_FECOMPOSITE_OPERATOR_XOR = 5;
24394
24395 final SVGAnimatedString in1;
24396
24397 final SVGAnimatedString in2;
24398
24399 final SVGAnimatedNumber k1;
24400
24401 final SVGAnimatedNumber k2;
24402
24403 final SVGAnimatedNumber k3;
24404
24405 final SVGAnimatedNumber k4;
24406
24407 final SVGAnimatedEnumeration operator;
24408 }
24409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24410 // for details. All rights reserved. Use of this source code is governed by a
24411 // BSD-style license that can be found in the LICENSE file.
24412
24413 // WARNING: Do not edit - generated code.
24414
24415 interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStand ardAttributes {
24416
24417 static final int SVG_EDGEMODE_DUPLICATE = 1;
24418
24419 static final int SVG_EDGEMODE_NONE = 3;
24420
24421 static final int SVG_EDGEMODE_UNKNOWN = 0;
24422
24423 static final int SVG_EDGEMODE_WRAP = 2;
24424
24425 final SVGAnimatedNumber bias;
24426
24427 final SVGAnimatedNumber divisor;
24428
24429 final SVGAnimatedEnumeration edgeMode;
24430
24431 final SVGAnimatedString in1;
24432
24433 final SVGAnimatedNumberList kernelMatrix;
24434
24435 final SVGAnimatedNumber kernelUnitLengthX;
24436
24437 final SVGAnimatedNumber kernelUnitLengthY;
24438
24439 final SVGAnimatedInteger orderX;
24440
24441 final SVGAnimatedInteger orderY;
24442
24443 final SVGAnimatedBoolean preserveAlpha;
24444
24445 final SVGAnimatedInteger targetX;
24446
24447 final SVGAnimatedInteger targetY;
24448 }
24449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24450 // for details. All rights reserved. Use of this source code is governed by a
24451 // BSD-style license that can be found in the LICENSE file.
24452
24453 // WARNING: Do not edit - generated code.
24454
24455 interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStan dardAttributes {
24456
24457 final SVGAnimatedNumber diffuseConstant;
24458
24459 final SVGAnimatedString in1;
24460
24461 final SVGAnimatedNumber kernelUnitLengthX;
24462
24463 final SVGAnimatedNumber kernelUnitLengthY;
24464
24465 final SVGAnimatedNumber surfaceScale;
24466 }
24467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24468 // for details. All rights reserved. Use of this source code is governed by a
24469 // BSD-style license that can be found in the LICENSE file.
24470
24471 // WARNING: Do not edit - generated code.
24472
24473 interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStan dardAttributes {
24474
24475 static final int SVG_CHANNEL_A = 4;
24476
24477 static final int SVG_CHANNEL_B = 3;
24478
24479 static final int SVG_CHANNEL_G = 2;
24480
24481 static final int SVG_CHANNEL_R = 1;
24482
24483 static final int SVG_CHANNEL_UNKNOWN = 0;
24484
24485 final SVGAnimatedString in1;
24486
24487 final SVGAnimatedString in2;
24488
24489 final SVGAnimatedNumber scale;
24490
24491 final SVGAnimatedEnumeration xChannelSelector;
24492
24493 final SVGAnimatedEnumeration yChannelSelector;
24494 }
24495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24496 // for details. All rights reserved. Use of this source code is governed by a
24497 // BSD-style license that can be found in the LICENSE file.
24498
24499 // WARNING: Do not edit - generated code.
24500
24501 interface SVGFEDistantLightElement extends SVGElement {
24502
24503 final SVGAnimatedNumber azimuth;
24504
24505 final SVGAnimatedNumber elevation;
24506 }
24507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24508 // for details. All rights reserved. Use of this source code is governed by a
24509 // BSD-style license that can be found in the LICENSE file.
24510
24511 // WARNING: Do not edit - generated code.
24512
24513 interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardA ttributes {
24514
24515 final SVGAnimatedNumber dx;
24516
24517 final SVGAnimatedNumber dy;
24518
24519 final SVGAnimatedString in1;
24520
24521 final SVGAnimatedNumber stdDeviationX;
24522
24523 final SVGAnimatedNumber stdDeviationY;
24524
24525 void setStdDeviation(num stdDeviationX, num stdDeviationY);
24526 }
24527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24528 // for details. All rights reserved. Use of this source code is governed by a
24529 // BSD-style license that can be found in the LICENSE file.
24530
24531 // WARNING: Do not edit - generated code.
24532
24533 interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttrib utes {
24534 }
24535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24536 // for details. All rights reserved. Use of this source code is governed by a
24537 // BSD-style license that can be found in the LICENSE file.
24538
24539 // WARNING: Do not edit - generated code.
24540
24541 interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
24542 }
24543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24544 // for details. All rights reserved. Use of this source code is governed by a
24545 // BSD-style license that can be found in the LICENSE file.
24546
24547 // WARNING: Do not edit - generated code.
24548
24549 interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
24550 }
24551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24552 // for details. All rights reserved. Use of this source code is governed by a
24553 // BSD-style license that can be found in the LICENSE file.
24554
24555 // WARNING: Do not edit - generated code.
24556
24557 interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
24558 }
24559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24560 // for details. All rights reserved. Use of this source code is governed by a
24561 // BSD-style license that can be found in the LICENSE file.
24562
24563 // WARNING: Do not edit - generated code.
24564
24565 interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
24566 }
24567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24568 // for details. All rights reserved. Use of this source code is governed by a
24569 // BSD-style license that can be found in the LICENSE file.
24570
24571 // WARNING: Do not edit - generated code.
24572
24573 interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandar dAttributes {
24574
24575 final SVGAnimatedString in1;
24576
24577 final SVGAnimatedNumber stdDeviationX;
24578
24579 final SVGAnimatedNumber stdDeviationY;
24580
24581 void setStdDeviation(num stdDeviationX, num stdDeviationY);
24582 }
24583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24584 // for details. All rights reserved. Use of this source code is governed by a
24585 // BSD-style license that can be found in the LICENSE file.
24586
24587 // WARNING: Do not edit - generated code.
24588
24589 interface SVGFEImageElement extends SVGElement, SVGURIReference, SVGLangSpace, S VGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes {
24590
24591 final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
24592 }
24593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24594 // for details. All rights reserved. Use of this source code is governed by a
24595 // BSD-style license that can be found in the LICENSE file.
24596
24597 // WARNING: Do not edit - generated code.
24598
24599 interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttrib utes {
24600 }
24601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24602 // for details. All rights reserved. Use of this source code is governed by a
24603 // BSD-style license that can be found in the LICENSE file.
24604
24605 // WARNING: Do not edit - generated code.
24606
24607 interface SVGFEMergeNodeElement extends SVGElement {
24608
24609 final SVGAnimatedString in1;
24610 }
24611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24612 // for details. All rights reserved. Use of this source code is governed by a
24613 // BSD-style license that can be found in the LICENSE file.
24614
24615 // WARNING: Do not edit - generated code.
24616
24617 interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardA ttributes {
24618
24619 static final int SVG_MORPHOLOGY_OPERATOR_DILATE = 2;
24620
24621 static final int SVG_MORPHOLOGY_OPERATOR_ERODE = 1;
24622
24623 static final int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0;
24624
24625 final SVGAnimatedString in1;
24626
24627 final SVGAnimatedEnumeration operator;
24628
24629 final SVGAnimatedNumber radiusX;
24630
24631 final SVGAnimatedNumber radiusY;
24632
24633 void setRadius(num radiusX, num radiusY);
24634 }
24635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24636 // for details. All rights reserved. Use of this source code is governed by a
24637 // BSD-style license that can be found in the LICENSE file.
24638
24639 // WARNING: Do not edit - generated code.
24640
24641 interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttri butes {
24642
24643 final SVGAnimatedNumber dx;
24644
24645 final SVGAnimatedNumber dy;
24646
24647 final SVGAnimatedString in1;
24648 }
24649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24650 // for details. All rights reserved. Use of this source code is governed by a
24651 // BSD-style license that can be found in the LICENSE file.
24652
24653 // WARNING: Do not edit - generated code.
24654
24655 interface SVGFEPointLightElement extends SVGElement {
24656
24657 final SVGAnimatedNumber x;
24658
24659 final SVGAnimatedNumber y;
24660
24661 final SVGAnimatedNumber z;
24662 }
24663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24664 // for details. All rights reserved. Use of this source code is governed by a
24665 // BSD-style license that can be found in the LICENSE file.
24666
24667 // WARNING: Do not edit - generated code.
24668
24669 interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveSta ndardAttributes {
24670
24671 final SVGAnimatedString in1;
24672
24673 final SVGAnimatedNumber specularConstant;
24674
24675 final SVGAnimatedNumber specularExponent;
24676
24677 final SVGAnimatedNumber surfaceScale;
24678 }
24679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24680 // for details. All rights reserved. Use of this source code is governed by a
24681 // BSD-style license that can be found in the LICENSE file.
24682
24683 // WARNING: Do not edit - generated code.
24684
24685 interface SVGFESpotLightElement extends SVGElement {
24686
24687 final SVGAnimatedNumber limitingConeAngle;
24688
24689 final SVGAnimatedNumber pointsAtX;
24690
24691 final SVGAnimatedNumber pointsAtY;
24692
24693 final SVGAnimatedNumber pointsAtZ;
24694
24695 final SVGAnimatedNumber specularExponent;
24696
24697 final SVGAnimatedNumber x;
24698
24699 final SVGAnimatedNumber y;
24700
24701 final SVGAnimatedNumber z;
24702 }
24703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24704 // for details. All rights reserved. Use of this source code is governed by a
24705 // BSD-style license that can be found in the LICENSE file.
24706
24707 // WARNING: Do not edit - generated code.
24708
24709 interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttribu tes {
24710
24711 final SVGAnimatedString in1;
24712 }
24713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24714 // for details. All rights reserved. Use of this source code is governed by a
24715 // BSD-style license that can be found in the LICENSE file.
24716
24717 // WARNING: Do not edit - generated code.
24718
24719 interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardA ttributes {
24720
24721 static final int SVG_STITCHTYPE_NOSTITCH = 2;
24722
24723 static final int SVG_STITCHTYPE_STITCH = 1;
24724
24725 static final int SVG_STITCHTYPE_UNKNOWN = 0;
24726
24727 static final int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1;
24728
24729 static final int SVG_TURBULENCE_TYPE_TURBULENCE = 2;
24730
24731 static final int SVG_TURBULENCE_TYPE_UNKNOWN = 0;
24732
24733 final SVGAnimatedNumber baseFrequencyX;
24734
24735 final SVGAnimatedNumber baseFrequencyY;
24736
24737 final SVGAnimatedInteger numOctaves;
24738
24739 final SVGAnimatedNumber seed;
24740
24741 final SVGAnimatedEnumeration stitchTiles;
24742
24743 final SVGAnimatedEnumeration type;
24744 }
24745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24746 // for details. All rights reserved. Use of this source code is governed by a
24747 // BSD-style license that can be found in the LICENSE file.
24748
24749 // WARNING: Do not edit - generated code.
24750
24751 interface SVGFilterElement extends SVGElement, SVGURIReference, SVGLangSpace, SV GExternalResourcesRequired, SVGStylable {
24752
24753 final SVGAnimatedInteger filterResX;
24754
24755 final SVGAnimatedInteger filterResY;
24756
24757 final SVGAnimatedEnumeration filterUnits;
24758
24759 final SVGAnimatedLength height;
24760
24761 final SVGAnimatedEnumeration primitiveUnits;
24762
24763 final SVGAnimatedLength width;
24764
24765 final SVGAnimatedLength x;
24766
24767 final SVGAnimatedLength y;
24768
24769 void setFilterRes(int filterResX, int filterResY);
24770 }
24771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24772 // for details. All rights reserved. Use of this source code is governed by a
24773 // BSD-style license that can be found in the LICENSE file.
24774
24775 // WARNING: Do not edit - generated code.
24776
24777 interface SVGFilterPrimitiveStandardAttributes extends SVGStylable {
24778
24779 final SVGAnimatedLength height;
24780
24781 final SVGAnimatedString result;
24782
24783 final SVGAnimatedLength width;
24784
24785 final SVGAnimatedLength x;
24786
24787 final SVGAnimatedLength y;
24788 }
24789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24790 // for details. All rights reserved. Use of this source code is governed by a
24791 // BSD-style license that can be found in the LICENSE file.
24792
24793 // WARNING: Do not edit - generated code.
24794
24795 interface SVGFitToViewBox {
24796
24797 final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
24798
24799 final SVGAnimatedRect viewBox;
24800 }
24801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24802 // for details. All rights reserved. Use of this source code is governed by a
24803 // BSD-style license that can be found in the LICENSE file.
24804
24805 // WARNING: Do not edit - generated code.
24806
24807 interface SVGFontElement extends SVGElement {
24808 }
24809 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24810 // for details. All rights reserved. Use of this source code is governed by a
24811 // BSD-style license that can be found in the LICENSE file.
24812
24813 // WARNING: Do not edit - generated code.
24814
24815 interface SVGFontFaceElement extends SVGElement {
24816 }
24817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24818 // for details. All rights reserved. Use of this source code is governed by a
24819 // BSD-style license that can be found in the LICENSE file.
24820
24821 // WARNING: Do not edit - generated code.
24822
24823 interface SVGFontFaceFormatElement extends SVGElement {
24824 }
24825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24826 // for details. All rights reserved. Use of this source code is governed by a
24827 // BSD-style license that can be found in the LICENSE file.
24828
24829 // WARNING: Do not edit - generated code.
24830
24831 interface SVGFontFaceNameElement extends SVGElement {
24832 }
24833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24834 // for details. All rights reserved. Use of this source code is governed by a
24835 // BSD-style license that can be found in the LICENSE file.
24836
24837 // WARNING: Do not edit - generated code.
24838
24839 interface SVGFontFaceSrcElement extends SVGElement {
24840 }
24841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24842 // for details. All rights reserved. Use of this source code is governed by a
24843 // BSD-style license that can be found in the LICENSE file.
24844
24845 // WARNING: Do not edit - generated code.
24846
24847 interface SVGFontFaceUriElement extends SVGElement {
24848 }
24849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24850 // for details. All rights reserved. Use of this source code is governed by a
24851 // BSD-style license that can be found in the LICENSE file.
24852
24853 // WARNING: Do not edit - generated code.
24854
24855 interface SVGForeignObjectElement extends SVGElement, SVGTests, SVGLangSpace, SV GExternalResourcesRequired, SVGStylable, SVGTransformable {
24856
24857 final SVGAnimatedLength height;
24858
24859 final SVGAnimatedLength width;
24860
24861 final SVGAnimatedLength x;
24862
24863 final SVGAnimatedLength y;
24864 }
24865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24866 // for details. All rights reserved. Use of this source code is governed by a
24867 // BSD-style license that can be found in the LICENSE file.
24868
24869 // WARNING: Do not edit - generated code.
24870
24871 interface SVGGElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternalRes ourcesRequired, SVGStylable, SVGTransformable {
24872 }
24873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24874 // for details. All rights reserved. Use of this source code is governed by a
24875 // BSD-style license that can be found in the LICENSE file.
24876
24877 // WARNING: Do not edit - generated code.
24878
24879 interface SVGGlyphElement extends SVGElement {
24880 }
24881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24882 // for details. All rights reserved. Use of this source code is governed by a
24883 // BSD-style license that can be found in the LICENSE file.
24884
24885 // WARNING: Do not edit - generated code.
24886
24887 interface SVGGlyphRefElement extends SVGElement, SVGURIReference, SVGStylable {
24888
24889 num dx;
24890
24891 num dy;
24892
24893 String format;
24894
24895 String glyphRef;
24896
24897 num x;
24898
24899 num y;
24900 }
24901 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24902 // for details. All rights reserved. Use of this source code is governed by a
24903 // BSD-style license that can be found in the LICENSE file.
24904
24905 // WARNING: Do not edit - generated code.
24906
24907 interface SVGGradientElement extends SVGElement, SVGURIReference, SVGExternalRes ourcesRequired, SVGStylable {
24908
24909 static final int SVG_SPREADMETHOD_PAD = 1;
24910
24911 static final int SVG_SPREADMETHOD_REFLECT = 2;
24912
24913 static final int SVG_SPREADMETHOD_REPEAT = 3;
24914
24915 static final int SVG_SPREADMETHOD_UNKNOWN = 0;
24916
24917 final SVGAnimatedTransformList gradientTransform;
24918
24919 final SVGAnimatedEnumeration gradientUnits;
24920
24921 final SVGAnimatedEnumeration spreadMethod;
24922 }
24923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24924 // for details. All rights reserved. Use of this source code is governed by a
24925 // BSD-style license that can be found in the LICENSE file.
24926
24927 // WARNING: Do not edit - generated code.
24928
24929 interface SVGHKernElement extends SVGElement {
24930 }
24931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24932 // for details. All rights reserved. Use of this source code is governed by a
24933 // BSD-style license that can be found in the LICENSE file.
24934
24935 // WARNING: Do not edit - generated code.
24936
24937 interface SVGImageElement extends SVGElement, SVGURIReference, SVGTests, SVGLang Space, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
24938
24939 final SVGAnimatedLength height;
24940
24941 final SVGAnimatedPreserveAspectRatio preserveAspectRatio;
24942
24943 final SVGAnimatedLength width;
24944
24945 final SVGAnimatedLength x;
24946
24947 final SVGAnimatedLength y;
24948 }
24949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24950 // for details. All rights reserved. Use of this source code is governed by a
24951 // BSD-style license that can be found in the LICENSE file.
24952
24953 // WARNING: Do not edit - generated code.
24954
24955 interface SVGLangSpace {
24956
24957 String xmllang;
24958
24959 String xmlspace;
24960 }
24961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24962 // for details. All rights reserved. Use of this source code is governed by a
24963 // BSD-style license that can be found in the LICENSE file.
24964
24965 // WARNING: Do not edit - generated code.
24966
24967 interface SVGLength {
24968
24969 static final int SVG_LENGTHTYPE_CM = 6;
24970
24971 static final int SVG_LENGTHTYPE_EMS = 3;
24972
24973 static final int SVG_LENGTHTYPE_EXS = 4;
24974
24975 static final int SVG_LENGTHTYPE_IN = 8;
24976
24977 static final int SVG_LENGTHTYPE_MM = 7;
24978
24979 static final int SVG_LENGTHTYPE_NUMBER = 1;
24980
24981 static final int SVG_LENGTHTYPE_PC = 10;
24982
24983 static final int SVG_LENGTHTYPE_PERCENTAGE = 2;
24984
24985 static final int SVG_LENGTHTYPE_PT = 9;
24986
24987 static final int SVG_LENGTHTYPE_PX = 5;
24988
24989 static final int SVG_LENGTHTYPE_UNKNOWN = 0;
24990
24991 final int unitType;
24992
24993 num value;
24994
24995 String valueAsString;
24996
24997 num valueInSpecifiedUnits;
24998
24999 void convertToSpecifiedUnits(int unitType);
25000
25001 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits);
25002 }
25003 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25004 // for details. All rights reserved. Use of this source code is governed by a
25005 // BSD-style license that can be found in the LICENSE file.
25006
25007 // WARNING: Do not edit - generated code.
25008
25009 interface SVGLengthList {
25010
25011 final int numberOfItems;
25012
25013 SVGLength appendItem(SVGLength item);
25014
25015 void clear();
25016
25017 SVGLength getItem(int index);
25018
25019 SVGLength initialize(SVGLength item);
25020
25021 SVGLength insertItemBefore(SVGLength item, int index);
25022
25023 SVGLength removeItem(int index);
25024
25025 SVGLength replaceItem(SVGLength item, int index);
25026 }
25027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25028 // for details. All rights reserved. Use of this source code is governed by a
25029 // BSD-style license that can be found in the LICENSE file.
25030
25031 // WARNING: Do not edit - generated code.
25032
25033 interface SVGLineElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal ResourcesRequired, SVGStylable, SVGTransformable {
25034
25035 final SVGAnimatedLength x1;
25036
25037 final SVGAnimatedLength x2;
25038
25039 final SVGAnimatedLength y1;
25040
25041 final SVGAnimatedLength y2;
25042 }
25043 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25044 // for details. All rights reserved. Use of this source code is governed by a
25045 // BSD-style license that can be found in the LICENSE file.
25046
25047 // WARNING: Do not edit - generated code.
25048
25049 interface SVGLinearGradientElement extends SVGGradientElement {
25050
25051 final SVGAnimatedLength x1;
25052
25053 final SVGAnimatedLength x2;
25054
25055 final SVGAnimatedLength y1;
25056
25057 final SVGAnimatedLength y2;
25058 }
25059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25060 // for details. All rights reserved. Use of this source code is governed by a
25061 // BSD-style license that can be found in the LICENSE file.
25062
25063 // WARNING: Do not edit - generated code.
25064
25065 interface SVGLocatable {
25066
25067 final SVGElement farthestViewportElement;
25068
25069 final SVGElement nearestViewportElement;
25070
25071 SVGRect getBBox();
25072
25073 SVGMatrix getCTM();
25074
25075 SVGMatrix getScreenCTM();
25076
25077 SVGMatrix getTransformToElement(SVGElement element);
25078 }
25079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25080 // for details. All rights reserved. Use of this source code is governed by a
25081 // BSD-style license that can be found in the LICENSE file.
25082
25083 // WARNING: Do not edit - generated code.
25084
25085 interface SVGMPathElement extends SVGElement, SVGURIReference, SVGExternalResour cesRequired {
25086 }
25087 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25088 // for details. All rights reserved. Use of this source code is governed by a
25089 // BSD-style license that can be found in the LICENSE file.
25090
25091 // WARNING: Do not edit - generated code.
25092
25093 interface SVGMarkerElement extends SVGElement, SVGLangSpace, SVGExternalResource sRequired, SVGStylable, SVGFitToViewBox {
25094
25095 static final int SVG_MARKERUNITS_STROKEWIDTH = 2;
25096
25097 static final int SVG_MARKERUNITS_UNKNOWN = 0;
25098
25099 static final int SVG_MARKERUNITS_USERSPACEONUSE = 1;
25100
25101 static final int SVG_MARKER_ORIENT_ANGLE = 2;
25102
25103 static final int SVG_MARKER_ORIENT_AUTO = 1;
25104
25105 static final int SVG_MARKER_ORIENT_UNKNOWN = 0;
25106
25107 final SVGAnimatedLength markerHeight;
25108
25109 final SVGAnimatedEnumeration markerUnits;
25110
25111 final SVGAnimatedLength markerWidth;
25112
25113 final SVGAnimatedAngle orientAngle;
25114
25115 final SVGAnimatedEnumeration orientType;
25116
25117 final SVGAnimatedLength refX;
25118
25119 final SVGAnimatedLength refY;
25120
25121 void setOrientToAngle(SVGAngle angle);
25122
25123 void setOrientToAuto();
25124 }
25125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25126 // for details. All rights reserved. Use of this source code is governed by a
25127 // BSD-style license that can be found in the LICENSE file.
25128
25129 // WARNING: Do not edit - generated code.
25130
25131 interface SVGMaskElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal ResourcesRequired, SVGStylable {
25132
25133 final SVGAnimatedLength height;
25134
25135 final SVGAnimatedEnumeration maskContentUnits;
25136
25137 final SVGAnimatedEnumeration maskUnits;
25138
25139 final SVGAnimatedLength width;
25140
25141 final SVGAnimatedLength x;
25142
25143 final SVGAnimatedLength y;
25144 }
25145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25146 // for details. All rights reserved. Use of this source code is governed by a
25147 // BSD-style license that can be found in the LICENSE file.
25148
25149 // WARNING: Do not edit - generated code.
25150
25151 interface SVGMatrix {
25152
25153 num a;
25154
25155 num b;
25156
25157 num c;
25158
25159 num d;
25160
25161 num e;
25162
25163 num f;
25164
25165 SVGMatrix flipX();
25166
25167 SVGMatrix flipY();
25168
25169 SVGMatrix inverse();
25170
25171 SVGMatrix multiply(SVGMatrix secondMatrix);
25172
25173 SVGMatrix rotate(num angle);
25174
25175 SVGMatrix rotateFromVector(num x, num y);
25176
25177 SVGMatrix scale(num scaleFactor);
25178
25179 SVGMatrix scaleNonUniform(num scaleFactorX, num scaleFactorY);
25180
25181 SVGMatrix skewX(num angle);
25182
25183 SVGMatrix skewY(num angle);
25184
25185 SVGMatrix translate(num x, num y);
25186 }
25187 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25188 // for details. All rights reserved. Use of this source code is governed by a
25189 // BSD-style license that can be found in the LICENSE file.
25190
25191 // WARNING: Do not edit - generated code.
25192
25193 interface SVGMetadataElement extends SVGElement {
25194 }
25195 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25196 // for details. All rights reserved. Use of this source code is governed by a
25197 // BSD-style license that can be found in the LICENSE file.
25198
25199 // WARNING: Do not edit - generated code.
25200
25201 interface SVGMissingGlyphElement extends SVGElement {
25202 }
25203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25204 // for details. All rights reserved. Use of this source code is governed by a
25205 // BSD-style license that can be found in the LICENSE file.
25206
25207 // WARNING: Do not edit - generated code.
25208
25209 interface SVGNumber {
25210
25211 num value;
25212 }
25213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25214 // for details. All rights reserved. Use of this source code is governed by a
25215 // BSD-style license that can be found in the LICENSE file.
25216
25217 // WARNING: Do not edit - generated code.
25218
25219 interface SVGNumberList {
25220
25221 final int numberOfItems;
25222
25223 SVGNumber appendItem(SVGNumber item);
25224
25225 void clear();
25226
25227 SVGNumber getItem(int index);
25228
25229 SVGNumber initialize(SVGNumber item);
25230
25231 SVGNumber insertItemBefore(SVGNumber item, int index);
25232
25233 SVGNumber removeItem(int index);
25234
25235 SVGNumber replaceItem(SVGNumber item, int index);
25236 }
25237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25238 // for details. All rights reserved. Use of this source code is governed by a
25239 // BSD-style license that can be found in the LICENSE file.
25240
25241 // WARNING: Do not edit - generated code.
25242
25243 interface SVGPaint extends SVGColor {
25244
25245 static final int SVG_PAINTTYPE_CURRENTCOLOR = 102;
25246
25247 static final int SVG_PAINTTYPE_NONE = 101;
25248
25249 static final int SVG_PAINTTYPE_RGBCOLOR = 1;
25250
25251 static final int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
25252
25253 static final int SVG_PAINTTYPE_UNKNOWN = 0;
25254
25255 static final int SVG_PAINTTYPE_URI = 107;
25256
25257 static final int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
25258
25259 static final int SVG_PAINTTYPE_URI_NONE = 103;
25260
25261 static final int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
25262
25263 static final int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
25264
25265 final int paintType;
25266
25267 final String uri;
25268
25269 void setPaint(int paintType, String uri, String rgbColor, String iccColor);
25270
25271 void setUri(String uri);
25272 }
25273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25274 // for details. All rights reserved. Use of this source code is governed by a
25275 // BSD-style license that can be found in the LICENSE file.
25276
25277 // WARNING: Do not edit - generated code.
25278
25279 interface SVGPathElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal ResourcesRequired, SVGStylable, SVGTransformable {
25280
25281 final SVGPathSegList animatedNormalizedPathSegList;
25282
25283 final SVGPathSegList animatedPathSegList;
25284
25285 final SVGPathSegList normalizedPathSegList;
25286
25287 final SVGAnimatedNumber pathLength;
25288
25289 final SVGPathSegList pathSegList;
25290
25291 SVGPathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angl e, bool largeArcFlag, bool sweepFlag);
25292
25293 SVGPathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angl e, bool largeArcFlag, bool sweepFlag);
25294
25295 SVGPathSegClosePath createSVGPathSegClosePath();
25296
25297 SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1 , num y1, num x2, num y2);
25298
25299 SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1 , num y1, num x2, num y2);
25300
25301 SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, n um y, num x2, num y2);
25302
25303 SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, n um y, num x2, num y2);
25304
25305 SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y , num x1, num y1);
25306
25307 SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y , num x1, num y1);
25308
25309 SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs( num x, num y);
25310
25311 SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel( num x, num y);
25312
25313 SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y);
25314
25315 SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x);
25316
25317 SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x);
25318
25319 SVGPathSegLinetoRel createSVGPathSegLinetoRel(num x, num y);
25320
25321 SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y);
25322
25323 SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y);
25324
25325 SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y);
25326
25327 SVGPathSegMovetoRel createSVGPathSegMovetoRel(num x, num y);
25328
25329 int getPathSegAtLength(num distance);
25330
25331 SVGPoint getPointAtLength(num distance);
25332
25333 num getTotalLength();
25334 }
25335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25336 // for details. All rights reserved. Use of this source code is governed by a
25337 // BSD-style license that can be found in the LICENSE file.
25338
25339 // WARNING: Do not edit - generated code.
25340
25341 interface SVGPathSeg {
25342
25343 static final int PATHSEG_ARC_ABS = 10;
25344
25345 static final int PATHSEG_ARC_REL = 11;
25346
25347 static final int PATHSEG_CLOSEPATH = 1;
25348
25349 static final int PATHSEG_CURVETO_CUBIC_ABS = 6;
25350
25351 static final int PATHSEG_CURVETO_CUBIC_REL = 7;
25352
25353 static final int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
25354
25355 static final int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
25356
25357 static final int PATHSEG_CURVETO_QUADRATIC_ABS = 8;
25358
25359 static final int PATHSEG_CURVETO_QUADRATIC_REL = 9;
25360
25361 static final int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
25362
25363 static final int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
25364
25365 static final int PATHSEG_LINETO_ABS = 4;
25366
25367 static final int PATHSEG_LINETO_HORIZONTAL_ABS = 12;
25368
25369 static final int PATHSEG_LINETO_HORIZONTAL_REL = 13;
25370
25371 static final int PATHSEG_LINETO_REL = 5;
25372
25373 static final int PATHSEG_LINETO_VERTICAL_ABS = 14;
25374
25375 static final int PATHSEG_LINETO_VERTICAL_REL = 15;
25376
25377 static final int PATHSEG_MOVETO_ABS = 2;
25378
25379 static final int PATHSEG_MOVETO_REL = 3;
25380
25381 static final int PATHSEG_UNKNOWN = 0;
25382
25383 final int pathSegType;
25384
25385 final String pathSegTypeAsLetter;
25386 }
25387 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25388 // for details. All rights reserved. Use of this source code is governed by a
25389 // BSD-style license that can be found in the LICENSE file.
25390
25391 // WARNING: Do not edit - generated code.
25392
25393 interface SVGPathSegArcAbs extends SVGPathSeg {
25394
25395 num angle;
25396
25397 bool largeArcFlag;
25398
25399 num r1;
25400
25401 num r2;
25402
25403 bool sweepFlag;
25404
25405 num x;
25406
25407 num y;
25408 }
25409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25410 // for details. All rights reserved. Use of this source code is governed by a
25411 // BSD-style license that can be found in the LICENSE file.
25412
25413 // WARNING: Do not edit - generated code.
25414
25415 interface SVGPathSegArcRel extends SVGPathSeg {
25416
25417 num angle;
25418
25419 bool largeArcFlag;
25420
25421 num r1;
25422
25423 num r2;
25424
25425 bool sweepFlag;
25426
25427 num x;
25428
25429 num y;
25430 }
25431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25432 // for details. All rights reserved. Use of this source code is governed by a
25433 // BSD-style license that can be found in the LICENSE file.
25434
25435 // WARNING: Do not edit - generated code.
25436
25437 interface SVGPathSegClosePath extends SVGPathSeg {
25438 }
25439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25440 // for details. All rights reserved. Use of this source code is governed by a
25441 // BSD-style license that can be found in the LICENSE file.
25442
25443 // WARNING: Do not edit - generated code.
25444
25445 interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
25446
25447 num x;
25448
25449 num x1;
25450
25451 num x2;
25452
25453 num y;
25454
25455 num y1;
25456
25457 num y2;
25458 }
25459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25460 // for details. All rights reserved. Use of this source code is governed by a
25461 // BSD-style license that can be found in the LICENSE file.
25462
25463 // WARNING: Do not edit - generated code.
25464
25465 interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
25466
25467 num x;
25468
25469 num x1;
25470
25471 num x2;
25472
25473 num y;
25474
25475 num y1;
25476
25477 num y2;
25478 }
25479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25480 // for details. All rights reserved. Use of this source code is governed by a
25481 // BSD-style license that can be found in the LICENSE file.
25482
25483 // WARNING: Do not edit - generated code.
25484
25485 interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
25486
25487 num x;
25488
25489 num x2;
25490
25491 num y;
25492
25493 num y2;
25494 }
25495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25496 // for details. All rights reserved. Use of this source code is governed by a
25497 // BSD-style license that can be found in the LICENSE file.
25498
25499 // WARNING: Do not edit - generated code.
25500
25501 interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
25502
25503 num x;
25504
25505 num x2;
25506
25507 num y;
25508
25509 num y2;
25510 }
25511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25512 // for details. All rights reserved. Use of this source code is governed by a
25513 // BSD-style license that can be found in the LICENSE file.
25514
25515 // WARNING: Do not edit - generated code.
25516
25517 interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
25518
25519 num x;
25520
25521 num x1;
25522
25523 num y;
25524
25525 num y1;
25526 }
25527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25528 // for details. All rights reserved. Use of this source code is governed by a
25529 // BSD-style license that can be found in the LICENSE file.
25530
25531 // WARNING: Do not edit - generated code.
25532
25533 interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
25534
25535 num x;
25536
25537 num x1;
25538
25539 num y;
25540
25541 num y1;
25542 }
25543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25544 // for details. All rights reserved. Use of this source code is governed by a
25545 // BSD-style license that can be found in the LICENSE file.
25546
25547 // WARNING: Do not edit - generated code.
25548
25549 interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
25550
25551 num x;
25552
25553 num y;
25554 }
25555 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25556 // for details. All rights reserved. Use of this source code is governed by a
25557 // BSD-style license that can be found in the LICENSE file.
25558
25559 // WARNING: Do not edit - generated code.
25560
25561 interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
25562
25563 num x;
25564
25565 num y;
25566 }
25567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25568 // for details. All rights reserved. Use of this source code is governed by a
25569 // BSD-style license that can be found in the LICENSE file.
25570
25571 // WARNING: Do not edit - generated code.
25572
25573 interface SVGPathSegLinetoAbs extends SVGPathSeg {
25574
25575 num x;
25576
25577 num y;
25578 }
25579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25580 // for details. All rights reserved. Use of this source code is governed by a
25581 // BSD-style license that can be found in the LICENSE file.
25582
25583 // WARNING: Do not edit - generated code.
25584
25585 interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
25586
25587 num x;
25588 }
25589 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25590 // for details. All rights reserved. Use of this source code is governed by a
25591 // BSD-style license that can be found in the LICENSE file.
25592
25593 // WARNING: Do not edit - generated code.
25594
25595 interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
25596
25597 num x;
25598 }
25599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25600 // for details. All rights reserved. Use of this source code is governed by a
25601 // BSD-style license that can be found in the LICENSE file.
25602
25603 // WARNING: Do not edit - generated code.
25604
25605 interface SVGPathSegLinetoRel extends SVGPathSeg {
25606
25607 num x;
25608
25609 num y;
25610 }
25611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25612 // for details. All rights reserved. Use of this source code is governed by a
25613 // BSD-style license that can be found in the LICENSE file.
25614
25615 // WARNING: Do not edit - generated code.
25616
25617 interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
25618
25619 num y;
25620 }
25621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25622 // for details. All rights reserved. Use of this source code is governed by a
25623 // BSD-style license that can be found in the LICENSE file.
25624
25625 // WARNING: Do not edit - generated code.
25626
25627 interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
25628
25629 num y;
25630 }
25631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25632 // for details. All rights reserved. Use of this source code is governed by a
25633 // BSD-style license that can be found in the LICENSE file.
25634
25635 // WARNING: Do not edit - generated code.
25636
25637 interface SVGPathSegList {
25638
25639 final int numberOfItems;
25640
25641 SVGPathSeg appendItem(SVGPathSeg newItem);
25642
25643 void clear();
25644
25645 SVGPathSeg getItem(int index);
25646
25647 SVGPathSeg initialize(SVGPathSeg newItem);
25648
25649 SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index);
25650
25651 SVGPathSeg removeItem(int index);
25652
25653 SVGPathSeg replaceItem(SVGPathSeg newItem, int index);
25654 }
25655 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25656 // for details. All rights reserved. Use of this source code is governed by a
25657 // BSD-style license that can be found in the LICENSE file.
25658
25659 // WARNING: Do not edit - generated code.
25660
25661 interface SVGPathSegMovetoAbs extends SVGPathSeg {
25662
25663 num x;
25664
25665 num y;
25666 }
25667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25668 // for details. All rights reserved. Use of this source code is governed by a
25669 // BSD-style license that can be found in the LICENSE file.
25670
25671 // WARNING: Do not edit - generated code.
25672
25673 interface SVGPathSegMovetoRel extends SVGPathSeg {
25674
25675 num x;
25676
25677 num y;
25678 }
25679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25680 // for details. All rights reserved. Use of this source code is governed by a
25681 // BSD-style license that can be found in the LICENSE file.
25682
25683 // WARNING: Do not edit - generated code.
25684
25685 interface SVGPatternElement extends SVGElement, SVGURIReference, SVGTests, SVGLa ngSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox {
25686
25687 final SVGAnimatedLength height;
25688
25689 final SVGAnimatedEnumeration patternContentUnits;
25690
25691 final SVGAnimatedTransformList patternTransform;
25692
25693 final SVGAnimatedEnumeration patternUnits;
25694
25695 final SVGAnimatedLength width;
25696
25697 final SVGAnimatedLength x;
25698
25699 final SVGAnimatedLength y;
25700 }
25701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25702 // for details. All rights reserved. Use of this source code is governed by a
25703 // BSD-style license that can be found in the LICENSE file.
25704
25705 // WARNING: Do not edit - generated code.
25706
25707 interface SVGPoint {
25708
25709 num x;
25710
25711 num y;
25712
25713 SVGPoint matrixTransform(SVGMatrix matrix);
25714 }
25715 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25716 // for details. All rights reserved. Use of this source code is governed by a
25717 // BSD-style license that can be found in the LICENSE file.
25718
25719 // WARNING: Do not edit - generated code.
25720
25721 interface SVGPointList {
25722
25723 final int numberOfItems;
25724
25725 SVGPoint appendItem(SVGPoint item);
25726
25727 void clear();
25728
25729 SVGPoint getItem(int index);
25730
25731 SVGPoint initialize(SVGPoint item);
25732
25733 SVGPoint insertItemBefore(SVGPoint item, int index);
25734
25735 SVGPoint removeItem(int index);
25736
25737 SVGPoint replaceItem(SVGPoint item, int index);
25738 }
25739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25740 // for details. All rights reserved. Use of this source code is governed by a
25741 // BSD-style license that can be found in the LICENSE file.
25742
25743 // WARNING: Do not edit - generated code.
25744
25745 interface SVGPolygonElement extends SVGElement, SVGTests, SVGLangSpace, SVGExter nalResourcesRequired, SVGStylable, SVGTransformable {
25746
25747 final SVGPointList animatedPoints;
25748
25749 final SVGPointList points;
25750 }
25751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25752 // for details. All rights reserved. Use of this source code is governed by a
25753 // BSD-style license that can be found in the LICENSE file.
25754
25755 // WARNING: Do not edit - generated code.
25756
25757 interface SVGPolylineElement extends SVGElement, SVGTests, SVGLangSpace, SVGExte rnalResourcesRequired, SVGStylable, SVGTransformable {
25758
25759 final SVGPointList animatedPoints;
25760
25761 final SVGPointList points;
25762 }
25763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25764 // for details. All rights reserved. Use of this source code is governed by a
25765 // BSD-style license that can be found in the LICENSE file.
25766
25767 // WARNING: Do not edit - generated code.
25768
25769 interface SVGPreserveAspectRatio {
25770
25771 static final int SVG_MEETORSLICE_MEET = 1;
25772
25773 static final int SVG_MEETORSLICE_SLICE = 2;
25774
25775 static final int SVG_MEETORSLICE_UNKNOWN = 0;
25776
25777 static final int SVG_PRESERVEASPECTRATIO_NONE = 1;
25778
25779 static final int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
25780
25781 static final int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
25782
25783 static final int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
25784
25785 static final int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4;
25786
25787 static final int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9;
25788
25789 static final int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6;
25790
25791 static final int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3;
25792
25793 static final int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8;
25794
25795 static final int SVG_PRESERVEASPECTRATIO_XMINYMID = 5;
25796
25797 static final int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2;
25798
25799 int align;
25800
25801 int meetOrSlice;
25802 }
25803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25804 // for details. All rights reserved. Use of this source code is governed by a
25805 // BSD-style license that can be found in the LICENSE file.
25806
25807 // WARNING: Do not edit - generated code.
25808
25809 interface SVGRadialGradientElement extends SVGGradientElement {
25810
25811 final SVGAnimatedLength cx;
25812
25813 final SVGAnimatedLength cy;
25814
25815 final SVGAnimatedLength fx;
25816
25817 final SVGAnimatedLength fy;
25818
25819 final SVGAnimatedLength r;
25820 }
25821 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25822 // for details. All rights reserved. Use of this source code is governed by a
25823 // BSD-style license that can be found in the LICENSE file.
25824
25825 // WARNING: Do not edit - generated code.
25826
25827 interface SVGRect {
25828
25829 num height;
25830
25831 num width;
25832
25833 num x;
25834
25835 num y;
25836 }
25837 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25838 // for details. All rights reserved. Use of this source code is governed by a
25839 // BSD-style license that can be found in the LICENSE file.
25840
25841 // WARNING: Do not edit - generated code.
25842
25843 interface SVGRectElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal ResourcesRequired, SVGStylable, SVGTransformable {
25844
25845 final SVGAnimatedLength height;
25846
25847 final SVGAnimatedLength rx;
25848
25849 final SVGAnimatedLength ry;
25850
25851 final SVGAnimatedLength width;
25852
25853 final SVGAnimatedLength x;
25854
25855 final SVGAnimatedLength y;
25856 }
25857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25858 // for details. All rights reserved. Use of this source code is governed by a
25859 // BSD-style license that can be found in the LICENSE file.
25860
25861 // WARNING: Do not edit - generated code.
25862
25863 interface SVGRenderingIntent {
25864
25865 static final int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5;
25866
25867 static final int RENDERING_INTENT_AUTO = 1;
25868
25869 static final int RENDERING_INTENT_PERCEPTUAL = 2;
25870
25871 static final int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3;
25872
25873 static final int RENDERING_INTENT_SATURATION = 4;
25874
25875 static final int RENDERING_INTENT_UNKNOWN = 0;
25876 }
25877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25878 // for details. All rights reserved. Use of this source code is governed by a
25879 // BSD-style license that can be found in the LICENSE file.
25880
25881 // WARNING: Do not edit - generated code.
25882
25883 interface SVGSVGElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternalR esourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan {
25884
25885 String contentScriptType;
25886
25887 String contentStyleType;
25888
25889 num currentScale;
25890
25891 final SVGPoint currentTranslate;
25892
25893 final SVGAnimatedLength height;
25894
25895 final num pixelUnitToMillimeterX;
25896
25897 final num pixelUnitToMillimeterY;
25898
25899 final num screenPixelToMillimeterX;
25900
25901 final num screenPixelToMillimeterY;
25902
25903 bool useCurrentView;
25904
25905 final SVGRect viewport;
25906
25907 final SVGAnimatedLength width;
25908
25909 final SVGAnimatedLength x;
25910
25911 final SVGAnimatedLength y;
25912
25913 bool animationsPaused();
25914
25915 bool checkEnclosure(SVGElement element, SVGRect rect);
25916
25917 bool checkIntersection(SVGElement element, SVGRect rect);
25918
25919 SVGAngle createSVGAngle();
25920
25921 SVGLength createSVGLength();
25922
25923 SVGMatrix createSVGMatrix();
25924
25925 SVGNumber createSVGNumber();
25926
25927 SVGPoint createSVGPoint();
25928
25929 SVGRect createSVGRect();
25930
25931 SVGTransform createSVGTransform();
25932
25933 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
25934
25935 void deselectAll();
25936
25937 void forceRedraw();
25938
25939 num getCurrentTime();
25940
25941 Element getElementById(String elementId);
25942
25943 NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement);
25944
25945 NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement);
25946
25947 void pauseAnimations();
25948
25949 void setCurrentTime(num seconds);
25950
25951 int suspendRedraw(int maxWaitMilliseconds);
25952
25953 void unpauseAnimations();
25954
25955 void unsuspendRedraw(int suspendHandleId);
25956
25957 void unsuspendRedrawAll();
25958 }
25959 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25960 // for details. All rights reserved. Use of this source code is governed by a
25961 // BSD-style license that can be found in the LICENSE file.
25962
25963 // WARNING: Do not edit - generated code.
25964
25965 interface SVGScriptElement extends SVGElement, SVGURIReference, SVGExternalResou rcesRequired {
25966
25967 String type;
25968 }
25969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25970 // for details. All rights reserved. Use of this source code is governed by a
25971 // BSD-style license that can be found in the LICENSE file.
25972
25973 // WARNING: Do not edit - generated code.
25974
25975 interface SVGSetElement extends SVGAnimationElement {
25976 }
25977 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25978 // for details. All rights reserved. Use of this source code is governed by a
25979 // BSD-style license that can be found in the LICENSE file.
25980
25981 // WARNING: Do not edit - generated code.
25982
25983 interface SVGStopElement extends SVGElement, SVGStylable {
25984
25985 final SVGAnimatedNumber offset;
25986 }
25987 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
25988 // for details. All rights reserved. Use of this source code is governed by a
25989 // BSD-style license that can be found in the LICENSE file.
25990
25991 // WARNING: Do not edit - generated code.
25992
25993 interface SVGStringList {
25994
25995 final int numberOfItems;
25996
25997 String appendItem(String item);
25998
25999 void clear();
26000
26001 String getItem(int index);
26002
26003 String initialize(String item);
26004
26005 String insertItemBefore(String item, int index);
26006
26007 String removeItem(int index);
26008
26009 String replaceItem(String item, int index);
26010 }
26011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26012 // for details. All rights reserved. Use of this source code is governed by a
26013 // BSD-style license that can be found in the LICENSE file.
26014
26015 // WARNING: Do not edit - generated code.
26016
26017 interface SVGStylable {
26018
26019 final SVGAnimatedString className;
26020
26021 final CSSStyleDeclaration style;
26022
26023 CSSValue getPresentationAttribute(String name);
26024 }
26025 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26026 // for details. All rights reserved. Use of this source code is governed by a
26027 // BSD-style license that can be found in the LICENSE file.
26028
26029 // WARNING: Do not edit - generated code.
26030
26031 interface SVGStyleElement extends SVGElement, SVGLangSpace {
26032
26033 String media;
26034
26035 String title;
26036
26037 String type;
26038 }
26039 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26040 // for details. All rights reserved. Use of this source code is governed by a
26041 // BSD-style license that can be found in the LICENSE file.
26042
26043 // WARNING: Do not edit - generated code.
26044
26045 interface SVGSwitchElement extends SVGElement, SVGTests, SVGLangSpace, SVGExtern alResourcesRequired, SVGStylable, SVGTransformable {
26046 }
26047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26048 // for details. All rights reserved. Use of this source code is governed by a
26049 // BSD-style license that can be found in the LICENSE file.
26050
26051 // WARNING: Do not edit - generated code.
26052
26053 interface SVGSymbolElement extends SVGElement, SVGLangSpace, SVGExternalResource sRequired, SVGStylable, SVGFitToViewBox {
26054 }
26055 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26056 // for details. All rights reserved. Use of this source code is governed by a
26057 // BSD-style license that can be found in the LICENSE file.
26058
26059 // WARNING: Do not edit - generated code.
26060
26061 interface SVGTRefElement extends SVGTextPositioningElement, SVGURIReference {
26062 }
26063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26064 // for details. All rights reserved. Use of this source code is governed by a
26065 // BSD-style license that can be found in the LICENSE file.
26066
26067 // WARNING: Do not edit - generated code.
26068
26069 interface SVGTSpanElement extends SVGTextPositioningElement {
26070 }
26071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26072 // for details. All rights reserved. Use of this source code is governed by a
26073 // BSD-style license that can be found in the LICENSE file.
26074
26075 // WARNING: Do not edit - generated code.
26076
26077 interface SVGTests {
26078
26079 final SVGStringList requiredExtensions;
26080
26081 final SVGStringList requiredFeatures;
26082
26083 final SVGStringList systemLanguage;
26084
26085 bool hasExtension(String extension);
26086 }
26087 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26088 // for details. All rights reserved. Use of this source code is governed by a
26089 // BSD-style license that can be found in the LICENSE file.
26090
26091 // WARNING: Do not edit - generated code.
26092
26093 interface SVGTextContentElement extends SVGElement, SVGTests, SVGLangSpace, SVGE xternalResourcesRequired, SVGStylable {
26094
26095 static final int LENGTHADJUST_SPACING = 1;
26096
26097 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2;
26098
26099 static final int LENGTHADJUST_UNKNOWN = 0;
26100
26101 final SVGAnimatedEnumeration lengthAdjust;
26102
26103 final SVGAnimatedLength textLength;
26104
26105 int getCharNumAtPosition(SVGPoint point);
26106
26107 num getComputedTextLength();
26108
26109 SVGPoint getEndPositionOfChar(int offset);
26110
26111 SVGRect getExtentOfChar(int offset);
26112
26113 int getNumberOfChars();
26114
26115 num getRotationOfChar(int offset);
26116
26117 SVGPoint getStartPositionOfChar(int offset);
26118
26119 num getSubStringLength(int offset, int length);
26120
26121 void selectSubString(int offset, int length);
26122 }
26123 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26124 // for details. All rights reserved. Use of this source code is governed by a
26125 // BSD-style license that can be found in the LICENSE file.
26126
26127 // WARNING: Do not edit - generated code.
26128
26129 interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable {
26130 }
26131 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26132 // for details. All rights reserved. Use of this source code is governed by a
26133 // BSD-style license that can be found in the LICENSE file.
26134
26135 // WARNING: Do not edit - generated code.
26136
26137 interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
26138
26139 static final int TEXTPATH_METHODTYPE_ALIGN = 1;
26140
26141 static final int TEXTPATH_METHODTYPE_STRETCH = 2;
26142
26143 static final int TEXTPATH_METHODTYPE_UNKNOWN = 0;
26144
26145 static final int TEXTPATH_SPACINGTYPE_AUTO = 1;
26146
26147 static final int TEXTPATH_SPACINGTYPE_EXACT = 2;
26148
26149 static final int TEXTPATH_SPACINGTYPE_UNKNOWN = 0;
26150
26151 final SVGAnimatedEnumeration method;
26152
26153 final SVGAnimatedEnumeration spacing;
26154
26155 final SVGAnimatedLength startOffset;
26156 }
26157 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26158 // for details. All rights reserved. Use of this source code is governed by a
26159 // BSD-style license that can be found in the LICENSE file.
26160
26161 // WARNING: Do not edit - generated code.
26162
26163 interface SVGTextPositioningElement extends SVGTextContentElement {
26164
26165 final SVGAnimatedLengthList dx;
26166
26167 final SVGAnimatedLengthList dy;
26168
26169 final SVGAnimatedNumberList rotate;
26170
26171 final SVGAnimatedLengthList x;
26172
26173 final SVGAnimatedLengthList y;
26174 }
26175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26176 // for details. All rights reserved. Use of this source code is governed by a
26177 // BSD-style license that can be found in the LICENSE file.
26178
26179 // WARNING: Do not edit - generated code.
26180
26181 interface SVGTitleElement extends SVGElement, SVGLangSpace, SVGStylable {
26182 }
26183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26184 // for details. All rights reserved. Use of this source code is governed by a
26185 // BSD-style license that can be found in the LICENSE file.
26186
26187 // WARNING: Do not edit - generated code.
26188
26189 interface SVGTransform {
26190
26191 static final int SVG_TRANSFORM_MATRIX = 1;
26192
26193 static final int SVG_TRANSFORM_ROTATE = 4;
26194
26195 static final int SVG_TRANSFORM_SCALE = 3;
26196
26197 static final int SVG_TRANSFORM_SKEWX = 5;
26198
26199 static final int SVG_TRANSFORM_SKEWY = 6;
26200
26201 static final int SVG_TRANSFORM_TRANSLATE = 2;
26202
26203 static final int SVG_TRANSFORM_UNKNOWN = 0;
26204
26205 final num angle;
26206
26207 final SVGMatrix matrix;
26208
26209 final int type;
26210
26211 void setMatrix(SVGMatrix matrix);
26212
26213 void setRotate(num angle, num cx, num cy);
26214
26215 void setScale(num sx, num sy);
26216
26217 void setSkewX(num angle);
26218
26219 void setSkewY(num angle);
26220
26221 void setTranslate(num tx, num ty);
26222 }
26223 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26224 // for details. All rights reserved. Use of this source code is governed by a
26225 // BSD-style license that can be found in the LICENSE file.
26226
26227 // WARNING: Do not edit - generated code.
26228
26229 interface SVGTransformList {
26230
26231 final int numberOfItems;
26232
26233 SVGTransform appendItem(SVGTransform item);
26234
26235 void clear();
26236
26237 SVGTransform consolidate();
26238
26239 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
26240
26241 SVGTransform getItem(int index);
26242
26243 SVGTransform initialize(SVGTransform item);
26244
26245 SVGTransform insertItemBefore(SVGTransform item, int index);
26246
26247 SVGTransform removeItem(int index);
26248
26249 SVGTransform replaceItem(SVGTransform item, int index);
26250 }
26251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26252 // for details. All rights reserved. Use of this source code is governed by a
26253 // BSD-style license that can be found in the LICENSE file.
26254
26255 // WARNING: Do not edit - generated code.
26256
26257 interface SVGTransformable extends SVGLocatable {
26258
26259 final SVGAnimatedTransformList transform;
26260 }
26261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26262 // for details. All rights reserved. Use of this source code is governed by a
26263 // BSD-style license that can be found in the LICENSE file.
26264
26265 // WARNING: Do not edit - generated code.
26266
26267 interface SVGURIReference {
26268
26269 final SVGAnimatedString href;
26270 }
26271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26272 // for details. All rights reserved. Use of this source code is governed by a
26273 // BSD-style license that can be found in the LICENSE file.
26274
26275 // WARNING: Do not edit - generated code.
26276
26277 interface SVGUnitTypes {
26278
26279 static final int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2;
26280
26281 static final int SVG_UNIT_TYPE_UNKNOWN = 0;
26282
26283 static final int SVG_UNIT_TYPE_USERSPACEONUSE = 1;
26284 }
26285 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26286 // for details. All rights reserved. Use of this source code is governed by a
26287 // BSD-style license that can be found in the LICENSE file.
26288
26289 // WARNING: Do not edit - generated code.
26290
26291 interface SVGUseElement extends SVGElement, SVGURIReference, SVGTests, SVGLangSp ace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable {
26292
26293 final SVGElementInstance animatedInstanceRoot;
26294
26295 final SVGAnimatedLength height;
26296
26297 final SVGElementInstance instanceRoot;
26298
26299 final SVGAnimatedLength width;
26300
26301 final SVGAnimatedLength x;
26302
26303 final SVGAnimatedLength y;
26304 }
26305 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26306 // for details. All rights reserved. Use of this source code is governed by a
26307 // BSD-style license that can be found in the LICENSE file.
26308
26309 // WARNING: Do not edit - generated code.
26310
26311 interface SVGVKernElement extends SVGElement {
26312 }
26313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26314 // for details. All rights reserved. Use of this source code is governed by a
26315 // BSD-style license that can be found in the LICENSE file.
26316
26317 // WARNING: Do not edit - generated code.
26318
26319 interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, SVGFi tToViewBox, SVGZoomAndPan {
26320
26321 final SVGStringList viewTarget;
26322 }
26323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26324 // for details. All rights reserved. Use of this source code is governed by a
26325 // BSD-style license that can be found in the LICENSE file.
26326
26327 // WARNING: Do not edit - generated code.
26328
26329 interface SVGViewSpec extends SVGZoomAndPan, SVGFitToViewBox {
26330
26331 final String preserveAspectRatioString;
26332
26333 final SVGTransformList transform;
26334
26335 final String transformString;
26336
26337 final String viewBoxString;
26338
26339 final SVGElement viewTarget;
26340
26341 final String viewTargetString;
26342 }
26343 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26344 // for details. All rights reserved. Use of this source code is governed by a
26345 // BSD-style license that can be found in the LICENSE file.
26346
26347 // WARNING: Do not edit - generated code.
26348
26349 interface SVGZoomAndPan {
26350
26351 static final int SVG_ZOOMANDPAN_DISABLE = 1;
26352
26353 static final int SVG_ZOOMANDPAN_MAGNIFY = 2;
26354
26355 static final int SVG_ZOOMANDPAN_UNKNOWN = 0;
26356
26357 int zoomAndPan;
26358 }
26359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26360 // for details. All rights reserved. Use of this source code is governed by a
26361 // BSD-style license that can be found in the LICENSE file.
26362
26363 // WARNING: Do not edit - generated code.
26364
26365 interface SVGZoomEvent extends UIEvent {
26366
26367 final num newScale;
26368
26369 final SVGPoint newTranslate;
26370
26371 final num previousScale;
26372
26373 final SVGPoint previousTranslate;
26374
26375 final SVGRect zoomRectScreen;
26376 }
26377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26378 // for details. All rights reserved. Use of this source code is governed by a
26379 // BSD-style license that can be found in the LICENSE file.
26380
26381 // WARNING: Do not edit - generated code.
26382
26383 interface Screen {
26384
26385 final int availHeight;
26386
26387 final int availLeft;
26388
26389 final int availTop;
26390
26391 final int availWidth;
26392
26393 final int colorDepth;
26394
26395 final int height;
26396
26397 final int pixelDepth;
26398
26399 final int width;
26400 }
26401 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26402 // for details. All rights reserved. Use of this source code is governed by a
26403 // BSD-style license that can be found in the LICENSE file.
26404
26405 // WARNING: Do not edit - generated code.
26406
26407 interface ScriptElement extends Element {
26408
26409 bool async;
26410
26411 String charset;
26412
26413 bool defer;
26414
26415 String event;
26416
26417 String htmlFor;
26418
26419 String src;
26420
26421 String text;
26422
26423 String type;
26424 }
26425 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26426 // for details. All rights reserved. Use of this source code is governed by a
26427 // BSD-style license that can be found in the LICENSE file.
26428
26429 // WARNING: Do not edit - generated code.
26430
26431 interface ScriptProfile {
26432
26433 final ScriptProfileNode head;
26434
26435 final String title;
26436
26437 final int uid;
26438 }
26439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26440 // for details. All rights reserved. Use of this source code is governed by a
26441 // BSD-style license that can be found in the LICENSE file.
26442
26443 // WARNING: Do not edit - generated code.
26444
26445 interface ScriptProfileNode {
26446
26447 final int callUID;
26448
26449 final List children;
26450
26451 final String functionName;
26452
26453 final int lineNumber;
26454
26455 final int numberOfCalls;
26456
26457 final num selfTime;
26458
26459 final num totalTime;
26460
26461 final String url;
26462
26463 final bool visible;
26464 }
26465 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26466 // for details. All rights reserved. Use of this source code is governed by a
26467 // BSD-style license that can be found in the LICENSE file.
26468
26469 // WARNING: Do not edit - generated code.
26470
26471 interface SelectElement extends Element {
26472
26473 bool autofocus;
26474
26475 bool disabled;
26476
26477 final FormElement form;
26478
26479 final NodeList labels;
26480
26481 int length;
26482
26483 bool multiple;
26484
26485 String name;
26486
26487 final HTMLOptionsCollection options;
26488
26489 bool required;
26490
26491 int selectedIndex;
26492
26493 int size;
26494
26495 final String type;
26496
26497 final String validationMessage;
26498
26499 final ValidityState validity;
26500
26501 String value;
26502
26503 final bool willValidate;
26504
26505 void add(Element element, Element before);
26506
26507 bool checkValidity();
26508
26509 Node item(int index);
26510
26511 Node namedItem(String name);
26512
26513 void setCustomValidity(String error);
26514 }
26515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26516 // for details. All rights reserved. Use of this source code is governed by a
26517 // BSD-style license that can be found in the LICENSE file.
26518
26519 // WARNING: Do not edit - generated code.
26520
26521 interface SharedWorker extends AbstractWorker {
26522
26523 final MessagePort port;
26524 }
26525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26526 // for details. All rights reserved. Use of this source code is governed by a
26527 // BSD-style license that can be found in the LICENSE file.
26528
26529 // WARNING: Do not edit - generated code.
26530
26531 interface SharedWorkerContext extends WorkerContext {
26532
26533 final String name;
26534
26535 EventListener onconnect;
26536 }
26537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26538 // for details. All rights reserved. Use of this source code is governed by a
26539 // BSD-style license that can be found in the LICENSE file.
26540
26541 // WARNING: Do not edit - generated code.
26542
26543 interface SourceElement extends Element {
26544
26545 String media;
26546
26547 String src;
26548
26549 String type;
26550 }
26551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26552 // for details. All rights reserved. Use of this source code is governed by a
26553 // BSD-style license that can be found in the LICENSE file.
26554
26555 // WARNING: Do not edit - generated code.
26556
26557 interface SpanElement extends Element {
26558 }
26559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26560 // for details. All rights reserved. Use of this source code is governed by a
26561 // BSD-style license that can be found in the LICENSE file.
26562
26563 // WARNING: Do not edit - generated code.
26564
26565 interface SpeechInputEvent extends Event {
26566
26567 final SpeechInputResultList results;
26568 }
26569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26570 // for details. All rights reserved. Use of this source code is governed by a
26571 // BSD-style license that can be found in the LICENSE file.
26572
26573 // WARNING: Do not edit - generated code.
26574
26575 interface SpeechInputResult {
26576
26577 final num confidence;
26578
26579 final String utterance;
26580 }
26581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26582 // for details. All rights reserved. Use of this source code is governed by a
26583 // BSD-style license that can be found in the LICENSE file.
26584
26585 // WARNING: Do not edit - generated code.
26586
26587 interface SpeechInputResultList {
26588
26589 final int length;
26590
26591 SpeechInputResult item(int index);
26592 }
26593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26594 // for details. All rights reserved. Use of this source code is governed by a
26595 // BSD-style license that can be found in the LICENSE file.
26596
26597 // WARNING: Do not edit - generated code.
26598
26599 interface Storage {
26600
26601 final int length;
26602
26603 void clear();
26604
26605 String getItem(String key);
26606
26607 String key(int index);
26608
26609 void removeItem(String key);
26610
26611 void setItem(String key, String data);
26612 }
26613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26614 // for details. All rights reserved. Use of this source code is governed by a
26615 // BSD-style license that can be found in the LICENSE file.
26616
26617 // WARNING: Do not edit - generated code.
26618
26619 interface StorageEvent extends Event {
26620
26621 final String key;
26622
26623 final String newValue;
26624
26625 final String oldValue;
26626
26627 final Storage storageArea;
26628
26629 final String url;
26630
26631 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto rageAreaArg);
26632 }
26633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26634 // for details. All rights reserved. Use of this source code is governed by a
26635 // BSD-style license that can be found in the LICENSE file.
26636
26637 // WARNING: Do not edit - generated code.
26638
26639 interface StorageInfo {
26640
26641 static final int PERSISTENT = 1;
26642
26643 static final int TEMPORARY = 0;
26644
26645 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba ck, StorageInfoErrorCallback errorCallback]);
26646
26647 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb ack quotaCallback, StorageInfoErrorCallback errorCallback]);
26648 }
26649 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
26650 // for details. All rights reserved. Use of this source code is governed by a
26651 // BSD-style license that can be found in the LICENSE file.
26652
26653 // WARNING: Do not edit - generated code.
26654
26655 typedef bool StorageInfoErrorCallback(DOMException error);
26656 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
26657 // for details. All rights reserved. Use of this source code is governed by a
26658 // BSD-style license that can be found in the LICENSE file.
26659
26660 // WARNING: Do not edit - generated code.
26661
26662 typedef bool StorageInfoQuotaCallback(int grantedQuotaInBytes);
26663 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
26664 // for details. All rights reserved. Use of this source code is governed by a
26665 // BSD-style license that can be found in the LICENSE file.
26666
26667 // WARNING: Do not edit - generated code.
26668
26669 typedef bool StorageInfoUsageCallback(int currentUsageInBytes, int currentQuotaI nBytes);
26670 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
26671 // for details. All rights reserved. Use of this source code is governed by a
26672 // BSD-style license that can be found in the LICENSE file.
26673
26674 // WARNING: Do not edit - generated code.
26675
26676 typedef bool StringCallback(String data);
26677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26678 // for details. All rights reserved. Use of this source code is governed by a
26679 // BSD-style license that can be found in the LICENSE file.
26680
26681 // WARNING: Do not edit - generated code.
26682
26683 interface StyleElement extends Element {
26684
26685 bool disabled;
26686
26687 String media;
26688
26689 final StyleSheet sheet;
26690
26691 String type;
26692 }
26693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26694 // for details. All rights reserved. Use of this source code is governed by a
26695 // BSD-style license that can be found in the LICENSE file.
26696
26697 // WARNING: Do not edit - generated code.
26698
26699 interface StyleMedia {
26700
26701 final String type;
26702
26703 bool matchMedium(String mediaquery);
26704 }
26705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26706 // for details. All rights reserved. Use of this source code is governed by a
26707 // BSD-style license that can be found in the LICENSE file.
26708
26709 // WARNING: Do not edit - generated code.
26710
26711 interface StyleSheet {
26712
26713 bool disabled;
26714
26715 final String href;
26716
26717 final MediaList media;
26718
26719 final Node ownerNode;
26720
26721 final StyleSheet parentStyleSheet;
26722
26723 final String title;
26724
26725 final String type;
26726 }
26727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26728 // for details. All rights reserved. Use of this source code is governed by a
26729 // BSD-style license that can be found in the LICENSE file.
26730
26731 // WARNING: Do not edit - generated code.
26732
26733 interface StyleSheetList extends List<StyleSheet> {
26734
26735 final int length;
26736
26737 StyleSheet item(int index);
26738 }
26739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26740 // for details. All rights reserved. Use of this source code is governed by a
26741 // BSD-style license that can be found in the LICENSE file.
26742
26743 // WARNING: Do not edit - generated code.
26744
26745 interface TableCaptionElement extends Element {
26746
26747 String align;
26748 }
26749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26750 // for details. All rights reserved. Use of this source code is governed by a
26751 // BSD-style license that can be found in the LICENSE file.
26752
26753 // WARNING: Do not edit - generated code.
26754
26755 interface TableCellElement extends Element {
26756
26757 String abbr;
26758
26759 String align;
26760
26761 String axis;
26762
26763 String bgColor;
26764
26765 final int cellIndex;
26766
26767 String ch;
26768
26769 String chOff;
26770
26771 int colSpan;
26772
26773 String headers;
26774
26775 String height;
26776
26777 bool noWrap;
26778
26779 int rowSpan;
26780
26781 String scope;
26782
26783 String vAlign;
26784
26785 String width;
26786 }
26787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26788 // for details. All rights reserved. Use of this source code is governed by a
26789 // BSD-style license that can be found in the LICENSE file.
26790
26791 // WARNING: Do not edit - generated code.
26792
26793 interface TableColElement extends Element {
26794
26795 String align;
26796
26797 String ch;
26798
26799 String chOff;
26800
26801 int span;
26802
26803 String vAlign;
26804
26805 String width;
26806 }
26807 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26808 // for details. All rights reserved. Use of this source code is governed by a
26809 // BSD-style license that can be found in the LICENSE file.
26810
26811 // WARNING: Do not edit - generated code.
26812
26813 interface TableElement extends Element {
26814
26815 String align;
26816
26817 String bgColor;
26818
26819 String border;
26820
26821 TableCaptionElement caption;
26822
26823 String cellPadding;
26824
26825 String cellSpacing;
26826
26827 String frame;
26828
26829 final HTMLCollection rows;
26830
26831 String rules;
26832
26833 String summary;
26834
26835 final HTMLCollection tBodies;
26836
26837 TableSectionElement tFoot;
26838
26839 TableSectionElement tHead;
26840
26841 String width;
26842
26843 Element createCaption();
26844
26845 Element createTFoot();
26846
26847 Element createTHead();
26848
26849 void deleteCaption();
26850
26851 void deleteRow(int index);
26852
26853 void deleteTFoot();
26854
26855 void deleteTHead();
26856
26857 Element insertRow(int index);
26858 }
26859 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26860 // for details. All rights reserved. Use of this source code is governed by a
26861 // BSD-style license that can be found in the LICENSE file.
26862
26863 // WARNING: Do not edit - generated code.
26864
26865 interface TableRowElement extends Element {
26866
26867 String align;
26868
26869 String bgColor;
26870
26871 final HTMLCollection cells;
26872
26873 String ch;
26874
26875 String chOff;
26876
26877 final int rowIndex;
26878
26879 final int sectionRowIndex;
26880
26881 String vAlign;
26882
26883 void deleteCell(int index);
26884
26885 Element insertCell(int index);
26886 }
26887 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26888 // for details. All rights reserved. Use of this source code is governed by a
26889 // BSD-style license that can be found in the LICENSE file.
26890
26891 // WARNING: Do not edit - generated code.
26892
26893 interface TableSectionElement extends Element {
26894
26895 String align;
26896
26897 String ch;
26898
26899 String chOff;
26900
26901 final HTMLCollection rows;
26902
26903 String vAlign;
26904
26905 void deleteRow(int index);
26906
26907 Element insertRow(int index);
26908 }
26909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26910 // for details. All rights reserved. Use of this source code is governed by a
26911 // BSD-style license that can be found in the LICENSE file.
26912
26913 // WARNING: Do not edit - generated code.
26914
26915 interface Text extends CharacterData {
26916
26917 final String wholeText;
26918
26919 Text replaceWholeText(String content);
26920
26921 Text splitText(int offset);
26922 }
26923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26924 // for details. All rights reserved. Use of this source code is governed by a
26925 // BSD-style license that can be found in the LICENSE file.
26926
26927 // WARNING: Do not edit - generated code.
26928
26929 interface TextAreaElement extends Element {
26930
26931 bool autofocus;
26932
26933 int cols;
26934
26935 String defaultValue;
26936
26937 bool disabled;
26938
26939 final FormElement form;
26940
26941 final NodeList labels;
26942
26943 int maxLength;
26944
26945 String name;
26946
26947 String placeholder;
26948
26949 bool readOnly;
26950
26951 bool required;
26952
26953 int rows;
26954
26955 String selectionDirection;
26956
26957 int selectionEnd;
26958
26959 int selectionStart;
26960
26961 final int textLength;
26962
26963 final String type;
26964
26965 final String validationMessage;
26966
26967 final ValidityState validity;
26968
26969 String value;
26970
26971 final bool willValidate;
26972
26973 String wrap;
26974
26975 bool checkValidity();
26976
26977 void select();
26978
26979 void setCustomValidity(String error);
26980
26981 void setSelectionRange(int start, int end, [String direction]);
26982 }
26983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26984 // for details. All rights reserved. Use of this source code is governed by a
26985 // BSD-style license that can be found in the LICENSE file.
26986
26987 // WARNING: Do not edit - generated code.
26988
26989 interface TextEvent extends UIEvent {
26990
26991 final String data;
26992
26993 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Wind ow viewArg, String dataArg);
26994 }
26995 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
26996 // for details. All rights reserved. Use of this source code is governed by a
26997 // BSD-style license that can be found in the LICENSE file.
26998
26999 // WARNING: Do not edit - generated code.
27000
27001 interface TextMetrics {
27002
27003 final num width;
27004 }
27005 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27006 // for details. All rights reserved. Use of this source code is governed by a
27007 // BSD-style license that can be found in the LICENSE file.
27008
27009 // WARNING: Do not edit - generated code.
27010
27011 interface TextTrack {
27012
27013 static final int DISABLED = 0;
27014
27015 static final int HIDDEN = 1;
27016
27017 static final int SHOWING = 2;
27018
27019 final TextTrackCueList activeCues;
27020
27021 final TextTrackCueList cues;
27022
27023 final String kind;
27024
27025 final String label;
27026
27027 final String language;
27028
27029 int mode;
27030
27031 EventListener oncuechange;
27032
27033 void addCue(TextTrackCue cue);
27034
27035 void addEventListener(String type, EventListener listener, [bool useCapture]);
27036
27037 bool dispatchEvent(Event evt);
27038
27039 void removeCue(TextTrackCue cue);
27040
27041 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
27042 }
27043 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27044 // for details. All rights reserved. Use of this source code is governed by a
27045 // BSD-style license that can be found in the LICENSE file.
27046
27047 // WARNING: Do not edit - generated code.
27048
27049 interface TextTrackCue {
27050
27051 String alignment;
27052
27053 String direction;
27054
27055 num endTime;
27056
27057 String id;
27058
27059 int linePosition;
27060
27061 EventListener onenter;
27062
27063 EventListener onexit;
27064
27065 bool pauseOnExit;
27066
27067 int size;
27068
27069 bool snapToLines;
27070
27071 num startTime;
27072
27073 String text;
27074
27075 int textPosition;
27076
27077 final TextTrack track;
27078
27079 void addEventListener(String type, EventListener listener, [bool useCapture]);
27080
27081 bool dispatchEvent(Event evt);
27082
27083 DocumentFragment getCueAsHTML();
27084
27085 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
27086 }
27087 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27088 // for details. All rights reserved. Use of this source code is governed by a
27089 // BSD-style license that can be found in the LICENSE file.
27090
27091 // WARNING: Do not edit - generated code.
27092
27093 interface TextTrackCueList {
27094
27095 final int length;
27096
27097 TextTrackCue getCueById(String id);
27098
27099 TextTrackCue item(int index);
27100 }
27101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27102 // for details. All rights reserved. Use of this source code is governed by a
27103 // BSD-style license that can be found in the LICENSE file.
27104
27105 // WARNING: Do not edit - generated code.
27106
27107 interface TextTrackList {
27108
27109 final int length;
27110
27111 EventListener onaddtrack;
27112
27113 void addEventListener(String type, EventListener listener, [bool useCapture]);
27114
27115 bool dispatchEvent(Event evt);
27116
27117 TextTrack item(int index);
27118
27119 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
27120 }
27121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27122 // for details. All rights reserved. Use of this source code is governed by a
27123 // BSD-style license that can be found in the LICENSE file.
27124
27125 // WARNING: Do not edit - generated code.
27126
27127 interface TimeRanges {
27128
27129 final int length;
27130
27131 num end(int index);
27132
27133 num start(int index);
27134 }
27135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27136 // for details. All rights reserved. Use of this source code is governed by a
27137 // BSD-style license that can be found in the LICENSE file.
27138
27139 // WARNING: Do not edit - generated code.
27140
27141 interface TitleElement extends Element {
27142
27143 String text;
27144 }
27145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27146 // for details. All rights reserved. Use of this source code is governed by a
27147 // BSD-style license that can be found in the LICENSE file.
27148
27149 // WARNING: Do not edit - generated code.
27150
27151 interface Touch {
27152
27153 final int clientX;
27154
27155 final int clientY;
27156
27157 final int identifier;
27158
27159 final int pageX;
27160
27161 final int pageY;
27162
27163 final int screenX;
27164
27165 final int screenY;
27166
27167 final EventTarget target;
27168
27169 final num webkitForce;
27170
27171 final int webkitRadiusX;
27172
27173 final int webkitRadiusY;
27174
27175 final num webkitRotationAngle;
27176 }
27177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27178 // for details. All rights reserved. Use of this source code is governed by a
27179 // BSD-style license that can be found in the LICENSE file.
27180
27181 // WARNING: Do not edit - generated code.
27182
27183 interface TouchEvent extends UIEvent {
27184
27185 final bool altKey;
27186
27187 final TouchList changedTouches;
27188
27189 final bool ctrlKey;
27190
27191 final bool metaKey;
27192
27193 final bool shiftKey;
27194
27195 final TouchList targetTouches;
27196
27197 final TouchList touches;
27198
27199 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);
27200 }
27201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27202 // for details. All rights reserved. Use of this source code is governed by a
27203 // BSD-style license that can be found in the LICENSE file.
27204
27205 // WARNING: Do not edit - generated code.
27206
27207 interface TouchList extends List<Touch> {
27208
27209 final int length;
27210
27211 Touch item(int index);
27212 }
27213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27214 // for details. All rights reserved. Use of this source code is governed by a
27215 // BSD-style license that can be found in the LICENSE file.
27216
27217 // WARNING: Do not edit - generated code.
27218
27219 interface TrackElement extends Element {
27220
27221 static final int ERROR = 3;
27222
27223 static final int LOADED = 2;
27224
27225 static final int LOADING = 1;
27226
27227 static final int NONE = 0;
27228
27229 bool isDefault;
27230
27231 String kind;
27232
27233 String label;
27234
27235 final int readyState;
27236
27237 String src;
27238
27239 String srclang;
27240
27241 final TextTrack track;
27242 }
27243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27244 // for details. All rights reserved. Use of this source code is governed by a
27245 // BSD-style license that can be found in the LICENSE file.
27246
27247 // WARNING: Do not edit - generated code.
27248
27249 interface TrackEvent extends Event {
27250
27251 final Object track;
27252 }
27253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27254 // for details. All rights reserved. Use of this source code is governed by a
27255 // BSD-style license that can be found in the LICENSE file.
27256
27257 // WARNING: Do not edit - generated code.
27258
27259 interface TransitionEvent extends Event {
27260
27261 final num elapsedTime;
27262
27263 final String propertyName;
27264 }
27265 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27266 // for details. All rights reserved. Use of this source code is governed by a
27267 // BSD-style license that can be found in the LICENSE file.
27268
27269 // WARNING: Do not edit - generated code.
27270
27271 interface TreeWalker {
27272
27273 Node currentNode;
27274
27275 final bool expandEntityReferences;
27276
27277 final NodeFilter filter;
27278
27279 final Node root;
27280
27281 final int whatToShow;
27282
27283 Node firstChild();
27284
27285 Node lastChild();
27286
27287 Node nextNode();
27288
27289 Node nextSibling();
27290
27291 Node parentNode();
27292
27293 Node previousNode();
27294
27295 Node previousSibling();
27296 }
27297 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27298 // for details. All rights reserved. Use of this source code is governed by a
27299 // BSD-style license that can be found in the LICENSE file.
27300
27301 // WARNING: Do not edit - generated code.
27302
27303 interface UIEvent extends Event {
27304
27305 final int charCode;
27306
27307 final int detail;
27308
27309 final int keyCode;
27310
27311 final int layerX;
27312
27313 final int layerY;
27314
27315 final int pageX;
27316
27317 final int pageY;
27318
27319 final Window view;
27320
27321 final int which;
27322
27323 void initUIEvent(String type, bool canBubble, bool cancelable, Window view, in t detail);
27324 }
27325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27326 // for details. All rights reserved. Use of this source code is governed by a
27327 // BSD-style license that can be found in the LICENSE file.
27328
27329 // WARNING: Do not edit - generated code.
27330
27331 interface UListElement extends Element {
27332
27333 bool compact;
27334
27335 String type;
27336 }
27337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27338 // for details. All rights reserved. Use of this source code is governed by a
27339 // BSD-style license that can be found in the LICENSE file.
27340
27341 // WARNING: Do not edit - generated code.
27342
27343 interface Uint16Array extends ArrayBufferView, List<int> default _TypedArrayFact oryProvider {
27344
27345 Uint16Array(int length);
27346
27347 Uint16Array.fromList(List<int> list);
27348
27349 Uint16Array.fromBuffer(ArrayBuffer buffer);
27350
27351 static final int BYTES_PER_ELEMENT = 2;
27352
27353 final int length;
27354
27355 void setElements(Object array, [int offset]);
27356
27357 Uint16Array subarray(int start, [int end]);
27358 }
27359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27360 // for details. All rights reserved. Use of this source code is governed by a
27361 // BSD-style license that can be found in the LICENSE file.
27362
27363 // WARNING: Do not edit - generated code.
27364
27365 interface Uint32Array extends ArrayBufferView, List<int> default _TypedArrayFact oryProvider {
27366
27367 Uint32Array(int length);
27368
27369 Uint32Array.fromList(List<int> list);
27370
27371 Uint32Array.fromBuffer(ArrayBuffer buffer);
27372
27373 static final int BYTES_PER_ELEMENT = 4;
27374
27375 final int length;
27376
27377 void setElements(Object array, [int offset]);
27378
27379 Uint32Array subarray(int start, [int end]);
27380 }
27381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27382 // for details. All rights reserved. Use of this source code is governed by a
27383 // BSD-style license that can be found in the LICENSE file.
27384
27385 // WARNING: Do not edit - generated code.
27386
27387 interface Uint8Array extends ArrayBufferView, List<int> default _TypedArrayFacto ryProvider {
27388
27389 Uint8Array(int length);
27390
27391 Uint8Array.fromList(List<int> list);
27392
27393 Uint8Array.fromBuffer(ArrayBuffer buffer);
27394
27395 static final int BYTES_PER_ELEMENT = 1;
27396
27397 final int length;
27398
27399 void setElements(Object array, [int offset]);
27400
27401 Uint8Array subarray(int start, [int end]);
27402 }
27403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27404 // for details. All rights reserved. Use of this source code is governed by a
27405 // BSD-style license that can be found in the LICENSE file.
27406
27407 // WARNING: Do not edit - generated code.
27408
27409 interface Uint8ClampedArray extends Uint8Array default _TypedArrayFactoryProvide r {
27410
27411 Uint8ClampedArray(int length);
27412
27413 Uint8ClampedArray.fromList(List<int> list);
27414
27415 Uint8ClampedArray.fromBuffer(ArrayBuffer buffer);
27416
27417 final int length;
27418
27419 Uint8ClampedArray subarray(int start, [int end]);
27420 }
27421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27422 // for details. All rights reserved. Use of this source code is governed by a
27423 // BSD-style license that can be found in the LICENSE file.
27424
27425 // WARNING: Do not edit - generated code.
27426
27427 interface UnknownElement extends Element {
27428 }
27429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27430 // for details. All rights reserved. Use of this source code is governed by a
27431 // BSD-style license that can be found in the LICENSE file.
27432
27433 // WARNING: Do not edit - generated code.
27434
27435 interface ValidityState {
27436
27437 final bool customError;
27438
27439 final bool patternMismatch;
27440
27441 final bool rangeOverflow;
27442
27443 final bool rangeUnderflow;
27444
27445 final bool stepMismatch;
27446
27447 final bool tooLong;
27448
27449 final bool typeMismatch;
27450
27451 final bool valid;
27452
27453 final bool valueMissing;
27454 }
27455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27456 // for details. All rights reserved. Use of this source code is governed by a
27457 // BSD-style license that can be found in the LICENSE file.
27458
27459 // WARNING: Do not edit - generated code.
27460
27461 interface VideoElement extends MediaElement {
27462
27463 int height;
27464
27465 String poster;
27466
27467 final int videoHeight;
27468
27469 final int videoWidth;
27470
27471 final int webkitDecodedFrameCount;
27472
27473 final bool webkitDisplayingFullscreen;
27474
27475 final int webkitDroppedFrameCount;
27476
27477 final bool webkitSupportsFullscreen;
27478
27479 int width;
27480
27481 void webkitEnterFullScreen();
27482
27483 void webkitEnterFullscreen();
27484
27485 void webkitExitFullScreen();
27486
27487 void webkitExitFullscreen();
27488 }
27489 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
27490 // for details. All rights reserved. Use of this source code is governed by a
27491 // BSD-style license that can be found in the LICENSE file.
27492
27493 // WARNING: Do not edit - generated code.
27494
27495 typedef void VoidCallback();
27496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27497 // for details. All rights reserved. Use of this source code is governed by a
27498 // BSD-style license that can be found in the LICENSE file.
27499
27500 // WARNING: Do not edit - generated code.
27501
27502 interface WaveShaperNode extends AudioNode {
27503
27504 Float32Array curve;
27505 }
27506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27507 // for details. All rights reserved. Use of this source code is governed by a
27508 // BSD-style license that can be found in the LICENSE file.
27509
27510 // WARNING: Do not edit - generated code.
27511
27512 interface WebGLActiveInfo {
27513
27514 final String name;
27515
27516 final int size;
27517
27518 final int type;
27519 }
27520 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27521 // for details. All rights reserved. Use of this source code is governed by a
27522 // BSD-style license that can be found in the LICENSE file.
27523
27524 // WARNING: Do not edit - generated code.
27525
27526 interface WebGLBuffer {
27527 }
27528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27529 // for details. All rights reserved. Use of this source code is governed by a
27530 // BSD-style license that can be found in the LICENSE file.
27531
27532 // WARNING: Do not edit - generated code.
27533
27534 interface WebGLCompressedTextures {
27535
27536 static final int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02;
27537
27538 static final int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
27539
27540 static final int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
27541
27542 static final int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
27543
27544 static final int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
27545
27546 static final int ETC1_RGB8_OES = 0x8D64;
27547
27548 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data);
27549
27550 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data);
27551 }
27552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27553 // for details. All rights reserved. Use of this source code is governed by a
27554 // BSD-style license that can be found in the LICENSE file.
27555
27556 // WARNING: Do not edit - generated code.
27557
27558 interface WebGLContextAttributes {
27559
27560 bool alpha;
27561
27562 bool antialias;
27563
27564 bool depth;
27565
27566 bool premultipliedAlpha;
27567
27568 bool preserveDrawingBuffer;
27569
27570 bool stencil;
27571 }
27572 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27573 // for details. All rights reserved. Use of this source code is governed by a
27574 // BSD-style license that can be found in the LICENSE file.
27575
27576 // WARNING: Do not edit - generated code.
27577
27578 interface WebGLContextEvent extends Event {
27579
27580 final String statusMessage;
27581 }
27582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27583 // for details. All rights reserved. Use of this source code is governed by a
27584 // BSD-style license that can be found in the LICENSE file.
27585
27586 // WARNING: Do not edit - generated code.
27587
27588 interface WebGLDebugRendererInfo {
27589
27590 static final int UNMASKED_RENDERER_WEBGL = 0x9246;
27591
27592 static final int UNMASKED_VENDOR_WEBGL = 0x9245;
27593 }
27594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27595 // for details. All rights reserved. Use of this source code is governed by a
27596 // BSD-style license that can be found in the LICENSE file.
27597
27598 // WARNING: Do not edit - generated code.
27599
27600 interface WebGLDebugShaders {
27601
27602 String getTranslatedShaderSource(WebGLShader shader);
27603 }
27604 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27605 // for details. All rights reserved. Use of this source code is governed by a
27606 // BSD-style license that can be found in the LICENSE file.
27607
27608 // WARNING: Do not edit - generated code.
27609
27610 interface WebGLFramebuffer {
27611 }
27612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27613 // for details. All rights reserved. Use of this source code is governed by a
27614 // BSD-style license that can be found in the LICENSE file.
27615
27616 // WARNING: Do not edit - generated code.
27617
27618 interface WebGLLoseContext {
27619
27620 void loseContext();
27621
27622 void restoreContext();
27623 }
27624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27625 // for details. All rights reserved. Use of this source code is governed by a
27626 // BSD-style license that can be found in the LICENSE file.
27627
27628 // WARNING: Do not edit - generated code.
27629
27630 interface WebGLProgram {
27631 }
27632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27633 // for details. All rights reserved. Use of this source code is governed by a
27634 // BSD-style license that can be found in the LICENSE file.
27635
27636 // WARNING: Do not edit - generated code.
27637
27638 interface WebGLRenderbuffer {
27639 }
27640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
27641 // for details. All rights reserved. Use of this source code is governed by a
27642 // BSD-style license that can be found in the LICENSE file.
27643
27644 // WARNING: Do not edit - generated code.
27645
27646 interface WebGLRenderingContext extends CanvasRenderingContext {
27647
27648 static final int ACTIVE_ATTRIBUTES = 0x8B89;
27649
27650 static final int ACTIVE_TEXTURE = 0x84E0;
27651
27652 static final int ACTIVE_UNIFORMS = 0x8B86;
27653
27654 static final int ALIASED_LINE_WIDTH_RANGE = 0x846E;
27655
27656 static final int ALIASED_POINT_SIZE_RANGE = 0x846D;
27657
27658 static final int ALPHA = 0x1906;
27659
27660 static final int ALPHA_BITS = 0x0D55;
27661
27662 static final int ALWAYS = 0x0207;
27663
27664 static final int ARRAY_BUFFER = 0x8892;
27665
27666 static final int ARRAY_BUFFER_BINDING = 0x8894;
27667
27668 static final int ATTACHED_SHADERS = 0x8B85;
27669
27670 static final int BACK = 0x0405;
27671
27672 static final int BLEND = 0x0BE2;
27673
27674 static final int BLEND_COLOR = 0x8005;
27675
27676 static final int BLEND_DST_ALPHA = 0x80CA;
27677
27678 static final int BLEND_DST_RGB = 0x80C8;
27679
27680 static final int BLEND_EQUATION = 0x8009;
27681
27682 static final int BLEND_EQUATION_ALPHA = 0x883D;
27683
27684 static final int BLEND_EQUATION_RGB = 0x8009;
27685
27686 static final int BLEND_SRC_ALPHA = 0x80CB;
27687
27688 static final int BLEND_SRC_RGB = 0x80C9;
27689
27690 static final int BLUE_BITS = 0x0D54;
27691
27692 static final int BOOL = 0x8B56;
27693
27694 static final int BOOL_VEC2 = 0x8B57;
27695
27696 static final int BOOL_VEC3 = 0x8B58;
27697
27698 static final int BOOL_VEC4 = 0x8B59;
27699
27700 static final int BROWSER_DEFAULT_WEBGL = 0x9244;
27701
27702 static final int BUFFER_SIZE = 0x8764;
27703
27704 static final int BUFFER_USAGE = 0x8765;
27705
27706 static final int BYTE = 0x1400;
27707
27708 static final int CCW = 0x0901;
27709
27710 static final int CLAMP_TO_EDGE = 0x812F;
27711
27712 static final int COLOR_ATTACHMENT0 = 0x8CE0;
27713
27714 static final int COLOR_BUFFER_BIT = 0x00004000;
27715
27716 static final int COLOR_CLEAR_VALUE = 0x0C22;
27717
27718 static final int COLOR_WRITEMASK = 0x0C23;
27719
27720 static final int COMPILE_STATUS = 0x8B81;
27721
27722 static final int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
27723
27724 static final int CONSTANT_ALPHA = 0x8003;
27725
27726 static final int CONSTANT_COLOR = 0x8001;
27727
27728 static final int CONTEXT_LOST_WEBGL = 0x9242;
27729
27730 static final int CULL_FACE = 0x0B44;
27731
27732 static final int CULL_FACE_MODE = 0x0B45;
27733
27734 static final int CURRENT_PROGRAM = 0x8B8D;
27735
27736 static final int CURRENT_VERTEX_ATTRIB = 0x8626;
27737
27738 static final int CW = 0x0900;
27739
27740 static final int DECR = 0x1E03;
27741
27742 static final int DECR_WRAP = 0x8508;
27743
27744 static final int DELETE_STATUS = 0x8B80;
27745
27746 static final int DEPTH_ATTACHMENT = 0x8D00;
27747
27748 static final int DEPTH_BITS = 0x0D56;
27749
27750 static final int DEPTH_BUFFER_BIT = 0x00000100;
27751
27752 static final int DEPTH_CLEAR_VALUE = 0x0B73;
27753
27754 static final int DEPTH_COMPONENT = 0x1902;
27755
27756 static final int DEPTH_COMPONENT16 = 0x81A5;
27757
27758 static final int DEPTH_FUNC = 0x0B74;
27759
27760 static final int DEPTH_RANGE = 0x0B70;
27761
27762 static final int DEPTH_STENCIL = 0x84F9;
27763
27764 static final int DEPTH_STENCIL_ATTACHMENT = 0x821A;
27765
27766 static final int DEPTH_TEST = 0x0B71;
27767
27768 static final int DEPTH_WRITEMASK = 0x0B72;
27769
27770 static final int DITHER = 0x0BD0;
27771
27772 static final int DONT_CARE = 0x1100;
27773
27774 static final int DST_ALPHA = 0x0304;
27775
27776 static final int DST_COLOR = 0x0306;
27777
27778 static final int DYNAMIC_DRAW = 0x88E8;
27779
27780 static final int ELEMENT_ARRAY_BUFFER = 0x8893;
27781
27782 static final int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
27783
27784 static final int EQUAL = 0x0202;
27785
27786 static final int FASTEST = 0x1101;
27787
27788 static final int FLOAT = 0x1406;
27789
27790 static final int FLOAT_MAT2 = 0x8B5A;
27791
27792 static final int FLOAT_MAT3 = 0x8B5B;
27793
27794 static final int FLOAT_MAT4 = 0x8B5C;
27795
27796 static final int FLOAT_VEC2 = 0x8B50;
27797
27798 static final int FLOAT_VEC3 = 0x8B51;
27799
27800 static final int FLOAT_VEC4 = 0x8B52;
27801
27802 static final int FRAGMENT_SHADER = 0x8B30;
27803
27804 static final int FRAMEBUFFER = 0x8D40;
27805
27806 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
27807
27808 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
27809
27810 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
27811
27812 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
27813
27814 static final int FRAMEBUFFER_BINDING = 0x8CA6;
27815
27816 static final int FRAMEBUFFER_COMPLETE = 0x8CD5;
27817
27818 static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
27819
27820 static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
27821
27822 static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
27823
27824 static final int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
27825
27826 static final int FRONT = 0x0404;
27827
27828 static final int FRONT_AND_BACK = 0x0408;
27829
27830 static final int FRONT_FACE = 0x0B46;
27831
27832 static final int FUNC_ADD = 0x8006;
27833
27834 static final int FUNC_REVERSE_SUBTRACT = 0x800B;
27835
27836 static final int FUNC_SUBTRACT = 0x800A;
27837
27838 static final int GENERATE_MIPMAP_HINT = 0x8192;
27839
27840 static final int GEQUAL = 0x0206;
27841
27842 static final int GREATER = 0x0204;
27843
27844 static final int GREEN_BITS = 0x0D53;
27845
27846 static final int HIGH_FLOAT = 0x8DF2;
27847
27848 static final int HIGH_INT = 0x8DF5;
27849
27850 static final int INCR = 0x1E02;
27851
27852 static final int INCR_WRAP = 0x8507;
27853
27854 static final int INT = 0x1404;
27855
27856 static final int INT_VEC2 = 0x8B53;
27857
27858 static final int INT_VEC3 = 0x8B54;
27859
27860 static final int INT_VEC4 = 0x8B55;
27861
27862 static final int INVALID_ENUM = 0x0500;
27863
27864 static final int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
27865
27866 static final int INVALID_OPERATION = 0x0502;
27867
27868 static final int INVALID_VALUE = 0x0501;
27869
27870 static final int INVERT = 0x150A;
27871
27872 static final int KEEP = 0x1E00;
27873
27874 static final int LEQUAL = 0x0203;
27875
27876 static final int LESS = 0x0201;
27877
27878 static final int LINEAR = 0x2601;
27879
27880 static final int LINEAR_MIPMAP_LINEAR = 0x2703;
27881
27882 static final int LINEAR_MIPMAP_NEAREST = 0x2701;
27883
27884 static final int LINES = 0x0001;
27885
27886 static final int LINE_LOOP = 0x0002;
27887
27888 static final int LINE_STRIP = 0x0003;
27889
27890 static final int LINE_WIDTH = 0x0B21;
27891
27892 static final int LINK_STATUS = 0x8B82;
27893
27894 static final int LOW_FLOAT = 0x8DF0;
27895
27896 static final int LOW_INT = 0x8DF3;
27897
27898 static final int LUMINANCE = 0x1909;
27899
27900 static final int LUMINANCE_ALPHA = 0x190A;
27901
27902 static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
27903
27904 static final int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
27905
27906 static final int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
27907
27908 static final int MAX_RENDERBUFFER_SIZE = 0x84E8;
27909
27910 static final int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
27911
27912 static final int MAX_TEXTURE_SIZE = 0x0D33;
27913
27914 static final int MAX_VARYING_VECTORS = 0x8DFC;
27915
27916 static final int MAX_VERTEX_ATTRIBS = 0x8869;
27917
27918 static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
27919
27920 static final int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
27921
27922 static final int MAX_VIEWPORT_DIMS = 0x0D3A;
27923
27924 static final int MEDIUM_FLOAT = 0x8DF1;
27925
27926 static final int MEDIUM_INT = 0x8DF4;
27927
27928 static final int MIRRORED_REPEAT = 0x8370;
27929
27930 static final int NEAREST = 0x2600;
27931
27932 static final int NEAREST_MIPMAP_LINEAR = 0x2702;
27933
27934 static final int NEAREST_MIPMAP_NEAREST = 0x2700;
27935
27936 static final int NEVER = 0x0200;
27937
27938 static final int NICEST = 0x1102;
27939
27940 static final int NONE = 0;
27941
27942 static final int NOTEQUAL = 0x0205;
27943
27944 static final int NO_ERROR = 0;
27945
27946 static final int NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2;
27947
27948 static final int ONE = 1;
27949
27950 static final int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
27951
27952 static final int ONE_MINUS_CONSTANT_COLOR = 0x8002;
27953
27954 static final int ONE_MINUS_DST_ALPHA = 0x0305;
27955
27956 static final int ONE_MINUS_DST_COLOR = 0x0307;
27957
27958 static final int ONE_MINUS_SRC_ALPHA = 0x0303;
27959
27960 static final int ONE_MINUS_SRC_COLOR = 0x0301;
27961
27962 static final int OUT_OF_MEMORY = 0x0505;
27963
27964 static final int PACK_ALIGNMENT = 0x0D05;
27965
27966 static final int POINTS = 0x0000;
27967
27968 static final int POLYGON_OFFSET_FACTOR = 0x8038;
27969
27970 static final int POLYGON_OFFSET_FILL = 0x8037;
27971
27972 static final int POLYGON_OFFSET_UNITS = 0x2A00;
27973
27974 static final int RED_BITS = 0x0D52;
27975
27976 static final int RENDERBUFFER = 0x8D41;
27977
27978 static final int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
27979
27980 static final int RENDERBUFFER_BINDING = 0x8CA7;
27981
27982 static final int RENDERBUFFER_BLUE_SIZE = 0x8D52;
27983
27984 static final int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
27985
27986 static final int RENDERBUFFER_GREEN_SIZE = 0x8D51;
27987
27988 static final int RENDERBUFFER_HEIGHT = 0x8D43;
27989
27990 static final int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
27991
27992 static final int RENDERBUFFER_RED_SIZE = 0x8D50;
27993
27994 static final int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
27995
27996 static final int RENDERBUFFER_WIDTH = 0x8D42;
27997
27998 static final int RENDERER = 0x1F01;
27999
28000 static final int REPEAT = 0x2901;
28001
28002 static final int REPLACE = 0x1E01;
28003
28004 static final int RGB = 0x1907;
28005
28006 static final int RGB565 = 0x8D62;
28007
28008 static final int RGB5_A1 = 0x8057;
28009
28010 static final int RGBA = 0x1908;
28011
28012 static final int RGBA4 = 0x8056;
28013
28014 static final int SAMPLER_2D = 0x8B5E;
28015
28016 static final int SAMPLER_CUBE = 0x8B60;
28017
28018 static final int SAMPLES = 0x80A9;
28019
28020 static final int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
28021
28022 static final int SAMPLE_BUFFERS = 0x80A8;
28023
28024 static final int SAMPLE_COVERAGE = 0x80A0;
28025
28026 static final int SAMPLE_COVERAGE_INVERT = 0x80AB;
28027
28028 static final int SAMPLE_COVERAGE_VALUE = 0x80AA;
28029
28030 static final int SCISSOR_BOX = 0x0C10;
28031
28032 static final int SCISSOR_TEST = 0x0C11;
28033
28034 static final int SHADER_COMPILER = 0x8DFA;
28035
28036 static final int SHADER_TYPE = 0x8B4F;
28037
28038 static final int SHADING_LANGUAGE_VERSION = 0x8B8C;
28039
28040 static final int SHORT = 0x1402;
28041
28042 static final int SRC_ALPHA = 0x0302;
28043
28044 static final int SRC_ALPHA_SATURATE = 0x0308;
28045
28046 static final int SRC_COLOR = 0x0300;
28047
28048 static final int STATIC_DRAW = 0x88E4;
28049
28050 static final int STENCIL_ATTACHMENT = 0x8D20;
28051
28052 static final int STENCIL_BACK_FAIL = 0x8801;
28053
28054 static final int STENCIL_BACK_FUNC = 0x8800;
28055
28056 static final int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
28057
28058 static final int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
28059
28060 static final int STENCIL_BACK_REF = 0x8CA3;
28061
28062 static final int STENCIL_BACK_VALUE_MASK = 0x8CA4;
28063
28064 static final int STENCIL_BACK_WRITEMASK = 0x8CA5;
28065
28066 static final int STENCIL_BITS = 0x0D57;
28067
28068 static final int STENCIL_BUFFER_BIT = 0x00000400;
28069
28070 static final int STENCIL_CLEAR_VALUE = 0x0B91;
28071
28072 static final int STENCIL_FAIL = 0x0B94;
28073
28074 static final int STENCIL_FUNC = 0x0B92;
28075
28076 static final int STENCIL_INDEX = 0x1901;
28077
28078 static final int STENCIL_INDEX8 = 0x8D48;
28079
28080 static final int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
28081
28082 static final int STENCIL_PASS_DEPTH_PASS = 0x0B96;
28083
28084 static final int STENCIL_REF = 0x0B97;
28085
28086 static final int STENCIL_TEST = 0x0B90;
28087
28088 static final int STENCIL_VALUE_MASK = 0x0B93;
28089
28090 static final int STENCIL_WRITEMASK = 0x0B98;
28091
28092 static final int STREAM_DRAW = 0x88E0;
28093
28094 static final int SUBPIXEL_BITS = 0x0D50;
28095
28096 static final int TEXTURE = 0x1702;
28097
28098 static final int TEXTURE0 = 0x84C0;
28099
28100 static final int TEXTURE1 = 0x84C1;
28101
28102 static final int TEXTURE10 = 0x84CA;
28103
28104 static final int TEXTURE11 = 0x84CB;
28105
28106 static final int TEXTURE12 = 0x84CC;
28107
28108 static final int TEXTURE13 = 0x84CD;
28109
28110 static final int TEXTURE14 = 0x84CE;
28111
28112 static final int TEXTURE15 = 0x84CF;
28113
28114 static final int TEXTURE16 = 0x84D0;
28115
28116 static final int TEXTURE17 = 0x84D1;
28117
28118 static final int TEXTURE18 = 0x84D2;
28119
28120 static final int TEXTURE19 = 0x84D3;
28121
28122 static final int TEXTURE2 = 0x84C2;
28123
28124 static final int TEXTURE20 = 0x84D4;
28125
28126 static final int TEXTURE21 = 0x84D5;
28127
28128 static final int TEXTURE22 = 0x84D6;
28129
28130 static final int TEXTURE23 = 0x84D7;
28131
28132 static final int TEXTURE24 = 0x84D8;
28133
28134 static final int TEXTURE25 = 0x84D9;
28135
28136 static final int TEXTURE26 = 0x84DA;
28137
28138 static final int TEXTURE27 = 0x84DB;
28139
28140 static final int TEXTURE28 = 0x84DC;
28141
28142 static final int TEXTURE29 = 0x84DD;
28143
28144 static final int TEXTURE3 = 0x84C3;
28145
28146 static final int TEXTURE30 = 0x84DE;
28147
28148 static final int TEXTURE31 = 0x84DF;
28149
28150 static final int TEXTURE4 = 0x84C4;
28151
28152 static final int TEXTURE5 = 0x84C5;
28153
28154 static final int TEXTURE6 = 0x84C6;
28155
28156 static final int TEXTURE7 = 0x84C7;
28157
28158 static final int TEXTURE8 = 0x84C8;
28159
28160 static final int TEXTURE9 = 0x84C9;
28161
28162 static final int TEXTURE_2D = 0x0DE1;
28163
28164 static final int TEXTURE_BINDING_2D = 0x8069;
28165
28166 static final int TEXTURE_BINDING_CUBE_MAP = 0x8514;
28167
28168 static final int TEXTURE_CUBE_MAP = 0x8513;
28169
28170 static final int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
28171
28172 static final int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
28173
28174 static final int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
28175
28176 static final int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
28177
28178 static final int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
28179
28180 static final int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
28181
28182 static final int TEXTURE_MAG_FILTER = 0x2800;
28183
28184 static final int TEXTURE_MIN_FILTER = 0x2801;
28185
28186 static final int TEXTURE_WRAP_S = 0x2802;
28187
28188 static final int TEXTURE_WRAP_T = 0x2803;
28189
28190 static final int TRIANGLES = 0x0004;
28191
28192 static final int TRIANGLE_FAN = 0x0006;
28193
28194 static final int TRIANGLE_STRIP = 0x0005;
28195
28196 static final int UNPACK_ALIGNMENT = 0x0CF5;
28197
28198 static final int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
28199
28200 static final int UNPACK_FLIP_Y_WEBGL = 0x9240;
28201
28202 static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
28203
28204 static final int UNSIGNED_BYTE = 0x1401;
28205
28206 static final int UNSIGNED_INT = 0x1405;
28207
28208 static final int UNSIGNED_SHORT = 0x1403;
28209
28210 static final int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
28211
28212 static final int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
28213
28214 static final int UNSIGNED_SHORT_5_6_5 = 0x8363;
28215
28216 static final int VALIDATE_STATUS = 0x8B83;
28217
28218 static final int VENDOR = 0x1F00;
28219
28220 static final int VERSION = 0x1F02;
28221
28222 static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
28223
28224 static final int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
28225
28226 static final int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
28227
28228 static final int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
28229
28230 static final int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
28231
28232 static final int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
28233
28234 static final int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
28235
28236 static final int VERTEX_SHADER = 0x8B31;
28237
28238 static final int VIEWPORT = 0x0BA2;
28239
28240 static final int ZERO = 0;
28241
28242 final int drawingBufferHeight;
28243
28244 final int drawingBufferWidth;
28245
28246 void activeTexture(int texture);
28247
28248 void attachShader(WebGLProgram program, WebGLShader shader);
28249
28250 void bindAttribLocation(WebGLProgram program, int index, String name);
28251
28252 void bindBuffer(int target, WebGLBuffer buffer);
28253
28254 void bindFramebuffer(int target, WebGLFramebuffer framebuffer);
28255
28256 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer);
28257
28258 void bindTexture(int target, WebGLTexture texture);
28259
28260 void blendColor(num red, num green, num blue, num alpha);
28261
28262 void blendEquation(int mode);
28263
28264 void blendEquationSeparate(int modeRGB, int modeAlpha);
28265
28266 void blendFunc(int sfactor, int dfactor);
28267
28268 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha);
28269
28270 void bufferData(int target, var data_OR_size, int usage);
28271
28272 void bufferSubData(int target, int offset, var data);
28273
28274 int checkFramebufferStatus(int target);
28275
28276 void clear(int mask);
28277
28278 void clearColor(num red, num green, num blue, num alpha);
28279
28280 void clearDepth(num depth);
28281
28282 void clearStencil(int s);
28283
28284 void colorMask(bool red, bool green, bool blue, bool alpha);
28285
28286 void compileShader(WebGLShader shader);
28287
28288 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data);
28289
28290 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data);
28291
28292 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border);
28293
28294 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height);
28295
28296 WebGLBuffer createBuffer();
28297
28298 WebGLFramebuffer createFramebuffer();
28299
28300 WebGLProgram createProgram();
28301
28302 WebGLRenderbuffer createRenderbuffer();
28303
28304 WebGLShader createShader(int type);
28305
28306 WebGLTexture createTexture();
28307
28308 void cullFace(int mode);
28309
28310 void deleteBuffer(WebGLBuffer buffer);
28311
28312 void deleteFramebuffer(WebGLFramebuffer framebuffer);
28313
28314 void deleteProgram(WebGLProgram program);
28315
28316 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer);
28317
28318 void deleteShader(WebGLShader shader);
28319
28320 void deleteTexture(WebGLTexture texture);
28321
28322 void depthFunc(int func);
28323
28324 void depthMask(bool flag);
28325
28326 void depthRange(num zNear, num zFar);
28327
28328 void detachShader(WebGLProgram program, WebGLShader shader);
28329
28330 void disable(int cap);
28331
28332 void disableVertexAttribArray(int index);
28333
28334 void drawArrays(int mode, int first, int count);
28335
28336 void drawElements(int mode, int count, int type, int offset);
28337
28338 void enable(int cap);
28339
28340 void enableVertexAttribArray(int index);
28341
28342 void finish();
28343
28344 void flush();
28345
28346 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, WebGLRenderbuffer renderbuffer);
28347
28348 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level);
28349
28350 void frontFace(int mode);
28351
28352 void generateMipmap(int target);
28353
28354 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index);
28355
28356 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index);
28357
28358 List getAttachedShaders(WebGLProgram program);
28359
28360 int getAttribLocation(WebGLProgram program, String name);
28361
28362 Object getBufferParameter(int target, int pname);
28363
28364 WebGLContextAttributes getContextAttributes();
28365
28366 int getError();
28367
28368 Object getExtension(String name);
28369
28370 Object getFramebufferAttachmentParameter(int target, int attachment, int pname );
28371
28372 Object getParameter(int pname);
28373
28374 String getProgramInfoLog(WebGLProgram program);
28375
28376 Object getProgramParameter(WebGLProgram program, int pname);
28377
28378 Object getRenderbufferParameter(int target, int pname);
28379
28380 String getShaderInfoLog(WebGLShader shader);
28381
28382 Object getShaderParameter(WebGLShader shader, int pname);
28383
28384 String getShaderSource(WebGLShader shader);
28385
28386 Object getTexParameter(int target, int pname);
28387
28388 Object getUniform(WebGLProgram program, WebGLUniformLocation location);
28389
28390 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name);
28391
28392 Object getVertexAttrib(int index, int pname);
28393
28394 int getVertexAttribOffset(int index, int pname);
28395
28396 void hint(int target, int mode);
28397
28398 bool isBuffer(WebGLBuffer buffer);
28399
28400 bool isContextLost();
28401
28402 bool isEnabled(int cap);
28403
28404 bool isFramebuffer(WebGLFramebuffer framebuffer);
28405
28406 bool isProgram(WebGLProgram program);
28407
28408 bool isRenderbuffer(WebGLRenderbuffer renderbuffer);
28409
28410 bool isShader(WebGLShader shader);
28411
28412 bool isTexture(WebGLTexture texture);
28413
28414 void lineWidth(num width);
28415
28416 void linkProgram(WebGLProgram program);
28417
28418 void pixelStorei(int pname, int param);
28419
28420 void polygonOffset(num factor, num units);
28421
28422 void readPixels(int x, int y, int width, int height, int format, int type, Arr ayBufferView pixels);
28423
28424 void releaseShaderCompiler();
28425
28426 void renderbufferStorage(int target, int internalformat, int width, int height );
28427
28428 void sampleCoverage(num value, bool invert);
28429
28430 void scissor(int x, int y, int width, int height);
28431
28432 void shaderSource(WebGLShader shader, String string);
28433
28434 void stencilFunc(int func, int ref, int mask);
28435
28436 void stencilFuncSeparate(int face, int func, int ref, int mask);
28437
28438 void stencilMask(int mask);
28439
28440 void stencilMaskSeparate(int face, int mask);
28441
28442 void stencilOp(int fail, int zfail, int zpass);
28443
28444 void stencilOpSeparate(int face, int fail, int zfail, int zpass);
28445
28446 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, var border_OR_canvas_OR_image_OR_pixels_OR_video, [int for mat, int type, ArrayBufferView pixels]);
28447
28448 void texParameterf(int target, int pname, num param);
28449
28450 void texParameteri(int target, int pname, int param);
28451
28452 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_OR_video, [int type, ArrayBufferView pixels]);
28453
28454 void uniform1f(WebGLUniformLocation location, num x);
28455
28456 void uniform1fv(WebGLUniformLocation location, Float32Array v);
28457
28458 void uniform1i(WebGLUniformLocation location, int x);
28459
28460 void uniform1iv(WebGLUniformLocation location, Int32Array v);
28461
28462 void uniform2f(WebGLUniformLocation location, num x, num y);
28463
28464 void uniform2fv(WebGLUniformLocation location, Float32Array v);
28465
28466 void uniform2i(WebGLUniformLocation location, int x, int y);
28467
28468 void uniform2iv(WebGLUniformLocation location, Int32Array v);
28469
28470 void uniform3f(WebGLUniformLocation location, num x, num y, num z);
28471
28472 void uniform3fv(WebGLUniformLocation location, Float32Array v);
28473
28474 void uniform3i(WebGLUniformLocation location, int x, int y, int z);
28475
28476 void uniform3iv(WebGLUniformLocation location, Int32Array v);
28477
28478 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w);
28479
28480 void uniform4fv(WebGLUniformLocation location, Float32Array v);
28481
28482 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w);
28483
28484 void uniform4iv(WebGLUniformLocation location, Int32Array v);
28485
28486 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array);
28487
28488 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array);
28489
28490 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array);
28491
28492 void useProgram(WebGLProgram program);
28493
28494 void validateProgram(WebGLProgram program);
28495
28496 void vertexAttrib1f(int indx, num x);
28497
28498 void vertexAttrib1fv(int indx, Float32Array values);
28499
28500 void vertexAttrib2f(int indx, num x, num y);
28501
28502 void vertexAttrib2fv(int indx, Float32Array values);
28503
28504 void vertexAttrib3f(int indx, num x, num y, num z);
28505
28506 void vertexAttrib3fv(int indx, Float32Array values);
28507
28508 void vertexAttrib4f(int indx, num x, num y, num z, num w);
28509
28510 void vertexAttrib4fv(int indx, Float32Array values);
28511
28512 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset);
28513
28514 void viewport(int x, int y, int width, int height);
28515 }
28516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
28517 // for details. All rights reserved. Use of this source code is governed by a
28518 // BSD-style license that can be found in the LICENSE file.
28519
28520 // WARNING: Do not edit - generated code.
28521
28522 interface WebGLShader {
28523 }
28524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
28525 // for details. All rights reserved. Use of this source code is governed by a
28526 // BSD-style license that can be found in the LICENSE file.
28527
28528 // WARNING: Do not edit - generated code.
28529
28530 interface WebGLTexture {
28531 }
28532 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
28533 // for details. All rights reserved. Use of this source code is governed by a
28534 // BSD-style license that can be found in the LICENSE file.
28535
28536 // WARNING: Do not edit - generated code.
28537
28538 interface WebGLUniformLocation {
28539 }
28540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
28541 // for details. All rights reserved. Use of this source code is governed by a
28542 // BSD-style license that can be found in the LICENSE file.
28543
28544 // WARNING: Do not edit - generated code.
28545
28546 interface WebGLVertexArrayObjectOES {
28547 }
28548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
28549 // for details. All rights reserved. Use of this source code is governed by a
28550 // BSD-style license that can be found in the LICENSE file.
28551
28552 // WARNING: Do not edit - generated code.
28553
28554 interface WebKitCSSRegionRule extends CSSRule {
28555
28556 final CSSRuleList cssRules;
28557 }
28558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
28559 // for details. All rights reserved. Use of this source code is governed by a
28560 // BSD-style license that can be found in the LICENSE file.
28561
28562 // WARNING: Do not edit - generated code.
28563
28564 interface WebKitNamedFlow {
28565 }
28566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
28567 // for details. All rights reserved. Use of this source code is governed by a
28568 // BSD-style license that can be found in the LICENSE file.
28569
28570 // WARNING: Do not edit - generated code.
28571
28572 interface WebSocket extends EventTarget {
28573
28574 static final int CLOSED = 3;
28575
28576 static final int CLOSING = 2;
28577
28578 static final int CONNECTING = 0;
28579
28580 static final int OPEN = 1;
28581
28582 final String URL;
28583
28584 String binaryType;
28585
28586 final int bufferedAmount;
28587
28588 final String extensions;
28589
28590 final String protocol;
28591
28592 final int readyState;
28593
28594 final String url;
28595
28596 WebSocketEvents get on();
28597
28598 void close([int code, String reason]);
28599
28600 bool send(String data);
28601 }
28602
28603 interface WebSocketEvents extends Events {
28604
28605 EventListenerList get close();
28606
28607 EventListenerList get error();
28608
28609 EventListenerList get message();
28610
28611 EventListenerList get open();
28612 }
28613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
28614 // for details. All rights reserved. Use of this source code is governed by a
28615 // BSD-style license that can be found in the LICENSE file.
28616
28617 // WARNING: Do not edit - generated code.
28618
28619 interface WheelEvent extends UIEvent {
28620
28621 final bool altKey;
28622
28623 final int clientX;
28624
28625 final int clientY;
28626
28627 final bool ctrlKey;
28628
28629 final bool metaKey;
28630
28631 final int offsetX;
28632
28633 final int offsetY;
28634
28635 final int screenX;
28636
28637 final int screenY;
28638
28639 final bool shiftKey;
28640
28641 final bool webkitDirectionInvertedFromDevice;
28642
28643 final int wheelDelta;
28644
28645 final int wheelDeltaX;
28646
28647 final int wheelDeltaY;
28648
28649 final int x;
28650
28651 final int y;
28652
28653 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int s creenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool s hiftKey, bool metaKey);
28654 }
28655 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
28656 // for details. All rights reserved. Use of this source code is governed by a
28657 // BSD-style license that can be found in the LICENSE file.
28658
28659 // WARNING: Do not edit - generated code.
28660
28661 interface Window extends EventTarget {
28662
28663 final Document document;
28664
28665 /**
28666 * Executes a [callback] after the next batch of browser layout measurements
28667 * has completed or would have completed if any browser layout measurements
28668 * had been scheduled.
28669 */
28670 void requestLayoutFrame(TimeoutHandler callback);
28671
28672
28673 static final int PERSISTENT = 1;
28674
28675 static final int TEMPORARY = 0;
28676
28677 final DOMApplicationCache applicationCache;
28678
28679 Navigator clientInformation;
28680
28681 final bool closed;
28682
28683 Console console;
28684
28685 final Crypto crypto;
28686
28687 String defaultStatus;
28688
28689 String defaultstatus;
28690
28691 num devicePixelRatio;
28692
28693 Event event;
28694
28695 final Element frameElement;
28696
28697 Window frames;
28698
28699 History history;
28700
28701 int innerHeight;
28702
28703 int innerWidth;
28704
28705 int length;
28706
28707 final Storage localStorage;
28708
28709 Location location;
28710
28711 BarInfo locationbar;
28712
28713 BarInfo menubar;
28714
28715 String name;
28716
28717 Navigator navigator;
28718
28719 bool offscreenBuffering;
28720
28721 Window opener;
28722
28723 int outerHeight;
28724
28725 int outerWidth;
28726
28727 final int pageXOffset;
28728
28729 final int pageYOffset;
28730
28731 Window parent;
28732
28733 Performance performance;
28734
28735 BarInfo personalbar;
28736
28737 Screen screen;
28738
28739 int screenLeft;
28740
28741 int screenTop;
28742
28743 int screenX;
28744
28745 int screenY;
28746
28747 int scrollX;
28748
28749 int scrollY;
28750
28751 BarInfo scrollbars;
28752
28753 Window self;
28754
28755 final Storage sessionStorage;
28756
28757 String status;
28758
28759 BarInfo statusbar;
28760
28761 final StyleMedia styleMedia;
28762
28763 BarInfo toolbar;
28764
28765 Window top;
28766
28767 final IDBFactory webkitIndexedDB;
28768
28769 final NotificationCenter webkitNotifications;
28770
28771 final StorageInfo webkitStorageInfo;
28772
28773 final DOMURL webkitURL;
28774
28775 final Window window;
28776
28777 WindowEvents get on();
28778
28779 void alert(String message);
28780
28781 String atob(String string);
28782
28783 void blur();
28784
28785 String btoa(String string);
28786
28787 void captureEvents();
28788
28789 void clearInterval(int handle);
28790
28791 void clearTimeout(int handle);
28792
28793 void close();
28794
28795 bool confirm(String message);
28796
28797 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w holeWord, bool searchInFrames, bool showDialog);
28798
28799 void focus();
28800
28801 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement);
28802
28803 DOMSelection getSelection();
28804
28805 MediaQueryList matchMedia(String query);
28806
28807 void moveBy(num x, num y);
28808
28809 void moveTo(num x, num y);
28810
28811 Window open(String url, String name, [String options]);
28812
28813 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]);
28814
28815 void postMessage(Dynamic message, String targetOrigin, [List messagePorts]);
28816
28817 void print();
28818
28819 String prompt(String message, String defaultValue);
28820
28821 void releaseEvents();
28822
28823 void resizeBy(num x, num y);
28824
28825 void resizeTo(num width, num height);
28826
28827 void scroll(int x, int y);
28828
28829 void scrollBy(int x, int y);
28830
28831 void scrollTo(int x, int y);
28832
28833 int setInterval(TimeoutHandler handler, int timeout);
28834
28835 int setTimeout(TimeoutHandler handler, int timeout);
28836
28837 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]);
28838
28839 void stop();
28840
28841 void webkitCancelAnimationFrame(int id);
28842
28843 void webkitCancelRequestAnimationFrame(int id);
28844
28845 Point webkitConvertPointFromNodeToPage(Node node, Point p);
28846
28847 Point webkitConvertPointFromPageToNode(Node node, Point p);
28848
28849 void webkitPostMessage(Dynamic message, String targetOrigin, [List transferLis t]);
28850
28851 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback, Elemen t element);
28852
28853 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal lback, [ErrorCallback errorCallback]);
28854
28855 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k, ErrorCallback errorCallback]);
28856
28857 }
28858
28859 interface WindowEvents extends Events {
28860
28861 EventListenerList get abort();
28862
28863 EventListenerList get animationEnd();
28864
28865 EventListenerList get animationIteration();
28866
28867 EventListenerList get animationStart();
28868
28869 EventListenerList get beforeUnload();
28870
28871 EventListenerList get blur();
28872
28873 EventListenerList get canPlay();
28874
28875 EventListenerList get canPlayThrough();
28876
28877 EventListenerList get change();
28878
28879 EventListenerList get click();
28880
28881 EventListenerList get contentLoaded();
28882
28883 EventListenerList get contextMenu();
28884
28885 EventListenerList get deviceMotion();
28886
28887 EventListenerList get deviceOrientation();
28888
28889 EventListenerList get doubleClick();
28890
28891 EventListenerList get drag();
28892
28893 EventListenerList get dragEnd();
28894
28895 EventListenerList get dragEnter();
28896
28897 EventListenerList get dragLeave();
28898
28899 EventListenerList get dragOver();
28900
28901 EventListenerList get dragStart();
28902
28903 EventListenerList get drop();
28904
28905 EventListenerList get durationChange();
28906
28907 EventListenerList get emptied();
28908
28909 EventListenerList get ended();
28910
28911 EventListenerList get error();
28912
28913 EventListenerList get focus();
28914
28915 EventListenerList get hashChange();
28916
28917 EventListenerList get input();
28918
28919 EventListenerList get invalid();
28920
28921 EventListenerList get keyDown();
28922
28923 EventListenerList get keyPress();
28924
28925 EventListenerList get keyUp();
28926
28927 EventListenerList get load();
28928
28929 EventListenerList get loadStart();
28930
28931 EventListenerList get loadedData();
28932
28933 EventListenerList get loadedMetadata();
28934
28935 EventListenerList get message();
28936
28937 EventListenerList get mouseDown();
28938
28939 EventListenerList get mouseMove();
28940
28941 EventListenerList get mouseOut();
28942
28943 EventListenerList get mouseOver();
28944
28945 EventListenerList get mouseUp();
28946
28947 EventListenerList get mouseWheel();
28948
28949 EventListenerList get offline();
28950
28951 EventListenerList get online();
28952
28953 EventListenerList get pageHide();
28954
28955 EventListenerList get pageShow();
28956
28957 EventListenerList get pause();
28958
28959 EventListenerList get play();
28960
28961 EventListenerList get playing();
28962
28963 EventListenerList get popState();
28964
28965 EventListenerList get progress();
28966
28967 EventListenerList get rateChange();
28968
28969 EventListenerList get reset();
28970
28971 EventListenerList get resize();
28972
28973 EventListenerList get scroll();
28974
28975 EventListenerList get search();
28976
28977 EventListenerList get seeked();
28978
28979 EventListenerList get seeking();
28980
28981 EventListenerList get select();
28982
28983 EventListenerList get stalled();
28984
28985 EventListenerList get storage();
28986
28987 EventListenerList get submit();
28988
28989 EventListenerList get suspend();
28990
28991 EventListenerList get timeUpdate();
28992
28993 EventListenerList get touchCancel();
28994
28995 EventListenerList get touchEnd();
28996
28997 EventListenerList get touchMove();
28998
28999 EventListenerList get touchStart();
29000
29001 EventListenerList get transitionEnd();
29002
29003 EventListenerList get unload();
29004
29005 EventListenerList get volumeChange();
29006
29007 EventListenerList get waiting();
29008 }
29009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29010 // for details. All rights reserved. Use of this source code is governed by a
29011 // BSD-style license that can be found in the LICENSE file.
29012
29013 // WARNING: Do not edit - generated code.
29014
29015 interface Worker extends AbstractWorker {
29016
29017 WorkerEvents get on();
29018
29019 void postMessage(Dynamic message, [List messagePorts]);
29020
29021 void terminate();
29022
29023 void webkitPostMessage(Dynamic message, [List messagePorts]);
29024 }
29025
29026 interface WorkerEvents extends AbstractWorkerEvents {
29027
29028 EventListenerList get message();
29029 }
29030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29031 // for details. All rights reserved. Use of this source code is governed by a
29032 // BSD-style license that can be found in the LICENSE file.
29033
29034 // WARNING: Do not edit - generated code.
29035
29036 interface WorkerContext {
29037
29038 static final int PERSISTENT = 1;
29039
29040 static final int TEMPORARY = 0;
29041
29042 WorkerLocation location;
29043
29044 WorkerNavigator navigator;
29045
29046 EventListener onerror;
29047
29048 WorkerContext self;
29049
29050 final IDBFactory webkitIndexedDB;
29051
29052 final NotificationCenter webkitNotifications;
29053
29054 final DOMURL webkitURL;
29055
29056 void addEventListener(String type, EventListener listener, [bool useCapture]);
29057
29058 void clearInterval(int handle);
29059
29060 void clearTimeout(int handle);
29061
29062 void close();
29063
29064 bool dispatchEvent(Event evt);
29065
29066 void importScripts();
29067
29068 Database openDatabase(String name, String version, String displayName, int est imatedSize, [DatabaseCallback creationCallback]);
29069
29070 DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]);
29071
29072 void removeEventListener(String type, EventListener listener, [bool useCapture ]);
29073
29074 int setInterval(TimeoutHandler handler, int timeout);
29075
29076 int setTimeout(TimeoutHandler handler, int timeout);
29077
29078 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa llback, ErrorCallback errorCallback]);
29079
29080 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size);
29081
29082 EntrySync webkitResolveLocalFileSystemSyncURL(String url);
29083
29084 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac k, ErrorCallback errorCallback]);
29085 }
29086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29087 // for details. All rights reserved. Use of this source code is governed by a
29088 // BSD-style license that can be found in the LICENSE file.
29089
29090 // WARNING: Do not edit - generated code.
29091
29092 interface WorkerLocation {
29093
29094 final String hash;
29095
29096 final String host;
29097
29098 final String hostname;
29099
29100 final String href;
29101
29102 final String pathname;
29103
29104 final String port;
29105
29106 final String protocol;
29107
29108 final String search;
29109
29110 String toString();
29111 }
29112 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29113 // for details. All rights reserved. Use of this source code is governed by a
29114 // BSD-style license that can be found in the LICENSE file.
29115
29116 // WARNING: Do not edit - generated code.
29117
29118 interface WorkerNavigator {
29119
29120 final String appName;
29121
29122 final String appVersion;
29123
29124 final bool onLine;
29125
29126 final String platform;
29127
29128 final String userAgent;
29129 }
29130 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
29131 // for details. All rights reserved. Use of this source code is governed by a
29132 // BSD-style license that can be found in the LICENSE file.
29133
29134 // WARNING: Do not edit - generated code.
29135
29136 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi der {
29137
29138 XMLHttpRequest();
29139
29140 // TODO(rnystrom): This name should just be "get" which is valid in Dart, but
29141 // not correctly implemented yet. (b/4970173)
29142 XMLHttpRequest.getTEMPNAME(String url, onSuccess(XMLHttpRequest request));
29143
29144 static final int DONE = 4;
29145
29146 static final int HEADERS_RECEIVED = 2;
29147
29148 static final int LOADING = 3;
29149
29150 static final int OPENED = 1;
29151
29152 static final int UNSENT = 0;
29153
29154 bool asBlob;
29155
29156 final int readyState;
29157
29158 final Object response;
29159
29160 final Blob responseBlob;
29161
29162 final String responseText;
29163
29164 String responseType;
29165
29166 final Document responseXML;
29167
29168 final int status;
29169
29170 final String statusText;
29171
29172 final XMLHttpRequestUpload upload;
29173
29174 bool withCredentials;
29175
29176 XMLHttpRequestEvents get on();
29177
29178 void abort();
29179
29180 String getAllResponseHeaders();
29181
29182 String getResponseHeader(String header);
29183
29184 void open(String method, String url, [bool async, String user, String password ]);
29185
29186 void overrideMimeType(String override);
29187
29188 void send([var data]);
29189
29190 void setRequestHeader(String header, String value);
29191 }
29192
29193 interface XMLHttpRequestEvents extends Events {
29194
29195 EventListenerList get abort();
29196
29197 EventListenerList get error();
29198
29199 EventListenerList get load();
29200
29201 EventListenerList get loadEnd();
29202
29203 EventListenerList get loadStart();
29204
29205 EventListenerList get progress();
29206
29207 EventListenerList get readyStateChange();
29208 }
29209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29210 // for details. All rights reserved. Use of this source code is governed by a
29211 // BSD-style license that can be found in the LICENSE file.
29212
29213 // WARNING: Do not edit - generated code.
29214
29215 interface XMLHttpRequestException {
29216
29217 static final int ABORT_ERR = 102;
29218
29219 static final int NETWORK_ERR = 101;
29220
29221 final int code;
29222
29223 final String message;
29224
29225 final String name;
29226
29227 String toString();
29228 }
29229 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29230 // for details. All rights reserved. Use of this source code is governed by a
29231 // BSD-style license that can be found in the LICENSE file.
29232
29233 // WARNING: Do not edit - generated code.
29234
29235 interface XMLHttpRequestProgressEvent extends ProgressEvent {
29236
29237 final int position;
29238
29239 final int totalSize;
29240 }
29241 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29242 // for details. All rights reserved. Use of this source code is governed by a
29243 // BSD-style license that can be found in the LICENSE file.
29244
29245 // WARNING: Do not edit - generated code.
29246
29247 interface XMLHttpRequestUpload extends EventTarget {
29248
29249 XMLHttpRequestUploadEvents get on();
29250 }
29251
29252 interface XMLHttpRequestUploadEvents extends Events {
29253
29254 EventListenerList get abort();
29255
29256 EventListenerList get error();
29257
29258 EventListenerList get load();
29259
29260 EventListenerList get loadEnd();
29261
29262 EventListenerList get loadStart();
29263
29264 EventListenerList get progress();
29265 }
29266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29267 // for details. All rights reserved. Use of this source code is governed by a
29268 // BSD-style license that can be found in the LICENSE file.
29269
29270 // WARNING: Do not edit - generated code.
29271
29272 interface XMLSerializer {
29273
29274 String serializeToString(Node node);
29275 }
29276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29277 // for details. All rights reserved. Use of this source code is governed by a
29278 // BSD-style license that can be found in the LICENSE file.
29279
29280 // WARNING: Do not edit - generated code.
29281
29282 interface XPathEvaluator {
29283
29284 XPathExpression createExpression(String expression, XPathNSResolver resolver);
29285
29286 XPathNSResolver createNSResolver(Node nodeResolver);
29287
29288 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso lver, int type, XPathResult inResult);
29289 }
29290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29291 // for details. All rights reserved. Use of this source code is governed by a
29292 // BSD-style license that can be found in the LICENSE file.
29293
29294 // WARNING: Do not edit - generated code.
29295
29296 interface XPathException {
29297
29298 static final int INVALID_EXPRESSION_ERR = 51;
29299
29300 static final int TYPE_ERR = 52;
29301
29302 final int code;
29303
29304 final String message;
29305
29306 final String name;
29307
29308 String toString();
29309 }
29310 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29311 // for details. All rights reserved. Use of this source code is governed by a
29312 // BSD-style license that can be found in the LICENSE file.
29313
29314 // WARNING: Do not edit - generated code.
29315
29316 interface XPathExpression {
29317
29318 XPathResult evaluate(Node contextNode, int type, XPathResult inResult);
29319 }
29320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29321 // for details. All rights reserved. Use of this source code is governed by a
29322 // BSD-style license that can be found in the LICENSE file.
29323
29324 // WARNING: Do not edit - generated code.
29325
29326 interface XPathNSResolver {
29327
29328 String lookupNamespaceURI(String prefix);
29329 }
29330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29331 // for details. All rights reserved. Use of this source code is governed by a
29332 // BSD-style license that can be found in the LICENSE file.
29333
29334 // WARNING: Do not edit - generated code.
29335
29336 interface XPathResult {
29337
29338 static final int ANY_TYPE = 0;
29339
29340 static final int ANY_UNORDERED_NODE_TYPE = 8;
29341
29342 static final int BOOLEAN_TYPE = 3;
29343
29344 static final int FIRST_ORDERED_NODE_TYPE = 9;
29345
29346 static final int NUMBER_TYPE = 1;
29347
29348 static final int ORDERED_NODE_ITERATOR_TYPE = 5;
29349
29350 static final int ORDERED_NODE_SNAPSHOT_TYPE = 7;
29351
29352 static final int STRING_TYPE = 2;
29353
29354 static final int UNORDERED_NODE_ITERATOR_TYPE = 4;
29355
29356 static final int UNORDERED_NODE_SNAPSHOT_TYPE = 6;
29357
29358 final bool booleanValue;
29359
29360 final bool invalidIteratorState;
29361
29362 final num numberValue;
29363
29364 final int resultType;
29365
29366 final Node singleNodeValue;
29367
29368 final int snapshotLength;
29369
29370 final String stringValue;
29371
29372 Node iterateNext();
29373
29374 Node snapshotItem(int index);
29375 }
29376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
29377 // for details. All rights reserved. Use of this source code is governed by a
29378 // BSD-style license that can be found in the LICENSE file.
29379
29380 // WARNING: Do not edit - generated code.
29381
29382 interface XSLTProcessor {
29383
29384 void clearParameters();
29385
29386 String getParameter(String namespaceURI, String localName);
29387
29388 void importStylesheet(Node stylesheet);
29389
29390 void removeParameter(String namespaceURI, String localName);
29391
29392 void reset();
29393
29394 void setParameter(String namespaceURI, String localName, String value);
29395
29396 Document transformToDocument(Node source);
29397
29398 DocumentFragment transformToFragment(Node source, Document docVal);
29399 }
29400 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
29401 // for details. All rights reserved. Use of this source code is governed by a
29402 // BSD-style license that can be found in the LICENSE file.
29403
29404 typedef void EventListener(Event event);
29405 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
29406 // for details. All rights reserved. Use of this source code is governed by a
29407 // BSD-style license that can be found in the LICENSE file.
29408
29409 /**
29410 * Defines the standard key locations returned by
29411 * KeyboardEvent.getKeyLocation.
29412 */
29413 interface KeyLocation {
29414
29415 /**
29416 * The event key is not distinguished as the left or right version
29417 * of the key, and did not originate from the numeric keypad (or did not
29418 * originate with a virtual key corresponding to the numeric keypad).
29419 */
29420 static final int STANDARD = 0;
29421
29422 /**
29423 * The event key is in the left key location.
29424 */
29425 static final int LEFT = 1;
29426
29427 /**
29428 * The event key is in the right key location.
29429 */
29430 static final int RIGHT = 2;
29431
29432 /**
29433 * The event key originated on the numeric keypad or with a virtual key
29434 * corresponding to the numeric keypad.
29435 */
29436 static final int NUMPAD = 3;
29437
29438 /**
29439 * The event key originated on a mobile device, either on a physical
29440 * keypad or a virtual keyboard.
29441 */
29442 static final int MOBILE = 4;
29443
29444 /**
29445 * The event key originated on a game controller or a joystick on a mobile
29446 * device.
29447 */
29448 static final int JOYSTICK = 5;
29449 }
29450 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
29451 // for details. All rights reserved. Use of this source code is governed by a
29452 // BSD-style license that can be found in the LICENSE file.
29453
29454 /**
29455 * Defines the standard keyboard identifier names for keys that are returned
29456 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct
29457 * unicode mapping.
29458 */
29459 interface KeyName {
29460
29461 /** The Accept (Commit, OK) key */
29462 static final String ACCEPT = "Accept";
29463
29464 /** The Add key */
29465 static final String ADD = "Add";
29466
29467 /** The Again key */
29468 static final String AGAIN = "Again";
29469
29470 /** The All Candidates key */
29471 static final String ALL_CANDIDATES = "AllCandidates";
29472
29473 /** The Alphanumeric key */
29474 static final String ALPHANUMERIC = "Alphanumeric";
29475
29476 /** The Alt (Menu) key */
29477 static final String ALT = "Alt";
29478
29479 /** The Alt-Graph key */
29480 static final String ALT_GRAPH = "AltGraph";
29481
29482 /** The Application key */
29483 static final String APPS = "Apps";
29484
29485 /** The ATTN key */
29486 static final String ATTN = "Attn";
29487
29488 /** The Browser Back key */
29489 static final String BROWSER_BACK = "BrowserBack";
29490
29491 /** The Browser Favorites key */
29492 static final String BROWSER_FAVORTIES = "BrowserFavorites";
29493
29494 /** The Browser Forward key */
29495 static final String BROWSER_FORWARD = "BrowserForward";
29496
29497 /** The Browser Home key */
29498 static final String BROWSER_NAME = "BrowserHome";
29499
29500 /** The Browser Refresh key */
29501 static final String BROWSER_REFRESH = "BrowserRefresh";
29502
29503 /** The Browser Search key */
29504 static final String BROWSER_SEARCH = "BrowserSearch";
29505
29506 /** The Browser Stop key */
29507 static final String BROWSER_STOP = "BrowserStop";
29508
29509 /** The Camera key */
29510 static final String CAMERA = "Camera";
29511
29512 /** The Caps Lock (Capital) key */
29513 static final String CAPS_LOCK = "CapsLock";
29514
29515 /** The Clear key */
29516 static final String CLEAR = "Clear";
29517
29518 /** The Code Input key */
29519 static final String CODE_INPUT = "CodeInput";
29520
29521 /** The Compose key */
29522 static final String COMPOSE = "Compose";
29523
29524 /** The Control (Ctrl) key */
29525 static final String CONTROL = "Control";
29526
29527 /** The Crsel key */
29528 static final String CRSEL = "Crsel";
29529
29530 /** The Convert key */
29531 static final String CONVERT = "Convert";
29532
29533 /** The Copy key */
29534 static final String COPY = "Copy";
29535
29536 /** The Cut key */
29537 static final String CUT = "Cut";
29538
29539 /** The Decimal key */
29540 static final String DECIMAL = "Decimal";
29541
29542 /** The Divide key */
29543 static final String DIVIDE = "Divide";
29544
29545 /** The Down Arrow key */
29546 static final String DOWN = "Down";
29547
29548 /** The diagonal Down-Left Arrow key */
29549 static final String DOWN_LEFT = "DownLeft";
29550
29551 /** The diagonal Down-Right Arrow key */
29552 static final String DOWN_RIGHT = "DownRight";
29553
29554 /** The Eject key */
29555 static final String EJECT = "Eject";
29556
29557 /** The End key */
29558 static final String END = "End";
29559
29560 /**
29561 * The Enter key. Note: This key value must also be used for the Return
29562 * (Macintosh numpad) key
29563 */
29564 static final String ENTER = "Enter";
29565
29566 /** The Erase EOF key */
29567 static final String ERASE_EOF= "EraseEof";
29568
29569 /** The Execute key */
29570 static final String EXECUTE = "Execute";
29571
29572 /** The Exsel key */
29573 static final String EXSEL = "Exsel";
29574
29575 /** The Function switch key */
29576 static final String FN = "Fn";
29577
29578 /** The F1 key */
29579 static final String F1 = "F1";
29580
29581 /** The F2 key */
29582 static final String F2 = "F2";
29583
29584 /** The F3 key */
29585 static final String F3 = "F3";
29586
29587 /** The F4 key */
29588 static final String F4 = "F4";
29589
29590 /** The F5 key */
29591 static final String F5 = "F5";
29592
29593 /** The F6 key */
29594 static final String F6 = "F6";
29595
29596 /** The F7 key */
29597 static final String F7 = "F7";
29598
29599 /** The F8 key */
29600 static final String F8 = "F8";
29601
29602 /** The F9 key */
29603 static final String F9 = "F9";
29604
29605 /** The F10 key */
29606 static final String F10 = "F10";
29607
29608 /** The F11 key */
29609 static final String F11 = "F11";
29610
29611 /** The F12 key */
29612 static final String F12 = "F12";
29613
29614 /** The F13 key */
29615 static final String F13 = "F13";
29616
29617 /** The F14 key */
29618 static final String F14 = "F14";
29619
29620 /** The F15 key */
29621 static final String F15 = "F15";
29622
29623 /** The F16 key */
29624 static final String F16 = "F16";
29625
29626 /** The F17 key */
29627 static final String F17 = "F17";
29628
29629 /** The F18 key */
29630 static final String F18 = "F18";
29631
29632 /** The F19 key */
29633 static final String F19 = "F19";
29634
29635 /** The F20 key */
29636 static final String F20 = "F20";
29637
29638 /** The F21 key */
29639 static final String F21 = "F21";
29640
29641 /** The F22 key */
29642 static final String F22 = "F22";
29643
29644 /** The F23 key */
29645 static final String F23 = "F23";
29646
29647 /** The F24 key */
29648 static final String F24 = "F24";
29649
29650 /** The Final Mode (Final) key used on some asian keyboards */
29651 static final String FINAL_MODE = "FinalMode";
29652
29653 /** The Find key */
29654 static final String FIND = "Find";
29655
29656 /** The Full-Width Characters key */
29657 static final String FULL_WIDTH = "FullWidth";
29658
29659 /** The Half-Width Characters key */
29660 static final String HALF_WIDTH = "HalfWidth";
29661
29662 /** The Hangul (Korean characters) Mode key */
29663 static final String HANGUL_MODE = "HangulMode";
29664
29665 /** The Hanja (Korean characters) Mode key */
29666 static final String HANJA_MODE = "HanjaMode";
29667
29668 /** The Help key */
29669 static final String HELP = "Help";
29670
29671 /** The Hiragana (Japanese Kana characters) key */
29672 static final String HIRAGANA = "Hiragana";
29673
29674 /** The Home key */
29675 static final String HOME = "Home";
29676
29677 /** The Insert (Ins) key */
29678 static final String INSERT = "Insert";
29679
29680 /** The Japanese-Hiragana key */
29681 static final String JAPANESE_HIRAGANA = "JapaneseHiragana";
29682
29683 /** The Japanese-Katakana key */
29684 static final String JAPANESE_KATAKANA = "JapaneseKatakana";
29685
29686 /** The Japanese-Romaji key */
29687 static final String JAPANESE_ROMAJI = "JapaneseRomaji";
29688
29689 /** The Junja Mode key */
29690 static final String JUNJA_MODE = "JunjaMode";
29691
29692 /** The Kana Mode (Kana Lock) key */
29693 static final String KANA_MODE = "KanaMode";
29694
29695 /**
29696 * The Kanji (Japanese name for ideographic characters of Chinese origin)
29697 * Mode key
29698 */
29699 static final String KANJI_MODE = "KanjiMode";
29700
29701 /** The Katakana (Japanese Kana characters) key */
29702 static final String KATAKANA = "Katakana";
29703
29704 /** The Start Application One key */
29705 static final String LAUNCH_APPLICATION_1 = "LaunchApplication1";
29706
29707 /** The Start Application Two key */
29708 static final String LAUNCH_APPLICATION_2 = "LaunchApplication2";
29709
29710 /** The Start Mail key */
29711 static final String LAUNCH_MAIL = "LaunchMail";
29712
29713 /** The Left Arrow key */
29714 static final String LEFT = "Left";
29715
29716 /** The Menu key */
29717 static final String MENU = "Menu";
29718
29719 /**
29720 * The Meta key. Note: This key value shall be also used for the Apple
29721 * Command key
29722 */
29723 static final String META = "Meta";
29724
29725 /** The Media Next Track key */
29726 static final String MEDIA_NEXT_TRACK = "MediaNextTrack";
29727
29728 /** The Media Play Pause key */
29729 static final String MEDIA_PAUSE_PLAY = "MediaPlayPause";
29730
29731 /** The Media Previous Track key */
29732 static final String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack";
29733
29734 /** The Media Stop key */
29735 static final String MEDIA_STOP = "MediaStop";
29736
29737 /** The Mode Change key */
29738 static final String MODE_CHANGE = "ModeChange";
29739
29740 /** The Next Candidate function key */
29741 static final String NEXT_CANDIDATE = "NextCandidate";
29742
29743 /** The Nonconvert (Don't Convert) key */
29744 static final String NON_CONVERT = "Nonconvert";
29745
29746 /** The Number Lock key */
29747 static final String NUM_LOCK = "NumLock";
29748
29749 /** The Page Down (Next) key */
29750 static final String PAGE_DOWN = "PageDown";
29751
29752 /** The Page Up key */
29753 static final String PAGE_UP = "PageUp";
29754
29755 /** The Paste key */
29756 static final String PASTE = "Paste";
29757
29758 /** The Pause key */
29759 static final String PAUSE = "Pause";
29760
29761 /** The Play key */
29762 static final String PLAY = "Play";
29763
29764 /**
29765 * The Power key. Note: Some devices may not expose this key to the
29766 * operating environment
29767 */
29768 static final String POWER = "Power";
29769
29770 /** The Previous Candidate function key */
29771 static final String PREVIOUS_CANDIDATE = "PreviousCandidate";
29772
29773 /** The Print Screen (PrintScrn, SnapShot) key */
29774 static final String PRINT_SCREEN = "PrintScreen";
29775
29776 /** The Process key */
29777 static final String PROCESS = "Process";
29778
29779 /** The Props key */
29780 static final String PROPS = "Props";
29781
29782 /** The Right Arrow key */
29783 static final String RIGHT = "Right";
29784
29785 /** The Roman Characters function key */
29786 static final String ROMAN_CHARACTERS = "RomanCharacters";
29787
29788 /** The Scroll Lock key */
29789 static final String SCROLL = "Scroll";
29790
29791 /** The Select key */
29792 static final String SELECT = "Select";
29793
29794 /** The Select Media key */
29795 static final String SELECT_MEDIA = "SelectMedia";
29796
29797 /** The Separator key */
29798 static final String SEPARATOR = "Separator";
29799
29800 /** The Shift key */
29801 static final String SHIFT = "Shift";
29802
29803 /** The Soft1 key */
29804 static final String SOFT_1 = "Soft1";
29805
29806 /** The Soft2 key */
29807 static final String SOFT_2 = "Soft2";
29808
29809 /** The Soft3 key */
29810 static final String SOFT_3 = "Soft3";
29811
29812 /** The Soft4 key */
29813 static final String SOFT_4 = "Soft4";
29814
29815 /** The Stop key */
29816 static final String STOP = "Stop";
29817
29818 /** The Subtract key */
29819 static final String SUBTRACT = "Subtract";
29820
29821 /** The Symbol Lock key */
29822 static final String SYMBOL_LOCK = "SymbolLock";
29823
29824 /** The Up Arrow key */
29825 static final String UP = "Up";
29826
29827 /** The diagonal Up-Left Arrow key */
29828 static final String UP_LEFT = "UpLeft";
29829
29830 /** The diagonal Up-Right Arrow key */
29831 static final String UP_RIGHT = "UpRight";
29832
29833 /** The Undo key */
29834 static final String UNDO = "Undo";
29835
29836 /** The Volume Down key */
29837 static final String VOLUME_DOWN = "VolumeDown";
29838
29839 /** The Volume Mute key */
29840 static final String VOLUMN_MUTE = "VolumeMute";
29841
29842 /** The Volume Up key */
29843 static final String VOLUMN_UP = "VolumeUp";
29844
29845 /** The Windows Logo key */
29846 static final String WIN = "Win";
29847
29848 /** The Zoom key */
29849 static final String ZOOM = "Zoom";
29850
29851 /**
29852 * The Backspace (Back) key. Note: This key value shall be also used for the
29853 * key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key
29854 */
29855 static final String BACKSPACE = "Backspace";
29856
29857 /** The Horizontal Tabulation (Tab) key */
29858 static final String TAB = "Tab";
29859
29860 /** The Cancel key */
29861 static final String CANCEL = "Cancel";
29862
29863 /** The Escape (Esc) key */
29864 static final String ESC = "Esc";
29865
29866 /** The Space (Spacebar) key: */
29867 static final String SPACEBAR = "Spacebar";
29868
29869 /**
29870 * The Delete (Del) Key. Note: This key value shall be also used for the key
29871 * labeled 'delete' MacOS keyboards when modified by the 'Fn' key
29872 */
29873 static final String DEL = "Del";
29874
29875 /** The Combining Grave Accent (Greek Varia, Dead Grave) key */
29876 static final String DEAD_GRAVE = "DeadGrave";
29877
29878 /**
29879 * The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute)
29880 * key
29881 */
29882 static final String DEAD_EACUTE = "DeadEacute";
29883
29884 /** The Combining Circumflex Accent (Hat, Dead Circumflex) key */
29885 static final String DEAD_CIRCUMFLEX = "DeadCircumflex";
29886
29887 /** The Combining Tilde (Dead Tilde) key */
29888 static final String DEAD_TILDE = "DeadTilde";
29889
29890 /** The Combining Macron (Long, Dead Macron) key */
29891 static final String DEAD_MACRON = "DeadMacron";
29892
29893 /** The Combining Breve (Short, Dead Breve) key */
29894 static final String DEAD_BREVE = "DeadBreve";
29895
29896 /** The Combining Dot Above (Derivative, Dead Above Dot) key */
29897 static final String DEAD_ABOVE_DOT = "DeadAboveDot";
29898
29899 /**
29900 * The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika,
29901 * Double Derivative, Dead Diaeresis) key
29902 */
29903 static final String DEAD_UMLAUT = "DeadUmlaut";
29904
29905 /** The Combining Ring Above (Dead Above Ring) key */
29906 static final String DEAD_ABOVE_RING = "DeadAboveRing";
29907
29908 /** The Combining Double Acute Accent (Dead Doubleacute) key */
29909 static final String DEAD_DOUBLEACUTE = "DeadDoubleacute";
29910
29911 /** The Combining Caron (Hacek, V Above, Dead Caron) key */
29912 static final String DEAD_CARON = "DeadCaron";
29913
29914 /** The Combining Cedilla (Dead Cedilla) key */
29915 static final String DEAD_CEDILLA = "DeadCedilla";
29916
29917 /** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */
29918 static final String DEAD_OGONEK = "DeadOgonek";
29919
29920 /**
29921 * The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota
29922 * Subscript, Dead Iota) key
29923 */
29924 static final String DEAD_IOTA = "DeadIota";
29925
29926 /**
29927 * The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key
29928 */
29929 static final String DEAD_VOICED_SOUND = "DeadVoicedSound";
29930
29931 /**
29932 * The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced
29933 * Sound) key
29934 */
29935 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound";
29936
29937 /**
29938 * Key value used when an implementation is unable to identify another key
29939 * value, due to either hardware, platform, or software constraints
29940 */
29941 static final String UNIDENTIFIED = "Unidentified";
29942 }
29943 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
29944 // for details. All rights reserved. Use of this source code is governed by a
29945 // BSD-style license that can be found in the LICENSE file.
29946
29947 /**
29948 * Contains the set of standard values returned by HTMLDocument.getReadyState.
29949 */
29950 interface ReadyState {
29951 /**
29952 * Indicates the document is still loading and parsing.
29953 */
29954 static final String LOADING = "loading";
29955
29956 /**
29957 * Indicates the document is finished parsing but is still loading
29958 * subresources.
29959 */
29960 static final String INTERACTIVE = "interactive";
29961
29962 /**
29963 * Indicates the document and all subresources have been loaded.
29964 */
29965 static final String COMPLETE = "complete";
29966 }
29967 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
29968 // for details. All rights reserved. Use of this source code is governed by a
29969 // BSD-style license that can be found in the LICENSE file.
29970
29971 typedef void TimeoutHandler();
29972 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
29973 // for details. All rights reserved. Use of this source code is governed by a
29974 // BSD-style license that can be found in the LICENSE file.
29975
29976 /**
29977 * The [Collections] class implements static methods useful when
29978 * writing a class that implements [Collection] and the [iterator]
29979 * method.
29980 */
29981 class _Collections {
29982 static void forEach(Iterable<Object> iterable, void f(Object o)) {
29983 for (final e in iterable) {
29984 f(e);
29985 }
29986 }
29987
29988 static List map(Iterable<Object> source,
29989 List<Object> destination,
29990 f(o)) {
29991 for (final e in source) {
29992 destination.add(f(e));
29993 }
29994 return destination;
29995 }
29996
29997 static bool some(Iterable<Object> iterable, bool f(Object o)) {
29998 for (final e in iterable) {
29999 if (f(e)) return true;
30000 }
30001 return false;
30002 }
30003
30004 static bool every(Iterable<Object> iterable, bool f(Object o)) {
30005 for (final e in iterable) {
30006 if (!f(e)) return false;
30007 }
30008 return true;
30009 }
30010
30011 static List filter(Iterable<Object> source,
30012 List<Object> destination,
30013 bool f(o)) {
30014 for (final e in source) {
30015 if (f(e)) destination.add(e);
30016 }
30017 return destination;
30018 }
30019
30020 static bool isEmpty(Iterable<Object> iterable) {
30021 return !iterable.iterator().hasNext();
30022 }
30023 }
30024 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30025 // for details. All rights reserved. Use of this source code is governed by a
30026 // BSD-style license that can be found in the LICENSE file.
30027
30028 class _AudioContextFactoryProvider {
30029
30030 factory AudioContext() native '''
30031 var constructor = window.AudioContext || window.webkitAudioContext;
30032 return new constructor();
30033 ''';
30034 }
30035
30036 class _DOMParserFactoryProvider {
30037
30038 factory DOMParser() native 'return new DOMParser();';
30039 }
30040
30041 class _FileReaderFactoryProvider {
30042
30043 factory FileReader() native 'return new FileReader();';
30044 }
30045
30046 class _TypedArrayFactoryProvider {
30047
30048 factory Float32Array(int length) => _F32(length);
30049 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list));
30050 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _F32(buffer);
30051
30052 factory Float64Array(int length) => _F64(length);
30053 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list));
30054 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _F64(buffer);
30055
30056 factory Int8Array(int length) => _I8(length);
30057 factory Int8Array.fromList(List<num> list) => _I8(ensureNative(list));
30058 factory Int8Array.fromBuffer(ArrayBuffer buffer) => _I8(buffer);
30059
30060 factory Int16Array(int length) => _I16(length);
30061 factory Int16Array.fromList(List<num> list) => _I16(ensureNative(list));
30062 factory Int16Array.fromBuffer(ArrayBuffer buffer) => _I16(buffer);
30063
30064 factory Int32Array(int length) => _I32(length);
30065 factory Int32Array.fromList(List<num> list) => _I32(ensureNative(list));
30066 factory Int32Array.fromBuffer(ArrayBuffer buffer) => _I32(buffer);
30067
30068 factory Uint8Array(int length) => _U8(length);
30069 factory Uint8Array.fromList(List<num> list) => _U8(ensureNative(list));
30070 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _U8(buffer);
30071
30072 factory Uint16Array(int length) => _U16(length);
30073 factory Uint16Array.fromList(List<num> list) => _U16(ensureNative(list));
30074 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => _U16(buffer);
30075
30076 factory Uint32Array(int length) => _U32(length);
30077 factory Uint32Array.fromList(List<num> list) => _U32(ensureNative(list));
30078 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _U32(buffer);
30079
30080 factory Uint8ClampedArray(int length) => _U8C(length);
30081 factory Uint8ClampedArray.fromList(List<num> list) => _U8C(ensureNative(list)) ;
30082 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _U8C(buffer);
30083
30084 static Float32Array _F32(arg) native 'return new Float32Array(arg);';
30085 static Float64Array _F64(arg) native 'return new Float64Array(arg);';
30086 static Int8Array _I8(arg) native 'return new Int8Array(arg);';
30087 static Int16Array _I16(arg) native 'return new Int16Array(arg);';
30088 static Int32Array _I32(arg) native 'return new Int32Array(arg);';
30089 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);';
30090 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);';
30091 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);';
30092 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);' ;
30093
30094 static ensureNative(List list) => list; // TODO: make sure.
30095 }
30096
30097 class _CSSMatrixFactoryProvider {
30098
30099 factory CSSMatrix([String spec = '']) native
30100 'return new WebKitCSSMatrix(spec);';
30101 }
30102
30103 // TODO(jacobr): this factory does not require any native code so move to a
30104 // separate file so it can be shared between wrapper and wrapperless versions.
30105 class _EventFactoryProvider {
30106 factory Event(String type, [bool canBubble = true,
30107 bool cancelable = true]) {
30108 _EventJs e = _document._createEvent("Event");
30109 e._initEvent(type, canBubble, cancelable);
30110 return e;
30111 }
30112 }
30113
30114 class _PointFactoryProvider {
30115
30116 factory Point(num x, num y) native 'return new WebKitPoint(x, y);';
30117 }
30118
30119 class _WebSocketFactoryProvider {
30120
30121 factory WebSocket(String url) native 'return new WebSocket(url);';
30122 }
30123
30124 class _XMLHttpRequestFactoryProvider {
30125 factory XMLHttpRequest() native 'return new XMLHttpRequest();';
30126
30127 factory XMLHttpRequest.getTEMPNAME(String url,
30128 onSuccess(XMLHttpRequest request)) {
30129 final request = new XMLHttpRequest();
30130 request.open('GET', url, true);
30131
30132 // TODO(terry): Validate after client login added if necessary to forward
30133 // cookies to server.
30134 request.withCredentials = true;
30135
30136 // Status 0 is for local XHR request.
30137 request.on.readyStateChange.add((e) {
30138 if (request.readyState == XMLHttpRequest.DONE &&
30139 (request.status == 200 || request.status == 0)) {
30140 onSuccess(request);
30141 }
30142 });
30143
30144 request.send();
30145
30146 return request;
30147 }
30148 }
30149 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
30150 // for details. All rights reserved. Use of this source code is governed by a
30151 // BSD-style license that can be found in the LICENSE file.
30152
30153 /**
30154 * Utils for device detection.
30155 */
30156 class _Device {
30157 /**
30158 * Gets the browser's user agent. Using this function allows tests to inject
30159 * the user agent.
30160 * Returns the user agent.
30161 */
30162 static String get userAgent() => window.navigator.userAgent;
30163
30164 /**
30165 * Determines if the current device is running Firefox.
30166 */
30167 static bool get isFirefox() => userAgent.contains("Firefox", 0);
30168 }
30169 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
30170 // for details. All rights reserved. Use of this source code is governed by a
30171 // BSD-style license that can be found in the LICENSE file.
30172
30173 // Iterator for arrays with fixed size.
30174 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> {
30175 _FixedSizeListIterator(List<T> array)
30176 : super(array),
30177 _length = array.length;
30178
30179 bool hasNext() => _length > _pos;
30180
30181 final int _length; // Cache array length for faster access.
30182 }
30183
30184 // Iterator for arrays with variable size.
30185 class _VariableSizeListIterator<T> implements Iterator<T> {
30186 _VariableSizeListIterator(List<T> array)
30187 : _array = array,
30188 _pos = 0;
30189
30190 bool hasNext() => _array.length > _pos;
30191
30192 T next() {
30193 if (!hasNext()) {
30194 throw const NoMoreElementsException();
30195 }
30196 return _array[_pos++];
30197 }
30198
30199 final List<T> _array;
30200 int _pos;
30201 }
30202 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
30203 // for details. All rights reserved. Use of this source code is governed by a
30204 // BSD-style license that can be found in the LICENSE file.
30205
30206 class _Lists {
30207
30208 /**
30209 * Returns the index in the array [a] of the given [element], starting
30210 * the search at index [startIndex] to [endIndex] (exclusive).
30211 * Returns -1 if [element] is not found.
30212 */
30213 static int indexOf(List a,
30214 Object element,
30215 int startIndex,
30216 int endIndex) {
30217 if (startIndex >= a.length) {
30218 return -1;
30219 }
30220 if (startIndex < 0) {
30221 startIndex = 0;
30222 }
30223 for (int i = startIndex; i < endIndex; i++) {
30224 if (a[i] == element) {
30225 return i;
30226 }
30227 }
30228 return -1;
30229 }
30230
30231 /**
30232 * Returns the last index in the array [a] of the given [element], starting
30233 * the search at index [startIndex] to 0.
30234 * Returns -1 if [element] is not found.
30235 */
30236 static int lastIndexOf(List a, Object element, int startIndex) {
30237 if (startIndex < 0) {
30238 return -1;
30239 }
30240 if (startIndex >= a.length) {
30241 startIndex = a.length - 1;
30242 }
30243 for (int i = startIndex; i >= 0; i--) {
30244 if (a[i] == element) {
30245 return i;
30246 }
30247 }
30248 return -1;
30249 }
30250
30251 /**
30252 * Returns a sub list copy of this list, from [start] to
30253 * [:start + length:].
30254 * Returns an empty list if [length] is 0.
30255 * Throws an [IllegalArgumentException] if [length] is negative.
30256 * Throws an [IndexOutOfRangeException] if [start] or
30257 * [:start + length:] are out of range.
30258 */
30259 static List getRange(List a, int start, int length, List accumulator) {
30260 if (length < 0) throw new IllegalArgumentException('length');
30261 if (start < 0) throw new IndexOutOfRangeException(start);
30262 int end = start + length;
30263 if (end > a.length) throw new IndexOutOfRangeException(end);
30264 for (int i = start; i < end; i++) {
30265 accumulator.add(a[i]);
30266 }
30267 return accumulator;
30268 }
30269 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698