OLD | NEW |
| (Empty) |
1 #library('dart:dom_deprecated'); | |
2 | |
3 // Copyright (c) 2011, 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 DOM library. | |
9 | |
10 | |
11 | |
12 | |
13 // TODO(sra): What 'window' do we get in a worker? Perhaps this | |
14 // should return the interface type. | |
15 DOMWindow get window() native "return window;"; | |
16 | |
17 HTMLDocument get document() native "return document;"; | |
18 | |
19 // TODO(vsm): Implement these. | |
20 interface LayoutTestController {} | |
21 LayoutTestController layoutTestController; | |
22 | |
23 spawnDomIsolate(Window targetWindow, String entryPoint) { | |
24 throw const NotImplementedException(); | |
25 } | |
26 | |
27 class _AbstractWorkerJs extends _EventTargetJs implements AbstractWorker native
"*AbstractWorker" { | |
28 | |
29 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
30 | |
31 bool dispatchEvent(_EventJs evt) native; | |
32 | |
33 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
34 } | |
35 | |
36 class _ArrayBufferJs extends _DOMTypeJs implements ArrayBuffer native "*ArrayBuf
fer" { | |
37 | |
38 final int byteLength; | |
39 | |
40 _ArrayBufferJs slice(int begin, [int end]) native; | |
41 } | |
42 | |
43 class _ArrayBufferViewJs extends _DOMTypeJs implements ArrayBufferView native "*
ArrayBufferView" { | |
44 | |
45 final _ArrayBufferJs buffer; | |
46 | |
47 final int byteLength; | |
48 | |
49 final int byteOffset; | |
50 } | |
51 | |
52 class _AttrJs extends _NodeJs implements Attr native "*Attr" { | |
53 | |
54 final bool isId; | |
55 | |
56 final String name; | |
57 | |
58 final _ElementJs ownerElement; | |
59 | |
60 final bool specified; | |
61 | |
62 String value; | |
63 } | |
64 | |
65 class _AudioBufferJs extends _DOMTypeJs implements AudioBuffer native "*AudioBuf
fer" { | |
66 | |
67 final num duration; | |
68 | |
69 num gain; | |
70 | |
71 final int length; | |
72 | |
73 final int numberOfChannels; | |
74 | |
75 final num sampleRate; | |
76 | |
77 _Float32ArrayJs getChannelData(int channelIndex) native; | |
78 } | |
79 | |
80 class _AudioBufferSourceNodeJs extends _AudioSourceNodeJs implements AudioBuffer
SourceNode native "*AudioBufferSourceNode" { | |
81 | |
82 static const int FINISHED_STATE = 3; | |
83 | |
84 static const int PLAYING_STATE = 2; | |
85 | |
86 static const int SCHEDULED_STATE = 1; | |
87 | |
88 static const int UNSCHEDULED_STATE = 0; | |
89 | |
90 _AudioBufferJs buffer; | |
91 | |
92 final _AudioGainJs gain; | |
93 | |
94 bool loop; | |
95 | |
96 bool looping; | |
97 | |
98 final _AudioParamJs playbackRate; | |
99 | |
100 final int playbackState; | |
101 | |
102 void noteGrainOn(num when, num grainOffset, num grainDuration) native; | |
103 | |
104 void noteOff(num when) native; | |
105 | |
106 void noteOn(num when) native; | |
107 } | |
108 | |
109 class _AudioChannelMergerJs extends _AudioNodeJs implements AudioChannelMerger n
ative "*AudioChannelMerger" { | |
110 } | |
111 | |
112 class _AudioChannelSplitterJs extends _AudioNodeJs implements AudioChannelSplitt
er native "*AudioChannelSplitter" { | |
113 } | |
114 | |
115 class _AudioContextJs extends _EventTargetJs implements AudioContext native "*Au
dioContext" { | |
116 | |
117 final int activeSourceCount; | |
118 | |
119 final num currentTime; | |
120 | |
121 final _AudioDestinationNodeJs destination; | |
122 | |
123 final _AudioListenerJs listener; | |
124 | |
125 final num sampleRate; | |
126 | |
127 _RealtimeAnalyserNodeJs createAnalyser() native; | |
128 | |
129 _BiquadFilterNodeJs createBiquadFilter() native; | |
130 | |
131 _AudioBufferJs createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF
rames, [num sampleRate]) native; | |
132 | |
133 _AudioBufferSourceNodeJs createBufferSource() native; | |
134 | |
135 _AudioChannelMergerJs createChannelMerger([int numberOfInputs]) native; | |
136 | |
137 _AudioChannelSplitterJs createChannelSplitter([int numberOfOutputs]) native; | |
138 | |
139 _ConvolverNodeJs createConvolver() native; | |
140 | |
141 _DelayNodeJs createDelayNode([num maxDelayTime]) native; | |
142 | |
143 _DynamicsCompressorNodeJs createDynamicsCompressor() native; | |
144 | |
145 _AudioGainNodeJs createGainNode() native; | |
146 | |
147 _JavaScriptAudioNodeJs createJavaScriptNode(int bufferSize, [int numberOfInput
Channels, int numberOfOutputChannels]) native; | |
148 | |
149 _MediaElementAudioSourceNodeJs createMediaElementSource(_HTMLMediaElementJs me
diaElement) native; | |
150 | |
151 _MediaStreamAudioSourceNodeJs createMediaStreamSource(_MediaStreamJs mediaStre
am) native; | |
152 | |
153 _OscillatorJs createOscillator() native; | |
154 | |
155 _AudioPannerNodeJs createPanner() native; | |
156 | |
157 _WaveShaperNodeJs createWaveShaper() native; | |
158 | |
159 _WaveTableJs createWaveTable(_Float32ArrayJs real, _Float32ArrayJs imag) nativ
e; | |
160 | |
161 void decodeAudioData(_ArrayBufferJs audioData, AudioBufferCallback successCall
back, [AudioBufferCallback errorCallback]) native; | |
162 | |
163 void startRendering() native; | |
164 } | |
165 | |
166 class _AudioDestinationNodeJs extends _AudioNodeJs implements AudioDestinationNo
de native "*AudioDestinationNode" { | |
167 | |
168 final int numberOfChannels; | |
169 } | |
170 | |
171 class _AudioGainJs extends _AudioParamJs implements AudioGain native "*AudioGain
" { | |
172 } | |
173 | |
174 class _AudioGainNodeJs extends _AudioNodeJs implements AudioGainNode native "*Au
dioGainNode" { | |
175 | |
176 final _AudioGainJs gain; | |
177 } | |
178 | |
179 class _AudioListenerJs extends _DOMTypeJs implements AudioListener native "*Audi
oListener" { | |
180 | |
181 num dopplerFactor; | |
182 | |
183 num speedOfSound; | |
184 | |
185 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; | |
186 | |
187 void setPosition(num x, num y, num z) native; | |
188 | |
189 void setVelocity(num x, num y, num z) native; | |
190 } | |
191 | |
192 class _AudioNodeJs extends _DOMTypeJs implements AudioNode native "*AudioNode" { | |
193 | |
194 final _AudioContextJs context; | |
195 | |
196 final int numberOfInputs; | |
197 | |
198 final int numberOfOutputs; | |
199 | |
200 void connect(destination, int output, [int input]) native; | |
201 | |
202 void disconnect(int output) native; | |
203 } | |
204 | |
205 class _AudioPannerNodeJs extends _AudioNodeJs implements AudioPannerNode native
"*AudioPannerNode" { | |
206 | |
207 static const int EQUALPOWER = 0; | |
208 | |
209 static const int EXPONENTIAL_DISTANCE = 2; | |
210 | |
211 static const int HRTF = 1; | |
212 | |
213 static const int INVERSE_DISTANCE = 1; | |
214 | |
215 static const int LINEAR_DISTANCE = 0; | |
216 | |
217 static const int SOUNDFIELD = 2; | |
218 | |
219 final _AudioGainJs coneGain; | |
220 | |
221 num coneInnerAngle; | |
222 | |
223 num coneOuterAngle; | |
224 | |
225 num coneOuterGain; | |
226 | |
227 final _AudioGainJs distanceGain; | |
228 | |
229 int distanceModel; | |
230 | |
231 num maxDistance; | |
232 | |
233 int panningModel; | |
234 | |
235 num refDistance; | |
236 | |
237 num rolloffFactor; | |
238 | |
239 void setOrientation(num x, num y, num z) native; | |
240 | |
241 void setPosition(num x, num y, num z) native; | |
242 | |
243 void setVelocity(num x, num y, num z) native; | |
244 } | |
245 | |
246 class _AudioParamJs extends _DOMTypeJs implements AudioParam native "*AudioParam
" { | |
247 | |
248 final num defaultValue; | |
249 | |
250 final num maxValue; | |
251 | |
252 final num minValue; | |
253 | |
254 final String name; | |
255 | |
256 final int units; | |
257 | |
258 num value; | |
259 | |
260 void cancelScheduledValues(num startTime) native; | |
261 | |
262 void exponentialRampToValueAtTime(num value, num time) native; | |
263 | |
264 void linearRampToValueAtTime(num value, num time) native; | |
265 | |
266 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; | |
267 | |
268 void setValueAtTime(num value, num time) native; | |
269 | |
270 void setValueCurveAtTime(_Float32ArrayJs values, num time, num duration) nativ
e; | |
271 } | |
272 | |
273 class _AudioProcessingEventJs extends _EventJs implements AudioProcessingEvent n
ative "*AudioProcessingEvent" { | |
274 | |
275 final _AudioBufferJs inputBuffer; | |
276 | |
277 final _AudioBufferJs outputBuffer; | |
278 } | |
279 | |
280 class _AudioSourceNodeJs extends _AudioNodeJs implements AudioSourceNode native
"*AudioSourceNode" { | |
281 } | |
282 | |
283 class _BarInfoJs extends _DOMTypeJs implements BarInfo native "*BarInfo" { | |
284 | |
285 final bool visible; | |
286 } | |
287 | |
288 class _BatteryManagerJs extends _EventTargetJs implements BatteryManager native
"*BatteryManager" { | |
289 | |
290 final bool charging; | |
291 | |
292 final num chargingTime; | |
293 | |
294 final num dischargingTime; | |
295 | |
296 final num level; | |
297 | |
298 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
299 | |
300 bool dispatchEvent(_EventJs evt) native; | |
301 | |
302 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
303 } | |
304 | |
305 class _BeforeLoadEventJs extends _EventJs implements BeforeLoadEvent native "*Be
foreLoadEvent" { | |
306 | |
307 final String url; | |
308 } | |
309 | |
310 class _BiquadFilterNodeJs extends _AudioNodeJs implements BiquadFilterNode nativ
e "*BiquadFilterNode" { | |
311 | |
312 static const int ALLPASS = 7; | |
313 | |
314 static const int BANDPASS = 2; | |
315 | |
316 static const int HIGHPASS = 1; | |
317 | |
318 static const int HIGHSHELF = 4; | |
319 | |
320 static const int LOWPASS = 0; | |
321 | |
322 static const int LOWSHELF = 3; | |
323 | |
324 static const int NOTCH = 6; | |
325 | |
326 static const int PEAKING = 5; | |
327 | |
328 final _AudioParamJs Q; | |
329 | |
330 final _AudioParamJs frequency; | |
331 | |
332 final _AudioParamJs gain; | |
333 | |
334 int type; | |
335 | |
336 void getFrequencyResponse(_Float32ArrayJs frequencyHz, _Float32ArrayJs magResp
onse, _Float32ArrayJs phaseResponse) native; | |
337 } | |
338 | |
339 class _BlobJs extends _DOMTypeJs implements Blob native "*Blob" { | |
340 | |
341 final int size; | |
342 | |
343 final String type; | |
344 | |
345 _BlobJs slice([int start, int end, String contentType]) native; | |
346 | |
347 _BlobJs webkitSlice([int start, int end, String contentType]) native; | |
348 } | |
349 | |
350 class _CDATASectionJs extends _TextJs implements CDATASection native "*CDATASect
ion" { | |
351 } | |
352 | |
353 class _CSSCharsetRuleJs extends _CSSRuleJs implements CSSCharsetRule native "*CS
SCharsetRule" { | |
354 | |
355 String encoding; | |
356 } | |
357 | |
358 class _CSSFontFaceRuleJs extends _CSSRuleJs implements CSSFontFaceRule native "*
CSSFontFaceRule" { | |
359 | |
360 final _CSSStyleDeclarationJs style; | |
361 } | |
362 | |
363 class _CSSImportRuleJs extends _CSSRuleJs implements CSSImportRule native "*CSSI
mportRule" { | |
364 | |
365 final String href; | |
366 | |
367 final _MediaListJs media; | |
368 | |
369 final _CSSStyleSheetJs styleSheet; | |
370 } | |
371 | |
372 class _CSSMediaRuleJs extends _CSSRuleJs implements CSSMediaRule native "*CSSMed
iaRule" { | |
373 | |
374 final _CSSRuleListJs cssRules; | |
375 | |
376 final _MediaListJs media; | |
377 | |
378 void deleteRule(int index) native; | |
379 | |
380 int insertRule(String rule, int index) native; | |
381 } | |
382 | |
383 class _CSSPageRuleJs extends _CSSRuleJs implements CSSPageRule native "*CSSPageR
ule" { | |
384 | |
385 String selectorText; | |
386 | |
387 final _CSSStyleDeclarationJs style; | |
388 } | |
389 | |
390 class _CSSPrimitiveValueJs extends _CSSValueJs implements CSSPrimitiveValue nati
ve "*CSSPrimitiveValue" { | |
391 | |
392 static const int CSS_ATTR = 22; | |
393 | |
394 static const int CSS_CM = 6; | |
395 | |
396 static const int CSS_COUNTER = 23; | |
397 | |
398 static const int CSS_DEG = 11; | |
399 | |
400 static const int CSS_DIMENSION = 18; | |
401 | |
402 static const int CSS_EMS = 3; | |
403 | |
404 static const int CSS_EXS = 4; | |
405 | |
406 static const int CSS_GRAD = 13; | |
407 | |
408 static const int CSS_HZ = 16; | |
409 | |
410 static const int CSS_IDENT = 21; | |
411 | |
412 static const int CSS_IN = 8; | |
413 | |
414 static const int CSS_KHZ = 17; | |
415 | |
416 static const int CSS_MM = 7; | |
417 | |
418 static const int CSS_MS = 14; | |
419 | |
420 static const int CSS_NUMBER = 1; | |
421 | |
422 static const int CSS_PC = 10; | |
423 | |
424 static const int CSS_PERCENTAGE = 2; | |
425 | |
426 static const int CSS_PT = 9; | |
427 | |
428 static const int CSS_PX = 5; | |
429 | |
430 static const int CSS_RAD = 12; | |
431 | |
432 static const int CSS_RECT = 24; | |
433 | |
434 static const int CSS_RGBCOLOR = 25; | |
435 | |
436 static const int CSS_S = 15; | |
437 | |
438 static const int CSS_STRING = 19; | |
439 | |
440 static const int CSS_UNKNOWN = 0; | |
441 | |
442 static const int CSS_URI = 20; | |
443 | |
444 static const int CSS_VH = 27; | |
445 | |
446 static const int CSS_VMIN = 28; | |
447 | |
448 static const int CSS_VW = 26; | |
449 | |
450 final int primitiveType; | |
451 | |
452 _CounterJs getCounterValue() native; | |
453 | |
454 num getFloatValue(int unitType) native; | |
455 | |
456 _RGBColorJs getRGBColorValue() native; | |
457 | |
458 _RectJs getRectValue() native; | |
459 | |
460 String getStringValue() native; | |
461 | |
462 void setFloatValue(int unitType, num floatValue) native; | |
463 | |
464 void setStringValue(int stringType, String stringValue) native; | |
465 } | |
466 | |
467 class _CSSRuleJs extends _DOMTypeJs implements CSSRule native "*CSSRule" { | |
468 | |
469 static const int CHARSET_RULE = 2; | |
470 | |
471 static const int FONT_FACE_RULE = 5; | |
472 | |
473 static const int IMPORT_RULE = 3; | |
474 | |
475 static const int MEDIA_RULE = 4; | |
476 | |
477 static const int PAGE_RULE = 6; | |
478 | |
479 static const int STYLE_RULE = 1; | |
480 | |
481 static const int UNKNOWN_RULE = 0; | |
482 | |
483 static const int WEBKIT_KEYFRAMES_RULE = 7; | |
484 | |
485 static const int WEBKIT_KEYFRAME_RULE = 8; | |
486 | |
487 String cssText; | |
488 | |
489 final _CSSRuleJs parentRule; | |
490 | |
491 final _CSSStyleSheetJs parentStyleSheet; | |
492 | |
493 final int type; | |
494 } | |
495 | |
496 class _CSSRuleListJs extends _DOMTypeJs implements CSSRuleList native "*CSSRuleL
ist" { | |
497 | |
498 final int length; | |
499 | |
500 _CSSRuleJs item(int index) native; | |
501 } | |
502 | |
503 class _CSSStyleDeclarationJs extends _DOMTypeJs implements CSSStyleDeclaration n
ative "*CSSStyleDeclaration" { | |
504 | |
505 String cssText; | |
506 | |
507 final int length; | |
508 | |
509 final _CSSRuleJs parentRule; | |
510 | |
511 _CSSValueJs getPropertyCSSValue(String propertyName) native; | |
512 | |
513 String getPropertyPriority(String propertyName) native; | |
514 | |
515 String getPropertyShorthand(String propertyName) native; | |
516 | |
517 String getPropertyValue(String propertyName) native; | |
518 | |
519 bool isPropertyImplicit(String propertyName) native; | |
520 | |
521 String item(int index) native; | |
522 | |
523 String removeProperty(String propertyName) native; | |
524 | |
525 void setProperty(String propertyName, String value, [String priority]) native; | |
526 } | |
527 | |
528 class _CSSStyleRuleJs extends _CSSRuleJs implements CSSStyleRule native "*CSSSty
leRule" { | |
529 | |
530 String selectorText; | |
531 | |
532 final _CSSStyleDeclarationJs style; | |
533 } | |
534 | |
535 class _CSSStyleSheetJs extends _StyleSheetJs implements CSSStyleSheet native "*C
SSStyleSheet" { | |
536 | |
537 final _CSSRuleListJs cssRules; | |
538 | |
539 final _CSSRuleJs ownerRule; | |
540 | |
541 final _CSSRuleListJs rules; | |
542 | |
543 int addRule(String selector, String style, [int index]) native; | |
544 | |
545 void deleteRule(int index) native; | |
546 | |
547 int insertRule(String rule, int index) native; | |
548 | |
549 void removeRule(int index) native; | |
550 } | |
551 | |
552 class _CSSUnknownRuleJs extends _CSSRuleJs implements CSSUnknownRule native "*CS
SUnknownRule" { | |
553 } | |
554 | |
555 class _CSSValueJs extends _DOMTypeJs implements CSSValue native "*CSSValue" { | |
556 | |
557 static const int CSS_CUSTOM = 3; | |
558 | |
559 static const int CSS_INHERIT = 0; | |
560 | |
561 static const int CSS_PRIMITIVE_VALUE = 1; | |
562 | |
563 static const int CSS_VALUE_LIST = 2; | |
564 | |
565 String cssText; | |
566 | |
567 final int cssValueType; | |
568 } | |
569 | |
570 class _CSSValueListJs extends _CSSValueJs implements CSSValueList native "*CSSVa
lueList" { | |
571 | |
572 final int length; | |
573 | |
574 _CSSValueJs item(int index) native; | |
575 } | |
576 | |
577 class _CanvasGradientJs extends _DOMTypeJs implements CanvasGradient native "*Ca
nvasGradient" { | |
578 | |
579 void addColorStop(num offset, String color) native; | |
580 } | |
581 | |
582 class _CanvasPatternJs extends _DOMTypeJs implements CanvasPattern native "*Canv
asPattern" { | |
583 } | |
584 | |
585 class _CanvasRenderingContextJs extends _DOMTypeJs implements CanvasRenderingCon
text native "*CanvasRenderingContext" { | |
586 | |
587 final _HTMLCanvasElementJs canvas; | |
588 } | |
589 | |
590 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C
anvasRenderingContext2D native "*CanvasRenderingContext2D" { | |
591 | |
592 var fillStyle; | |
593 | |
594 String font; | |
595 | |
596 num globalAlpha; | |
597 | |
598 String globalCompositeOperation; | |
599 | |
600 String lineCap; | |
601 | |
602 String lineJoin; | |
603 | |
604 num lineWidth; | |
605 | |
606 num miterLimit; | |
607 | |
608 num shadowBlur; | |
609 | |
610 String shadowColor; | |
611 | |
612 num shadowOffsetX; | |
613 | |
614 num shadowOffsetY; | |
615 | |
616 var strokeStyle; | |
617 | |
618 String textAlign; | |
619 | |
620 String textBaseline; | |
621 | |
622 final num webkitBackingStorePixelRatio; | |
623 | |
624 bool webkitImageSmoothingEnabled; | |
625 | |
626 List webkitLineDash; | |
627 | |
628 num webkitLineDashOffset; | |
629 | |
630 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; | |
631 | |
632 void arcTo(num x1, num y1, num x2, num y2, num radius) native; | |
633 | |
634 void beginPath() native; | |
635 | |
636 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | |
637 | |
638 void clearRect(num x, num y, num width, num height) native; | |
639 | |
640 void clearShadow() native; | |
641 | |
642 void clip() native; | |
643 | |
644 void closePath() native; | |
645 | |
646 _ImageDataJs createImageData(imagedata_OR_sw, [num sh]) native; | |
647 | |
648 _CanvasGradientJs createLinearGradient(num x0, num y0, num x1, num y1) native; | |
649 | |
650 _CanvasPatternJs createPattern(canvas_OR_image, String repetitionType) native; | |
651 | |
652 _CanvasGradientJs createRadialGradient(num x0, num y0, num r0, num x1, num y1,
num r1) native; | |
653 | |
654 void drawImage(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]) native; | |
655 | |
656 void drawImageFromRect(_HTMLImageElementJs image, [num sx, num sy, num sw, num
sh, num dx, num dy, num dw, num dh, String compositeOperation]) native; | |
657 | |
658 void fill() native; | |
659 | |
660 void fillRect(num x, num y, num width, num height) native; | |
661 | |
662 void fillText(String text, num x, num y, [num maxWidth]) native; | |
663 | |
664 _ImageDataJs getImageData(num sx, num sy, num sw, num sh) native; | |
665 | |
666 bool isPointInPath(num x, num y) native; | |
667 | |
668 void lineTo(num x, num y) native; | |
669 | |
670 _TextMetricsJs measureText(String text) native; | |
671 | |
672 void moveTo(num x, num y) native; | |
673 | |
674 void putImageData(_ImageDataJs imagedata, num dx, num dy, [num dirtyX, num dir
tyY, num dirtyWidth, num dirtyHeight]) native; | |
675 | |
676 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | |
677 | |
678 void rect(num x, num y, num width, num height) native; | |
679 | |
680 void restore() native; | |
681 | |
682 void rotate(num angle) native; | |
683 | |
684 void save() native; | |
685 | |
686 void scale(num sx, num sy) native; | |
687 | |
688 void setAlpha(num alpha) native; | |
689 | |
690 void setCompositeOperation(String compositeOperation) native; | |
691 | |
692 void setFillColor(c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, num b_OR
_y, num a_OR_k, num a]) native; | |
693 | |
694 void setLineCap(String cap) native; | |
695 | |
696 void setLineJoin(String join) native; | |
697 | |
698 void setLineWidth(num width) native; | |
699 | |
700 void setMiterLimit(num limit) native; | |
701 | |
702 void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r,
num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]) native; | |
703 | |
704 void setStrokeColor(c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, num b_
OR_y, num a_OR_k, num a]) native; | |
705 | |
706 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; | |
707 | |
708 void stroke() native; | |
709 | |
710 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; | |
711 | |
712 void strokeText(String text, num x, num y, [num maxWidth]) native; | |
713 | |
714 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | |
715 | |
716 void translate(num tx, num ty) native; | |
717 | |
718 _ImageDataJs webkitGetImageDataHD(num sx, num sy, num sw, num sh) native; | |
719 | |
720 void webkitPutImageDataHD(_ImageDataJs imagedata, num dx, num dy, [num dirtyX,
num dirtyY, num dirtyWidth, num dirtyHeight]) native; | |
721 } | |
722 | |
723 class _CharacterDataJs extends _NodeJs implements CharacterData native "*Charact
erData" { | |
724 | |
725 String data; | |
726 | |
727 final int length; | |
728 | |
729 void appendData(String data) native; | |
730 | |
731 void deleteData(int offset, int length) native; | |
732 | |
733 void insertData(int offset, String data) native; | |
734 | |
735 void replaceData(int offset, int length, String data) native; | |
736 | |
737 String substringData(int offset, int length) native; | |
738 } | |
739 | |
740 class _ClientRectJs extends _DOMTypeJs implements ClientRect native "*ClientRect
" { | |
741 | |
742 final num bottom; | |
743 | |
744 final num height; | |
745 | |
746 final num left; | |
747 | |
748 final num right; | |
749 | |
750 final num top; | |
751 | |
752 final num width; | |
753 } | |
754 | |
755 class _ClientRectListJs extends _DOMTypeJs implements ClientRectList native "*Cl
ientRectList" { | |
756 | |
757 final int length; | |
758 | |
759 _ClientRectJs item(int index) native; | |
760 } | |
761 | |
762 class _ClipboardJs extends _DOMTypeJs implements Clipboard native "*Clipboard" { | |
763 | |
764 String dropEffect; | |
765 | |
766 String effectAllowed; | |
767 | |
768 final _FileListJs files; | |
769 | |
770 final _DataTransferItemListJs items; | |
771 | |
772 final List types; | |
773 | |
774 void clearData([String type]) native; | |
775 | |
776 String getData(String type) native; | |
777 | |
778 bool setData(String type, String data) native; | |
779 | |
780 void setDragImage(_HTMLImageElementJs image, int x, int y) native; | |
781 } | |
782 | |
783 class _CloseEventJs extends _EventJs implements CloseEvent native "*CloseEvent"
{ | |
784 | |
785 final int code; | |
786 | |
787 final String reason; | |
788 | |
789 final bool wasClean; | |
790 } | |
791 | |
792 class _CommentJs extends _CharacterDataJs implements Comment native "*Comment" { | |
793 } | |
794 | |
795 class _CompositionEventJs extends _UIEventJs implements CompositionEvent native
"*CompositionEvent" { | |
796 | |
797 final String data; | |
798 | |
799 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, _DOMWindowJs viewArg, String dataArg) native; | |
800 } | |
801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
802 // for details. All rights reserved. Use of this source code is governed by a | |
803 // BSD-style license that can be found in the LICENSE file. | |
804 | |
805 class _ConsoleJs | |
806 // Implement DOMType directly. Console is sometimes a singleton | |
807 // bag-of-properties without a prototype, so it can't inherit from | |
808 // DOMTypeJs. | |
809 implements Console, DOMType | |
810 native "=(typeof console == 'undefined' ? {} : console)" { | |
811 | |
812 final _MemoryInfoJs memory; | |
813 | |
814 final List<ScriptProfile> profiles; | |
815 | |
816 void assertCondition(bool condition, Object arg) native; | |
817 | |
818 void count(Object arg) native; | |
819 | |
820 void debug(Object arg) native; | |
821 | |
822 void dir(Object arg) native; | |
823 | |
824 void dirxml(Object arg) native; | |
825 | |
826 void error(Object arg) native; | |
827 | |
828 void group(Object arg) native; | |
829 | |
830 void groupCollapsed(Object arg) native; | |
831 | |
832 void groupEnd() native; | |
833 | |
834 void info(Object arg) native; | |
835 | |
836 void log(Object arg) native; | |
837 | |
838 void markTimeline(Object arg) native; | |
839 | |
840 void profile(String title) native; | |
841 | |
842 void profileEnd(String title) native; | |
843 | |
844 void time(String title) native; | |
845 | |
846 void timeEnd(String title, Object arg) native; | |
847 | |
848 void timeStamp(Object arg) native; | |
849 | |
850 void trace(Object arg) native; | |
851 | |
852 void warn(Object arg) native; | |
853 | |
854 | |
855 // Keep these in sync with dart2js_DOMTypeJs.dart. | |
856 var dartObjectLocalStorage; | |
857 String get typeName() native; | |
858 } | |
859 | |
860 class _ConvolverNodeJs extends _AudioNodeJs implements ConvolverNode native "*Co
nvolverNode" { | |
861 | |
862 _AudioBufferJs buffer; | |
863 | |
864 bool normalize; | |
865 } | |
866 | |
867 class _CoordinatesJs extends _DOMTypeJs implements Coordinates native "*Coordina
tes" { | |
868 | |
869 final num accuracy; | |
870 | |
871 final num altitude; | |
872 | |
873 final num altitudeAccuracy; | |
874 | |
875 final num heading; | |
876 | |
877 final num latitude; | |
878 | |
879 final num longitude; | |
880 | |
881 final num speed; | |
882 } | |
883 | |
884 class _CounterJs extends _DOMTypeJs implements Counter native "*Counter" { | |
885 | |
886 final String identifier; | |
887 | |
888 final String listStyle; | |
889 | |
890 final String separator; | |
891 } | |
892 | |
893 class _CryptoJs extends _DOMTypeJs implements Crypto native "*Crypto" { | |
894 | |
895 void getRandomValues(_ArrayBufferViewJs array) native; | |
896 } | |
897 | |
898 class _CustomEventJs extends _EventJs implements CustomEvent native "*CustomEven
t" { | |
899 | |
900 final Object detail; | |
901 | |
902 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob
ject detailArg) native; | |
903 } | |
904 | |
905 class _DOMApplicationCacheJs extends _EventTargetJs implements DOMApplicationCac
he native "*DOMApplicationCache" { | |
906 | |
907 static const int CHECKING = 2; | |
908 | |
909 static const int DOWNLOADING = 3; | |
910 | |
911 static const int IDLE = 1; | |
912 | |
913 static const int OBSOLETE = 5; | |
914 | |
915 static const int UNCACHED = 0; | |
916 | |
917 static const int UPDATEREADY = 4; | |
918 | |
919 final int status; | |
920 | |
921 void abort() native; | |
922 | |
923 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
924 | |
925 bool dispatchEvent(_EventJs evt) native; | |
926 | |
927 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
928 | |
929 void swapCache() native; | |
930 | |
931 void update() native; | |
932 } | |
933 | |
934 class _DOMErrorJs extends _DOMTypeJs implements DOMError native "*DOMError" { | |
935 | |
936 final String name; | |
937 } | |
938 | |
939 class _DOMExceptionJs extends _DOMTypeJs implements DOMException native "*DOMExc
eption" { | |
940 | |
941 static const int ABORT_ERR = 20; | |
942 | |
943 static const int DATA_CLONE_ERR = 25; | |
944 | |
945 static const int DOMSTRING_SIZE_ERR = 2; | |
946 | |
947 static const int HIERARCHY_REQUEST_ERR = 3; | |
948 | |
949 static const int INDEX_SIZE_ERR = 1; | |
950 | |
951 static const int INUSE_ATTRIBUTE_ERR = 10; | |
952 | |
953 static const int INVALID_ACCESS_ERR = 15; | |
954 | |
955 static const int INVALID_CHARACTER_ERR = 5; | |
956 | |
957 static const int INVALID_MODIFICATION_ERR = 13; | |
958 | |
959 static const int INVALID_NODE_TYPE_ERR = 24; | |
960 | |
961 static const int INVALID_STATE_ERR = 11; | |
962 | |
963 static const int NAMESPACE_ERR = 14; | |
964 | |
965 static const int NETWORK_ERR = 19; | |
966 | |
967 static const int NOT_FOUND_ERR = 8; | |
968 | |
969 static const int NOT_SUPPORTED_ERR = 9; | |
970 | |
971 static const int NO_DATA_ALLOWED_ERR = 6; | |
972 | |
973 static const int NO_MODIFICATION_ALLOWED_ERR = 7; | |
974 | |
975 static const int QUOTA_EXCEEDED_ERR = 22; | |
976 | |
977 static const int SECURITY_ERR = 18; | |
978 | |
979 static const int SYNTAX_ERR = 12; | |
980 | |
981 static const int TIMEOUT_ERR = 23; | |
982 | |
983 static const int TYPE_MISMATCH_ERR = 17; | |
984 | |
985 static const int URL_MISMATCH_ERR = 21; | |
986 | |
987 static const int VALIDATION_ERR = 16; | |
988 | |
989 static const int WRONG_DOCUMENT_ERR = 4; | |
990 | |
991 final int code; | |
992 | |
993 final String message; | |
994 | |
995 final String name; | |
996 | |
997 String toString() native; | |
998 } | |
999 | |
1000 class _DOMFileSystemJs extends _DOMTypeJs implements DOMFileSystem native "*DOMF
ileSystem" { | |
1001 | |
1002 final String name; | |
1003 | |
1004 final _DirectoryEntryJs root; | |
1005 } | |
1006 | |
1007 class _DOMFileSystemSyncJs extends _DOMTypeJs implements DOMFileSystemSync nativ
e "*DOMFileSystemSync" { | |
1008 | |
1009 final String name; | |
1010 | |
1011 final _DirectoryEntrySyncJs root; | |
1012 } | |
1013 | |
1014 class _DOMFormDataJs extends _DOMTypeJs implements DOMFormData native "*DOMFormD
ata" { | |
1015 | |
1016 void append(String name, String value, String filename) native; | |
1017 } | |
1018 | |
1019 class _DOMImplementationJs extends _DOMTypeJs implements DOMImplementation nativ
e "*DOMImplementation" { | |
1020 | |
1021 _CSSStyleSheetJs createCSSStyleSheet(String title, String media) native; | |
1022 | |
1023 _DocumentJs createDocument(String namespaceURI, String qualifiedName, _Documen
tTypeJs doctype) native; | |
1024 | |
1025 _DocumentTypeJs createDocumentType(String qualifiedName, String publicId, Stri
ng systemId) native; | |
1026 | |
1027 _HTMLDocumentJs createHTMLDocument(String title) native; | |
1028 | |
1029 bool hasFeature(String feature, String version) native; | |
1030 } | |
1031 | |
1032 class _DOMMimeTypeJs extends _DOMTypeJs implements DOMMimeType native "*DOMMimeT
ype" { | |
1033 | |
1034 final String description; | |
1035 | |
1036 final _DOMPluginJs enabledPlugin; | |
1037 | |
1038 final String suffixes; | |
1039 | |
1040 final String type; | |
1041 } | |
1042 | |
1043 class _DOMMimeTypeArrayJs extends _DOMTypeJs implements DOMMimeTypeArray native
"*DOMMimeTypeArray" { | |
1044 | |
1045 final int length; | |
1046 | |
1047 _DOMMimeTypeJs item(int index) native; | |
1048 | |
1049 _DOMMimeTypeJs namedItem(String name) native; | |
1050 } | |
1051 | |
1052 class _DOMParserJs extends _DOMTypeJs implements DOMParser native "*DOMParser" { | |
1053 | |
1054 _DocumentJs parseFromString(String str, String contentType) native; | |
1055 } | |
1056 | |
1057 class _DOMPluginJs extends _DOMTypeJs implements DOMPlugin native "*DOMPlugin" { | |
1058 | |
1059 final String description; | |
1060 | |
1061 final String filename; | |
1062 | |
1063 final int length; | |
1064 | |
1065 final String name; | |
1066 | |
1067 _DOMMimeTypeJs item(int index) native; | |
1068 | |
1069 _DOMMimeTypeJs namedItem(String name) native; | |
1070 } | |
1071 | |
1072 class _DOMPluginArrayJs extends _DOMTypeJs implements DOMPluginArray native "*DO
MPluginArray" { | |
1073 | |
1074 final int length; | |
1075 | |
1076 _DOMPluginJs item(int index) native; | |
1077 | |
1078 _DOMPluginJs namedItem(String name) native; | |
1079 | |
1080 void refresh(bool reload) native; | |
1081 } | |
1082 | |
1083 class _DOMSelectionJs extends _DOMTypeJs implements DOMSelection native "*DOMSel
ection" { | |
1084 | |
1085 final _NodeJs anchorNode; | |
1086 | |
1087 final int anchorOffset; | |
1088 | |
1089 final _NodeJs baseNode; | |
1090 | |
1091 final int baseOffset; | |
1092 | |
1093 final _NodeJs extentNode; | |
1094 | |
1095 final int extentOffset; | |
1096 | |
1097 final _NodeJs focusNode; | |
1098 | |
1099 final int focusOffset; | |
1100 | |
1101 final bool isCollapsed; | |
1102 | |
1103 final int rangeCount; | |
1104 | |
1105 final String type; | |
1106 | |
1107 void addRange(_RangeJs range) native; | |
1108 | |
1109 void collapse(_NodeJs node, int index) native; | |
1110 | |
1111 void collapseToEnd() native; | |
1112 | |
1113 void collapseToStart() native; | |
1114 | |
1115 bool containsNode(_NodeJs node, bool allowPartial) native; | |
1116 | |
1117 void deleteFromDocument() native; | |
1118 | |
1119 void empty() native; | |
1120 | |
1121 void extend(_NodeJs node, int offset) native; | |
1122 | |
1123 _RangeJs getRangeAt(int index) native; | |
1124 | |
1125 void modify(String alter, String direction, String granularity) native; | |
1126 | |
1127 void removeAllRanges() native; | |
1128 | |
1129 void selectAllChildren(_NodeJs node) native; | |
1130 | |
1131 void setBaseAndExtent(_NodeJs baseNode, int baseOffset, _NodeJs extentNode, in
t extentOffset) native; | |
1132 | |
1133 void setPosition(_NodeJs node, int offset) native; | |
1134 | |
1135 String toString() native; | |
1136 } | |
1137 | |
1138 class _DOMSettableTokenListJs extends _DOMTokenListJs implements DOMSettableToke
nList native "*DOMSettableTokenList" { | |
1139 | |
1140 String value; | |
1141 } | |
1142 | |
1143 class _DOMStringListJs extends _DOMTypeJs implements DOMStringList native "*DOMS
tringList" { | |
1144 | |
1145 final int length; | |
1146 | |
1147 String operator[](int index) native "return this[index];"; | |
1148 | |
1149 void operator[]=(int index, String value) { | |
1150 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
1151 } | |
1152 // -- start List<String> mixins. | |
1153 // String is the element type. | |
1154 | |
1155 // From Iterable<String>: | |
1156 | |
1157 Iterator<String> iterator() { | |
1158 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
1159 // be cached in both iterator _and_ forEach method. For now caching it | |
1160 // for consistency. | |
1161 return new _FixedSizeListIterator<String>(this); | |
1162 } | |
1163 | |
1164 // From Collection<String>: | |
1165 | |
1166 void add(String value) { | |
1167 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
1168 } | |
1169 | |
1170 void addLast(String value) { | |
1171 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
1172 } | |
1173 | |
1174 void addAll(Collection<String> collection) { | |
1175 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
1176 } | |
1177 | |
1178 void forEach(void f(String element)) => _Collections.forEach(this, f); | |
1179 | |
1180 Collection map(f(String element)) => _Collections.map(this, [], f); | |
1181 | |
1182 Collection<String> filter(bool f(String element)) => | |
1183 _Collections.filter(this, <String>[], f); | |
1184 | |
1185 bool every(bool f(String element)) => _Collections.every(this, f); | |
1186 | |
1187 bool some(bool f(String element)) => _Collections.some(this, f); | |
1188 | |
1189 bool isEmpty() => this.length == 0; | |
1190 | |
1191 // From List<String>: | |
1192 | |
1193 void sort(int compare(String a, String b)) { | |
1194 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
1195 } | |
1196 | |
1197 int indexOf(String element, [int start = 0]) => | |
1198 _Lists.indexOf(this, element, start, this.length); | |
1199 | |
1200 int lastIndexOf(String element, [int start]) { | |
1201 if (start === null) start = length - 1; | |
1202 return _Lists.lastIndexOf(this, element, start); | |
1203 } | |
1204 | |
1205 String last() => this[length - 1]; | |
1206 | |
1207 String removeLast() { | |
1208 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
1209 } | |
1210 | |
1211 // FIXME: implement these. | |
1212 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ | |
1213 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
1214 } | |
1215 | |
1216 void removeRange(int start, int rangeLength) { | |
1217 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
1218 } | |
1219 | |
1220 void insertRange(int start, int rangeLength, [String initialValue]) { | |
1221 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
1222 } | |
1223 | |
1224 List<String> getRange(int start, int rangeLength) => | |
1225 _Lists.getRange(this, start, rangeLength, <String>[]); | |
1226 | |
1227 // -- end List<String> mixins. | |
1228 | |
1229 bool contains(String string) native; | |
1230 | |
1231 String item(int index) native; | |
1232 } | |
1233 | |
1234 class _DOMTokenListJs extends _DOMTypeJs implements DOMTokenList native "*DOMTok
enList" { | |
1235 | |
1236 final int length; | |
1237 | |
1238 void add(String token) native; | |
1239 | |
1240 bool contains(String token) native; | |
1241 | |
1242 String item(int index) native; | |
1243 | |
1244 void remove(String token) native; | |
1245 | |
1246 String toString() native; | |
1247 | |
1248 bool toggle(String token) native; | |
1249 } | |
1250 | |
1251 class _DOMURLJs extends _DOMTypeJs implements DOMURL native "*DOMURL" { | |
1252 } | |
1253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1254 // for details. All rights reserved. Use of this source code is governed by a | |
1255 // BSD-style license that can be found in the LICENSE file. | |
1256 | |
1257 class _DOMWindowJs extends _EventTargetJs implements DOMWindow native "@*DOMWind
ow" { | |
1258 | |
1259 Window get _top() native "return this.top;"; | |
1260 | |
1261 // Override top to return secure wrapper. | |
1262 Window get top() => _DOMWindowCrossFrameImpl._createSafe(_top); | |
1263 | |
1264 int requestAnimationFrame(RequestAnimationFrameCallback callback) native ''' | |
1265 if (!window.requestAnimationFrame) { | |
1266 window.requestAnimationFrame = | |
1267 window.webkitRequestAnimationFrame || | |
1268 window.mozRequestAnimationFrame || | |
1269 window.msRequestAnimationFrame || | |
1270 window.oRequestAnimationFrame || | |
1271 function (callback) { | |
1272 window.setTimeout(callback, 16 /* 16ms ~= 60fps */); | |
1273 }; | |
1274 } | |
1275 return window.requestAnimationFrame(callback); | |
1276 '''; | |
1277 | |
1278 // Protect member 'requestAnimationFrame'. | |
1279 _requestAnimationFrame() native 'requestAnimationFrame'; | |
1280 | |
1281 | |
1282 static const int PERSISTENT = 1; | |
1283 | |
1284 static const int TEMPORARY = 0; | |
1285 | |
1286 final _DOMApplicationCacheJs applicationCache; | |
1287 | |
1288 final _NavigatorJs clientInformation; | |
1289 | |
1290 final bool closed; | |
1291 | |
1292 final _ConsoleJs console; | |
1293 | |
1294 final _CryptoJs crypto; | |
1295 | |
1296 String defaultStatus; | |
1297 | |
1298 String defaultstatus; | |
1299 | |
1300 final num devicePixelRatio; | |
1301 | |
1302 final _DocumentJs document; | |
1303 | |
1304 final _EventJs event; | |
1305 | |
1306 final _DOMWindowJs frames; | |
1307 | |
1308 final _HistoryJs history; | |
1309 | |
1310 final int innerHeight; | |
1311 | |
1312 final int innerWidth; | |
1313 | |
1314 final int length; | |
1315 | |
1316 final _StorageJs localStorage; | |
1317 | |
1318 _LocationJs location; | |
1319 | |
1320 final _BarInfoJs locationbar; | |
1321 | |
1322 final _BarInfoJs menubar; | |
1323 | |
1324 String name; | |
1325 | |
1326 final _NavigatorJs navigator; | |
1327 | |
1328 final bool offscreenBuffering; | |
1329 | |
1330 final _DOMWindowJs opener; | |
1331 | |
1332 final int outerHeight; | |
1333 | |
1334 final int outerWidth; | |
1335 | |
1336 final _PagePopupControllerJs pagePopupController; | |
1337 | |
1338 final int pageXOffset; | |
1339 | |
1340 final int pageYOffset; | |
1341 | |
1342 final _DOMWindowJs parent; | |
1343 | |
1344 final _PerformanceJs performance; | |
1345 | |
1346 final _BarInfoJs personalbar; | |
1347 | |
1348 final _ScreenJs screen; | |
1349 | |
1350 final int screenLeft; | |
1351 | |
1352 final int screenTop; | |
1353 | |
1354 final int screenX; | |
1355 | |
1356 final int screenY; | |
1357 | |
1358 final int scrollX; | |
1359 | |
1360 final int scrollY; | |
1361 | |
1362 final _BarInfoJs scrollbars; | |
1363 | |
1364 final _DOMWindowJs self; | |
1365 | |
1366 final _StorageJs sessionStorage; | |
1367 | |
1368 String status; | |
1369 | |
1370 final _BarInfoJs statusbar; | |
1371 | |
1372 final _StyleMediaJs styleMedia; | |
1373 | |
1374 final _BarInfoJs toolbar; | |
1375 | |
1376 final _IDBFactoryJs webkitIndexedDB; | |
1377 | |
1378 final _NotificationCenterJs webkitNotifications; | |
1379 | |
1380 final _StorageInfoJs webkitStorageInfo; | |
1381 | |
1382 final _DOMWindowJs window; | |
1383 | |
1384 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
1385 | |
1386 void alert(String message) native; | |
1387 | |
1388 String atob(String string) native; | |
1389 | |
1390 void blur() native; | |
1391 | |
1392 String btoa(String string) native; | |
1393 | |
1394 void captureEvents() native; | |
1395 | |
1396 void clearInterval(int handle) native; | |
1397 | |
1398 void clearTimeout(int handle) native; | |
1399 | |
1400 void close() native; | |
1401 | |
1402 bool confirm(String message) native; | |
1403 | |
1404 bool dispatchEvent(_EventJs evt) native; | |
1405 | |
1406 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; | |
1407 | |
1408 void focus() native; | |
1409 | |
1410 _CSSStyleDeclarationJs getComputedStyle(_ElementJs element, String pseudoEleme
nt) native; | |
1411 | |
1412 _CSSRuleListJs getMatchedCSSRules(_ElementJs element, String pseudoElement) na
tive; | |
1413 | |
1414 _DOMSelectionJs getSelection() native; | |
1415 | |
1416 _MediaQueryListJs matchMedia(String query) native; | |
1417 | |
1418 void moveBy(num x, num y) native; | |
1419 | |
1420 void moveTo(num x, num y) native; | |
1421 | |
1422 _DOMWindowJs open(String url, String name, [String options]) native; | |
1423 | |
1424 _DatabaseJs openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback]) native; | |
1425 | |
1426 void postMessage(message, String targetOrigin, [List messagePorts]) native; | |
1427 | |
1428 void print() native; | |
1429 | |
1430 String prompt(String message, String defaultValue) native; | |
1431 | |
1432 void releaseEvents() native; | |
1433 | |
1434 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
1435 | |
1436 void resizeBy(num x, num y) native; | |
1437 | |
1438 void resizeTo(num width, num height) native; | |
1439 | |
1440 void scroll(int x, int y) native; | |
1441 | |
1442 void scrollBy(int x, int y) native; | |
1443 | |
1444 void scrollTo(int x, int y) native; | |
1445 | |
1446 int setInterval(TimeoutHandler handler, int timeout) native; | |
1447 | |
1448 int setTimeout(TimeoutHandler handler, int timeout) native; | |
1449 | |
1450 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; | |
1451 | |
1452 void stop() native; | |
1453 | |
1454 void webkitCancelAnimationFrame(int id) native; | |
1455 | |
1456 void webkitCancelRequestAnimationFrame(int id) native; | |
1457 | |
1458 _WebKitPointJs webkitConvertPointFromNodeToPage(_NodeJs node, _WebKitPointJs p
) native; | |
1459 | |
1460 _WebKitPointJs webkitConvertPointFromPageToNode(_NodeJs node, _WebKitPointJs p
) native; | |
1461 | |
1462 void webkitPostMessage(message, String targetOrigin, [List transferList]) nati
ve; | |
1463 | |
1464 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback) native
; | |
1465 | |
1466 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]) native; | |
1467 | |
1468 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]) native; | |
1469 | |
1470 } | |
1471 | |
1472 class _DataTransferItemJs extends _DOMTypeJs implements DataTransferItem native
"*DataTransferItem" { | |
1473 | |
1474 final String kind; | |
1475 | |
1476 final String type; | |
1477 | |
1478 _BlobJs getAsFile() native; | |
1479 | |
1480 void getAsString([StringCallback callback]) native; | |
1481 | |
1482 _EntryJs webkitGetAsEntry() native; | |
1483 } | |
1484 | |
1485 class _DataTransferItemListJs extends _DOMTypeJs implements DataTransferItemList
native "*DataTransferItemList" { | |
1486 | |
1487 final int length; | |
1488 | |
1489 void add(data_OR_file, [String type]) native; | |
1490 | |
1491 void clear() native; | |
1492 | |
1493 _DataTransferItemJs item(int index) native; | |
1494 } | |
1495 | |
1496 class _DataViewJs extends _ArrayBufferViewJs implements DataView native "*DataVi
ew" { | |
1497 | |
1498 num getFloat32(int byteOffset, [bool littleEndian]) native; | |
1499 | |
1500 num getFloat64(int byteOffset, [bool littleEndian]) native; | |
1501 | |
1502 int getInt16(int byteOffset, [bool littleEndian]) native; | |
1503 | |
1504 int getInt32(int byteOffset, [bool littleEndian]) native; | |
1505 | |
1506 int getInt8(int byteOffset) native; | |
1507 | |
1508 int getUint16(int byteOffset, [bool littleEndian]) native; | |
1509 | |
1510 int getUint32(int byteOffset, [bool littleEndian]) native; | |
1511 | |
1512 int getUint8(int byteOffset) native; | |
1513 | |
1514 void setFloat32(int byteOffset, num value, [bool littleEndian]) native; | |
1515 | |
1516 void setFloat64(int byteOffset, num value, [bool littleEndian]) native; | |
1517 | |
1518 void setInt16(int byteOffset, int value, [bool littleEndian]) native; | |
1519 | |
1520 void setInt32(int byteOffset, int value, [bool littleEndian]) native; | |
1521 | |
1522 void setInt8(int byteOffset, int value) native; | |
1523 | |
1524 void setUint16(int byteOffset, int value, [bool littleEndian]) native; | |
1525 | |
1526 void setUint32(int byteOffset, int value, [bool littleEndian]) native; | |
1527 | |
1528 void setUint8(int byteOffset, int value) native; | |
1529 } | |
1530 | |
1531 class _DatabaseJs extends _DOMTypeJs implements Database native "*Database" { | |
1532 | |
1533 final String version; | |
1534 | |
1535 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall
back]) native; | |
1536 | |
1537 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback, VoidCallback successCallback]) native; | |
1538 | |
1539 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback, VoidCallback successCallback]) native; | |
1540 } | |
1541 | |
1542 class _DatabaseSyncJs extends _DOMTypeJs implements DatabaseSync native "*Databa
seSync" { | |
1543 | |
1544 final String lastErrorMessage; | |
1545 | |
1546 final String version; | |
1547 | |
1548 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa
llback callback]) native; | |
1549 | |
1550 void readTransaction(SQLTransactionSyncCallback callback) native; | |
1551 | |
1552 void transaction(SQLTransactionSyncCallback callback) native; | |
1553 } | |
1554 | |
1555 class _DedicatedWorkerContextJs extends _WorkerContextJs implements DedicatedWor
kerContext native "*DedicatedWorkerContext" { | |
1556 | |
1557 void postMessage(Object message, [List messagePorts]) native; | |
1558 | |
1559 void webkitPostMessage(Object message, [List transferList]) native; | |
1560 } | |
1561 | |
1562 class _DelayNodeJs extends _AudioNodeJs implements DelayNode native "*DelayNode"
{ | |
1563 | |
1564 final _AudioParamJs delayTime; | |
1565 } | |
1566 | |
1567 class _DeviceMotionEventJs extends _EventJs implements DeviceMotionEvent native
"*DeviceMotionEvent" { | |
1568 | |
1569 final num interval; | |
1570 } | |
1571 | |
1572 class _DeviceOrientationEventJs extends _EventJs implements DeviceOrientationEve
nt native "*DeviceOrientationEvent" { | |
1573 | |
1574 final bool absolute; | |
1575 | |
1576 final num alpha; | |
1577 | |
1578 final num beta; | |
1579 | |
1580 final num gamma; | |
1581 | |
1582 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute) native; | |
1583 } | |
1584 | |
1585 class _DirectoryEntryJs extends _EntryJs implements DirectoryEntry native "*Dire
ctoryEntry" { | |
1586 | |
1587 _DirectoryReaderJs createReader() native; | |
1588 | |
1589 void getDirectory(String path, [Map options, EntryCallback successCallback, Er
rorCallback errorCallback]) native; | |
1590 | |
1591 void getFile(String path, [Map options, EntryCallback successCallback, ErrorCa
llback errorCallback]) native; | |
1592 | |
1593 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]) native; | |
1594 } | |
1595 | |
1596 class _DirectoryEntrySyncJs extends _EntrySyncJs implements DirectoryEntrySync n
ative "*DirectoryEntrySync" { | |
1597 | |
1598 _DirectoryReaderSyncJs createReader() native; | |
1599 | |
1600 _DirectoryEntrySyncJs getDirectory(String path, Map flags) native; | |
1601 | |
1602 _FileEntrySyncJs getFile(String path, Map flags) native; | |
1603 | |
1604 void removeRecursively() native; | |
1605 } | |
1606 | |
1607 class _DirectoryReaderJs extends _DOMTypeJs implements DirectoryReader native "*
DirectoryReader" { | |
1608 | |
1609 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
]) native; | |
1610 } | |
1611 | |
1612 class _DirectoryReaderSyncJs extends _DOMTypeJs implements DirectoryReaderSync n
ative "*DirectoryReaderSync" { | |
1613 | |
1614 _EntryArraySyncJs readEntries() native; | |
1615 } | |
1616 | |
1617 class _DocumentJs extends _NodeJs implements Document native "*Document" { | |
1618 | |
1619 final String URL; | |
1620 | |
1621 final _HTMLCollectionJs anchors; | |
1622 | |
1623 final _HTMLCollectionJs applets; | |
1624 | |
1625 _HTMLElementJs body; | |
1626 | |
1627 final String characterSet; | |
1628 | |
1629 String charset; | |
1630 | |
1631 final String compatMode; | |
1632 | |
1633 String cookie; | |
1634 | |
1635 final String defaultCharset; | |
1636 | |
1637 final _DOMWindowJs defaultView; | |
1638 | |
1639 final _DocumentTypeJs doctype; | |
1640 | |
1641 final _ElementJs documentElement; | |
1642 | |
1643 final String documentURI; | |
1644 | |
1645 String domain; | |
1646 | |
1647 final _HTMLCollectionJs forms; | |
1648 | |
1649 final _HTMLHeadElementJs head; | |
1650 | |
1651 final _HTMLCollectionJs images; | |
1652 | |
1653 final _DOMImplementationJs implementation; | |
1654 | |
1655 final String inputEncoding; | |
1656 | |
1657 final String lastModified; | |
1658 | |
1659 final _HTMLCollectionJs links; | |
1660 | |
1661 _LocationJs location; | |
1662 | |
1663 final String preferredStylesheetSet; | |
1664 | |
1665 final String readyState; | |
1666 | |
1667 final String referrer; | |
1668 | |
1669 String selectedStylesheetSet; | |
1670 | |
1671 final _StyleSheetListJs styleSheets; | |
1672 | |
1673 String title; | |
1674 | |
1675 final _ElementJs webkitCurrentFullScreenElement; | |
1676 | |
1677 final bool webkitFullScreenKeyboardInputAllowed; | |
1678 | |
1679 final _ElementJs webkitFullscreenElement; | |
1680 | |
1681 final bool webkitFullscreenEnabled; | |
1682 | |
1683 final bool webkitHidden; | |
1684 | |
1685 final bool webkitIsFullScreen; | |
1686 | |
1687 final _ElementJs webkitPointerLockElement; | |
1688 | |
1689 final String webkitVisibilityState; | |
1690 | |
1691 final String xmlEncoding; | |
1692 | |
1693 bool xmlStandalone; | |
1694 | |
1695 String xmlVersion; | |
1696 | |
1697 _NodeJs adoptNode(_NodeJs source) native; | |
1698 | |
1699 _RangeJs caretRangeFromPoint(int x, int y) native; | |
1700 | |
1701 _AttrJs createAttribute(String name) native; | |
1702 | |
1703 _AttrJs createAttributeNS(String namespaceURI, String qualifiedName) native; | |
1704 | |
1705 _CDATASectionJs createCDATASection(String data) native; | |
1706 | |
1707 _CommentJs createComment(String data) native; | |
1708 | |
1709 _DocumentFragmentJs createDocumentFragment() native; | |
1710 | |
1711 _ElementJs createElement(String tagName) native; | |
1712 | |
1713 _ElementJs createElementNS(String namespaceURI, String qualifiedName) native; | |
1714 | |
1715 _EntityReferenceJs createEntityReference(String name) native; | |
1716 | |
1717 _EventJs createEvent(String eventType) native; | |
1718 | |
1719 _XPathExpressionJs createExpression(String expression, _XPathNSResolverJs reso
lver) native; | |
1720 | |
1721 _XPathNSResolverJs createNSResolver(_NodeJs nodeResolver) native; | |
1722 | |
1723 _NodeIteratorJs createNodeIterator(_NodeJs root, int whatToShow, _NodeFilterJs
filter, bool expandEntityReferences) native; | |
1724 | |
1725 _ProcessingInstructionJs createProcessingInstruction(String target, String dat
a) native; | |
1726 | |
1727 _RangeJs createRange() native; | |
1728 | |
1729 _TextJs createTextNode(String data) native; | |
1730 | |
1731 _TouchJs createTouch(_DOMWindowJs window, _EventTargetJs target, int identifie
r, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkit
RadiusY, num webkitRotationAngle, num webkitForce) native; | |
1732 | |
1733 _TouchListJs createTouchList() native; | |
1734 | |
1735 _TreeWalkerJs createTreeWalker(_NodeJs root, int whatToShow, _NodeFilterJs fil
ter, bool expandEntityReferences) native; | |
1736 | |
1737 _ElementJs elementFromPoint(int x, int y) native; | |
1738 | |
1739 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv
erJs resolver, int type, _XPathResultJs inResult) native; | |
1740 | |
1741 bool execCommand(String command, bool userInterface, String value) native; | |
1742 | |
1743 _CanvasRenderingContextJs getCSSCanvasContext(String contextId, String name, i
nt width, int height) native; | |
1744 | |
1745 _ElementJs getElementById(String elementId) native; | |
1746 | |
1747 _NodeListJs getElementsByClassName(String tagname) native; | |
1748 | |
1749 _NodeListJs getElementsByName(String elementName) native; | |
1750 | |
1751 _NodeListJs getElementsByTagName(String tagname) native; | |
1752 | |
1753 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | |
1754 | |
1755 _CSSStyleDeclarationJs getOverrideStyle(_ElementJs element, String pseudoEleme
nt) native; | |
1756 | |
1757 _DOMSelectionJs getSelection() native; | |
1758 | |
1759 _NodeJs importNode(_NodeJs importedNode, [bool deep]) native; | |
1760 | |
1761 bool queryCommandEnabled(String command) native; | |
1762 | |
1763 bool queryCommandIndeterm(String command) native; | |
1764 | |
1765 bool queryCommandState(String command) native; | |
1766 | |
1767 bool queryCommandSupported(String command) native; | |
1768 | |
1769 String queryCommandValue(String command) native; | |
1770 | |
1771 _ElementJs querySelector(String selectors) native; | |
1772 | |
1773 _NodeListJs querySelectorAll(String selectors) native; | |
1774 | |
1775 void webkitCancelFullScreen() native; | |
1776 | |
1777 void webkitExitFullscreen() native; | |
1778 | |
1779 void webkitExitPointerLock() native; | |
1780 } | |
1781 | |
1782 class _DocumentFragmentJs extends _NodeJs implements DocumentFragment native "*D
ocumentFragment" { | |
1783 | |
1784 _ElementJs querySelector(String selectors) native; | |
1785 | |
1786 _NodeListJs querySelectorAll(String selectors) native; | |
1787 } | |
1788 | |
1789 class _DocumentTypeJs extends _NodeJs implements DocumentType native "*DocumentT
ype" { | |
1790 | |
1791 final _NamedNodeMapJs entities; | |
1792 | |
1793 final String internalSubset; | |
1794 | |
1795 final String name; | |
1796 | |
1797 final _NamedNodeMapJs notations; | |
1798 | |
1799 final String publicId; | |
1800 | |
1801 final String systemId; | |
1802 } | |
1803 | |
1804 class _DynamicsCompressorNodeJs extends _AudioNodeJs implements DynamicsCompress
orNode native "*DynamicsCompressorNode" { | |
1805 | |
1806 final _AudioParamJs attack; | |
1807 | |
1808 final _AudioParamJs knee; | |
1809 | |
1810 final _AudioParamJs ratio; | |
1811 | |
1812 final _AudioParamJs reduction; | |
1813 | |
1814 final _AudioParamJs release; | |
1815 | |
1816 final _AudioParamJs threshold; | |
1817 } | |
1818 | |
1819 class _EXTTextureFilterAnisotropicJs extends _DOMTypeJs implements EXTTextureFil
terAnisotropic native "*EXTTextureFilterAnisotropic" { | |
1820 | |
1821 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; | |
1822 | |
1823 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; | |
1824 } | |
1825 | |
1826 class _ElementJs extends _NodeJs implements Element native "*Element" { | |
1827 | |
1828 static const int ALLOW_KEYBOARD_INPUT = 1; | |
1829 | |
1830 final int childElementCount; | |
1831 | |
1832 final _DOMTokenListJs classList; | |
1833 | |
1834 String className; | |
1835 | |
1836 final int clientHeight; | |
1837 | |
1838 final int clientLeft; | |
1839 | |
1840 final int clientTop; | |
1841 | |
1842 final int clientWidth; | |
1843 | |
1844 final Map<String, String> dataset; | |
1845 | |
1846 final _ElementJs firstElementChild; | |
1847 | |
1848 final _ElementJs lastElementChild; | |
1849 | |
1850 final _ElementJs nextElementSibling; | |
1851 | |
1852 final int offsetHeight; | |
1853 | |
1854 final int offsetLeft; | |
1855 | |
1856 final _ElementJs offsetParent; | |
1857 | |
1858 final int offsetTop; | |
1859 | |
1860 final int offsetWidth; | |
1861 | |
1862 final _ElementJs previousElementSibling; | |
1863 | |
1864 final int scrollHeight; | |
1865 | |
1866 int scrollLeft; | |
1867 | |
1868 int scrollTop; | |
1869 | |
1870 final int scrollWidth; | |
1871 | |
1872 final _CSSStyleDeclarationJs style; | |
1873 | |
1874 final String tagName; | |
1875 | |
1876 final String webkitRegionOverset; | |
1877 | |
1878 void blur() native; | |
1879 | |
1880 void focus() native; | |
1881 | |
1882 String getAttribute(String name) native; | |
1883 | |
1884 String getAttributeNS(String namespaceURI, String localName) native; | |
1885 | |
1886 _AttrJs getAttributeNode(String name) native; | |
1887 | |
1888 _AttrJs getAttributeNodeNS(String namespaceURI, String localName) native; | |
1889 | |
1890 _ClientRectJs getBoundingClientRect() native; | |
1891 | |
1892 _ClientRectListJs getClientRects() native; | |
1893 | |
1894 _NodeListJs getElementsByClassName(String name) native; | |
1895 | |
1896 _NodeListJs getElementsByTagName(String name) native; | |
1897 | |
1898 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | |
1899 | |
1900 bool hasAttribute(String name) native; | |
1901 | |
1902 bool hasAttributeNS(String namespaceURI, String localName) native; | |
1903 | |
1904 _ElementJs querySelector(String selectors) native; | |
1905 | |
1906 _NodeListJs querySelectorAll(String selectors) native; | |
1907 | |
1908 void removeAttribute(String name) native; | |
1909 | |
1910 void removeAttributeNS(String namespaceURI, String localName) native; | |
1911 | |
1912 _AttrJs removeAttributeNode(_AttrJs oldAttr) native; | |
1913 | |
1914 void scrollByLines(int lines) native; | |
1915 | |
1916 void scrollByPages(int pages) native; | |
1917 | |
1918 void scrollIntoView([bool alignWithTop]) native; | |
1919 | |
1920 void scrollIntoViewIfNeeded([bool centerIfNeeded]) native; | |
1921 | |
1922 void setAttribute(String name, String value) native; | |
1923 | |
1924 void setAttributeNS(String namespaceURI, String qualifiedName, String value) n
ative; | |
1925 | |
1926 _AttrJs setAttributeNode(_AttrJs newAttr) native; | |
1927 | |
1928 _AttrJs setAttributeNodeNS(_AttrJs newAttr) native; | |
1929 | |
1930 bool webkitMatchesSelector(String selectors) native; | |
1931 | |
1932 void webkitRequestFullScreen(int flags) native; | |
1933 | |
1934 void webkitRequestFullscreen() native; | |
1935 | |
1936 void webkitRequestPointerLock() native; | |
1937 } | |
1938 | |
1939 class _EntityJs extends _NodeJs implements Entity native "*Entity" { | |
1940 | |
1941 final String notationName; | |
1942 | |
1943 final String publicId; | |
1944 | |
1945 final String systemId; | |
1946 } | |
1947 | |
1948 class _EntityReferenceJs extends _NodeJs implements EntityReference native "*Ent
ityReference" { | |
1949 } | |
1950 | |
1951 class _EntryJs extends _DOMTypeJs implements Entry native "*Entry" { | |
1952 | |
1953 final _DOMFileSystemJs filesystem; | |
1954 | |
1955 final String fullPath; | |
1956 | |
1957 final bool isDirectory; | |
1958 | |
1959 final bool isFile; | |
1960 | |
1961 final String name; | |
1962 | |
1963 void copyTo(_DirectoryEntryJs parent, [String name, EntryCallback successCallb
ack, ErrorCallback errorCallback]) native; | |
1964 | |
1965 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k]) native; | |
1966 | |
1967 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n
ative; | |
1968 | |
1969 void moveTo(_DirectoryEntryJs parent, [String name, EntryCallback successCallb
ack, ErrorCallback errorCallback]) native; | |
1970 | |
1971 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ
e; | |
1972 | |
1973 String toURL() native; | |
1974 } | |
1975 | |
1976 class _EntryArrayJs extends _DOMTypeJs implements EntryArray native "*EntryArray
" { | |
1977 | |
1978 final int length; | |
1979 | |
1980 _EntryJs item(int index) native; | |
1981 } | |
1982 | |
1983 class _EntryArraySyncJs extends _DOMTypeJs implements EntryArraySync native "*En
tryArraySync" { | |
1984 | |
1985 final int length; | |
1986 | |
1987 _EntrySyncJs item(int index) native; | |
1988 } | |
1989 | |
1990 class _EntrySyncJs extends _DOMTypeJs implements EntrySync native "*EntrySync" { | |
1991 | |
1992 final _DOMFileSystemSyncJs filesystem; | |
1993 | |
1994 final String fullPath; | |
1995 | |
1996 final bool isDirectory; | |
1997 | |
1998 final bool isFile; | |
1999 | |
2000 final String name; | |
2001 | |
2002 _EntrySyncJs copyTo(_DirectoryEntrySyncJs parent, String name) native; | |
2003 | |
2004 _MetadataJs getMetadata() native; | |
2005 | |
2006 _EntrySyncJs getParent() native; | |
2007 | |
2008 _EntrySyncJs moveTo(_DirectoryEntrySyncJs parent, String name) native; | |
2009 | |
2010 void remove() native; | |
2011 | |
2012 String toURL() native; | |
2013 } | |
2014 | |
2015 class _ErrorEventJs extends _EventJs implements ErrorEvent native "*ErrorEvent"
{ | |
2016 | |
2017 final String filename; | |
2018 | |
2019 final int lineno; | |
2020 | |
2021 final String message; | |
2022 } | |
2023 | |
2024 class _EventJs extends _DOMTypeJs implements Event native "*Event" { | |
2025 | |
2026 static const int AT_TARGET = 2; | |
2027 | |
2028 static const int BLUR = 8192; | |
2029 | |
2030 static const int BUBBLING_PHASE = 3; | |
2031 | |
2032 static const int CAPTURING_PHASE = 1; | |
2033 | |
2034 static const int CHANGE = 32768; | |
2035 | |
2036 static const int CLICK = 64; | |
2037 | |
2038 static const int DBLCLICK = 128; | |
2039 | |
2040 static const int DRAGDROP = 2048; | |
2041 | |
2042 static const int FOCUS = 4096; | |
2043 | |
2044 static const int KEYDOWN = 256; | |
2045 | |
2046 static const int KEYPRESS = 1024; | |
2047 | |
2048 static const int KEYUP = 512; | |
2049 | |
2050 static const int MOUSEDOWN = 1; | |
2051 | |
2052 static const int MOUSEDRAG = 32; | |
2053 | |
2054 static const int MOUSEMOVE = 16; | |
2055 | |
2056 static const int MOUSEOUT = 8; | |
2057 | |
2058 static const int MOUSEOVER = 4; | |
2059 | |
2060 static const int MOUSEUP = 2; | |
2061 | |
2062 static const int NONE = 0; | |
2063 | |
2064 static const int SELECT = 16384; | |
2065 | |
2066 final bool bubbles; | |
2067 | |
2068 bool cancelBubble; | |
2069 | |
2070 final bool cancelable; | |
2071 | |
2072 final _ClipboardJs clipboardData; | |
2073 | |
2074 final _EventTargetJs currentTarget; | |
2075 | |
2076 final bool defaultPrevented; | |
2077 | |
2078 final int eventPhase; | |
2079 | |
2080 bool returnValue; | |
2081 | |
2082 final _EventTargetJs srcElement; | |
2083 | |
2084 final _EventTargetJs target; | |
2085 | |
2086 final int timeStamp; | |
2087 | |
2088 final String type; | |
2089 | |
2090 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) nat
ive; | |
2091 | |
2092 void preventDefault() native; | |
2093 | |
2094 void stopImmediatePropagation() native; | |
2095 | |
2096 void stopPropagation() native; | |
2097 } | |
2098 | |
2099 class _EventExceptionJs extends _DOMTypeJs implements EventException native "*Ev
entException" { | |
2100 | |
2101 static const int DISPATCH_REQUEST_ERR = 1; | |
2102 | |
2103 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; | |
2104 | |
2105 final int code; | |
2106 | |
2107 final String message; | |
2108 | |
2109 final String name; | |
2110 | |
2111 String toString() native; | |
2112 } | |
2113 | |
2114 class _EventSourceJs extends _EventTargetJs implements EventSource native "*Even
tSource" { | |
2115 | |
2116 static const int CLOSED = 2; | |
2117 | |
2118 static const int CONNECTING = 0; | |
2119 | |
2120 static const int OPEN = 1; | |
2121 | |
2122 final String URL; | |
2123 | |
2124 final int readyState; | |
2125 | |
2126 final String url; | |
2127 | |
2128 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
2129 | |
2130 void close() native; | |
2131 | |
2132 bool dispatchEvent(_EventJs evt) native; | |
2133 | |
2134 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
2135 } | |
2136 | |
2137 class _EventTargetJs extends _DOMTypeJs implements EventTarget native "*EventTar
get" { | |
2138 | |
2139 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
2140 | |
2141 bool dispatchEvent(_EventJs event) native; | |
2142 | |
2143 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
2144 } | |
2145 | |
2146 class _FileJs extends _BlobJs implements File native "*File" { | |
2147 | |
2148 final Date lastModifiedDate; | |
2149 | |
2150 final String name; | |
2151 | |
2152 final String webkitRelativePath; | |
2153 } | |
2154 | |
2155 class _FileEntryJs extends _EntryJs implements FileEntry native "*FileEntry" { | |
2156 | |
2157 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back]) native; | |
2158 | |
2159 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; | |
2160 } | |
2161 | |
2162 class _FileEntrySyncJs extends _EntrySyncJs implements FileEntrySync native "*Fi
leEntrySync" { | |
2163 | |
2164 _FileWriterSyncJs createWriter() native; | |
2165 | |
2166 _FileJs file() native; | |
2167 } | |
2168 | |
2169 class _FileErrorJs extends _DOMTypeJs implements FileError native "*FileError" { | |
2170 | |
2171 static const int ABORT_ERR = 3; | |
2172 | |
2173 static const int ENCODING_ERR = 5; | |
2174 | |
2175 static const int INVALID_MODIFICATION_ERR = 9; | |
2176 | |
2177 static const int INVALID_STATE_ERR = 7; | |
2178 | |
2179 static const int NOT_FOUND_ERR = 1; | |
2180 | |
2181 static const int NOT_READABLE_ERR = 4; | |
2182 | |
2183 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | |
2184 | |
2185 static const int PATH_EXISTS_ERR = 12; | |
2186 | |
2187 static const int QUOTA_EXCEEDED_ERR = 10; | |
2188 | |
2189 static const int SECURITY_ERR = 2; | |
2190 | |
2191 static const int SYNTAX_ERR = 8; | |
2192 | |
2193 static const int TYPE_MISMATCH_ERR = 11; | |
2194 | |
2195 final int code; | |
2196 } | |
2197 | |
2198 class _FileExceptionJs extends _DOMTypeJs implements FileException native "*File
Exception" { | |
2199 | |
2200 static const int ABORT_ERR = 3; | |
2201 | |
2202 static const int ENCODING_ERR = 5; | |
2203 | |
2204 static const int INVALID_MODIFICATION_ERR = 9; | |
2205 | |
2206 static const int INVALID_STATE_ERR = 7; | |
2207 | |
2208 static const int NOT_FOUND_ERR = 1; | |
2209 | |
2210 static const int NOT_READABLE_ERR = 4; | |
2211 | |
2212 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | |
2213 | |
2214 static const int PATH_EXISTS_ERR = 12; | |
2215 | |
2216 static const int QUOTA_EXCEEDED_ERR = 10; | |
2217 | |
2218 static const int SECURITY_ERR = 2; | |
2219 | |
2220 static const int SYNTAX_ERR = 8; | |
2221 | |
2222 static const int TYPE_MISMATCH_ERR = 11; | |
2223 | |
2224 final int code; | |
2225 | |
2226 final String message; | |
2227 | |
2228 final String name; | |
2229 | |
2230 String toString() native; | |
2231 } | |
2232 | |
2233 class _FileListJs extends _DOMTypeJs implements FileList native "*FileList" { | |
2234 | |
2235 final int length; | |
2236 | |
2237 _FileJs operator[](int index) native "return this[index];"; | |
2238 | |
2239 void operator[]=(int index, _FileJs value) { | |
2240 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
2241 } | |
2242 // -- start List<File> mixins. | |
2243 // File is the element type. | |
2244 | |
2245 // From Iterable<File>: | |
2246 | |
2247 Iterator<File> iterator() { | |
2248 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
2249 // be cached in both iterator _and_ forEach method. For now caching it | |
2250 // for consistency. | |
2251 return new _FixedSizeListIterator<File>(this); | |
2252 } | |
2253 | |
2254 // From Collection<File>: | |
2255 | |
2256 void add(File value) { | |
2257 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2258 } | |
2259 | |
2260 void addLast(File value) { | |
2261 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2262 } | |
2263 | |
2264 void addAll(Collection<File> collection) { | |
2265 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2266 } | |
2267 | |
2268 void forEach(void f(File element)) => _Collections.forEach(this, f); | |
2269 | |
2270 Collection map(f(File element)) => _Collections.map(this, [], f); | |
2271 | |
2272 Collection<File> filter(bool f(File element)) => | |
2273 _Collections.filter(this, <File>[], f); | |
2274 | |
2275 bool every(bool f(File element)) => _Collections.every(this, f); | |
2276 | |
2277 bool some(bool f(File element)) => _Collections.some(this, f); | |
2278 | |
2279 bool isEmpty() => this.length == 0; | |
2280 | |
2281 // From List<File>: | |
2282 | |
2283 void sort(int compare(File a, File b)) { | |
2284 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
2285 } | |
2286 | |
2287 int indexOf(File element, [int start = 0]) => | |
2288 _Lists.indexOf(this, element, start, this.length); | |
2289 | |
2290 int lastIndexOf(File element, [int start]) { | |
2291 if (start === null) start = length - 1; | |
2292 return _Lists.lastIndexOf(this, element, start); | |
2293 } | |
2294 | |
2295 File last() => this[length - 1]; | |
2296 | |
2297 File removeLast() { | |
2298 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
2299 } | |
2300 | |
2301 // FIXME: implement these. | |
2302 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { | |
2303 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
2304 } | |
2305 | |
2306 void removeRange(int start, int rangeLength) { | |
2307 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
2308 } | |
2309 | |
2310 void insertRange(int start, int rangeLength, [File initialValue]) { | |
2311 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
2312 } | |
2313 | |
2314 List<File> getRange(int start, int rangeLength) => | |
2315 _Lists.getRange(this, start, rangeLength, <File>[]); | |
2316 | |
2317 // -- end List<File> mixins. | |
2318 | |
2319 _FileJs item(int index) native; | |
2320 } | |
2321 | |
2322 class _FileReaderJs extends _EventTargetJs implements FileReader native "*FileRe
ader" { | |
2323 | |
2324 static const int DONE = 2; | |
2325 | |
2326 static const int EMPTY = 0; | |
2327 | |
2328 static const int LOADING = 1; | |
2329 | |
2330 final _FileErrorJs error; | |
2331 | |
2332 final int readyState; | |
2333 | |
2334 final Object result; | |
2335 | |
2336 void abort() native; | |
2337 | |
2338 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
2339 | |
2340 bool dispatchEvent(_EventJs evt) native; | |
2341 | |
2342 void readAsArrayBuffer(_BlobJs blob) native; | |
2343 | |
2344 void readAsBinaryString(_BlobJs blob) native; | |
2345 | |
2346 void readAsDataURL(_BlobJs blob) native; | |
2347 | |
2348 void readAsText(_BlobJs blob, [String encoding]) native; | |
2349 | |
2350 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
2351 } | |
2352 | |
2353 class _FileReaderSyncJs extends _DOMTypeJs implements FileReaderSync native "*Fi
leReaderSync" { | |
2354 | |
2355 _ArrayBufferJs readAsArrayBuffer(_BlobJs blob) native; | |
2356 | |
2357 String readAsBinaryString(_BlobJs blob) native; | |
2358 | |
2359 String readAsDataURL(_BlobJs blob) native; | |
2360 | |
2361 String readAsText(_BlobJs blob, [String encoding]) native; | |
2362 } | |
2363 | |
2364 class _FileWriterJs extends _EventTargetJs implements FileWriter native "*FileWr
iter" { | |
2365 | |
2366 static const int DONE = 2; | |
2367 | |
2368 static const int INIT = 0; | |
2369 | |
2370 static const int WRITING = 1; | |
2371 | |
2372 final _FileErrorJs error; | |
2373 | |
2374 final int length; | |
2375 | |
2376 final int position; | |
2377 | |
2378 final int readyState; | |
2379 | |
2380 void abort() native; | |
2381 | |
2382 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
2383 | |
2384 bool dispatchEvent(_EventJs evt) native; | |
2385 | |
2386 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
2387 | |
2388 void seek(int position) native; | |
2389 | |
2390 void truncate(int size) native; | |
2391 | |
2392 void write(_BlobJs data) native; | |
2393 } | |
2394 | |
2395 class _FileWriterSyncJs extends _DOMTypeJs implements FileWriterSync native "*Fi
leWriterSync" { | |
2396 | |
2397 final int length; | |
2398 | |
2399 final int position; | |
2400 | |
2401 void seek(int position) native; | |
2402 | |
2403 void truncate(int size) native; | |
2404 | |
2405 void write(_BlobJs data) native; | |
2406 } | |
2407 | |
2408 class _Float32ArrayJs extends _ArrayBufferViewJs implements Float32Array, List<n
um> native "*Float32Array" { | |
2409 | |
2410 static const int BYTES_PER_ELEMENT = 4; | |
2411 | |
2412 final int length; | |
2413 | |
2414 num operator[](int index) native "return this[index];"; | |
2415 | |
2416 void operator[]=(int index, num value) native "this[index] = value"; | |
2417 // -- start List<num> mixins. | |
2418 // num is the element type. | |
2419 | |
2420 // From Iterable<num>: | |
2421 | |
2422 Iterator<num> iterator() { | |
2423 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
2424 // be cached in both iterator _and_ forEach method. For now caching it | |
2425 // for consistency. | |
2426 return new _FixedSizeListIterator<num>(this); | |
2427 } | |
2428 | |
2429 // From Collection<num>: | |
2430 | |
2431 void add(num value) { | |
2432 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2433 } | |
2434 | |
2435 void addLast(num value) { | |
2436 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2437 } | |
2438 | |
2439 void addAll(Collection<num> collection) { | |
2440 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2441 } | |
2442 | |
2443 void forEach(void f(num element)) => _Collections.forEach(this, f); | |
2444 | |
2445 Collection map(f(num element)) => _Collections.map(this, [], f); | |
2446 | |
2447 Collection<num> filter(bool f(num element)) => | |
2448 _Collections.filter(this, <num>[], f); | |
2449 | |
2450 bool every(bool f(num element)) => _Collections.every(this, f); | |
2451 | |
2452 bool some(bool f(num element)) => _Collections.some(this, f); | |
2453 | |
2454 bool isEmpty() => this.length == 0; | |
2455 | |
2456 // From List<num>: | |
2457 | |
2458 void sort(int compare(num a, num b)) { | |
2459 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
2460 } | |
2461 | |
2462 int indexOf(num element, [int start = 0]) => | |
2463 _Lists.indexOf(this, element, start, this.length); | |
2464 | |
2465 int lastIndexOf(num element, [int start]) { | |
2466 if (start === null) start = length - 1; | |
2467 return _Lists.lastIndexOf(this, element, start); | |
2468 } | |
2469 | |
2470 num last() => this[length - 1]; | |
2471 | |
2472 num removeLast() { | |
2473 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
2474 } | |
2475 | |
2476 // FIXME: implement these. | |
2477 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { | |
2478 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
2479 } | |
2480 | |
2481 void removeRange(int start, int rangeLength) { | |
2482 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
2483 } | |
2484 | |
2485 void insertRange(int start, int rangeLength, [num initialValue]) { | |
2486 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
2487 } | |
2488 | |
2489 List<num> getRange(int start, int rangeLength) => | |
2490 _Lists.getRange(this, start, rangeLength, <num>[]); | |
2491 | |
2492 // -- end List<num> mixins. | |
2493 | |
2494 void setElements(Object array, [int offset]) native 'set'; | |
2495 | |
2496 _Float32ArrayJs subarray(int start, [int end]) native; | |
2497 } | |
2498 | |
2499 class _Float64ArrayJs extends _ArrayBufferViewJs implements Float64Array, List<n
um> native "*Float64Array" { | |
2500 | |
2501 static const int BYTES_PER_ELEMENT = 8; | |
2502 | |
2503 final int length; | |
2504 | |
2505 num operator[](int index) native "return this[index];"; | |
2506 | |
2507 void operator[]=(int index, num value) native "this[index] = value"; | |
2508 // -- start List<num> mixins. | |
2509 // num is the element type. | |
2510 | |
2511 // From Iterable<num>: | |
2512 | |
2513 Iterator<num> iterator() { | |
2514 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
2515 // be cached in both iterator _and_ forEach method. For now caching it | |
2516 // for consistency. | |
2517 return new _FixedSizeListIterator<num>(this); | |
2518 } | |
2519 | |
2520 // From Collection<num>: | |
2521 | |
2522 void add(num value) { | |
2523 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2524 } | |
2525 | |
2526 void addLast(num value) { | |
2527 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2528 } | |
2529 | |
2530 void addAll(Collection<num> collection) { | |
2531 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2532 } | |
2533 | |
2534 void forEach(void f(num element)) => _Collections.forEach(this, f); | |
2535 | |
2536 Collection map(f(num element)) => _Collections.map(this, [], f); | |
2537 | |
2538 Collection<num> filter(bool f(num element)) => | |
2539 _Collections.filter(this, <num>[], f); | |
2540 | |
2541 bool every(bool f(num element)) => _Collections.every(this, f); | |
2542 | |
2543 bool some(bool f(num element)) => _Collections.some(this, f); | |
2544 | |
2545 bool isEmpty() => this.length == 0; | |
2546 | |
2547 // From List<num>: | |
2548 | |
2549 void sort(int compare(num a, num b)) { | |
2550 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
2551 } | |
2552 | |
2553 int indexOf(num element, [int start = 0]) => | |
2554 _Lists.indexOf(this, element, start, this.length); | |
2555 | |
2556 int lastIndexOf(num element, [int start]) { | |
2557 if (start === null) start = length - 1; | |
2558 return _Lists.lastIndexOf(this, element, start); | |
2559 } | |
2560 | |
2561 num last() => this[length - 1]; | |
2562 | |
2563 num removeLast() { | |
2564 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
2565 } | |
2566 | |
2567 // FIXME: implement these. | |
2568 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { | |
2569 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
2570 } | |
2571 | |
2572 void removeRange(int start, int rangeLength) { | |
2573 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
2574 } | |
2575 | |
2576 void insertRange(int start, int rangeLength, [num initialValue]) { | |
2577 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
2578 } | |
2579 | |
2580 List<num> getRange(int start, int rangeLength) => | |
2581 _Lists.getRange(this, start, rangeLength, <num>[]); | |
2582 | |
2583 // -- end List<num> mixins. | |
2584 | |
2585 void setElements(Object array, [int offset]) native 'set'; | |
2586 | |
2587 _Float64ArrayJs subarray(int start, [int end]) native; | |
2588 } | |
2589 | |
2590 class _GamepadJs extends _DOMTypeJs implements Gamepad native "*Gamepad" { | |
2591 | |
2592 final List<num> axes; | |
2593 | |
2594 final List<num> buttons; | |
2595 | |
2596 final String id; | |
2597 | |
2598 final int index; | |
2599 | |
2600 final int timestamp; | |
2601 } | |
2602 | |
2603 class _GamepadListJs extends _DOMTypeJs implements GamepadList native "*GamepadL
ist" { | |
2604 | |
2605 final int length; | |
2606 | |
2607 _GamepadJs item(int index) native; | |
2608 } | |
2609 | |
2610 class _GeolocationJs extends _DOMTypeJs implements Geolocation native "*Geolocat
ion" { | |
2611 | |
2612 void clearWatch(int watchId) native; | |
2613 | |
2614 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]) native; | |
2615 | |
2616 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]) native; | |
2617 } | |
2618 | |
2619 class _GeopositionJs extends _DOMTypeJs implements Geoposition native "*Geoposit
ion" { | |
2620 | |
2621 final _CoordinatesJs coords; | |
2622 | |
2623 final int timestamp; | |
2624 } | |
2625 | |
2626 class _HTMLAllCollectionJs extends _DOMTypeJs implements HTMLAllCollection nativ
e "*HTMLAllCollection" { | |
2627 | |
2628 final int length; | |
2629 | |
2630 _NodeJs item(int index) native; | |
2631 | |
2632 _NodeJs namedItem(String name) native; | |
2633 | |
2634 _NodeListJs tags(String name) native; | |
2635 } | |
2636 | |
2637 class _HTMLAnchorElementJs extends _HTMLElementJs implements HTMLAnchorElement n
ative "*HTMLAnchorElement" { | |
2638 | |
2639 String charset; | |
2640 | |
2641 String coords; | |
2642 | |
2643 String download; | |
2644 | |
2645 String hash; | |
2646 | |
2647 String host; | |
2648 | |
2649 String hostname; | |
2650 | |
2651 String href; | |
2652 | |
2653 String hreflang; | |
2654 | |
2655 String name; | |
2656 | |
2657 final String origin; | |
2658 | |
2659 String pathname; | |
2660 | |
2661 String ping; | |
2662 | |
2663 String port; | |
2664 | |
2665 String protocol; | |
2666 | |
2667 String rel; | |
2668 | |
2669 String rev; | |
2670 | |
2671 String search; | |
2672 | |
2673 String shape; | |
2674 | |
2675 String target; | |
2676 | |
2677 final String text; | |
2678 | |
2679 String type; | |
2680 | |
2681 String toString() native; | |
2682 } | |
2683 | |
2684 class _HTMLAppletElementJs extends _HTMLElementJs implements HTMLAppletElement n
ative "*HTMLAppletElement" { | |
2685 | |
2686 String align; | |
2687 | |
2688 String alt; | |
2689 | |
2690 String archive; | |
2691 | |
2692 String code; | |
2693 | |
2694 String codeBase; | |
2695 | |
2696 String height; | |
2697 | |
2698 String hspace; | |
2699 | |
2700 String name; | |
2701 | |
2702 String object; | |
2703 | |
2704 String vspace; | |
2705 | |
2706 String width; | |
2707 } | |
2708 | |
2709 class _HTMLAreaElementJs extends _HTMLElementJs implements HTMLAreaElement nativ
e "*HTMLAreaElement" { | |
2710 | |
2711 String alt; | |
2712 | |
2713 String coords; | |
2714 | |
2715 final String hash; | |
2716 | |
2717 final String host; | |
2718 | |
2719 final String hostname; | |
2720 | |
2721 String href; | |
2722 | |
2723 bool noHref; | |
2724 | |
2725 final String pathname; | |
2726 | |
2727 String ping; | |
2728 | |
2729 final String port; | |
2730 | |
2731 final String protocol; | |
2732 | |
2733 final String search; | |
2734 | |
2735 String shape; | |
2736 | |
2737 String target; | |
2738 } | |
2739 | |
2740 class _HTMLAudioElementJs extends _HTMLMediaElementJs implements HTMLAudioElemen
t native "*HTMLAudioElement" { | |
2741 } | |
2742 | |
2743 class _HTMLBRElementJs extends _HTMLElementJs implements HTMLBRElement native "*
HTMLBRElement" { | |
2744 | |
2745 String clear; | |
2746 } | |
2747 | |
2748 class _HTMLBaseElementJs extends _HTMLElementJs implements HTMLBaseElement nativ
e "*HTMLBaseElement" { | |
2749 | |
2750 String href; | |
2751 | |
2752 String target; | |
2753 } | |
2754 | |
2755 class _HTMLBaseFontElementJs extends _HTMLElementJs implements HTMLBaseFontEleme
nt native "*HTMLBaseFontElement" { | |
2756 | |
2757 String color; | |
2758 | |
2759 String face; | |
2760 | |
2761 int size; | |
2762 } | |
2763 | |
2764 class _HTMLBodyElementJs extends _HTMLElementJs implements HTMLBodyElement nativ
e "*HTMLBodyElement" { | |
2765 | |
2766 String aLink; | |
2767 | |
2768 String background; | |
2769 | |
2770 String bgColor; | |
2771 | |
2772 String link; | |
2773 | |
2774 String text; | |
2775 | |
2776 String vLink; | |
2777 } | |
2778 | |
2779 class _HTMLButtonElementJs extends _HTMLElementJs implements HTMLButtonElement n
ative "*HTMLButtonElement" { | |
2780 | |
2781 bool autofocus; | |
2782 | |
2783 bool disabled; | |
2784 | |
2785 final _HTMLFormElementJs form; | |
2786 | |
2787 String formAction; | |
2788 | |
2789 String formEnctype; | |
2790 | |
2791 String formMethod; | |
2792 | |
2793 bool formNoValidate; | |
2794 | |
2795 String formTarget; | |
2796 | |
2797 final _NodeListJs labels; | |
2798 | |
2799 String name; | |
2800 | |
2801 String type; | |
2802 | |
2803 final String validationMessage; | |
2804 | |
2805 final _ValidityStateJs validity; | |
2806 | |
2807 String value; | |
2808 | |
2809 final bool willValidate; | |
2810 | |
2811 bool checkValidity() native; | |
2812 | |
2813 void setCustomValidity(String error) native; | |
2814 } | |
2815 | |
2816 class _HTMLCanvasElementJs extends _HTMLElementJs implements HTMLCanvasElement n
ative "*HTMLCanvasElement" { | |
2817 | |
2818 int height; | |
2819 | |
2820 int width; | |
2821 | |
2822 Object getContext(String contextId) native; | |
2823 | |
2824 String toDataURL(String type, [num quality]) native; | |
2825 } | |
2826 | |
2827 class _HTMLCollectionJs extends _DOMTypeJs implements HTMLCollection native "*HT
MLCollection" { | |
2828 | |
2829 final int length; | |
2830 | |
2831 _NodeJs operator[](int index) native "return this[index];"; | |
2832 | |
2833 void operator[]=(int index, _NodeJs value) { | |
2834 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
2835 } | |
2836 // -- start List<Node> mixins. | |
2837 // Node is the element type. | |
2838 | |
2839 // From Iterable<Node>: | |
2840 | |
2841 Iterator<Node> iterator() { | |
2842 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
2843 // be cached in both iterator _and_ forEach method. For now caching it | |
2844 // for consistency. | |
2845 return new _FixedSizeListIterator<Node>(this); | |
2846 } | |
2847 | |
2848 // From Collection<Node>: | |
2849 | |
2850 void add(Node value) { | |
2851 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2852 } | |
2853 | |
2854 void addLast(Node value) { | |
2855 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2856 } | |
2857 | |
2858 void addAll(Collection<Node> collection) { | |
2859 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
2860 } | |
2861 | |
2862 void forEach(void f(Node element)) => _Collections.forEach(this, f); | |
2863 | |
2864 Collection map(f(Node element)) => _Collections.map(this, [], f); | |
2865 | |
2866 Collection<Node> filter(bool f(Node element)) => | |
2867 _Collections.filter(this, <Node>[], f); | |
2868 | |
2869 bool every(bool f(Node element)) => _Collections.every(this, f); | |
2870 | |
2871 bool some(bool f(Node element)) => _Collections.some(this, f); | |
2872 | |
2873 bool isEmpty() => this.length == 0; | |
2874 | |
2875 // From List<Node>: | |
2876 | |
2877 void sort(int compare(Node a, Node b)) { | |
2878 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
2879 } | |
2880 | |
2881 int indexOf(Node element, [int start = 0]) => | |
2882 _Lists.indexOf(this, element, start, this.length); | |
2883 | |
2884 int lastIndexOf(Node element, [int start]) { | |
2885 if (start === null) start = length - 1; | |
2886 return _Lists.lastIndexOf(this, element, start); | |
2887 } | |
2888 | |
2889 Node last() => this[length - 1]; | |
2890 | |
2891 Node removeLast() { | |
2892 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
2893 } | |
2894 | |
2895 // FIXME: implement these. | |
2896 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | |
2897 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
2898 } | |
2899 | |
2900 void removeRange(int start, int rangeLength) { | |
2901 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
2902 } | |
2903 | |
2904 void insertRange(int start, int rangeLength, [Node initialValue]) { | |
2905 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
2906 } | |
2907 | |
2908 List<Node> getRange(int start, int rangeLength) => | |
2909 _Lists.getRange(this, start, rangeLength, <Node>[]); | |
2910 | |
2911 // -- end List<Node> mixins. | |
2912 | |
2913 _NodeJs item(int index) native; | |
2914 | |
2915 _NodeJs namedItem(String name) native; | |
2916 } | |
2917 | |
2918 class _HTMLContentElementJs extends _HTMLElementJs implements HTMLContentElement
native "*HTMLContentElement" { | |
2919 | |
2920 String select; | |
2921 } | |
2922 | |
2923 class _HTMLDListElementJs extends _HTMLElementJs implements HTMLDListElement nat
ive "*HTMLDListElement" { | |
2924 | |
2925 bool compact; | |
2926 } | |
2927 | |
2928 class _HTMLDataListElementJs extends _HTMLElementJs implements HTMLDataListEleme
nt native "*HTMLDataListElement" { | |
2929 | |
2930 final _HTMLCollectionJs options; | |
2931 } | |
2932 | |
2933 class _HTMLDetailsElementJs extends _HTMLElementJs implements HTMLDetailsElement
native "*HTMLDetailsElement" { | |
2934 | |
2935 bool open; | |
2936 } | |
2937 | |
2938 class _HTMLDirectoryElementJs extends _HTMLElementJs implements HTMLDirectoryEle
ment native "*HTMLDirectoryElement" { | |
2939 | |
2940 bool compact; | |
2941 } | |
2942 | |
2943 class _HTMLDivElementJs extends _HTMLElementJs implements HTMLDivElement native
"*HTMLDivElement" { | |
2944 | |
2945 String align; | |
2946 } | |
2947 | |
2948 class _HTMLDocumentJs extends _DocumentJs implements HTMLDocument native "*HTMLD
ocument" { | |
2949 | |
2950 final _ElementJs activeElement; | |
2951 | |
2952 String alinkColor; | |
2953 | |
2954 _HTMLAllCollectionJs all; | |
2955 | |
2956 String bgColor; | |
2957 | |
2958 // Use implementation from Document. | |
2959 // final String compatMode; | |
2960 | |
2961 String designMode; | |
2962 | |
2963 String dir; | |
2964 | |
2965 final _HTMLCollectionJs embeds; | |
2966 | |
2967 String fgColor; | |
2968 | |
2969 final int height; | |
2970 | |
2971 String linkColor; | |
2972 | |
2973 final _HTMLCollectionJs plugins; | |
2974 | |
2975 final _HTMLCollectionJs scripts; | |
2976 | |
2977 String vlinkColor; | |
2978 | |
2979 final int width; | |
2980 | |
2981 void captureEvents() native; | |
2982 | |
2983 void clear() native; | |
2984 | |
2985 void close() native; | |
2986 | |
2987 bool hasFocus() native; | |
2988 | |
2989 void open() native; | |
2990 | |
2991 void releaseEvents() native; | |
2992 | |
2993 void write(String text) native; | |
2994 | |
2995 void writeln(String text) native; | |
2996 } | |
2997 | |
2998 class _HTMLElementJs extends _ElementJs implements HTMLElement native "*HTMLElem
ent" { | |
2999 | |
3000 String accessKey; | |
3001 | |
3002 final _HTMLCollectionJs children; | |
3003 | |
3004 String contentEditable; | |
3005 | |
3006 String dir; | |
3007 | |
3008 bool draggable; | |
3009 | |
3010 bool hidden; | |
3011 | |
3012 String id; | |
3013 | |
3014 String innerHTML; | |
3015 | |
3016 String innerText; | |
3017 | |
3018 final bool isContentEditable; | |
3019 | |
3020 String lang; | |
3021 | |
3022 String outerHTML; | |
3023 | |
3024 String outerText; | |
3025 | |
3026 bool spellcheck; | |
3027 | |
3028 int tabIndex; | |
3029 | |
3030 String title; | |
3031 | |
3032 bool translate; | |
3033 | |
3034 String webkitdropzone; | |
3035 | |
3036 void click() native; | |
3037 | |
3038 _ElementJs insertAdjacentElement(String where, _ElementJs element) native; | |
3039 | |
3040 void insertAdjacentHTML(String where, String html) native; | |
3041 | |
3042 void insertAdjacentText(String where, String text) native; | |
3043 } | |
3044 | |
3045 class _HTMLEmbedElementJs extends _HTMLElementJs implements HTMLEmbedElement nat
ive "*HTMLEmbedElement" { | |
3046 | |
3047 String align; | |
3048 | |
3049 String height; | |
3050 | |
3051 String name; | |
3052 | |
3053 String src; | |
3054 | |
3055 String type; | |
3056 | |
3057 String width; | |
3058 | |
3059 _SVGDocumentJs getSVGDocument() native; | |
3060 } | |
3061 | |
3062 class _HTMLFieldSetElementJs extends _HTMLElementJs implements HTMLFieldSetEleme
nt native "*HTMLFieldSetElement" { | |
3063 | |
3064 bool disabled; | |
3065 | |
3066 final _HTMLCollectionJs elements; | |
3067 | |
3068 final _HTMLFormElementJs form; | |
3069 | |
3070 String name; | |
3071 | |
3072 final String type; | |
3073 | |
3074 final String validationMessage; | |
3075 | |
3076 final _ValidityStateJs validity; | |
3077 | |
3078 final bool willValidate; | |
3079 | |
3080 bool checkValidity() native; | |
3081 | |
3082 void setCustomValidity(String error) native; | |
3083 } | |
3084 | |
3085 class _HTMLFontElementJs extends _HTMLElementJs implements HTMLFontElement nativ
e "*HTMLFontElement" { | |
3086 | |
3087 String color; | |
3088 | |
3089 String face; | |
3090 | |
3091 String size; | |
3092 } | |
3093 | |
3094 class _HTMLFormElementJs extends _HTMLElementJs implements HTMLFormElement nativ
e "*HTMLFormElement" { | |
3095 | |
3096 String acceptCharset; | |
3097 | |
3098 String action; | |
3099 | |
3100 String autocomplete; | |
3101 | |
3102 final _HTMLCollectionJs elements; | |
3103 | |
3104 String encoding; | |
3105 | |
3106 String enctype; | |
3107 | |
3108 final int length; | |
3109 | |
3110 String method; | |
3111 | |
3112 String name; | |
3113 | |
3114 bool noValidate; | |
3115 | |
3116 String target; | |
3117 | |
3118 bool checkValidity() native; | |
3119 | |
3120 void reset() native; | |
3121 | |
3122 void submit() native; | |
3123 } | |
3124 | |
3125 class _HTMLFrameElementJs extends _HTMLElementJs implements HTMLFrameElement nat
ive "*HTMLFrameElement" { | |
3126 | |
3127 final _DocumentJs contentDocument; | |
3128 | |
3129 final _DOMWindowJs contentWindow; | |
3130 | |
3131 String frameBorder; | |
3132 | |
3133 final int height; | |
3134 | |
3135 String location; | |
3136 | |
3137 String longDesc; | |
3138 | |
3139 String marginHeight; | |
3140 | |
3141 String marginWidth; | |
3142 | |
3143 String name; | |
3144 | |
3145 bool noResize; | |
3146 | |
3147 String scrolling; | |
3148 | |
3149 String src; | |
3150 | |
3151 final int width; | |
3152 | |
3153 _SVGDocumentJs getSVGDocument() native; | |
3154 } | |
3155 | |
3156 class _HTMLFrameSetElementJs extends _HTMLElementJs implements HTMLFrameSetEleme
nt native "*HTMLFrameSetElement" { | |
3157 | |
3158 String cols; | |
3159 | |
3160 String rows; | |
3161 } | |
3162 | |
3163 class _HTMLHRElementJs extends _HTMLElementJs implements HTMLHRElement native "*
HTMLHRElement" { | |
3164 | |
3165 String align; | |
3166 | |
3167 bool noShade; | |
3168 | |
3169 String size; | |
3170 | |
3171 String width; | |
3172 } | |
3173 | |
3174 class _HTMLHeadElementJs extends _HTMLElementJs implements HTMLHeadElement nativ
e "*HTMLHeadElement" { | |
3175 | |
3176 String profile; | |
3177 } | |
3178 | |
3179 class _HTMLHeadingElementJs extends _HTMLElementJs implements HTMLHeadingElement
native "*HTMLHeadingElement" { | |
3180 | |
3181 String align; | |
3182 } | |
3183 | |
3184 class _HTMLHtmlElementJs extends _HTMLElementJs implements HTMLHtmlElement nativ
e "*HTMLHtmlElement" { | |
3185 | |
3186 String manifest; | |
3187 | |
3188 String version; | |
3189 } | |
3190 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
3191 // for details. All rights reserved. Use of this source code is governed by a | |
3192 // BSD-style license that can be found in the LICENSE file. | |
3193 | |
3194 class _HTMLIFrameElementJs extends _HTMLElementJs implements HTMLIFrameElement n
ative "*HTMLIFrameElement" { | |
3195 | |
3196 String align; | |
3197 | |
3198 String frameBorder; | |
3199 | |
3200 String height; | |
3201 | |
3202 String longDesc; | |
3203 | |
3204 String marginHeight; | |
3205 | |
3206 String marginWidth; | |
3207 | |
3208 String name; | |
3209 | |
3210 String sandbox; | |
3211 | |
3212 String scrolling; | |
3213 | |
3214 String src; | |
3215 | |
3216 String srcdoc; | |
3217 | |
3218 String width; | |
3219 | |
3220 _SVGDocumentJs getSVGDocument() native; | |
3221 | |
3222 | |
3223 Window get _contentWindow() native "return this.contentWindow;"; | |
3224 | |
3225 // Override contentWindow to return secure wrapper. | |
3226 Window get contentWindow() { | |
3227 return _DOMWindowCrossFrameImpl._createSafe(_contentWindow); | |
3228 } | |
3229 } | |
3230 | |
3231 class _HTMLImageElementJs extends _HTMLElementJs implements HTMLImageElement nat
ive "*HTMLImageElement" { | |
3232 | |
3233 String align; | |
3234 | |
3235 String alt; | |
3236 | |
3237 String border; | |
3238 | |
3239 final bool complete; | |
3240 | |
3241 String crossOrigin; | |
3242 | |
3243 int height; | |
3244 | |
3245 int hspace; | |
3246 | |
3247 bool isMap; | |
3248 | |
3249 String longDesc; | |
3250 | |
3251 String lowsrc; | |
3252 | |
3253 String name; | |
3254 | |
3255 final int naturalHeight; | |
3256 | |
3257 final int naturalWidth; | |
3258 | |
3259 String src; | |
3260 | |
3261 String useMap; | |
3262 | |
3263 int vspace; | |
3264 | |
3265 int width; | |
3266 | |
3267 final int x; | |
3268 | |
3269 final int y; | |
3270 } | |
3271 | |
3272 class _HTMLInputElementJs extends _HTMLElementJs implements HTMLInputElement nat
ive "*HTMLInputElement" { | |
3273 | |
3274 String accept; | |
3275 | |
3276 String align; | |
3277 | |
3278 String alt; | |
3279 | |
3280 String autocomplete; | |
3281 | |
3282 bool autofocus; | |
3283 | |
3284 bool checked; | |
3285 | |
3286 bool defaultChecked; | |
3287 | |
3288 String defaultValue; | |
3289 | |
3290 String dirName; | |
3291 | |
3292 bool disabled; | |
3293 | |
3294 _FileListJs files; | |
3295 | |
3296 final _HTMLFormElementJs form; | |
3297 | |
3298 String formAction; | |
3299 | |
3300 String formEnctype; | |
3301 | |
3302 String formMethod; | |
3303 | |
3304 bool formNoValidate; | |
3305 | |
3306 String formTarget; | |
3307 | |
3308 int height; | |
3309 | |
3310 bool incremental; | |
3311 | |
3312 bool indeterminate; | |
3313 | |
3314 final _NodeListJs labels; | |
3315 | |
3316 final _HTMLElementJs list; | |
3317 | |
3318 String max; | |
3319 | |
3320 int maxLength; | |
3321 | |
3322 String min; | |
3323 | |
3324 bool multiple; | |
3325 | |
3326 String name; | |
3327 | |
3328 String pattern; | |
3329 | |
3330 String placeholder; | |
3331 | |
3332 bool readOnly; | |
3333 | |
3334 bool required; | |
3335 | |
3336 String selectionDirection; | |
3337 | |
3338 int selectionEnd; | |
3339 | |
3340 int selectionStart; | |
3341 | |
3342 int size; | |
3343 | |
3344 String src; | |
3345 | |
3346 String step; | |
3347 | |
3348 String type; | |
3349 | |
3350 String useMap; | |
3351 | |
3352 final String validationMessage; | |
3353 | |
3354 final _ValidityStateJs validity; | |
3355 | |
3356 String value; | |
3357 | |
3358 Date valueAsDate; | |
3359 | |
3360 num valueAsNumber; | |
3361 | |
3362 final _EntryArrayJs webkitEntries; | |
3363 | |
3364 bool webkitGrammar; | |
3365 | |
3366 bool webkitSpeech; | |
3367 | |
3368 bool webkitdirectory; | |
3369 | |
3370 int width; | |
3371 | |
3372 final bool willValidate; | |
3373 | |
3374 bool checkValidity() native; | |
3375 | |
3376 void select() native; | |
3377 | |
3378 void setCustomValidity(String error) native; | |
3379 | |
3380 void setSelectionRange(int start, int end, [String direction]) native; | |
3381 | |
3382 void stepDown([int n]) native; | |
3383 | |
3384 void stepUp([int n]) native; | |
3385 } | |
3386 | |
3387 class _HTMLKeygenElementJs extends _HTMLElementJs implements HTMLKeygenElement n
ative "*HTMLKeygenElement" { | |
3388 | |
3389 bool autofocus; | |
3390 | |
3391 String challenge; | |
3392 | |
3393 bool disabled; | |
3394 | |
3395 final _HTMLFormElementJs form; | |
3396 | |
3397 String keytype; | |
3398 | |
3399 final _NodeListJs labels; | |
3400 | |
3401 String name; | |
3402 | |
3403 final String type; | |
3404 | |
3405 final String validationMessage; | |
3406 | |
3407 final _ValidityStateJs validity; | |
3408 | |
3409 final bool willValidate; | |
3410 | |
3411 bool checkValidity() native; | |
3412 | |
3413 void setCustomValidity(String error) native; | |
3414 } | |
3415 | |
3416 class _HTMLLIElementJs extends _HTMLElementJs implements HTMLLIElement native "*
HTMLLIElement" { | |
3417 | |
3418 String type; | |
3419 | |
3420 int value; | |
3421 } | |
3422 | |
3423 class _HTMLLabelElementJs extends _HTMLElementJs implements HTMLLabelElement nat
ive "*HTMLLabelElement" { | |
3424 | |
3425 final _HTMLElementJs control; | |
3426 | |
3427 final _HTMLFormElementJs form; | |
3428 | |
3429 String htmlFor; | |
3430 } | |
3431 | |
3432 class _HTMLLegendElementJs extends _HTMLElementJs implements HTMLLegendElement n
ative "*HTMLLegendElement" { | |
3433 | |
3434 String align; | |
3435 | |
3436 final _HTMLFormElementJs form; | |
3437 } | |
3438 | |
3439 class _HTMLLinkElementJs extends _HTMLElementJs implements HTMLLinkElement nativ
e "*HTMLLinkElement" { | |
3440 | |
3441 String charset; | |
3442 | |
3443 bool disabled; | |
3444 | |
3445 String href; | |
3446 | |
3447 String hreflang; | |
3448 | |
3449 String media; | |
3450 | |
3451 String rel; | |
3452 | |
3453 String rev; | |
3454 | |
3455 final _StyleSheetJs sheet; | |
3456 | |
3457 _DOMSettableTokenListJs sizes; | |
3458 | |
3459 String target; | |
3460 | |
3461 String type; | |
3462 } | |
3463 | |
3464 class _HTMLMapElementJs extends _HTMLElementJs implements HTMLMapElement native
"*HTMLMapElement" { | |
3465 | |
3466 final _HTMLCollectionJs areas; | |
3467 | |
3468 String name; | |
3469 } | |
3470 | |
3471 class _HTMLMarqueeElementJs extends _HTMLElementJs implements HTMLMarqueeElement
native "*HTMLMarqueeElement" { | |
3472 | |
3473 String behavior; | |
3474 | |
3475 String bgColor; | |
3476 | |
3477 String direction; | |
3478 | |
3479 String height; | |
3480 | |
3481 int hspace; | |
3482 | |
3483 int loop; | |
3484 | |
3485 int scrollAmount; | |
3486 | |
3487 int scrollDelay; | |
3488 | |
3489 bool trueSpeed; | |
3490 | |
3491 int vspace; | |
3492 | |
3493 String width; | |
3494 | |
3495 void start() native; | |
3496 | |
3497 void stop() native; | |
3498 } | |
3499 | |
3500 class _HTMLMediaElementJs extends _HTMLElementJs implements HTMLMediaElement nat
ive "*HTMLMediaElement" { | |
3501 | |
3502 static const int HAVE_CURRENT_DATA = 2; | |
3503 | |
3504 static const int HAVE_ENOUGH_DATA = 4; | |
3505 | |
3506 static const int HAVE_FUTURE_DATA = 3; | |
3507 | |
3508 static const int HAVE_METADATA = 1; | |
3509 | |
3510 static const int HAVE_NOTHING = 0; | |
3511 | |
3512 static const int NETWORK_EMPTY = 0; | |
3513 | |
3514 static const int NETWORK_IDLE = 1; | |
3515 | |
3516 static const int NETWORK_LOADING = 2; | |
3517 | |
3518 static const int NETWORK_NO_SOURCE = 3; | |
3519 | |
3520 bool autoplay; | |
3521 | |
3522 final _TimeRangesJs buffered; | |
3523 | |
3524 _MediaControllerJs controller; | |
3525 | |
3526 bool controls; | |
3527 | |
3528 final String currentSrc; | |
3529 | |
3530 num currentTime; | |
3531 | |
3532 bool defaultMuted; | |
3533 | |
3534 num defaultPlaybackRate; | |
3535 | |
3536 final num duration; | |
3537 | |
3538 final bool ended; | |
3539 | |
3540 final _MediaErrorJs error; | |
3541 | |
3542 final num initialTime; | |
3543 | |
3544 bool loop; | |
3545 | |
3546 String mediaGroup; | |
3547 | |
3548 bool muted; | |
3549 | |
3550 final int networkState; | |
3551 | |
3552 final bool paused; | |
3553 | |
3554 num playbackRate; | |
3555 | |
3556 final _TimeRangesJs played; | |
3557 | |
3558 String preload; | |
3559 | |
3560 final int readyState; | |
3561 | |
3562 final _TimeRangesJs seekable; | |
3563 | |
3564 final bool seeking; | |
3565 | |
3566 String src; | |
3567 | |
3568 final num startTime; | |
3569 | |
3570 final _TextTrackListJs textTracks; | |
3571 | |
3572 num volume; | |
3573 | |
3574 final int webkitAudioDecodedByteCount; | |
3575 | |
3576 bool webkitClosedCaptionsVisible; | |
3577 | |
3578 final bool webkitHasClosedCaptions; | |
3579 | |
3580 bool webkitPreservesPitch; | |
3581 | |
3582 final int webkitVideoDecodedByteCount; | |
3583 | |
3584 _TextTrackJs addTextTrack(String kind, [String label, String language]) native
; | |
3585 | |
3586 String canPlayType(String type, String keySystem) native; | |
3587 | |
3588 void load() native; | |
3589 | |
3590 void pause() native; | |
3591 | |
3592 void play() native; | |
3593 | |
3594 void webkitAddKey(String keySystem, _Uint8ArrayJs key, [_Uint8ArrayJs initData
, String sessionId]) native; | |
3595 | |
3596 void webkitCancelKeyRequest(String keySystem, String sessionId) native; | |
3597 | |
3598 void webkitGenerateKeyRequest(String keySystem, [_Uint8ArrayJs initData]) nati
ve; | |
3599 } | |
3600 | |
3601 class _HTMLMenuElementJs extends _HTMLElementJs implements HTMLMenuElement nativ
e "*HTMLMenuElement" { | |
3602 | |
3603 bool compact; | |
3604 } | |
3605 | |
3606 class _HTMLMetaElementJs extends _HTMLElementJs implements HTMLMetaElement nativ
e "*HTMLMetaElement" { | |
3607 | |
3608 String content; | |
3609 | |
3610 String httpEquiv; | |
3611 | |
3612 String name; | |
3613 | |
3614 String scheme; | |
3615 } | |
3616 | |
3617 class _HTMLMeterElementJs extends _HTMLElementJs implements HTMLMeterElement nat
ive "*HTMLMeterElement" { | |
3618 | |
3619 num high; | |
3620 | |
3621 final _NodeListJs labels; | |
3622 | |
3623 num low; | |
3624 | |
3625 num max; | |
3626 | |
3627 num min; | |
3628 | |
3629 num optimum; | |
3630 | |
3631 num value; | |
3632 } | |
3633 | |
3634 class _HTMLModElementJs extends _HTMLElementJs implements HTMLModElement native
"*HTMLModElement" { | |
3635 | |
3636 String cite; | |
3637 | |
3638 String dateTime; | |
3639 } | |
3640 | |
3641 class _HTMLOListElementJs extends _HTMLElementJs implements HTMLOListElement nat
ive "*HTMLOListElement" { | |
3642 | |
3643 bool compact; | |
3644 | |
3645 bool reversed; | |
3646 | |
3647 int start; | |
3648 | |
3649 String type; | |
3650 } | |
3651 | |
3652 class _HTMLObjectElementJs extends _HTMLElementJs implements HTMLObjectElement n
ative "*HTMLObjectElement" { | |
3653 | |
3654 String align; | |
3655 | |
3656 String archive; | |
3657 | |
3658 String border; | |
3659 | |
3660 String code; | |
3661 | |
3662 String codeBase; | |
3663 | |
3664 String codeType; | |
3665 | |
3666 final _DocumentJs contentDocument; | |
3667 | |
3668 String data; | |
3669 | |
3670 bool declare; | |
3671 | |
3672 final _HTMLFormElementJs form; | |
3673 | |
3674 String height; | |
3675 | |
3676 int hspace; | |
3677 | |
3678 String name; | |
3679 | |
3680 String standby; | |
3681 | |
3682 String type; | |
3683 | |
3684 String useMap; | |
3685 | |
3686 final String validationMessage; | |
3687 | |
3688 final _ValidityStateJs validity; | |
3689 | |
3690 int vspace; | |
3691 | |
3692 String width; | |
3693 | |
3694 final bool willValidate; | |
3695 | |
3696 bool checkValidity() native; | |
3697 | |
3698 _SVGDocumentJs getSVGDocument() native; | |
3699 | |
3700 void setCustomValidity(String error) native; | |
3701 } | |
3702 | |
3703 class _HTMLOptGroupElementJs extends _HTMLElementJs implements HTMLOptGroupEleme
nt native "*HTMLOptGroupElement" { | |
3704 | |
3705 bool disabled; | |
3706 | |
3707 String label; | |
3708 } | |
3709 | |
3710 class _HTMLOptionElementJs extends _HTMLElementJs implements HTMLOptionElement n
ative "*HTMLOptionElement" { | |
3711 | |
3712 bool defaultSelected; | |
3713 | |
3714 bool disabled; | |
3715 | |
3716 final _HTMLFormElementJs form; | |
3717 | |
3718 final int index; | |
3719 | |
3720 String label; | |
3721 | |
3722 bool selected; | |
3723 | |
3724 String text; | |
3725 | |
3726 String value; | |
3727 } | |
3728 | |
3729 class _HTMLOptionsCollectionJs extends _HTMLCollectionJs implements HTMLOptionsC
ollection native "*HTMLOptionsCollection" { | |
3730 | |
3731 // Shadowing definition. | |
3732 int get length() native "return this.length;"; | |
3733 void set length(int value) native "this.length = value;"; | |
3734 | |
3735 int selectedIndex; | |
3736 | |
3737 void remove(int index) native; | |
3738 } | |
3739 | |
3740 class _HTMLOutputElementJs extends _HTMLElementJs implements HTMLOutputElement n
ative "*HTMLOutputElement" { | |
3741 | |
3742 String defaultValue; | |
3743 | |
3744 final _HTMLFormElementJs form; | |
3745 | |
3746 _DOMSettableTokenListJs htmlFor; | |
3747 | |
3748 final _NodeListJs labels; | |
3749 | |
3750 String name; | |
3751 | |
3752 final String type; | |
3753 | |
3754 final String validationMessage; | |
3755 | |
3756 final _ValidityStateJs validity; | |
3757 | |
3758 String value; | |
3759 | |
3760 final bool willValidate; | |
3761 | |
3762 bool checkValidity() native; | |
3763 | |
3764 void setCustomValidity(String error) native; | |
3765 } | |
3766 | |
3767 class _HTMLParagraphElementJs extends _HTMLElementJs implements HTMLParagraphEle
ment native "*HTMLParagraphElement" { | |
3768 | |
3769 String align; | |
3770 } | |
3771 | |
3772 class _HTMLParamElementJs extends _HTMLElementJs implements HTMLParamElement nat
ive "*HTMLParamElement" { | |
3773 | |
3774 String name; | |
3775 | |
3776 String type; | |
3777 | |
3778 String value; | |
3779 | |
3780 String valueType; | |
3781 } | |
3782 | |
3783 class _HTMLPreElementJs extends _HTMLElementJs implements HTMLPreElement native
"*HTMLPreElement" { | |
3784 | |
3785 int width; | |
3786 | |
3787 bool wrap; | |
3788 } | |
3789 | |
3790 class _HTMLProgressElementJs extends _HTMLElementJs implements HTMLProgressEleme
nt native "*HTMLProgressElement" { | |
3791 | |
3792 final _NodeListJs labels; | |
3793 | |
3794 num max; | |
3795 | |
3796 final num position; | |
3797 | |
3798 num value; | |
3799 } | |
3800 | |
3801 class _HTMLQuoteElementJs extends _HTMLElementJs implements HTMLQuoteElement nat
ive "*HTMLQuoteElement" { | |
3802 | |
3803 String cite; | |
3804 } | |
3805 | |
3806 class _HTMLScriptElementJs extends _HTMLElementJs implements HTMLScriptElement n
ative "*HTMLScriptElement" { | |
3807 | |
3808 bool async; | |
3809 | |
3810 String charset; | |
3811 | |
3812 String crossOrigin; | |
3813 | |
3814 bool defer; | |
3815 | |
3816 String event; | |
3817 | |
3818 String htmlFor; | |
3819 | |
3820 String src; | |
3821 | |
3822 String text; | |
3823 | |
3824 String type; | |
3825 } | |
3826 | |
3827 class _HTMLSelectElementJs extends _HTMLElementJs implements HTMLSelectElement n
ative "*HTMLSelectElement" { | |
3828 | |
3829 bool autofocus; | |
3830 | |
3831 bool disabled; | |
3832 | |
3833 final _HTMLFormElementJs form; | |
3834 | |
3835 final _NodeListJs labels; | |
3836 | |
3837 int length; | |
3838 | |
3839 bool multiple; | |
3840 | |
3841 String name; | |
3842 | |
3843 final _HTMLOptionsCollectionJs options; | |
3844 | |
3845 bool required; | |
3846 | |
3847 int selectedIndex; | |
3848 | |
3849 final _HTMLCollectionJs selectedOptions; | |
3850 | |
3851 int size; | |
3852 | |
3853 final String type; | |
3854 | |
3855 final String validationMessage; | |
3856 | |
3857 final _ValidityStateJs validity; | |
3858 | |
3859 String value; | |
3860 | |
3861 final bool willValidate; | |
3862 | |
3863 void add(_HTMLElementJs element, _HTMLElementJs before) native; | |
3864 | |
3865 bool checkValidity() native; | |
3866 | |
3867 _NodeJs item(int index) native; | |
3868 | |
3869 _NodeJs namedItem(String name) native; | |
3870 | |
3871 void remove(index_OR_option) native; | |
3872 | |
3873 void setCustomValidity(String error) native; | |
3874 } | |
3875 | |
3876 class _HTMLShadowElementJs extends _HTMLElementJs implements HTMLShadowElement n
ative "*HTMLShadowElement" { | |
3877 } | |
3878 | |
3879 class _HTMLSourceElementJs extends _HTMLElementJs implements HTMLSourceElement n
ative "*HTMLSourceElement" { | |
3880 | |
3881 String media; | |
3882 | |
3883 String src; | |
3884 | |
3885 String type; | |
3886 } | |
3887 | |
3888 class _HTMLSpanElementJs extends _HTMLElementJs implements HTMLSpanElement nativ
e "*HTMLSpanElement" { | |
3889 } | |
3890 | |
3891 class _HTMLStyleElementJs extends _HTMLElementJs implements HTMLStyleElement nat
ive "*HTMLStyleElement" { | |
3892 | |
3893 bool disabled; | |
3894 | |
3895 String media; | |
3896 | |
3897 bool scoped; | |
3898 | |
3899 final _StyleSheetJs sheet; | |
3900 | |
3901 String type; | |
3902 } | |
3903 | |
3904 class _HTMLTableCaptionElementJs extends _HTMLElementJs implements HTMLTableCapt
ionElement native "*HTMLTableCaptionElement" { | |
3905 | |
3906 String align; | |
3907 } | |
3908 | |
3909 class _HTMLTableCellElementJs extends _HTMLElementJs implements HTMLTableCellEle
ment native "*HTMLTableCellElement" { | |
3910 | |
3911 String abbr; | |
3912 | |
3913 String align; | |
3914 | |
3915 String axis; | |
3916 | |
3917 String bgColor; | |
3918 | |
3919 final int cellIndex; | |
3920 | |
3921 String ch; | |
3922 | |
3923 String chOff; | |
3924 | |
3925 int colSpan; | |
3926 | |
3927 String headers; | |
3928 | |
3929 String height; | |
3930 | |
3931 bool noWrap; | |
3932 | |
3933 int rowSpan; | |
3934 | |
3935 String scope; | |
3936 | |
3937 String vAlign; | |
3938 | |
3939 String width; | |
3940 } | |
3941 | |
3942 class _HTMLTableColElementJs extends _HTMLElementJs implements HTMLTableColEleme
nt native "*HTMLTableColElement" { | |
3943 | |
3944 String align; | |
3945 | |
3946 String ch; | |
3947 | |
3948 String chOff; | |
3949 | |
3950 int span; | |
3951 | |
3952 String vAlign; | |
3953 | |
3954 String width; | |
3955 } | |
3956 | |
3957 class _HTMLTableElementJs extends _HTMLElementJs implements HTMLTableElement nat
ive "*HTMLTableElement" { | |
3958 | |
3959 String align; | |
3960 | |
3961 String bgColor; | |
3962 | |
3963 String border; | |
3964 | |
3965 _HTMLTableCaptionElementJs caption; | |
3966 | |
3967 String cellPadding; | |
3968 | |
3969 String cellSpacing; | |
3970 | |
3971 String frame; | |
3972 | |
3973 final _HTMLCollectionJs rows; | |
3974 | |
3975 String rules; | |
3976 | |
3977 String summary; | |
3978 | |
3979 final _HTMLCollectionJs tBodies; | |
3980 | |
3981 _HTMLTableSectionElementJs tFoot; | |
3982 | |
3983 _HTMLTableSectionElementJs tHead; | |
3984 | |
3985 String width; | |
3986 | |
3987 _HTMLElementJs createCaption() native; | |
3988 | |
3989 _HTMLElementJs createTBody() native; | |
3990 | |
3991 _HTMLElementJs createTFoot() native; | |
3992 | |
3993 _HTMLElementJs createTHead() native; | |
3994 | |
3995 void deleteCaption() native; | |
3996 | |
3997 void deleteRow(int index) native; | |
3998 | |
3999 void deleteTFoot() native; | |
4000 | |
4001 void deleteTHead() native; | |
4002 | |
4003 _HTMLElementJs insertRow(int index) native; | |
4004 } | |
4005 | |
4006 class _HTMLTableRowElementJs extends _HTMLElementJs implements HTMLTableRowEleme
nt native "*HTMLTableRowElement" { | |
4007 | |
4008 String align; | |
4009 | |
4010 String bgColor; | |
4011 | |
4012 final _HTMLCollectionJs cells; | |
4013 | |
4014 String ch; | |
4015 | |
4016 String chOff; | |
4017 | |
4018 final int rowIndex; | |
4019 | |
4020 final int sectionRowIndex; | |
4021 | |
4022 String vAlign; | |
4023 | |
4024 void deleteCell(int index) native; | |
4025 | |
4026 _HTMLElementJs insertCell(int index) native; | |
4027 } | |
4028 | |
4029 class _HTMLTableSectionElementJs extends _HTMLElementJs implements HTMLTableSect
ionElement native "*HTMLTableSectionElement" { | |
4030 | |
4031 String align; | |
4032 | |
4033 String ch; | |
4034 | |
4035 String chOff; | |
4036 | |
4037 final _HTMLCollectionJs rows; | |
4038 | |
4039 String vAlign; | |
4040 | |
4041 void deleteRow(int index) native; | |
4042 | |
4043 _HTMLElementJs insertRow(int index) native; | |
4044 } | |
4045 | |
4046 class _HTMLTextAreaElementJs extends _HTMLElementJs implements HTMLTextAreaEleme
nt native "*HTMLTextAreaElement" { | |
4047 | |
4048 bool autofocus; | |
4049 | |
4050 int cols; | |
4051 | |
4052 String defaultValue; | |
4053 | |
4054 String dirName; | |
4055 | |
4056 bool disabled; | |
4057 | |
4058 final _HTMLFormElementJs form; | |
4059 | |
4060 final _NodeListJs labels; | |
4061 | |
4062 int maxLength; | |
4063 | |
4064 String name; | |
4065 | |
4066 String placeholder; | |
4067 | |
4068 bool readOnly; | |
4069 | |
4070 bool required; | |
4071 | |
4072 int rows; | |
4073 | |
4074 String selectionDirection; | |
4075 | |
4076 int selectionEnd; | |
4077 | |
4078 int selectionStart; | |
4079 | |
4080 final int textLength; | |
4081 | |
4082 final String type; | |
4083 | |
4084 final String validationMessage; | |
4085 | |
4086 final _ValidityStateJs validity; | |
4087 | |
4088 String value; | |
4089 | |
4090 final bool willValidate; | |
4091 | |
4092 String wrap; | |
4093 | |
4094 bool checkValidity() native; | |
4095 | |
4096 void select() native; | |
4097 | |
4098 void setCustomValidity(String error) native; | |
4099 | |
4100 void setSelectionRange(int start, int end, [String direction]) native; | |
4101 } | |
4102 | |
4103 class _HTMLTitleElementJs extends _HTMLElementJs implements HTMLTitleElement nat
ive "*HTMLTitleElement" { | |
4104 | |
4105 String text; | |
4106 } | |
4107 | |
4108 class _HTMLTrackElementJs extends _HTMLElementJs implements HTMLTrackElement nat
ive "*HTMLTrackElement" { | |
4109 | |
4110 static const int ERROR = 3; | |
4111 | |
4112 static const int LOADED = 2; | |
4113 | |
4114 static const int LOADING = 1; | |
4115 | |
4116 static const int NONE = 0; | |
4117 | |
4118 bool get defaultValue() native "return this.default;"; | |
4119 void set defaultValue(bool value) native "this.default = value;"; | |
4120 | |
4121 String kind; | |
4122 | |
4123 String label; | |
4124 | |
4125 final int readyState; | |
4126 | |
4127 String src; | |
4128 | |
4129 String srclang; | |
4130 | |
4131 final _TextTrackJs track; | |
4132 } | |
4133 | |
4134 class _HTMLUListElementJs extends _HTMLElementJs implements HTMLUListElement nat
ive "*HTMLUListElement" { | |
4135 | |
4136 bool compact; | |
4137 | |
4138 String type; | |
4139 } | |
4140 | |
4141 class _HTMLUnknownElementJs extends _HTMLElementJs implements HTMLUnknownElement
native "*HTMLUnknownElement" { | |
4142 } | |
4143 | |
4144 class _HTMLVideoElementJs extends _HTMLMediaElementJs implements HTMLVideoElemen
t native "*HTMLVideoElement" { | |
4145 | |
4146 int height; | |
4147 | |
4148 String poster; | |
4149 | |
4150 final int videoHeight; | |
4151 | |
4152 final int videoWidth; | |
4153 | |
4154 final int webkitDecodedFrameCount; | |
4155 | |
4156 final bool webkitDisplayingFullscreen; | |
4157 | |
4158 final int webkitDroppedFrameCount; | |
4159 | |
4160 final bool webkitSupportsFullscreen; | |
4161 | |
4162 int width; | |
4163 | |
4164 void webkitEnterFullScreen() native; | |
4165 | |
4166 void webkitEnterFullscreen() native; | |
4167 | |
4168 void webkitExitFullScreen() native; | |
4169 | |
4170 void webkitExitFullscreen() native; | |
4171 } | |
4172 | |
4173 class _HashChangeEventJs extends _EventJs implements HashChangeEvent native "*Ha
shChangeEvent" { | |
4174 | |
4175 final String newURL; | |
4176 | |
4177 final String oldURL; | |
4178 | |
4179 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL) native; | |
4180 } | |
4181 | |
4182 class _HistoryJs extends _DOMTypeJs implements History native "*History" { | |
4183 | |
4184 final int length; | |
4185 | |
4186 final state; | |
4187 | |
4188 void back() native; | |
4189 | |
4190 void forward() native; | |
4191 | |
4192 void go(int distance) native; | |
4193 | |
4194 void pushState(Object data, String title, [String url]) native; | |
4195 | |
4196 void replaceState(Object data, String title, [String url]) native; | |
4197 } | |
4198 | |
4199 class _IDBAnyJs extends _DOMTypeJs implements IDBAny native "*IDBAny" { | |
4200 } | |
4201 | |
4202 class _IDBCursorJs extends _DOMTypeJs implements IDBCursor native "*IDBCursor" { | |
4203 | |
4204 static const int NEXT = 0; | |
4205 | |
4206 static const int NEXT_NO_DUPLICATE = 1; | |
4207 | |
4208 static const int PREV = 2; | |
4209 | |
4210 static const int PREV_NO_DUPLICATE = 3; | |
4211 | |
4212 final String direction; | |
4213 | |
4214 final key; | |
4215 | |
4216 final primaryKey; | |
4217 | |
4218 final source; | |
4219 | |
4220 void advance(int count) native; | |
4221 | |
4222 void continueFunction([key]) native 'continue'; | |
4223 | |
4224 _IDBRequestJs delete() native; | |
4225 | |
4226 _IDBRequestJs update(value) native; | |
4227 } | |
4228 | |
4229 class _IDBCursorWithValueJs extends _IDBCursorJs implements IDBCursorWithValue n
ative "*IDBCursorWithValue" { | |
4230 | |
4231 final value; | |
4232 } | |
4233 | |
4234 class _IDBDatabaseJs extends _EventTargetJs implements IDBDatabase native "*IDBD
atabase" { | |
4235 | |
4236 final String name; | |
4237 | |
4238 final List<String> objectStoreNames; | |
4239 | |
4240 final version; | |
4241 | |
4242 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
4243 | |
4244 void close() native; | |
4245 | |
4246 _IDBObjectStoreJs createObjectStore(String name, [Map options]) native; | |
4247 | |
4248 void deleteObjectStore(String name) native; | |
4249 | |
4250 bool dispatchEvent(_EventJs evt) native; | |
4251 | |
4252 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
4253 | |
4254 _IDBVersionChangeRequestJs setVersion(String version) native; | |
4255 | |
4256 _IDBTransactionJs transaction(storeName_OR_storeNames, String mode) native; | |
4257 } | |
4258 | |
4259 class _IDBDatabaseExceptionJs extends _DOMTypeJs implements IDBDatabaseException
native "*IDBDatabaseException" { | |
4260 | |
4261 static const int ABORT_ERR = 20; | |
4262 | |
4263 static const int CONSTRAINT_ERR = 4; | |
4264 | |
4265 static const int DATA_ERR = 5; | |
4266 | |
4267 static const int NON_TRANSIENT_ERR = 2; | |
4268 | |
4269 static const int NOT_ALLOWED_ERR = 6; | |
4270 | |
4271 static const int NOT_FOUND_ERR = 8; | |
4272 | |
4273 static const int NO_ERR = 0; | |
4274 | |
4275 static const int QUOTA_ERR = 22; | |
4276 | |
4277 static const int READ_ONLY_ERR = 9; | |
4278 | |
4279 static const int TIMEOUT_ERR = 23; | |
4280 | |
4281 static const int TRANSACTION_INACTIVE_ERR = 7; | |
4282 | |
4283 static const int UNKNOWN_ERR = 1; | |
4284 | |
4285 static const int VER_ERR = 12; | |
4286 | |
4287 final int code; | |
4288 | |
4289 final String message; | |
4290 | |
4291 final String name; | |
4292 | |
4293 String toString() native; | |
4294 } | |
4295 | |
4296 class _IDBFactoryJs extends _DOMTypeJs implements IDBFactory native "*IDBFactory
" { | |
4297 | |
4298 int cmp(first, second) native; | |
4299 | |
4300 _IDBVersionChangeRequestJs deleteDatabase(String name) native; | |
4301 | |
4302 _IDBOpenDBRequestJs open(String name, [int version]) native; | |
4303 | |
4304 _IDBRequestJs webkitGetDatabaseNames() native; | |
4305 } | |
4306 | |
4307 class _IDBIndexJs extends _DOMTypeJs implements IDBIndex native "*IDBIndex" { | |
4308 | |
4309 final keyPath; | |
4310 | |
4311 final bool multiEntry; | |
4312 | |
4313 final String name; | |
4314 | |
4315 final _IDBObjectStoreJs objectStore; | |
4316 | |
4317 final bool unique; | |
4318 | |
4319 _IDBRequestJs count([key_OR_range]) native; | |
4320 | |
4321 _IDBRequestJs get(key) native; | |
4322 | |
4323 _IDBRequestJs getKey(key) native; | |
4324 | |
4325 _IDBRequestJs openCursor([key_OR_range, direction]) native; | |
4326 | |
4327 _IDBRequestJs openKeyCursor([key_OR_range, direction]) native; | |
4328 } | |
4329 | |
4330 class _IDBKeyJs extends _DOMTypeJs implements IDBKey native "*IDBKey" { | |
4331 } | |
4332 | |
4333 class _IDBKeyRangeJs extends _DOMTypeJs implements IDBKeyRange native "*IDBKeyRa
nge" { | |
4334 | |
4335 final lower; | |
4336 | |
4337 final bool lowerOpen; | |
4338 | |
4339 final upper; | |
4340 | |
4341 final bool upperOpen; | |
4342 } | |
4343 | |
4344 class _IDBObjectStoreJs extends _DOMTypeJs implements IDBObjectStore native "*ID
BObjectStore" { | |
4345 | |
4346 final bool autoIncrement; | |
4347 | |
4348 final List<String> indexNames; | |
4349 | |
4350 final keyPath; | |
4351 | |
4352 final String name; | |
4353 | |
4354 final _IDBTransactionJs transaction; | |
4355 | |
4356 _IDBRequestJs add(value, [key]) native; | |
4357 | |
4358 _IDBRequestJs clear() native; | |
4359 | |
4360 _IDBRequestJs count([key_OR_range]) native; | |
4361 | |
4362 _IDBIndexJs createIndex(String name, keyPath, [Map options]) native; | |
4363 | |
4364 _IDBRequestJs delete(key_OR_keyRange) native; | |
4365 | |
4366 void deleteIndex(String name) native; | |
4367 | |
4368 _IDBRequestJs getObject(key) native 'get'; | |
4369 | |
4370 _IDBIndexJs index(String name) native; | |
4371 | |
4372 _IDBRequestJs openCursor([key_OR_range, direction]) native; | |
4373 | |
4374 _IDBRequestJs put(value, [key]) native; | |
4375 } | |
4376 | |
4377 class _IDBOpenDBRequestJs extends _IDBRequestJs implements IDBOpenDBRequest nati
ve "*IDBOpenDBRequest" { | |
4378 | |
4379 // From EventTarget | |
4380 | |
4381 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
4382 | |
4383 bool dispatchEvent(_EventJs event) native; | |
4384 | |
4385 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
4386 } | |
4387 | |
4388 class _IDBRequestJs extends _EventTargetJs implements IDBRequest native "*IDBReq
uest" { | |
4389 | |
4390 final _DOMErrorJs error; | |
4391 | |
4392 final int errorCode; | |
4393 | |
4394 final String readyState; | |
4395 | |
4396 final result; | |
4397 | |
4398 final source; | |
4399 | |
4400 final _IDBTransactionJs transaction; | |
4401 | |
4402 final String webkitErrorMessage; | |
4403 | |
4404 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
4405 | |
4406 bool dispatchEvent(_EventJs evt) native; | |
4407 | |
4408 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
4409 } | |
4410 | |
4411 class _IDBTransactionJs extends _EventTargetJs implements IDBTransaction native
"*IDBTransaction" { | |
4412 | |
4413 static const int READ_ONLY = 0; | |
4414 | |
4415 static const int READ_WRITE = 1; | |
4416 | |
4417 static const int VERSION_CHANGE = 2; | |
4418 | |
4419 final _IDBDatabaseJs db; | |
4420 | |
4421 final _DOMErrorJs error; | |
4422 | |
4423 final String mode; | |
4424 | |
4425 void abort() native; | |
4426 | |
4427 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
4428 | |
4429 bool dispatchEvent(_EventJs evt) native; | |
4430 | |
4431 _IDBObjectStoreJs objectStore(String name) native; | |
4432 | |
4433 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
4434 } | |
4435 | |
4436 class _IDBUpgradeNeededEventJs extends _EventJs implements IDBUpgradeNeededEvent
native "*IDBUpgradeNeededEvent" { | |
4437 | |
4438 final int newVersion; | |
4439 | |
4440 final int oldVersion; | |
4441 } | |
4442 | |
4443 class _IDBVersionChangeEventJs extends _EventJs implements IDBVersionChangeEvent
native "*IDBVersionChangeEvent" { | |
4444 | |
4445 final String version; | |
4446 } | |
4447 | |
4448 class _IDBVersionChangeRequestJs extends _IDBRequestJs implements IDBVersionChan
geRequest native "*IDBVersionChangeRequest" { | |
4449 | |
4450 // From EventTarget | |
4451 | |
4452 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
4453 | |
4454 bool dispatchEvent(_EventJs event) native; | |
4455 | |
4456 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
4457 } | |
4458 | |
4459 class _IceCandidateJs extends _DOMTypeJs implements IceCandidate native "*IceCan
didate" { | |
4460 | |
4461 final String label; | |
4462 | |
4463 String toSdp() native; | |
4464 } | |
4465 | |
4466 class _ImageDataJs extends _DOMTypeJs implements ImageData native "*ImageData" { | |
4467 | |
4468 final _Uint8ClampedArrayJs data; | |
4469 | |
4470 final int height; | |
4471 | |
4472 final int width; | |
4473 } | |
4474 | |
4475 class _Int16ArrayJs extends _ArrayBufferViewJs implements Int16Array, List<int>
native "*Int16Array" { | |
4476 | |
4477 static const int BYTES_PER_ELEMENT = 2; | |
4478 | |
4479 final int length; | |
4480 | |
4481 int operator[](int index) native "return this[index];"; | |
4482 | |
4483 void operator[]=(int index, int value) native "this[index] = value"; | |
4484 // -- start List<int> mixins. | |
4485 // int is the element type. | |
4486 | |
4487 // From Iterable<int>: | |
4488 | |
4489 Iterator<int> iterator() { | |
4490 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
4491 // be cached in both iterator _and_ forEach method. For now caching it | |
4492 // for consistency. | |
4493 return new _FixedSizeListIterator<int>(this); | |
4494 } | |
4495 | |
4496 // From Collection<int>: | |
4497 | |
4498 void add(int value) { | |
4499 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4500 } | |
4501 | |
4502 void addLast(int value) { | |
4503 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4504 } | |
4505 | |
4506 void addAll(Collection<int> collection) { | |
4507 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4508 } | |
4509 | |
4510 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
4511 | |
4512 Collection map(f(int element)) => _Collections.map(this, [], f); | |
4513 | |
4514 Collection<int> filter(bool f(int element)) => | |
4515 _Collections.filter(this, <int>[], f); | |
4516 | |
4517 bool every(bool f(int element)) => _Collections.every(this, f); | |
4518 | |
4519 bool some(bool f(int element)) => _Collections.some(this, f); | |
4520 | |
4521 bool isEmpty() => this.length == 0; | |
4522 | |
4523 // From List<int>: | |
4524 | |
4525 void sort(int compare(int a, int b)) { | |
4526 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
4527 } | |
4528 | |
4529 int indexOf(int element, [int start = 0]) => | |
4530 _Lists.indexOf(this, element, start, this.length); | |
4531 | |
4532 int lastIndexOf(int element, [int start]) { | |
4533 if (start === null) start = length - 1; | |
4534 return _Lists.lastIndexOf(this, element, start); | |
4535 } | |
4536 | |
4537 int last() => this[length - 1]; | |
4538 | |
4539 int removeLast() { | |
4540 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
4541 } | |
4542 | |
4543 // FIXME: implement these. | |
4544 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
4545 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
4546 } | |
4547 | |
4548 void removeRange(int start, int rangeLength) { | |
4549 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
4550 } | |
4551 | |
4552 void insertRange(int start, int rangeLength, [int initialValue]) { | |
4553 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
4554 } | |
4555 | |
4556 List<int> getRange(int start, int rangeLength) => | |
4557 _Lists.getRange(this, start, rangeLength, <int>[]); | |
4558 | |
4559 // -- end List<int> mixins. | |
4560 | |
4561 void setElements(Object array, [int offset]) native 'set'; | |
4562 | |
4563 _Int16ArrayJs subarray(int start, [int end]) native; | |
4564 } | |
4565 | |
4566 class _Int32ArrayJs extends _ArrayBufferViewJs implements Int32Array, List<int>
native "*Int32Array" { | |
4567 | |
4568 static const int BYTES_PER_ELEMENT = 4; | |
4569 | |
4570 final int length; | |
4571 | |
4572 int operator[](int index) native "return this[index];"; | |
4573 | |
4574 void operator[]=(int index, int value) native "this[index] = value"; | |
4575 // -- start List<int> mixins. | |
4576 // int is the element type. | |
4577 | |
4578 // From Iterable<int>: | |
4579 | |
4580 Iterator<int> iterator() { | |
4581 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
4582 // be cached in both iterator _and_ forEach method. For now caching it | |
4583 // for consistency. | |
4584 return new _FixedSizeListIterator<int>(this); | |
4585 } | |
4586 | |
4587 // From Collection<int>: | |
4588 | |
4589 void add(int value) { | |
4590 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4591 } | |
4592 | |
4593 void addLast(int value) { | |
4594 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4595 } | |
4596 | |
4597 void addAll(Collection<int> collection) { | |
4598 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4599 } | |
4600 | |
4601 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
4602 | |
4603 Collection map(f(int element)) => _Collections.map(this, [], f); | |
4604 | |
4605 Collection<int> filter(bool f(int element)) => | |
4606 _Collections.filter(this, <int>[], f); | |
4607 | |
4608 bool every(bool f(int element)) => _Collections.every(this, f); | |
4609 | |
4610 bool some(bool f(int element)) => _Collections.some(this, f); | |
4611 | |
4612 bool isEmpty() => this.length == 0; | |
4613 | |
4614 // From List<int>: | |
4615 | |
4616 void sort(int compare(int a, int b)) { | |
4617 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
4618 } | |
4619 | |
4620 int indexOf(int element, [int start = 0]) => | |
4621 _Lists.indexOf(this, element, start, this.length); | |
4622 | |
4623 int lastIndexOf(int element, [int start]) { | |
4624 if (start === null) start = length - 1; | |
4625 return _Lists.lastIndexOf(this, element, start); | |
4626 } | |
4627 | |
4628 int last() => this[length - 1]; | |
4629 | |
4630 int removeLast() { | |
4631 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
4632 } | |
4633 | |
4634 // FIXME: implement these. | |
4635 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
4636 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
4637 } | |
4638 | |
4639 void removeRange(int start, int rangeLength) { | |
4640 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
4641 } | |
4642 | |
4643 void insertRange(int start, int rangeLength, [int initialValue]) { | |
4644 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
4645 } | |
4646 | |
4647 List<int> getRange(int start, int rangeLength) => | |
4648 _Lists.getRange(this, start, rangeLength, <int>[]); | |
4649 | |
4650 // -- end List<int> mixins. | |
4651 | |
4652 void setElements(Object array, [int offset]) native 'set'; | |
4653 | |
4654 _Int32ArrayJs subarray(int start, [int end]) native; | |
4655 } | |
4656 | |
4657 class _Int8ArrayJs extends _ArrayBufferViewJs implements Int8Array, List<int> na
tive "*Int8Array" { | |
4658 | |
4659 static const int BYTES_PER_ELEMENT = 1; | |
4660 | |
4661 final int length; | |
4662 | |
4663 int operator[](int index) native "return this[index];"; | |
4664 | |
4665 void operator[]=(int index, int value) native "this[index] = value"; | |
4666 // -- start List<int> mixins. | |
4667 // int is the element type. | |
4668 | |
4669 // From Iterable<int>: | |
4670 | |
4671 Iterator<int> iterator() { | |
4672 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
4673 // be cached in both iterator _and_ forEach method. For now caching it | |
4674 // for consistency. | |
4675 return new _FixedSizeListIterator<int>(this); | |
4676 } | |
4677 | |
4678 // From Collection<int>: | |
4679 | |
4680 void add(int value) { | |
4681 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4682 } | |
4683 | |
4684 void addLast(int value) { | |
4685 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4686 } | |
4687 | |
4688 void addAll(Collection<int> collection) { | |
4689 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4690 } | |
4691 | |
4692 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
4693 | |
4694 Collection map(f(int element)) => _Collections.map(this, [], f); | |
4695 | |
4696 Collection<int> filter(bool f(int element)) => | |
4697 _Collections.filter(this, <int>[], f); | |
4698 | |
4699 bool every(bool f(int element)) => _Collections.every(this, f); | |
4700 | |
4701 bool some(bool f(int element)) => _Collections.some(this, f); | |
4702 | |
4703 bool isEmpty() => this.length == 0; | |
4704 | |
4705 // From List<int>: | |
4706 | |
4707 void sort(int compare(int a, int b)) { | |
4708 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
4709 } | |
4710 | |
4711 int indexOf(int element, [int start = 0]) => | |
4712 _Lists.indexOf(this, element, start, this.length); | |
4713 | |
4714 int lastIndexOf(int element, [int start]) { | |
4715 if (start === null) start = length - 1; | |
4716 return _Lists.lastIndexOf(this, element, start); | |
4717 } | |
4718 | |
4719 int last() => this[length - 1]; | |
4720 | |
4721 int removeLast() { | |
4722 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
4723 } | |
4724 | |
4725 // FIXME: implement these. | |
4726 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
4727 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
4728 } | |
4729 | |
4730 void removeRange(int start, int rangeLength) { | |
4731 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
4732 } | |
4733 | |
4734 void insertRange(int start, int rangeLength, [int initialValue]) { | |
4735 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
4736 } | |
4737 | |
4738 List<int> getRange(int start, int rangeLength) => | |
4739 _Lists.getRange(this, start, rangeLength, <int>[]); | |
4740 | |
4741 // -- end List<int> mixins. | |
4742 | |
4743 void setElements(Object array, [int offset]) native 'set'; | |
4744 | |
4745 _Int8ArrayJs subarray(int start, [int end]) native; | |
4746 } | |
4747 | |
4748 class _JavaScriptAudioNodeJs extends _AudioNodeJs implements JavaScriptAudioNode
native "*JavaScriptAudioNode" { | |
4749 | |
4750 final int bufferSize; | |
4751 | |
4752 // From EventTarget | |
4753 | |
4754 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
4755 | |
4756 bool dispatchEvent(_EventJs event) native; | |
4757 | |
4758 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
4759 } | |
4760 | |
4761 class _JavaScriptCallFrameJs extends _DOMTypeJs implements JavaScriptCallFrame n
ative "*JavaScriptCallFrame" { | |
4762 | |
4763 static const int CATCH_SCOPE = 4; | |
4764 | |
4765 static const int CLOSURE_SCOPE = 3; | |
4766 | |
4767 static const int GLOBAL_SCOPE = 0; | |
4768 | |
4769 static const int LOCAL_SCOPE = 1; | |
4770 | |
4771 static const int WITH_SCOPE = 2; | |
4772 | |
4773 final _JavaScriptCallFrameJs caller; | |
4774 | |
4775 final int column; | |
4776 | |
4777 final String functionName; | |
4778 | |
4779 final int line; | |
4780 | |
4781 final List scopeChain; | |
4782 | |
4783 final int sourceID; | |
4784 | |
4785 final Object thisObject; | |
4786 | |
4787 final String type; | |
4788 | |
4789 void evaluate(String script) native; | |
4790 | |
4791 Object restart() native; | |
4792 | |
4793 int scopeType(int scopeIndex) native; | |
4794 } | |
4795 | |
4796 class _KeyboardEventJs extends _UIEventJs implements KeyboardEvent native "*Keyb
oardEvent" { | |
4797 | |
4798 final bool altGraphKey; | |
4799 | |
4800 final bool altKey; | |
4801 | |
4802 final bool ctrlKey; | |
4803 | |
4804 final String keyIdentifier; | |
4805 | |
4806 final int keyLocation; | |
4807 | |
4808 final bool metaKey; | |
4809 | |
4810 final bool shiftKey; | |
4811 | |
4812 void initKeyboardEvent(String type, bool canBubble, bool cancelable, _DOMWindo
wJs view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool
shiftKey, bool metaKey, bool altGraphKey) native; | |
4813 } | |
4814 | |
4815 class _LocalMediaStreamJs extends _MediaStreamJs implements LocalMediaStream nat
ive "*LocalMediaStream" { | |
4816 | |
4817 void stop() native; | |
4818 | |
4819 // From EventTarget | |
4820 | |
4821 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
4822 | |
4823 bool dispatchEvent(_EventJs event) native; | |
4824 | |
4825 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
4826 } | |
4827 | |
4828 class _LocationJs extends _DOMTypeJs implements Location native "*Location" { | |
4829 | |
4830 final List<String> ancestorOrigins; | |
4831 | |
4832 String hash; | |
4833 | |
4834 String host; | |
4835 | |
4836 String hostname; | |
4837 | |
4838 String href; | |
4839 | |
4840 final String origin; | |
4841 | |
4842 String pathname; | |
4843 | |
4844 String port; | |
4845 | |
4846 String protocol; | |
4847 | |
4848 String search; | |
4849 | |
4850 void assign(String url) native; | |
4851 | |
4852 void reload() native; | |
4853 | |
4854 void replace(String url) native; | |
4855 | |
4856 String toString() native; | |
4857 } | |
4858 | |
4859 class _MediaControllerJs extends _EventTargetJs implements MediaController nativ
e "*MediaController" { | |
4860 | |
4861 final _TimeRangesJs buffered; | |
4862 | |
4863 num currentTime; | |
4864 | |
4865 num defaultPlaybackRate; | |
4866 | |
4867 final num duration; | |
4868 | |
4869 bool muted; | |
4870 | |
4871 final bool paused; | |
4872 | |
4873 num playbackRate; | |
4874 | |
4875 final _TimeRangesJs played; | |
4876 | |
4877 final _TimeRangesJs seekable; | |
4878 | |
4879 num volume; | |
4880 | |
4881 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
4882 | |
4883 bool dispatchEvent(_EventJs evt) native; | |
4884 | |
4885 void pause() native; | |
4886 | |
4887 void play() native; | |
4888 | |
4889 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
4890 } | |
4891 | |
4892 class _MediaElementAudioSourceNodeJs extends _AudioSourceNodeJs implements Media
ElementAudioSourceNode native "*MediaElementAudioSourceNode" { | |
4893 | |
4894 final _HTMLMediaElementJs mediaElement; | |
4895 } | |
4896 | |
4897 class _MediaErrorJs extends _DOMTypeJs implements MediaError native "*MediaError
" { | |
4898 | |
4899 static const int MEDIA_ERR_ABORTED = 1; | |
4900 | |
4901 static const int MEDIA_ERR_DECODE = 3; | |
4902 | |
4903 static const int MEDIA_ERR_ENCRYPTED = 5; | |
4904 | |
4905 static const int MEDIA_ERR_NETWORK = 2; | |
4906 | |
4907 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | |
4908 | |
4909 final int code; | |
4910 } | |
4911 | |
4912 class _MediaKeyErrorJs extends _DOMTypeJs implements MediaKeyError native "*Medi
aKeyError" { | |
4913 | |
4914 static const int MEDIA_KEYERR_CLIENT = 2; | |
4915 | |
4916 static const int MEDIA_KEYERR_DOMAIN = 6; | |
4917 | |
4918 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; | |
4919 | |
4920 static const int MEDIA_KEYERR_OUTPUT = 4; | |
4921 | |
4922 static const int MEDIA_KEYERR_SERVICE = 3; | |
4923 | |
4924 static const int MEDIA_KEYERR_UNKNOWN = 1; | |
4925 | |
4926 final int code; | |
4927 } | |
4928 | |
4929 class _MediaKeyEventJs extends _EventJs implements MediaKeyEvent native "*MediaK
eyEvent" { | |
4930 | |
4931 final String defaultURL; | |
4932 | |
4933 final _MediaKeyErrorJs errorCode; | |
4934 | |
4935 final _Uint8ArrayJs initData; | |
4936 | |
4937 final String keySystem; | |
4938 | |
4939 final _Uint8ArrayJs message; | |
4940 | |
4941 final String sessionId; | |
4942 | |
4943 final int systemCode; | |
4944 } | |
4945 | |
4946 class _MediaListJs extends _DOMTypeJs implements MediaList native "*MediaList" { | |
4947 | |
4948 final int length; | |
4949 | |
4950 String mediaText; | |
4951 | |
4952 String operator[](int index) native "return this[index];"; | |
4953 | |
4954 void operator[]=(int index, String value) { | |
4955 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
4956 } | |
4957 // -- start List<String> mixins. | |
4958 // String is the element type. | |
4959 | |
4960 // From Iterable<String>: | |
4961 | |
4962 Iterator<String> iterator() { | |
4963 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
4964 // be cached in both iterator _and_ forEach method. For now caching it | |
4965 // for consistency. | |
4966 return new _FixedSizeListIterator<String>(this); | |
4967 } | |
4968 | |
4969 // From Collection<String>: | |
4970 | |
4971 void add(String value) { | |
4972 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4973 } | |
4974 | |
4975 void addLast(String value) { | |
4976 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4977 } | |
4978 | |
4979 void addAll(Collection<String> collection) { | |
4980 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
4981 } | |
4982 | |
4983 void forEach(void f(String element)) => _Collections.forEach(this, f); | |
4984 | |
4985 Collection map(f(String element)) => _Collections.map(this, [], f); | |
4986 | |
4987 Collection<String> filter(bool f(String element)) => | |
4988 _Collections.filter(this, <String>[], f); | |
4989 | |
4990 bool every(bool f(String element)) => _Collections.every(this, f); | |
4991 | |
4992 bool some(bool f(String element)) => _Collections.some(this, f); | |
4993 | |
4994 bool isEmpty() => this.length == 0; | |
4995 | |
4996 // From List<String>: | |
4997 | |
4998 void sort(int compare(String a, String b)) { | |
4999 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
5000 } | |
5001 | |
5002 int indexOf(String element, [int start = 0]) => | |
5003 _Lists.indexOf(this, element, start, this.length); | |
5004 | |
5005 int lastIndexOf(String element, [int start]) { | |
5006 if (start === null) start = length - 1; | |
5007 return _Lists.lastIndexOf(this, element, start); | |
5008 } | |
5009 | |
5010 String last() => this[length - 1]; | |
5011 | |
5012 String removeLast() { | |
5013 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
5014 } | |
5015 | |
5016 // FIXME: implement these. | |
5017 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ | |
5018 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
5019 } | |
5020 | |
5021 void removeRange(int start, int rangeLength) { | |
5022 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
5023 } | |
5024 | |
5025 void insertRange(int start, int rangeLength, [String initialValue]) { | |
5026 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
5027 } | |
5028 | |
5029 List<String> getRange(int start, int rangeLength) => | |
5030 _Lists.getRange(this, start, rangeLength, <String>[]); | |
5031 | |
5032 // -- end List<String> mixins. | |
5033 | |
5034 void appendMedium(String newMedium) native; | |
5035 | |
5036 void deleteMedium(String oldMedium) native; | |
5037 | |
5038 String item(int index) native; | |
5039 } | |
5040 | |
5041 class _MediaQueryListJs extends _DOMTypeJs implements MediaQueryList native "*Me
diaQueryList" { | |
5042 | |
5043 final bool matches; | |
5044 | |
5045 final String media; | |
5046 | |
5047 void addListener(MediaQueryListListener listener) native; | |
5048 | |
5049 void removeListener(MediaQueryListListener listener) native; | |
5050 } | |
5051 | |
5052 class _MediaSourceJs extends _EventTargetJs implements MediaSource native "*Medi
aSource" { | |
5053 | |
5054 final _SourceBufferListJs activeSourceBuffers; | |
5055 | |
5056 final String readyState; | |
5057 | |
5058 final _SourceBufferListJs sourceBuffers; | |
5059 | |
5060 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
5061 | |
5062 _SourceBufferJs addSourceBuffer(String type) native; | |
5063 | |
5064 bool dispatchEvent(_EventJs event) native; | |
5065 | |
5066 void endOfStream(String error) native; | |
5067 | |
5068 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
5069 | |
5070 void removeSourceBuffer(_SourceBufferJs buffer) native; | |
5071 } | |
5072 | |
5073 class _MediaStreamJs extends _EventTargetJs implements MediaStream native "*Medi
aStream" { | |
5074 | |
5075 static const int ENDED = 2; | |
5076 | |
5077 static const int LIVE = 1; | |
5078 | |
5079 final _MediaStreamTrackListJs audioTracks; | |
5080 | |
5081 final String label; | |
5082 | |
5083 final int readyState; | |
5084 | |
5085 final _MediaStreamTrackListJs videoTracks; | |
5086 | |
5087 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
5088 | |
5089 bool dispatchEvent(_EventJs event) native; | |
5090 | |
5091 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
5092 } | |
5093 | |
5094 class _MediaStreamAudioSourceNodeJs extends _AudioSourceNodeJs implements MediaS
treamAudioSourceNode native "*MediaStreamAudioSourceNode" { | |
5095 | |
5096 final _MediaStreamJs mediaStream; | |
5097 } | |
5098 | |
5099 class _MediaStreamEventJs extends _EventJs implements MediaStreamEvent native "*
MediaStreamEvent" { | |
5100 | |
5101 final _MediaStreamJs stream; | |
5102 } | |
5103 | |
5104 class _MediaStreamListJs extends _DOMTypeJs implements MediaStreamList native "*
MediaStreamList" { | |
5105 | |
5106 final int length; | |
5107 | |
5108 _MediaStreamJs item(int index) native; | |
5109 } | |
5110 | |
5111 class _MediaStreamTrackJs extends _EventTargetJs implements MediaStreamTrack nat
ive "*MediaStreamTrack" { | |
5112 | |
5113 static const int ENDED = 2; | |
5114 | |
5115 static const int LIVE = 0; | |
5116 | |
5117 static const int MUTED = 1; | |
5118 | |
5119 bool enabled; | |
5120 | |
5121 final String kind; | |
5122 | |
5123 final String label; | |
5124 | |
5125 final int readyState; | |
5126 | |
5127 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
5128 | |
5129 bool dispatchEvent(_EventJs event) native; | |
5130 | |
5131 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
5132 } | |
5133 | |
5134 class _MediaStreamTrackEventJs extends _EventJs implements MediaStreamTrackEvent
native "*MediaStreamTrackEvent" { | |
5135 | |
5136 final _MediaStreamTrackJs track; | |
5137 } | |
5138 | |
5139 class _MediaStreamTrackListJs extends _EventTargetJs implements MediaStreamTrack
List native "*MediaStreamTrackList" { | |
5140 | |
5141 final int length; | |
5142 | |
5143 void add(_MediaStreamTrackJs track) native; | |
5144 | |
5145 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
5146 | |
5147 bool dispatchEvent(_EventJs event) native; | |
5148 | |
5149 _MediaStreamTrackJs item(int index) native; | |
5150 | |
5151 void remove(_MediaStreamTrackJs track) native; | |
5152 | |
5153 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
5154 } | |
5155 | |
5156 class _MemoryInfoJs extends _DOMTypeJs implements MemoryInfo native "*MemoryInfo
" { | |
5157 | |
5158 final int jsHeapSizeLimit; | |
5159 | |
5160 final int totalJSHeapSize; | |
5161 | |
5162 final int usedJSHeapSize; | |
5163 } | |
5164 | |
5165 class _MessageChannelJs extends _DOMTypeJs implements MessageChannel native "*Me
ssageChannel" { | |
5166 | |
5167 final _MessagePortJs port1; | |
5168 | |
5169 final _MessagePortJs port2; | |
5170 } | |
5171 | |
5172 class _MessageEventJs extends _EventJs implements MessageEvent native "*MessageE
vent" { | |
5173 | |
5174 final Object data; | |
5175 | |
5176 final String lastEventId; | |
5177 | |
5178 final String origin; | |
5179 | |
5180 final List ports; | |
5181 | |
5182 final _DOMWindowJs source; | |
5183 | |
5184 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, _DOMWindowJs sourceArg,
List messagePorts) native; | |
5185 | |
5186 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, _DOMWindowJs sourc
eArg, List transferables) native; | |
5187 } | |
5188 | |
5189 class _MessagePortJs extends _EventTargetJs implements MessagePort native "*Mess
agePort" { | |
5190 | |
5191 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
5192 | |
5193 void close() native; | |
5194 | |
5195 bool dispatchEvent(_EventJs evt) native; | |
5196 | |
5197 void postMessage(String message, [List messagePorts]) native; | |
5198 | |
5199 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
5200 | |
5201 void start() native; | |
5202 | |
5203 void webkitPostMessage(String message, [List transfer]) native; | |
5204 } | |
5205 | |
5206 class _MetadataJs extends _DOMTypeJs implements Metadata native "*Metadata" { | |
5207 | |
5208 final Date modificationTime; | |
5209 | |
5210 final int size; | |
5211 } | |
5212 | |
5213 class _MouseEventJs extends _UIEventJs implements MouseEvent native "*MouseEvent
" { | |
5214 | |
5215 final bool altKey; | |
5216 | |
5217 final int button; | |
5218 | |
5219 final int clientX; | |
5220 | |
5221 final int clientY; | |
5222 | |
5223 final bool ctrlKey; | |
5224 | |
5225 final _ClipboardJs dataTransfer; | |
5226 | |
5227 final _NodeJs fromElement; | |
5228 | |
5229 final bool metaKey; | |
5230 | |
5231 final int offsetX; | |
5232 | |
5233 final int offsetY; | |
5234 | |
5235 final _EventTargetJs relatedTarget; | |
5236 | |
5237 final int screenX; | |
5238 | |
5239 final int screenY; | |
5240 | |
5241 final bool shiftKey; | |
5242 | |
5243 final _NodeJs toElement; | |
5244 | |
5245 final int webkitMovementX; | |
5246 | |
5247 final int webkitMovementY; | |
5248 | |
5249 final int x; | |
5250 | |
5251 final int y; | |
5252 | |
5253 void initMouseEvent(String type, bool canBubble, bool cancelable, _DOMWindowJs
view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrl
Key, bool altKey, bool shiftKey, bool metaKey, int button, _EventTargetJs relate
dTarget) native; | |
5254 } | |
5255 | |
5256 class _MutationEventJs extends _EventJs implements MutationEvent native "*Mutati
onEvent" { | |
5257 | |
5258 static const int ADDITION = 2; | |
5259 | |
5260 static const int MODIFICATION = 1; | |
5261 | |
5262 static const int REMOVAL = 3; | |
5263 | |
5264 final int attrChange; | |
5265 | |
5266 final String attrName; | |
5267 | |
5268 final String newValue; | |
5269 | |
5270 final String prevValue; | |
5271 | |
5272 final _NodeJs relatedNode; | |
5273 | |
5274 void initMutationEvent(String type, bool canBubble, bool cancelable, _NodeJs r
elatedNode, String prevValue, String newValue, String attrName, int attrChange)
native; | |
5275 } | |
5276 | |
5277 class _MutationObserverJs extends _DOMTypeJs implements MutationObserver native
"*MutationObserver" { | |
5278 | |
5279 void disconnect() native; | |
5280 | |
5281 void _observe(_NodeJs target, Map options) native 'observe'; | |
5282 | |
5283 List<MutationRecord> takeRecords() native; | |
5284 } | |
5285 | |
5286 class _MutationRecordJs extends _DOMTypeJs implements MutationRecord native "*Mu
tationRecord" { | |
5287 | |
5288 final _NodeListJs addedNodes; | |
5289 | |
5290 final String attributeName; | |
5291 | |
5292 final String attributeNamespace; | |
5293 | |
5294 final _NodeJs nextSibling; | |
5295 | |
5296 final String oldValue; | |
5297 | |
5298 final _NodeJs previousSibling; | |
5299 | |
5300 final _NodeListJs removedNodes; | |
5301 | |
5302 final _NodeJs target; | |
5303 | |
5304 final String type; | |
5305 } | |
5306 | |
5307 class _NamedNodeMapJs extends _DOMTypeJs implements NamedNodeMap native "*NamedN
odeMap" { | |
5308 | |
5309 final int length; | |
5310 | |
5311 _NodeJs operator[](int index) native "return this[index];"; | |
5312 | |
5313 void operator[]=(int index, _NodeJs value) { | |
5314 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
5315 } | |
5316 // -- start List<Node> mixins. | |
5317 // Node is the element type. | |
5318 | |
5319 // From Iterable<Node>: | |
5320 | |
5321 Iterator<Node> iterator() { | |
5322 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
5323 // be cached in both iterator _and_ forEach method. For now caching it | |
5324 // for consistency. | |
5325 return new _FixedSizeListIterator<Node>(this); | |
5326 } | |
5327 | |
5328 // From Collection<Node>: | |
5329 | |
5330 void add(Node value) { | |
5331 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
5332 } | |
5333 | |
5334 void addLast(Node value) { | |
5335 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
5336 } | |
5337 | |
5338 void addAll(Collection<Node> collection) { | |
5339 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
5340 } | |
5341 | |
5342 void forEach(void f(Node element)) => _Collections.forEach(this, f); | |
5343 | |
5344 Collection map(f(Node element)) => _Collections.map(this, [], f); | |
5345 | |
5346 Collection<Node> filter(bool f(Node element)) => | |
5347 _Collections.filter(this, <Node>[], f); | |
5348 | |
5349 bool every(bool f(Node element)) => _Collections.every(this, f); | |
5350 | |
5351 bool some(bool f(Node element)) => _Collections.some(this, f); | |
5352 | |
5353 bool isEmpty() => this.length == 0; | |
5354 | |
5355 // From List<Node>: | |
5356 | |
5357 void sort(int compare(Node a, Node b)) { | |
5358 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
5359 } | |
5360 | |
5361 int indexOf(Node element, [int start = 0]) => | |
5362 _Lists.indexOf(this, element, start, this.length); | |
5363 | |
5364 int lastIndexOf(Node element, [int start]) { | |
5365 if (start === null) start = length - 1; | |
5366 return _Lists.lastIndexOf(this, element, start); | |
5367 } | |
5368 | |
5369 Node last() => this[length - 1]; | |
5370 | |
5371 Node removeLast() { | |
5372 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
5373 } | |
5374 | |
5375 // FIXME: implement these. | |
5376 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | |
5377 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
5378 } | |
5379 | |
5380 void removeRange(int start, int rangeLength) { | |
5381 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
5382 } | |
5383 | |
5384 void insertRange(int start, int rangeLength, [Node initialValue]) { | |
5385 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
5386 } | |
5387 | |
5388 List<Node> getRange(int start, int rangeLength) => | |
5389 _Lists.getRange(this, start, rangeLength, <Node>[]); | |
5390 | |
5391 // -- end List<Node> mixins. | |
5392 | |
5393 _NodeJs getNamedItem(String name) native; | |
5394 | |
5395 _NodeJs getNamedItemNS(String namespaceURI, String localName) native; | |
5396 | |
5397 _NodeJs item(int index) native; | |
5398 | |
5399 _NodeJs removeNamedItem(String name) native; | |
5400 | |
5401 _NodeJs removeNamedItemNS(String namespaceURI, String localName) native; | |
5402 | |
5403 _NodeJs setNamedItem(_NodeJs node) native; | |
5404 | |
5405 _NodeJs setNamedItemNS(_NodeJs node) native; | |
5406 } | |
5407 | |
5408 class _NavigatorJs extends _DOMTypeJs implements Navigator native "*Navigator" { | |
5409 | |
5410 final String appCodeName; | |
5411 | |
5412 final String appName; | |
5413 | |
5414 final String appVersion; | |
5415 | |
5416 final bool cookieEnabled; | |
5417 | |
5418 final _GeolocationJs geolocation; | |
5419 | |
5420 final String language; | |
5421 | |
5422 final _DOMMimeTypeArrayJs mimeTypes; | |
5423 | |
5424 final bool onLine; | |
5425 | |
5426 final String platform; | |
5427 | |
5428 final _DOMPluginArrayJs plugins; | |
5429 | |
5430 final String product; | |
5431 | |
5432 final String productSub; | |
5433 | |
5434 final String userAgent; | |
5435 | |
5436 final String vendor; | |
5437 | |
5438 final String vendorSub; | |
5439 | |
5440 final _BatteryManagerJs webkitBattery; | |
5441 | |
5442 void getStorageUpdates() native; | |
5443 | |
5444 bool javaEnabled() native; | |
5445 | |
5446 _GamepadListJs webkitGetGamepads() native; | |
5447 | |
5448 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) native; | |
5449 } | |
5450 | |
5451 class _NavigatorUserMediaErrorJs extends _DOMTypeJs implements NavigatorUserMedi
aError native "*NavigatorUserMediaError" { | |
5452 | |
5453 static const int PERMISSION_DENIED = 1; | |
5454 | |
5455 final int code; | |
5456 } | |
5457 | |
5458 class _NodeJs extends _EventTargetJs implements Node native "*Node" { | |
5459 | |
5460 static const int ATTRIBUTE_NODE = 2; | |
5461 | |
5462 static const int CDATA_SECTION_NODE = 4; | |
5463 | |
5464 static const int COMMENT_NODE = 8; | |
5465 | |
5466 static const int DOCUMENT_FRAGMENT_NODE = 11; | |
5467 | |
5468 static const int DOCUMENT_NODE = 9; | |
5469 | |
5470 static const int DOCUMENT_POSITION_CONTAINED_BY = 0x10; | |
5471 | |
5472 static const int DOCUMENT_POSITION_CONTAINS = 0x08; | |
5473 | |
5474 static const int DOCUMENT_POSITION_DISCONNECTED = 0x01; | |
5475 | |
5476 static const int DOCUMENT_POSITION_FOLLOWING = 0x04; | |
5477 | |
5478 static const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | |
5479 | |
5480 static const int DOCUMENT_POSITION_PRECEDING = 0x02; | |
5481 | |
5482 static const int DOCUMENT_TYPE_NODE = 10; | |
5483 | |
5484 static const int ELEMENT_NODE = 1; | |
5485 | |
5486 static const int ENTITY_NODE = 6; | |
5487 | |
5488 static const int ENTITY_REFERENCE_NODE = 5; | |
5489 | |
5490 static const int NOTATION_NODE = 12; | |
5491 | |
5492 static const int PROCESSING_INSTRUCTION_NODE = 7; | |
5493 | |
5494 static const int TEXT_NODE = 3; | |
5495 | |
5496 final _NamedNodeMapJs attributes; | |
5497 | |
5498 final String baseURI; | |
5499 | |
5500 final _NodeListJs childNodes; | |
5501 | |
5502 final _NodeJs firstChild; | |
5503 | |
5504 final _NodeJs lastChild; | |
5505 | |
5506 final String localName; | |
5507 | |
5508 final String namespaceURI; | |
5509 | |
5510 final _NodeJs nextSibling; | |
5511 | |
5512 final String nodeName; | |
5513 | |
5514 final int nodeType; | |
5515 | |
5516 String nodeValue; | |
5517 | |
5518 final _DocumentJs ownerDocument; | |
5519 | |
5520 final _ElementJs parentElement; | |
5521 | |
5522 final _NodeJs parentNode; | |
5523 | |
5524 String prefix; | |
5525 | |
5526 final _NodeJs previousSibling; | |
5527 | |
5528 String textContent; | |
5529 | |
5530 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
5531 | |
5532 _NodeJs appendChild(_NodeJs newChild) native; | |
5533 | |
5534 _NodeJs cloneNode(bool deep) native; | |
5535 | |
5536 int compareDocumentPosition(_NodeJs other) native; | |
5537 | |
5538 bool contains(_NodeJs other) native; | |
5539 | |
5540 bool dispatchEvent(_EventJs event) native; | |
5541 | |
5542 bool hasAttributes() native; | |
5543 | |
5544 bool hasChildNodes() native; | |
5545 | |
5546 _NodeJs insertBefore(_NodeJs newChild, _NodeJs refChild) native; | |
5547 | |
5548 bool isDefaultNamespace(String namespaceURI) native; | |
5549 | |
5550 bool isEqualNode(_NodeJs other) native; | |
5551 | |
5552 bool isSameNode(_NodeJs other) native; | |
5553 | |
5554 bool isSupported(String feature, String version) native; | |
5555 | |
5556 String lookupNamespaceURI(String prefix) native; | |
5557 | |
5558 String lookupPrefix(String namespaceURI) native; | |
5559 | |
5560 void normalize() native; | |
5561 | |
5562 _NodeJs removeChild(_NodeJs oldChild) native; | |
5563 | |
5564 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
5565 | |
5566 _NodeJs replaceChild(_NodeJs newChild, _NodeJs oldChild) native; | |
5567 } | |
5568 | |
5569 class _NodeFilterJs extends _DOMTypeJs implements NodeFilter native "*NodeFilter
" { | |
5570 | |
5571 static const int FILTER_ACCEPT = 1; | |
5572 | |
5573 static const int FILTER_REJECT = 2; | |
5574 | |
5575 static const int FILTER_SKIP = 3; | |
5576 | |
5577 static const int SHOW_ALL = 0xFFFFFFFF; | |
5578 | |
5579 static const int SHOW_ATTRIBUTE = 0x00000002; | |
5580 | |
5581 static const int SHOW_CDATA_SECTION = 0x00000008; | |
5582 | |
5583 static const int SHOW_COMMENT = 0x00000080; | |
5584 | |
5585 static const int SHOW_DOCUMENT = 0x00000100; | |
5586 | |
5587 static const int SHOW_DOCUMENT_FRAGMENT = 0x00000400; | |
5588 | |
5589 static const int SHOW_DOCUMENT_TYPE = 0x00000200; | |
5590 | |
5591 static const int SHOW_ELEMENT = 0x00000001; | |
5592 | |
5593 static const int SHOW_ENTITY = 0x00000020; | |
5594 | |
5595 static const int SHOW_ENTITY_REFERENCE = 0x00000010; | |
5596 | |
5597 static const int SHOW_NOTATION = 0x00000800; | |
5598 | |
5599 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | |
5600 | |
5601 static const int SHOW_TEXT = 0x00000004; | |
5602 | |
5603 int acceptNode(_NodeJs n) native; | |
5604 } | |
5605 | |
5606 class _NodeIteratorJs extends _DOMTypeJs implements NodeIterator native "*NodeIt
erator" { | |
5607 | |
5608 final bool expandEntityReferences; | |
5609 | |
5610 final _NodeFilterJs filter; | |
5611 | |
5612 final bool pointerBeforeReferenceNode; | |
5613 | |
5614 final _NodeJs referenceNode; | |
5615 | |
5616 final _NodeJs root; | |
5617 | |
5618 final int whatToShow; | |
5619 | |
5620 void detach() native; | |
5621 | |
5622 _NodeJs nextNode() native; | |
5623 | |
5624 _NodeJs previousNode() native; | |
5625 } | |
5626 | |
5627 class _NodeListJs extends _DOMTypeJs implements NodeList native "*NodeList" { | |
5628 | |
5629 final int length; | |
5630 | |
5631 _NodeJs operator[](int index) native "return this[index];"; | |
5632 | |
5633 void operator[]=(int index, _NodeJs value) { | |
5634 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
5635 } | |
5636 // -- start List<Node> mixins. | |
5637 // Node is the element type. | |
5638 | |
5639 // From Iterable<Node>: | |
5640 | |
5641 Iterator<Node> iterator() { | |
5642 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
5643 // be cached in both iterator _and_ forEach method. For now caching it | |
5644 // for consistency. | |
5645 return new _FixedSizeListIterator<Node>(this); | |
5646 } | |
5647 | |
5648 // From Collection<Node>: | |
5649 | |
5650 void add(Node value) { | |
5651 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
5652 } | |
5653 | |
5654 void addLast(Node value) { | |
5655 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
5656 } | |
5657 | |
5658 void addAll(Collection<Node> collection) { | |
5659 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
5660 } | |
5661 | |
5662 void forEach(void f(Node element)) => _Collections.forEach(this, f); | |
5663 | |
5664 Collection map(f(Node element)) => _Collections.map(this, [], f); | |
5665 | |
5666 Collection<Node> filter(bool f(Node element)) => | |
5667 _Collections.filter(this, <Node>[], f); | |
5668 | |
5669 bool every(bool f(Node element)) => _Collections.every(this, f); | |
5670 | |
5671 bool some(bool f(Node element)) => _Collections.some(this, f); | |
5672 | |
5673 bool isEmpty() => this.length == 0; | |
5674 | |
5675 // From List<Node>: | |
5676 | |
5677 void sort(int compare(Node a, Node b)) { | |
5678 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
5679 } | |
5680 | |
5681 int indexOf(Node element, [int start = 0]) => | |
5682 _Lists.indexOf(this, element, start, this.length); | |
5683 | |
5684 int lastIndexOf(Node element, [int start]) { | |
5685 if (start === null) start = length - 1; | |
5686 return _Lists.lastIndexOf(this, element, start); | |
5687 } | |
5688 | |
5689 Node last() => this[length - 1]; | |
5690 | |
5691 Node removeLast() { | |
5692 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
5693 } | |
5694 | |
5695 // FIXME: implement these. | |
5696 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | |
5697 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
5698 } | |
5699 | |
5700 void removeRange(int start, int rangeLength) { | |
5701 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
5702 } | |
5703 | |
5704 void insertRange(int start, int rangeLength, [Node initialValue]) { | |
5705 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
5706 } | |
5707 | |
5708 List<Node> getRange(int start, int rangeLength) => | |
5709 _Lists.getRange(this, start, rangeLength, <Node>[]); | |
5710 | |
5711 // -- end List<Node> mixins. | |
5712 | |
5713 _NodeJs item(int index) native; | |
5714 } | |
5715 | |
5716 class _NotationJs extends _NodeJs implements Notation native "*Notation" { | |
5717 | |
5718 final String publicId; | |
5719 | |
5720 final String systemId; | |
5721 } | |
5722 | |
5723 class _NotificationJs extends _EventTargetJs implements Notification native "*No
tification" { | |
5724 | |
5725 String dir; | |
5726 | |
5727 final String permission; | |
5728 | |
5729 String replaceId; | |
5730 | |
5731 String tag; | |
5732 | |
5733 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
5734 | |
5735 void cancel() native; | |
5736 | |
5737 void close() native; | |
5738 | |
5739 bool dispatchEvent(_EventJs evt) native; | |
5740 | |
5741 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
5742 | |
5743 void show() native; | |
5744 } | |
5745 | |
5746 class _NotificationCenterJs extends _DOMTypeJs implements NotificationCenter nat
ive "*NotificationCenter" { | |
5747 | |
5748 int checkPermission() native; | |
5749 | |
5750 _NotificationJs createHTMLNotification(String url) native; | |
5751 | |
5752 _NotificationJs createNotification(String iconUrl, String title, String body)
native; | |
5753 | |
5754 void requestPermission(VoidCallback callback) native; | |
5755 } | |
5756 | |
5757 class _OESStandardDerivativesJs extends _DOMTypeJs implements OESStandardDerivat
ives native "*OESStandardDerivatives" { | |
5758 | |
5759 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | |
5760 } | |
5761 | |
5762 class _OESTextureFloatJs extends _DOMTypeJs implements OESTextureFloat native "*
OESTextureFloat" { | |
5763 } | |
5764 | |
5765 class _OESVertexArrayObjectJs extends _DOMTypeJs implements OESVertexArrayObject
native "*OESVertexArrayObject" { | |
5766 | |
5767 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; | |
5768 | |
5769 void bindVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | |
5770 | |
5771 _WebGLVertexArrayObjectOESJs createVertexArrayOES() native; | |
5772 | |
5773 void deleteVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | |
5774 | |
5775 bool isVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | |
5776 } | |
5777 | |
5778 class _OfflineAudioCompletionEventJs extends _EventJs implements OfflineAudioCom
pletionEvent native "*OfflineAudioCompletionEvent" { | |
5779 | |
5780 final _AudioBufferJs renderedBuffer; | |
5781 } | |
5782 | |
5783 class _OscillatorJs extends _AudioSourceNodeJs implements Oscillator native "*Os
cillator" { | |
5784 | |
5785 static const int CUSTOM = 4; | |
5786 | |
5787 static const int FINISHED_STATE = 3; | |
5788 | |
5789 static const int PLAYING_STATE = 2; | |
5790 | |
5791 static const int SAWTOOTH = 2; | |
5792 | |
5793 static const int SCHEDULED_STATE = 1; | |
5794 | |
5795 static const int SINE = 0; | |
5796 | |
5797 static const int SQUARE = 1; | |
5798 | |
5799 static const int TRIANGLE = 3; | |
5800 | |
5801 static const int UNSCHEDULED_STATE = 0; | |
5802 | |
5803 final _AudioParamJs detune; | |
5804 | |
5805 final _AudioParamJs frequency; | |
5806 | |
5807 final int playbackState; | |
5808 | |
5809 int type; | |
5810 | |
5811 void noteOff(num when) native; | |
5812 | |
5813 void noteOn(num when) native; | |
5814 | |
5815 void setWaveTable(_WaveTableJs waveTable) native; | |
5816 } | |
5817 | |
5818 class _OverflowEventJs extends _EventJs implements OverflowEvent native "*Overfl
owEvent" { | |
5819 | |
5820 static const int BOTH = 2; | |
5821 | |
5822 static const int HORIZONTAL = 0; | |
5823 | |
5824 static const int VERTICAL = 1; | |
5825 | |
5826 final bool horizontalOverflow; | |
5827 | |
5828 final int orient; | |
5829 | |
5830 final bool verticalOverflow; | |
5831 } | |
5832 | |
5833 class _PagePopupControllerJs extends _DOMTypeJs implements PagePopupController n
ative "*PagePopupController" { | |
5834 | |
5835 String localizeNumberString(String numberString) native; | |
5836 | |
5837 void setValueAndClosePopup(int numberValue, String stringValue) native; | |
5838 } | |
5839 | |
5840 class _PageTransitionEventJs extends _EventJs implements PageTransitionEvent nat
ive "*PageTransitionEvent" { | |
5841 | |
5842 final bool persisted; | |
5843 } | |
5844 | |
5845 class _PeerConnection00Js extends _EventTargetJs implements PeerConnection00 nat
ive "*PeerConnection00" { | |
5846 | |
5847 static const int ACTIVE = 2; | |
5848 | |
5849 static const int CLOSED = 3; | |
5850 | |
5851 static const int ICE_CHECKING = 0x300; | |
5852 | |
5853 static const int ICE_CLOSED = 0x700; | |
5854 | |
5855 static const int ICE_COMPLETED = 0x500; | |
5856 | |
5857 static const int ICE_CONNECTED = 0x400; | |
5858 | |
5859 static const int ICE_FAILED = 0x600; | |
5860 | |
5861 static const int ICE_GATHERING = 0x100; | |
5862 | |
5863 static const int ICE_WAITING = 0x200; | |
5864 | |
5865 static const int NEW = 0; | |
5866 | |
5867 static const int OPENING = 1; | |
5868 | |
5869 static const int SDP_ANSWER = 0x300; | |
5870 | |
5871 static const int SDP_OFFER = 0x100; | |
5872 | |
5873 static const int SDP_PRANSWER = 0x200; | |
5874 | |
5875 final int iceState; | |
5876 | |
5877 final _SessionDescriptionJs localDescription; | |
5878 | |
5879 final _MediaStreamListJs localStreams; | |
5880 | |
5881 final int readyState; | |
5882 | |
5883 final _SessionDescriptionJs remoteDescription; | |
5884 | |
5885 final _MediaStreamListJs remoteStreams; | |
5886 | |
5887 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
5888 | |
5889 void addStream(_MediaStreamJs stream, [Map mediaStreamHints]) native; | |
5890 | |
5891 void close() native; | |
5892 | |
5893 _SessionDescriptionJs createAnswer(String offer, [Map mediaHints]) native; | |
5894 | |
5895 _SessionDescriptionJs createOffer([Map mediaHints]) native; | |
5896 | |
5897 bool dispatchEvent(_EventJs event) native; | |
5898 | |
5899 void processIceMessage(_IceCandidateJs candidate) native; | |
5900 | |
5901 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
5902 | |
5903 void removeStream(_MediaStreamJs stream) native; | |
5904 | |
5905 void setLocalDescription(int action, _SessionDescriptionJs desc) native; | |
5906 | |
5907 void setRemoteDescription(int action, _SessionDescriptionJs desc) native; | |
5908 | |
5909 void startIce([Map iceOptions]) native; | |
5910 } | |
5911 | |
5912 class _PerformanceJs extends _EventTargetJs implements Performance native "*Perf
ormance" { | |
5913 | |
5914 final _MemoryInfoJs memory; | |
5915 | |
5916 final _PerformanceNavigationJs navigation; | |
5917 | |
5918 final _PerformanceTimingJs timing; | |
5919 | |
5920 num webkitNow() native; | |
5921 } | |
5922 | |
5923 class _PerformanceNavigationJs extends _DOMTypeJs implements PerformanceNavigati
on native "*PerformanceNavigation" { | |
5924 | |
5925 static const int TYPE_BACK_FORWARD = 2; | |
5926 | |
5927 static const int TYPE_NAVIGATE = 0; | |
5928 | |
5929 static const int TYPE_RELOAD = 1; | |
5930 | |
5931 static const int TYPE_RESERVED = 255; | |
5932 | |
5933 final int redirectCount; | |
5934 | |
5935 final int type; | |
5936 } | |
5937 | |
5938 class _PerformanceTimingJs extends _DOMTypeJs implements PerformanceTiming nativ
e "*PerformanceTiming" { | |
5939 | |
5940 final int connectEnd; | |
5941 | |
5942 final int connectStart; | |
5943 | |
5944 final int domComplete; | |
5945 | |
5946 final int domContentLoadedEventEnd; | |
5947 | |
5948 final int domContentLoadedEventStart; | |
5949 | |
5950 final int domInteractive; | |
5951 | |
5952 final int domLoading; | |
5953 | |
5954 final int domainLookupEnd; | |
5955 | |
5956 final int domainLookupStart; | |
5957 | |
5958 final int fetchStart; | |
5959 | |
5960 final int loadEventEnd; | |
5961 | |
5962 final int loadEventStart; | |
5963 | |
5964 final int navigationStart; | |
5965 | |
5966 final int redirectEnd; | |
5967 | |
5968 final int redirectStart; | |
5969 | |
5970 final int requestStart; | |
5971 | |
5972 final int responseEnd; | |
5973 | |
5974 final int responseStart; | |
5975 | |
5976 final int secureConnectionStart; | |
5977 | |
5978 final int unloadEventEnd; | |
5979 | |
5980 final int unloadEventStart; | |
5981 } | |
5982 | |
5983 class _PopStateEventJs extends _EventJs implements PopStateEvent native "*PopSta
teEvent" { | |
5984 | |
5985 final Object state; | |
5986 } | |
5987 | |
5988 class _PositionErrorJs extends _DOMTypeJs implements PositionError native "*Posi
tionError" { | |
5989 | |
5990 static const int PERMISSION_DENIED = 1; | |
5991 | |
5992 static const int POSITION_UNAVAILABLE = 2; | |
5993 | |
5994 static const int TIMEOUT = 3; | |
5995 | |
5996 final int code; | |
5997 | |
5998 final String message; | |
5999 } | |
6000 | |
6001 class _ProcessingInstructionJs extends _NodeJs implements ProcessingInstruction
native "*ProcessingInstruction" { | |
6002 | |
6003 String data; | |
6004 | |
6005 final _StyleSheetJs sheet; | |
6006 | |
6007 final String target; | |
6008 } | |
6009 | |
6010 class _ProgressEventJs extends _EventJs implements ProgressEvent native "*Progre
ssEvent" { | |
6011 | |
6012 final bool lengthComputable; | |
6013 | |
6014 final int loaded; | |
6015 | |
6016 final int total; | |
6017 } | |
6018 | |
6019 class _RGBColorJs extends _DOMTypeJs implements RGBColor native "*RGBColor" { | |
6020 | |
6021 final _CSSPrimitiveValueJs blue; | |
6022 | |
6023 final _CSSPrimitiveValueJs green; | |
6024 | |
6025 final _CSSPrimitiveValueJs red; | |
6026 } | |
6027 | |
6028 class _RTCPeerConnectionJs extends _EventTargetJs implements RTCPeerConnection n
ative "*RTCPeerConnection" { | |
6029 | |
6030 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
6031 | |
6032 bool dispatchEvent(_EventJs event) native; | |
6033 | |
6034 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
6035 } | |
6036 | |
6037 class _RadioNodeListJs extends _NodeListJs implements RadioNodeList native "*Rad
ioNodeList" { | |
6038 | |
6039 String value; | |
6040 } | |
6041 | |
6042 class _RangeJs extends _DOMTypeJs implements Range native "*Range" { | |
6043 | |
6044 static const int END_TO_END = 2; | |
6045 | |
6046 static const int END_TO_START = 3; | |
6047 | |
6048 static const int NODE_AFTER = 1; | |
6049 | |
6050 static const int NODE_BEFORE = 0; | |
6051 | |
6052 static const int NODE_BEFORE_AND_AFTER = 2; | |
6053 | |
6054 static const int NODE_INSIDE = 3; | |
6055 | |
6056 static const int START_TO_END = 1; | |
6057 | |
6058 static const int START_TO_START = 0; | |
6059 | |
6060 final bool collapsed; | |
6061 | |
6062 final _NodeJs commonAncestorContainer; | |
6063 | |
6064 final _NodeJs endContainer; | |
6065 | |
6066 final int endOffset; | |
6067 | |
6068 final _NodeJs startContainer; | |
6069 | |
6070 final int startOffset; | |
6071 | |
6072 _DocumentFragmentJs cloneContents() native; | |
6073 | |
6074 _RangeJs cloneRange() native; | |
6075 | |
6076 void collapse(bool toStart) native; | |
6077 | |
6078 int compareNode(_NodeJs refNode) native; | |
6079 | |
6080 int comparePoint(_NodeJs refNode, int offset) native; | |
6081 | |
6082 _DocumentFragmentJs createContextualFragment(String html) native; | |
6083 | |
6084 void deleteContents() native; | |
6085 | |
6086 void detach() native; | |
6087 | |
6088 void expand(String unit) native; | |
6089 | |
6090 _DocumentFragmentJs extractContents() native; | |
6091 | |
6092 _ClientRectJs getBoundingClientRect() native; | |
6093 | |
6094 _ClientRectListJs getClientRects() native; | |
6095 | |
6096 void insertNode(_NodeJs newNode) native; | |
6097 | |
6098 bool intersectsNode(_NodeJs refNode) native; | |
6099 | |
6100 bool isPointInRange(_NodeJs refNode, int offset) native; | |
6101 | |
6102 void selectNode(_NodeJs refNode) native; | |
6103 | |
6104 void selectNodeContents(_NodeJs refNode) native; | |
6105 | |
6106 void setEnd(_NodeJs refNode, int offset) native; | |
6107 | |
6108 void setEndAfter(_NodeJs refNode) native; | |
6109 | |
6110 void setEndBefore(_NodeJs refNode) native; | |
6111 | |
6112 void setStart(_NodeJs refNode, int offset) native; | |
6113 | |
6114 void setStartAfter(_NodeJs refNode) native; | |
6115 | |
6116 void setStartBefore(_NodeJs refNode) native; | |
6117 | |
6118 void surroundContents(_NodeJs newParent) native; | |
6119 | |
6120 String toString() native; | |
6121 } | |
6122 | |
6123 class _RangeExceptionJs extends _DOMTypeJs implements RangeException native "*Ra
ngeException" { | |
6124 | |
6125 static const int BAD_BOUNDARYPOINTS_ERR = 1; | |
6126 | |
6127 static const int INVALID_NODE_TYPE_ERR = 2; | |
6128 | |
6129 final int code; | |
6130 | |
6131 final String message; | |
6132 | |
6133 final String name; | |
6134 | |
6135 String toString() native; | |
6136 } | |
6137 | |
6138 class _RealtimeAnalyserNodeJs extends _AudioNodeJs implements RealtimeAnalyserNo
de native "*RealtimeAnalyserNode" { | |
6139 | |
6140 int fftSize; | |
6141 | |
6142 final int frequencyBinCount; | |
6143 | |
6144 num maxDecibels; | |
6145 | |
6146 num minDecibels; | |
6147 | |
6148 num smoothingTimeConstant; | |
6149 | |
6150 void getByteFrequencyData(_Uint8ArrayJs array) native; | |
6151 | |
6152 void getByteTimeDomainData(_Uint8ArrayJs array) native; | |
6153 | |
6154 void getFloatFrequencyData(_Float32ArrayJs array) native; | |
6155 } | |
6156 | |
6157 class _RectJs extends _DOMTypeJs implements Rect native "*Rect" { | |
6158 | |
6159 final _CSSPrimitiveValueJs bottom; | |
6160 | |
6161 final _CSSPrimitiveValueJs left; | |
6162 | |
6163 final _CSSPrimitiveValueJs right; | |
6164 | |
6165 final _CSSPrimitiveValueJs top; | |
6166 } | |
6167 | |
6168 class _SQLErrorJs extends _DOMTypeJs implements SQLError native "*SQLError" { | |
6169 | |
6170 static const int CONSTRAINT_ERR = 6; | |
6171 | |
6172 static const int DATABASE_ERR = 1; | |
6173 | |
6174 static const int QUOTA_ERR = 4; | |
6175 | |
6176 static const int SYNTAX_ERR = 5; | |
6177 | |
6178 static const int TIMEOUT_ERR = 7; | |
6179 | |
6180 static const int TOO_LARGE_ERR = 3; | |
6181 | |
6182 static const int UNKNOWN_ERR = 0; | |
6183 | |
6184 static const int VERSION_ERR = 2; | |
6185 | |
6186 final int code; | |
6187 | |
6188 final String message; | |
6189 } | |
6190 | |
6191 class _SQLExceptionJs extends _DOMTypeJs implements SQLException native "*SQLExc
eption" { | |
6192 | |
6193 static const int CONSTRAINT_ERR = 6; | |
6194 | |
6195 static const int DATABASE_ERR = 1; | |
6196 | |
6197 static const int QUOTA_ERR = 4; | |
6198 | |
6199 static const int SYNTAX_ERR = 5; | |
6200 | |
6201 static const int TIMEOUT_ERR = 7; | |
6202 | |
6203 static const int TOO_LARGE_ERR = 3; | |
6204 | |
6205 static const int UNKNOWN_ERR = 0; | |
6206 | |
6207 static const int VERSION_ERR = 2; | |
6208 | |
6209 final int code; | |
6210 | |
6211 final String message; | |
6212 } | |
6213 | |
6214 class _SQLResultSetJs extends _DOMTypeJs implements SQLResultSet native "*SQLRes
ultSet" { | |
6215 | |
6216 final int insertId; | |
6217 | |
6218 final _SQLResultSetRowListJs rows; | |
6219 | |
6220 final int rowsAffected; | |
6221 } | |
6222 | |
6223 class _SQLResultSetRowListJs extends _DOMTypeJs implements SQLResultSetRowList n
ative "*SQLResultSetRowList" { | |
6224 | |
6225 final int length; | |
6226 | |
6227 Map item(int index) native; | |
6228 } | |
6229 | |
6230 class _SQLTransactionJs extends _DOMTypeJs implements SQLTransaction native "*SQ
LTransaction" { | |
6231 | |
6232 void executeSql(String sqlStatement, List arguments, [SQLStatementCallback cal
lback, SQLStatementErrorCallback errorCallback]) native; | |
6233 } | |
6234 | |
6235 class _SQLTransactionSyncJs extends _DOMTypeJs implements SQLTransactionSync nat
ive "*SQLTransactionSync" { | |
6236 | |
6237 _SQLResultSetJs executeSql(String sqlStatement, List arguments) native; | |
6238 } | |
6239 | |
6240 class _SVGAElementJs extends _SVGElementJs implements SVGAElement native "*SVGAE
lement" { | |
6241 | |
6242 final _SVGAnimatedStringJs target; | |
6243 | |
6244 // From SVGURIReference | |
6245 | |
6246 final _SVGAnimatedStringJs href; | |
6247 | |
6248 // From SVGTests | |
6249 | |
6250 final _SVGStringListJs requiredExtensions; | |
6251 | |
6252 final _SVGStringListJs requiredFeatures; | |
6253 | |
6254 final _SVGStringListJs systemLanguage; | |
6255 | |
6256 bool hasExtension(String extension) native; | |
6257 | |
6258 // From SVGLangSpace | |
6259 | |
6260 String xmllang; | |
6261 | |
6262 String xmlspace; | |
6263 | |
6264 // From SVGExternalResourcesRequired | |
6265 | |
6266 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
6267 | |
6268 // From SVGStylable | |
6269 | |
6270 // Shadowing definition. | |
6271 _SVGAnimatedStringJs get className() native "return this.className;"; | |
6272 | |
6273 // Use implementation from Element. | |
6274 // final _CSSStyleDeclarationJs style; | |
6275 | |
6276 _CSSValueJs getPresentationAttribute(String name) native; | |
6277 | |
6278 // From SVGTransformable | |
6279 | |
6280 final _SVGAnimatedTransformListJs transform; | |
6281 | |
6282 // From SVGLocatable | |
6283 | |
6284 final _SVGElementJs farthestViewportElement; | |
6285 | |
6286 final _SVGElementJs nearestViewportElement; | |
6287 | |
6288 _SVGRectJs getBBox() native; | |
6289 | |
6290 _SVGMatrixJs getCTM() native; | |
6291 | |
6292 _SVGMatrixJs getScreenCTM() native; | |
6293 | |
6294 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
6295 } | |
6296 | |
6297 class _SVGAltGlyphDefElementJs extends _SVGElementJs implements SVGAltGlyphDefEl
ement native "*SVGAltGlyphDefElement" { | |
6298 } | |
6299 | |
6300 class _SVGAltGlyphElementJs extends _SVGTextPositioningElementJs implements SVGA
ltGlyphElement native "*SVGAltGlyphElement" { | |
6301 | |
6302 String format; | |
6303 | |
6304 String glyphRef; | |
6305 | |
6306 // From SVGURIReference | |
6307 | |
6308 final _SVGAnimatedStringJs href; | |
6309 } | |
6310 | |
6311 class _SVGAltGlyphItemElementJs extends _SVGElementJs implements SVGAltGlyphItem
Element native "*SVGAltGlyphItemElement" { | |
6312 } | |
6313 | |
6314 class _SVGAngleJs extends _DOMTypeJs implements SVGAngle native "*SVGAngle" { | |
6315 | |
6316 static const int SVG_ANGLETYPE_DEG = 2; | |
6317 | |
6318 static const int SVG_ANGLETYPE_GRAD = 4; | |
6319 | |
6320 static const int SVG_ANGLETYPE_RAD = 3; | |
6321 | |
6322 static const int SVG_ANGLETYPE_UNKNOWN = 0; | |
6323 | |
6324 static const int SVG_ANGLETYPE_UNSPECIFIED = 1; | |
6325 | |
6326 final int unitType; | |
6327 | |
6328 num value; | |
6329 | |
6330 String valueAsString; | |
6331 | |
6332 num valueInSpecifiedUnits; | |
6333 | |
6334 void convertToSpecifiedUnits(int unitType) native; | |
6335 | |
6336 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | |
6337 } | |
6338 | |
6339 class _SVGAnimateColorElementJs extends _SVGAnimationElementJs implements SVGAni
mateColorElement native "*SVGAnimateColorElement" { | |
6340 } | |
6341 | |
6342 class _SVGAnimateElementJs extends _SVGAnimationElementJs implements SVGAnimateE
lement native "*SVGAnimateElement" { | |
6343 } | |
6344 | |
6345 class _SVGAnimateMotionElementJs extends _SVGAnimationElementJs implements SVGAn
imateMotionElement native "*SVGAnimateMotionElement" { | |
6346 } | |
6347 | |
6348 class _SVGAnimateTransformElementJs extends _SVGAnimationElementJs implements SV
GAnimateTransformElement native "*SVGAnimateTransformElement" { | |
6349 } | |
6350 | |
6351 class _SVGAnimatedAngleJs extends _DOMTypeJs implements SVGAnimatedAngle native
"*SVGAnimatedAngle" { | |
6352 | |
6353 final _SVGAngleJs animVal; | |
6354 | |
6355 final _SVGAngleJs baseVal; | |
6356 } | |
6357 | |
6358 class _SVGAnimatedBooleanJs extends _DOMTypeJs implements SVGAnimatedBoolean nat
ive "*SVGAnimatedBoolean" { | |
6359 | |
6360 final bool animVal; | |
6361 | |
6362 bool baseVal; | |
6363 } | |
6364 | |
6365 class _SVGAnimatedEnumerationJs extends _DOMTypeJs implements SVGAnimatedEnumera
tion native "*SVGAnimatedEnumeration" { | |
6366 | |
6367 final int animVal; | |
6368 | |
6369 int baseVal; | |
6370 } | |
6371 | |
6372 class _SVGAnimatedIntegerJs extends _DOMTypeJs implements SVGAnimatedInteger nat
ive "*SVGAnimatedInteger" { | |
6373 | |
6374 final int animVal; | |
6375 | |
6376 int baseVal; | |
6377 } | |
6378 | |
6379 class _SVGAnimatedLengthJs extends _DOMTypeJs implements SVGAnimatedLength nativ
e "*SVGAnimatedLength" { | |
6380 | |
6381 final _SVGLengthJs animVal; | |
6382 | |
6383 final _SVGLengthJs baseVal; | |
6384 } | |
6385 | |
6386 class _SVGAnimatedLengthListJs extends _DOMTypeJs implements SVGAnimatedLengthLi
st native "*SVGAnimatedLengthList" { | |
6387 | |
6388 final _SVGLengthListJs animVal; | |
6389 | |
6390 final _SVGLengthListJs baseVal; | |
6391 } | |
6392 | |
6393 class _SVGAnimatedNumberJs extends _DOMTypeJs implements SVGAnimatedNumber nativ
e "*SVGAnimatedNumber" { | |
6394 | |
6395 final num animVal; | |
6396 | |
6397 num baseVal; | |
6398 } | |
6399 | |
6400 class _SVGAnimatedNumberListJs extends _DOMTypeJs implements SVGAnimatedNumberLi
st native "*SVGAnimatedNumberList" { | |
6401 | |
6402 final _SVGNumberListJs animVal; | |
6403 | |
6404 final _SVGNumberListJs baseVal; | |
6405 } | |
6406 | |
6407 class _SVGAnimatedPreserveAspectRatioJs extends _DOMTypeJs implements SVGAnimate
dPreserveAspectRatio native "*SVGAnimatedPreserveAspectRatio" { | |
6408 | |
6409 final _SVGPreserveAspectRatioJs animVal; | |
6410 | |
6411 final _SVGPreserveAspectRatioJs baseVal; | |
6412 } | |
6413 | |
6414 class _SVGAnimatedRectJs extends _DOMTypeJs implements SVGAnimatedRect native "*
SVGAnimatedRect" { | |
6415 | |
6416 final _SVGRectJs animVal; | |
6417 | |
6418 final _SVGRectJs baseVal; | |
6419 } | |
6420 | |
6421 class _SVGAnimatedStringJs extends _DOMTypeJs implements SVGAnimatedString nativ
e "*SVGAnimatedString" { | |
6422 | |
6423 final String animVal; | |
6424 | |
6425 String baseVal; | |
6426 } | |
6427 | |
6428 class _SVGAnimatedTransformListJs extends _DOMTypeJs implements SVGAnimatedTrans
formList native "*SVGAnimatedTransformList" { | |
6429 | |
6430 final _SVGTransformListJs animVal; | |
6431 | |
6432 final _SVGTransformListJs baseVal; | |
6433 } | |
6434 | |
6435 class _SVGAnimationElementJs extends _SVGElementJs implements SVGAnimationElemen
t native "*SVGAnimationElement" { | |
6436 | |
6437 final _SVGElementJs targetElement; | |
6438 | |
6439 num getCurrentTime() native; | |
6440 | |
6441 num getSimpleDuration() native; | |
6442 | |
6443 num getStartTime() native; | |
6444 | |
6445 // From SVGTests | |
6446 | |
6447 final _SVGStringListJs requiredExtensions; | |
6448 | |
6449 final _SVGStringListJs requiredFeatures; | |
6450 | |
6451 final _SVGStringListJs systemLanguage; | |
6452 | |
6453 bool hasExtension(String extension) native; | |
6454 | |
6455 // From SVGExternalResourcesRequired | |
6456 | |
6457 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
6458 | |
6459 // From ElementTimeControl | |
6460 | |
6461 void beginElement() native; | |
6462 | |
6463 void beginElementAt(num offset) native; | |
6464 | |
6465 void endElement() native; | |
6466 | |
6467 void endElementAt(num offset) native; | |
6468 } | |
6469 | |
6470 class _SVGCircleElementJs extends _SVGElementJs implements SVGCircleElement nati
ve "*SVGCircleElement" { | |
6471 | |
6472 final _SVGAnimatedLengthJs cx; | |
6473 | |
6474 final _SVGAnimatedLengthJs cy; | |
6475 | |
6476 final _SVGAnimatedLengthJs r; | |
6477 | |
6478 // From SVGTests | |
6479 | |
6480 final _SVGStringListJs requiredExtensions; | |
6481 | |
6482 final _SVGStringListJs requiredFeatures; | |
6483 | |
6484 final _SVGStringListJs systemLanguage; | |
6485 | |
6486 bool hasExtension(String extension) native; | |
6487 | |
6488 // From SVGLangSpace | |
6489 | |
6490 String xmllang; | |
6491 | |
6492 String xmlspace; | |
6493 | |
6494 // From SVGExternalResourcesRequired | |
6495 | |
6496 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
6497 | |
6498 // From SVGStylable | |
6499 | |
6500 // Shadowing definition. | |
6501 _SVGAnimatedStringJs get className() native "return this.className;"; | |
6502 | |
6503 // Use implementation from Element. | |
6504 // final _CSSStyleDeclarationJs style; | |
6505 | |
6506 _CSSValueJs getPresentationAttribute(String name) native; | |
6507 | |
6508 // From SVGTransformable | |
6509 | |
6510 final _SVGAnimatedTransformListJs transform; | |
6511 | |
6512 // From SVGLocatable | |
6513 | |
6514 final _SVGElementJs farthestViewportElement; | |
6515 | |
6516 final _SVGElementJs nearestViewportElement; | |
6517 | |
6518 _SVGRectJs getBBox() native; | |
6519 | |
6520 _SVGMatrixJs getCTM() native; | |
6521 | |
6522 _SVGMatrixJs getScreenCTM() native; | |
6523 | |
6524 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
6525 } | |
6526 | |
6527 class _SVGClipPathElementJs extends _SVGElementJs implements SVGClipPathElement
native "*SVGClipPathElement" { | |
6528 | |
6529 final _SVGAnimatedEnumerationJs clipPathUnits; | |
6530 | |
6531 // From SVGTests | |
6532 | |
6533 final _SVGStringListJs requiredExtensions; | |
6534 | |
6535 final _SVGStringListJs requiredFeatures; | |
6536 | |
6537 final _SVGStringListJs systemLanguage; | |
6538 | |
6539 bool hasExtension(String extension) native; | |
6540 | |
6541 // From SVGLangSpace | |
6542 | |
6543 String xmllang; | |
6544 | |
6545 String xmlspace; | |
6546 | |
6547 // From SVGExternalResourcesRequired | |
6548 | |
6549 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
6550 | |
6551 // From SVGStylable | |
6552 | |
6553 // Shadowing definition. | |
6554 _SVGAnimatedStringJs get className() native "return this.className;"; | |
6555 | |
6556 // Use implementation from Element. | |
6557 // final _CSSStyleDeclarationJs style; | |
6558 | |
6559 _CSSValueJs getPresentationAttribute(String name) native; | |
6560 | |
6561 // From SVGTransformable | |
6562 | |
6563 final _SVGAnimatedTransformListJs transform; | |
6564 | |
6565 // From SVGLocatable | |
6566 | |
6567 final _SVGElementJs farthestViewportElement; | |
6568 | |
6569 final _SVGElementJs nearestViewportElement; | |
6570 | |
6571 _SVGRectJs getBBox() native; | |
6572 | |
6573 _SVGMatrixJs getCTM() native; | |
6574 | |
6575 _SVGMatrixJs getScreenCTM() native; | |
6576 | |
6577 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
6578 } | |
6579 | |
6580 class _SVGColorJs extends _CSSValueJs implements SVGColor native "*SVGColor" { | |
6581 | |
6582 static const int SVG_COLORTYPE_CURRENTCOLOR = 3; | |
6583 | |
6584 static const int SVG_COLORTYPE_RGBCOLOR = 1; | |
6585 | |
6586 static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; | |
6587 | |
6588 static const int SVG_COLORTYPE_UNKNOWN = 0; | |
6589 | |
6590 final int colorType; | |
6591 | |
6592 final _RGBColorJs rgbColor; | |
6593 | |
6594 void setColor(int colorType, String rgbColor, String iccColor) native; | |
6595 | |
6596 void setRGBColor(String rgbColor) native; | |
6597 | |
6598 void setRGBColorICCColor(String rgbColor, String iccColor) native; | |
6599 } | |
6600 | |
6601 class _SVGComponentTransferFunctionElementJs extends _SVGElementJs implements SV
GComponentTransferFunctionElement native "*SVGComponentTransferFunctionElement"
{ | |
6602 | |
6603 static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; | |
6604 | |
6605 static const int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; | |
6606 | |
6607 static const int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; | |
6608 | |
6609 static const int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; | |
6610 | |
6611 static const int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; | |
6612 | |
6613 static const int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; | |
6614 | |
6615 final _SVGAnimatedNumberJs amplitude; | |
6616 | |
6617 final _SVGAnimatedNumberJs exponent; | |
6618 | |
6619 final _SVGAnimatedNumberJs intercept; | |
6620 | |
6621 final _SVGAnimatedNumberJs offset; | |
6622 | |
6623 final _SVGAnimatedNumberJs slope; | |
6624 | |
6625 final _SVGAnimatedNumberListJs tableValues; | |
6626 | |
6627 final _SVGAnimatedEnumerationJs type; | |
6628 } | |
6629 | |
6630 class _SVGCursorElementJs extends _SVGElementJs implements SVGCursorElement nati
ve "*SVGCursorElement" { | |
6631 | |
6632 final _SVGAnimatedLengthJs x; | |
6633 | |
6634 final _SVGAnimatedLengthJs y; | |
6635 | |
6636 // From SVGURIReference | |
6637 | |
6638 final _SVGAnimatedStringJs href; | |
6639 | |
6640 // From SVGTests | |
6641 | |
6642 final _SVGStringListJs requiredExtensions; | |
6643 | |
6644 final _SVGStringListJs requiredFeatures; | |
6645 | |
6646 final _SVGStringListJs systemLanguage; | |
6647 | |
6648 bool hasExtension(String extension) native; | |
6649 | |
6650 // From SVGExternalResourcesRequired | |
6651 | |
6652 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
6653 } | |
6654 | |
6655 class _SVGDefsElementJs extends _SVGElementJs implements SVGDefsElement native "
*SVGDefsElement" { | |
6656 | |
6657 // From SVGTests | |
6658 | |
6659 final _SVGStringListJs requiredExtensions; | |
6660 | |
6661 final _SVGStringListJs requiredFeatures; | |
6662 | |
6663 final _SVGStringListJs systemLanguage; | |
6664 | |
6665 bool hasExtension(String extension) native; | |
6666 | |
6667 // From SVGLangSpace | |
6668 | |
6669 String xmllang; | |
6670 | |
6671 String xmlspace; | |
6672 | |
6673 // From SVGExternalResourcesRequired | |
6674 | |
6675 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
6676 | |
6677 // From SVGStylable | |
6678 | |
6679 // Shadowing definition. | |
6680 _SVGAnimatedStringJs get className() native "return this.className;"; | |
6681 | |
6682 // Use implementation from Element. | |
6683 // final _CSSStyleDeclarationJs style; | |
6684 | |
6685 _CSSValueJs getPresentationAttribute(String name) native; | |
6686 | |
6687 // From SVGTransformable | |
6688 | |
6689 final _SVGAnimatedTransformListJs transform; | |
6690 | |
6691 // From SVGLocatable | |
6692 | |
6693 final _SVGElementJs farthestViewportElement; | |
6694 | |
6695 final _SVGElementJs nearestViewportElement; | |
6696 | |
6697 _SVGRectJs getBBox() native; | |
6698 | |
6699 _SVGMatrixJs getCTM() native; | |
6700 | |
6701 _SVGMatrixJs getScreenCTM() native; | |
6702 | |
6703 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
6704 } | |
6705 | |
6706 class _SVGDescElementJs extends _SVGElementJs implements SVGDescElement native "
*SVGDescElement" { | |
6707 | |
6708 // From SVGLangSpace | |
6709 | |
6710 String xmllang; | |
6711 | |
6712 String xmlspace; | |
6713 | |
6714 // From SVGStylable | |
6715 | |
6716 // Shadowing definition. | |
6717 _SVGAnimatedStringJs get className() native "return this.className;"; | |
6718 | |
6719 // Use implementation from Element. | |
6720 // final _CSSStyleDeclarationJs style; | |
6721 | |
6722 _CSSValueJs getPresentationAttribute(String name) native; | |
6723 } | |
6724 | |
6725 class _SVGDocumentJs extends _DocumentJs implements SVGDocument native "*SVGDocu
ment" { | |
6726 | |
6727 final _SVGSVGElementJs rootElement; | |
6728 | |
6729 _EventJs createEvent(String eventType) native; | |
6730 } | |
6731 | |
6732 class _SVGElementJs extends _ElementJs implements SVGElement native "*SVGElement
" { | |
6733 | |
6734 String id; | |
6735 | |
6736 final _SVGSVGElementJs ownerSVGElement; | |
6737 | |
6738 final _SVGElementJs viewportElement; | |
6739 | |
6740 String xmlbase; | |
6741 } | |
6742 | |
6743 class _SVGElementInstanceJs extends _EventTargetJs implements SVGElementInstance
native "*SVGElementInstance" { | |
6744 | |
6745 final _SVGElementInstanceListJs childNodes; | |
6746 | |
6747 final _SVGElementJs correspondingElement; | |
6748 | |
6749 final _SVGUseElementJs correspondingUseElement; | |
6750 | |
6751 final _SVGElementInstanceJs firstChild; | |
6752 | |
6753 final _SVGElementInstanceJs lastChild; | |
6754 | |
6755 final _SVGElementInstanceJs nextSibling; | |
6756 | |
6757 final _SVGElementInstanceJs parentNode; | |
6758 | |
6759 final _SVGElementInstanceJs previousSibling; | |
6760 } | |
6761 | |
6762 class _SVGElementInstanceListJs extends _DOMTypeJs implements SVGElementInstance
List native "*SVGElementInstanceList" { | |
6763 | |
6764 final int length; | |
6765 | |
6766 _SVGElementInstanceJs item(int index) native; | |
6767 } | |
6768 | |
6769 class _SVGEllipseElementJs extends _SVGElementJs implements SVGEllipseElement na
tive "*SVGEllipseElement" { | |
6770 | |
6771 final _SVGAnimatedLengthJs cx; | |
6772 | |
6773 final _SVGAnimatedLengthJs cy; | |
6774 | |
6775 final _SVGAnimatedLengthJs rx; | |
6776 | |
6777 final _SVGAnimatedLengthJs ry; | |
6778 | |
6779 // From SVGTests | |
6780 | |
6781 final _SVGStringListJs requiredExtensions; | |
6782 | |
6783 final _SVGStringListJs requiredFeatures; | |
6784 | |
6785 final _SVGStringListJs systemLanguage; | |
6786 | |
6787 bool hasExtension(String extension) native; | |
6788 | |
6789 // From SVGLangSpace | |
6790 | |
6791 String xmllang; | |
6792 | |
6793 String xmlspace; | |
6794 | |
6795 // From SVGExternalResourcesRequired | |
6796 | |
6797 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
6798 | |
6799 // From SVGStylable | |
6800 | |
6801 // Shadowing definition. | |
6802 _SVGAnimatedStringJs get className() native "return this.className;"; | |
6803 | |
6804 // Use implementation from Element. | |
6805 // final _CSSStyleDeclarationJs style; | |
6806 | |
6807 _CSSValueJs getPresentationAttribute(String name) native; | |
6808 | |
6809 // From SVGTransformable | |
6810 | |
6811 final _SVGAnimatedTransformListJs transform; | |
6812 | |
6813 // From SVGLocatable | |
6814 | |
6815 final _SVGElementJs farthestViewportElement; | |
6816 | |
6817 final _SVGElementJs nearestViewportElement; | |
6818 | |
6819 _SVGRectJs getBBox() native; | |
6820 | |
6821 _SVGMatrixJs getCTM() native; | |
6822 | |
6823 _SVGMatrixJs getScreenCTM() native; | |
6824 | |
6825 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
6826 } | |
6827 | |
6828 class _SVGExceptionJs extends _DOMTypeJs implements SVGException native "*SVGExc
eption" { | |
6829 | |
6830 static const int SVG_INVALID_VALUE_ERR = 1; | |
6831 | |
6832 static const int SVG_MATRIX_NOT_INVERTABLE = 2; | |
6833 | |
6834 static const int SVG_WRONG_TYPE_ERR = 0; | |
6835 | |
6836 final int code; | |
6837 | |
6838 final String message; | |
6839 | |
6840 final String name; | |
6841 | |
6842 String toString() native; | |
6843 } | |
6844 | |
6845 class _SVGFEBlendElementJs extends _SVGElementJs implements SVGFEBlendElement na
tive "*SVGFEBlendElement" { | |
6846 | |
6847 static const int SVG_FEBLEND_MODE_DARKEN = 4; | |
6848 | |
6849 static const int SVG_FEBLEND_MODE_LIGHTEN = 5; | |
6850 | |
6851 static const int SVG_FEBLEND_MODE_MULTIPLY = 2; | |
6852 | |
6853 static const int SVG_FEBLEND_MODE_NORMAL = 1; | |
6854 | |
6855 static const int SVG_FEBLEND_MODE_SCREEN = 3; | |
6856 | |
6857 static const int SVG_FEBLEND_MODE_UNKNOWN = 0; | |
6858 | |
6859 final _SVGAnimatedStringJs in1; | |
6860 | |
6861 final _SVGAnimatedStringJs in2; | |
6862 | |
6863 final _SVGAnimatedEnumerationJs mode; | |
6864 | |
6865 // From SVGFilterPrimitiveStandardAttributes | |
6866 | |
6867 final _SVGAnimatedLengthJs height; | |
6868 | |
6869 final _SVGAnimatedStringJs result; | |
6870 | |
6871 final _SVGAnimatedLengthJs width; | |
6872 | |
6873 final _SVGAnimatedLengthJs x; | |
6874 | |
6875 final _SVGAnimatedLengthJs y; | |
6876 | |
6877 // From SVGStylable | |
6878 | |
6879 // Shadowing definition. | |
6880 _SVGAnimatedStringJs get className() native "return this.className;"; | |
6881 | |
6882 // Use implementation from Element. | |
6883 // final _CSSStyleDeclarationJs style; | |
6884 | |
6885 _CSSValueJs getPresentationAttribute(String name) native; | |
6886 } | |
6887 | |
6888 class _SVGFEColorMatrixElementJs extends _SVGElementJs implements SVGFEColorMatr
ixElement native "*SVGFEColorMatrixElement" { | |
6889 | |
6890 static const int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; | |
6891 | |
6892 static const int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; | |
6893 | |
6894 static const int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; | |
6895 | |
6896 static const int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; | |
6897 | |
6898 static const int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; | |
6899 | |
6900 final _SVGAnimatedStringJs in1; | |
6901 | |
6902 final _SVGAnimatedEnumerationJs type; | |
6903 | |
6904 final _SVGAnimatedNumberListJs values; | |
6905 | |
6906 // From SVGFilterPrimitiveStandardAttributes | |
6907 | |
6908 final _SVGAnimatedLengthJs height; | |
6909 | |
6910 final _SVGAnimatedStringJs result; | |
6911 | |
6912 final _SVGAnimatedLengthJs width; | |
6913 | |
6914 final _SVGAnimatedLengthJs x; | |
6915 | |
6916 final _SVGAnimatedLengthJs y; | |
6917 | |
6918 // From SVGStylable | |
6919 | |
6920 // Shadowing definition. | |
6921 _SVGAnimatedStringJs get className() native "return this.className;"; | |
6922 | |
6923 // Use implementation from Element. | |
6924 // final _CSSStyleDeclarationJs style; | |
6925 | |
6926 _CSSValueJs getPresentationAttribute(String name) native; | |
6927 } | |
6928 | |
6929 class _SVGFEComponentTransferElementJs extends _SVGElementJs implements SVGFECom
ponentTransferElement native "*SVGFEComponentTransferElement" { | |
6930 | |
6931 final _SVGAnimatedStringJs in1; | |
6932 | |
6933 // From SVGFilterPrimitiveStandardAttributes | |
6934 | |
6935 final _SVGAnimatedLengthJs height; | |
6936 | |
6937 final _SVGAnimatedStringJs result; | |
6938 | |
6939 final _SVGAnimatedLengthJs width; | |
6940 | |
6941 final _SVGAnimatedLengthJs x; | |
6942 | |
6943 final _SVGAnimatedLengthJs y; | |
6944 | |
6945 // From SVGStylable | |
6946 | |
6947 // Shadowing definition. | |
6948 _SVGAnimatedStringJs get className() native "return this.className;"; | |
6949 | |
6950 // Use implementation from Element. | |
6951 // final _CSSStyleDeclarationJs style; | |
6952 | |
6953 _CSSValueJs getPresentationAttribute(String name) native; | |
6954 } | |
6955 | |
6956 class _SVGFECompositeElementJs extends _SVGElementJs implements SVGFECompositeEl
ement native "*SVGFECompositeElement" { | |
6957 | |
6958 static const int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; | |
6959 | |
6960 static const int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; | |
6961 | |
6962 static const int SVG_FECOMPOSITE_OPERATOR_IN = 2; | |
6963 | |
6964 static const int SVG_FECOMPOSITE_OPERATOR_OUT = 3; | |
6965 | |
6966 static const int SVG_FECOMPOSITE_OPERATOR_OVER = 1; | |
6967 | |
6968 static const int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; | |
6969 | |
6970 static const int SVG_FECOMPOSITE_OPERATOR_XOR = 5; | |
6971 | |
6972 final _SVGAnimatedStringJs in1; | |
6973 | |
6974 final _SVGAnimatedStringJs in2; | |
6975 | |
6976 final _SVGAnimatedNumberJs k1; | |
6977 | |
6978 final _SVGAnimatedNumberJs k2; | |
6979 | |
6980 final _SVGAnimatedNumberJs k3; | |
6981 | |
6982 final _SVGAnimatedNumberJs k4; | |
6983 | |
6984 final _SVGAnimatedEnumerationJs operator; | |
6985 | |
6986 // From SVGFilterPrimitiveStandardAttributes | |
6987 | |
6988 final _SVGAnimatedLengthJs height; | |
6989 | |
6990 final _SVGAnimatedStringJs result; | |
6991 | |
6992 final _SVGAnimatedLengthJs width; | |
6993 | |
6994 final _SVGAnimatedLengthJs x; | |
6995 | |
6996 final _SVGAnimatedLengthJs y; | |
6997 | |
6998 // From SVGStylable | |
6999 | |
7000 // Shadowing definition. | |
7001 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7002 | |
7003 // Use implementation from Element. | |
7004 // final _CSSStyleDeclarationJs style; | |
7005 | |
7006 _CSSValueJs getPresentationAttribute(String name) native; | |
7007 } | |
7008 | |
7009 class _SVGFEConvolveMatrixElementJs extends _SVGElementJs implements SVGFEConvol
veMatrixElement native "*SVGFEConvolveMatrixElement" { | |
7010 | |
7011 static const int SVG_EDGEMODE_DUPLICATE = 1; | |
7012 | |
7013 static const int SVG_EDGEMODE_NONE = 3; | |
7014 | |
7015 static const int SVG_EDGEMODE_UNKNOWN = 0; | |
7016 | |
7017 static const int SVG_EDGEMODE_WRAP = 2; | |
7018 | |
7019 final _SVGAnimatedNumberJs bias; | |
7020 | |
7021 final _SVGAnimatedNumberJs divisor; | |
7022 | |
7023 final _SVGAnimatedEnumerationJs edgeMode; | |
7024 | |
7025 final _SVGAnimatedStringJs in1; | |
7026 | |
7027 final _SVGAnimatedNumberListJs kernelMatrix; | |
7028 | |
7029 final _SVGAnimatedNumberJs kernelUnitLengthX; | |
7030 | |
7031 final _SVGAnimatedNumberJs kernelUnitLengthY; | |
7032 | |
7033 final _SVGAnimatedIntegerJs orderX; | |
7034 | |
7035 final _SVGAnimatedIntegerJs orderY; | |
7036 | |
7037 final _SVGAnimatedBooleanJs preserveAlpha; | |
7038 | |
7039 final _SVGAnimatedIntegerJs targetX; | |
7040 | |
7041 final _SVGAnimatedIntegerJs targetY; | |
7042 | |
7043 // From SVGFilterPrimitiveStandardAttributes | |
7044 | |
7045 final _SVGAnimatedLengthJs height; | |
7046 | |
7047 final _SVGAnimatedStringJs result; | |
7048 | |
7049 final _SVGAnimatedLengthJs width; | |
7050 | |
7051 final _SVGAnimatedLengthJs x; | |
7052 | |
7053 final _SVGAnimatedLengthJs y; | |
7054 | |
7055 // From SVGStylable | |
7056 | |
7057 // Shadowing definition. | |
7058 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7059 | |
7060 // Use implementation from Element. | |
7061 // final _CSSStyleDeclarationJs style; | |
7062 | |
7063 _CSSValueJs getPresentationAttribute(String name) native; | |
7064 } | |
7065 | |
7066 class _SVGFEDiffuseLightingElementJs extends _SVGElementJs implements SVGFEDiffu
seLightingElement native "*SVGFEDiffuseLightingElement" { | |
7067 | |
7068 final _SVGAnimatedNumberJs diffuseConstant; | |
7069 | |
7070 final _SVGAnimatedStringJs in1; | |
7071 | |
7072 final _SVGAnimatedNumberJs kernelUnitLengthX; | |
7073 | |
7074 final _SVGAnimatedNumberJs kernelUnitLengthY; | |
7075 | |
7076 final _SVGAnimatedNumberJs surfaceScale; | |
7077 | |
7078 // From SVGFilterPrimitiveStandardAttributes | |
7079 | |
7080 final _SVGAnimatedLengthJs height; | |
7081 | |
7082 final _SVGAnimatedStringJs result; | |
7083 | |
7084 final _SVGAnimatedLengthJs width; | |
7085 | |
7086 final _SVGAnimatedLengthJs x; | |
7087 | |
7088 final _SVGAnimatedLengthJs y; | |
7089 | |
7090 // From SVGStylable | |
7091 | |
7092 // Shadowing definition. | |
7093 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7094 | |
7095 // Use implementation from Element. | |
7096 // final _CSSStyleDeclarationJs style; | |
7097 | |
7098 _CSSValueJs getPresentationAttribute(String name) native; | |
7099 } | |
7100 | |
7101 class _SVGFEDisplacementMapElementJs extends _SVGElementJs implements SVGFEDispl
acementMapElement native "*SVGFEDisplacementMapElement" { | |
7102 | |
7103 static const int SVG_CHANNEL_A = 4; | |
7104 | |
7105 static const int SVG_CHANNEL_B = 3; | |
7106 | |
7107 static const int SVG_CHANNEL_G = 2; | |
7108 | |
7109 static const int SVG_CHANNEL_R = 1; | |
7110 | |
7111 static const int SVG_CHANNEL_UNKNOWN = 0; | |
7112 | |
7113 final _SVGAnimatedStringJs in1; | |
7114 | |
7115 final _SVGAnimatedStringJs in2; | |
7116 | |
7117 final _SVGAnimatedNumberJs scale; | |
7118 | |
7119 final _SVGAnimatedEnumerationJs xChannelSelector; | |
7120 | |
7121 final _SVGAnimatedEnumerationJs yChannelSelector; | |
7122 | |
7123 // From SVGFilterPrimitiveStandardAttributes | |
7124 | |
7125 final _SVGAnimatedLengthJs height; | |
7126 | |
7127 final _SVGAnimatedStringJs result; | |
7128 | |
7129 final _SVGAnimatedLengthJs width; | |
7130 | |
7131 final _SVGAnimatedLengthJs x; | |
7132 | |
7133 final _SVGAnimatedLengthJs y; | |
7134 | |
7135 // From SVGStylable | |
7136 | |
7137 // Shadowing definition. | |
7138 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7139 | |
7140 // Use implementation from Element. | |
7141 // final _CSSStyleDeclarationJs style; | |
7142 | |
7143 _CSSValueJs getPresentationAttribute(String name) native; | |
7144 } | |
7145 | |
7146 class _SVGFEDistantLightElementJs extends _SVGElementJs implements SVGFEDistantL
ightElement native "*SVGFEDistantLightElement" { | |
7147 | |
7148 final _SVGAnimatedNumberJs azimuth; | |
7149 | |
7150 final _SVGAnimatedNumberJs elevation; | |
7151 } | |
7152 | |
7153 class _SVGFEDropShadowElementJs extends _SVGElementJs implements SVGFEDropShadow
Element native "*SVGFEDropShadowElement" { | |
7154 | |
7155 final _SVGAnimatedNumberJs dx; | |
7156 | |
7157 final _SVGAnimatedNumberJs dy; | |
7158 | |
7159 final _SVGAnimatedStringJs in1; | |
7160 | |
7161 final _SVGAnimatedNumberJs stdDeviationX; | |
7162 | |
7163 final _SVGAnimatedNumberJs stdDeviationY; | |
7164 | |
7165 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; | |
7166 | |
7167 // From SVGFilterPrimitiveStandardAttributes | |
7168 | |
7169 final _SVGAnimatedLengthJs height; | |
7170 | |
7171 final _SVGAnimatedStringJs result; | |
7172 | |
7173 final _SVGAnimatedLengthJs width; | |
7174 | |
7175 final _SVGAnimatedLengthJs x; | |
7176 | |
7177 final _SVGAnimatedLengthJs y; | |
7178 | |
7179 // From SVGStylable | |
7180 | |
7181 // Shadowing definition. | |
7182 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7183 | |
7184 // Use implementation from Element. | |
7185 // final _CSSStyleDeclarationJs style; | |
7186 | |
7187 _CSSValueJs getPresentationAttribute(String name) native; | |
7188 } | |
7189 | |
7190 class _SVGFEFloodElementJs extends _SVGElementJs implements SVGFEFloodElement na
tive "*SVGFEFloodElement" { | |
7191 | |
7192 // From SVGFilterPrimitiveStandardAttributes | |
7193 | |
7194 final _SVGAnimatedLengthJs height; | |
7195 | |
7196 final _SVGAnimatedStringJs result; | |
7197 | |
7198 final _SVGAnimatedLengthJs width; | |
7199 | |
7200 final _SVGAnimatedLengthJs x; | |
7201 | |
7202 final _SVGAnimatedLengthJs y; | |
7203 | |
7204 // From SVGStylable | |
7205 | |
7206 // Shadowing definition. | |
7207 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7208 | |
7209 // Use implementation from Element. | |
7210 // final _CSSStyleDeclarationJs style; | |
7211 | |
7212 _CSSValueJs getPresentationAttribute(String name) native; | |
7213 } | |
7214 | |
7215 class _SVGFEFuncAElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncAElement native "*SVGFEFuncAElement" { | |
7216 } | |
7217 | |
7218 class _SVGFEFuncBElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncBElement native "*SVGFEFuncBElement" { | |
7219 } | |
7220 | |
7221 class _SVGFEFuncGElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncGElement native "*SVGFEFuncGElement" { | |
7222 } | |
7223 | |
7224 class _SVGFEFuncRElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncRElement native "*SVGFEFuncRElement" { | |
7225 } | |
7226 | |
7227 class _SVGFEGaussianBlurElementJs extends _SVGElementJs implements SVGFEGaussian
BlurElement native "*SVGFEGaussianBlurElement" { | |
7228 | |
7229 final _SVGAnimatedStringJs in1; | |
7230 | |
7231 final _SVGAnimatedNumberJs stdDeviationX; | |
7232 | |
7233 final _SVGAnimatedNumberJs stdDeviationY; | |
7234 | |
7235 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; | |
7236 | |
7237 // From SVGFilterPrimitiveStandardAttributes | |
7238 | |
7239 final _SVGAnimatedLengthJs height; | |
7240 | |
7241 final _SVGAnimatedStringJs result; | |
7242 | |
7243 final _SVGAnimatedLengthJs width; | |
7244 | |
7245 final _SVGAnimatedLengthJs x; | |
7246 | |
7247 final _SVGAnimatedLengthJs y; | |
7248 | |
7249 // From SVGStylable | |
7250 | |
7251 // Shadowing definition. | |
7252 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7253 | |
7254 // Use implementation from Element. | |
7255 // final _CSSStyleDeclarationJs style; | |
7256 | |
7257 _CSSValueJs getPresentationAttribute(String name) native; | |
7258 } | |
7259 | |
7260 class _SVGFEImageElementJs extends _SVGElementJs implements SVGFEImageElement na
tive "*SVGFEImageElement" { | |
7261 | |
7262 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
7263 | |
7264 // From SVGURIReference | |
7265 | |
7266 final _SVGAnimatedStringJs href; | |
7267 | |
7268 // From SVGLangSpace | |
7269 | |
7270 String xmllang; | |
7271 | |
7272 String xmlspace; | |
7273 | |
7274 // From SVGExternalResourcesRequired | |
7275 | |
7276 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
7277 | |
7278 // From SVGFilterPrimitiveStandardAttributes | |
7279 | |
7280 final _SVGAnimatedLengthJs height; | |
7281 | |
7282 final _SVGAnimatedStringJs result; | |
7283 | |
7284 final _SVGAnimatedLengthJs width; | |
7285 | |
7286 final _SVGAnimatedLengthJs x; | |
7287 | |
7288 final _SVGAnimatedLengthJs y; | |
7289 | |
7290 // From SVGStylable | |
7291 | |
7292 // Shadowing definition. | |
7293 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7294 | |
7295 // Use implementation from Element. | |
7296 // final _CSSStyleDeclarationJs style; | |
7297 | |
7298 _CSSValueJs getPresentationAttribute(String name) native; | |
7299 } | |
7300 | |
7301 class _SVGFEMergeElementJs extends _SVGElementJs implements SVGFEMergeElement na
tive "*SVGFEMergeElement" { | |
7302 | |
7303 // From SVGFilterPrimitiveStandardAttributes | |
7304 | |
7305 final _SVGAnimatedLengthJs height; | |
7306 | |
7307 final _SVGAnimatedStringJs result; | |
7308 | |
7309 final _SVGAnimatedLengthJs width; | |
7310 | |
7311 final _SVGAnimatedLengthJs x; | |
7312 | |
7313 final _SVGAnimatedLengthJs y; | |
7314 | |
7315 // From SVGStylable | |
7316 | |
7317 // Shadowing definition. | |
7318 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7319 | |
7320 // Use implementation from Element. | |
7321 // final _CSSStyleDeclarationJs style; | |
7322 | |
7323 _CSSValueJs getPresentationAttribute(String name) native; | |
7324 } | |
7325 | |
7326 class _SVGFEMergeNodeElementJs extends _SVGElementJs implements SVGFEMergeNodeEl
ement native "*SVGFEMergeNodeElement" { | |
7327 | |
7328 final _SVGAnimatedStringJs in1; | |
7329 } | |
7330 | |
7331 class _SVGFEMorphologyElementJs extends _SVGElementJs implements SVGFEMorphology
Element native "*SVGFEMorphologyElement" { | |
7332 | |
7333 static const int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; | |
7334 | |
7335 static const int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; | |
7336 | |
7337 static const int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; | |
7338 | |
7339 final _SVGAnimatedStringJs in1; | |
7340 | |
7341 final _SVGAnimatedEnumerationJs operator; | |
7342 | |
7343 final _SVGAnimatedNumberJs radiusX; | |
7344 | |
7345 final _SVGAnimatedNumberJs radiusY; | |
7346 | |
7347 void setRadius(num radiusX, num radiusY) native; | |
7348 | |
7349 // From SVGFilterPrimitiveStandardAttributes | |
7350 | |
7351 final _SVGAnimatedLengthJs height; | |
7352 | |
7353 final _SVGAnimatedStringJs result; | |
7354 | |
7355 final _SVGAnimatedLengthJs width; | |
7356 | |
7357 final _SVGAnimatedLengthJs x; | |
7358 | |
7359 final _SVGAnimatedLengthJs y; | |
7360 | |
7361 // From SVGStylable | |
7362 | |
7363 // Shadowing definition. | |
7364 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7365 | |
7366 // Use implementation from Element. | |
7367 // final _CSSStyleDeclarationJs style; | |
7368 | |
7369 _CSSValueJs getPresentationAttribute(String name) native; | |
7370 } | |
7371 | |
7372 class _SVGFEOffsetElementJs extends _SVGElementJs implements SVGFEOffsetElement
native "*SVGFEOffsetElement" { | |
7373 | |
7374 final _SVGAnimatedNumberJs dx; | |
7375 | |
7376 final _SVGAnimatedNumberJs dy; | |
7377 | |
7378 final _SVGAnimatedStringJs in1; | |
7379 | |
7380 // From SVGFilterPrimitiveStandardAttributes | |
7381 | |
7382 final _SVGAnimatedLengthJs height; | |
7383 | |
7384 final _SVGAnimatedStringJs result; | |
7385 | |
7386 final _SVGAnimatedLengthJs width; | |
7387 | |
7388 final _SVGAnimatedLengthJs x; | |
7389 | |
7390 final _SVGAnimatedLengthJs y; | |
7391 | |
7392 // From SVGStylable | |
7393 | |
7394 // Shadowing definition. | |
7395 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7396 | |
7397 // Use implementation from Element. | |
7398 // final _CSSStyleDeclarationJs style; | |
7399 | |
7400 _CSSValueJs getPresentationAttribute(String name) native; | |
7401 } | |
7402 | |
7403 class _SVGFEPointLightElementJs extends _SVGElementJs implements SVGFEPointLight
Element native "*SVGFEPointLightElement" { | |
7404 | |
7405 final _SVGAnimatedNumberJs x; | |
7406 | |
7407 final _SVGAnimatedNumberJs y; | |
7408 | |
7409 final _SVGAnimatedNumberJs z; | |
7410 } | |
7411 | |
7412 class _SVGFESpecularLightingElementJs extends _SVGElementJs implements SVGFESpec
ularLightingElement native "*SVGFESpecularLightingElement" { | |
7413 | |
7414 final _SVGAnimatedStringJs in1; | |
7415 | |
7416 final _SVGAnimatedNumberJs specularConstant; | |
7417 | |
7418 final _SVGAnimatedNumberJs specularExponent; | |
7419 | |
7420 final _SVGAnimatedNumberJs surfaceScale; | |
7421 | |
7422 // From SVGFilterPrimitiveStandardAttributes | |
7423 | |
7424 final _SVGAnimatedLengthJs height; | |
7425 | |
7426 final _SVGAnimatedStringJs result; | |
7427 | |
7428 final _SVGAnimatedLengthJs width; | |
7429 | |
7430 final _SVGAnimatedLengthJs x; | |
7431 | |
7432 final _SVGAnimatedLengthJs y; | |
7433 | |
7434 // From SVGStylable | |
7435 | |
7436 // Shadowing definition. | |
7437 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7438 | |
7439 // Use implementation from Element. | |
7440 // final _CSSStyleDeclarationJs style; | |
7441 | |
7442 _CSSValueJs getPresentationAttribute(String name) native; | |
7443 } | |
7444 | |
7445 class _SVGFESpotLightElementJs extends _SVGElementJs implements SVGFESpotLightEl
ement native "*SVGFESpotLightElement" { | |
7446 | |
7447 final _SVGAnimatedNumberJs limitingConeAngle; | |
7448 | |
7449 final _SVGAnimatedNumberJs pointsAtX; | |
7450 | |
7451 final _SVGAnimatedNumberJs pointsAtY; | |
7452 | |
7453 final _SVGAnimatedNumberJs pointsAtZ; | |
7454 | |
7455 final _SVGAnimatedNumberJs specularExponent; | |
7456 | |
7457 final _SVGAnimatedNumberJs x; | |
7458 | |
7459 final _SVGAnimatedNumberJs y; | |
7460 | |
7461 final _SVGAnimatedNumberJs z; | |
7462 } | |
7463 | |
7464 class _SVGFETileElementJs extends _SVGElementJs implements SVGFETileElement nati
ve "*SVGFETileElement" { | |
7465 | |
7466 final _SVGAnimatedStringJs in1; | |
7467 | |
7468 // From SVGFilterPrimitiveStandardAttributes | |
7469 | |
7470 final _SVGAnimatedLengthJs height; | |
7471 | |
7472 final _SVGAnimatedStringJs result; | |
7473 | |
7474 final _SVGAnimatedLengthJs width; | |
7475 | |
7476 final _SVGAnimatedLengthJs x; | |
7477 | |
7478 final _SVGAnimatedLengthJs y; | |
7479 | |
7480 // From SVGStylable | |
7481 | |
7482 // Shadowing definition. | |
7483 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7484 | |
7485 // Use implementation from Element. | |
7486 // final _CSSStyleDeclarationJs style; | |
7487 | |
7488 _CSSValueJs getPresentationAttribute(String name) native; | |
7489 } | |
7490 | |
7491 class _SVGFETurbulenceElementJs extends _SVGElementJs implements SVGFETurbulence
Element native "*SVGFETurbulenceElement" { | |
7492 | |
7493 static const int SVG_STITCHTYPE_NOSTITCH = 2; | |
7494 | |
7495 static const int SVG_STITCHTYPE_STITCH = 1; | |
7496 | |
7497 static const int SVG_STITCHTYPE_UNKNOWN = 0; | |
7498 | |
7499 static const int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; | |
7500 | |
7501 static const int SVG_TURBULENCE_TYPE_TURBULENCE = 2; | |
7502 | |
7503 static const int SVG_TURBULENCE_TYPE_UNKNOWN = 0; | |
7504 | |
7505 final _SVGAnimatedNumberJs baseFrequencyX; | |
7506 | |
7507 final _SVGAnimatedNumberJs baseFrequencyY; | |
7508 | |
7509 final _SVGAnimatedIntegerJs numOctaves; | |
7510 | |
7511 final _SVGAnimatedNumberJs seed; | |
7512 | |
7513 final _SVGAnimatedEnumerationJs stitchTiles; | |
7514 | |
7515 final _SVGAnimatedEnumerationJs type; | |
7516 | |
7517 // From SVGFilterPrimitiveStandardAttributes | |
7518 | |
7519 final _SVGAnimatedLengthJs height; | |
7520 | |
7521 final _SVGAnimatedStringJs result; | |
7522 | |
7523 final _SVGAnimatedLengthJs width; | |
7524 | |
7525 final _SVGAnimatedLengthJs x; | |
7526 | |
7527 final _SVGAnimatedLengthJs y; | |
7528 | |
7529 // From SVGStylable | |
7530 | |
7531 // Shadowing definition. | |
7532 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7533 | |
7534 // Use implementation from Element. | |
7535 // final _CSSStyleDeclarationJs style; | |
7536 | |
7537 _CSSValueJs getPresentationAttribute(String name) native; | |
7538 } | |
7539 | |
7540 class _SVGFilterElementJs extends _SVGElementJs implements SVGFilterElement nati
ve "*SVGFilterElement" { | |
7541 | |
7542 final _SVGAnimatedIntegerJs filterResX; | |
7543 | |
7544 final _SVGAnimatedIntegerJs filterResY; | |
7545 | |
7546 final _SVGAnimatedEnumerationJs filterUnits; | |
7547 | |
7548 final _SVGAnimatedLengthJs height; | |
7549 | |
7550 final _SVGAnimatedEnumerationJs primitiveUnits; | |
7551 | |
7552 final _SVGAnimatedLengthJs width; | |
7553 | |
7554 final _SVGAnimatedLengthJs x; | |
7555 | |
7556 final _SVGAnimatedLengthJs y; | |
7557 | |
7558 void setFilterRes(int filterResX, int filterResY) native; | |
7559 | |
7560 // From SVGURIReference | |
7561 | |
7562 final _SVGAnimatedStringJs href; | |
7563 | |
7564 // From SVGLangSpace | |
7565 | |
7566 String xmllang; | |
7567 | |
7568 String xmlspace; | |
7569 | |
7570 // From SVGExternalResourcesRequired | |
7571 | |
7572 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
7573 | |
7574 // From SVGStylable | |
7575 | |
7576 // Shadowing definition. | |
7577 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7578 | |
7579 // Use implementation from Element. | |
7580 // final _CSSStyleDeclarationJs style; | |
7581 | |
7582 _CSSValueJs getPresentationAttribute(String name) native; | |
7583 } | |
7584 | |
7585 class _SVGFontElementJs extends _SVGElementJs implements SVGFontElement native "
*SVGFontElement" { | |
7586 } | |
7587 | |
7588 class _SVGFontFaceElementJs extends _SVGElementJs implements SVGFontFaceElement
native "*SVGFontFaceElement" { | |
7589 } | |
7590 | |
7591 class _SVGFontFaceFormatElementJs extends _SVGElementJs implements SVGFontFaceFo
rmatElement native "*SVGFontFaceFormatElement" { | |
7592 } | |
7593 | |
7594 class _SVGFontFaceNameElementJs extends _SVGElementJs implements SVGFontFaceName
Element native "*SVGFontFaceNameElement" { | |
7595 } | |
7596 | |
7597 class _SVGFontFaceSrcElementJs extends _SVGElementJs implements SVGFontFaceSrcEl
ement native "*SVGFontFaceSrcElement" { | |
7598 } | |
7599 | |
7600 class _SVGFontFaceUriElementJs extends _SVGElementJs implements SVGFontFaceUriEl
ement native "*SVGFontFaceUriElement" { | |
7601 } | |
7602 | |
7603 class _SVGForeignObjectElementJs extends _SVGElementJs implements SVGForeignObje
ctElement native "*SVGForeignObjectElement" { | |
7604 | |
7605 final _SVGAnimatedLengthJs height; | |
7606 | |
7607 final _SVGAnimatedLengthJs width; | |
7608 | |
7609 final _SVGAnimatedLengthJs x; | |
7610 | |
7611 final _SVGAnimatedLengthJs y; | |
7612 | |
7613 // From SVGTests | |
7614 | |
7615 final _SVGStringListJs requiredExtensions; | |
7616 | |
7617 final _SVGStringListJs requiredFeatures; | |
7618 | |
7619 final _SVGStringListJs systemLanguage; | |
7620 | |
7621 bool hasExtension(String extension) native; | |
7622 | |
7623 // From SVGLangSpace | |
7624 | |
7625 String xmllang; | |
7626 | |
7627 String xmlspace; | |
7628 | |
7629 // From SVGExternalResourcesRequired | |
7630 | |
7631 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
7632 | |
7633 // From SVGStylable | |
7634 | |
7635 // Shadowing definition. | |
7636 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7637 | |
7638 // Use implementation from Element. | |
7639 // final _CSSStyleDeclarationJs style; | |
7640 | |
7641 _CSSValueJs getPresentationAttribute(String name) native; | |
7642 | |
7643 // From SVGTransformable | |
7644 | |
7645 final _SVGAnimatedTransformListJs transform; | |
7646 | |
7647 // From SVGLocatable | |
7648 | |
7649 final _SVGElementJs farthestViewportElement; | |
7650 | |
7651 final _SVGElementJs nearestViewportElement; | |
7652 | |
7653 _SVGRectJs getBBox() native; | |
7654 | |
7655 _SVGMatrixJs getCTM() native; | |
7656 | |
7657 _SVGMatrixJs getScreenCTM() native; | |
7658 | |
7659 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
7660 } | |
7661 | |
7662 class _SVGGElementJs extends _SVGElementJs implements SVGGElement native "*SVGGE
lement" { | |
7663 | |
7664 // From SVGTests | |
7665 | |
7666 final _SVGStringListJs requiredExtensions; | |
7667 | |
7668 final _SVGStringListJs requiredFeatures; | |
7669 | |
7670 final _SVGStringListJs systemLanguage; | |
7671 | |
7672 bool hasExtension(String extension) native; | |
7673 | |
7674 // From SVGLangSpace | |
7675 | |
7676 String xmllang; | |
7677 | |
7678 String xmlspace; | |
7679 | |
7680 // From SVGExternalResourcesRequired | |
7681 | |
7682 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
7683 | |
7684 // From SVGStylable | |
7685 | |
7686 // Shadowing definition. | |
7687 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7688 | |
7689 // Use implementation from Element. | |
7690 // final _CSSStyleDeclarationJs style; | |
7691 | |
7692 _CSSValueJs getPresentationAttribute(String name) native; | |
7693 | |
7694 // From SVGTransformable | |
7695 | |
7696 final _SVGAnimatedTransformListJs transform; | |
7697 | |
7698 // From SVGLocatable | |
7699 | |
7700 final _SVGElementJs farthestViewportElement; | |
7701 | |
7702 final _SVGElementJs nearestViewportElement; | |
7703 | |
7704 _SVGRectJs getBBox() native; | |
7705 | |
7706 _SVGMatrixJs getCTM() native; | |
7707 | |
7708 _SVGMatrixJs getScreenCTM() native; | |
7709 | |
7710 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
7711 } | |
7712 | |
7713 class _SVGGlyphElementJs extends _SVGElementJs implements SVGGlyphElement native
"*SVGGlyphElement" { | |
7714 } | |
7715 | |
7716 class _SVGGlyphRefElementJs extends _SVGElementJs implements SVGGlyphRefElement
native "*SVGGlyphRefElement" { | |
7717 | |
7718 num dx; | |
7719 | |
7720 num dy; | |
7721 | |
7722 String format; | |
7723 | |
7724 String glyphRef; | |
7725 | |
7726 num x; | |
7727 | |
7728 num y; | |
7729 | |
7730 // From SVGURIReference | |
7731 | |
7732 final _SVGAnimatedStringJs href; | |
7733 | |
7734 // From SVGStylable | |
7735 | |
7736 // Shadowing definition. | |
7737 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7738 | |
7739 // Use implementation from Element. | |
7740 // final _CSSStyleDeclarationJs style; | |
7741 | |
7742 _CSSValueJs getPresentationAttribute(String name) native; | |
7743 } | |
7744 | |
7745 class _SVGGradientElementJs extends _SVGElementJs implements SVGGradientElement
native "*SVGGradientElement" { | |
7746 | |
7747 static const int SVG_SPREADMETHOD_PAD = 1; | |
7748 | |
7749 static const int SVG_SPREADMETHOD_REFLECT = 2; | |
7750 | |
7751 static const int SVG_SPREADMETHOD_REPEAT = 3; | |
7752 | |
7753 static const int SVG_SPREADMETHOD_UNKNOWN = 0; | |
7754 | |
7755 final _SVGAnimatedTransformListJs gradientTransform; | |
7756 | |
7757 final _SVGAnimatedEnumerationJs gradientUnits; | |
7758 | |
7759 final _SVGAnimatedEnumerationJs spreadMethod; | |
7760 | |
7761 // From SVGURIReference | |
7762 | |
7763 final _SVGAnimatedStringJs href; | |
7764 | |
7765 // From SVGExternalResourcesRequired | |
7766 | |
7767 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
7768 | |
7769 // From SVGStylable | |
7770 | |
7771 // Shadowing definition. | |
7772 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7773 | |
7774 // Use implementation from Element. | |
7775 // final _CSSStyleDeclarationJs style; | |
7776 | |
7777 _CSSValueJs getPresentationAttribute(String name) native; | |
7778 } | |
7779 | |
7780 class _SVGHKernElementJs extends _SVGElementJs implements SVGHKernElement native
"*SVGHKernElement" { | |
7781 } | |
7782 | |
7783 class _SVGImageElementJs extends _SVGElementJs implements SVGImageElement native
"*SVGImageElement" { | |
7784 | |
7785 final _SVGAnimatedLengthJs height; | |
7786 | |
7787 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
7788 | |
7789 final _SVGAnimatedLengthJs width; | |
7790 | |
7791 final _SVGAnimatedLengthJs x; | |
7792 | |
7793 final _SVGAnimatedLengthJs y; | |
7794 | |
7795 // From SVGURIReference | |
7796 | |
7797 final _SVGAnimatedStringJs href; | |
7798 | |
7799 // From SVGTests | |
7800 | |
7801 final _SVGStringListJs requiredExtensions; | |
7802 | |
7803 final _SVGStringListJs requiredFeatures; | |
7804 | |
7805 final _SVGStringListJs systemLanguage; | |
7806 | |
7807 bool hasExtension(String extension) native; | |
7808 | |
7809 // From SVGLangSpace | |
7810 | |
7811 String xmllang; | |
7812 | |
7813 String xmlspace; | |
7814 | |
7815 // From SVGExternalResourcesRequired | |
7816 | |
7817 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
7818 | |
7819 // From SVGStylable | |
7820 | |
7821 // Shadowing definition. | |
7822 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7823 | |
7824 // Use implementation from Element. | |
7825 // final _CSSStyleDeclarationJs style; | |
7826 | |
7827 _CSSValueJs getPresentationAttribute(String name) native; | |
7828 | |
7829 // From SVGTransformable | |
7830 | |
7831 final _SVGAnimatedTransformListJs transform; | |
7832 | |
7833 // From SVGLocatable | |
7834 | |
7835 final _SVGElementJs farthestViewportElement; | |
7836 | |
7837 final _SVGElementJs nearestViewportElement; | |
7838 | |
7839 _SVGRectJs getBBox() native; | |
7840 | |
7841 _SVGMatrixJs getCTM() native; | |
7842 | |
7843 _SVGMatrixJs getScreenCTM() native; | |
7844 | |
7845 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
7846 } | |
7847 | |
7848 class _SVGLengthJs extends _DOMTypeJs implements SVGLength native "*SVGLength" { | |
7849 | |
7850 static const int SVG_LENGTHTYPE_CM = 6; | |
7851 | |
7852 static const int SVG_LENGTHTYPE_EMS = 3; | |
7853 | |
7854 static const int SVG_LENGTHTYPE_EXS = 4; | |
7855 | |
7856 static const int SVG_LENGTHTYPE_IN = 8; | |
7857 | |
7858 static const int SVG_LENGTHTYPE_MM = 7; | |
7859 | |
7860 static const int SVG_LENGTHTYPE_NUMBER = 1; | |
7861 | |
7862 static const int SVG_LENGTHTYPE_PC = 10; | |
7863 | |
7864 static const int SVG_LENGTHTYPE_PERCENTAGE = 2; | |
7865 | |
7866 static const int SVG_LENGTHTYPE_PT = 9; | |
7867 | |
7868 static const int SVG_LENGTHTYPE_PX = 5; | |
7869 | |
7870 static const int SVG_LENGTHTYPE_UNKNOWN = 0; | |
7871 | |
7872 final int unitType; | |
7873 | |
7874 num value; | |
7875 | |
7876 String valueAsString; | |
7877 | |
7878 num valueInSpecifiedUnits; | |
7879 | |
7880 void convertToSpecifiedUnits(int unitType) native; | |
7881 | |
7882 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | |
7883 } | |
7884 | |
7885 class _SVGLengthListJs extends _DOMTypeJs implements SVGLengthList native "*SVGL
engthList" { | |
7886 | |
7887 final int numberOfItems; | |
7888 | |
7889 _SVGLengthJs appendItem(_SVGLengthJs item) native; | |
7890 | |
7891 void clear() native; | |
7892 | |
7893 _SVGLengthJs getItem(int index) native; | |
7894 | |
7895 _SVGLengthJs initialize(_SVGLengthJs item) native; | |
7896 | |
7897 _SVGLengthJs insertItemBefore(_SVGLengthJs item, int index) native; | |
7898 | |
7899 _SVGLengthJs removeItem(int index) native; | |
7900 | |
7901 _SVGLengthJs replaceItem(_SVGLengthJs item, int index) native; | |
7902 } | |
7903 | |
7904 class _SVGLineElementJs extends _SVGElementJs implements SVGLineElement native "
*SVGLineElement" { | |
7905 | |
7906 final _SVGAnimatedLengthJs x1; | |
7907 | |
7908 final _SVGAnimatedLengthJs x2; | |
7909 | |
7910 final _SVGAnimatedLengthJs y1; | |
7911 | |
7912 final _SVGAnimatedLengthJs y2; | |
7913 | |
7914 // From SVGTests | |
7915 | |
7916 final _SVGStringListJs requiredExtensions; | |
7917 | |
7918 final _SVGStringListJs requiredFeatures; | |
7919 | |
7920 final _SVGStringListJs systemLanguage; | |
7921 | |
7922 bool hasExtension(String extension) native; | |
7923 | |
7924 // From SVGLangSpace | |
7925 | |
7926 String xmllang; | |
7927 | |
7928 String xmlspace; | |
7929 | |
7930 // From SVGExternalResourcesRequired | |
7931 | |
7932 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
7933 | |
7934 // From SVGStylable | |
7935 | |
7936 // Shadowing definition. | |
7937 _SVGAnimatedStringJs get className() native "return this.className;"; | |
7938 | |
7939 // Use implementation from Element. | |
7940 // final _CSSStyleDeclarationJs style; | |
7941 | |
7942 _CSSValueJs getPresentationAttribute(String name) native; | |
7943 | |
7944 // From SVGTransformable | |
7945 | |
7946 final _SVGAnimatedTransformListJs transform; | |
7947 | |
7948 // From SVGLocatable | |
7949 | |
7950 final _SVGElementJs farthestViewportElement; | |
7951 | |
7952 final _SVGElementJs nearestViewportElement; | |
7953 | |
7954 _SVGRectJs getBBox() native; | |
7955 | |
7956 _SVGMatrixJs getCTM() native; | |
7957 | |
7958 _SVGMatrixJs getScreenCTM() native; | |
7959 | |
7960 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
7961 } | |
7962 | |
7963 class _SVGLinearGradientElementJs extends _SVGGradientElementJs implements SVGLi
nearGradientElement native "*SVGLinearGradientElement" { | |
7964 | |
7965 final _SVGAnimatedLengthJs x1; | |
7966 | |
7967 final _SVGAnimatedLengthJs x2; | |
7968 | |
7969 final _SVGAnimatedLengthJs y1; | |
7970 | |
7971 final _SVGAnimatedLengthJs y2; | |
7972 } | |
7973 | |
7974 class _SVGMPathElementJs extends _SVGElementJs implements SVGMPathElement native
"*SVGMPathElement" { | |
7975 | |
7976 // From SVGURIReference | |
7977 | |
7978 final _SVGAnimatedStringJs href; | |
7979 | |
7980 // From SVGExternalResourcesRequired | |
7981 | |
7982 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
7983 } | |
7984 | |
7985 class _SVGMarkerElementJs extends _SVGElementJs implements SVGMarkerElement nati
ve "*SVGMarkerElement" { | |
7986 | |
7987 static const int SVG_MARKERUNITS_STROKEWIDTH = 2; | |
7988 | |
7989 static const int SVG_MARKERUNITS_UNKNOWN = 0; | |
7990 | |
7991 static const int SVG_MARKERUNITS_USERSPACEONUSE = 1; | |
7992 | |
7993 static const int SVG_MARKER_ORIENT_ANGLE = 2; | |
7994 | |
7995 static const int SVG_MARKER_ORIENT_AUTO = 1; | |
7996 | |
7997 static const int SVG_MARKER_ORIENT_UNKNOWN = 0; | |
7998 | |
7999 final _SVGAnimatedLengthJs markerHeight; | |
8000 | |
8001 final _SVGAnimatedEnumerationJs markerUnits; | |
8002 | |
8003 final _SVGAnimatedLengthJs markerWidth; | |
8004 | |
8005 final _SVGAnimatedAngleJs orientAngle; | |
8006 | |
8007 final _SVGAnimatedEnumerationJs orientType; | |
8008 | |
8009 final _SVGAnimatedLengthJs refX; | |
8010 | |
8011 final _SVGAnimatedLengthJs refY; | |
8012 | |
8013 void setOrientToAngle(_SVGAngleJs angle) native; | |
8014 | |
8015 void setOrientToAuto() native; | |
8016 | |
8017 // From SVGLangSpace | |
8018 | |
8019 String xmllang; | |
8020 | |
8021 String xmlspace; | |
8022 | |
8023 // From SVGExternalResourcesRequired | |
8024 | |
8025 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
8026 | |
8027 // From SVGStylable | |
8028 | |
8029 // Shadowing definition. | |
8030 _SVGAnimatedStringJs get className() native "return this.className;"; | |
8031 | |
8032 // Use implementation from Element. | |
8033 // final _CSSStyleDeclarationJs style; | |
8034 | |
8035 _CSSValueJs getPresentationAttribute(String name) native; | |
8036 | |
8037 // From SVGFitToViewBox | |
8038 | |
8039 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
8040 | |
8041 final _SVGAnimatedRectJs viewBox; | |
8042 } | |
8043 | |
8044 class _SVGMaskElementJs extends _SVGElementJs implements SVGMaskElement native "
*SVGMaskElement" { | |
8045 | |
8046 final _SVGAnimatedLengthJs height; | |
8047 | |
8048 final _SVGAnimatedEnumerationJs maskContentUnits; | |
8049 | |
8050 final _SVGAnimatedEnumerationJs maskUnits; | |
8051 | |
8052 final _SVGAnimatedLengthJs width; | |
8053 | |
8054 final _SVGAnimatedLengthJs x; | |
8055 | |
8056 final _SVGAnimatedLengthJs y; | |
8057 | |
8058 // From SVGTests | |
8059 | |
8060 final _SVGStringListJs requiredExtensions; | |
8061 | |
8062 final _SVGStringListJs requiredFeatures; | |
8063 | |
8064 final _SVGStringListJs systemLanguage; | |
8065 | |
8066 bool hasExtension(String extension) native; | |
8067 | |
8068 // From SVGLangSpace | |
8069 | |
8070 String xmllang; | |
8071 | |
8072 String xmlspace; | |
8073 | |
8074 // From SVGExternalResourcesRequired | |
8075 | |
8076 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
8077 | |
8078 // From SVGStylable | |
8079 | |
8080 // Shadowing definition. | |
8081 _SVGAnimatedStringJs get className() native "return this.className;"; | |
8082 | |
8083 // Use implementation from Element. | |
8084 // final _CSSStyleDeclarationJs style; | |
8085 | |
8086 _CSSValueJs getPresentationAttribute(String name) native; | |
8087 } | |
8088 | |
8089 class _SVGMatrixJs extends _DOMTypeJs implements SVGMatrix native "*SVGMatrix" { | |
8090 | |
8091 num a; | |
8092 | |
8093 num b; | |
8094 | |
8095 num c; | |
8096 | |
8097 num d; | |
8098 | |
8099 num e; | |
8100 | |
8101 num f; | |
8102 | |
8103 _SVGMatrixJs flipX() native; | |
8104 | |
8105 _SVGMatrixJs flipY() native; | |
8106 | |
8107 _SVGMatrixJs inverse() native; | |
8108 | |
8109 _SVGMatrixJs multiply(_SVGMatrixJs secondMatrix) native; | |
8110 | |
8111 _SVGMatrixJs rotate(num angle) native; | |
8112 | |
8113 _SVGMatrixJs rotateFromVector(num x, num y) native; | |
8114 | |
8115 _SVGMatrixJs scale(num scaleFactor) native; | |
8116 | |
8117 _SVGMatrixJs scaleNonUniform(num scaleFactorX, num scaleFactorY) native; | |
8118 | |
8119 _SVGMatrixJs skewX(num angle) native; | |
8120 | |
8121 _SVGMatrixJs skewY(num angle) native; | |
8122 | |
8123 _SVGMatrixJs translate(num x, num y) native; | |
8124 } | |
8125 | |
8126 class _SVGMetadataElementJs extends _SVGElementJs implements SVGMetadataElement
native "*SVGMetadataElement" { | |
8127 } | |
8128 | |
8129 class _SVGMissingGlyphElementJs extends _SVGElementJs implements SVGMissingGlyph
Element native "*SVGMissingGlyphElement" { | |
8130 } | |
8131 | |
8132 class _SVGNumberJs extends _DOMTypeJs implements SVGNumber native "*SVGNumber" { | |
8133 | |
8134 num value; | |
8135 } | |
8136 | |
8137 class _SVGNumberListJs extends _DOMTypeJs implements SVGNumberList native "*SVGN
umberList" { | |
8138 | |
8139 final int numberOfItems; | |
8140 | |
8141 _SVGNumberJs appendItem(_SVGNumberJs item) native; | |
8142 | |
8143 void clear() native; | |
8144 | |
8145 _SVGNumberJs getItem(int index) native; | |
8146 | |
8147 _SVGNumberJs initialize(_SVGNumberJs item) native; | |
8148 | |
8149 _SVGNumberJs insertItemBefore(_SVGNumberJs item, int index) native; | |
8150 | |
8151 _SVGNumberJs removeItem(int index) native; | |
8152 | |
8153 _SVGNumberJs replaceItem(_SVGNumberJs item, int index) native; | |
8154 } | |
8155 | |
8156 class _SVGPaintJs extends _SVGColorJs implements SVGPaint native "*SVGPaint" { | |
8157 | |
8158 static const int SVG_PAINTTYPE_CURRENTCOLOR = 102; | |
8159 | |
8160 static const int SVG_PAINTTYPE_NONE = 101; | |
8161 | |
8162 static const int SVG_PAINTTYPE_RGBCOLOR = 1; | |
8163 | |
8164 static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; | |
8165 | |
8166 static const int SVG_PAINTTYPE_UNKNOWN = 0; | |
8167 | |
8168 static const int SVG_PAINTTYPE_URI = 107; | |
8169 | |
8170 static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104; | |
8171 | |
8172 static const int SVG_PAINTTYPE_URI_NONE = 103; | |
8173 | |
8174 static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105; | |
8175 | |
8176 static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106; | |
8177 | |
8178 final int paintType; | |
8179 | |
8180 final String uri; | |
8181 | |
8182 void setPaint(int paintType, String uri, String rgbColor, String iccColor) nat
ive; | |
8183 | |
8184 void setUri(String uri) native; | |
8185 } | |
8186 | |
8187 class _SVGPathElementJs extends _SVGElementJs implements SVGPathElement native "
*SVGPathElement" { | |
8188 | |
8189 final _SVGPathSegListJs animatedNormalizedPathSegList; | |
8190 | |
8191 final _SVGPathSegListJs animatedPathSegList; | |
8192 | |
8193 final _SVGPathSegListJs normalizedPathSegList; | |
8194 | |
8195 final _SVGAnimatedNumberJs pathLength; | |
8196 | |
8197 final _SVGPathSegListJs pathSegList; | |
8198 | |
8199 _SVGPathSegArcAbsJs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num a
ngle, bool largeArcFlag, bool sweepFlag) native; | |
8200 | |
8201 _SVGPathSegArcRelJs createSVGPathSegArcRel(num x, num y, num r1, num r2, num a
ngle, bool largeArcFlag, bool sweepFlag) native; | |
8202 | |
8203 _SVGPathSegClosePathJs createSVGPathSegClosePath() native; | |
8204 | |
8205 _SVGPathSegCurvetoCubicAbsJs createSVGPathSegCurvetoCubicAbs(num x, num y, num
x1, num y1, num x2, num y2) native; | |
8206 | |
8207 _SVGPathSegCurvetoCubicRelJs createSVGPathSegCurvetoCubicRel(num x, num y, num
x1, num y1, num x2, num y2) native; | |
8208 | |
8209 _SVGPathSegCurvetoCubicSmoothAbsJs createSVGPathSegCurvetoCubicSmoothAbs(num x
, num y, num x2, num y2) native; | |
8210 | |
8211 _SVGPathSegCurvetoCubicSmoothRelJs createSVGPathSegCurvetoCubicSmoothRel(num x
, num y, num x2, num y2) native; | |
8212 | |
8213 _SVGPathSegCurvetoQuadraticAbsJs createSVGPathSegCurvetoQuadraticAbs(num x, nu
m y, num x1, num y1) native; | |
8214 | |
8215 _SVGPathSegCurvetoQuadraticRelJs createSVGPathSegCurvetoQuadraticRel(num x, nu
m y, num x1, num y1) native; | |
8216 | |
8217 _SVGPathSegCurvetoQuadraticSmoothAbsJs createSVGPathSegCurvetoQuadraticSmoothA
bs(num x, num y) native; | |
8218 | |
8219 _SVGPathSegCurvetoQuadraticSmoothRelJs createSVGPathSegCurvetoQuadraticSmoothR
el(num x, num y) native; | |
8220 | |
8221 _SVGPathSegLinetoAbsJs createSVGPathSegLinetoAbs(num x, num y) native; | |
8222 | |
8223 _SVGPathSegLinetoHorizontalAbsJs createSVGPathSegLinetoHorizontalAbs(num x) na
tive; | |
8224 | |
8225 _SVGPathSegLinetoHorizontalRelJs createSVGPathSegLinetoHorizontalRel(num x) na
tive; | |
8226 | |
8227 _SVGPathSegLinetoRelJs createSVGPathSegLinetoRel(num x, num y) native; | |
8228 | |
8229 _SVGPathSegLinetoVerticalAbsJs createSVGPathSegLinetoVerticalAbs(num y) native
; | |
8230 | |
8231 _SVGPathSegLinetoVerticalRelJs createSVGPathSegLinetoVerticalRel(num y) native
; | |
8232 | |
8233 _SVGPathSegMovetoAbsJs createSVGPathSegMovetoAbs(num x, num y) native; | |
8234 | |
8235 _SVGPathSegMovetoRelJs createSVGPathSegMovetoRel(num x, num y) native; | |
8236 | |
8237 int getPathSegAtLength(num distance) native; | |
8238 | |
8239 _SVGPointJs getPointAtLength(num distance) native; | |
8240 | |
8241 num getTotalLength() native; | |
8242 | |
8243 // From SVGTests | |
8244 | |
8245 final _SVGStringListJs requiredExtensions; | |
8246 | |
8247 final _SVGStringListJs requiredFeatures; | |
8248 | |
8249 final _SVGStringListJs systemLanguage; | |
8250 | |
8251 bool hasExtension(String extension) native; | |
8252 | |
8253 // From SVGLangSpace | |
8254 | |
8255 String xmllang; | |
8256 | |
8257 String xmlspace; | |
8258 | |
8259 // From SVGExternalResourcesRequired | |
8260 | |
8261 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
8262 | |
8263 // From SVGStylable | |
8264 | |
8265 // Shadowing definition. | |
8266 _SVGAnimatedStringJs get className() native "return this.className;"; | |
8267 | |
8268 // Use implementation from Element. | |
8269 // final _CSSStyleDeclarationJs style; | |
8270 | |
8271 _CSSValueJs getPresentationAttribute(String name) native; | |
8272 | |
8273 // From SVGTransformable | |
8274 | |
8275 final _SVGAnimatedTransformListJs transform; | |
8276 | |
8277 // From SVGLocatable | |
8278 | |
8279 final _SVGElementJs farthestViewportElement; | |
8280 | |
8281 final _SVGElementJs nearestViewportElement; | |
8282 | |
8283 _SVGRectJs getBBox() native; | |
8284 | |
8285 _SVGMatrixJs getCTM() native; | |
8286 | |
8287 _SVGMatrixJs getScreenCTM() native; | |
8288 | |
8289 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
8290 } | |
8291 | |
8292 class _SVGPathSegJs extends _DOMTypeJs implements SVGPathSeg native "*SVGPathSeg
" { | |
8293 | |
8294 static const int PATHSEG_ARC_ABS = 10; | |
8295 | |
8296 static const int PATHSEG_ARC_REL = 11; | |
8297 | |
8298 static const int PATHSEG_CLOSEPATH = 1; | |
8299 | |
8300 static const int PATHSEG_CURVETO_CUBIC_ABS = 6; | |
8301 | |
8302 static const int PATHSEG_CURVETO_CUBIC_REL = 7; | |
8303 | |
8304 static const int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; | |
8305 | |
8306 static const int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; | |
8307 | |
8308 static const int PATHSEG_CURVETO_QUADRATIC_ABS = 8; | |
8309 | |
8310 static const int PATHSEG_CURVETO_QUADRATIC_REL = 9; | |
8311 | |
8312 static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; | |
8313 | |
8314 static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; | |
8315 | |
8316 static const int PATHSEG_LINETO_ABS = 4; | |
8317 | |
8318 static const int PATHSEG_LINETO_HORIZONTAL_ABS = 12; | |
8319 | |
8320 static const int PATHSEG_LINETO_HORIZONTAL_REL = 13; | |
8321 | |
8322 static const int PATHSEG_LINETO_REL = 5; | |
8323 | |
8324 static const int PATHSEG_LINETO_VERTICAL_ABS = 14; | |
8325 | |
8326 static const int PATHSEG_LINETO_VERTICAL_REL = 15; | |
8327 | |
8328 static const int PATHSEG_MOVETO_ABS = 2; | |
8329 | |
8330 static const int PATHSEG_MOVETO_REL = 3; | |
8331 | |
8332 static const int PATHSEG_UNKNOWN = 0; | |
8333 | |
8334 final int pathSegType; | |
8335 | |
8336 final String pathSegTypeAsLetter; | |
8337 } | |
8338 | |
8339 class _SVGPathSegArcAbsJs extends _SVGPathSegJs implements SVGPathSegArcAbs nati
ve "*SVGPathSegArcAbs" { | |
8340 | |
8341 num angle; | |
8342 | |
8343 bool largeArcFlag; | |
8344 | |
8345 num r1; | |
8346 | |
8347 num r2; | |
8348 | |
8349 bool sweepFlag; | |
8350 | |
8351 num x; | |
8352 | |
8353 num y; | |
8354 } | |
8355 | |
8356 class _SVGPathSegArcRelJs extends _SVGPathSegJs implements SVGPathSegArcRel nati
ve "*SVGPathSegArcRel" { | |
8357 | |
8358 num angle; | |
8359 | |
8360 bool largeArcFlag; | |
8361 | |
8362 num r1; | |
8363 | |
8364 num r2; | |
8365 | |
8366 bool sweepFlag; | |
8367 | |
8368 num x; | |
8369 | |
8370 num y; | |
8371 } | |
8372 | |
8373 class _SVGPathSegClosePathJs extends _SVGPathSegJs implements SVGPathSegClosePat
h native "*SVGPathSegClosePath" { | |
8374 } | |
8375 | |
8376 class _SVGPathSegCurvetoCubicAbsJs extends _SVGPathSegJs implements SVGPathSegCu
rvetoCubicAbs native "*SVGPathSegCurvetoCubicAbs" { | |
8377 | |
8378 num x; | |
8379 | |
8380 num x1; | |
8381 | |
8382 num x2; | |
8383 | |
8384 num y; | |
8385 | |
8386 num y1; | |
8387 | |
8388 num y2; | |
8389 } | |
8390 | |
8391 class _SVGPathSegCurvetoCubicRelJs extends _SVGPathSegJs implements SVGPathSegCu
rvetoCubicRel native "*SVGPathSegCurvetoCubicRel" { | |
8392 | |
8393 num x; | |
8394 | |
8395 num x1; | |
8396 | |
8397 num x2; | |
8398 | |
8399 num y; | |
8400 | |
8401 num y1; | |
8402 | |
8403 num y2; | |
8404 } | |
8405 | |
8406 class _SVGPathSegCurvetoCubicSmoothAbsJs extends _SVGPathSegJs implements SVGPat
hSegCurvetoCubicSmoothAbs native "*SVGPathSegCurvetoCubicSmoothAbs" { | |
8407 | |
8408 num x; | |
8409 | |
8410 num x2; | |
8411 | |
8412 num y; | |
8413 | |
8414 num y2; | |
8415 } | |
8416 | |
8417 class _SVGPathSegCurvetoCubicSmoothRelJs extends _SVGPathSegJs implements SVGPat
hSegCurvetoCubicSmoothRel native "*SVGPathSegCurvetoCubicSmoothRel" { | |
8418 | |
8419 num x; | |
8420 | |
8421 num x2; | |
8422 | |
8423 num y; | |
8424 | |
8425 num y2; | |
8426 } | |
8427 | |
8428 class _SVGPathSegCurvetoQuadraticAbsJs extends _SVGPathSegJs implements SVGPathS
egCurvetoQuadraticAbs native "*SVGPathSegCurvetoQuadraticAbs" { | |
8429 | |
8430 num x; | |
8431 | |
8432 num x1; | |
8433 | |
8434 num y; | |
8435 | |
8436 num y1; | |
8437 } | |
8438 | |
8439 class _SVGPathSegCurvetoQuadraticRelJs extends _SVGPathSegJs implements SVGPathS
egCurvetoQuadraticRel native "*SVGPathSegCurvetoQuadraticRel" { | |
8440 | |
8441 num x; | |
8442 | |
8443 num x1; | |
8444 | |
8445 num y; | |
8446 | |
8447 num y1; | |
8448 } | |
8449 | |
8450 class _SVGPathSegCurvetoQuadraticSmoothAbsJs extends _SVGPathSegJs implements SV
GPathSegCurvetoQuadraticSmoothAbs native "*SVGPathSegCurvetoQuadraticSmoothAbs"
{ | |
8451 | |
8452 num x; | |
8453 | |
8454 num y; | |
8455 } | |
8456 | |
8457 class _SVGPathSegCurvetoQuadraticSmoothRelJs extends _SVGPathSegJs implements SV
GPathSegCurvetoQuadraticSmoothRel native "*SVGPathSegCurvetoQuadraticSmoothRel"
{ | |
8458 | |
8459 num x; | |
8460 | |
8461 num y; | |
8462 } | |
8463 | |
8464 class _SVGPathSegLinetoAbsJs extends _SVGPathSegJs implements SVGPathSegLinetoAb
s native "*SVGPathSegLinetoAbs" { | |
8465 | |
8466 num x; | |
8467 | |
8468 num y; | |
8469 } | |
8470 | |
8471 class _SVGPathSegLinetoHorizontalAbsJs extends _SVGPathSegJs implements SVGPathS
egLinetoHorizontalAbs native "*SVGPathSegLinetoHorizontalAbs" { | |
8472 | |
8473 num x; | |
8474 } | |
8475 | |
8476 class _SVGPathSegLinetoHorizontalRelJs extends _SVGPathSegJs implements SVGPathS
egLinetoHorizontalRel native "*SVGPathSegLinetoHorizontalRel" { | |
8477 | |
8478 num x; | |
8479 } | |
8480 | |
8481 class _SVGPathSegLinetoRelJs extends _SVGPathSegJs implements SVGPathSegLinetoRe
l native "*SVGPathSegLinetoRel" { | |
8482 | |
8483 num x; | |
8484 | |
8485 num y; | |
8486 } | |
8487 | |
8488 class _SVGPathSegLinetoVerticalAbsJs extends _SVGPathSegJs implements SVGPathSeg
LinetoVerticalAbs native "*SVGPathSegLinetoVerticalAbs" { | |
8489 | |
8490 num y; | |
8491 } | |
8492 | |
8493 class _SVGPathSegLinetoVerticalRelJs extends _SVGPathSegJs implements SVGPathSeg
LinetoVerticalRel native "*SVGPathSegLinetoVerticalRel" { | |
8494 | |
8495 num y; | |
8496 } | |
8497 | |
8498 class _SVGPathSegListJs extends _DOMTypeJs implements SVGPathSegList native "*SV
GPathSegList" { | |
8499 | |
8500 final int numberOfItems; | |
8501 | |
8502 _SVGPathSegJs appendItem(_SVGPathSegJs newItem) native; | |
8503 | |
8504 void clear() native; | |
8505 | |
8506 _SVGPathSegJs getItem(int index) native; | |
8507 | |
8508 _SVGPathSegJs initialize(_SVGPathSegJs newItem) native; | |
8509 | |
8510 _SVGPathSegJs insertItemBefore(_SVGPathSegJs newItem, int index) native; | |
8511 | |
8512 _SVGPathSegJs removeItem(int index) native; | |
8513 | |
8514 _SVGPathSegJs replaceItem(_SVGPathSegJs newItem, int index) native; | |
8515 } | |
8516 | |
8517 class _SVGPathSegMovetoAbsJs extends _SVGPathSegJs implements SVGPathSegMovetoAb
s native "*SVGPathSegMovetoAbs" { | |
8518 | |
8519 num x; | |
8520 | |
8521 num y; | |
8522 } | |
8523 | |
8524 class _SVGPathSegMovetoRelJs extends _SVGPathSegJs implements SVGPathSegMovetoRe
l native "*SVGPathSegMovetoRel" { | |
8525 | |
8526 num x; | |
8527 | |
8528 num y; | |
8529 } | |
8530 | |
8531 class _SVGPatternElementJs extends _SVGElementJs implements SVGPatternElement na
tive "*SVGPatternElement" { | |
8532 | |
8533 final _SVGAnimatedLengthJs height; | |
8534 | |
8535 final _SVGAnimatedEnumerationJs patternContentUnits; | |
8536 | |
8537 final _SVGAnimatedTransformListJs patternTransform; | |
8538 | |
8539 final _SVGAnimatedEnumerationJs patternUnits; | |
8540 | |
8541 final _SVGAnimatedLengthJs width; | |
8542 | |
8543 final _SVGAnimatedLengthJs x; | |
8544 | |
8545 final _SVGAnimatedLengthJs y; | |
8546 | |
8547 // From SVGURIReference | |
8548 | |
8549 final _SVGAnimatedStringJs href; | |
8550 | |
8551 // From SVGTests | |
8552 | |
8553 final _SVGStringListJs requiredExtensions; | |
8554 | |
8555 final _SVGStringListJs requiredFeatures; | |
8556 | |
8557 final _SVGStringListJs systemLanguage; | |
8558 | |
8559 bool hasExtension(String extension) native; | |
8560 | |
8561 // From SVGLangSpace | |
8562 | |
8563 String xmllang; | |
8564 | |
8565 String xmlspace; | |
8566 | |
8567 // From SVGExternalResourcesRequired | |
8568 | |
8569 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
8570 | |
8571 // From SVGStylable | |
8572 | |
8573 // Shadowing definition. | |
8574 _SVGAnimatedStringJs get className() native "return this.className;"; | |
8575 | |
8576 // Use implementation from Element. | |
8577 // final _CSSStyleDeclarationJs style; | |
8578 | |
8579 _CSSValueJs getPresentationAttribute(String name) native; | |
8580 | |
8581 // From SVGFitToViewBox | |
8582 | |
8583 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
8584 | |
8585 final _SVGAnimatedRectJs viewBox; | |
8586 } | |
8587 | |
8588 class _SVGPointJs extends _DOMTypeJs implements SVGPoint native "*SVGPoint" { | |
8589 | |
8590 num x; | |
8591 | |
8592 num y; | |
8593 | |
8594 _SVGPointJs matrixTransform(_SVGMatrixJs matrix) native; | |
8595 } | |
8596 | |
8597 class _SVGPointListJs extends _DOMTypeJs implements SVGPointList native "*SVGPoi
ntList" { | |
8598 | |
8599 final int numberOfItems; | |
8600 | |
8601 _SVGPointJs appendItem(_SVGPointJs item) native; | |
8602 | |
8603 void clear() native; | |
8604 | |
8605 _SVGPointJs getItem(int index) native; | |
8606 | |
8607 _SVGPointJs initialize(_SVGPointJs item) native; | |
8608 | |
8609 _SVGPointJs insertItemBefore(_SVGPointJs item, int index) native; | |
8610 | |
8611 _SVGPointJs removeItem(int index) native; | |
8612 | |
8613 _SVGPointJs replaceItem(_SVGPointJs item, int index) native; | |
8614 } | |
8615 | |
8616 class _SVGPolygonElementJs extends _SVGElementJs implements SVGPolygonElement na
tive "*SVGPolygonElement" { | |
8617 | |
8618 final _SVGPointListJs animatedPoints; | |
8619 | |
8620 final _SVGPointListJs points; | |
8621 | |
8622 // From SVGTests | |
8623 | |
8624 final _SVGStringListJs requiredExtensions; | |
8625 | |
8626 final _SVGStringListJs requiredFeatures; | |
8627 | |
8628 final _SVGStringListJs systemLanguage; | |
8629 | |
8630 bool hasExtension(String extension) native; | |
8631 | |
8632 // From SVGLangSpace | |
8633 | |
8634 String xmllang; | |
8635 | |
8636 String xmlspace; | |
8637 | |
8638 // From SVGExternalResourcesRequired | |
8639 | |
8640 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
8641 | |
8642 // From SVGStylable | |
8643 | |
8644 // Shadowing definition. | |
8645 _SVGAnimatedStringJs get className() native "return this.className;"; | |
8646 | |
8647 // Use implementation from Element. | |
8648 // final _CSSStyleDeclarationJs style; | |
8649 | |
8650 _CSSValueJs getPresentationAttribute(String name) native; | |
8651 | |
8652 // From SVGTransformable | |
8653 | |
8654 final _SVGAnimatedTransformListJs transform; | |
8655 | |
8656 // From SVGLocatable | |
8657 | |
8658 final _SVGElementJs farthestViewportElement; | |
8659 | |
8660 final _SVGElementJs nearestViewportElement; | |
8661 | |
8662 _SVGRectJs getBBox() native; | |
8663 | |
8664 _SVGMatrixJs getCTM() native; | |
8665 | |
8666 _SVGMatrixJs getScreenCTM() native; | |
8667 | |
8668 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
8669 } | |
8670 | |
8671 class _SVGPolylineElementJs extends _SVGElementJs implements SVGPolylineElement
native "*SVGPolylineElement" { | |
8672 | |
8673 final _SVGPointListJs animatedPoints; | |
8674 | |
8675 final _SVGPointListJs points; | |
8676 | |
8677 // From SVGTests | |
8678 | |
8679 final _SVGStringListJs requiredExtensions; | |
8680 | |
8681 final _SVGStringListJs requiredFeatures; | |
8682 | |
8683 final _SVGStringListJs systemLanguage; | |
8684 | |
8685 bool hasExtension(String extension) native; | |
8686 | |
8687 // From SVGLangSpace | |
8688 | |
8689 String xmllang; | |
8690 | |
8691 String xmlspace; | |
8692 | |
8693 // From SVGExternalResourcesRequired | |
8694 | |
8695 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
8696 | |
8697 // From SVGStylable | |
8698 | |
8699 // Shadowing definition. | |
8700 _SVGAnimatedStringJs get className() native "return this.className;"; | |
8701 | |
8702 // Use implementation from Element. | |
8703 // final _CSSStyleDeclarationJs style; | |
8704 | |
8705 _CSSValueJs getPresentationAttribute(String name) native; | |
8706 | |
8707 // From SVGTransformable | |
8708 | |
8709 final _SVGAnimatedTransformListJs transform; | |
8710 | |
8711 // From SVGLocatable | |
8712 | |
8713 final _SVGElementJs farthestViewportElement; | |
8714 | |
8715 final _SVGElementJs nearestViewportElement; | |
8716 | |
8717 _SVGRectJs getBBox() native; | |
8718 | |
8719 _SVGMatrixJs getCTM() native; | |
8720 | |
8721 _SVGMatrixJs getScreenCTM() native; | |
8722 | |
8723 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
8724 } | |
8725 | |
8726 class _SVGPreserveAspectRatioJs extends _DOMTypeJs implements SVGPreserveAspectR
atio native "*SVGPreserveAspectRatio" { | |
8727 | |
8728 static const int SVG_MEETORSLICE_MEET = 1; | |
8729 | |
8730 static const int SVG_MEETORSLICE_SLICE = 2; | |
8731 | |
8732 static const int SVG_MEETORSLICE_UNKNOWN = 0; | |
8733 | |
8734 static const int SVG_PRESERVEASPECTRATIO_NONE = 1; | |
8735 | |
8736 static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; | |
8737 | |
8738 static const int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; | |
8739 | |
8740 static const int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; | |
8741 | |
8742 static const int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; | |
8743 | |
8744 static const int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; | |
8745 | |
8746 static const int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; | |
8747 | |
8748 static const int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; | |
8749 | |
8750 static const int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; | |
8751 | |
8752 static const int SVG_PRESERVEASPECTRATIO_XMINYMID = 5; | |
8753 | |
8754 static const int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; | |
8755 | |
8756 int align; | |
8757 | |
8758 int meetOrSlice; | |
8759 } | |
8760 | |
8761 class _SVGRadialGradientElementJs extends _SVGGradientElementJs implements SVGRa
dialGradientElement native "*SVGRadialGradientElement" { | |
8762 | |
8763 final _SVGAnimatedLengthJs cx; | |
8764 | |
8765 final _SVGAnimatedLengthJs cy; | |
8766 | |
8767 final _SVGAnimatedLengthJs fx; | |
8768 | |
8769 final _SVGAnimatedLengthJs fy; | |
8770 | |
8771 final _SVGAnimatedLengthJs r; | |
8772 } | |
8773 | |
8774 class _SVGRectJs extends _DOMTypeJs implements SVGRect native "*SVGRect" { | |
8775 | |
8776 num height; | |
8777 | |
8778 num width; | |
8779 | |
8780 num x; | |
8781 | |
8782 num y; | |
8783 } | |
8784 | |
8785 class _SVGRectElementJs extends _SVGElementJs implements SVGRectElement native "
*SVGRectElement" { | |
8786 | |
8787 final _SVGAnimatedLengthJs height; | |
8788 | |
8789 final _SVGAnimatedLengthJs rx; | |
8790 | |
8791 final _SVGAnimatedLengthJs ry; | |
8792 | |
8793 final _SVGAnimatedLengthJs width; | |
8794 | |
8795 final _SVGAnimatedLengthJs x; | |
8796 | |
8797 final _SVGAnimatedLengthJs y; | |
8798 | |
8799 // From SVGTests | |
8800 | |
8801 final _SVGStringListJs requiredExtensions; | |
8802 | |
8803 final _SVGStringListJs requiredFeatures; | |
8804 | |
8805 final _SVGStringListJs systemLanguage; | |
8806 | |
8807 bool hasExtension(String extension) native; | |
8808 | |
8809 // From SVGLangSpace | |
8810 | |
8811 String xmllang; | |
8812 | |
8813 String xmlspace; | |
8814 | |
8815 // From SVGExternalResourcesRequired | |
8816 | |
8817 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
8818 | |
8819 // From SVGStylable | |
8820 | |
8821 // Shadowing definition. | |
8822 _SVGAnimatedStringJs get className() native "return this.className;"; | |
8823 | |
8824 // Use implementation from Element. | |
8825 // final _CSSStyleDeclarationJs style; | |
8826 | |
8827 _CSSValueJs getPresentationAttribute(String name) native; | |
8828 | |
8829 // From SVGTransformable | |
8830 | |
8831 final _SVGAnimatedTransformListJs transform; | |
8832 | |
8833 // From SVGLocatable | |
8834 | |
8835 final _SVGElementJs farthestViewportElement; | |
8836 | |
8837 final _SVGElementJs nearestViewportElement; | |
8838 | |
8839 _SVGRectJs getBBox() native; | |
8840 | |
8841 _SVGMatrixJs getCTM() native; | |
8842 | |
8843 _SVGMatrixJs getScreenCTM() native; | |
8844 | |
8845 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
8846 } | |
8847 | |
8848 class _SVGRenderingIntentJs extends _DOMTypeJs implements SVGRenderingIntent nat
ive "*SVGRenderingIntent" { | |
8849 | |
8850 static const int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; | |
8851 | |
8852 static const int RENDERING_INTENT_AUTO = 1; | |
8853 | |
8854 static const int RENDERING_INTENT_PERCEPTUAL = 2; | |
8855 | |
8856 static const int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; | |
8857 | |
8858 static const int RENDERING_INTENT_SATURATION = 4; | |
8859 | |
8860 static const int RENDERING_INTENT_UNKNOWN = 0; | |
8861 } | |
8862 | |
8863 class _SVGSVGElementJs extends _SVGElementJs implements SVGSVGElement native "*S
VGSVGElement" { | |
8864 | |
8865 String contentScriptType; | |
8866 | |
8867 String contentStyleType; | |
8868 | |
8869 num currentScale; | |
8870 | |
8871 final _SVGPointJs currentTranslate; | |
8872 | |
8873 final _SVGViewSpecJs currentView; | |
8874 | |
8875 final _SVGAnimatedLengthJs height; | |
8876 | |
8877 final num pixelUnitToMillimeterX; | |
8878 | |
8879 final num pixelUnitToMillimeterY; | |
8880 | |
8881 final num screenPixelToMillimeterX; | |
8882 | |
8883 final num screenPixelToMillimeterY; | |
8884 | |
8885 final bool useCurrentView; | |
8886 | |
8887 final _SVGRectJs viewport; | |
8888 | |
8889 final _SVGAnimatedLengthJs width; | |
8890 | |
8891 final _SVGAnimatedLengthJs x; | |
8892 | |
8893 final _SVGAnimatedLengthJs y; | |
8894 | |
8895 bool animationsPaused() native; | |
8896 | |
8897 bool checkEnclosure(_SVGElementJs element, _SVGRectJs rect) native; | |
8898 | |
8899 bool checkIntersection(_SVGElementJs element, _SVGRectJs rect) native; | |
8900 | |
8901 _SVGAngleJs createSVGAngle() native; | |
8902 | |
8903 _SVGLengthJs createSVGLength() native; | |
8904 | |
8905 _SVGMatrixJs createSVGMatrix() native; | |
8906 | |
8907 _SVGNumberJs createSVGNumber() native; | |
8908 | |
8909 _SVGPointJs createSVGPoint() native; | |
8910 | |
8911 _SVGRectJs createSVGRect() native; | |
8912 | |
8913 _SVGTransformJs createSVGTransform() native; | |
8914 | |
8915 _SVGTransformJs createSVGTransformFromMatrix(_SVGMatrixJs matrix) native; | |
8916 | |
8917 void deselectAll() native; | |
8918 | |
8919 void forceRedraw() native; | |
8920 | |
8921 num getCurrentTime() native; | |
8922 | |
8923 _ElementJs getElementById(String elementId) native; | |
8924 | |
8925 _NodeListJs getEnclosureList(_SVGRectJs rect, _SVGElementJs referenceElement)
native; | |
8926 | |
8927 _NodeListJs getIntersectionList(_SVGRectJs rect, _SVGElementJs referenceElemen
t) native; | |
8928 | |
8929 void pauseAnimations() native; | |
8930 | |
8931 void setCurrentTime(num seconds) native; | |
8932 | |
8933 int suspendRedraw(int maxWaitMilliseconds) native; | |
8934 | |
8935 void unpauseAnimations() native; | |
8936 | |
8937 void unsuspendRedraw(int suspendHandleId) native; | |
8938 | |
8939 void unsuspendRedrawAll() native; | |
8940 | |
8941 // From SVGTests | |
8942 | |
8943 final _SVGStringListJs requiredExtensions; | |
8944 | |
8945 final _SVGStringListJs requiredFeatures; | |
8946 | |
8947 final _SVGStringListJs systemLanguage; | |
8948 | |
8949 bool hasExtension(String extension) native; | |
8950 | |
8951 // From SVGLangSpace | |
8952 | |
8953 String xmllang; | |
8954 | |
8955 String xmlspace; | |
8956 | |
8957 // From SVGExternalResourcesRequired | |
8958 | |
8959 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
8960 | |
8961 // From SVGStylable | |
8962 | |
8963 // Shadowing definition. | |
8964 _SVGAnimatedStringJs get className() native "return this.className;"; | |
8965 | |
8966 // Use implementation from Element. | |
8967 // final _CSSStyleDeclarationJs style; | |
8968 | |
8969 _CSSValueJs getPresentationAttribute(String name) native; | |
8970 | |
8971 // From SVGLocatable | |
8972 | |
8973 final _SVGElementJs farthestViewportElement; | |
8974 | |
8975 final _SVGElementJs nearestViewportElement; | |
8976 | |
8977 _SVGRectJs getBBox() native; | |
8978 | |
8979 _SVGMatrixJs getCTM() native; | |
8980 | |
8981 _SVGMatrixJs getScreenCTM() native; | |
8982 | |
8983 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
8984 | |
8985 // From SVGFitToViewBox | |
8986 | |
8987 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
8988 | |
8989 final _SVGAnimatedRectJs viewBox; | |
8990 | |
8991 // From SVGZoomAndPan | |
8992 | |
8993 int zoomAndPan; | |
8994 } | |
8995 | |
8996 class _SVGScriptElementJs extends _SVGElementJs implements SVGScriptElement nati
ve "*SVGScriptElement" { | |
8997 | |
8998 String type; | |
8999 | |
9000 // From SVGURIReference | |
9001 | |
9002 final _SVGAnimatedStringJs href; | |
9003 | |
9004 // From SVGExternalResourcesRequired | |
9005 | |
9006 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
9007 } | |
9008 | |
9009 class _SVGSetElementJs extends _SVGAnimationElementJs implements SVGSetElement n
ative "*SVGSetElement" { | |
9010 } | |
9011 | |
9012 class _SVGStopElementJs extends _SVGElementJs implements SVGStopElement native "
*SVGStopElement" { | |
9013 | |
9014 final _SVGAnimatedNumberJs offset; | |
9015 | |
9016 // From SVGStylable | |
9017 | |
9018 // Shadowing definition. | |
9019 _SVGAnimatedStringJs get className() native "return this.className;"; | |
9020 | |
9021 // Use implementation from Element. | |
9022 // final _CSSStyleDeclarationJs style; | |
9023 | |
9024 _CSSValueJs getPresentationAttribute(String name) native; | |
9025 } | |
9026 | |
9027 class _SVGStringListJs extends _DOMTypeJs implements SVGStringList native "*SVGS
tringList" { | |
9028 | |
9029 final int numberOfItems; | |
9030 | |
9031 String appendItem(String item) native; | |
9032 | |
9033 void clear() native; | |
9034 | |
9035 String getItem(int index) native; | |
9036 | |
9037 String initialize(String item) native; | |
9038 | |
9039 String insertItemBefore(String item, int index) native; | |
9040 | |
9041 String removeItem(int index) native; | |
9042 | |
9043 String replaceItem(String item, int index) native; | |
9044 } | |
9045 | |
9046 class _SVGStyleElementJs extends _SVGElementJs implements SVGStyleElement native
"*SVGStyleElement" { | |
9047 | |
9048 bool disabled; | |
9049 | |
9050 String media; | |
9051 | |
9052 String title; | |
9053 | |
9054 String type; | |
9055 | |
9056 // From SVGLangSpace | |
9057 | |
9058 String xmllang; | |
9059 | |
9060 String xmlspace; | |
9061 } | |
9062 | |
9063 class _SVGSwitchElementJs extends _SVGElementJs implements SVGSwitchElement nati
ve "*SVGSwitchElement" { | |
9064 | |
9065 // From SVGTests | |
9066 | |
9067 final _SVGStringListJs requiredExtensions; | |
9068 | |
9069 final _SVGStringListJs requiredFeatures; | |
9070 | |
9071 final _SVGStringListJs systemLanguage; | |
9072 | |
9073 bool hasExtension(String extension) native; | |
9074 | |
9075 // From SVGLangSpace | |
9076 | |
9077 String xmllang; | |
9078 | |
9079 String xmlspace; | |
9080 | |
9081 // From SVGExternalResourcesRequired | |
9082 | |
9083 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
9084 | |
9085 // From SVGStylable | |
9086 | |
9087 // Shadowing definition. | |
9088 _SVGAnimatedStringJs get className() native "return this.className;"; | |
9089 | |
9090 // Use implementation from Element. | |
9091 // final _CSSStyleDeclarationJs style; | |
9092 | |
9093 _CSSValueJs getPresentationAttribute(String name) native; | |
9094 | |
9095 // From SVGTransformable | |
9096 | |
9097 final _SVGAnimatedTransformListJs transform; | |
9098 | |
9099 // From SVGLocatable | |
9100 | |
9101 final _SVGElementJs farthestViewportElement; | |
9102 | |
9103 final _SVGElementJs nearestViewportElement; | |
9104 | |
9105 _SVGRectJs getBBox() native; | |
9106 | |
9107 _SVGMatrixJs getCTM() native; | |
9108 | |
9109 _SVGMatrixJs getScreenCTM() native; | |
9110 | |
9111 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
9112 } | |
9113 | |
9114 class _SVGSymbolElementJs extends _SVGElementJs implements SVGSymbolElement nati
ve "*SVGSymbolElement" { | |
9115 | |
9116 // From SVGLangSpace | |
9117 | |
9118 String xmllang; | |
9119 | |
9120 String xmlspace; | |
9121 | |
9122 // From SVGExternalResourcesRequired | |
9123 | |
9124 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
9125 | |
9126 // From SVGStylable | |
9127 | |
9128 // Shadowing definition. | |
9129 _SVGAnimatedStringJs get className() native "return this.className;"; | |
9130 | |
9131 // Use implementation from Element. | |
9132 // final _CSSStyleDeclarationJs style; | |
9133 | |
9134 _CSSValueJs getPresentationAttribute(String name) native; | |
9135 | |
9136 // From SVGFitToViewBox | |
9137 | |
9138 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
9139 | |
9140 final _SVGAnimatedRectJs viewBox; | |
9141 } | |
9142 | |
9143 class _SVGTRefElementJs extends _SVGTextPositioningElementJs implements SVGTRefE
lement native "*SVGTRefElement" { | |
9144 | |
9145 // From SVGURIReference | |
9146 | |
9147 final _SVGAnimatedStringJs href; | |
9148 } | |
9149 | |
9150 class _SVGTSpanElementJs extends _SVGTextPositioningElementJs implements SVGTSpa
nElement native "*SVGTSpanElement" { | |
9151 } | |
9152 | |
9153 class _SVGTextContentElementJs extends _SVGElementJs implements SVGTextContentEl
ement native "*SVGTextContentElement" { | |
9154 | |
9155 static const int LENGTHADJUST_SPACING = 1; | |
9156 | |
9157 static const int LENGTHADJUST_SPACINGANDGLYPHS = 2; | |
9158 | |
9159 static const int LENGTHADJUST_UNKNOWN = 0; | |
9160 | |
9161 final _SVGAnimatedEnumerationJs lengthAdjust; | |
9162 | |
9163 final _SVGAnimatedLengthJs textLength; | |
9164 | |
9165 int getCharNumAtPosition(_SVGPointJs point) native; | |
9166 | |
9167 num getComputedTextLength() native; | |
9168 | |
9169 _SVGPointJs getEndPositionOfChar(int offset) native; | |
9170 | |
9171 _SVGRectJs getExtentOfChar(int offset) native; | |
9172 | |
9173 int getNumberOfChars() native; | |
9174 | |
9175 num getRotationOfChar(int offset) native; | |
9176 | |
9177 _SVGPointJs getStartPositionOfChar(int offset) native; | |
9178 | |
9179 num getSubStringLength(int offset, int length) native; | |
9180 | |
9181 void selectSubString(int offset, int length) native; | |
9182 | |
9183 // From SVGTests | |
9184 | |
9185 final _SVGStringListJs requiredExtensions; | |
9186 | |
9187 final _SVGStringListJs requiredFeatures; | |
9188 | |
9189 final _SVGStringListJs systemLanguage; | |
9190 | |
9191 bool hasExtension(String extension) native; | |
9192 | |
9193 // From SVGLangSpace | |
9194 | |
9195 String xmllang; | |
9196 | |
9197 String xmlspace; | |
9198 | |
9199 // From SVGExternalResourcesRequired | |
9200 | |
9201 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
9202 | |
9203 // From SVGStylable | |
9204 | |
9205 // Shadowing definition. | |
9206 _SVGAnimatedStringJs get className() native "return this.className;"; | |
9207 | |
9208 // Use implementation from Element. | |
9209 // final _CSSStyleDeclarationJs style; | |
9210 | |
9211 _CSSValueJs getPresentationAttribute(String name) native; | |
9212 } | |
9213 | |
9214 class _SVGTextElementJs extends _SVGTextPositioningElementJs implements SVGTextE
lement native "*SVGTextElement" { | |
9215 | |
9216 // From SVGTransformable | |
9217 | |
9218 final _SVGAnimatedTransformListJs transform; | |
9219 | |
9220 // From SVGLocatable | |
9221 | |
9222 final _SVGElementJs farthestViewportElement; | |
9223 | |
9224 final _SVGElementJs nearestViewportElement; | |
9225 | |
9226 _SVGRectJs getBBox() native; | |
9227 | |
9228 _SVGMatrixJs getCTM() native; | |
9229 | |
9230 _SVGMatrixJs getScreenCTM() native; | |
9231 | |
9232 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
9233 } | |
9234 | |
9235 class _SVGTextPathElementJs extends _SVGTextContentElementJs implements SVGTextP
athElement native "*SVGTextPathElement" { | |
9236 | |
9237 static const int TEXTPATH_METHODTYPE_ALIGN = 1; | |
9238 | |
9239 static const int TEXTPATH_METHODTYPE_STRETCH = 2; | |
9240 | |
9241 static const int TEXTPATH_METHODTYPE_UNKNOWN = 0; | |
9242 | |
9243 static const int TEXTPATH_SPACINGTYPE_AUTO = 1; | |
9244 | |
9245 static const int TEXTPATH_SPACINGTYPE_EXACT = 2; | |
9246 | |
9247 static const int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; | |
9248 | |
9249 final _SVGAnimatedEnumerationJs method; | |
9250 | |
9251 final _SVGAnimatedEnumerationJs spacing; | |
9252 | |
9253 final _SVGAnimatedLengthJs startOffset; | |
9254 | |
9255 // From SVGURIReference | |
9256 | |
9257 final _SVGAnimatedStringJs href; | |
9258 } | |
9259 | |
9260 class _SVGTextPositioningElementJs extends _SVGTextContentElementJs implements S
VGTextPositioningElement native "*SVGTextPositioningElement" { | |
9261 | |
9262 final _SVGAnimatedLengthListJs dx; | |
9263 | |
9264 final _SVGAnimatedLengthListJs dy; | |
9265 | |
9266 final _SVGAnimatedNumberListJs rotate; | |
9267 | |
9268 final _SVGAnimatedLengthListJs x; | |
9269 | |
9270 final _SVGAnimatedLengthListJs y; | |
9271 } | |
9272 | |
9273 class _SVGTitleElementJs extends _SVGElementJs implements SVGTitleElement native
"*SVGTitleElement" { | |
9274 | |
9275 // From SVGLangSpace | |
9276 | |
9277 String xmllang; | |
9278 | |
9279 String xmlspace; | |
9280 | |
9281 // From SVGStylable | |
9282 | |
9283 // Shadowing definition. | |
9284 _SVGAnimatedStringJs get className() native "return this.className;"; | |
9285 | |
9286 // Use implementation from Element. | |
9287 // final _CSSStyleDeclarationJs style; | |
9288 | |
9289 _CSSValueJs getPresentationAttribute(String name) native; | |
9290 } | |
9291 | |
9292 class _SVGTransformJs extends _DOMTypeJs implements SVGTransform native "*SVGTra
nsform" { | |
9293 | |
9294 static const int SVG_TRANSFORM_MATRIX = 1; | |
9295 | |
9296 static const int SVG_TRANSFORM_ROTATE = 4; | |
9297 | |
9298 static const int SVG_TRANSFORM_SCALE = 3; | |
9299 | |
9300 static const int SVG_TRANSFORM_SKEWX = 5; | |
9301 | |
9302 static const int SVG_TRANSFORM_SKEWY = 6; | |
9303 | |
9304 static const int SVG_TRANSFORM_TRANSLATE = 2; | |
9305 | |
9306 static const int SVG_TRANSFORM_UNKNOWN = 0; | |
9307 | |
9308 final num angle; | |
9309 | |
9310 final _SVGMatrixJs matrix; | |
9311 | |
9312 final int type; | |
9313 | |
9314 void setMatrix(_SVGMatrixJs matrix) native; | |
9315 | |
9316 void setRotate(num angle, num cx, num cy) native; | |
9317 | |
9318 void setScale(num sx, num sy) native; | |
9319 | |
9320 void setSkewX(num angle) native; | |
9321 | |
9322 void setSkewY(num angle) native; | |
9323 | |
9324 void setTranslate(num tx, num ty) native; | |
9325 } | |
9326 | |
9327 class _SVGTransformListJs extends _DOMTypeJs implements SVGTransformList native
"*SVGTransformList" { | |
9328 | |
9329 final int numberOfItems; | |
9330 | |
9331 _SVGTransformJs appendItem(_SVGTransformJs item) native; | |
9332 | |
9333 void clear() native; | |
9334 | |
9335 _SVGTransformJs consolidate() native; | |
9336 | |
9337 _SVGTransformJs createSVGTransformFromMatrix(_SVGMatrixJs matrix) native; | |
9338 | |
9339 _SVGTransformJs getItem(int index) native; | |
9340 | |
9341 _SVGTransformJs initialize(_SVGTransformJs item) native; | |
9342 | |
9343 _SVGTransformJs insertItemBefore(_SVGTransformJs item, int index) native; | |
9344 | |
9345 _SVGTransformJs removeItem(int index) native; | |
9346 | |
9347 _SVGTransformJs replaceItem(_SVGTransformJs item, int index) native; | |
9348 } | |
9349 | |
9350 class _SVGUnitTypesJs extends _DOMTypeJs implements SVGUnitTypes native "*SVGUni
tTypes" { | |
9351 | |
9352 static const int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; | |
9353 | |
9354 static const int SVG_UNIT_TYPE_UNKNOWN = 0; | |
9355 | |
9356 static const int SVG_UNIT_TYPE_USERSPACEONUSE = 1; | |
9357 } | |
9358 | |
9359 class _SVGUseElementJs extends _SVGElementJs implements SVGUseElement native "*S
VGUseElement" { | |
9360 | |
9361 final _SVGElementInstanceJs animatedInstanceRoot; | |
9362 | |
9363 final _SVGAnimatedLengthJs height; | |
9364 | |
9365 final _SVGElementInstanceJs instanceRoot; | |
9366 | |
9367 final _SVGAnimatedLengthJs width; | |
9368 | |
9369 final _SVGAnimatedLengthJs x; | |
9370 | |
9371 final _SVGAnimatedLengthJs y; | |
9372 | |
9373 // From SVGURIReference | |
9374 | |
9375 final _SVGAnimatedStringJs href; | |
9376 | |
9377 // From SVGTests | |
9378 | |
9379 final _SVGStringListJs requiredExtensions; | |
9380 | |
9381 final _SVGStringListJs requiredFeatures; | |
9382 | |
9383 final _SVGStringListJs systemLanguage; | |
9384 | |
9385 bool hasExtension(String extension) native; | |
9386 | |
9387 // From SVGLangSpace | |
9388 | |
9389 String xmllang; | |
9390 | |
9391 String xmlspace; | |
9392 | |
9393 // From SVGExternalResourcesRequired | |
9394 | |
9395 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
9396 | |
9397 // From SVGStylable | |
9398 | |
9399 // Shadowing definition. | |
9400 _SVGAnimatedStringJs get className() native "return this.className;"; | |
9401 | |
9402 // Use implementation from Element. | |
9403 // final _CSSStyleDeclarationJs style; | |
9404 | |
9405 _CSSValueJs getPresentationAttribute(String name) native; | |
9406 | |
9407 // From SVGTransformable | |
9408 | |
9409 final _SVGAnimatedTransformListJs transform; | |
9410 | |
9411 // From SVGLocatable | |
9412 | |
9413 final _SVGElementJs farthestViewportElement; | |
9414 | |
9415 final _SVGElementJs nearestViewportElement; | |
9416 | |
9417 _SVGRectJs getBBox() native; | |
9418 | |
9419 _SVGMatrixJs getCTM() native; | |
9420 | |
9421 _SVGMatrixJs getScreenCTM() native; | |
9422 | |
9423 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
9424 } | |
9425 | |
9426 class _SVGVKernElementJs extends _SVGElementJs implements SVGVKernElement native
"*SVGVKernElement" { | |
9427 } | |
9428 | |
9429 class _SVGViewElementJs extends _SVGElementJs implements SVGViewElement native "
*SVGViewElement" { | |
9430 | |
9431 final _SVGStringListJs viewTarget; | |
9432 | |
9433 // From SVGExternalResourcesRequired | |
9434 | |
9435 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
9436 | |
9437 // From SVGFitToViewBox | |
9438 | |
9439 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
9440 | |
9441 final _SVGAnimatedRectJs viewBox; | |
9442 | |
9443 // From SVGZoomAndPan | |
9444 | |
9445 int zoomAndPan; | |
9446 } | |
9447 | |
9448 class _SVGViewSpecJs extends _DOMTypeJs implements SVGViewSpec native "*SVGViewS
pec" { | |
9449 | |
9450 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
9451 | |
9452 final String preserveAspectRatioString; | |
9453 | |
9454 final _SVGTransformListJs transform; | |
9455 | |
9456 final String transformString; | |
9457 | |
9458 final _SVGAnimatedRectJs viewBox; | |
9459 | |
9460 final String viewBoxString; | |
9461 | |
9462 final _SVGElementJs viewTarget; | |
9463 | |
9464 final String viewTargetString; | |
9465 | |
9466 int zoomAndPan; | |
9467 } | |
9468 | |
9469 class _SVGZoomEventJs extends _UIEventJs implements SVGZoomEvent native "*SVGZoo
mEvent" { | |
9470 | |
9471 final num newScale; | |
9472 | |
9473 final _SVGPointJs newTranslate; | |
9474 | |
9475 final num previousScale; | |
9476 | |
9477 final _SVGPointJs previousTranslate; | |
9478 | |
9479 final _SVGRectJs zoomRectScreen; | |
9480 } | |
9481 | |
9482 class _ScreenJs extends _DOMTypeJs implements Screen native "*Screen" { | |
9483 | |
9484 final int availHeight; | |
9485 | |
9486 final int availLeft; | |
9487 | |
9488 final int availTop; | |
9489 | |
9490 final int availWidth; | |
9491 | |
9492 final int colorDepth; | |
9493 | |
9494 final int height; | |
9495 | |
9496 final int pixelDepth; | |
9497 | |
9498 final int width; | |
9499 } | |
9500 | |
9501 class _ScriptProfileJs extends _DOMTypeJs implements ScriptProfile native "*Scri
ptProfile" { | |
9502 | |
9503 final _ScriptProfileNodeJs head; | |
9504 | |
9505 final String title; | |
9506 | |
9507 final int uid; | |
9508 } | |
9509 | |
9510 class _ScriptProfileNodeJs extends _DOMTypeJs implements ScriptProfileNode nativ
e "*ScriptProfileNode" { | |
9511 | |
9512 final int callUID; | |
9513 | |
9514 final String functionName; | |
9515 | |
9516 final int lineNumber; | |
9517 | |
9518 final int numberOfCalls; | |
9519 | |
9520 final num selfTime; | |
9521 | |
9522 final num totalTime; | |
9523 | |
9524 final String url; | |
9525 | |
9526 final bool visible; | |
9527 | |
9528 List<ScriptProfileNode> children() native; | |
9529 } | |
9530 | |
9531 class _SessionDescriptionJs extends _DOMTypeJs implements SessionDescription nat
ive "*SessionDescription" { | |
9532 | |
9533 void addCandidate(_IceCandidateJs candidate) native; | |
9534 | |
9535 String toSdp() native; | |
9536 } | |
9537 | |
9538 class _ShadowRootJs extends _DocumentFragmentJs implements ShadowRoot native "*S
hadowRoot" { | |
9539 | |
9540 final _ElementJs activeElement; | |
9541 | |
9542 bool applyAuthorStyles; | |
9543 | |
9544 String innerHTML; | |
9545 | |
9546 bool resetStyleInheritance; | |
9547 | |
9548 _ElementJs getElementById(String elementId) native; | |
9549 | |
9550 _NodeListJs getElementsByClassName(String className) native; | |
9551 | |
9552 _NodeListJs getElementsByTagName(String tagName) native; | |
9553 | |
9554 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | |
9555 | |
9556 _DOMSelectionJs getSelection() native; | |
9557 } | |
9558 | |
9559 class _SharedWorkerJs extends _AbstractWorkerJs implements SharedWorker native "
*SharedWorker" { | |
9560 | |
9561 final _MessagePortJs port; | |
9562 } | |
9563 | |
9564 class _SharedWorkerContextJs extends _WorkerContextJs implements SharedWorkerCon
text native "*SharedWorkerContext" { | |
9565 | |
9566 final String name; | |
9567 } | |
9568 | |
9569 class _SourceBufferJs extends _DOMTypeJs implements SourceBuffer native "*Source
Buffer" { | |
9570 | |
9571 final _TimeRangesJs buffered; | |
9572 | |
9573 num timestampOffset; | |
9574 | |
9575 void abort() native; | |
9576 | |
9577 void append(_Uint8ArrayJs data) native; | |
9578 } | |
9579 | |
9580 class _SourceBufferListJs extends _EventTargetJs implements SourceBufferList nat
ive "*SourceBufferList" { | |
9581 | |
9582 final int length; | |
9583 | |
9584 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
9585 | |
9586 bool dispatchEvent(_EventJs event) native; | |
9587 | |
9588 _SourceBufferJs item(int index) native; | |
9589 | |
9590 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
9591 } | |
9592 | |
9593 class _SpeechGrammarJs extends _DOMTypeJs implements SpeechGrammar native "*Spee
chGrammar" { | |
9594 | |
9595 String src; | |
9596 | |
9597 num weight; | |
9598 } | |
9599 | |
9600 class _SpeechGrammarListJs extends _DOMTypeJs implements SpeechGrammarList nativ
e "*SpeechGrammarList" { | |
9601 | |
9602 final int length; | |
9603 | |
9604 void addFromString(String string, [num weight]) native; | |
9605 | |
9606 void addFromUri(String src, [num weight]) native; | |
9607 | |
9608 _SpeechGrammarJs item(int index) native; | |
9609 } | |
9610 | |
9611 class _SpeechInputEventJs extends _EventJs implements SpeechInputEvent native "*
SpeechInputEvent" { | |
9612 | |
9613 final _SpeechInputResultListJs results; | |
9614 } | |
9615 | |
9616 class _SpeechInputResultJs extends _DOMTypeJs implements SpeechInputResult nativ
e "*SpeechInputResult" { | |
9617 | |
9618 final num confidence; | |
9619 | |
9620 final String utterance; | |
9621 } | |
9622 | |
9623 class _SpeechInputResultListJs extends _DOMTypeJs implements SpeechInputResultLi
st native "*SpeechInputResultList" { | |
9624 | |
9625 final int length; | |
9626 | |
9627 _SpeechInputResultJs item(int index) native; | |
9628 } | |
9629 | |
9630 class _SpeechRecognitionJs extends _EventTargetJs implements SpeechRecognition n
ative "*SpeechRecognition" { | |
9631 | |
9632 bool continuous; | |
9633 | |
9634 _SpeechGrammarListJs grammars; | |
9635 | |
9636 String lang; | |
9637 | |
9638 int maxAlternatives; | |
9639 | |
9640 void abort() native; | |
9641 | |
9642 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
9643 | |
9644 bool dispatchEvent(_EventJs evt) native; | |
9645 | |
9646 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
9647 | |
9648 void start() native; | |
9649 | |
9650 void stop() native; | |
9651 } | |
9652 | |
9653 class _SpeechRecognitionAlternativeJs extends _DOMTypeJs implements SpeechRecogn
itionAlternative native "*SpeechRecognitionAlternative" { | |
9654 | |
9655 final num confidence; | |
9656 | |
9657 final String transcript; | |
9658 } | |
9659 | |
9660 class _SpeechRecognitionErrorJs extends _EventJs implements SpeechRecognitionErr
or native "*SpeechRecognitionError" { | |
9661 | |
9662 static const int ABORTED = 2; | |
9663 | |
9664 static const int AUDIO_CAPTURE = 3; | |
9665 | |
9666 static const int BAD_GRAMMAR = 7; | |
9667 | |
9668 static const int LANGUAGE_NOT_SUPPORTED = 8; | |
9669 | |
9670 static const int NETWORK = 4; | |
9671 | |
9672 static const int NOT_ALLOWED = 5; | |
9673 | |
9674 static const int NO_SPEECH = 1; | |
9675 | |
9676 static const int OTHER = 0; | |
9677 | |
9678 static const int SERVICE_NOT_ALLOWED = 6; | |
9679 | |
9680 final int code; | |
9681 | |
9682 final String message; | |
9683 } | |
9684 | |
9685 class _SpeechRecognitionEventJs extends _EventJs implements SpeechRecognitionEve
nt native "*SpeechRecognitionEvent" { | |
9686 | |
9687 final _SpeechRecognitionResultJs result; | |
9688 | |
9689 final _SpeechRecognitionResultListJs resultHistory; | |
9690 | |
9691 final int resultIndex; | |
9692 } | |
9693 | |
9694 class _SpeechRecognitionResultJs extends _DOMTypeJs implements SpeechRecognition
Result native "*SpeechRecognitionResult" { | |
9695 | |
9696 final _DocumentJs emma; | |
9697 | |
9698 bool get finalValue() native "return this.final;"; | |
9699 | |
9700 final int length; | |
9701 | |
9702 _SpeechRecognitionAlternativeJs item(int index) native; | |
9703 } | |
9704 | |
9705 class _SpeechRecognitionResultListJs extends _DOMTypeJs implements SpeechRecogni
tionResultList native "*SpeechRecognitionResultList" { | |
9706 | |
9707 final int length; | |
9708 | |
9709 _SpeechRecognitionResultJs item(int index) native; | |
9710 } | |
9711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
9712 // for details. All rights reserved. Use of this source code is governed by a | |
9713 // BSD-style license that can be found in the LICENSE file. | |
9714 | |
9715 class _StorageJs extends _DOMTypeJs implements Storage native "*Storage" { | |
9716 | |
9717 final int length; | |
9718 | |
9719 void clear() native; | |
9720 | |
9721 String getItem(String key) native; | |
9722 | |
9723 String key(int index) native; | |
9724 | |
9725 void removeItem(String key) native; | |
9726 | |
9727 void setItem(String key, String data) native; | |
9728 | |
9729 | |
9730 // Storage needs a special implementation of dartObjectLocalStorage since it | |
9731 // captures what would normally be an expando and places property in the | |
9732 // storage, stringifying the assigned value. | |
9733 | |
9734 get dartObjectLocalStorage() native """ | |
9735 if (this === window.localStorage) | |
9736 return window._dartLocalStorageLocalStorage; | |
9737 else if (this === window.sessionStorage) | |
9738 return window._dartSessionStorageLocalStorage; | |
9739 else | |
9740 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for
unknown Storage object.'); | |
9741 """ { throw new UnsupportedOperationException(''); } | |
9742 | |
9743 void set dartObjectLocalStorage(var value) native """ | |
9744 if (this === window.localStorage) | |
9745 window._dartLocalStorageLocalStorage = value; | |
9746 else if (this === window.sessionStorage) | |
9747 window._dartSessionStorageLocalStorage = value; | |
9748 else | |
9749 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for
unknown Storage object.'); | |
9750 """ { throw new UnsupportedOperationException(''); } | |
9751 } | |
9752 | |
9753 class _StorageEventJs extends _EventJs implements StorageEvent native "*StorageE
vent" { | |
9754 | |
9755 final String key; | |
9756 | |
9757 final String newValue; | |
9758 | |
9759 final String oldValue; | |
9760 | |
9761 final _StorageJs storageArea; | |
9762 | |
9763 final String url; | |
9764 | |
9765 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, _StorageJs
storageAreaArg) native; | |
9766 } | |
9767 | |
9768 class _StorageInfoJs extends _DOMTypeJs implements StorageInfo native "*StorageI
nfo" { | |
9769 | |
9770 static const int PERSISTENT = 1; | |
9771 | |
9772 static const int TEMPORARY = 0; | |
9773 | |
9774 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]) native; | |
9775 | |
9776 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; | |
9777 } | |
9778 | |
9779 class _StyleMediaJs extends _DOMTypeJs implements StyleMedia native "*StyleMedia
" { | |
9780 | |
9781 final String type; | |
9782 | |
9783 bool matchMedium(String mediaquery) native; | |
9784 } | |
9785 | |
9786 class _StyleSheetJs extends _DOMTypeJs implements StyleSheet native "*StyleSheet
" { | |
9787 | |
9788 bool disabled; | |
9789 | |
9790 final String href; | |
9791 | |
9792 final _MediaListJs media; | |
9793 | |
9794 final _NodeJs ownerNode; | |
9795 | |
9796 final _StyleSheetJs parentStyleSheet; | |
9797 | |
9798 final String title; | |
9799 | |
9800 final String type; | |
9801 } | |
9802 | |
9803 class _StyleSheetListJs extends _DOMTypeJs implements StyleSheetList native "*St
yleSheetList" { | |
9804 | |
9805 final int length; | |
9806 | |
9807 _StyleSheetJs operator[](int index) native "return this[index];"; | |
9808 | |
9809 void operator[]=(int index, _StyleSheetJs value) { | |
9810 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
9811 } | |
9812 // -- start List<StyleSheet> mixins. | |
9813 // StyleSheet is the element type. | |
9814 | |
9815 // From Iterable<StyleSheet>: | |
9816 | |
9817 Iterator<StyleSheet> iterator() { | |
9818 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
9819 // be cached in both iterator _and_ forEach method. For now caching it | |
9820 // for consistency. | |
9821 return new _FixedSizeListIterator<StyleSheet>(this); | |
9822 } | |
9823 | |
9824 // From Collection<StyleSheet>: | |
9825 | |
9826 void add(StyleSheet value) { | |
9827 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
9828 } | |
9829 | |
9830 void addLast(StyleSheet value) { | |
9831 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
9832 } | |
9833 | |
9834 void addAll(Collection<StyleSheet> collection) { | |
9835 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
9836 } | |
9837 | |
9838 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f); | |
9839 | |
9840 Collection map(f(StyleSheet element)) => _Collections.map(this, [], f); | |
9841 | |
9842 Collection<StyleSheet> filter(bool f(StyleSheet element)) => | |
9843 _Collections.filter(this, <StyleSheet>[], f); | |
9844 | |
9845 bool every(bool f(StyleSheet element)) => _Collections.every(this, f); | |
9846 | |
9847 bool some(bool f(StyleSheet element)) => _Collections.some(this, f); | |
9848 | |
9849 bool isEmpty() => this.length == 0; | |
9850 | |
9851 // From List<StyleSheet>: | |
9852 | |
9853 void sort(int compare(StyleSheet a, StyleSheet b)) { | |
9854 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
9855 } | |
9856 | |
9857 int indexOf(StyleSheet element, [int start = 0]) => | |
9858 _Lists.indexOf(this, element, start, this.length); | |
9859 | |
9860 int lastIndexOf(StyleSheet element, [int start]) { | |
9861 if (start === null) start = length - 1; | |
9862 return _Lists.lastIndexOf(this, element, start); | |
9863 } | |
9864 | |
9865 StyleSheet last() => this[length - 1]; | |
9866 | |
9867 StyleSheet removeLast() { | |
9868 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
9869 } | |
9870 | |
9871 // FIXME: implement these. | |
9872 void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFro
m]) { | |
9873 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
9874 } | |
9875 | |
9876 void removeRange(int start, int rangeLength) { | |
9877 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
9878 } | |
9879 | |
9880 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { | |
9881 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
9882 } | |
9883 | |
9884 List<StyleSheet> getRange(int start, int rangeLength) => | |
9885 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]); | |
9886 | |
9887 // -- end List<StyleSheet> mixins. | |
9888 | |
9889 _StyleSheetJs item(int index) native; | |
9890 } | |
9891 | |
9892 class _TextJs extends _CharacterDataJs implements Text native "*Text" { | |
9893 | |
9894 final String wholeText; | |
9895 | |
9896 _TextJs replaceWholeText(String content) native; | |
9897 | |
9898 _TextJs splitText(int offset) native; | |
9899 } | |
9900 | |
9901 class _TextEventJs extends _UIEventJs implements TextEvent native "*TextEvent" { | |
9902 | |
9903 final String data; | |
9904 | |
9905 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, _DOM
WindowJs viewArg, String dataArg) native; | |
9906 } | |
9907 | |
9908 class _TextMetricsJs extends _DOMTypeJs implements TextMetrics native "*TextMetr
ics" { | |
9909 | |
9910 final num width; | |
9911 } | |
9912 | |
9913 class _TextTrackJs extends _EventTargetJs implements TextTrack native "*TextTrac
k" { | |
9914 | |
9915 static const int DISABLED = 0; | |
9916 | |
9917 static const int HIDDEN = 1; | |
9918 | |
9919 static const int SHOWING = 2; | |
9920 | |
9921 final _TextTrackCueListJs activeCues; | |
9922 | |
9923 final _TextTrackCueListJs cues; | |
9924 | |
9925 final String kind; | |
9926 | |
9927 final String label; | |
9928 | |
9929 final String language; | |
9930 | |
9931 int mode; | |
9932 | |
9933 void addCue(_TextTrackCueJs cue) native; | |
9934 | |
9935 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
9936 | |
9937 bool dispatchEvent(_EventJs evt) native; | |
9938 | |
9939 void removeCue(_TextTrackCueJs cue) native; | |
9940 | |
9941 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
9942 } | |
9943 | |
9944 class _TextTrackCueJs extends _EventTargetJs implements TextTrackCue native "*Te
xtTrackCue" { | |
9945 | |
9946 String align; | |
9947 | |
9948 num endTime; | |
9949 | |
9950 String id; | |
9951 | |
9952 int line; | |
9953 | |
9954 bool pauseOnExit; | |
9955 | |
9956 int position; | |
9957 | |
9958 int size; | |
9959 | |
9960 bool snapToLines; | |
9961 | |
9962 num startTime; | |
9963 | |
9964 String text; | |
9965 | |
9966 final _TextTrackJs track; | |
9967 | |
9968 String vertical; | |
9969 | |
9970 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
9971 | |
9972 bool dispatchEvent(_EventJs evt) native; | |
9973 | |
9974 _DocumentFragmentJs getCueAsHTML() native; | |
9975 | |
9976 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
9977 } | |
9978 | |
9979 class _TextTrackCueListJs extends _DOMTypeJs implements TextTrackCueList native
"*TextTrackCueList" { | |
9980 | |
9981 final int length; | |
9982 | |
9983 _TextTrackCueJs getCueById(String id) native; | |
9984 | |
9985 _TextTrackCueJs item(int index) native; | |
9986 } | |
9987 | |
9988 class _TextTrackListJs extends _EventTargetJs implements TextTrackList native "*
TextTrackList" { | |
9989 | |
9990 final int length; | |
9991 | |
9992 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
9993 | |
9994 bool dispatchEvent(_EventJs evt) native; | |
9995 | |
9996 _TextTrackJs item(int index) native; | |
9997 | |
9998 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
9999 } | |
10000 | |
10001 class _TimeRangesJs extends _DOMTypeJs implements TimeRanges native "*TimeRanges
" { | |
10002 | |
10003 final int length; | |
10004 | |
10005 num end(int index) native; | |
10006 | |
10007 num start(int index) native; | |
10008 } | |
10009 | |
10010 class _TouchJs extends _DOMTypeJs implements Touch native "*Touch" { | |
10011 | |
10012 final int clientX; | |
10013 | |
10014 final int clientY; | |
10015 | |
10016 final int identifier; | |
10017 | |
10018 final int pageX; | |
10019 | |
10020 final int pageY; | |
10021 | |
10022 final int screenX; | |
10023 | |
10024 final int screenY; | |
10025 | |
10026 final _EventTargetJs target; | |
10027 | |
10028 final num webkitForce; | |
10029 | |
10030 final int webkitRadiusX; | |
10031 | |
10032 final int webkitRadiusY; | |
10033 | |
10034 final num webkitRotationAngle; | |
10035 } | |
10036 | |
10037 class _TouchEventJs extends _UIEventJs implements TouchEvent native "*TouchEvent
" { | |
10038 | |
10039 final bool altKey; | |
10040 | |
10041 final _TouchListJs changedTouches; | |
10042 | |
10043 final bool ctrlKey; | |
10044 | |
10045 final bool metaKey; | |
10046 | |
10047 final bool shiftKey; | |
10048 | |
10049 final _TouchListJs targetTouches; | |
10050 | |
10051 final _TouchListJs touches; | |
10052 | |
10053 void initTouchEvent(_TouchListJs touches, _TouchListJs targetTouches, _TouchLi
stJs changedTouches, String type, _DOMWindowJs view, int screenX, int screenY, i
nt clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey)
native; | |
10054 } | |
10055 | |
10056 class _TouchListJs extends _DOMTypeJs implements TouchList native "*TouchList" { | |
10057 | |
10058 final int length; | |
10059 | |
10060 _TouchJs operator[](int index) native "return this[index];"; | |
10061 | |
10062 void operator[]=(int index, _TouchJs value) { | |
10063 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
10064 } | |
10065 // -- start List<Touch> mixins. | |
10066 // Touch is the element type. | |
10067 | |
10068 // From Iterable<Touch>: | |
10069 | |
10070 Iterator<Touch> iterator() { | |
10071 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
10072 // be cached in both iterator _and_ forEach method. For now caching it | |
10073 // for consistency. | |
10074 return new _FixedSizeListIterator<Touch>(this); | |
10075 } | |
10076 | |
10077 // From Collection<Touch>: | |
10078 | |
10079 void add(Touch value) { | |
10080 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10081 } | |
10082 | |
10083 void addLast(Touch value) { | |
10084 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10085 } | |
10086 | |
10087 void addAll(Collection<Touch> collection) { | |
10088 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10089 } | |
10090 | |
10091 void forEach(void f(Touch element)) => _Collections.forEach(this, f); | |
10092 | |
10093 Collection map(f(Touch element)) => _Collections.map(this, [], f); | |
10094 | |
10095 Collection<Touch> filter(bool f(Touch element)) => | |
10096 _Collections.filter(this, <Touch>[], f); | |
10097 | |
10098 bool every(bool f(Touch element)) => _Collections.every(this, f); | |
10099 | |
10100 bool some(bool f(Touch element)) => _Collections.some(this, f); | |
10101 | |
10102 bool isEmpty() => this.length == 0; | |
10103 | |
10104 // From List<Touch>: | |
10105 | |
10106 void sort(int compare(Touch a, Touch b)) { | |
10107 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
10108 } | |
10109 | |
10110 int indexOf(Touch element, [int start = 0]) => | |
10111 _Lists.indexOf(this, element, start, this.length); | |
10112 | |
10113 int lastIndexOf(Touch element, [int start]) { | |
10114 if (start === null) start = length - 1; | |
10115 return _Lists.lastIndexOf(this, element, start); | |
10116 } | |
10117 | |
10118 Touch last() => this[length - 1]; | |
10119 | |
10120 Touch removeLast() { | |
10121 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
10122 } | |
10123 | |
10124 // FIXME: implement these. | |
10125 void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) { | |
10126 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
10127 } | |
10128 | |
10129 void removeRange(int start, int rangeLength) { | |
10130 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
10131 } | |
10132 | |
10133 void insertRange(int start, int rangeLength, [Touch initialValue]) { | |
10134 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
10135 } | |
10136 | |
10137 List<Touch> getRange(int start, int rangeLength) => | |
10138 _Lists.getRange(this, start, rangeLength, <Touch>[]); | |
10139 | |
10140 // -- end List<Touch> mixins. | |
10141 | |
10142 _TouchJs item(int index) native; | |
10143 } | |
10144 | |
10145 class _TrackEventJs extends _EventJs implements TrackEvent native "*TrackEvent"
{ | |
10146 | |
10147 final Object track; | |
10148 } | |
10149 | |
10150 class _TreeWalkerJs extends _DOMTypeJs implements TreeWalker native "*TreeWalker
" { | |
10151 | |
10152 _NodeJs currentNode; | |
10153 | |
10154 final bool expandEntityReferences; | |
10155 | |
10156 final _NodeFilterJs filter; | |
10157 | |
10158 final _NodeJs root; | |
10159 | |
10160 final int whatToShow; | |
10161 | |
10162 _NodeJs firstChild() native; | |
10163 | |
10164 _NodeJs lastChild() native; | |
10165 | |
10166 _NodeJs nextNode() native; | |
10167 | |
10168 _NodeJs nextSibling() native; | |
10169 | |
10170 _NodeJs parentNode() native; | |
10171 | |
10172 _NodeJs previousNode() native; | |
10173 | |
10174 _NodeJs previousSibling() native; | |
10175 } | |
10176 | |
10177 class _UIEventJs extends _EventJs implements UIEvent native "*UIEvent" { | |
10178 | |
10179 final int charCode; | |
10180 | |
10181 final int detail; | |
10182 | |
10183 final int keyCode; | |
10184 | |
10185 final int layerX; | |
10186 | |
10187 final int layerY; | |
10188 | |
10189 final int pageX; | |
10190 | |
10191 final int pageY; | |
10192 | |
10193 final _DOMWindowJs view; | |
10194 | |
10195 final int which; | |
10196 | |
10197 void initUIEvent(String type, bool canBubble, bool cancelable, _DOMWindowJs vi
ew, int detail) native; | |
10198 } | |
10199 | |
10200 class _Uint16ArrayJs extends _ArrayBufferViewJs implements Uint16Array, List<int
> native "*Uint16Array" { | |
10201 | |
10202 static const int BYTES_PER_ELEMENT = 2; | |
10203 | |
10204 final int length; | |
10205 | |
10206 int operator[](int index) native "return this[index];"; | |
10207 | |
10208 void operator[]=(int index, int value) native "this[index] = value"; | |
10209 // -- start List<int> mixins. | |
10210 // int is the element type. | |
10211 | |
10212 // From Iterable<int>: | |
10213 | |
10214 Iterator<int> iterator() { | |
10215 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
10216 // be cached in both iterator _and_ forEach method. For now caching it | |
10217 // for consistency. | |
10218 return new _FixedSizeListIterator<int>(this); | |
10219 } | |
10220 | |
10221 // From Collection<int>: | |
10222 | |
10223 void add(int value) { | |
10224 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10225 } | |
10226 | |
10227 void addLast(int value) { | |
10228 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10229 } | |
10230 | |
10231 void addAll(Collection<int> collection) { | |
10232 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10233 } | |
10234 | |
10235 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
10236 | |
10237 Collection map(f(int element)) => _Collections.map(this, [], f); | |
10238 | |
10239 Collection<int> filter(bool f(int element)) => | |
10240 _Collections.filter(this, <int>[], f); | |
10241 | |
10242 bool every(bool f(int element)) => _Collections.every(this, f); | |
10243 | |
10244 bool some(bool f(int element)) => _Collections.some(this, f); | |
10245 | |
10246 bool isEmpty() => this.length == 0; | |
10247 | |
10248 // From List<int>: | |
10249 | |
10250 void sort(int compare(int a, int b)) { | |
10251 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
10252 } | |
10253 | |
10254 int indexOf(int element, [int start = 0]) => | |
10255 _Lists.indexOf(this, element, start, this.length); | |
10256 | |
10257 int lastIndexOf(int element, [int start]) { | |
10258 if (start === null) start = length - 1; | |
10259 return _Lists.lastIndexOf(this, element, start); | |
10260 } | |
10261 | |
10262 int last() => this[length - 1]; | |
10263 | |
10264 int removeLast() { | |
10265 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
10266 } | |
10267 | |
10268 // FIXME: implement these. | |
10269 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
10270 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
10271 } | |
10272 | |
10273 void removeRange(int start, int rangeLength) { | |
10274 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
10275 } | |
10276 | |
10277 void insertRange(int start, int rangeLength, [int initialValue]) { | |
10278 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
10279 } | |
10280 | |
10281 List<int> getRange(int start, int rangeLength) => | |
10282 _Lists.getRange(this, start, rangeLength, <int>[]); | |
10283 | |
10284 // -- end List<int> mixins. | |
10285 | |
10286 void setElements(Object array, [int offset]) native 'set'; | |
10287 | |
10288 _Uint16ArrayJs subarray(int start, [int end]) native; | |
10289 } | |
10290 | |
10291 class _Uint32ArrayJs extends _ArrayBufferViewJs implements Uint32Array, List<int
> native "*Uint32Array" { | |
10292 | |
10293 static const int BYTES_PER_ELEMENT = 4; | |
10294 | |
10295 final int length; | |
10296 | |
10297 int operator[](int index) native "return this[index];"; | |
10298 | |
10299 void operator[]=(int index, int value) native "this[index] = value"; | |
10300 // -- start List<int> mixins. | |
10301 // int is the element type. | |
10302 | |
10303 // From Iterable<int>: | |
10304 | |
10305 Iterator<int> iterator() { | |
10306 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
10307 // be cached in both iterator _and_ forEach method. For now caching it | |
10308 // for consistency. | |
10309 return new _FixedSizeListIterator<int>(this); | |
10310 } | |
10311 | |
10312 // From Collection<int>: | |
10313 | |
10314 void add(int value) { | |
10315 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10316 } | |
10317 | |
10318 void addLast(int value) { | |
10319 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10320 } | |
10321 | |
10322 void addAll(Collection<int> collection) { | |
10323 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10324 } | |
10325 | |
10326 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
10327 | |
10328 Collection map(f(int element)) => _Collections.map(this, [], f); | |
10329 | |
10330 Collection<int> filter(bool f(int element)) => | |
10331 _Collections.filter(this, <int>[], f); | |
10332 | |
10333 bool every(bool f(int element)) => _Collections.every(this, f); | |
10334 | |
10335 bool some(bool f(int element)) => _Collections.some(this, f); | |
10336 | |
10337 bool isEmpty() => this.length == 0; | |
10338 | |
10339 // From List<int>: | |
10340 | |
10341 void sort(int compare(int a, int b)) { | |
10342 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
10343 } | |
10344 | |
10345 int indexOf(int element, [int start = 0]) => | |
10346 _Lists.indexOf(this, element, start, this.length); | |
10347 | |
10348 int lastIndexOf(int element, [int start]) { | |
10349 if (start === null) start = length - 1; | |
10350 return _Lists.lastIndexOf(this, element, start); | |
10351 } | |
10352 | |
10353 int last() => this[length - 1]; | |
10354 | |
10355 int removeLast() { | |
10356 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
10357 } | |
10358 | |
10359 // FIXME: implement these. | |
10360 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
10361 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
10362 } | |
10363 | |
10364 void removeRange(int start, int rangeLength) { | |
10365 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
10366 } | |
10367 | |
10368 void insertRange(int start, int rangeLength, [int initialValue]) { | |
10369 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
10370 } | |
10371 | |
10372 List<int> getRange(int start, int rangeLength) => | |
10373 _Lists.getRange(this, start, rangeLength, <int>[]); | |
10374 | |
10375 // -- end List<int> mixins. | |
10376 | |
10377 void setElements(Object array, [int offset]) native 'set'; | |
10378 | |
10379 _Uint32ArrayJs subarray(int start, [int end]) native; | |
10380 } | |
10381 | |
10382 class _Uint8ArrayJs extends _ArrayBufferViewJs implements Uint8Array, List<int>
native "*Uint8Array" { | |
10383 | |
10384 static const int BYTES_PER_ELEMENT = 1; | |
10385 | |
10386 final int length; | |
10387 | |
10388 int operator[](int index) native "return this[index];"; | |
10389 | |
10390 void operator[]=(int index, int value) native "this[index] = value"; | |
10391 // -- start List<int> mixins. | |
10392 // int is the element type. | |
10393 | |
10394 // From Iterable<int>: | |
10395 | |
10396 Iterator<int> iterator() { | |
10397 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
10398 // be cached in both iterator _and_ forEach method. For now caching it | |
10399 // for consistency. | |
10400 return new _FixedSizeListIterator<int>(this); | |
10401 } | |
10402 | |
10403 // From Collection<int>: | |
10404 | |
10405 void add(int value) { | |
10406 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10407 } | |
10408 | |
10409 void addLast(int value) { | |
10410 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10411 } | |
10412 | |
10413 void addAll(Collection<int> collection) { | |
10414 throw const UnsupportedOperationException("Cannot add to immutable List."); | |
10415 } | |
10416 | |
10417 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
10418 | |
10419 Collection map(f(int element)) => _Collections.map(this, [], f); | |
10420 | |
10421 Collection<int> filter(bool f(int element)) => | |
10422 _Collections.filter(this, <int>[], f); | |
10423 | |
10424 bool every(bool f(int element)) => _Collections.every(this, f); | |
10425 | |
10426 bool some(bool f(int element)) => _Collections.some(this, f); | |
10427 | |
10428 bool isEmpty() => this.length == 0; | |
10429 | |
10430 // From List<int>: | |
10431 | |
10432 void sort(int compare(int a, int b)) { | |
10433 throw const UnsupportedOperationException("Cannot sort immutable List."); | |
10434 } | |
10435 | |
10436 int indexOf(int element, [int start = 0]) => | |
10437 _Lists.indexOf(this, element, start, this.length); | |
10438 | |
10439 int lastIndexOf(int element, [int start]) { | |
10440 if (start === null) start = length - 1; | |
10441 return _Lists.lastIndexOf(this, element, start); | |
10442 } | |
10443 | |
10444 int last() => this[length - 1]; | |
10445 | |
10446 int removeLast() { | |
10447 throw const UnsupportedOperationException("Cannot removeLast on immutable Li
st."); | |
10448 } | |
10449 | |
10450 // FIXME: implement these. | |
10451 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
10452 throw const UnsupportedOperationException("Cannot setRange on immutable List
."); | |
10453 } | |
10454 | |
10455 void removeRange(int start, int rangeLength) { | |
10456 throw const UnsupportedOperationException("Cannot removeRange on immutable L
ist."); | |
10457 } | |
10458 | |
10459 void insertRange(int start, int rangeLength, [int initialValue]) { | |
10460 throw const UnsupportedOperationException("Cannot insertRange on immutable L
ist."); | |
10461 } | |
10462 | |
10463 List<int> getRange(int start, int rangeLength) => | |
10464 _Lists.getRange(this, start, rangeLength, <int>[]); | |
10465 | |
10466 // -- end List<int> mixins. | |
10467 | |
10468 void setElements(Object array, [int offset]) native 'set'; | |
10469 | |
10470 _Uint8ArrayJs subarray(int start, [int end]) native; | |
10471 } | |
10472 | |
10473 class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray na
tive "*Uint8ClampedArray" { | |
10474 | |
10475 // Use implementation from Uint8Array. | |
10476 // final int length; | |
10477 | |
10478 void setElements(Object array, [int offset]) native 'set'; | |
10479 | |
10480 _Uint8ClampedArrayJs subarray(int start, [int end]) native; | |
10481 } | |
10482 | |
10483 class _ValidityStateJs extends _DOMTypeJs implements ValidityState native "*Vali
dityState" { | |
10484 | |
10485 final bool customError; | |
10486 | |
10487 final bool patternMismatch; | |
10488 | |
10489 final bool rangeOverflow; | |
10490 | |
10491 final bool rangeUnderflow; | |
10492 | |
10493 final bool stepMismatch; | |
10494 | |
10495 final bool tooLong; | |
10496 | |
10497 final bool typeMismatch; | |
10498 | |
10499 final bool valid; | |
10500 | |
10501 final bool valueMissing; | |
10502 } | |
10503 | |
10504 class _WaveShaperNodeJs extends _AudioNodeJs implements WaveShaperNode native "*
WaveShaperNode" { | |
10505 | |
10506 _Float32ArrayJs curve; | |
10507 } | |
10508 | |
10509 class _WaveTableJs extends _DOMTypeJs implements WaveTable native "*WaveTable" { | |
10510 } | |
10511 | |
10512 class _WebGLActiveInfoJs extends _DOMTypeJs implements WebGLActiveInfo native "*
WebGLActiveInfo" { | |
10513 | |
10514 final String name; | |
10515 | |
10516 final int size; | |
10517 | |
10518 final int type; | |
10519 } | |
10520 | |
10521 class _WebGLBufferJs extends _DOMTypeJs implements WebGLBuffer native "*WebGLBuf
fer" { | |
10522 } | |
10523 | |
10524 class _WebGLCompressedTextureS3TCJs extends _DOMTypeJs implements WebGLCompresse
dTextureS3TC native "*WebGLCompressedTextureS3TC" { | |
10525 | |
10526 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; | |
10527 | |
10528 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; | |
10529 | |
10530 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; | |
10531 | |
10532 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; | |
10533 } | |
10534 | |
10535 class _WebGLContextAttributesJs extends _DOMTypeJs implements WebGLContextAttrib
utes native "*WebGLContextAttributes" { | |
10536 | |
10537 bool alpha; | |
10538 | |
10539 bool antialias; | |
10540 | |
10541 bool depth; | |
10542 | |
10543 bool premultipliedAlpha; | |
10544 | |
10545 bool preserveDrawingBuffer; | |
10546 | |
10547 bool stencil; | |
10548 } | |
10549 | |
10550 class _WebGLContextEventJs extends _EventJs implements WebGLContextEvent native
"*WebGLContextEvent" { | |
10551 | |
10552 final String statusMessage; | |
10553 } | |
10554 | |
10555 class _WebGLDebugRendererInfoJs extends _DOMTypeJs implements WebGLDebugRenderer
Info native "*WebGLDebugRendererInfo" { | |
10556 | |
10557 static const int UNMASKED_RENDERER_WEBGL = 0x9246; | |
10558 | |
10559 static const int UNMASKED_VENDOR_WEBGL = 0x9245; | |
10560 } | |
10561 | |
10562 class _WebGLDebugShadersJs extends _DOMTypeJs implements WebGLDebugShaders nativ
e "*WebGLDebugShaders" { | |
10563 | |
10564 String getTranslatedShaderSource(_WebGLShaderJs shader) native; | |
10565 } | |
10566 | |
10567 class _WebGLDepthTextureJs extends _DOMTypeJs implements WebGLDepthTexture nativ
e "*WebGLDepthTexture" { | |
10568 | |
10569 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; | |
10570 } | |
10571 | |
10572 class _WebGLFramebufferJs extends _DOMTypeJs implements WebGLFramebuffer native
"*WebGLFramebuffer" { | |
10573 } | |
10574 | |
10575 class _WebGLLoseContextJs extends _DOMTypeJs implements WebGLLoseContext native
"*WebGLLoseContext" { | |
10576 | |
10577 void loseContext() native; | |
10578 | |
10579 void restoreContext() native; | |
10580 } | |
10581 | |
10582 class _WebGLProgramJs extends _DOMTypeJs implements WebGLProgram native "*WebGLP
rogram" { | |
10583 } | |
10584 | |
10585 class _WebGLRenderbufferJs extends _DOMTypeJs implements WebGLRenderbuffer nativ
e "*WebGLRenderbuffer" { | |
10586 } | |
10587 | |
10588 class _WebGLRenderingContextJs extends _CanvasRenderingContextJs implements WebG
LRenderingContext native "*WebGLRenderingContext" { | |
10589 | |
10590 static const int ACTIVE_ATTRIBUTES = 0x8B89; | |
10591 | |
10592 static const int ACTIVE_TEXTURE = 0x84E0; | |
10593 | |
10594 static const int ACTIVE_UNIFORMS = 0x8B86; | |
10595 | |
10596 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E; | |
10597 | |
10598 static const int ALIASED_POINT_SIZE_RANGE = 0x846D; | |
10599 | |
10600 static const int ALPHA = 0x1906; | |
10601 | |
10602 static const int ALPHA_BITS = 0x0D55; | |
10603 | |
10604 static const int ALWAYS = 0x0207; | |
10605 | |
10606 static const int ARRAY_BUFFER = 0x8892; | |
10607 | |
10608 static const int ARRAY_BUFFER_BINDING = 0x8894; | |
10609 | |
10610 static const int ATTACHED_SHADERS = 0x8B85; | |
10611 | |
10612 static const int BACK = 0x0405; | |
10613 | |
10614 static const int BLEND = 0x0BE2; | |
10615 | |
10616 static const int BLEND_COLOR = 0x8005; | |
10617 | |
10618 static const int BLEND_DST_ALPHA = 0x80CA; | |
10619 | |
10620 static const int BLEND_DST_RGB = 0x80C8; | |
10621 | |
10622 static const int BLEND_EQUATION = 0x8009; | |
10623 | |
10624 static const int BLEND_EQUATION_ALPHA = 0x883D; | |
10625 | |
10626 static const int BLEND_EQUATION_RGB = 0x8009; | |
10627 | |
10628 static const int BLEND_SRC_ALPHA = 0x80CB; | |
10629 | |
10630 static const int BLEND_SRC_RGB = 0x80C9; | |
10631 | |
10632 static const int BLUE_BITS = 0x0D54; | |
10633 | |
10634 static const int BOOL = 0x8B56; | |
10635 | |
10636 static const int BOOL_VEC2 = 0x8B57; | |
10637 | |
10638 static const int BOOL_VEC3 = 0x8B58; | |
10639 | |
10640 static const int BOOL_VEC4 = 0x8B59; | |
10641 | |
10642 static const int BROWSER_DEFAULT_WEBGL = 0x9244; | |
10643 | |
10644 static const int BUFFER_SIZE = 0x8764; | |
10645 | |
10646 static const int BUFFER_USAGE = 0x8765; | |
10647 | |
10648 static const int BYTE = 0x1400; | |
10649 | |
10650 static const int CCW = 0x0901; | |
10651 | |
10652 static const int CLAMP_TO_EDGE = 0x812F; | |
10653 | |
10654 static const int COLOR_ATTACHMENT0 = 0x8CE0; | |
10655 | |
10656 static const int COLOR_BUFFER_BIT = 0x00004000; | |
10657 | |
10658 static const int COLOR_CLEAR_VALUE = 0x0C22; | |
10659 | |
10660 static const int COLOR_WRITEMASK = 0x0C23; | |
10661 | |
10662 static const int COMPILE_STATUS = 0x8B81; | |
10663 | |
10664 static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3; | |
10665 | |
10666 static const int CONSTANT_ALPHA = 0x8003; | |
10667 | |
10668 static const int CONSTANT_COLOR = 0x8001; | |
10669 | |
10670 static const int CONTEXT_LOST_WEBGL = 0x9242; | |
10671 | |
10672 static const int CULL_FACE = 0x0B44; | |
10673 | |
10674 static const int CULL_FACE_MODE = 0x0B45; | |
10675 | |
10676 static const int CURRENT_PROGRAM = 0x8B8D; | |
10677 | |
10678 static const int CURRENT_VERTEX_ATTRIB = 0x8626; | |
10679 | |
10680 static const int CW = 0x0900; | |
10681 | |
10682 static const int DECR = 0x1E03; | |
10683 | |
10684 static const int DECR_WRAP = 0x8508; | |
10685 | |
10686 static const int DELETE_STATUS = 0x8B80; | |
10687 | |
10688 static const int DEPTH_ATTACHMENT = 0x8D00; | |
10689 | |
10690 static const int DEPTH_BITS = 0x0D56; | |
10691 | |
10692 static const int DEPTH_BUFFER_BIT = 0x00000100; | |
10693 | |
10694 static const int DEPTH_CLEAR_VALUE = 0x0B73; | |
10695 | |
10696 static const int DEPTH_COMPONENT = 0x1902; | |
10697 | |
10698 static const int DEPTH_COMPONENT16 = 0x81A5; | |
10699 | |
10700 static const int DEPTH_FUNC = 0x0B74; | |
10701 | |
10702 static const int DEPTH_RANGE = 0x0B70; | |
10703 | |
10704 static const int DEPTH_STENCIL = 0x84F9; | |
10705 | |
10706 static const int DEPTH_STENCIL_ATTACHMENT = 0x821A; | |
10707 | |
10708 static const int DEPTH_TEST = 0x0B71; | |
10709 | |
10710 static const int DEPTH_WRITEMASK = 0x0B72; | |
10711 | |
10712 static const int DITHER = 0x0BD0; | |
10713 | |
10714 static const int DONT_CARE = 0x1100; | |
10715 | |
10716 static const int DST_ALPHA = 0x0304; | |
10717 | |
10718 static const int DST_COLOR = 0x0306; | |
10719 | |
10720 static const int DYNAMIC_DRAW = 0x88E8; | |
10721 | |
10722 static const int ELEMENT_ARRAY_BUFFER = 0x8893; | |
10723 | |
10724 static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; | |
10725 | |
10726 static const int EQUAL = 0x0202; | |
10727 | |
10728 static const int FASTEST = 0x1101; | |
10729 | |
10730 static const int FLOAT = 0x1406; | |
10731 | |
10732 static const int FLOAT_MAT2 = 0x8B5A; | |
10733 | |
10734 static const int FLOAT_MAT3 = 0x8B5B; | |
10735 | |
10736 static const int FLOAT_MAT4 = 0x8B5C; | |
10737 | |
10738 static const int FLOAT_VEC2 = 0x8B50; | |
10739 | |
10740 static const int FLOAT_VEC3 = 0x8B51; | |
10741 | |
10742 static const int FLOAT_VEC4 = 0x8B52; | |
10743 | |
10744 static const int FRAGMENT_SHADER = 0x8B30; | |
10745 | |
10746 static const int FRAMEBUFFER = 0x8D40; | |
10747 | |
10748 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; | |
10749 | |
10750 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; | |
10751 | |
10752 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; | |
10753 | |
10754 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; | |
10755 | |
10756 static const int FRAMEBUFFER_BINDING = 0x8CA6; | |
10757 | |
10758 static const int FRAMEBUFFER_COMPLETE = 0x8CD5; | |
10759 | |
10760 static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; | |
10761 | |
10762 static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; | |
10763 | |
10764 static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; | |
10765 | |
10766 static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; | |
10767 | |
10768 static const int FRONT = 0x0404; | |
10769 | |
10770 static const int FRONT_AND_BACK = 0x0408; | |
10771 | |
10772 static const int FRONT_FACE = 0x0B46; | |
10773 | |
10774 static const int FUNC_ADD = 0x8006; | |
10775 | |
10776 static const int FUNC_REVERSE_SUBTRACT = 0x800B; | |
10777 | |
10778 static const int FUNC_SUBTRACT = 0x800A; | |
10779 | |
10780 static const int GENERATE_MIPMAP_HINT = 0x8192; | |
10781 | |
10782 static const int GEQUAL = 0x0206; | |
10783 | |
10784 static const int GREATER = 0x0204; | |
10785 | |
10786 static const int GREEN_BITS = 0x0D53; | |
10787 | |
10788 static const int HIGH_FLOAT = 0x8DF2; | |
10789 | |
10790 static const int HIGH_INT = 0x8DF5; | |
10791 | |
10792 static const int INCR = 0x1E02; | |
10793 | |
10794 static const int INCR_WRAP = 0x8507; | |
10795 | |
10796 static const int INT = 0x1404; | |
10797 | |
10798 static const int INT_VEC2 = 0x8B53; | |
10799 | |
10800 static const int INT_VEC3 = 0x8B54; | |
10801 | |
10802 static const int INT_VEC4 = 0x8B55; | |
10803 | |
10804 static const int INVALID_ENUM = 0x0500; | |
10805 | |
10806 static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506; | |
10807 | |
10808 static const int INVALID_OPERATION = 0x0502; | |
10809 | |
10810 static const int INVALID_VALUE = 0x0501; | |
10811 | |
10812 static const int INVERT = 0x150A; | |
10813 | |
10814 static const int KEEP = 0x1E00; | |
10815 | |
10816 static const int LEQUAL = 0x0203; | |
10817 | |
10818 static const int LESS = 0x0201; | |
10819 | |
10820 static const int LINEAR = 0x2601; | |
10821 | |
10822 static const int LINEAR_MIPMAP_LINEAR = 0x2703; | |
10823 | |
10824 static const int LINEAR_MIPMAP_NEAREST = 0x2701; | |
10825 | |
10826 static const int LINES = 0x0001; | |
10827 | |
10828 static const int LINE_LOOP = 0x0002; | |
10829 | |
10830 static const int LINE_STRIP = 0x0003; | |
10831 | |
10832 static const int LINE_WIDTH = 0x0B21; | |
10833 | |
10834 static const int LINK_STATUS = 0x8B82; | |
10835 | |
10836 static const int LOW_FLOAT = 0x8DF0; | |
10837 | |
10838 static const int LOW_INT = 0x8DF3; | |
10839 | |
10840 static const int LUMINANCE = 0x1909; | |
10841 | |
10842 static const int LUMINANCE_ALPHA = 0x190A; | |
10843 | |
10844 static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; | |
10845 | |
10846 static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; | |
10847 | |
10848 static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; | |
10849 | |
10850 static const int MAX_RENDERBUFFER_SIZE = 0x84E8; | |
10851 | |
10852 static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872; | |
10853 | |
10854 static const int MAX_TEXTURE_SIZE = 0x0D33; | |
10855 | |
10856 static const int MAX_VARYING_VECTORS = 0x8DFC; | |
10857 | |
10858 static const int MAX_VERTEX_ATTRIBS = 0x8869; | |
10859 | |
10860 static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; | |
10861 | |
10862 static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; | |
10863 | |
10864 static const int MAX_VIEWPORT_DIMS = 0x0D3A; | |
10865 | |
10866 static const int MEDIUM_FLOAT = 0x8DF1; | |
10867 | |
10868 static const int MEDIUM_INT = 0x8DF4; | |
10869 | |
10870 static const int MIRRORED_REPEAT = 0x8370; | |
10871 | |
10872 static const int NEAREST = 0x2600; | |
10873 | |
10874 static const int NEAREST_MIPMAP_LINEAR = 0x2702; | |
10875 | |
10876 static const int NEAREST_MIPMAP_NEAREST = 0x2700; | |
10877 | |
10878 static const int NEVER = 0x0200; | |
10879 | |
10880 static const int NICEST = 0x1102; | |
10881 | |
10882 static const int NONE = 0; | |
10883 | |
10884 static const int NOTEQUAL = 0x0205; | |
10885 | |
10886 static const int NO_ERROR = 0; | |
10887 | |
10888 static const int ONE = 1; | |
10889 | |
10890 static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004; | |
10891 | |
10892 static const int ONE_MINUS_CONSTANT_COLOR = 0x8002; | |
10893 | |
10894 static const int ONE_MINUS_DST_ALPHA = 0x0305; | |
10895 | |
10896 static const int ONE_MINUS_DST_COLOR = 0x0307; | |
10897 | |
10898 static const int ONE_MINUS_SRC_ALPHA = 0x0303; | |
10899 | |
10900 static const int ONE_MINUS_SRC_COLOR = 0x0301; | |
10901 | |
10902 static const int OUT_OF_MEMORY = 0x0505; | |
10903 | |
10904 static const int PACK_ALIGNMENT = 0x0D05; | |
10905 | |
10906 static const int POINTS = 0x0000; | |
10907 | |
10908 static const int POLYGON_OFFSET_FACTOR = 0x8038; | |
10909 | |
10910 static const int POLYGON_OFFSET_FILL = 0x8037; | |
10911 | |
10912 static const int POLYGON_OFFSET_UNITS = 0x2A00; | |
10913 | |
10914 static const int RED_BITS = 0x0D52; | |
10915 | |
10916 static const int RENDERBUFFER = 0x8D41; | |
10917 | |
10918 static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53; | |
10919 | |
10920 static const int RENDERBUFFER_BINDING = 0x8CA7; | |
10921 | |
10922 static const int RENDERBUFFER_BLUE_SIZE = 0x8D52; | |
10923 | |
10924 static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54; | |
10925 | |
10926 static const int RENDERBUFFER_GREEN_SIZE = 0x8D51; | |
10927 | |
10928 static const int RENDERBUFFER_HEIGHT = 0x8D43; | |
10929 | |
10930 static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; | |
10931 | |
10932 static const int RENDERBUFFER_RED_SIZE = 0x8D50; | |
10933 | |
10934 static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55; | |
10935 | |
10936 static const int RENDERBUFFER_WIDTH = 0x8D42; | |
10937 | |
10938 static const int RENDERER = 0x1F01; | |
10939 | |
10940 static const int REPEAT = 0x2901; | |
10941 | |
10942 static const int REPLACE = 0x1E01; | |
10943 | |
10944 static const int RGB = 0x1907; | |
10945 | |
10946 static const int RGB565 = 0x8D62; | |
10947 | |
10948 static const int RGB5_A1 = 0x8057; | |
10949 | |
10950 static const int RGBA = 0x1908; | |
10951 | |
10952 static const int RGBA4 = 0x8056; | |
10953 | |
10954 static const int SAMPLER_2D = 0x8B5E; | |
10955 | |
10956 static const int SAMPLER_CUBE = 0x8B60; | |
10957 | |
10958 static const int SAMPLES = 0x80A9; | |
10959 | |
10960 static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; | |
10961 | |
10962 static const int SAMPLE_BUFFERS = 0x80A8; | |
10963 | |
10964 static const int SAMPLE_COVERAGE = 0x80A0; | |
10965 | |
10966 static const int SAMPLE_COVERAGE_INVERT = 0x80AB; | |
10967 | |
10968 static const int SAMPLE_COVERAGE_VALUE = 0x80AA; | |
10969 | |
10970 static const int SCISSOR_BOX = 0x0C10; | |
10971 | |
10972 static const int SCISSOR_TEST = 0x0C11; | |
10973 | |
10974 static const int SHADER_TYPE = 0x8B4F; | |
10975 | |
10976 static const int SHADING_LANGUAGE_VERSION = 0x8B8C; | |
10977 | |
10978 static const int SHORT = 0x1402; | |
10979 | |
10980 static const int SRC_ALPHA = 0x0302; | |
10981 | |
10982 static const int SRC_ALPHA_SATURATE = 0x0308; | |
10983 | |
10984 static const int SRC_COLOR = 0x0300; | |
10985 | |
10986 static const int STATIC_DRAW = 0x88E4; | |
10987 | |
10988 static const int STENCIL_ATTACHMENT = 0x8D20; | |
10989 | |
10990 static const int STENCIL_BACK_FAIL = 0x8801; | |
10991 | |
10992 static const int STENCIL_BACK_FUNC = 0x8800; | |
10993 | |
10994 static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; | |
10995 | |
10996 static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; | |
10997 | |
10998 static const int STENCIL_BACK_REF = 0x8CA3; | |
10999 | |
11000 static const int STENCIL_BACK_VALUE_MASK = 0x8CA4; | |
11001 | |
11002 static const int STENCIL_BACK_WRITEMASK = 0x8CA5; | |
11003 | |
11004 static const int STENCIL_BITS = 0x0D57; | |
11005 | |
11006 static const int STENCIL_BUFFER_BIT = 0x00000400; | |
11007 | |
11008 static const int STENCIL_CLEAR_VALUE = 0x0B91; | |
11009 | |
11010 static const int STENCIL_FAIL = 0x0B94; | |
11011 | |
11012 static const int STENCIL_FUNC = 0x0B92; | |
11013 | |
11014 static const int STENCIL_INDEX = 0x1901; | |
11015 | |
11016 static const int STENCIL_INDEX8 = 0x8D48; | |
11017 | |
11018 static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95; | |
11019 | |
11020 static const int STENCIL_PASS_DEPTH_PASS = 0x0B96; | |
11021 | |
11022 static const int STENCIL_REF = 0x0B97; | |
11023 | |
11024 static const int STENCIL_TEST = 0x0B90; | |
11025 | |
11026 static const int STENCIL_VALUE_MASK = 0x0B93; | |
11027 | |
11028 static const int STENCIL_WRITEMASK = 0x0B98; | |
11029 | |
11030 static const int STREAM_DRAW = 0x88E0; | |
11031 | |
11032 static const int SUBPIXEL_BITS = 0x0D50; | |
11033 | |
11034 static const int TEXTURE = 0x1702; | |
11035 | |
11036 static const int TEXTURE0 = 0x84C0; | |
11037 | |
11038 static const int TEXTURE1 = 0x84C1; | |
11039 | |
11040 static const int TEXTURE10 = 0x84CA; | |
11041 | |
11042 static const int TEXTURE11 = 0x84CB; | |
11043 | |
11044 static const int TEXTURE12 = 0x84CC; | |
11045 | |
11046 static const int TEXTURE13 = 0x84CD; | |
11047 | |
11048 static const int TEXTURE14 = 0x84CE; | |
11049 | |
11050 static const int TEXTURE15 = 0x84CF; | |
11051 | |
11052 static const int TEXTURE16 = 0x84D0; | |
11053 | |
11054 static const int TEXTURE17 = 0x84D1; | |
11055 | |
11056 static const int TEXTURE18 = 0x84D2; | |
11057 | |
11058 static const int TEXTURE19 = 0x84D3; | |
11059 | |
11060 static const int TEXTURE2 = 0x84C2; | |
11061 | |
11062 static const int TEXTURE20 = 0x84D4; | |
11063 | |
11064 static const int TEXTURE21 = 0x84D5; | |
11065 | |
11066 static const int TEXTURE22 = 0x84D6; | |
11067 | |
11068 static const int TEXTURE23 = 0x84D7; | |
11069 | |
11070 static const int TEXTURE24 = 0x84D8; | |
11071 | |
11072 static const int TEXTURE25 = 0x84D9; | |
11073 | |
11074 static const int TEXTURE26 = 0x84DA; | |
11075 | |
11076 static const int TEXTURE27 = 0x84DB; | |
11077 | |
11078 static const int TEXTURE28 = 0x84DC; | |
11079 | |
11080 static const int TEXTURE29 = 0x84DD; | |
11081 | |
11082 static const int TEXTURE3 = 0x84C3; | |
11083 | |
11084 static const int TEXTURE30 = 0x84DE; | |
11085 | |
11086 static const int TEXTURE31 = 0x84DF; | |
11087 | |
11088 static const int TEXTURE4 = 0x84C4; | |
11089 | |
11090 static const int TEXTURE5 = 0x84C5; | |
11091 | |
11092 static const int TEXTURE6 = 0x84C6; | |
11093 | |
11094 static const int TEXTURE7 = 0x84C7; | |
11095 | |
11096 static const int TEXTURE8 = 0x84C8; | |
11097 | |
11098 static const int TEXTURE9 = 0x84C9; | |
11099 | |
11100 static const int TEXTURE_2D = 0x0DE1; | |
11101 | |
11102 static const int TEXTURE_BINDING_2D = 0x8069; | |
11103 | |
11104 static const int TEXTURE_BINDING_CUBE_MAP = 0x8514; | |
11105 | |
11106 static const int TEXTURE_CUBE_MAP = 0x8513; | |
11107 | |
11108 static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; | |
11109 | |
11110 static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; | |
11111 | |
11112 static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; | |
11113 | |
11114 static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; | |
11115 | |
11116 static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; | |
11117 | |
11118 static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; | |
11119 | |
11120 static const int TEXTURE_MAG_FILTER = 0x2800; | |
11121 | |
11122 static const int TEXTURE_MIN_FILTER = 0x2801; | |
11123 | |
11124 static const int TEXTURE_WRAP_S = 0x2802; | |
11125 | |
11126 static const int TEXTURE_WRAP_T = 0x2803; | |
11127 | |
11128 static const int TRIANGLES = 0x0004; | |
11129 | |
11130 static const int TRIANGLE_FAN = 0x0006; | |
11131 | |
11132 static const int TRIANGLE_STRIP = 0x0005; | |
11133 | |
11134 static const int UNPACK_ALIGNMENT = 0x0CF5; | |
11135 | |
11136 static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | |
11137 | |
11138 static const int UNPACK_FLIP_Y_WEBGL = 0x9240; | |
11139 | |
11140 static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | |
11141 | |
11142 static const int UNSIGNED_BYTE = 0x1401; | |
11143 | |
11144 static const int UNSIGNED_INT = 0x1405; | |
11145 | |
11146 static const int UNSIGNED_SHORT = 0x1403; | |
11147 | |
11148 static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033; | |
11149 | |
11150 static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034; | |
11151 | |
11152 static const int UNSIGNED_SHORT_5_6_5 = 0x8363; | |
11153 | |
11154 static const int VALIDATE_STATUS = 0x8B83; | |
11155 | |
11156 static const int VENDOR = 0x1F00; | |
11157 | |
11158 static const int VERSION = 0x1F02; | |
11159 | |
11160 static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; | |
11161 | |
11162 static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; | |
11163 | |
11164 static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; | |
11165 | |
11166 static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; | |
11167 | |
11168 static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; | |
11169 | |
11170 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; | |
11171 | |
11172 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; | |
11173 | |
11174 static const int VERTEX_SHADER = 0x8B31; | |
11175 | |
11176 static const int VIEWPORT = 0x0BA2; | |
11177 | |
11178 static const int ZERO = 0; | |
11179 | |
11180 final int drawingBufferHeight; | |
11181 | |
11182 final int drawingBufferWidth; | |
11183 | |
11184 void activeTexture(int texture) native; | |
11185 | |
11186 void attachShader(_WebGLProgramJs program, _WebGLShaderJs shader) native; | |
11187 | |
11188 void bindAttribLocation(_WebGLProgramJs program, int index, String name) nativ
e; | |
11189 | |
11190 void bindBuffer(int target, _WebGLBufferJs buffer) native; | |
11191 | |
11192 void bindFramebuffer(int target, _WebGLFramebufferJs framebuffer) native; | |
11193 | |
11194 void bindRenderbuffer(int target, _WebGLRenderbufferJs renderbuffer) native; | |
11195 | |
11196 void bindTexture(int target, _WebGLTextureJs texture) native; | |
11197 | |
11198 void blendColor(num red, num green, num blue, num alpha) native; | |
11199 | |
11200 void blendEquation(int mode) native; | |
11201 | |
11202 void blendEquationSeparate(int modeRGB, int modeAlpha) native; | |
11203 | |
11204 void blendFunc(int sfactor, int dfactor) native; | |
11205 | |
11206 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; | |
11207 | |
11208 void bufferData(int target, data_OR_size, int usage) native; | |
11209 | |
11210 void bufferSubData(int target, int offset, data) native; | |
11211 | |
11212 int checkFramebufferStatus(int target) native; | |
11213 | |
11214 void clear(int mask) native; | |
11215 | |
11216 void clearColor(num red, num green, num blue, num alpha) native; | |
11217 | |
11218 void clearDepth(num depth) native; | |
11219 | |
11220 void clearStencil(int s) native; | |
11221 | |
11222 void colorMask(bool red, bool green, bool blue, bool alpha) native; | |
11223 | |
11224 void compileShader(_WebGLShaderJs shader) native; | |
11225 | |
11226 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, _ArrayBufferViewJs data) native; | |
11227 | |
11228 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, _ArrayBufferViewJs data) native; | |
11229 | |
11230 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) native; | |
11231 | |
11232 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) native; | |
11233 | |
11234 _WebGLBufferJs createBuffer() native; | |
11235 | |
11236 _WebGLFramebufferJs createFramebuffer() native; | |
11237 | |
11238 _WebGLProgramJs createProgram() native; | |
11239 | |
11240 _WebGLRenderbufferJs createRenderbuffer() native; | |
11241 | |
11242 _WebGLShaderJs createShader(int type) native; | |
11243 | |
11244 _WebGLTextureJs createTexture() native; | |
11245 | |
11246 void cullFace(int mode) native; | |
11247 | |
11248 void deleteBuffer(_WebGLBufferJs buffer) native; | |
11249 | |
11250 void deleteFramebuffer(_WebGLFramebufferJs framebuffer) native; | |
11251 | |
11252 void deleteProgram(_WebGLProgramJs program) native; | |
11253 | |
11254 void deleteRenderbuffer(_WebGLRenderbufferJs renderbuffer) native; | |
11255 | |
11256 void deleteShader(_WebGLShaderJs shader) native; | |
11257 | |
11258 void deleteTexture(_WebGLTextureJs texture) native; | |
11259 | |
11260 void depthFunc(int func) native; | |
11261 | |
11262 void depthMask(bool flag) native; | |
11263 | |
11264 void depthRange(num zNear, num zFar) native; | |
11265 | |
11266 void detachShader(_WebGLProgramJs program, _WebGLShaderJs shader) native; | |
11267 | |
11268 void disable(int cap) native; | |
11269 | |
11270 void disableVertexAttribArray(int index) native; | |
11271 | |
11272 void drawArrays(int mode, int first, int count) native; | |
11273 | |
11274 void drawElements(int mode, int count, int type, int offset) native; | |
11275 | |
11276 void enable(int cap) native; | |
11277 | |
11278 void enableVertexAttribArray(int index) native; | |
11279 | |
11280 void finish() native; | |
11281 | |
11282 void flush() native; | |
11283 | |
11284 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, _WebGLRenderbufferJs renderbuffer) native; | |
11285 | |
11286 void framebufferTexture2D(int target, int attachment, int textarget, _WebGLTex
tureJs texture, int level) native; | |
11287 | |
11288 void frontFace(int mode) native; | |
11289 | |
11290 void generateMipmap(int target) native; | |
11291 | |
11292 _WebGLActiveInfoJs getActiveAttrib(_WebGLProgramJs program, int index) native; | |
11293 | |
11294 _WebGLActiveInfoJs getActiveUniform(_WebGLProgramJs program, int index) native
; | |
11295 | |
11296 List<Object> getAttachedShaders(_WebGLProgramJs program) native; | |
11297 | |
11298 int getAttribLocation(_WebGLProgramJs program, String name) native; | |
11299 | |
11300 Object getBufferParameter(int target, int pname) native; | |
11301 | |
11302 _WebGLContextAttributesJs getContextAttributes() native; | |
11303 | |
11304 int getError() native; | |
11305 | |
11306 Object getExtension(String name) native; | |
11307 | |
11308 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) native; | |
11309 | |
11310 Object getParameter(int pname) native; | |
11311 | |
11312 String getProgramInfoLog(_WebGLProgramJs program) native; | |
11313 | |
11314 Object getProgramParameter(_WebGLProgramJs program, int pname) native; | |
11315 | |
11316 Object getRenderbufferParameter(int target, int pname) native; | |
11317 | |
11318 String getShaderInfoLog(_WebGLShaderJs shader) native; | |
11319 | |
11320 Object getShaderParameter(_WebGLShaderJs shader, int pname) native; | |
11321 | |
11322 _WebGLShaderPrecisionFormatJs getShaderPrecisionFormat(int shadertype, int pre
cisiontype) native; | |
11323 | |
11324 String getShaderSource(_WebGLShaderJs shader) native; | |
11325 | |
11326 List<String> getSupportedExtensions() native; | |
11327 | |
11328 Object getTexParameter(int target, int pname) native; | |
11329 | |
11330 Object getUniform(_WebGLProgramJs program, _WebGLUniformLocationJs location) n
ative; | |
11331 | |
11332 _WebGLUniformLocationJs getUniformLocation(_WebGLProgramJs program, String nam
e) native; | |
11333 | |
11334 Object getVertexAttrib(int index, int pname) native; | |
11335 | |
11336 int getVertexAttribOffset(int index, int pname) native; | |
11337 | |
11338 void hint(int target, int mode) native; | |
11339 | |
11340 bool isBuffer(_WebGLBufferJs buffer) native; | |
11341 | |
11342 bool isContextLost() native; | |
11343 | |
11344 bool isEnabled(int cap) native; | |
11345 | |
11346 bool isFramebuffer(_WebGLFramebufferJs framebuffer) native; | |
11347 | |
11348 bool isProgram(_WebGLProgramJs program) native; | |
11349 | |
11350 bool isRenderbuffer(_WebGLRenderbufferJs renderbuffer) native; | |
11351 | |
11352 bool isShader(_WebGLShaderJs shader) native; | |
11353 | |
11354 bool isTexture(_WebGLTextureJs texture) native; | |
11355 | |
11356 void lineWidth(num width) native; | |
11357 | |
11358 void linkProgram(_WebGLProgramJs program) native; | |
11359 | |
11360 void pixelStorei(int pname, int param) native; | |
11361 | |
11362 void polygonOffset(num factor, num units) native; | |
11363 | |
11364 void readPixels(int x, int y, int width, int height, int format, int type, _Ar
rayBufferViewJs pixels) native; | |
11365 | |
11366 void releaseShaderCompiler() native; | |
11367 | |
11368 void renderbufferStorage(int target, int internalformat, int width, int height
) native; | |
11369 | |
11370 void sampleCoverage(num value, bool invert) native; | |
11371 | |
11372 void scissor(int x, int y, int width, int height) native; | |
11373 | |
11374 void shaderSource(_WebGLShaderJs shader, String string) native; | |
11375 | |
11376 void stencilFunc(int func, int ref, int mask) native; | |
11377 | |
11378 void stencilFuncSeparate(int face, int func, int ref, int mask) native; | |
11379 | |
11380 void stencilMask(int mask) native; | |
11381 | |
11382 void stencilMaskSeparate(int face, int mask) native; | |
11383 | |
11384 void stencilOp(int fail, int zfail, int zpass) native; | |
11385 | |
11386 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | |
11387 | |
11388 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, _ArrayBufferViewJs pixels]) native; | |
11389 | |
11390 void texParameterf(int target, int pname, num param) native; | |
11391 | |
11392 void texParameteri(int target, int pname, int param) native; | |
11393 | |
11394 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, _ArrayBufferViewJs pixels]) native; | |
11395 | |
11396 void uniform1f(_WebGLUniformLocationJs location, num x) native; | |
11397 | |
11398 void uniform1fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | |
11399 | |
11400 void uniform1i(_WebGLUniformLocationJs location, int x) native; | |
11401 | |
11402 void uniform1iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | |
11403 | |
11404 void uniform2f(_WebGLUniformLocationJs location, num x, num y) native; | |
11405 | |
11406 void uniform2fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | |
11407 | |
11408 void uniform2i(_WebGLUniformLocationJs location, int x, int y) native; | |
11409 | |
11410 void uniform2iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | |
11411 | |
11412 void uniform3f(_WebGLUniformLocationJs location, num x, num y, num z) native; | |
11413 | |
11414 void uniform3fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | |
11415 | |
11416 void uniform3i(_WebGLUniformLocationJs location, int x, int y, int z) native; | |
11417 | |
11418 void uniform3iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | |
11419 | |
11420 void uniform4f(_WebGLUniformLocationJs location, num x, num y, num z, num w) n
ative; | |
11421 | |
11422 void uniform4fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | |
11423 | |
11424 void uniform4i(_WebGLUniformLocationJs location, int x, int y, int z, int w) n
ative; | |
11425 | |
11426 void uniform4iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | |
11427 | |
11428 void uniformMatrix2fv(_WebGLUniformLocationJs location, bool transpose, _Float
32ArrayJs array) native; | |
11429 | |
11430 void uniformMatrix3fv(_WebGLUniformLocationJs location, bool transpose, _Float
32ArrayJs array) native; | |
11431 | |
11432 void uniformMatrix4fv(_WebGLUniformLocationJs location, bool transpose, _Float
32ArrayJs array) native; | |
11433 | |
11434 void useProgram(_WebGLProgramJs program) native; | |
11435 | |
11436 void validateProgram(_WebGLProgramJs program) native; | |
11437 | |
11438 void vertexAttrib1f(int indx, num x) native; | |
11439 | |
11440 void vertexAttrib1fv(int indx, _Float32ArrayJs values) native; | |
11441 | |
11442 void vertexAttrib2f(int indx, num x, num y) native; | |
11443 | |
11444 void vertexAttrib2fv(int indx, _Float32ArrayJs values) native; | |
11445 | |
11446 void vertexAttrib3f(int indx, num x, num y, num z) native; | |
11447 | |
11448 void vertexAttrib3fv(int indx, _Float32ArrayJs values) native; | |
11449 | |
11450 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; | |
11451 | |
11452 void vertexAttrib4fv(int indx, _Float32ArrayJs values) native; | |
11453 | |
11454 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) native; | |
11455 | |
11456 void viewport(int x, int y, int width, int height) native; | |
11457 } | |
11458 | |
11459 class _WebGLShaderJs extends _DOMTypeJs implements WebGLShader native "*WebGLSha
der" { | |
11460 } | |
11461 | |
11462 class _WebGLShaderPrecisionFormatJs extends _DOMTypeJs implements WebGLShaderPre
cisionFormat native "*WebGLShaderPrecisionFormat" { | |
11463 | |
11464 final int precision; | |
11465 | |
11466 final int rangeMax; | |
11467 | |
11468 final int rangeMin; | |
11469 } | |
11470 | |
11471 class _WebGLTextureJs extends _DOMTypeJs implements WebGLTexture native "*WebGLT
exture" { | |
11472 } | |
11473 | |
11474 class _WebGLUniformLocationJs extends _DOMTypeJs implements WebGLUniformLocation
native "*WebGLUniformLocation" { | |
11475 } | |
11476 | |
11477 class _WebGLVertexArrayObjectOESJs extends _DOMTypeJs implements WebGLVertexArra
yObjectOES native "*WebGLVertexArrayObjectOES" { | |
11478 } | |
11479 | |
11480 class _WebKitAnimationJs extends _DOMTypeJs implements WebKitAnimation native "*
WebKitAnimation" { | |
11481 | |
11482 static const int DIRECTION_ALTERNATE = 1; | |
11483 | |
11484 static const int DIRECTION_NORMAL = 0; | |
11485 | |
11486 static const int FILL_BACKWARDS = 1; | |
11487 | |
11488 static const int FILL_BOTH = 3; | |
11489 | |
11490 static const int FILL_FORWARDS = 2; | |
11491 | |
11492 static const int FILL_NONE = 0; | |
11493 | |
11494 final num delay; | |
11495 | |
11496 final int direction; | |
11497 | |
11498 final num duration; | |
11499 | |
11500 num elapsedTime; | |
11501 | |
11502 final bool ended; | |
11503 | |
11504 final int fillMode; | |
11505 | |
11506 final int iterationCount; | |
11507 | |
11508 final String name; | |
11509 | |
11510 final bool paused; | |
11511 | |
11512 void pause() native; | |
11513 | |
11514 void play() native; | |
11515 } | |
11516 | |
11517 class _WebKitAnimationEventJs extends _EventJs implements WebKitAnimationEvent n
ative "*WebKitAnimationEvent" { | |
11518 | |
11519 final String animationName; | |
11520 | |
11521 final num elapsedTime; | |
11522 } | |
11523 | |
11524 class _WebKitAnimationListJs extends _DOMTypeJs implements WebKitAnimationList n
ative "*WebKitAnimationList" { | |
11525 | |
11526 final int length; | |
11527 | |
11528 _WebKitAnimationJs item(int index) native; | |
11529 } | |
11530 | |
11531 class _WebKitCSSFilterValueJs extends _CSSValueListJs implements WebKitCSSFilter
Value native "*WebKitCSSFilterValue" { | |
11532 | |
11533 static const int CSS_FILTER_BLUR = 10; | |
11534 | |
11535 static const int CSS_FILTER_BRIGHTNESS = 8; | |
11536 | |
11537 static const int CSS_FILTER_CONTRAST = 9; | |
11538 | |
11539 static const int CSS_FILTER_CUSTOM = 12; | |
11540 | |
11541 static const int CSS_FILTER_DROP_SHADOW = 11; | |
11542 | |
11543 static const int CSS_FILTER_GRAYSCALE = 2; | |
11544 | |
11545 static const int CSS_FILTER_HUE_ROTATE = 5; | |
11546 | |
11547 static const int CSS_FILTER_INVERT = 6; | |
11548 | |
11549 static const int CSS_FILTER_OPACITY = 7; | |
11550 | |
11551 static const int CSS_FILTER_REFERENCE = 1; | |
11552 | |
11553 static const int CSS_FILTER_SATURATE = 4; | |
11554 | |
11555 static const int CSS_FILTER_SEPIA = 3; | |
11556 | |
11557 final int operationType; | |
11558 } | |
11559 | |
11560 class _WebKitCSSKeyframeRuleJs extends _CSSRuleJs implements WebKitCSSKeyframeRu
le native "*WebKitCSSKeyframeRule" { | |
11561 | |
11562 String keyText; | |
11563 | |
11564 final _CSSStyleDeclarationJs style; | |
11565 } | |
11566 | |
11567 class _WebKitCSSKeyframesRuleJs extends _CSSRuleJs implements WebKitCSSKeyframes
Rule native "*WebKitCSSKeyframesRule" { | |
11568 | |
11569 final _CSSRuleListJs cssRules; | |
11570 | |
11571 String name; | |
11572 | |
11573 void deleteRule(String key) native; | |
11574 | |
11575 _WebKitCSSKeyframeRuleJs findRule(String key) native; | |
11576 | |
11577 void insertRule(String rule) native; | |
11578 } | |
11579 | |
11580 class _WebKitCSSMatrixJs extends _DOMTypeJs implements WebKitCSSMatrix native "*
WebKitCSSMatrix" { | |
11581 | |
11582 num a; | |
11583 | |
11584 num b; | |
11585 | |
11586 num c; | |
11587 | |
11588 num d; | |
11589 | |
11590 num e; | |
11591 | |
11592 num f; | |
11593 | |
11594 num m11; | |
11595 | |
11596 num m12; | |
11597 | |
11598 num m13; | |
11599 | |
11600 num m14; | |
11601 | |
11602 num m21; | |
11603 | |
11604 num m22; | |
11605 | |
11606 num m23; | |
11607 | |
11608 num m24; | |
11609 | |
11610 num m31; | |
11611 | |
11612 num m32; | |
11613 | |
11614 num m33; | |
11615 | |
11616 num m34; | |
11617 | |
11618 num m41; | |
11619 | |
11620 num m42; | |
11621 | |
11622 num m43; | |
11623 | |
11624 num m44; | |
11625 | |
11626 _WebKitCSSMatrixJs inverse() native; | |
11627 | |
11628 _WebKitCSSMatrixJs multiply(_WebKitCSSMatrixJs secondMatrix) native; | |
11629 | |
11630 _WebKitCSSMatrixJs rotate(num rotX, num rotY, num rotZ) native; | |
11631 | |
11632 _WebKitCSSMatrixJs rotateAxisAngle(num x, num y, num z, num angle) native; | |
11633 | |
11634 _WebKitCSSMatrixJs scale(num scaleX, num scaleY, num scaleZ) native; | |
11635 | |
11636 void setMatrixValue(String string) native; | |
11637 | |
11638 _WebKitCSSMatrixJs skewX(num angle) native; | |
11639 | |
11640 _WebKitCSSMatrixJs skewY(num angle) native; | |
11641 | |
11642 String toString() native; | |
11643 | |
11644 _WebKitCSSMatrixJs translate(num x, num y, num z) native; | |
11645 } | |
11646 | |
11647 class _WebKitCSSTransformValueJs extends _CSSValueListJs implements WebKitCSSTra
nsformValue native "*WebKitCSSTransformValue" { | |
11648 | |
11649 static const int CSS_MATRIX = 11; | |
11650 | |
11651 static const int CSS_MATRIX3D = 21; | |
11652 | |
11653 static const int CSS_PERSPECTIVE = 20; | |
11654 | |
11655 static const int CSS_ROTATE = 4; | |
11656 | |
11657 static const int CSS_ROTATE3D = 17; | |
11658 | |
11659 static const int CSS_ROTATEX = 14; | |
11660 | |
11661 static const int CSS_ROTATEY = 15; | |
11662 | |
11663 static const int CSS_ROTATEZ = 16; | |
11664 | |
11665 static const int CSS_SCALE = 5; | |
11666 | |
11667 static const int CSS_SCALE3D = 19; | |
11668 | |
11669 static const int CSS_SCALEX = 6; | |
11670 | |
11671 static const int CSS_SCALEY = 7; | |
11672 | |
11673 static const int CSS_SCALEZ = 18; | |
11674 | |
11675 static const int CSS_SKEW = 8; | |
11676 | |
11677 static const int CSS_SKEWX = 9; | |
11678 | |
11679 static const int CSS_SKEWY = 10; | |
11680 | |
11681 static const int CSS_TRANSLATE = 1; | |
11682 | |
11683 static const int CSS_TRANSLATE3D = 13; | |
11684 | |
11685 static const int CSS_TRANSLATEX = 2; | |
11686 | |
11687 static const int CSS_TRANSLATEY = 3; | |
11688 | |
11689 static const int CSS_TRANSLATEZ = 12; | |
11690 | |
11691 final int operationType; | |
11692 } | |
11693 | |
11694 class _WebKitNamedFlowJs extends _EventTargetJs implements WebKitNamedFlow nativ
e "*WebKitNamedFlow" { | |
11695 | |
11696 final int firstEmptyRegionIndex; | |
11697 | |
11698 final String name; | |
11699 | |
11700 final bool overset; | |
11701 | |
11702 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
11703 | |
11704 bool dispatchEvent(_EventJs event) native; | |
11705 | |
11706 _NodeListJs getContent() native; | |
11707 | |
11708 _NodeListJs getRegions() native; | |
11709 | |
11710 _NodeListJs getRegionsByContent(_NodeJs contentNode) native; | |
11711 | |
11712 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
11713 } | |
11714 | |
11715 class _WebKitPointJs extends _DOMTypeJs implements WebKitPoint native "*WebKitPo
int" { | |
11716 | |
11717 num x; | |
11718 | |
11719 num y; | |
11720 } | |
11721 | |
11722 class _WebKitTransitionEventJs extends _EventJs implements WebKitTransitionEvent
native "*WebKitTransitionEvent" { | |
11723 | |
11724 final num elapsedTime; | |
11725 | |
11726 final String propertyName; | |
11727 } | |
11728 | |
11729 class _WebSocketJs extends _EventTargetJs implements WebSocket native "*WebSocke
t" { | |
11730 | |
11731 static const int CLOSED = 3; | |
11732 | |
11733 static const int CLOSING = 2; | |
11734 | |
11735 static const int CONNECTING = 0; | |
11736 | |
11737 static const int OPEN = 1; | |
11738 | |
11739 final String URL; | |
11740 | |
11741 String binaryType; | |
11742 | |
11743 final int bufferedAmount; | |
11744 | |
11745 final String extensions; | |
11746 | |
11747 final String protocol; | |
11748 | |
11749 final int readyState; | |
11750 | |
11751 final String url; | |
11752 | |
11753 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
11754 | |
11755 void close([int code, String reason]) native; | |
11756 | |
11757 bool dispatchEvent(_EventJs evt) native; | |
11758 | |
11759 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
11760 | |
11761 void send(data) native; | |
11762 } | |
11763 | |
11764 class _WheelEventJs extends _MouseEventJs implements WheelEvent native "*WheelEv
ent" { | |
11765 | |
11766 final bool webkitDirectionInvertedFromDevice; | |
11767 | |
11768 final int wheelDelta; | |
11769 | |
11770 final int wheelDeltaX; | |
11771 | |
11772 final int wheelDeltaY; | |
11773 | |
11774 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, _DOMWindowJs view,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey,
bool shiftKey, bool metaKey) native; | |
11775 } | |
11776 | |
11777 class _WorkerJs extends _AbstractWorkerJs implements Worker native "*Worker" { | |
11778 | |
11779 void postMessage(message, [List messagePorts]) native; | |
11780 | |
11781 void terminate() native; | |
11782 | |
11783 void webkitPostMessage(message, [List messagePorts]) native; | |
11784 } | |
11785 | |
11786 class _WorkerContextJs extends _EventTargetJs implements WorkerContext native "*
WorkerContext" { | |
11787 | |
11788 static const int PERSISTENT = 1; | |
11789 | |
11790 static const int TEMPORARY = 0; | |
11791 | |
11792 final _WorkerLocationJs location; | |
11793 | |
11794 final _WorkerNavigatorJs navigator; | |
11795 | |
11796 final _WorkerContextJs self; | |
11797 | |
11798 final _IDBFactoryJs webkitIndexedDB; | |
11799 | |
11800 final _NotificationCenterJs webkitNotifications; | |
11801 | |
11802 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
11803 | |
11804 void clearInterval(int handle) native; | |
11805 | |
11806 void clearTimeout(int handle) native; | |
11807 | |
11808 void close() native; | |
11809 | |
11810 bool dispatchEvent(_EventJs evt) native; | |
11811 | |
11812 void importScripts() native; | |
11813 | |
11814 _DatabaseJs openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback]) native; | |
11815 | |
11816 _DatabaseSyncJs openDatabaseSync(String name, String version, String displayNa
me, int estimatedSize, [DatabaseCallback creationCallback]) native; | |
11817 | |
11818 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
11819 | |
11820 int setInterval(TimeoutHandler handler, int timeout) native; | |
11821 | |
11822 int setTimeout(TimeoutHandler handler, int timeout) native; | |
11823 | |
11824 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]) native; | |
11825 | |
11826 _DOMFileSystemSyncJs webkitRequestFileSystemSync(int type, int size) native; | |
11827 | |
11828 _EntrySyncJs webkitResolveLocalFileSystemSyncURL(String url) native; | |
11829 | |
11830 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]) native; | |
11831 } | |
11832 | |
11833 class _WorkerLocationJs extends _DOMTypeJs implements WorkerLocation native "*Wo
rkerLocation" { | |
11834 | |
11835 final String hash; | |
11836 | |
11837 final String host; | |
11838 | |
11839 final String hostname; | |
11840 | |
11841 final String href; | |
11842 | |
11843 final String pathname; | |
11844 | |
11845 final String port; | |
11846 | |
11847 final String protocol; | |
11848 | |
11849 final String search; | |
11850 | |
11851 String toString() native; | |
11852 } | |
11853 | |
11854 class _WorkerNavigatorJs extends _DOMTypeJs implements WorkerNavigator native "*
WorkerNavigator" { | |
11855 | |
11856 final String appName; | |
11857 | |
11858 final String appVersion; | |
11859 | |
11860 final bool onLine; | |
11861 | |
11862 final String platform; | |
11863 | |
11864 final String userAgent; | |
11865 } | |
11866 | |
11867 class _XMLHttpRequestJs extends _EventTargetJs implements XMLHttpRequest native
"*XMLHttpRequest" { | |
11868 | |
11869 static const int DONE = 4; | |
11870 | |
11871 static const int HEADERS_RECEIVED = 2; | |
11872 | |
11873 static const int LOADING = 3; | |
11874 | |
11875 static const int OPENED = 1; | |
11876 | |
11877 static const int UNSENT = 0; | |
11878 | |
11879 final int readyState; | |
11880 | |
11881 final Object response; | |
11882 | |
11883 final String responseText; | |
11884 | |
11885 String responseType; | |
11886 | |
11887 final _DocumentJs responseXML; | |
11888 | |
11889 final int status; | |
11890 | |
11891 final String statusText; | |
11892 | |
11893 final _XMLHttpRequestUploadJs upload; | |
11894 | |
11895 bool withCredentials; | |
11896 | |
11897 void abort() native; | |
11898 | |
11899 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
11900 | |
11901 bool dispatchEvent(_EventJs evt) native; | |
11902 | |
11903 String getAllResponseHeaders() native; | |
11904 | |
11905 String getResponseHeader(String header) native; | |
11906 | |
11907 void open(String method, String url, [bool async, String user, String password
]) native; | |
11908 | |
11909 void overrideMimeType(String override) native; | |
11910 | |
11911 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
11912 | |
11913 void send([data]) native; | |
11914 | |
11915 void setRequestHeader(String header, String value) native; | |
11916 } | |
11917 | |
11918 class _XMLHttpRequestExceptionJs extends _DOMTypeJs implements XMLHttpRequestExc
eption native "*XMLHttpRequestException" { | |
11919 | |
11920 static const int ABORT_ERR = 102; | |
11921 | |
11922 static const int NETWORK_ERR = 101; | |
11923 | |
11924 final int code; | |
11925 | |
11926 final String message; | |
11927 | |
11928 final String name; | |
11929 | |
11930 String toString() native; | |
11931 } | |
11932 | |
11933 class _XMLHttpRequestProgressEventJs extends _ProgressEventJs implements XMLHttp
RequestProgressEvent native "*XMLHttpRequestProgressEvent" { | |
11934 | |
11935 final int position; | |
11936 | |
11937 final int totalSize; | |
11938 } | |
11939 | |
11940 class _XMLHttpRequestUploadJs extends _EventTargetJs implements XMLHttpRequestUp
load native "*XMLHttpRequestUpload" { | |
11941 | |
11942 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
11943 | |
11944 bool dispatchEvent(_EventJs evt) native; | |
11945 | |
11946 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
11947 } | |
11948 | |
11949 class _XMLSerializerJs extends _DOMTypeJs implements XMLSerializer native "*XMLS
erializer" { | |
11950 | |
11951 String serializeToString(_NodeJs node) native; | |
11952 } | |
11953 | |
11954 class _XPathEvaluatorJs extends _DOMTypeJs implements XPathEvaluator native "*XP
athEvaluator" { | |
11955 | |
11956 _XPathExpressionJs createExpression(String expression, _XPathNSResolverJs reso
lver) native; | |
11957 | |
11958 _XPathNSResolverJs createNSResolver(_NodeJs nodeResolver) native; | |
11959 | |
11960 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv
erJs resolver, int type, _XPathResultJs inResult) native; | |
11961 } | |
11962 | |
11963 class _XPathExceptionJs extends _DOMTypeJs implements XPathException native "*XP
athException" { | |
11964 | |
11965 static const int INVALID_EXPRESSION_ERR = 51; | |
11966 | |
11967 static const int TYPE_ERR = 52; | |
11968 | |
11969 final int code; | |
11970 | |
11971 final String message; | |
11972 | |
11973 final String name; | |
11974 | |
11975 String toString() native; | |
11976 } | |
11977 | |
11978 class _XPathExpressionJs extends _DOMTypeJs implements XPathExpression native "*
XPathExpression" { | |
11979 | |
11980 _XPathResultJs evaluate(_NodeJs contextNode, int type, _XPathResultJs inResult
) native; | |
11981 } | |
11982 | |
11983 class _XPathNSResolverJs extends _DOMTypeJs implements XPathNSResolver native "*
XPathNSResolver" { | |
11984 | |
11985 String lookupNamespaceURI(String prefix) native; | |
11986 } | |
11987 | |
11988 class _XPathResultJs extends _DOMTypeJs implements XPathResult native "*XPathRes
ult" { | |
11989 | |
11990 static const int ANY_TYPE = 0; | |
11991 | |
11992 static const int ANY_UNORDERED_NODE_TYPE = 8; | |
11993 | |
11994 static const int BOOLEAN_TYPE = 3; | |
11995 | |
11996 static const int FIRST_ORDERED_NODE_TYPE = 9; | |
11997 | |
11998 static const int NUMBER_TYPE = 1; | |
11999 | |
12000 static const int ORDERED_NODE_ITERATOR_TYPE = 5; | |
12001 | |
12002 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; | |
12003 | |
12004 static const int STRING_TYPE = 2; | |
12005 | |
12006 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; | |
12007 | |
12008 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; | |
12009 | |
12010 final bool booleanValue; | |
12011 | |
12012 final bool invalidIteratorState; | |
12013 | |
12014 final num numberValue; | |
12015 | |
12016 final int resultType; | |
12017 | |
12018 final _NodeJs singleNodeValue; | |
12019 | |
12020 final int snapshotLength; | |
12021 | |
12022 final String stringValue; | |
12023 | |
12024 _NodeJs iterateNext() native; | |
12025 | |
12026 _NodeJs snapshotItem(int index) native; | |
12027 } | |
12028 | |
12029 class _XSLTProcessorJs extends _DOMTypeJs implements XSLTProcessor native "*XSLT
Processor" { | |
12030 | |
12031 void clearParameters() native; | |
12032 | |
12033 String getParameter(String namespaceURI, String localName) native; | |
12034 | |
12035 void importStylesheet(_NodeJs stylesheet) native; | |
12036 | |
12037 void removeParameter(String namespaceURI, String localName) native; | |
12038 | |
12039 void reset() native; | |
12040 | |
12041 void setParameter(String namespaceURI, String localName, String value) native; | |
12042 | |
12043 _DocumentJs transformToDocument(_NodeJs source) native; | |
12044 | |
12045 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na
tive; | |
12046 } | |
12047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12048 // for details. All rights reserved. Use of this source code is governed by a | |
12049 // BSD-style license that can be found in the LICENSE file. | |
12050 | |
12051 class _ArrayBufferFactoryProvider { | |
12052 factory ArrayBuffer(int length) native | |
12053 '''return new ArrayBuffer(length);'''; | |
12054 } | |
12055 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12056 // for details. All rights reserved. Use of this source code is governed by a | |
12057 // BSD-style license that can be found in the LICENSE file. | |
12058 | |
12059 class _BlobFactoryProvider { | |
12060 factory Blob(List blobParts, [String type, String endings]) native | |
12061 '''return new Blob(blobParts, type, endings);'''; | |
12062 } | |
12063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12064 // for details. All rights reserved. Use of this source code is governed by a | |
12065 // BSD-style license that can be found in the LICENSE file. | |
12066 | |
12067 class _DOMFormDataFactoryProvider { | |
12068 factory DOMFormData([FormElement form]) native | |
12069 '''return new DOMFormData(form);'''; | |
12070 } | |
12071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12072 // for details. All rights reserved. Use of this source code is governed by a | |
12073 // BSD-style license that can be found in the LICENSE file. | |
12074 | |
12075 class _DOMParserFactoryProvider { | |
12076 factory DOMParser() native | |
12077 '''return new DOMParser();'''; | |
12078 } | |
12079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12080 // for details. All rights reserved. Use of this source code is governed by a | |
12081 // BSD-style license that can be found in the LICENSE file. | |
12082 | |
12083 class _DOMURLFactoryProvider { | |
12084 factory DOMURL() native | |
12085 '''return new DOMURL();'''; | |
12086 } | |
12087 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12088 // for details. All rights reserved. Use of this source code is governed by a | |
12089 // BSD-style license that can be found in the LICENSE file. | |
12090 | |
12091 class _DataViewFactoryProvider { | |
12092 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) native | |
12093 '''return new DataView(buffer, byteOffset, byteLength);'''; | |
12094 } | |
12095 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12096 // for details. All rights reserved. Use of this source code is governed by a | |
12097 // BSD-style license that can be found in the LICENSE file. | |
12098 | |
12099 class _EventSourceFactoryProvider { | |
12100 factory EventSource(String scriptUrl) native | |
12101 '''return new EventSource(scriptUrl);'''; | |
12102 } | |
12103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12104 // for details. All rights reserved. Use of this source code is governed by a | |
12105 // BSD-style license that can be found in the LICENSE file. | |
12106 | |
12107 class _FileReaderFactoryProvider { | |
12108 factory FileReader() native | |
12109 '''return new FileReader();'''; | |
12110 } | |
12111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12112 // for details. All rights reserved. Use of this source code is governed by a | |
12113 // BSD-style license that can be found in the LICENSE file. | |
12114 | |
12115 class _FileReaderSyncFactoryProvider { | |
12116 factory FileReaderSync() native | |
12117 '''return new FileReaderSync();'''; | |
12118 } | |
12119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12120 // for details. All rights reserved. Use of this source code is governed by a | |
12121 // BSD-style license that can be found in the LICENSE file. | |
12122 | |
12123 class _HTMLAudioElementFactoryProvider { | |
12124 factory HTMLAudioElement([String src = null]) native | |
12125 ''' | |
12126 if (src == null) return new Audio(); | |
12127 return new Audio(src); | |
12128 '''; | |
12129 } | |
12130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12131 // for details. All rights reserved. Use of this source code is governed by a | |
12132 // BSD-style license that can be found in the LICENSE file. | |
12133 | |
12134 class _HTMLOptionElementFactoryProvider { | |
12135 factory HTMLOptionElement([String data = null, String value = null, | |
12136 bool defaultSelected = null, bool selected = null]) | |
12137 native | |
12138 ''' | |
12139 if (data == null) return new Option(); | |
12140 if (value == null) return new Option(data); | |
12141 if (defaultSelected == null) return new Option(data, value); | |
12142 if (selected == null) return new Option(data, value, defaultSelected); | |
12143 return new Option(data, value, defaultSelected, selected); | |
12144 '''; | |
12145 } | |
12146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12147 // for details. All rights reserved. Use of this source code is governed by a | |
12148 // BSD-style license that can be found in the LICENSE file. | |
12149 | |
12150 class _IceCandidateFactoryProvider { | |
12151 factory IceCandidate(String label, String candidateLine) native | |
12152 '''return new IceCandidate(label, candidateLine);'''; | |
12153 } | |
12154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12155 // for details. All rights reserved. Use of this source code is governed by a | |
12156 // BSD-style license that can be found in the LICENSE file. | |
12157 | |
12158 class _MediaControllerFactoryProvider { | |
12159 factory MediaController() native | |
12160 '''return new MediaController();'''; | |
12161 } | |
12162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12163 // for details. All rights reserved. Use of this source code is governed by a | |
12164 // BSD-style license that can be found in the LICENSE file. | |
12165 | |
12166 class _MediaSourceFactoryProvider { | |
12167 factory MediaSource() native | |
12168 '''return new MediaSource();'''; | |
12169 } | |
12170 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12171 // for details. All rights reserved. Use of this source code is governed by a | |
12172 // BSD-style license that can be found in the LICENSE file. | |
12173 | |
12174 class _MediaStreamFactoryProvider { | |
12175 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid
eoTracks) native | |
12176 '''return new MediaStream(audioTracks, videoTracks);'''; | |
12177 } | |
12178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12179 // for details. All rights reserved. Use of this source code is governed by a | |
12180 // BSD-style license that can be found in the LICENSE file. | |
12181 | |
12182 class _MessageChannelFactoryProvider { | |
12183 factory MessageChannel() native | |
12184 '''return new MessageChannel();'''; | |
12185 } | |
12186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12187 // for details. All rights reserved. Use of this source code is governed by a | |
12188 // BSD-style license that can be found in the LICENSE file. | |
12189 | |
12190 class _MutationObserverFactoryProvider { | |
12191 factory MutationObserver(MutationCallback callback) native | |
12192 '''return new MutationObserver(callback);'''; | |
12193 } | |
12194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12195 // for details. All rights reserved. Use of this source code is governed by a | |
12196 // BSD-style license that can be found in the LICENSE file. | |
12197 | |
12198 class _NotificationFactoryProvider { | |
12199 factory Notification(String title, [Map options]) native | |
12200 '''return new Notification(title, options);'''; | |
12201 } | |
12202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12203 // for details. All rights reserved. Use of this source code is governed by a | |
12204 // BSD-style license that can be found in the LICENSE file. | |
12205 | |
12206 class _PeerConnection00FactoryProvider { | |
12207 factory PeerConnection00(String serverConfiguration, IceCallback iceCallback)
native | |
12208 '''return new PeerConnection00(serverConfiguration, iceCallback);'''; | |
12209 } | |
12210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12211 // for details. All rights reserved. Use of this source code is governed by a | |
12212 // BSD-style license that can be found in the LICENSE file. | |
12213 | |
12214 class _RTCPeerConnectionFactoryProvider { | |
12215 factory RTCPeerConnection(Map rtcICEServers, [Map mediaConstraints]) native | |
12216 '''return new RTCPeerConnection(rtcICEServers, mediaConstraints);'''; | |
12217 } | |
12218 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12219 // for details. All rights reserved. Use of this source code is governed by a | |
12220 // BSD-style license that can be found in the LICENSE file. | |
12221 | |
12222 class _SessionDescriptionFactoryProvider { | |
12223 factory SessionDescription(String sdp) native | |
12224 '''return new SessionDescription(sdp);'''; | |
12225 } | |
12226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12227 // for details. All rights reserved. Use of this source code is governed by a | |
12228 // BSD-style license that can be found in the LICENSE file. | |
12229 | |
12230 class _ShadowRootFactoryProvider { | |
12231 factory ShadowRoot(Element host) native | |
12232 '''return new ShadowRoot(host);'''; | |
12233 } | |
12234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12235 // for details. All rights reserved. Use of this source code is governed by a | |
12236 // BSD-style license that can be found in the LICENSE file. | |
12237 | |
12238 class _SharedWorkerFactoryProvider { | |
12239 factory SharedWorker(String scriptURL, [String name]) native | |
12240 ''' | |
12241 if (name == null) return new SharedWorker(scriptURL); | |
12242 return new SharedWorker(scriptURL, name); | |
12243 '''; | |
12244 } | |
12245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12246 // for details. All rights reserved. Use of this source code is governed by a | |
12247 // BSD-style license that can be found in the LICENSE file. | |
12248 | |
12249 class _SpeechGrammarFactoryProvider { | |
12250 factory SpeechGrammar() native | |
12251 '''return new SpeechGrammar();'''; | |
12252 } | |
12253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12254 // for details. All rights reserved. Use of this source code is governed by a | |
12255 // BSD-style license that can be found in the LICENSE file. | |
12256 | |
12257 class _SpeechGrammarListFactoryProvider { | |
12258 factory SpeechGrammarList() native | |
12259 '''return new SpeechGrammarList();'''; | |
12260 } | |
12261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12262 // for details. All rights reserved. Use of this source code is governed by a | |
12263 // BSD-style license that can be found in the LICENSE file. | |
12264 | |
12265 class _SpeechRecognitionFactoryProvider { | |
12266 factory SpeechRecognition() native | |
12267 '''return new SpeechRecognition();'''; | |
12268 } | |
12269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12270 // for details. All rights reserved. Use of this source code is governed by a | |
12271 // BSD-style license that can be found in the LICENSE file. | |
12272 | |
12273 class _TextTrackCueFactoryProvider { | |
12274 factory TextTrackCue(String id, num startTime, num endTime, String text, | |
12275 [String settings, bool pauseOnExit]) native | |
12276 ''' | |
12277 if (settings == null) | |
12278 return new TextTrackCue(id, startTime, endTime, text); | |
12279 if (pauseOnExit == null) | |
12280 return new TextTrackCue(id, startTime, endTime, text, settings); | |
12281 return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit); | |
12282 '''; | |
12283 } | |
12284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12285 // for details. All rights reserved. Use of this source code is governed by a | |
12286 // BSD-style license that can be found in the LICENSE file. | |
12287 | |
12288 class _WebKitCSSMatrixFactoryProvider { | |
12289 factory WebKitCSSMatrix([String cssValue = null]) native | |
12290 ''' | |
12291 if (cssValue == null) return new WebKitCSSMatrix(); | |
12292 return new WebKitCSSMatrix(cssValue); | |
12293 '''; | |
12294 } | |
12295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12296 // for details. All rights reserved. Use of this source code is governed by a | |
12297 // BSD-style license that can be found in the LICENSE file. | |
12298 | |
12299 class _WorkerFactoryProvider { | |
12300 factory Worker(String scriptUrl) native | |
12301 '''return new Worker(scriptUrl);'''; | |
12302 } | |
12303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12304 // for details. All rights reserved. Use of this source code is governed by a | |
12305 // BSD-style license that can be found in the LICENSE file. | |
12306 | |
12307 class _XMLHttpRequestFactoryProvider { | |
12308 factory XMLHttpRequest() native | |
12309 '''return new XMLHttpRequest();'''; | |
12310 } | |
12311 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12312 // for details. All rights reserved. Use of this source code is governed by a | |
12313 // BSD-style license that can be found in the LICENSE file. | |
12314 | |
12315 class _XMLSerializerFactoryProvider { | |
12316 factory XMLSerializer() native | |
12317 '''return new XMLSerializer();'''; | |
12318 } | |
12319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12320 // for details. All rights reserved. Use of this source code is governed by a | |
12321 // BSD-style license that can be found in the LICENSE file. | |
12322 | |
12323 class _XPathEvaluatorFactoryProvider { | |
12324 factory XPathEvaluator() native | |
12325 '''return new XPathEvaluator();'''; | |
12326 } | |
12327 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12328 // for details. All rights reserved. Use of this source code is governed by a | |
12329 // BSD-style license that can be found in the LICENSE file. | |
12330 | |
12331 class _XSLTProcessorFactoryProvider { | |
12332 factory XSLTProcessor() native | |
12333 '''return new XSLTProcessor();'''; | |
12334 } | |
12335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12336 // for details. All rights reserved. Use of this source code is governed by a | |
12337 // BSD-style license that can be found in the LICENSE file. | |
12338 | |
12339 // WARNING: Do not edit - generated code. | |
12340 | |
12341 interface AbstractWorker extends EventTarget { | |
12342 | |
12343 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
12344 | |
12345 bool dispatchEvent(Event evt); | |
12346 | |
12347 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
12348 } | |
12349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12350 // for details. All rights reserved. Use of this source code is governed by a | |
12351 // BSD-style license that can be found in the LICENSE file. | |
12352 | |
12353 // WARNING: Do not edit - generated code. | |
12354 | |
12355 interface ArrayBuffer default _ArrayBufferFactoryProvider { | |
12356 | |
12357 ArrayBuffer(int length); | |
12358 | |
12359 final int byteLength; | |
12360 | |
12361 ArrayBuffer slice(int begin, [int end]); | |
12362 } | |
12363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12364 // for details. All rights reserved. Use of this source code is governed by a | |
12365 // BSD-style license that can be found in the LICENSE file. | |
12366 | |
12367 // WARNING: Do not edit - generated code. | |
12368 | |
12369 interface ArrayBufferView { | |
12370 | |
12371 final ArrayBuffer buffer; | |
12372 | |
12373 final int byteLength; | |
12374 | |
12375 final int byteOffset; | |
12376 } | |
12377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12378 // for details. All rights reserved. Use of this source code is governed by a | |
12379 // BSD-style license that can be found in the LICENSE file. | |
12380 | |
12381 // WARNING: Do not edit - generated code. | |
12382 | |
12383 interface Attr extends Node { | |
12384 | |
12385 final bool isId; | |
12386 | |
12387 final String name; | |
12388 | |
12389 final Element ownerElement; | |
12390 | |
12391 final bool specified; | |
12392 | |
12393 String value; | |
12394 } | |
12395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12396 // for details. All rights reserved. Use of this source code is governed by a | |
12397 // BSD-style license that can be found in the LICENSE file. | |
12398 | |
12399 // WARNING: Do not edit - generated code. | |
12400 | |
12401 interface AudioBuffer { | |
12402 | |
12403 final num duration; | |
12404 | |
12405 num gain; | |
12406 | |
12407 final int length; | |
12408 | |
12409 final int numberOfChannels; | |
12410 | |
12411 final num sampleRate; | |
12412 | |
12413 Float32Array getChannelData(int channelIndex); | |
12414 } | |
12415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12416 // for details. All rights reserved. Use of this source code is governed by a | |
12417 // BSD-style license that can be found in the LICENSE file. | |
12418 | |
12419 // WARNING: Do not edit - generated code. | |
12420 | |
12421 typedef bool AudioBufferCallback(AudioBuffer audioBuffer); | |
12422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12423 // for details. All rights reserved. Use of this source code is governed by a | |
12424 // BSD-style license that can be found in the LICENSE file. | |
12425 | |
12426 // WARNING: Do not edit - generated code. | |
12427 | |
12428 interface AudioBufferSourceNode extends AudioSourceNode { | |
12429 | |
12430 static const int FINISHED_STATE = 3; | |
12431 | |
12432 static const int PLAYING_STATE = 2; | |
12433 | |
12434 static const int SCHEDULED_STATE = 1; | |
12435 | |
12436 static const int UNSCHEDULED_STATE = 0; | |
12437 | |
12438 AudioBuffer buffer; | |
12439 | |
12440 final AudioGain gain; | |
12441 | |
12442 bool loop; | |
12443 | |
12444 bool looping; | |
12445 | |
12446 final AudioParam playbackRate; | |
12447 | |
12448 final int playbackState; | |
12449 | |
12450 void noteGrainOn(num when, num grainOffset, num grainDuration); | |
12451 | |
12452 void noteOff(num when); | |
12453 | |
12454 void noteOn(num when); | |
12455 } | |
12456 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12457 // for details. All rights reserved. Use of this source code is governed by a | |
12458 // BSD-style license that can be found in the LICENSE file. | |
12459 | |
12460 // WARNING: Do not edit - generated code. | |
12461 | |
12462 interface AudioChannelMerger extends AudioNode { | |
12463 } | |
12464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12465 // for details. All rights reserved. Use of this source code is governed by a | |
12466 // BSD-style license that can be found in the LICENSE file. | |
12467 | |
12468 // WARNING: Do not edit - generated code. | |
12469 | |
12470 interface AudioChannelSplitter extends AudioNode { | |
12471 } | |
12472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12473 // for details. All rights reserved. Use of this source code is governed by a | |
12474 // BSD-style license that can be found in the LICENSE file. | |
12475 | |
12476 // WARNING: Do not edit - generated code. | |
12477 | |
12478 interface AudioContext extends EventTarget default _AudioContextFactoryProvider
{ | |
12479 | |
12480 AudioContext(); | |
12481 | |
12482 final int activeSourceCount; | |
12483 | |
12484 final num currentTime; | |
12485 | |
12486 final AudioDestinationNode destination; | |
12487 | |
12488 final AudioListener listener; | |
12489 | |
12490 final num sampleRate; | |
12491 | |
12492 RealtimeAnalyserNode createAnalyser(); | |
12493 | |
12494 BiquadFilterNode createBiquadFilter(); | |
12495 | |
12496 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]); | |
12497 | |
12498 AudioBufferSourceNode createBufferSource(); | |
12499 | |
12500 AudioChannelMerger createChannelMerger([int numberOfInputs]); | |
12501 | |
12502 AudioChannelSplitter createChannelSplitter([int numberOfOutputs]); | |
12503 | |
12504 ConvolverNode createConvolver(); | |
12505 | |
12506 DelayNode createDelayNode([num maxDelayTime]); | |
12507 | |
12508 DynamicsCompressorNode createDynamicsCompressor(); | |
12509 | |
12510 AudioGainNode createGainNode(); | |
12511 | |
12512 JavaScriptAudioNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]); | |
12513 | |
12514 MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaEle
ment); | |
12515 | |
12516 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream); | |
12517 | |
12518 Oscillator createOscillator(); | |
12519 | |
12520 AudioPannerNode createPanner(); | |
12521 | |
12522 WaveShaperNode createWaveShaper(); | |
12523 | |
12524 WaveTable createWaveTable(Float32Array real, Float32Array imag); | |
12525 | |
12526 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]); | |
12527 | |
12528 void startRendering(); | |
12529 } | |
12530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12531 // for details. All rights reserved. Use of this source code is governed by a | |
12532 // BSD-style license that can be found in the LICENSE file. | |
12533 | |
12534 // WARNING: Do not edit - generated code. | |
12535 | |
12536 interface AudioDestinationNode extends AudioNode { | |
12537 | |
12538 final int numberOfChannels; | |
12539 } | |
12540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12541 // for details. All rights reserved. Use of this source code is governed by a | |
12542 // BSD-style license that can be found in the LICENSE file. | |
12543 | |
12544 // WARNING: Do not edit - generated code. | |
12545 | |
12546 interface AudioGain extends AudioParam { | |
12547 } | |
12548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12549 // for details. All rights reserved. Use of this source code is governed by a | |
12550 // BSD-style license that can be found in the LICENSE file. | |
12551 | |
12552 // WARNING: Do not edit - generated code. | |
12553 | |
12554 interface AudioGainNode extends AudioNode { | |
12555 | |
12556 final AudioGain gain; | |
12557 } | |
12558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12559 // for details. All rights reserved. Use of this source code is governed by a | |
12560 // BSD-style license that can be found in the LICENSE file. | |
12561 | |
12562 // WARNING: Do not edit - generated code. | |
12563 | |
12564 interface AudioListener { | |
12565 | |
12566 num dopplerFactor; | |
12567 | |
12568 num speedOfSound; | |
12569 | |
12570 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp); | |
12571 | |
12572 void setPosition(num x, num y, num z); | |
12573 | |
12574 void setVelocity(num x, num y, num z); | |
12575 } | |
12576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12577 // for details. All rights reserved. Use of this source code is governed by a | |
12578 // BSD-style license that can be found in the LICENSE file. | |
12579 | |
12580 // WARNING: Do not edit - generated code. | |
12581 | |
12582 interface AudioNode { | |
12583 | |
12584 final AudioContext context; | |
12585 | |
12586 final int numberOfInputs; | |
12587 | |
12588 final int numberOfOutputs; | |
12589 | |
12590 void connect(destination, int output, [int input]); | |
12591 | |
12592 void disconnect(int output); | |
12593 } | |
12594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12595 // for details. All rights reserved. Use of this source code is governed by a | |
12596 // BSD-style license that can be found in the LICENSE file. | |
12597 | |
12598 // WARNING: Do not edit - generated code. | |
12599 | |
12600 interface AudioPannerNode extends AudioNode { | |
12601 | |
12602 static const int EQUALPOWER = 0; | |
12603 | |
12604 static const int EXPONENTIAL_DISTANCE = 2; | |
12605 | |
12606 static const int HRTF = 1; | |
12607 | |
12608 static const int INVERSE_DISTANCE = 1; | |
12609 | |
12610 static const int LINEAR_DISTANCE = 0; | |
12611 | |
12612 static const int SOUNDFIELD = 2; | |
12613 | |
12614 final AudioGain coneGain; | |
12615 | |
12616 num coneInnerAngle; | |
12617 | |
12618 num coneOuterAngle; | |
12619 | |
12620 num coneOuterGain; | |
12621 | |
12622 final AudioGain distanceGain; | |
12623 | |
12624 int distanceModel; | |
12625 | |
12626 num maxDistance; | |
12627 | |
12628 int panningModel; | |
12629 | |
12630 num refDistance; | |
12631 | |
12632 num rolloffFactor; | |
12633 | |
12634 void setOrientation(num x, num y, num z); | |
12635 | |
12636 void setPosition(num x, num y, num z); | |
12637 | |
12638 void setVelocity(num x, num y, num z); | |
12639 } | |
12640 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12641 // for details. All rights reserved. Use of this source code is governed by a | |
12642 // BSD-style license that can be found in the LICENSE file. | |
12643 | |
12644 // WARNING: Do not edit - generated code. | |
12645 | |
12646 interface AudioParam { | |
12647 | |
12648 final num defaultValue; | |
12649 | |
12650 final num maxValue; | |
12651 | |
12652 final num minValue; | |
12653 | |
12654 final String name; | |
12655 | |
12656 final int units; | |
12657 | |
12658 num value; | |
12659 | |
12660 void cancelScheduledValues(num startTime); | |
12661 | |
12662 void exponentialRampToValueAtTime(num value, num time); | |
12663 | |
12664 void linearRampToValueAtTime(num value, num time); | |
12665 | |
12666 void setTargetValueAtTime(num targetValue, num time, num timeConstant); | |
12667 | |
12668 void setValueAtTime(num value, num time); | |
12669 | |
12670 void setValueCurveAtTime(Float32Array values, num time, num duration); | |
12671 } | |
12672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12673 // for details. All rights reserved. Use of this source code is governed by a | |
12674 // BSD-style license that can be found in the LICENSE file. | |
12675 | |
12676 // WARNING: Do not edit - generated code. | |
12677 | |
12678 interface AudioProcessingEvent extends Event { | |
12679 | |
12680 final AudioBuffer inputBuffer; | |
12681 | |
12682 final AudioBuffer outputBuffer; | |
12683 } | |
12684 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12685 // for details. All rights reserved. Use of this source code is governed by a | |
12686 // BSD-style license that can be found in the LICENSE file. | |
12687 | |
12688 // WARNING: Do not edit - generated code. | |
12689 | |
12690 interface AudioSourceNode extends AudioNode { | |
12691 } | |
12692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12693 // for details. All rights reserved. Use of this source code is governed by a | |
12694 // BSD-style license that can be found in the LICENSE file. | |
12695 | |
12696 // WARNING: Do not edit - generated code. | |
12697 | |
12698 interface BarProp { | |
12699 | |
12700 final bool visible; | |
12701 } | |
12702 | |
12703 interface BarInfo extends BarProp { | |
12704 } | |
12705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12706 // for details. All rights reserved. Use of this source code is governed by a | |
12707 // BSD-style license that can be found in the LICENSE file. | |
12708 | |
12709 // WARNING: Do not edit - generated code. | |
12710 | |
12711 interface BatteryManager extends EventTarget { | |
12712 | |
12713 final bool charging; | |
12714 | |
12715 final num chargingTime; | |
12716 | |
12717 final num dischargingTime; | |
12718 | |
12719 final num level; | |
12720 | |
12721 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
12722 | |
12723 bool dispatchEvent(Event evt); | |
12724 | |
12725 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
12726 } | |
12727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12728 // for details. All rights reserved. Use of this source code is governed by a | |
12729 // BSD-style license that can be found in the LICENSE file. | |
12730 | |
12731 // WARNING: Do not edit - generated code. | |
12732 | |
12733 interface BeforeLoadEvent extends Event { | |
12734 | |
12735 final String url; | |
12736 } | |
12737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12738 // for details. All rights reserved. Use of this source code is governed by a | |
12739 // BSD-style license that can be found in the LICENSE file. | |
12740 | |
12741 // WARNING: Do not edit - generated code. | |
12742 | |
12743 interface BiquadFilterNode extends AudioNode { | |
12744 | |
12745 static const int ALLPASS = 7; | |
12746 | |
12747 static const int BANDPASS = 2; | |
12748 | |
12749 static const int HIGHPASS = 1; | |
12750 | |
12751 static const int HIGHSHELF = 4; | |
12752 | |
12753 static const int LOWPASS = 0; | |
12754 | |
12755 static const int LOWSHELF = 3; | |
12756 | |
12757 static const int NOTCH = 6; | |
12758 | |
12759 static const int PEAKING = 5; | |
12760 | |
12761 final AudioParam Q; | |
12762 | |
12763 final AudioParam frequency; | |
12764 | |
12765 final AudioParam gain; | |
12766 | |
12767 int type; | |
12768 | |
12769 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse,
Float32Array phaseResponse); | |
12770 } | |
12771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12772 // for details. All rights reserved. Use of this source code is governed by a | |
12773 // BSD-style license that can be found in the LICENSE file. | |
12774 | |
12775 // WARNING: Do not edit - generated code. | |
12776 | |
12777 interface Blob default _BlobFactoryProvider { | |
12778 | |
12779 Blob(List blobParts, [String type, String endings]); | |
12780 | |
12781 final int size; | |
12782 | |
12783 final String type; | |
12784 | |
12785 Blob slice([int start, int end, String contentType]); | |
12786 | |
12787 Blob webkitSlice([int start, int end, String contentType]); | |
12788 } | |
12789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12790 // for details. All rights reserved. Use of this source code is governed by a | |
12791 // BSD-style license that can be found in the LICENSE file. | |
12792 | |
12793 // WARNING: Do not edit - generated code. | |
12794 | |
12795 interface CDATASection extends Text { | |
12796 } | |
12797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12798 // for details. All rights reserved. Use of this source code is governed by a | |
12799 // BSD-style license that can be found in the LICENSE file. | |
12800 | |
12801 // WARNING: Do not edit - generated code. | |
12802 | |
12803 interface CSSCharsetRule extends CSSRule { | |
12804 | |
12805 String encoding; | |
12806 } | |
12807 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12808 // for details. All rights reserved. Use of this source code is governed by a | |
12809 // BSD-style license that can be found in the LICENSE file. | |
12810 | |
12811 // WARNING: Do not edit - generated code. | |
12812 | |
12813 interface CSSFontFaceRule extends CSSRule { | |
12814 | |
12815 final CSSStyleDeclaration style; | |
12816 } | |
12817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12818 // for details. All rights reserved. Use of this source code is governed by a | |
12819 // BSD-style license that can be found in the LICENSE file. | |
12820 | |
12821 // WARNING: Do not edit - generated code. | |
12822 | |
12823 interface CSSImportRule extends CSSRule { | |
12824 | |
12825 final String href; | |
12826 | |
12827 final MediaList media; | |
12828 | |
12829 final CSSStyleSheet styleSheet; | |
12830 } | |
12831 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12832 // for details. All rights reserved. Use of this source code is governed by a | |
12833 // BSD-style license that can be found in the LICENSE file. | |
12834 | |
12835 // WARNING: Do not edit - generated code. | |
12836 | |
12837 interface CSSMediaRule extends CSSRule { | |
12838 | |
12839 final CSSRuleList cssRules; | |
12840 | |
12841 final MediaList media; | |
12842 | |
12843 void deleteRule(int index); | |
12844 | |
12845 int insertRule(String rule, int index); | |
12846 } | |
12847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12848 // for details. All rights reserved. Use of this source code is governed by a | |
12849 // BSD-style license that can be found in the LICENSE file. | |
12850 | |
12851 // WARNING: Do not edit - generated code. | |
12852 | |
12853 interface CSSPageRule extends CSSRule { | |
12854 | |
12855 String selectorText; | |
12856 | |
12857 final CSSStyleDeclaration style; | |
12858 } | |
12859 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12860 // for details. All rights reserved. Use of this source code is governed by a | |
12861 // BSD-style license that can be found in the LICENSE file. | |
12862 | |
12863 // WARNING: Do not edit - generated code. | |
12864 | |
12865 interface CSSPrimitiveValue extends CSSValue { | |
12866 | |
12867 static const int CSS_ATTR = 22; | |
12868 | |
12869 static const int CSS_CM = 6; | |
12870 | |
12871 static const int CSS_COUNTER = 23; | |
12872 | |
12873 static const int CSS_DEG = 11; | |
12874 | |
12875 static const int CSS_DIMENSION = 18; | |
12876 | |
12877 static const int CSS_EMS = 3; | |
12878 | |
12879 static const int CSS_EXS = 4; | |
12880 | |
12881 static const int CSS_GRAD = 13; | |
12882 | |
12883 static const int CSS_HZ = 16; | |
12884 | |
12885 static const int CSS_IDENT = 21; | |
12886 | |
12887 static const int CSS_IN = 8; | |
12888 | |
12889 static const int CSS_KHZ = 17; | |
12890 | |
12891 static const int CSS_MM = 7; | |
12892 | |
12893 static const int CSS_MS = 14; | |
12894 | |
12895 static const int CSS_NUMBER = 1; | |
12896 | |
12897 static const int CSS_PC = 10; | |
12898 | |
12899 static const int CSS_PERCENTAGE = 2; | |
12900 | |
12901 static const int CSS_PT = 9; | |
12902 | |
12903 static const int CSS_PX = 5; | |
12904 | |
12905 static const int CSS_RAD = 12; | |
12906 | |
12907 static const int CSS_RECT = 24; | |
12908 | |
12909 static const int CSS_RGBCOLOR = 25; | |
12910 | |
12911 static const int CSS_S = 15; | |
12912 | |
12913 static const int CSS_STRING = 19; | |
12914 | |
12915 static const int CSS_UNKNOWN = 0; | |
12916 | |
12917 static const int CSS_URI = 20; | |
12918 | |
12919 static const int CSS_VH = 27; | |
12920 | |
12921 static const int CSS_VMIN = 28; | |
12922 | |
12923 static const int CSS_VW = 26; | |
12924 | |
12925 final int primitiveType; | |
12926 | |
12927 Counter getCounterValue(); | |
12928 | |
12929 num getFloatValue(int unitType); | |
12930 | |
12931 RGBColor getRGBColorValue(); | |
12932 | |
12933 Rect getRectValue(); | |
12934 | |
12935 String getStringValue(); | |
12936 | |
12937 void setFloatValue(int unitType, num floatValue); | |
12938 | |
12939 void setStringValue(int stringType, String stringValue); | |
12940 } | |
12941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12942 // for details. All rights reserved. Use of this source code is governed by a | |
12943 // BSD-style license that can be found in the LICENSE file. | |
12944 | |
12945 // WARNING: Do not edit - generated code. | |
12946 | |
12947 interface CSSRule { | |
12948 | |
12949 static const int CHARSET_RULE = 2; | |
12950 | |
12951 static const int FONT_FACE_RULE = 5; | |
12952 | |
12953 static const int IMPORT_RULE = 3; | |
12954 | |
12955 static const int MEDIA_RULE = 4; | |
12956 | |
12957 static const int PAGE_RULE = 6; | |
12958 | |
12959 static const int STYLE_RULE = 1; | |
12960 | |
12961 static const int UNKNOWN_RULE = 0; | |
12962 | |
12963 static const int WEBKIT_KEYFRAMES_RULE = 7; | |
12964 | |
12965 static const int WEBKIT_KEYFRAME_RULE = 8; | |
12966 | |
12967 String cssText; | |
12968 | |
12969 final CSSRule parentRule; | |
12970 | |
12971 final CSSStyleSheet parentStyleSheet; | |
12972 | |
12973 final int type; | |
12974 } | |
12975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12976 // for details. All rights reserved. Use of this source code is governed by a | |
12977 // BSD-style license that can be found in the LICENSE file. | |
12978 | |
12979 // WARNING: Do not edit - generated code. | |
12980 | |
12981 interface CSSRuleList { | |
12982 | |
12983 final int length; | |
12984 | |
12985 CSSRule item(int index); | |
12986 } | |
12987 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
12988 // for details. All rights reserved. Use of this source code is governed by a | |
12989 // BSD-style license that can be found in the LICENSE file. | |
12990 | |
12991 // WARNING: Do not edit - generated code. | |
12992 | |
12993 interface CSSStyleDeclaration { | |
12994 | |
12995 String cssText; | |
12996 | |
12997 final int length; | |
12998 | |
12999 final CSSRule parentRule; | |
13000 | |
13001 CSSValue getPropertyCSSValue(String propertyName); | |
13002 | |
13003 String getPropertyPriority(String propertyName); | |
13004 | |
13005 String getPropertyShorthand(String propertyName); | |
13006 | |
13007 String getPropertyValue(String propertyName); | |
13008 | |
13009 bool isPropertyImplicit(String propertyName); | |
13010 | |
13011 String item(int index); | |
13012 | |
13013 String removeProperty(String propertyName); | |
13014 | |
13015 void setProperty(String propertyName, String value, [String priority]); | |
13016 } | |
13017 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13018 // for details. All rights reserved. Use of this source code is governed by a | |
13019 // BSD-style license that can be found in the LICENSE file. | |
13020 | |
13021 // WARNING: Do not edit - generated code. | |
13022 | |
13023 interface CSSStyleRule extends CSSRule { | |
13024 | |
13025 String selectorText; | |
13026 | |
13027 final CSSStyleDeclaration style; | |
13028 } | |
13029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13030 // for details. All rights reserved. Use of this source code is governed by a | |
13031 // BSD-style license that can be found in the LICENSE file. | |
13032 | |
13033 // WARNING: Do not edit - generated code. | |
13034 | |
13035 interface CSSStyleSheet extends StyleSheet { | |
13036 | |
13037 final CSSRuleList cssRules; | |
13038 | |
13039 final CSSRule ownerRule; | |
13040 | |
13041 final CSSRuleList rules; | |
13042 | |
13043 int addRule(String selector, String style, [int index]); | |
13044 | |
13045 void deleteRule(int index); | |
13046 | |
13047 int insertRule(String rule, int index); | |
13048 | |
13049 void removeRule(int index); | |
13050 } | |
13051 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13052 // for details. All rights reserved. Use of this source code is governed by a | |
13053 // BSD-style license that can be found in the LICENSE file. | |
13054 | |
13055 // WARNING: Do not edit - generated code. | |
13056 | |
13057 interface CSSUnknownRule extends CSSRule { | |
13058 } | |
13059 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13060 // for details. All rights reserved. Use of this source code is governed by a | |
13061 // BSD-style license that can be found in the LICENSE file. | |
13062 | |
13063 // WARNING: Do not edit - generated code. | |
13064 | |
13065 interface CSSValue { | |
13066 | |
13067 static const int CSS_CUSTOM = 3; | |
13068 | |
13069 static const int CSS_INHERIT = 0; | |
13070 | |
13071 static const int CSS_PRIMITIVE_VALUE = 1; | |
13072 | |
13073 static const int CSS_VALUE_LIST = 2; | |
13074 | |
13075 String cssText; | |
13076 | |
13077 final int cssValueType; | |
13078 } | |
13079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13080 // for details. All rights reserved. Use of this source code is governed by a | |
13081 // BSD-style license that can be found in the LICENSE file. | |
13082 | |
13083 // WARNING: Do not edit - generated code. | |
13084 | |
13085 interface CSSValueList extends CSSValue { | |
13086 | |
13087 final int length; | |
13088 | |
13089 CSSValue item(int index); | |
13090 } | |
13091 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13092 // for details. All rights reserved. Use of this source code is governed by a | |
13093 // BSD-style license that can be found in the LICENSE file. | |
13094 | |
13095 // WARNING: Do not edit - generated code. | |
13096 | |
13097 interface CanvasGradient { | |
13098 | |
13099 void addColorStop(num offset, String color); | |
13100 } | |
13101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13102 // for details. All rights reserved. Use of this source code is governed by a | |
13103 // BSD-style license that can be found in the LICENSE file. | |
13104 | |
13105 // WARNING: Do not edit - generated code. | |
13106 | |
13107 interface CanvasPattern { | |
13108 } | |
13109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13110 // for details. All rights reserved. Use of this source code is governed by a | |
13111 // BSD-style license that can be found in the LICENSE file. | |
13112 | |
13113 // WARNING: Do not edit - generated code. | |
13114 | |
13115 interface CanvasRenderingContext { | |
13116 | |
13117 final HTMLCanvasElement canvas; | |
13118 } | |
13119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13120 // for details. All rights reserved. Use of this source code is governed by a | |
13121 // BSD-style license that can be found in the LICENSE file. | |
13122 | |
13123 // WARNING: Do not edit - generated code. | |
13124 | |
13125 interface CanvasRenderingContext2D extends CanvasRenderingContext { | |
13126 | |
13127 var /*custom*/ fillStyle; | |
13128 | |
13129 String font; | |
13130 | |
13131 num globalAlpha; | |
13132 | |
13133 String globalCompositeOperation; | |
13134 | |
13135 String lineCap; | |
13136 | |
13137 String lineJoin; | |
13138 | |
13139 num lineWidth; | |
13140 | |
13141 num miterLimit; | |
13142 | |
13143 num shadowBlur; | |
13144 | |
13145 String shadowColor; | |
13146 | |
13147 num shadowOffsetX; | |
13148 | |
13149 num shadowOffsetY; | |
13150 | |
13151 var /*custom*/ strokeStyle; | |
13152 | |
13153 String textAlign; | |
13154 | |
13155 String textBaseline; | |
13156 | |
13157 final num webkitBackingStorePixelRatio; | |
13158 | |
13159 bool webkitImageSmoothingEnabled; | |
13160 | |
13161 List webkitLineDash; | |
13162 | |
13163 num webkitLineDashOffset; | |
13164 | |
13165 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise); | |
13166 | |
13167 void arcTo(num x1, num y1, num x2, num y2, num radius); | |
13168 | |
13169 void beginPath(); | |
13170 | |
13171 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y); | |
13172 | |
13173 void clearRect(num x, num y, num width, num height); | |
13174 | |
13175 void clearShadow(); | |
13176 | |
13177 void clip(); | |
13178 | |
13179 void closePath(); | |
13180 | |
13181 ImageData createImageData(imagedata_OR_sw, [num sh]); | |
13182 | |
13183 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1); | |
13184 | |
13185 CanvasPattern createPattern(canvas_OR_image, String repetitionType); | |
13186 | |
13187 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1); | |
13188 | |
13189 void drawImage(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]); | |
13190 | |
13191 void drawImageFromRect(HTMLImageElement image, [num sx, num sy, num sw, num sh
, num dx, num dy, num dw, num dh, String compositeOperation]); | |
13192 | |
13193 void fill(); | |
13194 | |
13195 void fillRect(num x, num y, num width, num height); | |
13196 | |
13197 void fillText(String text, num x, num y, [num maxWidth]); | |
13198 | |
13199 ImageData getImageData(num sx, num sy, num sw, num sh); | |
13200 | |
13201 bool isPointInPath(num x, num y); | |
13202 | |
13203 void lineTo(num x, num y); | |
13204 | |
13205 TextMetrics measureText(String text); | |
13206 | |
13207 void moveTo(num x, num y); | |
13208 | |
13209 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]); | |
13210 | |
13211 void quadraticCurveTo(num cpx, num cpy, num x, num y); | |
13212 | |
13213 void rect(num x, num y, num width, num height); | |
13214 | |
13215 void restore(); | |
13216 | |
13217 void rotate(num angle); | |
13218 | |
13219 void save(); | |
13220 | |
13221 void scale(num sx, num sy); | |
13222 | |
13223 void setAlpha(num alpha); | |
13224 | |
13225 void setCompositeOperation(String compositeOperation); | |
13226 | |
13227 void setFillColor(c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, num b_OR
_y, num a_OR_k, num a]); | |
13228 | |
13229 void setLineCap(String cap); | |
13230 | |
13231 void setLineJoin(String join); | |
13232 | |
13233 void setLineWidth(num width); | |
13234 | |
13235 void setMiterLimit(num limit); | |
13236 | |
13237 void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r,
num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]); | |
13238 | |
13239 void setStrokeColor(c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m, num b_
OR_y, num a_OR_k, num a]); | |
13240 | |
13241 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy); | |
13242 | |
13243 void stroke(); | |
13244 | |
13245 void strokeRect(num x, num y, num width, num height, [num lineWidth]); | |
13246 | |
13247 void strokeText(String text, num x, num y, [num maxWidth]); | |
13248 | |
13249 void transform(num m11, num m12, num m21, num m22, num dx, num dy); | |
13250 | |
13251 void translate(num tx, num ty); | |
13252 | |
13253 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh); | |
13254 | |
13255 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu
m dirtyY, num dirtyWidth, num dirtyHeight]); | |
13256 } | |
13257 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13258 // for details. All rights reserved. Use of this source code is governed by a | |
13259 // BSD-style license that can be found in the LICENSE file. | |
13260 | |
13261 // WARNING: Do not edit - generated code. | |
13262 | |
13263 interface CharacterData extends Node { | |
13264 | |
13265 String data; | |
13266 | |
13267 final int length; | |
13268 | |
13269 void appendData(String data); | |
13270 | |
13271 void deleteData(int offset, int length); | |
13272 | |
13273 void insertData(int offset, String data); | |
13274 | |
13275 void replaceData(int offset, int length, String data); | |
13276 | |
13277 String substringData(int offset, int length); | |
13278 } | |
13279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13280 // for details. All rights reserved. Use of this source code is governed by a | |
13281 // BSD-style license that can be found in the LICENSE file. | |
13282 | |
13283 // WARNING: Do not edit - generated code. | |
13284 | |
13285 interface ClientRect { | |
13286 | |
13287 final num bottom; | |
13288 | |
13289 final num height; | |
13290 | |
13291 final num left; | |
13292 | |
13293 final num right; | |
13294 | |
13295 final num top; | |
13296 | |
13297 final num width; | |
13298 } | |
13299 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13300 // for details. All rights reserved. Use of this source code is governed by a | |
13301 // BSD-style license that can be found in the LICENSE file. | |
13302 | |
13303 // WARNING: Do not edit - generated code. | |
13304 | |
13305 interface ClientRectList { | |
13306 | |
13307 final int length; | |
13308 | |
13309 ClientRect item(int index); | |
13310 } | |
13311 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13312 // for details. All rights reserved. Use of this source code is governed by a | |
13313 // BSD-style license that can be found in the LICENSE file. | |
13314 | |
13315 // WARNING: Do not edit - generated code. | |
13316 | |
13317 interface Clipboard { | |
13318 | |
13319 String dropEffect; | |
13320 | |
13321 String effectAllowed; | |
13322 | |
13323 final FileList files; | |
13324 | |
13325 final DataTransferItemList items; | |
13326 | |
13327 final List types; | |
13328 | |
13329 void clearData([String type]); | |
13330 | |
13331 String getData(String type); | |
13332 | |
13333 bool setData(String type, String data); | |
13334 | |
13335 void setDragImage(HTMLImageElement image, int x, int y); | |
13336 } | |
13337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13338 // for details. All rights reserved. Use of this source code is governed by a | |
13339 // BSD-style license that can be found in the LICENSE file. | |
13340 | |
13341 // WARNING: Do not edit - generated code. | |
13342 | |
13343 interface CloseEvent extends Event { | |
13344 | |
13345 final int code; | |
13346 | |
13347 final String reason; | |
13348 | |
13349 final bool wasClean; | |
13350 } | |
13351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13352 // for details. All rights reserved. Use of this source code is governed by a | |
13353 // BSD-style license that can be found in the LICENSE file. | |
13354 | |
13355 // WARNING: Do not edit - generated code. | |
13356 | |
13357 interface Comment extends CharacterData { | |
13358 } | |
13359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13360 // for details. All rights reserved. Use of this source code is governed by a | |
13361 // BSD-style license that can be found in the LICENSE file. | |
13362 | |
13363 // WARNING: Do not edit - generated code. | |
13364 | |
13365 interface CompositionEvent extends UIEvent { | |
13366 | |
13367 final String data; | |
13368 | |
13369 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, DOMWindow viewArg, String dataArg); | |
13370 } | |
13371 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13372 // for details. All rights reserved. Use of this source code is governed by a | |
13373 // BSD-style license that can be found in the LICENSE file. | |
13374 | |
13375 // WARNING: Do not edit - generated code. | |
13376 | |
13377 interface Console { | |
13378 | |
13379 final MemoryInfo memory; | |
13380 | |
13381 final List<ScriptProfile> profiles; | |
13382 | |
13383 void assertCondition(bool condition, Object arg); | |
13384 | |
13385 void count(Object arg); | |
13386 | |
13387 void debug(Object arg); | |
13388 | |
13389 void dir(Object arg); | |
13390 | |
13391 void dirxml(Object arg); | |
13392 | |
13393 void error(Object arg); | |
13394 | |
13395 void group(Object arg); | |
13396 | |
13397 void groupCollapsed(Object arg); | |
13398 | |
13399 void groupEnd(); | |
13400 | |
13401 void info(Object arg); | |
13402 | |
13403 void log(Object arg); | |
13404 | |
13405 void markTimeline(Object arg); | |
13406 | |
13407 void profile(String title); | |
13408 | |
13409 void profileEnd(String title); | |
13410 | |
13411 void time(String title); | |
13412 | |
13413 void timeEnd(String title, Object arg); | |
13414 | |
13415 void timeStamp(Object arg); | |
13416 | |
13417 void trace(Object arg); | |
13418 | |
13419 void warn(Object arg); | |
13420 } | |
13421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13422 // for details. All rights reserved. Use of this source code is governed by a | |
13423 // BSD-style license that can be found in the LICENSE file. | |
13424 | |
13425 // WARNING: Do not edit - generated code. | |
13426 | |
13427 interface ConvolverNode extends AudioNode { | |
13428 | |
13429 AudioBuffer buffer; | |
13430 | |
13431 bool normalize; | |
13432 } | |
13433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13434 // for details. All rights reserved. Use of this source code is governed by a | |
13435 // BSD-style license that can be found in the LICENSE file. | |
13436 | |
13437 // WARNING: Do not edit - generated code. | |
13438 | |
13439 interface Coordinates { | |
13440 | |
13441 final num accuracy; | |
13442 | |
13443 final num altitude; | |
13444 | |
13445 final num altitudeAccuracy; | |
13446 | |
13447 final num heading; | |
13448 | |
13449 final num latitude; | |
13450 | |
13451 final num longitude; | |
13452 | |
13453 final num speed; | |
13454 } | |
13455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13456 // for details. All rights reserved. Use of this source code is governed by a | |
13457 // BSD-style license that can be found in the LICENSE file. | |
13458 | |
13459 // WARNING: Do not edit - generated code. | |
13460 | |
13461 interface Counter { | |
13462 | |
13463 final String identifier; | |
13464 | |
13465 final String listStyle; | |
13466 | |
13467 final String separator; | |
13468 } | |
13469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13470 // for details. All rights reserved. Use of this source code is governed by a | |
13471 // BSD-style license that can be found in the LICENSE file. | |
13472 | |
13473 // WARNING: Do not edit - generated code. | |
13474 | |
13475 interface Crypto { | |
13476 | |
13477 void getRandomValues(ArrayBufferView array); | |
13478 } | |
13479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13480 // for details. All rights reserved. Use of this source code is governed by a | |
13481 // BSD-style license that can be found in the LICENSE file. | |
13482 | |
13483 // WARNING: Do not edit - generated code. | |
13484 | |
13485 interface CustomEvent extends Event { | |
13486 | |
13487 final Object detail; | |
13488 | |
13489 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob
ject detailArg); | |
13490 } | |
13491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13492 // for details. All rights reserved. Use of this source code is governed by a | |
13493 // BSD-style license that can be found in the LICENSE file. | |
13494 | |
13495 // WARNING: Do not edit - generated code. | |
13496 | |
13497 interface ApplicationCache extends EventTarget { | |
13498 | |
13499 final int status; | |
13500 | |
13501 void abort(); | |
13502 | |
13503 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
13504 | |
13505 bool dispatchEvent(Event evt); | |
13506 | |
13507 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
13508 | |
13509 void swapCache(); | |
13510 | |
13511 void update(); | |
13512 } | |
13513 | |
13514 interface DOMApplicationCache extends ApplicationCache { | |
13515 | |
13516 static const int CHECKING = 2; | |
13517 | |
13518 static const int DOWNLOADING = 3; | |
13519 | |
13520 static const int IDLE = 1; | |
13521 | |
13522 static const int OBSOLETE = 5; | |
13523 | |
13524 static const int UNCACHED = 0; | |
13525 | |
13526 static const int UPDATEREADY = 4; | |
13527 } | |
13528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13529 // for details. All rights reserved. Use of this source code is governed by a | |
13530 // BSD-style license that can be found in the LICENSE file. | |
13531 | |
13532 // WARNING: Do not edit - generated code. | |
13533 | |
13534 interface DOMError { | |
13535 | |
13536 final String name; | |
13537 } | |
13538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13539 // for details. All rights reserved. Use of this source code is governed by a | |
13540 // BSD-style license that can be found in the LICENSE file. | |
13541 | |
13542 // WARNING: Do not edit - generated code. | |
13543 | |
13544 interface DOMException { | |
13545 | |
13546 static const int ABORT_ERR = 20; | |
13547 | |
13548 static const int DATA_CLONE_ERR = 25; | |
13549 | |
13550 static const int DOMSTRING_SIZE_ERR = 2; | |
13551 | |
13552 static const int HIERARCHY_REQUEST_ERR = 3; | |
13553 | |
13554 static const int INDEX_SIZE_ERR = 1; | |
13555 | |
13556 static const int INUSE_ATTRIBUTE_ERR = 10; | |
13557 | |
13558 static const int INVALID_ACCESS_ERR = 15; | |
13559 | |
13560 static const int INVALID_CHARACTER_ERR = 5; | |
13561 | |
13562 static const int INVALID_MODIFICATION_ERR = 13; | |
13563 | |
13564 static const int INVALID_NODE_TYPE_ERR = 24; | |
13565 | |
13566 static const int INVALID_STATE_ERR = 11; | |
13567 | |
13568 static const int NAMESPACE_ERR = 14; | |
13569 | |
13570 static const int NETWORK_ERR = 19; | |
13571 | |
13572 static const int NOT_FOUND_ERR = 8; | |
13573 | |
13574 static const int NOT_SUPPORTED_ERR = 9; | |
13575 | |
13576 static const int NO_DATA_ALLOWED_ERR = 6; | |
13577 | |
13578 static const int NO_MODIFICATION_ALLOWED_ERR = 7; | |
13579 | |
13580 static const int QUOTA_EXCEEDED_ERR = 22; | |
13581 | |
13582 static const int SECURITY_ERR = 18; | |
13583 | |
13584 static const int SYNTAX_ERR = 12; | |
13585 | |
13586 static const int TIMEOUT_ERR = 23; | |
13587 | |
13588 static const int TYPE_MISMATCH_ERR = 17; | |
13589 | |
13590 static const int URL_MISMATCH_ERR = 21; | |
13591 | |
13592 static const int VALIDATION_ERR = 16; | |
13593 | |
13594 static const int WRONG_DOCUMENT_ERR = 4; | |
13595 | |
13596 final int code; | |
13597 | |
13598 final String message; | |
13599 | |
13600 final String name; | |
13601 | |
13602 String toString(); | |
13603 } | |
13604 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13605 // for details. All rights reserved. Use of this source code is governed by a | |
13606 // BSD-style license that can be found in the LICENSE file. | |
13607 | |
13608 // WARNING: Do not edit - generated code. | |
13609 | |
13610 interface DOMFileSystem { | |
13611 | |
13612 final String name; | |
13613 | |
13614 final DirectoryEntry root; | |
13615 } | |
13616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13617 // for details. All rights reserved. Use of this source code is governed by a | |
13618 // BSD-style license that can be found in the LICENSE file. | |
13619 | |
13620 // WARNING: Do not edit - generated code. | |
13621 | |
13622 interface DOMFileSystemSync { | |
13623 | |
13624 final String name; | |
13625 | |
13626 final DirectoryEntrySync root; | |
13627 } | |
13628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13629 // for details. All rights reserved. Use of this source code is governed by a | |
13630 // BSD-style license that can be found in the LICENSE file. | |
13631 | |
13632 // WARNING: Do not edit - generated code. | |
13633 | |
13634 interface FormData default _FormDataFactoryProvider { | |
13635 | |
13636 FormData([FormElement form]); | |
13637 | |
13638 void append(String name, String value, String filename); | |
13639 } | |
13640 | |
13641 interface DOMFormData extends FormData { | |
13642 } | |
13643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13644 // for details. All rights reserved. Use of this source code is governed by a | |
13645 // BSD-style license that can be found in the LICENSE file. | |
13646 | |
13647 // WARNING: Do not edit - generated code. | |
13648 | |
13649 interface DOMImplementation { | |
13650 | |
13651 CSSStyleSheet createCSSStyleSheet(String title, String media); | |
13652 | |
13653 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype); | |
13654 | |
13655 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId); | |
13656 | |
13657 HTMLDocument createHTMLDocument(String title); | |
13658 | |
13659 bool hasFeature(String feature, String version); | |
13660 } | |
13661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13662 // for details. All rights reserved. Use of this source code is governed by a | |
13663 // BSD-style license that can be found in the LICENSE file. | |
13664 | |
13665 // WARNING: Do not edit - generated code. | |
13666 | |
13667 interface DOMMimeType { | |
13668 | |
13669 final String description; | |
13670 | |
13671 final DOMPlugin enabledPlugin; | |
13672 | |
13673 final String suffixes; | |
13674 | |
13675 final String type; | |
13676 } | |
13677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13678 // for details. All rights reserved. Use of this source code is governed by a | |
13679 // BSD-style license that can be found in the LICENSE file. | |
13680 | |
13681 // WARNING: Do not edit - generated code. | |
13682 | |
13683 interface DOMMimeTypeArray { | |
13684 | |
13685 final int length; | |
13686 | |
13687 DOMMimeType item(int index); | |
13688 | |
13689 DOMMimeType namedItem(String name); | |
13690 } | |
13691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13692 // for details. All rights reserved. Use of this source code is governed by a | |
13693 // BSD-style license that can be found in the LICENSE file. | |
13694 | |
13695 // WARNING: Do not edit - generated code. | |
13696 | |
13697 interface DOMParser default _DOMParserFactoryProvider { | |
13698 | |
13699 DOMParser(); | |
13700 | |
13701 Document parseFromString(String str, String contentType); | |
13702 } | |
13703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13704 // for details. All rights reserved. Use of this source code is governed by a | |
13705 // BSD-style license that can be found in the LICENSE file. | |
13706 | |
13707 // WARNING: Do not edit - generated code. | |
13708 | |
13709 interface DOMPlugin { | |
13710 | |
13711 final String description; | |
13712 | |
13713 final String filename; | |
13714 | |
13715 final int length; | |
13716 | |
13717 final String name; | |
13718 | |
13719 DOMMimeType item(int index); | |
13720 | |
13721 DOMMimeType namedItem(String name); | |
13722 } | |
13723 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13724 // for details. All rights reserved. Use of this source code is governed by a | |
13725 // BSD-style license that can be found in the LICENSE file. | |
13726 | |
13727 // WARNING: Do not edit - generated code. | |
13728 | |
13729 interface DOMPluginArray { | |
13730 | |
13731 final int length; | |
13732 | |
13733 DOMPlugin item(int index); | |
13734 | |
13735 DOMPlugin namedItem(String name); | |
13736 | |
13737 void refresh(bool reload); | |
13738 } | |
13739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13740 // for details. All rights reserved. Use of this source code is governed by a | |
13741 // BSD-style license that can be found in the LICENSE file. | |
13742 | |
13743 // WARNING: Do not edit - generated code. | |
13744 | |
13745 interface Selection { | |
13746 | |
13747 final Node anchorNode; | |
13748 | |
13749 final int anchorOffset; | |
13750 | |
13751 final Node baseNode; | |
13752 | |
13753 final int baseOffset; | |
13754 | |
13755 final Node extentNode; | |
13756 | |
13757 final int extentOffset; | |
13758 | |
13759 final Node focusNode; | |
13760 | |
13761 final int focusOffset; | |
13762 | |
13763 final bool isCollapsed; | |
13764 | |
13765 final int rangeCount; | |
13766 | |
13767 final String type; | |
13768 | |
13769 void addRange(Range range); | |
13770 | |
13771 void collapse(Node node, int index); | |
13772 | |
13773 void collapseToEnd(); | |
13774 | |
13775 void collapseToStart(); | |
13776 | |
13777 bool containsNode(Node node, bool allowPartial); | |
13778 | |
13779 void deleteFromDocument(); | |
13780 | |
13781 void empty(); | |
13782 | |
13783 void extend(Node node, int offset); | |
13784 | |
13785 Range getRangeAt(int index); | |
13786 | |
13787 void modify(String alter, String direction, String granularity); | |
13788 | |
13789 void removeAllRanges(); | |
13790 | |
13791 void selectAllChildren(Node node); | |
13792 | |
13793 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset); | |
13794 | |
13795 void setPosition(Node node, int offset); | |
13796 | |
13797 String toString(); | |
13798 } | |
13799 | |
13800 interface DOMSelection extends Selection { | |
13801 } | |
13802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13803 // for details. All rights reserved. Use of this source code is governed by a | |
13804 // BSD-style license that can be found in the LICENSE file. | |
13805 | |
13806 // WARNING: Do not edit - generated code. | |
13807 | |
13808 interface DOMSettableTokenList extends DOMTokenList { | |
13809 | |
13810 String value; | |
13811 } | |
13812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13813 // for details. All rights reserved. Use of this source code is governed by a | |
13814 // BSD-style license that can be found in the LICENSE file. | |
13815 | |
13816 // WARNING: Do not edit - generated code. | |
13817 | |
13818 interface DOMStringList extends List<String> { | |
13819 | |
13820 final int length; | |
13821 | |
13822 bool contains(String string); | |
13823 | |
13824 String item(int index); | |
13825 } | |
13826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13827 // for details. All rights reserved. Use of this source code is governed by a | |
13828 // BSD-style license that can be found in the LICENSE file. | |
13829 | |
13830 // WARNING: Do not edit - generated code. | |
13831 | |
13832 interface DOMStringMap { | |
13833 } | |
13834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13835 // for details. All rights reserved. Use of this source code is governed by a | |
13836 // BSD-style license that can be found in the LICENSE file. | |
13837 | |
13838 // WARNING: Do not edit - generated code. | |
13839 | |
13840 interface DOMTokenList { | |
13841 | |
13842 final int length; | |
13843 | |
13844 void add(String token); | |
13845 | |
13846 bool contains(String token); | |
13847 | |
13848 String item(int index); | |
13849 | |
13850 void remove(String token); | |
13851 | |
13852 String toString(); | |
13853 | |
13854 bool toggle(String token); | |
13855 } | |
13856 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13857 // for details. All rights reserved. Use of this source code is governed by a | |
13858 // BSD-style license that can be found in the LICENSE file. | |
13859 | |
13860 // WARNING: Do not edit - generated code. | |
13861 | |
13862 interface DOMURL default _DOMURLFactoryProvider { | |
13863 | |
13864 DOMURL(); | |
13865 } | |
13866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
13867 // for details. All rights reserved. Use of this source code is governed by a | |
13868 // BSD-style license that can be found in the LICENSE file. | |
13869 | |
13870 // WARNING: Do not edit - generated code. | |
13871 | |
13872 interface Window extends EventTarget { | |
13873 | |
13874 final DOMApplicationCache applicationCache; | |
13875 | |
13876 final Navigator clientInformation; | |
13877 | |
13878 final bool closed; | |
13879 | |
13880 final Console console; | |
13881 | |
13882 final Crypto crypto; | |
13883 | |
13884 String defaultStatus; | |
13885 | |
13886 String defaultstatus; | |
13887 | |
13888 final num devicePixelRatio; | |
13889 | |
13890 final Document document; | |
13891 | |
13892 final Event event; | |
13893 | |
13894 final Element frameElement; | |
13895 | |
13896 final DOMWindow frames; | |
13897 | |
13898 final History history; | |
13899 | |
13900 final int innerHeight; | |
13901 | |
13902 final int innerWidth; | |
13903 | |
13904 final int length; | |
13905 | |
13906 final Storage localStorage; | |
13907 | |
13908 Location location; | |
13909 | |
13910 final BarInfo locationbar; | |
13911 | |
13912 final BarInfo menubar; | |
13913 | |
13914 String name; | |
13915 | |
13916 final Navigator navigator; | |
13917 | |
13918 final bool offscreenBuffering; | |
13919 | |
13920 final DOMWindow opener; | |
13921 | |
13922 final int outerHeight; | |
13923 | |
13924 final int outerWidth; | |
13925 | |
13926 final PagePopupController pagePopupController; | |
13927 | |
13928 final int pageXOffset; | |
13929 | |
13930 final int pageYOffset; | |
13931 | |
13932 final DOMWindow parent; | |
13933 | |
13934 final Performance performance; | |
13935 | |
13936 final BarInfo personalbar; | |
13937 | |
13938 final Screen screen; | |
13939 | |
13940 final int screenLeft; | |
13941 | |
13942 final int screenTop; | |
13943 | |
13944 final int screenX; | |
13945 | |
13946 final int screenY; | |
13947 | |
13948 final int scrollX; | |
13949 | |
13950 final int scrollY; | |
13951 | |
13952 final BarInfo scrollbars; | |
13953 | |
13954 final DOMWindow self; | |
13955 | |
13956 final Storage sessionStorage; | |
13957 | |
13958 String status; | |
13959 | |
13960 final BarInfo statusbar; | |
13961 | |
13962 final StyleMedia styleMedia; | |
13963 | |
13964 final BarInfo toolbar; | |
13965 | |
13966 final DOMWindow top; | |
13967 | |
13968 final IDBFactory webkitIndexedDB; | |
13969 | |
13970 final NotificationCenter webkitNotifications; | |
13971 | |
13972 final StorageInfo webkitStorageInfo; | |
13973 | |
13974 final DOMWindow window; | |
13975 | |
13976 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
13977 | |
13978 void alert(String message); | |
13979 | |
13980 String atob(String string); | |
13981 | |
13982 void blur(); | |
13983 | |
13984 String btoa(String string); | |
13985 | |
13986 void captureEvents(); | |
13987 | |
13988 void clearInterval(int handle); | |
13989 | |
13990 void clearTimeout(int handle); | |
13991 | |
13992 void close(); | |
13993 | |
13994 bool confirm(String message); | |
13995 | |
13996 bool dispatchEvent(Event evt); | |
13997 | |
13998 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog); | |
13999 | |
14000 void focus(); | |
14001 | |
14002 CSSStyleDeclaration getComputedStyle(Element element, String pseudoElement); | |
14003 | |
14004 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement); | |
14005 | |
14006 DOMSelection getSelection(); | |
14007 | |
14008 MediaQueryList matchMedia(String query); | |
14009 | |
14010 void moveBy(num x, num y); | |
14011 | |
14012 void moveTo(num x, num y); | |
14013 | |
14014 DOMWindow open(String url, String name, [String options]); | |
14015 | |
14016 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); | |
14017 | |
14018 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]); | |
14019 | |
14020 void print(); | |
14021 | |
14022 String prompt(String message, String defaultValue); | |
14023 | |
14024 void releaseEvents(); | |
14025 | |
14026 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
14027 | |
14028 void resizeBy(num x, num y); | |
14029 | |
14030 void resizeTo(num width, num height); | |
14031 | |
14032 void scroll(int x, int y); | |
14033 | |
14034 void scrollBy(int x, int y); | |
14035 | |
14036 void scrollTo(int x, int y); | |
14037 | |
14038 int setInterval(TimeoutHandler handler, int timeout); | |
14039 | |
14040 int setTimeout(TimeoutHandler handler, int timeout); | |
14041 | |
14042 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]); | |
14043 | |
14044 void stop(); | |
14045 | |
14046 void webkitCancelAnimationFrame(int id); | |
14047 | |
14048 void webkitCancelRequestAnimationFrame(int id); | |
14049 | |
14050 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p); | |
14051 | |
14052 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p); | |
14053 | |
14054 void webkitPostMessage(/*SerializedScriptValue*/ message, String targetOrigin,
[List transferList]); | |
14055 | |
14056 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback); | |
14057 | |
14058 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]); | |
14059 | |
14060 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]); | |
14061 } | |
14062 | |
14063 interface DOMWindow extends Window { | |
14064 | |
14065 static const int PERSISTENT = 1; | |
14066 | |
14067 static const int TEMPORARY = 0; | |
14068 } | |
14069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14070 // for details. All rights reserved. Use of this source code is governed by a | |
14071 // BSD-style license that can be found in the LICENSE file. | |
14072 | |
14073 // WARNING: Do not edit - generated code. | |
14074 | |
14075 interface DataTransferItem { | |
14076 | |
14077 final String kind; | |
14078 | |
14079 final String type; | |
14080 | |
14081 Blob getAsFile(); | |
14082 | |
14083 void getAsString([StringCallback callback]); | |
14084 | |
14085 Entry webkitGetAsEntry(); | |
14086 } | |
14087 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14088 // for details. All rights reserved. Use of this source code is governed by a | |
14089 // BSD-style license that can be found in the LICENSE file. | |
14090 | |
14091 // WARNING: Do not edit - generated code. | |
14092 | |
14093 interface DataTransferItemList { | |
14094 | |
14095 final int length; | |
14096 | |
14097 void add(data_OR_file, [String type]); | |
14098 | |
14099 void clear(); | |
14100 | |
14101 DataTransferItem item(int index); | |
14102 } | |
14103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14104 // for details. All rights reserved. Use of this source code is governed by a | |
14105 // BSD-style license that can be found in the LICENSE file. | |
14106 | |
14107 // WARNING: Do not edit - generated code. | |
14108 | |
14109 interface DataView extends ArrayBufferView default _DataViewFactoryProvider { | |
14110 | |
14111 DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]); | |
14112 | |
14113 num getFloat32(int byteOffset, [bool littleEndian]); | |
14114 | |
14115 num getFloat64(int byteOffset, [bool littleEndian]); | |
14116 | |
14117 int getInt16(int byteOffset, [bool littleEndian]); | |
14118 | |
14119 int getInt32(int byteOffset, [bool littleEndian]); | |
14120 | |
14121 int getInt8(int byteOffset); | |
14122 | |
14123 int getUint16(int byteOffset, [bool littleEndian]); | |
14124 | |
14125 int getUint32(int byteOffset, [bool littleEndian]); | |
14126 | |
14127 int getUint8(int byteOffset); | |
14128 | |
14129 void setFloat32(int byteOffset, num value, [bool littleEndian]); | |
14130 | |
14131 void setFloat64(int byteOffset, num value, [bool littleEndian]); | |
14132 | |
14133 void setInt16(int byteOffset, int value, [bool littleEndian]); | |
14134 | |
14135 void setInt32(int byteOffset, int value, [bool littleEndian]); | |
14136 | |
14137 void setInt8(int byteOffset, int value); | |
14138 | |
14139 void setUint16(int byteOffset, int value, [bool littleEndian]); | |
14140 | |
14141 void setUint32(int byteOffset, int value, [bool littleEndian]); | |
14142 | |
14143 void setUint8(int byteOffset, int value); | |
14144 } | |
14145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14146 // for details. All rights reserved. Use of this source code is governed by a | |
14147 // BSD-style license that can be found in the LICENSE file. | |
14148 | |
14149 // WARNING: Do not edit - generated code. | |
14150 | |
14151 interface Database { | |
14152 | |
14153 final String version; | |
14154 | |
14155 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall
back]); | |
14156 | |
14157 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback, VoidCallback successCallback]); | |
14158 | |
14159 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback, VoidCallback successCallback]); | |
14160 } | |
14161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14162 // for details. All rights reserved. Use of this source code is governed by a | |
14163 // BSD-style license that can be found in the LICENSE file. | |
14164 | |
14165 // WARNING: Do not edit - generated code. | |
14166 | |
14167 typedef bool DatabaseCallback(database); | |
14168 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14169 // for details. All rights reserved. Use of this source code is governed by a | |
14170 // BSD-style license that can be found in the LICENSE file. | |
14171 | |
14172 // WARNING: Do not edit - generated code. | |
14173 | |
14174 interface DatabaseSync { | |
14175 | |
14176 final String lastErrorMessage; | |
14177 | |
14178 final String version; | |
14179 | |
14180 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa
llback callback]); | |
14181 | |
14182 void readTransaction(SQLTransactionSyncCallback callback); | |
14183 | |
14184 void transaction(SQLTransactionSyncCallback callback); | |
14185 } | |
14186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14187 // for details. All rights reserved. Use of this source code is governed by a | |
14188 // BSD-style license that can be found in the LICENSE file. | |
14189 | |
14190 // WARNING: Do not edit - generated code. | |
14191 | |
14192 interface DedicatedWorkerGlobalScope extends WorkerContext { | |
14193 | |
14194 void postMessage(Object message, [List messagePorts]); | |
14195 | |
14196 void webkitPostMessage(Object message, [List transferList]); | |
14197 } | |
14198 | |
14199 interface DedicatedWorkerContext extends DedicatedWorkerGlobalScope { | |
14200 } | |
14201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14202 // for details. All rights reserved. Use of this source code is governed by a | |
14203 // BSD-style license that can be found in the LICENSE file. | |
14204 | |
14205 // WARNING: Do not edit - generated code. | |
14206 | |
14207 interface DelayNode extends AudioNode { | |
14208 | |
14209 final AudioParam delayTime; | |
14210 } | |
14211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14212 // for details. All rights reserved. Use of this source code is governed by a | |
14213 // BSD-style license that can be found in the LICENSE file. | |
14214 | |
14215 // WARNING: Do not edit - generated code. | |
14216 | |
14217 interface DeviceMotionEvent extends Event { | |
14218 | |
14219 final num interval; | |
14220 } | |
14221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14222 // for details. All rights reserved. Use of this source code is governed by a | |
14223 // BSD-style license that can be found in the LICENSE file. | |
14224 | |
14225 // WARNING: Do not edit - generated code. | |
14226 | |
14227 interface DeviceOrientationEvent extends Event { | |
14228 | |
14229 final bool absolute; | |
14230 | |
14231 final num alpha; | |
14232 | |
14233 final num beta; | |
14234 | |
14235 final num gamma; | |
14236 | |
14237 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute); | |
14238 } | |
14239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14240 // for details. All rights reserved. Use of this source code is governed by a | |
14241 // BSD-style license that can be found in the LICENSE file. | |
14242 | |
14243 // WARNING: Do not edit - generated code. | |
14244 | |
14245 interface DirectoryEntry extends Entry { | |
14246 | |
14247 DirectoryReader createReader(); | |
14248 | |
14249 void getDirectory(String path, [Map options, EntryCallback successCallback, Er
rorCallback errorCallback]); | |
14250 | |
14251 void getFile(String path, [Map options, EntryCallback successCallback, ErrorCa
llback errorCallback]); | |
14252 | |
14253 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]); | |
14254 } | |
14255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14256 // for details. All rights reserved. Use of this source code is governed by a | |
14257 // BSD-style license that can be found in the LICENSE file. | |
14258 | |
14259 // WARNING: Do not edit - generated code. | |
14260 | |
14261 interface DirectoryEntrySync extends EntrySync { | |
14262 | |
14263 DirectoryReaderSync createReader(); | |
14264 | |
14265 DirectoryEntrySync getDirectory(String path, Map flags); | |
14266 | |
14267 FileEntrySync getFile(String path, Map flags); | |
14268 | |
14269 void removeRecursively(); | |
14270 } | |
14271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14272 // for details. All rights reserved. Use of this source code is governed by a | |
14273 // BSD-style license that can be found in the LICENSE file. | |
14274 | |
14275 // WARNING: Do not edit - generated code. | |
14276 | |
14277 interface DirectoryReader { | |
14278 | |
14279 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
]); | |
14280 } | |
14281 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14282 // for details. All rights reserved. Use of this source code is governed by a | |
14283 // BSD-style license that can be found in the LICENSE file. | |
14284 | |
14285 // WARNING: Do not edit - generated code. | |
14286 | |
14287 interface DirectoryReaderSync { | |
14288 | |
14289 EntryArraySync readEntries(); | |
14290 } | |
14291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14292 // for details. All rights reserved. Use of this source code is governed by a | |
14293 // BSD-style license that can be found in the LICENSE file. | |
14294 | |
14295 // WARNING: Do not edit - generated code. | |
14296 | |
14297 interface Document extends Node { | |
14298 | |
14299 final String URL; | |
14300 | |
14301 final HTMLCollection anchors; | |
14302 | |
14303 final HTMLCollection applets; | |
14304 | |
14305 HTMLElement body; | |
14306 | |
14307 final String characterSet; | |
14308 | |
14309 String charset; | |
14310 | |
14311 final String compatMode; | |
14312 | |
14313 String cookie; | |
14314 | |
14315 final String defaultCharset; | |
14316 | |
14317 final DOMWindow defaultView; | |
14318 | |
14319 final DocumentType doctype; | |
14320 | |
14321 final Element documentElement; | |
14322 | |
14323 final String documentURI; | |
14324 | |
14325 String domain; | |
14326 | |
14327 final HTMLCollection forms; | |
14328 | |
14329 final HTMLHeadElement head; | |
14330 | |
14331 final HTMLCollection images; | |
14332 | |
14333 final DOMImplementation implementation; | |
14334 | |
14335 final String inputEncoding; | |
14336 | |
14337 final String lastModified; | |
14338 | |
14339 final HTMLCollection links; | |
14340 | |
14341 Location location; | |
14342 | |
14343 final String preferredStylesheetSet; | |
14344 | |
14345 final String readyState; | |
14346 | |
14347 final String referrer; | |
14348 | |
14349 String selectedStylesheetSet; | |
14350 | |
14351 final StyleSheetList styleSheets; | |
14352 | |
14353 String title; | |
14354 | |
14355 final Element webkitCurrentFullScreenElement; | |
14356 | |
14357 final bool webkitFullScreenKeyboardInputAllowed; | |
14358 | |
14359 final Element webkitFullscreenElement; | |
14360 | |
14361 final bool webkitFullscreenEnabled; | |
14362 | |
14363 final bool webkitHidden; | |
14364 | |
14365 final bool webkitIsFullScreen; | |
14366 | |
14367 final Element webkitPointerLockElement; | |
14368 | |
14369 final String webkitVisibilityState; | |
14370 | |
14371 final String xmlEncoding; | |
14372 | |
14373 bool xmlStandalone; | |
14374 | |
14375 String xmlVersion; | |
14376 | |
14377 Node adoptNode(Node source); | |
14378 | |
14379 Range caretRangeFromPoint(int x, int y); | |
14380 | |
14381 Attr createAttribute(String name); | |
14382 | |
14383 Attr createAttributeNS(String namespaceURI, String qualifiedName); | |
14384 | |
14385 CDATASection createCDATASection(String data); | |
14386 | |
14387 Comment createComment(String data); | |
14388 | |
14389 DocumentFragment createDocumentFragment(); | |
14390 | |
14391 Element createElement(String tagName); | |
14392 | |
14393 Element createElementNS(String namespaceURI, String qualifiedName); | |
14394 | |
14395 EntityReference createEntityReference(String name); | |
14396 | |
14397 Event createEvent(String eventType); | |
14398 | |
14399 XPathExpression createExpression(String expression, XPathNSResolver resolver); | |
14400 | |
14401 XPathNSResolver createNSResolver(Node nodeResolver); | |
14402 | |
14403 NodeIterator createNodeIterator(Node root, int whatToShow, NodeFilter filter,
bool expandEntityReferences); | |
14404 | |
14405 ProcessingInstruction createProcessingInstruction(String target, String data); | |
14406 | |
14407 Range createRange(); | |
14408 | |
14409 Text createTextNode(String data); | |
14410 | |
14411 Touch createTouch(DOMWindow window, EventTarget target, int identifier, int pa
geX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY,
num webkitRotationAngle, num webkitForce); | |
14412 | |
14413 TouchList createTouchList(); | |
14414 | |
14415 TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter, bool
expandEntityReferences); | |
14416 | |
14417 Element elementFromPoint(int x, int y); | |
14418 | |
14419 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult); | |
14420 | |
14421 bool execCommand(String command, bool userInterface, String value); | |
14422 | |
14423 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int
width, int height); | |
14424 | |
14425 Element getElementById(String elementId); | |
14426 | |
14427 NodeList getElementsByClassName(String tagname); | |
14428 | |
14429 NodeList getElementsByName(String elementName); | |
14430 | |
14431 NodeList getElementsByTagName(String tagname); | |
14432 | |
14433 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | |
14434 | |
14435 CSSStyleDeclaration getOverrideStyle(Element element, String pseudoElement); | |
14436 | |
14437 DOMSelection getSelection(); | |
14438 | |
14439 Node importNode(Node importedNode, [bool deep]); | |
14440 | |
14441 bool queryCommandEnabled(String command); | |
14442 | |
14443 bool queryCommandIndeterm(String command); | |
14444 | |
14445 bool queryCommandState(String command); | |
14446 | |
14447 bool queryCommandSupported(String command); | |
14448 | |
14449 String queryCommandValue(String command); | |
14450 | |
14451 Element querySelector(String selectors); | |
14452 | |
14453 NodeList querySelectorAll(String selectors); | |
14454 | |
14455 void webkitCancelFullScreen(); | |
14456 | |
14457 void webkitExitFullscreen(); | |
14458 | |
14459 void webkitExitPointerLock(); | |
14460 } | |
14461 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14462 // for details. All rights reserved. Use of this source code is governed by a | |
14463 // BSD-style license that can be found in the LICENSE file. | |
14464 | |
14465 // WARNING: Do not edit - generated code. | |
14466 | |
14467 interface DocumentFragment extends Node { | |
14468 | |
14469 Element querySelector(String selectors); | |
14470 | |
14471 NodeList querySelectorAll(String selectors); | |
14472 } | |
14473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14474 // for details. All rights reserved. Use of this source code is governed by a | |
14475 // BSD-style license that can be found in the LICENSE file. | |
14476 | |
14477 // WARNING: Do not edit - generated code. | |
14478 | |
14479 interface DocumentType extends Node { | |
14480 | |
14481 final NamedNodeMap entities; | |
14482 | |
14483 final String internalSubset; | |
14484 | |
14485 final String name; | |
14486 | |
14487 final NamedNodeMap notations; | |
14488 | |
14489 final String publicId; | |
14490 | |
14491 final String systemId; | |
14492 } | |
14493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14494 // for details. All rights reserved. Use of this source code is governed by a | |
14495 // BSD-style license that can be found in the LICENSE file. | |
14496 | |
14497 // WARNING: Do not edit - generated code. | |
14498 | |
14499 interface DynamicsCompressorNode extends AudioNode { | |
14500 | |
14501 final AudioParam attack; | |
14502 | |
14503 final AudioParam knee; | |
14504 | |
14505 final AudioParam ratio; | |
14506 | |
14507 final AudioParam reduction; | |
14508 | |
14509 final AudioParam release; | |
14510 | |
14511 final AudioParam threshold; | |
14512 } | |
14513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14514 // for details. All rights reserved. Use of this source code is governed by a | |
14515 // BSD-style license that can be found in the LICENSE file. | |
14516 | |
14517 // WARNING: Do not edit - generated code. | |
14518 | |
14519 interface EXTTextureFilterAnisotropic { | |
14520 | |
14521 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; | |
14522 | |
14523 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; | |
14524 } | |
14525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14526 // for details. All rights reserved. Use of this source code is governed by a | |
14527 // BSD-style license that can be found in the LICENSE file. | |
14528 | |
14529 // WARNING: Do not edit - generated code. | |
14530 | |
14531 interface Element extends Node, ElementTraversal { | |
14532 | |
14533 static const int ALLOW_KEYBOARD_INPUT = 1; | |
14534 | |
14535 final int childElementCount; | |
14536 | |
14537 final DOMTokenList classList; | |
14538 | |
14539 String className; | |
14540 | |
14541 final int clientHeight; | |
14542 | |
14543 final int clientLeft; | |
14544 | |
14545 final int clientTop; | |
14546 | |
14547 final int clientWidth; | |
14548 | |
14549 final Map<String, String> dataset; | |
14550 | |
14551 final Element firstElementChild; | |
14552 | |
14553 final Element lastElementChild; | |
14554 | |
14555 final Element nextElementSibling; | |
14556 | |
14557 final int offsetHeight; | |
14558 | |
14559 final int offsetLeft; | |
14560 | |
14561 final Element offsetParent; | |
14562 | |
14563 final int offsetTop; | |
14564 | |
14565 final int offsetWidth; | |
14566 | |
14567 final Element previousElementSibling; | |
14568 | |
14569 final int scrollHeight; | |
14570 | |
14571 int scrollLeft; | |
14572 | |
14573 int scrollTop; | |
14574 | |
14575 final int scrollWidth; | |
14576 | |
14577 final CSSStyleDeclaration style; | |
14578 | |
14579 final String tagName; | |
14580 | |
14581 final String webkitRegionOverset; | |
14582 | |
14583 void blur(); | |
14584 | |
14585 void focus(); | |
14586 | |
14587 String getAttribute(String name); | |
14588 | |
14589 String getAttributeNS(String namespaceURI, String localName); | |
14590 | |
14591 Attr getAttributeNode(String name); | |
14592 | |
14593 Attr getAttributeNodeNS(String namespaceURI, String localName); | |
14594 | |
14595 ClientRect getBoundingClientRect(); | |
14596 | |
14597 ClientRectList getClientRects(); | |
14598 | |
14599 NodeList getElementsByClassName(String name); | |
14600 | |
14601 NodeList getElementsByTagName(String name); | |
14602 | |
14603 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | |
14604 | |
14605 bool hasAttribute(String name); | |
14606 | |
14607 bool hasAttributeNS(String namespaceURI, String localName); | |
14608 | |
14609 Element querySelector(String selectors); | |
14610 | |
14611 NodeList querySelectorAll(String selectors); | |
14612 | |
14613 void removeAttribute(String name); | |
14614 | |
14615 void removeAttributeNS(String namespaceURI, String localName); | |
14616 | |
14617 Attr removeAttributeNode(Attr oldAttr); | |
14618 | |
14619 void scrollByLines(int lines); | |
14620 | |
14621 void scrollByPages(int pages); | |
14622 | |
14623 void scrollIntoView([bool alignWithTop]); | |
14624 | |
14625 void scrollIntoViewIfNeeded([bool centerIfNeeded]); | |
14626 | |
14627 void setAttribute(String name, String value); | |
14628 | |
14629 void setAttributeNS(String namespaceURI, String qualifiedName, String value); | |
14630 | |
14631 Attr setAttributeNode(Attr newAttr); | |
14632 | |
14633 Attr setAttributeNodeNS(Attr newAttr); | |
14634 | |
14635 bool webkitMatchesSelector(String selectors); | |
14636 | |
14637 void webkitRequestFullScreen(int flags); | |
14638 | |
14639 void webkitRequestFullscreen(); | |
14640 | |
14641 void webkitRequestPointerLock(); | |
14642 } | |
14643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14644 // for details. All rights reserved. Use of this source code is governed by a | |
14645 // BSD-style license that can be found in the LICENSE file. | |
14646 | |
14647 // WARNING: Do not edit - generated code. | |
14648 | |
14649 interface ElementTimeControl { | |
14650 | |
14651 void beginElement(); | |
14652 | |
14653 void beginElementAt(num offset); | |
14654 | |
14655 void endElement(); | |
14656 | |
14657 void endElementAt(num offset); | |
14658 } | |
14659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14660 // for details. All rights reserved. Use of this source code is governed by a | |
14661 // BSD-style license that can be found in the LICENSE file. | |
14662 | |
14663 // WARNING: Do not edit - generated code. | |
14664 | |
14665 interface ElementTraversal { | |
14666 | |
14667 final int childElementCount; | |
14668 | |
14669 final Element firstElementChild; | |
14670 | |
14671 final Element lastElementChild; | |
14672 | |
14673 final Element nextElementSibling; | |
14674 | |
14675 final Element previousElementSibling; | |
14676 } | |
14677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14678 // for details. All rights reserved. Use of this source code is governed by a | |
14679 // BSD-style license that can be found in the LICENSE file. | |
14680 | |
14681 // WARNING: Do not edit - generated code. | |
14682 | |
14683 interface Entity extends Node { | |
14684 | |
14685 final String notationName; | |
14686 | |
14687 final String publicId; | |
14688 | |
14689 final String systemId; | |
14690 } | |
14691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14692 // for details. All rights reserved. Use of this source code is governed by a | |
14693 // BSD-style license that can be found in the LICENSE file. | |
14694 | |
14695 // WARNING: Do not edit - generated code. | |
14696 | |
14697 interface EntityReference extends Node { | |
14698 } | |
14699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14700 // for details. All rights reserved. Use of this source code is governed by a | |
14701 // BSD-style license that can be found in the LICENSE file. | |
14702 | |
14703 // WARNING: Do not edit - generated code. | |
14704 | |
14705 typedef bool EntriesCallback(EntryArray entries); | |
14706 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14707 // for details. All rights reserved. Use of this source code is governed by a | |
14708 // BSD-style license that can be found in the LICENSE file. | |
14709 | |
14710 // WARNING: Do not edit - generated code. | |
14711 | |
14712 interface Entry { | |
14713 | |
14714 final DOMFileSystem filesystem; | |
14715 | |
14716 final String fullPath; | |
14717 | |
14718 final bool isDirectory; | |
14719 | |
14720 final bool isFile; | |
14721 | |
14722 final String name; | |
14723 | |
14724 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]); | |
14725 | |
14726 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k]); | |
14727 | |
14728 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]); | |
14729 | |
14730 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]); | |
14731 | |
14732 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]); | |
14733 | |
14734 String toURL(); | |
14735 } | |
14736 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14737 // for details. All rights reserved. Use of this source code is governed by a | |
14738 // BSD-style license that can be found in the LICENSE file. | |
14739 | |
14740 // WARNING: Do not edit - generated code. | |
14741 | |
14742 interface EntryArray { | |
14743 | |
14744 final int length; | |
14745 | |
14746 Entry item(int index); | |
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 // WARNING: Do not edit - generated code. | |
14753 | |
14754 interface EntryArraySync { | |
14755 | |
14756 final int length; | |
14757 | |
14758 EntrySync item(int index); | |
14759 } | |
14760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14761 // for details. All rights reserved. Use of this source code is governed by a | |
14762 // BSD-style license that can be found in the LICENSE file. | |
14763 | |
14764 // WARNING: Do not edit - generated code. | |
14765 | |
14766 typedef bool EntryCallback(Entry entry); | |
14767 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14768 // for details. All rights reserved. Use of this source code is governed by a | |
14769 // BSD-style license that can be found in the LICENSE file. | |
14770 | |
14771 // WARNING: Do not edit - generated code. | |
14772 | |
14773 interface EntrySync { | |
14774 | |
14775 final DOMFileSystemSync filesystem; | |
14776 | |
14777 final String fullPath; | |
14778 | |
14779 final bool isDirectory; | |
14780 | |
14781 final bool isFile; | |
14782 | |
14783 final String name; | |
14784 | |
14785 EntrySync copyTo(DirectoryEntrySync parent, String name); | |
14786 | |
14787 Metadata getMetadata(); | |
14788 | |
14789 EntrySync getParent(); | |
14790 | |
14791 EntrySync moveTo(DirectoryEntrySync parent, String name); | |
14792 | |
14793 void remove(); | |
14794 | |
14795 String toURL(); | |
14796 } | |
14797 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14798 // for details. All rights reserved. Use of this source code is governed by a | |
14799 // BSD-style license that can be found in the LICENSE file. | |
14800 | |
14801 // WARNING: Do not edit - generated code. | |
14802 | |
14803 typedef bool ErrorCallback(FileError error); | |
14804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14805 // for details. All rights reserved. Use of this source code is governed by a | |
14806 // BSD-style license that can be found in the LICENSE file. | |
14807 | |
14808 // WARNING: Do not edit - generated code. | |
14809 | |
14810 interface ErrorEvent extends Event { | |
14811 | |
14812 final String filename; | |
14813 | |
14814 final int lineno; | |
14815 | |
14816 final String message; | |
14817 } | |
14818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14819 // for details. All rights reserved. Use of this source code is governed by a | |
14820 // BSD-style license that can be found in the LICENSE file. | |
14821 | |
14822 // WARNING: Do not edit - generated code. | |
14823 | |
14824 interface Event { | |
14825 | |
14826 static const int AT_TARGET = 2; | |
14827 | |
14828 static const int BLUR = 8192; | |
14829 | |
14830 static const int BUBBLING_PHASE = 3; | |
14831 | |
14832 static const int CAPTURING_PHASE = 1; | |
14833 | |
14834 static const int CHANGE = 32768; | |
14835 | |
14836 static const int CLICK = 64; | |
14837 | |
14838 static const int DBLCLICK = 128; | |
14839 | |
14840 static const int DRAGDROP = 2048; | |
14841 | |
14842 static const int FOCUS = 4096; | |
14843 | |
14844 static const int KEYDOWN = 256; | |
14845 | |
14846 static const int KEYPRESS = 1024; | |
14847 | |
14848 static const int KEYUP = 512; | |
14849 | |
14850 static const int MOUSEDOWN = 1; | |
14851 | |
14852 static const int MOUSEDRAG = 32; | |
14853 | |
14854 static const int MOUSEMOVE = 16; | |
14855 | |
14856 static const int MOUSEOUT = 8; | |
14857 | |
14858 static const int MOUSEOVER = 4; | |
14859 | |
14860 static const int MOUSEUP = 2; | |
14861 | |
14862 static const int NONE = 0; | |
14863 | |
14864 static const int SELECT = 16384; | |
14865 | |
14866 final bool bubbles; | |
14867 | |
14868 bool cancelBubble; | |
14869 | |
14870 final bool cancelable; | |
14871 | |
14872 final Clipboard clipboardData; | |
14873 | |
14874 final EventTarget currentTarget; | |
14875 | |
14876 final bool defaultPrevented; | |
14877 | |
14878 final int eventPhase; | |
14879 | |
14880 bool returnValue; | |
14881 | |
14882 final EventTarget srcElement; | |
14883 | |
14884 final EventTarget target; | |
14885 | |
14886 final int timeStamp; | |
14887 | |
14888 final String type; | |
14889 | |
14890 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg); | |
14891 | |
14892 void preventDefault(); | |
14893 | |
14894 void stopImmediatePropagation(); | |
14895 | |
14896 void stopPropagation(); | |
14897 } | |
14898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14899 // for details. All rights reserved. Use of this source code is governed by a | |
14900 // BSD-style license that can be found in the LICENSE file. | |
14901 | |
14902 // WARNING: Do not edit - generated code. | |
14903 | |
14904 interface EventException { | |
14905 | |
14906 static const int DISPATCH_REQUEST_ERR = 1; | |
14907 | |
14908 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; | |
14909 | |
14910 final int code; | |
14911 | |
14912 final String message; | |
14913 | |
14914 final String name; | |
14915 | |
14916 String toString(); | |
14917 } | |
14918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14919 // for details. All rights reserved. Use of this source code is governed by a | |
14920 // BSD-style license that can be found in the LICENSE file. | |
14921 | |
14922 // WARNING: Do not edit - generated code. | |
14923 | |
14924 interface EventSource extends EventTarget default _EventSourceFactoryProvider { | |
14925 | |
14926 EventSource(String scriptUrl); | |
14927 | |
14928 static const int CLOSED = 2; | |
14929 | |
14930 static const int CONNECTING = 0; | |
14931 | |
14932 static const int OPEN = 1; | |
14933 | |
14934 final String URL; | |
14935 | |
14936 final int readyState; | |
14937 | |
14938 final String url; | |
14939 | |
14940 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
14941 | |
14942 void close(); | |
14943 | |
14944 bool dispatchEvent(Event evt); | |
14945 | |
14946 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
14947 } | |
14948 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14949 // for details. All rights reserved. Use of this source code is governed by a | |
14950 // BSD-style license that can be found in the LICENSE file. | |
14951 | |
14952 // WARNING: Do not edit - generated code. | |
14953 | |
14954 interface EventTarget { | |
14955 | |
14956 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
14957 | |
14958 bool dispatchEvent(Event event); | |
14959 | |
14960 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
14961 } | |
14962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14963 // for details. All rights reserved. Use of this source code is governed by a | |
14964 // BSD-style license that can be found in the LICENSE file. | |
14965 | |
14966 // WARNING: Do not edit - generated code. | |
14967 | |
14968 interface File extends Blob { | |
14969 | |
14970 final Date lastModifiedDate; | |
14971 | |
14972 final String name; | |
14973 | |
14974 final String webkitRelativePath; | |
14975 } | |
14976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14977 // for details. All rights reserved. Use of this source code is governed by a | |
14978 // BSD-style license that can be found in the LICENSE file. | |
14979 | |
14980 // WARNING: Do not edit - generated code. | |
14981 | |
14982 typedef bool FileCallback(File file); | |
14983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14984 // for details. All rights reserved. Use of this source code is governed by a | |
14985 // BSD-style license that can be found in the LICENSE file. | |
14986 | |
14987 // WARNING: Do not edit - generated code. | |
14988 | |
14989 interface FileEntry extends Entry { | |
14990 | |
14991 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back]); | |
14992 | |
14993 void file(FileCallback successCallback, [ErrorCallback errorCallback]); | |
14994 } | |
14995 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
14996 // for details. All rights reserved. Use of this source code is governed by a | |
14997 // BSD-style license that can be found in the LICENSE file. | |
14998 | |
14999 // WARNING: Do not edit - generated code. | |
15000 | |
15001 interface FileEntrySync extends EntrySync { | |
15002 | |
15003 FileWriterSync createWriter(); | |
15004 | |
15005 File file(); | |
15006 } | |
15007 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15008 // for details. All rights reserved. Use of this source code is governed by a | |
15009 // BSD-style license that can be found in the LICENSE file. | |
15010 | |
15011 // WARNING: Do not edit - generated code. | |
15012 | |
15013 interface FileError { | |
15014 | |
15015 static const int ABORT_ERR = 3; | |
15016 | |
15017 static const int ENCODING_ERR = 5; | |
15018 | |
15019 static const int INVALID_MODIFICATION_ERR = 9; | |
15020 | |
15021 static const int INVALID_STATE_ERR = 7; | |
15022 | |
15023 static const int NOT_FOUND_ERR = 1; | |
15024 | |
15025 static const int NOT_READABLE_ERR = 4; | |
15026 | |
15027 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | |
15028 | |
15029 static const int PATH_EXISTS_ERR = 12; | |
15030 | |
15031 static const int QUOTA_EXCEEDED_ERR = 10; | |
15032 | |
15033 static const int SECURITY_ERR = 2; | |
15034 | |
15035 static const int SYNTAX_ERR = 8; | |
15036 | |
15037 static const int TYPE_MISMATCH_ERR = 11; | |
15038 | |
15039 final int code; | |
15040 } | |
15041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15042 // for details. All rights reserved. Use of this source code is governed by a | |
15043 // BSD-style license that can be found in the LICENSE file. | |
15044 | |
15045 // WARNING: Do not edit - generated code. | |
15046 | |
15047 interface FileException { | |
15048 | |
15049 static const int ABORT_ERR = 3; | |
15050 | |
15051 static const int ENCODING_ERR = 5; | |
15052 | |
15053 static const int INVALID_MODIFICATION_ERR = 9; | |
15054 | |
15055 static const int INVALID_STATE_ERR = 7; | |
15056 | |
15057 static const int NOT_FOUND_ERR = 1; | |
15058 | |
15059 static const int NOT_READABLE_ERR = 4; | |
15060 | |
15061 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | |
15062 | |
15063 static const int PATH_EXISTS_ERR = 12; | |
15064 | |
15065 static const int QUOTA_EXCEEDED_ERR = 10; | |
15066 | |
15067 static const int SECURITY_ERR = 2; | |
15068 | |
15069 static const int SYNTAX_ERR = 8; | |
15070 | |
15071 static const int TYPE_MISMATCH_ERR = 11; | |
15072 | |
15073 final int code; | |
15074 | |
15075 final String message; | |
15076 | |
15077 final String name; | |
15078 | |
15079 String toString(); | |
15080 } | |
15081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15082 // for details. All rights reserved. Use of this source code is governed by a | |
15083 // BSD-style license that can be found in the LICENSE file. | |
15084 | |
15085 // WARNING: Do not edit - generated code. | |
15086 | |
15087 interface FileList extends List<File> { | |
15088 | |
15089 final int length; | |
15090 | |
15091 File item(int index); | |
15092 } | |
15093 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15094 // for details. All rights reserved. Use of this source code is governed by a | |
15095 // BSD-style license that can be found in the LICENSE file. | |
15096 | |
15097 // WARNING: Do not edit - generated code. | |
15098 | |
15099 interface FileReader extends EventTarget default _FileReaderFactoryProvider { | |
15100 | |
15101 FileReader(); | |
15102 | |
15103 static const int DONE = 2; | |
15104 | |
15105 static const int EMPTY = 0; | |
15106 | |
15107 static const int LOADING = 1; | |
15108 | |
15109 final FileError error; | |
15110 | |
15111 final int readyState; | |
15112 | |
15113 final Object result; | |
15114 | |
15115 void abort(); | |
15116 | |
15117 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
15118 | |
15119 bool dispatchEvent(Event evt); | |
15120 | |
15121 void readAsArrayBuffer(Blob blob); | |
15122 | |
15123 void readAsBinaryString(Blob blob); | |
15124 | |
15125 void readAsDataURL(Blob blob); | |
15126 | |
15127 void readAsText(Blob blob, [String encoding]); | |
15128 | |
15129 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
15130 } | |
15131 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15132 // for details. All rights reserved. Use of this source code is governed by a | |
15133 // BSD-style license that can be found in the LICENSE file. | |
15134 | |
15135 // WARNING: Do not edit - generated code. | |
15136 | |
15137 interface FileReaderSync default _FileReaderSyncFactoryProvider { | |
15138 | |
15139 FileReaderSync(); | |
15140 | |
15141 ArrayBuffer readAsArrayBuffer(Blob blob); | |
15142 | |
15143 String readAsBinaryString(Blob blob); | |
15144 | |
15145 String readAsDataURL(Blob blob); | |
15146 | |
15147 String readAsText(Blob blob, [String encoding]); | |
15148 } | |
15149 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15150 // for details. All rights reserved. Use of this source code is governed by a | |
15151 // BSD-style license that can be found in the LICENSE file. | |
15152 | |
15153 // WARNING: Do not edit - generated code. | |
15154 | |
15155 typedef bool FileSystemCallback(DOMFileSystem fileSystem); | |
15156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15157 // for details. All rights reserved. Use of this source code is governed by a | |
15158 // BSD-style license that can be found in the LICENSE file. | |
15159 | |
15160 // WARNING: Do not edit - generated code. | |
15161 | |
15162 interface FileWriter extends EventTarget { | |
15163 | |
15164 static const int DONE = 2; | |
15165 | |
15166 static const int INIT = 0; | |
15167 | |
15168 static const int WRITING = 1; | |
15169 | |
15170 final FileError error; | |
15171 | |
15172 final int length; | |
15173 | |
15174 final int position; | |
15175 | |
15176 final int readyState; | |
15177 | |
15178 void abort(); | |
15179 | |
15180 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
15181 | |
15182 bool dispatchEvent(Event evt); | |
15183 | |
15184 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
15185 | |
15186 void seek(int position); | |
15187 | |
15188 void truncate(int size); | |
15189 | |
15190 void write(Blob data); | |
15191 } | |
15192 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15193 // for details. All rights reserved. Use of this source code is governed by a | |
15194 // BSD-style license that can be found in the LICENSE file. | |
15195 | |
15196 // WARNING: Do not edit - generated code. | |
15197 | |
15198 typedef bool FileWriterCallback(FileWriter fileWriter); | |
15199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15200 // for details. All rights reserved. Use of this source code is governed by a | |
15201 // BSD-style license that can be found in the LICENSE file. | |
15202 | |
15203 // WARNING: Do not edit - generated code. | |
15204 | |
15205 interface FileWriterSync { | |
15206 | |
15207 final int length; | |
15208 | |
15209 final int position; | |
15210 | |
15211 void seek(int position); | |
15212 | |
15213 void truncate(int size); | |
15214 | |
15215 void write(Blob data); | |
15216 } | |
15217 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15218 // for details. All rights reserved. Use of this source code is governed by a | |
15219 // BSD-style license that can be found in the LICENSE file. | |
15220 | |
15221 // WARNING: Do not edit - generated code. | |
15222 | |
15223 interface Float32Array extends ArrayBufferView, List<num> default _TypedArrayFac
toryProvider { | |
15224 | |
15225 Float32Array(int length); | |
15226 | |
15227 Float32Array.fromList(List<num> list); | |
15228 | |
15229 Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
15230 | |
15231 static const int BYTES_PER_ELEMENT = 4; | |
15232 | |
15233 final int length; | |
15234 | |
15235 void setElements(Object array, [int offset]); | |
15236 | |
15237 Float32Array subarray(int start, [int end]); | |
15238 } | |
15239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15240 // for details. All rights reserved. Use of this source code is governed by a | |
15241 // BSD-style license that can be found in the LICENSE file. | |
15242 | |
15243 // WARNING: Do not edit - generated code. | |
15244 | |
15245 interface Float64Array extends ArrayBufferView, List<num> default _TypedArrayFac
toryProvider { | |
15246 | |
15247 Float64Array(int length); | |
15248 | |
15249 Float64Array.fromList(List<num> list); | |
15250 | |
15251 Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
15252 | |
15253 static const int BYTES_PER_ELEMENT = 8; | |
15254 | |
15255 final int length; | |
15256 | |
15257 void setElements(Object array, [int offset]); | |
15258 | |
15259 Float64Array subarray(int start, [int end]); | |
15260 } | |
15261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15262 // for details. All rights reserved. Use of this source code is governed by a | |
15263 // BSD-style license that can be found in the LICENSE file. | |
15264 | |
15265 // WARNING: Do not edit - generated code. | |
15266 | |
15267 interface Gamepad { | |
15268 | |
15269 final List<num> axes; | |
15270 | |
15271 final List<num> buttons; | |
15272 | |
15273 final String id; | |
15274 | |
15275 final int index; | |
15276 | |
15277 final int timestamp; | |
15278 } | |
15279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15280 // for details. All rights reserved. Use of this source code is governed by a | |
15281 // BSD-style license that can be found in the LICENSE file. | |
15282 | |
15283 // WARNING: Do not edit - generated code. | |
15284 | |
15285 interface GamepadList { | |
15286 | |
15287 final int length; | |
15288 | |
15289 Gamepad item(int index); | |
15290 } | |
15291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15292 // for details. All rights reserved. Use of this source code is governed by a | |
15293 // BSD-style license that can be found in the LICENSE file. | |
15294 | |
15295 // WARNING: Do not edit - generated code. | |
15296 | |
15297 interface Geolocation { | |
15298 | |
15299 void clearWatch(int watchId); | |
15300 | |
15301 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]); | |
15302 | |
15303 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]); | |
15304 } | |
15305 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15306 // for details. All rights reserved. Use of this source code is governed by a | |
15307 // BSD-style license that can be found in the LICENSE file. | |
15308 | |
15309 // WARNING: Do not edit - generated code. | |
15310 | |
15311 interface Geoposition { | |
15312 | |
15313 final Coordinates coords; | |
15314 | |
15315 final int timestamp; | |
15316 } | |
15317 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15318 // for details. All rights reserved. Use of this source code is governed by a | |
15319 // BSD-style license that can be found in the LICENSE file. | |
15320 | |
15321 // WARNING: Do not edit - generated code. | |
15322 | |
15323 interface HTMLAllCollection { | |
15324 | |
15325 final int length; | |
15326 | |
15327 Node item(int index); | |
15328 | |
15329 Node namedItem(String name); | |
15330 | |
15331 NodeList tags(String name); | |
15332 } | |
15333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15334 // for details. All rights reserved. Use of this source code is governed by a | |
15335 // BSD-style license that can be found in the LICENSE file. | |
15336 | |
15337 // WARNING: Do not edit - generated code. | |
15338 | |
15339 interface HTMLAnchorElement extends HTMLElement { | |
15340 | |
15341 String charset; | |
15342 | |
15343 String coords; | |
15344 | |
15345 String download; | |
15346 | |
15347 String hash; | |
15348 | |
15349 String host; | |
15350 | |
15351 String hostname; | |
15352 | |
15353 String href; | |
15354 | |
15355 String hreflang; | |
15356 | |
15357 String name; | |
15358 | |
15359 final String origin; | |
15360 | |
15361 String pathname; | |
15362 | |
15363 String ping; | |
15364 | |
15365 String port; | |
15366 | |
15367 String protocol; | |
15368 | |
15369 String rel; | |
15370 | |
15371 String rev; | |
15372 | |
15373 String search; | |
15374 | |
15375 String shape; | |
15376 | |
15377 String target; | |
15378 | |
15379 final String text; | |
15380 | |
15381 String type; | |
15382 | |
15383 String toString(); | |
15384 } | |
15385 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15386 // for details. All rights reserved. Use of this source code is governed by a | |
15387 // BSD-style license that can be found in the LICENSE file. | |
15388 | |
15389 // WARNING: Do not edit - generated code. | |
15390 | |
15391 interface HTMLAppletElement extends HTMLElement { | |
15392 | |
15393 String align; | |
15394 | |
15395 String alt; | |
15396 | |
15397 String archive; | |
15398 | |
15399 String code; | |
15400 | |
15401 String codeBase; | |
15402 | |
15403 String height; | |
15404 | |
15405 String hspace; | |
15406 | |
15407 String name; | |
15408 | |
15409 String object; | |
15410 | |
15411 String vspace; | |
15412 | |
15413 String width; | |
15414 } | |
15415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15416 // for details. All rights reserved. Use of this source code is governed by a | |
15417 // BSD-style license that can be found in the LICENSE file. | |
15418 | |
15419 // WARNING: Do not edit - generated code. | |
15420 | |
15421 interface HTMLAreaElement extends HTMLElement { | |
15422 | |
15423 String alt; | |
15424 | |
15425 String coords; | |
15426 | |
15427 final String hash; | |
15428 | |
15429 final String host; | |
15430 | |
15431 final String hostname; | |
15432 | |
15433 String href; | |
15434 | |
15435 bool noHref; | |
15436 | |
15437 final String pathname; | |
15438 | |
15439 String ping; | |
15440 | |
15441 final String port; | |
15442 | |
15443 final String protocol; | |
15444 | |
15445 final String search; | |
15446 | |
15447 String shape; | |
15448 | |
15449 String target; | |
15450 } | |
15451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15452 // for details. All rights reserved. Use of this source code is governed by a | |
15453 // BSD-style license that can be found in the LICENSE file. | |
15454 | |
15455 // WARNING: Do not edit - generated code. | |
15456 | |
15457 interface HTMLAudioElement extends HTMLMediaElement default _HTMLAudioElementFac
toryProvider { | |
15458 | |
15459 HTMLAudioElement([String src]); | |
15460 } | |
15461 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15462 // for details. All rights reserved. Use of this source code is governed by a | |
15463 // BSD-style license that can be found in the LICENSE file. | |
15464 | |
15465 // WARNING: Do not edit - generated code. | |
15466 | |
15467 interface HTMLBRElement extends HTMLElement { | |
15468 | |
15469 String clear; | |
15470 } | |
15471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15472 // for details. All rights reserved. Use of this source code is governed by a | |
15473 // BSD-style license that can be found in the LICENSE file. | |
15474 | |
15475 // WARNING: Do not edit - generated code. | |
15476 | |
15477 interface HTMLBaseElement extends HTMLElement { | |
15478 | |
15479 String href; | |
15480 | |
15481 String target; | |
15482 } | |
15483 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15484 // for details. All rights reserved. Use of this source code is governed by a | |
15485 // BSD-style license that can be found in the LICENSE file. | |
15486 | |
15487 // WARNING: Do not edit - generated code. | |
15488 | |
15489 interface HTMLBaseFontElement extends HTMLElement { | |
15490 | |
15491 String color; | |
15492 | |
15493 String face; | |
15494 | |
15495 int size; | |
15496 } | |
15497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15498 // for details. All rights reserved. Use of this source code is governed by a | |
15499 // BSD-style license that can be found in the LICENSE file. | |
15500 | |
15501 // WARNING: Do not edit - generated code. | |
15502 | |
15503 interface HTMLBodyElement extends HTMLElement { | |
15504 | |
15505 String aLink; | |
15506 | |
15507 String background; | |
15508 | |
15509 String bgColor; | |
15510 | |
15511 String link; | |
15512 | |
15513 String text; | |
15514 | |
15515 String vLink; | |
15516 } | |
15517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15518 // for details. All rights reserved. Use of this source code is governed by a | |
15519 // BSD-style license that can be found in the LICENSE file. | |
15520 | |
15521 // WARNING: Do not edit - generated code. | |
15522 | |
15523 interface HTMLButtonElement extends HTMLElement { | |
15524 | |
15525 bool autofocus; | |
15526 | |
15527 bool disabled; | |
15528 | |
15529 final HTMLFormElement form; | |
15530 | |
15531 String formAction; | |
15532 | |
15533 String formEnctype; | |
15534 | |
15535 String formMethod; | |
15536 | |
15537 bool formNoValidate; | |
15538 | |
15539 String formTarget; | |
15540 | |
15541 final NodeList labels; | |
15542 | |
15543 String name; | |
15544 | |
15545 String type; | |
15546 | |
15547 final String validationMessage; | |
15548 | |
15549 final ValidityState validity; | |
15550 | |
15551 String value; | |
15552 | |
15553 final bool willValidate; | |
15554 | |
15555 bool checkValidity(); | |
15556 | |
15557 void setCustomValidity(String error); | |
15558 } | |
15559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15560 // for details. All rights reserved. Use of this source code is governed by a | |
15561 // BSD-style license that can be found in the LICENSE file. | |
15562 | |
15563 // WARNING: Do not edit - generated code. | |
15564 | |
15565 interface HTMLCanvasElement extends HTMLElement { | |
15566 | |
15567 int height; | |
15568 | |
15569 int width; | |
15570 | |
15571 Object getContext(String contextId); | |
15572 | |
15573 String toDataURL(String type, [num quality]); | |
15574 } | |
15575 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15576 // for details. All rights reserved. Use of this source code is governed by a | |
15577 // BSD-style license that can be found in the LICENSE file. | |
15578 | |
15579 // WARNING: Do not edit - generated code. | |
15580 | |
15581 interface HTMLCollection extends List<Node> { | |
15582 | |
15583 final int length; | |
15584 | |
15585 Node item(int index); | |
15586 | |
15587 Node namedItem(String name); | |
15588 } | |
15589 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15590 // for details. All rights reserved. Use of this source code is governed by a | |
15591 // BSD-style license that can be found in the LICENSE file. | |
15592 | |
15593 // WARNING: Do not edit - generated code. | |
15594 | |
15595 interface HTMLContentElement extends HTMLElement { | |
15596 | |
15597 String select; | |
15598 } | |
15599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15600 // for details. All rights reserved. Use of this source code is governed by a | |
15601 // BSD-style license that can be found in the LICENSE file. | |
15602 | |
15603 // WARNING: Do not edit - generated code. | |
15604 | |
15605 interface HTMLDListElement extends HTMLElement { | |
15606 | |
15607 bool compact; | |
15608 } | |
15609 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15610 // for details. All rights reserved. Use of this source code is governed by a | |
15611 // BSD-style license that can be found in the LICENSE file. | |
15612 | |
15613 // WARNING: Do not edit - generated code. | |
15614 | |
15615 interface HTMLDataListElement extends HTMLElement { | |
15616 | |
15617 final HTMLCollection options; | |
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 HTMLDetailsElement extends HTMLElement { | |
15626 | |
15627 bool open; | |
15628 } | |
15629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15630 // for details. All rights reserved. Use of this source code is governed by a | |
15631 // BSD-style license that can be found in the LICENSE file. | |
15632 | |
15633 // WARNING: Do not edit - generated code. | |
15634 | |
15635 interface HTMLDirectoryElement extends HTMLElement { | |
15636 | |
15637 bool compact; | |
15638 } | |
15639 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15640 // for details. All rights reserved. Use of this source code is governed by a | |
15641 // BSD-style license that can be found in the LICENSE file. | |
15642 | |
15643 // WARNING: Do not edit - generated code. | |
15644 | |
15645 interface HTMLDivElement extends HTMLElement { | |
15646 | |
15647 String align; | |
15648 } | |
15649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15650 // for details. All rights reserved. Use of this source code is governed by a | |
15651 // BSD-style license that can be found in the LICENSE file. | |
15652 | |
15653 // WARNING: Do not edit - generated code. | |
15654 | |
15655 interface HTMLDocument extends Document { | |
15656 | |
15657 final Element activeElement; | |
15658 | |
15659 String alinkColor; | |
15660 | |
15661 HTMLAllCollection all; | |
15662 | |
15663 String bgColor; | |
15664 | |
15665 final String compatMode; | |
15666 | |
15667 String designMode; | |
15668 | |
15669 String dir; | |
15670 | |
15671 final HTMLCollection embeds; | |
15672 | |
15673 String fgColor; | |
15674 | |
15675 final int height; | |
15676 | |
15677 String linkColor; | |
15678 | |
15679 final HTMLCollection plugins; | |
15680 | |
15681 final HTMLCollection scripts; | |
15682 | |
15683 String vlinkColor; | |
15684 | |
15685 final int width; | |
15686 | |
15687 void captureEvents(); | |
15688 | |
15689 void clear(); | |
15690 | |
15691 void close(); | |
15692 | |
15693 bool hasFocus(); | |
15694 | |
15695 void open(); | |
15696 | |
15697 void releaseEvents(); | |
15698 | |
15699 void write(String text); | |
15700 | |
15701 void writeln(String text); | |
15702 } | |
15703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15704 // for details. All rights reserved. Use of this source code is governed by a | |
15705 // BSD-style license that can be found in the LICENSE file. | |
15706 | |
15707 // WARNING: Do not edit - generated code. | |
15708 | |
15709 interface HTMLElement extends Element { | |
15710 | |
15711 String accessKey; | |
15712 | |
15713 final HTMLCollection children; | |
15714 | |
15715 String contentEditable; | |
15716 | |
15717 String dir; | |
15718 | |
15719 bool draggable; | |
15720 | |
15721 bool hidden; | |
15722 | |
15723 String id; | |
15724 | |
15725 String innerHTML; | |
15726 | |
15727 String innerText; | |
15728 | |
15729 final bool isContentEditable; | |
15730 | |
15731 String lang; | |
15732 | |
15733 String outerHTML; | |
15734 | |
15735 String outerText; | |
15736 | |
15737 bool spellcheck; | |
15738 | |
15739 int tabIndex; | |
15740 | |
15741 String title; | |
15742 | |
15743 bool translate; | |
15744 | |
15745 String webkitdropzone; | |
15746 | |
15747 void click(); | |
15748 | |
15749 Element insertAdjacentElement(String where, Element element); | |
15750 | |
15751 void insertAdjacentHTML(String where, String html); | |
15752 | |
15753 void insertAdjacentText(String where, String text); | |
15754 } | |
15755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15756 // for details. All rights reserved. Use of this source code is governed by a | |
15757 // BSD-style license that can be found in the LICENSE file. | |
15758 | |
15759 // WARNING: Do not edit - generated code. | |
15760 | |
15761 interface HTMLEmbedElement extends HTMLElement { | |
15762 | |
15763 String align; | |
15764 | |
15765 String height; | |
15766 | |
15767 String name; | |
15768 | |
15769 String src; | |
15770 | |
15771 String type; | |
15772 | |
15773 String width; | |
15774 | |
15775 SVGDocument getSVGDocument(); | |
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 HTMLFieldSetElement extends HTMLElement { | |
15784 | |
15785 bool disabled; | |
15786 | |
15787 final HTMLCollection elements; | |
15788 | |
15789 final HTMLFormElement form; | |
15790 | |
15791 String name; | |
15792 | |
15793 final String type; | |
15794 | |
15795 final String validationMessage; | |
15796 | |
15797 final ValidityState validity; | |
15798 | |
15799 final bool willValidate; | |
15800 | |
15801 bool checkValidity(); | |
15802 | |
15803 void setCustomValidity(String error); | |
15804 } | |
15805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15806 // for details. All rights reserved. Use of this source code is governed by a | |
15807 // BSD-style license that can be found in the LICENSE file. | |
15808 | |
15809 // WARNING: Do not edit - generated code. | |
15810 | |
15811 interface HTMLFontElement extends HTMLElement { | |
15812 | |
15813 String color; | |
15814 | |
15815 String face; | |
15816 | |
15817 String size; | |
15818 } | |
15819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15820 // for details. All rights reserved. Use of this source code is governed by a | |
15821 // BSD-style license that can be found in the LICENSE file. | |
15822 | |
15823 // WARNING: Do not edit - generated code. | |
15824 | |
15825 interface HTMLFormElement extends HTMLElement { | |
15826 | |
15827 String acceptCharset; | |
15828 | |
15829 String action; | |
15830 | |
15831 String autocomplete; | |
15832 | |
15833 final HTMLCollection elements; | |
15834 | |
15835 String encoding; | |
15836 | |
15837 String enctype; | |
15838 | |
15839 final int length; | |
15840 | |
15841 String method; | |
15842 | |
15843 String name; | |
15844 | |
15845 bool noValidate; | |
15846 | |
15847 String target; | |
15848 | |
15849 bool checkValidity(); | |
15850 | |
15851 void reset(); | |
15852 | |
15853 void submit(); | |
15854 } | |
15855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15856 // for details. All rights reserved. Use of this source code is governed by a | |
15857 // BSD-style license that can be found in the LICENSE file. | |
15858 | |
15859 // WARNING: Do not edit - generated code. | |
15860 | |
15861 interface HTMLFrameElement extends HTMLElement { | |
15862 | |
15863 final Document contentDocument; | |
15864 | |
15865 final DOMWindow contentWindow; | |
15866 | |
15867 String frameBorder; | |
15868 | |
15869 final int height; | |
15870 | |
15871 String location; | |
15872 | |
15873 String longDesc; | |
15874 | |
15875 String marginHeight; | |
15876 | |
15877 String marginWidth; | |
15878 | |
15879 String name; | |
15880 | |
15881 bool noResize; | |
15882 | |
15883 String scrolling; | |
15884 | |
15885 String src; | |
15886 | |
15887 final int width; | |
15888 | |
15889 SVGDocument getSVGDocument(); | |
15890 } | |
15891 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15892 // for details. All rights reserved. Use of this source code is governed by a | |
15893 // BSD-style license that can be found in the LICENSE file. | |
15894 | |
15895 // WARNING: Do not edit - generated code. | |
15896 | |
15897 interface HTMLFrameSetElement extends HTMLElement { | |
15898 | |
15899 String cols; | |
15900 | |
15901 String rows; | |
15902 } | |
15903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15904 // for details. All rights reserved. Use of this source code is governed by a | |
15905 // BSD-style license that can be found in the LICENSE file. | |
15906 | |
15907 // WARNING: Do not edit - generated code. | |
15908 | |
15909 interface HTMLHRElement extends HTMLElement { | |
15910 | |
15911 String align; | |
15912 | |
15913 bool noShade; | |
15914 | |
15915 String size; | |
15916 | |
15917 String width; | |
15918 } | |
15919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15920 // for details. All rights reserved. Use of this source code is governed by a | |
15921 // BSD-style license that can be found in the LICENSE file. | |
15922 | |
15923 // WARNING: Do not edit - generated code. | |
15924 | |
15925 interface HTMLHeadElement extends HTMLElement { | |
15926 | |
15927 String profile; | |
15928 } | |
15929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15930 // for details. All rights reserved. Use of this source code is governed by a | |
15931 // BSD-style license that can be found in the LICENSE file. | |
15932 | |
15933 // WARNING: Do not edit - generated code. | |
15934 | |
15935 interface HTMLHeadingElement extends HTMLElement { | |
15936 | |
15937 String align; | |
15938 } | |
15939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15940 // for details. All rights reserved. Use of this source code is governed by a | |
15941 // BSD-style license that can be found in the LICENSE file. | |
15942 | |
15943 // WARNING: Do not edit - generated code. | |
15944 | |
15945 interface HTMLHtmlElement extends HTMLElement { | |
15946 | |
15947 String manifest; | |
15948 | |
15949 String version; | |
15950 } | |
15951 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15952 // for details. All rights reserved. Use of this source code is governed by a | |
15953 // BSD-style license that can be found in the LICENSE file. | |
15954 | |
15955 // WARNING: Do not edit - generated code. | |
15956 | |
15957 interface HTMLIFrameElement extends HTMLElement { | |
15958 | |
15959 String align; | |
15960 | |
15961 final Document contentDocument; | |
15962 | |
15963 final DOMWindow contentWindow; | |
15964 | |
15965 String frameBorder; | |
15966 | |
15967 String height; | |
15968 | |
15969 String longDesc; | |
15970 | |
15971 String marginHeight; | |
15972 | |
15973 String marginWidth; | |
15974 | |
15975 String name; | |
15976 | |
15977 String sandbox; | |
15978 | |
15979 String scrolling; | |
15980 | |
15981 String src; | |
15982 | |
15983 String srcdoc; | |
15984 | |
15985 String width; | |
15986 | |
15987 SVGDocument getSVGDocument(); | |
15988 } | |
15989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
15990 // for details. All rights reserved. Use of this source code is governed by a | |
15991 // BSD-style license that can be found in the LICENSE file. | |
15992 | |
15993 // WARNING: Do not edit - generated code. | |
15994 | |
15995 interface HTMLImageElement extends HTMLElement { | |
15996 | |
15997 String align; | |
15998 | |
15999 String alt; | |
16000 | |
16001 String border; | |
16002 | |
16003 final bool complete; | |
16004 | |
16005 String crossOrigin; | |
16006 | |
16007 int height; | |
16008 | |
16009 int hspace; | |
16010 | |
16011 bool isMap; | |
16012 | |
16013 String longDesc; | |
16014 | |
16015 String lowsrc; | |
16016 | |
16017 String name; | |
16018 | |
16019 final int naturalHeight; | |
16020 | |
16021 final int naturalWidth; | |
16022 | |
16023 String src; | |
16024 | |
16025 String useMap; | |
16026 | |
16027 int vspace; | |
16028 | |
16029 int width; | |
16030 | |
16031 final int x; | |
16032 | |
16033 final int y; | |
16034 } | |
16035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16036 // for details. All rights reserved. Use of this source code is governed by a | |
16037 // BSD-style license that can be found in the LICENSE file. | |
16038 | |
16039 // WARNING: Do not edit - generated code. | |
16040 | |
16041 interface HTMLInputElement extends HTMLElement { | |
16042 | |
16043 String accept; | |
16044 | |
16045 String align; | |
16046 | |
16047 String alt; | |
16048 | |
16049 String autocomplete; | |
16050 | |
16051 bool autofocus; | |
16052 | |
16053 bool checked; | |
16054 | |
16055 bool defaultChecked; | |
16056 | |
16057 String defaultValue; | |
16058 | |
16059 String dirName; | |
16060 | |
16061 bool disabled; | |
16062 | |
16063 FileList files; | |
16064 | |
16065 final HTMLFormElement form; | |
16066 | |
16067 String formAction; | |
16068 | |
16069 String formEnctype; | |
16070 | |
16071 String formMethod; | |
16072 | |
16073 bool formNoValidate; | |
16074 | |
16075 String formTarget; | |
16076 | |
16077 int height; | |
16078 | |
16079 bool incremental; | |
16080 | |
16081 bool indeterminate; | |
16082 | |
16083 final NodeList labels; | |
16084 | |
16085 final HTMLElement list; | |
16086 | |
16087 String max; | |
16088 | |
16089 int maxLength; | |
16090 | |
16091 String min; | |
16092 | |
16093 bool multiple; | |
16094 | |
16095 String name; | |
16096 | |
16097 String pattern; | |
16098 | |
16099 String placeholder; | |
16100 | |
16101 bool readOnly; | |
16102 | |
16103 bool required; | |
16104 | |
16105 String selectionDirection; | |
16106 | |
16107 int selectionEnd; | |
16108 | |
16109 int selectionStart; | |
16110 | |
16111 int size; | |
16112 | |
16113 String src; | |
16114 | |
16115 String step; | |
16116 | |
16117 String type; | |
16118 | |
16119 String useMap; | |
16120 | |
16121 final String validationMessage; | |
16122 | |
16123 final ValidityState validity; | |
16124 | |
16125 String value; | |
16126 | |
16127 Date valueAsDate; | |
16128 | |
16129 num valueAsNumber; | |
16130 | |
16131 final EntryArray webkitEntries; | |
16132 | |
16133 bool webkitGrammar; | |
16134 | |
16135 bool webkitSpeech; | |
16136 | |
16137 bool webkitdirectory; | |
16138 | |
16139 int width; | |
16140 | |
16141 final bool willValidate; | |
16142 | |
16143 bool checkValidity(); | |
16144 | |
16145 void select(); | |
16146 | |
16147 void setCustomValidity(String error); | |
16148 | |
16149 void setSelectionRange(int start, int end, [String direction]); | |
16150 | |
16151 void stepDown([int n]); | |
16152 | |
16153 void stepUp([int n]); | |
16154 } | |
16155 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16156 // for details. All rights reserved. Use of this source code is governed by a | |
16157 // BSD-style license that can be found in the LICENSE file. | |
16158 | |
16159 // WARNING: Do not edit - generated code. | |
16160 | |
16161 interface HTMLKeygenElement extends HTMLElement { | |
16162 | |
16163 bool autofocus; | |
16164 | |
16165 String challenge; | |
16166 | |
16167 bool disabled; | |
16168 | |
16169 final HTMLFormElement form; | |
16170 | |
16171 String keytype; | |
16172 | |
16173 final NodeList labels; | |
16174 | |
16175 String name; | |
16176 | |
16177 final String type; | |
16178 | |
16179 final String validationMessage; | |
16180 | |
16181 final ValidityState validity; | |
16182 | |
16183 final bool willValidate; | |
16184 | |
16185 bool checkValidity(); | |
16186 | |
16187 void setCustomValidity(String error); | |
16188 } | |
16189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16190 // for details. All rights reserved. Use of this source code is governed by a | |
16191 // BSD-style license that can be found in the LICENSE file. | |
16192 | |
16193 // WARNING: Do not edit - generated code. | |
16194 | |
16195 interface HTMLLIElement extends HTMLElement { | |
16196 | |
16197 String type; | |
16198 | |
16199 int value; | |
16200 } | |
16201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16202 // for details. All rights reserved. Use of this source code is governed by a | |
16203 // BSD-style license that can be found in the LICENSE file. | |
16204 | |
16205 // WARNING: Do not edit - generated code. | |
16206 | |
16207 interface HTMLLabelElement extends HTMLElement { | |
16208 | |
16209 final HTMLElement control; | |
16210 | |
16211 final HTMLFormElement form; | |
16212 | |
16213 String htmlFor; | |
16214 } | |
16215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16216 // for details. All rights reserved. Use of this source code is governed by a | |
16217 // BSD-style license that can be found in the LICENSE file. | |
16218 | |
16219 // WARNING: Do not edit - generated code. | |
16220 | |
16221 interface HTMLLegendElement extends HTMLElement { | |
16222 | |
16223 String align; | |
16224 | |
16225 final HTMLFormElement form; | |
16226 } | |
16227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16228 // for details. All rights reserved. Use of this source code is governed by a | |
16229 // BSD-style license that can be found in the LICENSE file. | |
16230 | |
16231 // WARNING: Do not edit - generated code. | |
16232 | |
16233 interface HTMLLinkElement extends HTMLElement { | |
16234 | |
16235 String charset; | |
16236 | |
16237 bool disabled; | |
16238 | |
16239 String href; | |
16240 | |
16241 String hreflang; | |
16242 | |
16243 String media; | |
16244 | |
16245 String rel; | |
16246 | |
16247 String rev; | |
16248 | |
16249 final StyleSheet sheet; | |
16250 | |
16251 DOMSettableTokenList sizes; | |
16252 | |
16253 String target; | |
16254 | |
16255 String type; | |
16256 } | |
16257 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16258 // for details. All rights reserved. Use of this source code is governed by a | |
16259 // BSD-style license that can be found in the LICENSE file. | |
16260 | |
16261 // WARNING: Do not edit - generated code. | |
16262 | |
16263 interface HTMLMapElement extends HTMLElement { | |
16264 | |
16265 final HTMLCollection areas; | |
16266 | |
16267 String name; | |
16268 } | |
16269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16270 // for details. All rights reserved. Use of this source code is governed by a | |
16271 // BSD-style license that can be found in the LICENSE file. | |
16272 | |
16273 // WARNING: Do not edit - generated code. | |
16274 | |
16275 interface HTMLMarqueeElement extends HTMLElement { | |
16276 | |
16277 String behavior; | |
16278 | |
16279 String bgColor; | |
16280 | |
16281 String direction; | |
16282 | |
16283 String height; | |
16284 | |
16285 int hspace; | |
16286 | |
16287 int loop; | |
16288 | |
16289 int scrollAmount; | |
16290 | |
16291 int scrollDelay; | |
16292 | |
16293 bool trueSpeed; | |
16294 | |
16295 int vspace; | |
16296 | |
16297 String width; | |
16298 | |
16299 void start(); | |
16300 | |
16301 void stop(); | |
16302 } | |
16303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16304 // for details. All rights reserved. Use of this source code is governed by a | |
16305 // BSD-style license that can be found in the LICENSE file. | |
16306 | |
16307 // WARNING: Do not edit - generated code. | |
16308 | |
16309 interface HTMLMediaElement extends HTMLElement { | |
16310 | |
16311 static const int HAVE_CURRENT_DATA = 2; | |
16312 | |
16313 static const int HAVE_ENOUGH_DATA = 4; | |
16314 | |
16315 static const int HAVE_FUTURE_DATA = 3; | |
16316 | |
16317 static const int HAVE_METADATA = 1; | |
16318 | |
16319 static const int HAVE_NOTHING = 0; | |
16320 | |
16321 static const int NETWORK_EMPTY = 0; | |
16322 | |
16323 static const int NETWORK_IDLE = 1; | |
16324 | |
16325 static const int NETWORK_LOADING = 2; | |
16326 | |
16327 static const int NETWORK_NO_SOURCE = 3; | |
16328 | |
16329 bool autoplay; | |
16330 | |
16331 final TimeRanges buffered; | |
16332 | |
16333 MediaController controller; | |
16334 | |
16335 bool controls; | |
16336 | |
16337 final String currentSrc; | |
16338 | |
16339 num currentTime; | |
16340 | |
16341 bool defaultMuted; | |
16342 | |
16343 num defaultPlaybackRate; | |
16344 | |
16345 final num duration; | |
16346 | |
16347 final bool ended; | |
16348 | |
16349 final MediaError error; | |
16350 | |
16351 final num initialTime; | |
16352 | |
16353 bool loop; | |
16354 | |
16355 String mediaGroup; | |
16356 | |
16357 bool muted; | |
16358 | |
16359 final int networkState; | |
16360 | |
16361 final bool paused; | |
16362 | |
16363 num playbackRate; | |
16364 | |
16365 final TimeRanges played; | |
16366 | |
16367 String preload; | |
16368 | |
16369 final int readyState; | |
16370 | |
16371 final TimeRanges seekable; | |
16372 | |
16373 final bool seeking; | |
16374 | |
16375 String src; | |
16376 | |
16377 final num startTime; | |
16378 | |
16379 final TextTrackList textTracks; | |
16380 | |
16381 num volume; | |
16382 | |
16383 final int webkitAudioDecodedByteCount; | |
16384 | |
16385 bool webkitClosedCaptionsVisible; | |
16386 | |
16387 final bool webkitHasClosedCaptions; | |
16388 | |
16389 bool webkitPreservesPitch; | |
16390 | |
16391 final int webkitVideoDecodedByteCount; | |
16392 | |
16393 TextTrack addTextTrack(String kind, [String label, String language]); | |
16394 | |
16395 String canPlayType(String type, String keySystem); | |
16396 | |
16397 void load(); | |
16398 | |
16399 void pause(); | |
16400 | |
16401 void play(); | |
16402 | |
16403 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri
ng sessionId]); | |
16404 | |
16405 void webkitCancelKeyRequest(String keySystem, String sessionId); | |
16406 | |
16407 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]); | |
16408 } | |
16409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16410 // for details. All rights reserved. Use of this source code is governed by a | |
16411 // BSD-style license that can be found in the LICENSE file. | |
16412 | |
16413 // WARNING: Do not edit - generated code. | |
16414 | |
16415 interface HTMLMenuElement extends HTMLElement { | |
16416 | |
16417 bool compact; | |
16418 } | |
16419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16420 // for details. All rights reserved. Use of this source code is governed by a | |
16421 // BSD-style license that can be found in the LICENSE file. | |
16422 | |
16423 // WARNING: Do not edit - generated code. | |
16424 | |
16425 interface HTMLMetaElement extends HTMLElement { | |
16426 | |
16427 String content; | |
16428 | |
16429 String httpEquiv; | |
16430 | |
16431 String name; | |
16432 | |
16433 String scheme; | |
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 HTMLMeterElement extends HTMLElement { | |
16442 | |
16443 num high; | |
16444 | |
16445 final NodeList labels; | |
16446 | |
16447 num low; | |
16448 | |
16449 num max; | |
16450 | |
16451 num min; | |
16452 | |
16453 num optimum; | |
16454 | |
16455 num value; | |
16456 } | |
16457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16458 // for details. All rights reserved. Use of this source code is governed by a | |
16459 // BSD-style license that can be found in the LICENSE file. | |
16460 | |
16461 // WARNING: Do not edit - generated code. | |
16462 | |
16463 interface HTMLModElement extends HTMLElement { | |
16464 | |
16465 String cite; | |
16466 | |
16467 String dateTime; | |
16468 } | |
16469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16470 // for details. All rights reserved. Use of this source code is governed by a | |
16471 // BSD-style license that can be found in the LICENSE file. | |
16472 | |
16473 // WARNING: Do not edit - generated code. | |
16474 | |
16475 interface HTMLOListElement extends HTMLElement { | |
16476 | |
16477 bool compact; | |
16478 | |
16479 bool reversed; | |
16480 | |
16481 int start; | |
16482 | |
16483 String type; | |
16484 } | |
16485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16486 // for details. All rights reserved. Use of this source code is governed by a | |
16487 // BSD-style license that can be found in the LICENSE file. | |
16488 | |
16489 // WARNING: Do not edit - generated code. | |
16490 | |
16491 interface HTMLObjectElement extends HTMLElement { | |
16492 | |
16493 String align; | |
16494 | |
16495 String archive; | |
16496 | |
16497 String border; | |
16498 | |
16499 String code; | |
16500 | |
16501 String codeBase; | |
16502 | |
16503 String codeType; | |
16504 | |
16505 final Document contentDocument; | |
16506 | |
16507 String data; | |
16508 | |
16509 bool declare; | |
16510 | |
16511 final HTMLFormElement form; | |
16512 | |
16513 String height; | |
16514 | |
16515 int hspace; | |
16516 | |
16517 String name; | |
16518 | |
16519 String standby; | |
16520 | |
16521 String type; | |
16522 | |
16523 String useMap; | |
16524 | |
16525 final String validationMessage; | |
16526 | |
16527 final ValidityState validity; | |
16528 | |
16529 int vspace; | |
16530 | |
16531 String width; | |
16532 | |
16533 final bool willValidate; | |
16534 | |
16535 bool checkValidity(); | |
16536 | |
16537 SVGDocument getSVGDocument(); | |
16538 | |
16539 void setCustomValidity(String error); | |
16540 } | |
16541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16542 // for details. All rights reserved. Use of this source code is governed by a | |
16543 // BSD-style license that can be found in the LICENSE file. | |
16544 | |
16545 // WARNING: Do not edit - generated code. | |
16546 | |
16547 interface HTMLOptGroupElement extends HTMLElement { | |
16548 | |
16549 bool disabled; | |
16550 | |
16551 String label; | |
16552 } | |
16553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16554 // for details. All rights reserved. Use of this source code is governed by a | |
16555 // BSD-style license that can be found in the LICENSE file. | |
16556 | |
16557 // WARNING: Do not edit - generated code. | |
16558 | |
16559 interface HTMLOptionElement extends HTMLElement default _HTMLOptionElementFactor
yProvider { | |
16560 | |
16561 HTMLOptionElement([String data, String value, bool defaultSelected, bool selec
ted]); | |
16562 | |
16563 bool defaultSelected; | |
16564 | |
16565 bool disabled; | |
16566 | |
16567 final HTMLFormElement form; | |
16568 | |
16569 final int index; | |
16570 | |
16571 String label; | |
16572 | |
16573 bool selected; | |
16574 | |
16575 String text; | |
16576 | |
16577 String value; | |
16578 } | |
16579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16580 // for details. All rights reserved. Use of this source code is governed by a | |
16581 // BSD-style license that can be found in the LICENSE file. | |
16582 | |
16583 // WARNING: Do not edit - generated code. | |
16584 | |
16585 interface HTMLOptionsCollection extends HTMLCollection { | |
16586 | |
16587 int length; | |
16588 | |
16589 int selectedIndex; | |
16590 | |
16591 void remove(int index); | |
16592 } | |
16593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16594 // for details. All rights reserved. Use of this source code is governed by a | |
16595 // BSD-style license that can be found in the LICENSE file. | |
16596 | |
16597 // WARNING: Do not edit - generated code. | |
16598 | |
16599 interface HTMLOutputElement extends HTMLElement { | |
16600 | |
16601 String defaultValue; | |
16602 | |
16603 final HTMLFormElement form; | |
16604 | |
16605 DOMSettableTokenList htmlFor; | |
16606 | |
16607 final NodeList labels; | |
16608 | |
16609 String name; | |
16610 | |
16611 final String type; | |
16612 | |
16613 final String validationMessage; | |
16614 | |
16615 final ValidityState validity; | |
16616 | |
16617 String value; | |
16618 | |
16619 final bool willValidate; | |
16620 | |
16621 bool checkValidity(); | |
16622 | |
16623 void setCustomValidity(String error); | |
16624 } | |
16625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16626 // for details. All rights reserved. Use of this source code is governed by a | |
16627 // BSD-style license that can be found in the LICENSE file. | |
16628 | |
16629 // WARNING: Do not edit - generated code. | |
16630 | |
16631 interface HTMLParagraphElement extends HTMLElement { | |
16632 | |
16633 String align; | |
16634 } | |
16635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16636 // for details. All rights reserved. Use of this source code is governed by a | |
16637 // BSD-style license that can be found in the LICENSE file. | |
16638 | |
16639 // WARNING: Do not edit - generated code. | |
16640 | |
16641 interface HTMLParamElement extends HTMLElement { | |
16642 | |
16643 String name; | |
16644 | |
16645 String type; | |
16646 | |
16647 String value; | |
16648 | |
16649 String valueType; | |
16650 } | |
16651 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16652 // for details. All rights reserved. Use of this source code is governed by a | |
16653 // BSD-style license that can be found in the LICENSE file. | |
16654 | |
16655 // WARNING: Do not edit - generated code. | |
16656 | |
16657 interface HTMLPreElement extends HTMLElement { | |
16658 | |
16659 int width; | |
16660 | |
16661 bool wrap; | |
16662 } | |
16663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16664 // for details. All rights reserved. Use of this source code is governed by a | |
16665 // BSD-style license that can be found in the LICENSE file. | |
16666 | |
16667 // WARNING: Do not edit - generated code. | |
16668 | |
16669 interface HTMLProgressElement extends HTMLElement { | |
16670 | |
16671 final NodeList labels; | |
16672 | |
16673 num max; | |
16674 | |
16675 final num position; | |
16676 | |
16677 num value; | |
16678 } | |
16679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16680 // for details. All rights reserved. Use of this source code is governed by a | |
16681 // BSD-style license that can be found in the LICENSE file. | |
16682 | |
16683 // WARNING: Do not edit - generated code. | |
16684 | |
16685 interface HTMLQuoteElement extends HTMLElement { | |
16686 | |
16687 String cite; | |
16688 } | |
16689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16690 // for details. All rights reserved. Use of this source code is governed by a | |
16691 // BSD-style license that can be found in the LICENSE file. | |
16692 | |
16693 // WARNING: Do not edit - generated code. | |
16694 | |
16695 interface HTMLScriptElement extends HTMLElement { | |
16696 | |
16697 bool async; | |
16698 | |
16699 String charset; | |
16700 | |
16701 String crossOrigin; | |
16702 | |
16703 bool defer; | |
16704 | |
16705 String event; | |
16706 | |
16707 String htmlFor; | |
16708 | |
16709 String src; | |
16710 | |
16711 String text; | |
16712 | |
16713 String type; | |
16714 } | |
16715 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16716 // for details. All rights reserved. Use of this source code is governed by a | |
16717 // BSD-style license that can be found in the LICENSE file. | |
16718 | |
16719 // WARNING: Do not edit - generated code. | |
16720 | |
16721 interface HTMLSelectElement extends HTMLElement { | |
16722 | |
16723 bool autofocus; | |
16724 | |
16725 bool disabled; | |
16726 | |
16727 final HTMLFormElement form; | |
16728 | |
16729 final NodeList labels; | |
16730 | |
16731 int length; | |
16732 | |
16733 bool multiple; | |
16734 | |
16735 String name; | |
16736 | |
16737 final HTMLOptionsCollection options; | |
16738 | |
16739 bool required; | |
16740 | |
16741 int selectedIndex; | |
16742 | |
16743 final HTMLCollection selectedOptions; | |
16744 | |
16745 int size; | |
16746 | |
16747 final String type; | |
16748 | |
16749 final String validationMessage; | |
16750 | |
16751 final ValidityState validity; | |
16752 | |
16753 String value; | |
16754 | |
16755 final bool willValidate; | |
16756 | |
16757 void add(HTMLElement element, HTMLElement before); | |
16758 | |
16759 bool checkValidity(); | |
16760 | |
16761 Node item(int index); | |
16762 | |
16763 Node namedItem(String name); | |
16764 | |
16765 void remove(index_OR_option); | |
16766 | |
16767 void setCustomValidity(String error); | |
16768 } | |
16769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16770 // for details. All rights reserved. Use of this source code is governed by a | |
16771 // BSD-style license that can be found in the LICENSE file. | |
16772 | |
16773 // WARNING: Do not edit - generated code. | |
16774 | |
16775 interface HTMLShadowElement extends HTMLElement { | |
16776 } | |
16777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16778 // for details. All rights reserved. Use of this source code is governed by a | |
16779 // BSD-style license that can be found in the LICENSE file. | |
16780 | |
16781 // WARNING: Do not edit - generated code. | |
16782 | |
16783 interface HTMLSourceElement extends HTMLElement { | |
16784 | |
16785 String media; | |
16786 | |
16787 String src; | |
16788 | |
16789 String type; | |
16790 } | |
16791 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16792 // for details. All rights reserved. Use of this source code is governed by a | |
16793 // BSD-style license that can be found in the LICENSE file. | |
16794 | |
16795 // WARNING: Do not edit - generated code. | |
16796 | |
16797 interface HTMLSpanElement extends HTMLElement { | |
16798 } | |
16799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16800 // for details. All rights reserved. Use of this source code is governed by a | |
16801 // BSD-style license that can be found in the LICENSE file. | |
16802 | |
16803 // WARNING: Do not edit - generated code. | |
16804 | |
16805 interface HTMLStyleElement extends HTMLElement { | |
16806 | |
16807 bool disabled; | |
16808 | |
16809 String media; | |
16810 | |
16811 bool scoped; | |
16812 | |
16813 final StyleSheet sheet; | |
16814 | |
16815 String type; | |
16816 } | |
16817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16818 // for details. All rights reserved. Use of this source code is governed by a | |
16819 // BSD-style license that can be found in the LICENSE file. | |
16820 | |
16821 // WARNING: Do not edit - generated code. | |
16822 | |
16823 interface HTMLTableCaptionElement extends HTMLElement { | |
16824 | |
16825 String align; | |
16826 } | |
16827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16828 // for details. All rights reserved. Use of this source code is governed by a | |
16829 // BSD-style license that can be found in the LICENSE file. | |
16830 | |
16831 // WARNING: Do not edit - generated code. | |
16832 | |
16833 interface HTMLTableCellElement extends HTMLElement { | |
16834 | |
16835 String abbr; | |
16836 | |
16837 String align; | |
16838 | |
16839 String axis; | |
16840 | |
16841 String bgColor; | |
16842 | |
16843 final int cellIndex; | |
16844 | |
16845 String ch; | |
16846 | |
16847 String chOff; | |
16848 | |
16849 int colSpan; | |
16850 | |
16851 String headers; | |
16852 | |
16853 String height; | |
16854 | |
16855 bool noWrap; | |
16856 | |
16857 int rowSpan; | |
16858 | |
16859 String scope; | |
16860 | |
16861 String vAlign; | |
16862 | |
16863 String width; | |
16864 } | |
16865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16866 // for details. All rights reserved. Use of this source code is governed by a | |
16867 // BSD-style license that can be found in the LICENSE file. | |
16868 | |
16869 // WARNING: Do not edit - generated code. | |
16870 | |
16871 interface HTMLTableColElement extends HTMLElement { | |
16872 | |
16873 String align; | |
16874 | |
16875 String ch; | |
16876 | |
16877 String chOff; | |
16878 | |
16879 int span; | |
16880 | |
16881 String vAlign; | |
16882 | |
16883 String width; | |
16884 } | |
16885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16886 // for details. All rights reserved. Use of this source code is governed by a | |
16887 // BSD-style license that can be found in the LICENSE file. | |
16888 | |
16889 // WARNING: Do not edit - generated code. | |
16890 | |
16891 interface HTMLTableElement extends HTMLElement { | |
16892 | |
16893 String align; | |
16894 | |
16895 String bgColor; | |
16896 | |
16897 String border; | |
16898 | |
16899 HTMLTableCaptionElement caption; | |
16900 | |
16901 String cellPadding; | |
16902 | |
16903 String cellSpacing; | |
16904 | |
16905 String frame; | |
16906 | |
16907 final HTMLCollection rows; | |
16908 | |
16909 String rules; | |
16910 | |
16911 String summary; | |
16912 | |
16913 final HTMLCollection tBodies; | |
16914 | |
16915 HTMLTableSectionElement tFoot; | |
16916 | |
16917 HTMLTableSectionElement tHead; | |
16918 | |
16919 String width; | |
16920 | |
16921 HTMLElement createCaption(); | |
16922 | |
16923 HTMLElement createTBody(); | |
16924 | |
16925 HTMLElement createTFoot(); | |
16926 | |
16927 HTMLElement createTHead(); | |
16928 | |
16929 void deleteCaption(); | |
16930 | |
16931 void deleteRow(int index); | |
16932 | |
16933 void deleteTFoot(); | |
16934 | |
16935 void deleteTHead(); | |
16936 | |
16937 HTMLElement insertRow(int index); | |
16938 } | |
16939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16940 // for details. All rights reserved. Use of this source code is governed by a | |
16941 // BSD-style license that can be found in the LICENSE file. | |
16942 | |
16943 // WARNING: Do not edit - generated code. | |
16944 | |
16945 interface HTMLTableRowElement extends HTMLElement { | |
16946 | |
16947 String align; | |
16948 | |
16949 String bgColor; | |
16950 | |
16951 final HTMLCollection cells; | |
16952 | |
16953 String ch; | |
16954 | |
16955 String chOff; | |
16956 | |
16957 final int rowIndex; | |
16958 | |
16959 final int sectionRowIndex; | |
16960 | |
16961 String vAlign; | |
16962 | |
16963 void deleteCell(int index); | |
16964 | |
16965 HTMLElement insertCell(int index); | |
16966 } | |
16967 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16968 // for details. All rights reserved. Use of this source code is governed by a | |
16969 // BSD-style license that can be found in the LICENSE file. | |
16970 | |
16971 // WARNING: Do not edit - generated code. | |
16972 | |
16973 interface HTMLTableSectionElement extends HTMLElement { | |
16974 | |
16975 String align; | |
16976 | |
16977 String ch; | |
16978 | |
16979 String chOff; | |
16980 | |
16981 final HTMLCollection rows; | |
16982 | |
16983 String vAlign; | |
16984 | |
16985 void deleteRow(int index); | |
16986 | |
16987 HTMLElement insertRow(int index); | |
16988 } | |
16989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
16990 // for details. All rights reserved. Use of this source code is governed by a | |
16991 // BSD-style license that can be found in the LICENSE file. | |
16992 | |
16993 // WARNING: Do not edit - generated code. | |
16994 | |
16995 interface HTMLTextAreaElement extends HTMLElement { | |
16996 | |
16997 bool autofocus; | |
16998 | |
16999 int cols; | |
17000 | |
17001 String defaultValue; | |
17002 | |
17003 String dirName; | |
17004 | |
17005 bool disabled; | |
17006 | |
17007 final HTMLFormElement form; | |
17008 | |
17009 final NodeList labels; | |
17010 | |
17011 int maxLength; | |
17012 | |
17013 String name; | |
17014 | |
17015 String placeholder; | |
17016 | |
17017 bool readOnly; | |
17018 | |
17019 bool required; | |
17020 | |
17021 int rows; | |
17022 | |
17023 String selectionDirection; | |
17024 | |
17025 int selectionEnd; | |
17026 | |
17027 int selectionStart; | |
17028 | |
17029 final int textLength; | |
17030 | |
17031 final String type; | |
17032 | |
17033 final String validationMessage; | |
17034 | |
17035 final ValidityState validity; | |
17036 | |
17037 String value; | |
17038 | |
17039 final bool willValidate; | |
17040 | |
17041 String wrap; | |
17042 | |
17043 bool checkValidity(); | |
17044 | |
17045 void select(); | |
17046 | |
17047 void setCustomValidity(String error); | |
17048 | |
17049 void setSelectionRange(int start, int end, [String direction]); | |
17050 } | |
17051 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17052 // for details. All rights reserved. Use of this source code is governed by a | |
17053 // BSD-style license that can be found in the LICENSE file. | |
17054 | |
17055 // WARNING: Do not edit - generated code. | |
17056 | |
17057 interface HTMLTitleElement extends HTMLElement { | |
17058 | |
17059 String text; | |
17060 } | |
17061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17062 // for details. All rights reserved. Use of this source code is governed by a | |
17063 // BSD-style license that can be found in the LICENSE file. | |
17064 | |
17065 // WARNING: Do not edit - generated code. | |
17066 | |
17067 interface HTMLTrackElement extends HTMLElement { | |
17068 | |
17069 static const int ERROR = 3; | |
17070 | |
17071 static const int LOADED = 2; | |
17072 | |
17073 static const int LOADING = 1; | |
17074 | |
17075 static const int NONE = 0; | |
17076 | |
17077 bool defaultValue; | |
17078 | |
17079 String kind; | |
17080 | |
17081 String label; | |
17082 | |
17083 final int readyState; | |
17084 | |
17085 String src; | |
17086 | |
17087 String srclang; | |
17088 | |
17089 final TextTrack track; | |
17090 } | |
17091 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17092 // for details. All rights reserved. Use of this source code is governed by a | |
17093 // BSD-style license that can be found in the LICENSE file. | |
17094 | |
17095 // WARNING: Do not edit - generated code. | |
17096 | |
17097 interface HTMLUListElement extends HTMLElement { | |
17098 | |
17099 bool compact; | |
17100 | |
17101 String type; | |
17102 } | |
17103 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17104 // for details. All rights reserved. Use of this source code is governed by a | |
17105 // BSD-style license that can be found in the LICENSE file. | |
17106 | |
17107 // WARNING: Do not edit - generated code. | |
17108 | |
17109 interface HTMLUnknownElement extends HTMLElement { | |
17110 } | |
17111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17112 // for details. All rights reserved. Use of this source code is governed by a | |
17113 // BSD-style license that can be found in the LICENSE file. | |
17114 | |
17115 // WARNING: Do not edit - generated code. | |
17116 | |
17117 interface HTMLVideoElement extends HTMLMediaElement { | |
17118 | |
17119 int height; | |
17120 | |
17121 String poster; | |
17122 | |
17123 final int videoHeight; | |
17124 | |
17125 final int videoWidth; | |
17126 | |
17127 final int webkitDecodedFrameCount; | |
17128 | |
17129 final bool webkitDisplayingFullscreen; | |
17130 | |
17131 final int webkitDroppedFrameCount; | |
17132 | |
17133 final bool webkitSupportsFullscreen; | |
17134 | |
17135 int width; | |
17136 | |
17137 void webkitEnterFullScreen(); | |
17138 | |
17139 void webkitEnterFullscreen(); | |
17140 | |
17141 void webkitExitFullScreen(); | |
17142 | |
17143 void webkitExitFullscreen(); | |
17144 } | |
17145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17146 // for details. All rights reserved. Use of this source code is governed by a | |
17147 // BSD-style license that can be found in the LICENSE file. | |
17148 | |
17149 // WARNING: Do not edit - generated code. | |
17150 | |
17151 interface HashChangeEvent extends Event { | |
17152 | |
17153 final String newURL; | |
17154 | |
17155 final String oldURL; | |
17156 | |
17157 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL); | |
17158 } | |
17159 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17160 // for details. All rights reserved. Use of this source code is governed by a | |
17161 // BSD-style license that can be found in the LICENSE file. | |
17162 | |
17163 // WARNING: Do not edit - generated code. | |
17164 | |
17165 interface History { | |
17166 | |
17167 final int length; | |
17168 | |
17169 final /*SerializedScriptValue*/ state; | |
17170 | |
17171 void back(); | |
17172 | |
17173 void forward(); | |
17174 | |
17175 void go(int distance); | |
17176 | |
17177 void pushState(Object data, String title, [String url]); | |
17178 | |
17179 void replaceState(Object data, String title, [String url]); | |
17180 } | |
17181 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17182 // for details. All rights reserved. Use of this source code is governed by a | |
17183 // BSD-style license that can be found in the LICENSE file. | |
17184 | |
17185 // WARNING: Do not edit - generated code. | |
17186 | |
17187 interface IDBAny { | |
17188 } | |
17189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17190 // for details. All rights reserved. Use of this source code is governed by a | |
17191 // BSD-style license that can be found in the LICENSE file. | |
17192 | |
17193 // WARNING: Do not edit - generated code. | |
17194 | |
17195 interface IDBCursor { | |
17196 | |
17197 static const int NEXT = 0; | |
17198 | |
17199 static const int NEXT_NO_DUPLICATE = 1; | |
17200 | |
17201 static const int PREV = 2; | |
17202 | |
17203 static const int PREV_NO_DUPLICATE = 3; | |
17204 | |
17205 final String direction; | |
17206 | |
17207 final /*IDBKey*/ key; | |
17208 | |
17209 final /*IDBKey*/ primaryKey; | |
17210 | |
17211 final /*IDBAny*/ source; | |
17212 | |
17213 void advance(int count); | |
17214 | |
17215 void continueFunction([/*IDBKey*/ key]); | |
17216 | |
17217 IDBRequest delete(); | |
17218 | |
17219 IDBRequest update(/*SerializedScriptValue*/ value); | |
17220 } | |
17221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17222 // for details. All rights reserved. Use of this source code is governed by a | |
17223 // BSD-style license that can be found in the LICENSE file. | |
17224 | |
17225 // WARNING: Do not edit - generated code. | |
17226 | |
17227 interface IDBCursorWithValue extends IDBCursor { | |
17228 | |
17229 final /*IDBAny*/ value; | |
17230 } | |
17231 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17232 // for details. All rights reserved. Use of this source code is governed by a | |
17233 // BSD-style license that can be found in the LICENSE file. | |
17234 | |
17235 // WARNING: Do not edit - generated code. | |
17236 | |
17237 interface IDBDatabase extends EventTarget { | |
17238 | |
17239 final String name; | |
17240 | |
17241 final List<String> objectStoreNames; | |
17242 | |
17243 final /*IDBAny*/ version; | |
17244 | |
17245 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
17246 | |
17247 void close(); | |
17248 | |
17249 IDBObjectStore createObjectStore(String name, [Map options]); | |
17250 | |
17251 void deleteObjectStore(String name); | |
17252 | |
17253 bool dispatchEvent(Event evt); | |
17254 | |
17255 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
17256 | |
17257 IDBVersionChangeRequest setVersion(String version); | |
17258 | |
17259 IDBTransaction transaction(storeName_OR_storeNames, String mode); | |
17260 } | |
17261 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17262 // for details. All rights reserved. Use of this source code is governed by a | |
17263 // BSD-style license that can be found in the LICENSE file. | |
17264 | |
17265 // WARNING: Do not edit - generated code. | |
17266 | |
17267 interface IDBDatabaseException { | |
17268 | |
17269 static const int ABORT_ERR = 20; | |
17270 | |
17271 static const int CONSTRAINT_ERR = 4; | |
17272 | |
17273 static const int DATA_ERR = 5; | |
17274 | |
17275 static const int NON_TRANSIENT_ERR = 2; | |
17276 | |
17277 static const int NOT_ALLOWED_ERR = 6; | |
17278 | |
17279 static const int NOT_FOUND_ERR = 8; | |
17280 | |
17281 static const int NO_ERR = 0; | |
17282 | |
17283 static const int QUOTA_ERR = 22; | |
17284 | |
17285 static const int READ_ONLY_ERR = 9; | |
17286 | |
17287 static const int TIMEOUT_ERR = 23; | |
17288 | |
17289 static const int TRANSACTION_INACTIVE_ERR = 7; | |
17290 | |
17291 static const int UNKNOWN_ERR = 1; | |
17292 | |
17293 static const int VER_ERR = 12; | |
17294 | |
17295 final int code; | |
17296 | |
17297 final String message; | |
17298 | |
17299 final String name; | |
17300 | |
17301 String toString(); | |
17302 } | |
17303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17304 // for details. All rights reserved. Use of this source code is governed by a | |
17305 // BSD-style license that can be found in the LICENSE file. | |
17306 | |
17307 // WARNING: Do not edit - generated code. | |
17308 | |
17309 interface IDBFactory { | |
17310 | |
17311 int cmp(/*IDBKey*/ first, /*IDBKey*/ second); | |
17312 | |
17313 IDBVersionChangeRequest deleteDatabase(String name); | |
17314 | |
17315 IDBOpenDBRequest open(String name, [int version]); | |
17316 | |
17317 IDBRequest webkitGetDatabaseNames(); | |
17318 } | |
17319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17320 // for details. All rights reserved. Use of this source code is governed by a | |
17321 // BSD-style license that can be found in the LICENSE file. | |
17322 | |
17323 // WARNING: Do not edit - generated code. | |
17324 | |
17325 interface IDBIndex { | |
17326 | |
17327 final /*IDBAny*/ keyPath; | |
17328 | |
17329 final bool multiEntry; | |
17330 | |
17331 final String name; | |
17332 | |
17333 final IDBObjectStore objectStore; | |
17334 | |
17335 final bool unique; | |
17336 | |
17337 IDBRequest count([key_OR_range]); | |
17338 | |
17339 IDBRequest get(key); | |
17340 | |
17341 IDBRequest getKey(key); | |
17342 | |
17343 IDBRequest openCursor([key_OR_range, direction]); | |
17344 | |
17345 IDBRequest openKeyCursor([key_OR_range, direction]); | |
17346 } | |
17347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17348 // for details. All rights reserved. Use of this source code is governed by a | |
17349 // BSD-style license that can be found in the LICENSE file. | |
17350 | |
17351 // WARNING: Do not edit - generated code. | |
17352 | |
17353 interface IDBKey { | |
17354 } | |
17355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17356 // for details. All rights reserved. Use of this source code is governed by a | |
17357 // BSD-style license that can be found in the LICENSE file. | |
17358 | |
17359 // WARNING: Do not edit - generated code. | |
17360 | |
17361 interface IDBKeyRange default _IDBKeyRangeFactoryProvider { | |
17362 | |
17363 IDBKeyRange.only(/*IDBKey*/ value); | |
17364 | |
17365 IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open]); | |
17366 | |
17367 IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open]); | |
17368 | |
17369 IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, | |
17370 [bool lowerOpen, bool upperOpen]); | |
17371 | |
17372 | |
17373 final /*IDBKey*/ lower; | |
17374 | |
17375 final bool lowerOpen; | |
17376 | |
17377 final /*IDBKey*/ upper; | |
17378 | |
17379 final bool upperOpen; | |
17380 } | |
17381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17382 // for details. All rights reserved. Use of this source code is governed by a | |
17383 // BSD-style license that can be found in the LICENSE file. | |
17384 | |
17385 // WARNING: Do not edit - generated code. | |
17386 | |
17387 interface IDBObjectStore { | |
17388 | |
17389 final bool autoIncrement; | |
17390 | |
17391 final List<String> indexNames; | |
17392 | |
17393 final /*IDBAny*/ keyPath; | |
17394 | |
17395 final String name; | |
17396 | |
17397 final IDBTransaction transaction; | |
17398 | |
17399 IDBRequest add(/*SerializedScriptValue*/ value, [/*IDBKey*/ key]); | |
17400 | |
17401 IDBRequest clear(); | |
17402 | |
17403 IDBRequest count([key_OR_range]); | |
17404 | |
17405 IDBIndex createIndex(String name, keyPath, [Map options]); | |
17406 | |
17407 IDBRequest delete(key_OR_keyRange); | |
17408 | |
17409 void deleteIndex(String name); | |
17410 | |
17411 IDBRequest getObject(key); | |
17412 | |
17413 IDBIndex index(String name); | |
17414 | |
17415 IDBRequest openCursor([key_OR_range, direction]); | |
17416 | |
17417 IDBRequest put(/*SerializedScriptValue*/ value, [/*IDBKey*/ key]); | |
17418 } | |
17419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17420 // for details. All rights reserved. Use of this source code is governed by a | |
17421 // BSD-style license that can be found in the LICENSE file. | |
17422 | |
17423 // WARNING: Do not edit - generated code. | |
17424 | |
17425 interface IDBOpenDBRequest extends IDBRequest, EventTarget { | |
17426 } | |
17427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17428 // for details. All rights reserved. Use of this source code is governed by a | |
17429 // BSD-style license that can be found in the LICENSE file. | |
17430 | |
17431 // WARNING: Do not edit - generated code. | |
17432 | |
17433 interface IDBRequest extends EventTarget { | |
17434 | |
17435 final DOMError error; | |
17436 | |
17437 final int errorCode; | |
17438 | |
17439 final String readyState; | |
17440 | |
17441 final /*IDBAny*/ result; | |
17442 | |
17443 final /*IDBAny*/ source; | |
17444 | |
17445 final IDBTransaction transaction; | |
17446 | |
17447 final String webkitErrorMessage; | |
17448 | |
17449 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
17450 | |
17451 bool dispatchEvent(Event evt); | |
17452 | |
17453 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
17454 } | |
17455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17456 // for details. All rights reserved. Use of this source code is governed by a | |
17457 // BSD-style license that can be found in the LICENSE file. | |
17458 | |
17459 // WARNING: Do not edit - generated code. | |
17460 | |
17461 interface IDBTransaction extends EventTarget { | |
17462 | |
17463 static const int READ_ONLY = 0; | |
17464 | |
17465 static const int READ_WRITE = 1; | |
17466 | |
17467 static const int VERSION_CHANGE = 2; | |
17468 | |
17469 final IDBDatabase db; | |
17470 | |
17471 final DOMError error; | |
17472 | |
17473 final String mode; | |
17474 | |
17475 void abort(); | |
17476 | |
17477 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
17478 | |
17479 bool dispatchEvent(Event evt); | |
17480 | |
17481 IDBObjectStore objectStore(String name); | |
17482 | |
17483 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
17484 } | |
17485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17486 // for details. All rights reserved. Use of this source code is governed by a | |
17487 // BSD-style license that can be found in the LICENSE file. | |
17488 | |
17489 // WARNING: Do not edit - generated code. | |
17490 | |
17491 interface IDBUpgradeNeededEvent extends Event { | |
17492 | |
17493 final int newVersion; | |
17494 | |
17495 final int oldVersion; | |
17496 } | |
17497 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17498 // for details. All rights reserved. Use of this source code is governed by a | |
17499 // BSD-style license that can be found in the LICENSE file. | |
17500 | |
17501 // WARNING: Do not edit - generated code. | |
17502 | |
17503 interface IDBVersionChangeEvent extends Event { | |
17504 | |
17505 final String version; | |
17506 } | |
17507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17508 // for details. All rights reserved. Use of this source code is governed by a | |
17509 // BSD-style license that can be found in the LICENSE file. | |
17510 | |
17511 // WARNING: Do not edit - generated code. | |
17512 | |
17513 interface IDBVersionChangeRequest extends IDBRequest, EventTarget { | |
17514 } | |
17515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17516 // for details. All rights reserved. Use of this source code is governed by a | |
17517 // BSD-style license that can be found in the LICENSE file. | |
17518 | |
17519 // WARNING: Do not edit - generated code. | |
17520 | |
17521 typedef bool IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnecti
on00 source); | |
17522 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17523 // for details. All rights reserved. Use of this source code is governed by a | |
17524 // BSD-style license that can be found in the LICENSE file. | |
17525 | |
17526 // WARNING: Do not edit - generated code. | |
17527 | |
17528 interface IceCandidate default _IceCandidateFactoryProvider { | |
17529 | |
17530 IceCandidate(String label, String candidateLine); | |
17531 | |
17532 final String label; | |
17533 | |
17534 String toSdp(); | |
17535 } | |
17536 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17537 // for details. All rights reserved. Use of this source code is governed by a | |
17538 // BSD-style license that can be found in the LICENSE file. | |
17539 | |
17540 // WARNING: Do not edit - generated code. | |
17541 | |
17542 interface ImageData { | |
17543 | |
17544 final Uint8ClampedArray data; | |
17545 | |
17546 final int height; | |
17547 | |
17548 final int width; | |
17549 } | |
17550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17551 // for details. All rights reserved. Use of this source code is governed by a | |
17552 // BSD-style license that can be found in the LICENSE file. | |
17553 | |
17554 // WARNING: Do not edit - generated code. | |
17555 | |
17556 interface Int16Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { | |
17557 | |
17558 Int16Array(int length); | |
17559 | |
17560 Int16Array.fromList(List<int> list); | |
17561 | |
17562 Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
17563 | |
17564 static const int BYTES_PER_ELEMENT = 2; | |
17565 | |
17566 final int length; | |
17567 | |
17568 void setElements(Object array, [int offset]); | |
17569 | |
17570 Int16Array subarray(int start, [int end]); | |
17571 } | |
17572 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17573 // for details. All rights reserved. Use of this source code is governed by a | |
17574 // BSD-style license that can be found in the LICENSE file. | |
17575 | |
17576 // WARNING: Do not edit - generated code. | |
17577 | |
17578 interface Int32Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { | |
17579 | |
17580 Int32Array(int length); | |
17581 | |
17582 Int32Array.fromList(List<int> list); | |
17583 | |
17584 Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
17585 | |
17586 static const int BYTES_PER_ELEMENT = 4; | |
17587 | |
17588 final int length; | |
17589 | |
17590 void setElements(Object array, [int offset]); | |
17591 | |
17592 Int32Array subarray(int start, [int end]); | |
17593 } | |
17594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17595 // for details. All rights reserved. Use of this source code is governed by a | |
17596 // BSD-style license that can be found in the LICENSE file. | |
17597 | |
17598 // WARNING: Do not edit - generated code. | |
17599 | |
17600 interface Int8Array extends ArrayBufferView, List<int> default _TypedArrayFactor
yProvider { | |
17601 | |
17602 Int8Array(int length); | |
17603 | |
17604 Int8Array.fromList(List<int> list); | |
17605 | |
17606 Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
17607 | |
17608 static const int BYTES_PER_ELEMENT = 1; | |
17609 | |
17610 final int length; | |
17611 | |
17612 void setElements(Object array, [int offset]); | |
17613 | |
17614 Int8Array subarray(int start, [int end]); | |
17615 } | |
17616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17617 // for details. All rights reserved. Use of this source code is governed by a | |
17618 // BSD-style license that can be found in the LICENSE file. | |
17619 | |
17620 // WARNING: Do not edit - generated code. | |
17621 | |
17622 interface JavaScriptAudioNode extends AudioNode, EventTarget { | |
17623 | |
17624 final int bufferSize; | |
17625 } | |
17626 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17627 // for details. All rights reserved. Use of this source code is governed by a | |
17628 // BSD-style license that can be found in the LICENSE file. | |
17629 | |
17630 // WARNING: Do not edit - generated code. | |
17631 | |
17632 interface JavaScriptCallFrame { | |
17633 | |
17634 static const int CATCH_SCOPE = 4; | |
17635 | |
17636 static const int CLOSURE_SCOPE = 3; | |
17637 | |
17638 static const int GLOBAL_SCOPE = 0; | |
17639 | |
17640 static const int LOCAL_SCOPE = 1; | |
17641 | |
17642 static const int WITH_SCOPE = 2; | |
17643 | |
17644 final JavaScriptCallFrame caller; | |
17645 | |
17646 final int column; | |
17647 | |
17648 final String functionName; | |
17649 | |
17650 final int line; | |
17651 | |
17652 final List scopeChain; | |
17653 | |
17654 final int sourceID; | |
17655 | |
17656 final Object thisObject; | |
17657 | |
17658 final String type; | |
17659 | |
17660 void evaluate(String script); | |
17661 | |
17662 Object restart(); | |
17663 | |
17664 int scopeType(int scopeIndex); | |
17665 } | |
17666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17667 // for details. All rights reserved. Use of this source code is governed by a | |
17668 // BSD-style license that can be found in the LICENSE file. | |
17669 | |
17670 // WARNING: Do not edit - generated code. | |
17671 | |
17672 interface KeyboardEvent extends UIEvent { | |
17673 | |
17674 final bool altGraphKey; | |
17675 | |
17676 final bool altKey; | |
17677 | |
17678 final bool ctrlKey; | |
17679 | |
17680 final String keyIdentifier; | |
17681 | |
17682 final int keyLocation; | |
17683 | |
17684 final bool metaKey; | |
17685 | |
17686 final bool shiftKey; | |
17687 | |
17688 void initKeyboardEvent(String type, bool canBubble, bool cancelable, DOMWindow
view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool sh
iftKey, bool metaKey, bool altGraphKey); | |
17689 } | |
17690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17691 // for details. All rights reserved. Use of this source code is governed by a | |
17692 // BSD-style license that can be found in the LICENSE file. | |
17693 | |
17694 // WARNING: Do not edit - generated code. | |
17695 | |
17696 interface LocalMediaStream extends MediaStream, EventTarget { | |
17697 | |
17698 void stop(); | |
17699 } | |
17700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17701 // for details. All rights reserved. Use of this source code is governed by a | |
17702 // BSD-style license that can be found in the LICENSE file. | |
17703 | |
17704 // WARNING: Do not edit - generated code. | |
17705 | |
17706 interface Location { | |
17707 | |
17708 final List<String> ancestorOrigins; | |
17709 | |
17710 String hash; | |
17711 | |
17712 String host; | |
17713 | |
17714 String hostname; | |
17715 | |
17716 String href; | |
17717 | |
17718 final String origin; | |
17719 | |
17720 String pathname; | |
17721 | |
17722 String port; | |
17723 | |
17724 String protocol; | |
17725 | |
17726 String search; | |
17727 | |
17728 void assign(String url); | |
17729 | |
17730 void reload(); | |
17731 | |
17732 void replace(String url); | |
17733 | |
17734 String toString(); | |
17735 } | |
17736 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17737 // for details. All rights reserved. Use of this source code is governed by a | |
17738 // BSD-style license that can be found in the LICENSE file. | |
17739 | |
17740 // WARNING: Do not edit - generated code. | |
17741 | |
17742 interface MediaController extends EventTarget default _MediaControllerFactoryPro
vider { | |
17743 | |
17744 MediaController(); | |
17745 | |
17746 final TimeRanges buffered; | |
17747 | |
17748 num currentTime; | |
17749 | |
17750 num defaultPlaybackRate; | |
17751 | |
17752 final num duration; | |
17753 | |
17754 bool muted; | |
17755 | |
17756 final bool paused; | |
17757 | |
17758 num playbackRate; | |
17759 | |
17760 final TimeRanges played; | |
17761 | |
17762 final TimeRanges seekable; | |
17763 | |
17764 num volume; | |
17765 | |
17766 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
17767 | |
17768 bool dispatchEvent(Event evt); | |
17769 | |
17770 void pause(); | |
17771 | |
17772 void play(); | |
17773 | |
17774 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
17775 } | |
17776 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17777 // for details. All rights reserved. Use of this source code is governed by a | |
17778 // BSD-style license that can be found in the LICENSE file. | |
17779 | |
17780 // WARNING: Do not edit - generated code. | |
17781 | |
17782 interface MediaElementAudioSourceNode extends AudioSourceNode { | |
17783 | |
17784 final HTMLMediaElement mediaElement; | |
17785 } | |
17786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17787 // for details. All rights reserved. Use of this source code is governed by a | |
17788 // BSD-style license that can be found in the LICENSE file. | |
17789 | |
17790 // WARNING: Do not edit - generated code. | |
17791 | |
17792 interface MediaError { | |
17793 | |
17794 static const int MEDIA_ERR_ABORTED = 1; | |
17795 | |
17796 static const int MEDIA_ERR_DECODE = 3; | |
17797 | |
17798 static const int MEDIA_ERR_ENCRYPTED = 5; | |
17799 | |
17800 static const int MEDIA_ERR_NETWORK = 2; | |
17801 | |
17802 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | |
17803 | |
17804 final int code; | |
17805 } | |
17806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17807 // for details. All rights reserved. Use of this source code is governed by a | |
17808 // BSD-style license that can be found in the LICENSE file. | |
17809 | |
17810 // WARNING: Do not edit - generated code. | |
17811 | |
17812 interface MediaKeyError { | |
17813 | |
17814 static const int MEDIA_KEYERR_CLIENT = 2; | |
17815 | |
17816 static const int MEDIA_KEYERR_DOMAIN = 6; | |
17817 | |
17818 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; | |
17819 | |
17820 static const int MEDIA_KEYERR_OUTPUT = 4; | |
17821 | |
17822 static const int MEDIA_KEYERR_SERVICE = 3; | |
17823 | |
17824 static const int MEDIA_KEYERR_UNKNOWN = 1; | |
17825 | |
17826 final int code; | |
17827 } | |
17828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17829 // for details. All rights reserved. Use of this source code is governed by a | |
17830 // BSD-style license that can be found in the LICENSE file. | |
17831 | |
17832 // WARNING: Do not edit - generated code. | |
17833 | |
17834 interface MediaKeyEvent extends Event { | |
17835 | |
17836 final String defaultURL; | |
17837 | |
17838 final MediaKeyError errorCode; | |
17839 | |
17840 final Uint8Array initData; | |
17841 | |
17842 final String keySystem; | |
17843 | |
17844 final Uint8Array message; | |
17845 | |
17846 final String sessionId; | |
17847 | |
17848 final int systemCode; | |
17849 } | |
17850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17851 // for details. All rights reserved. Use of this source code is governed by a | |
17852 // BSD-style license that can be found in the LICENSE file. | |
17853 | |
17854 // WARNING: Do not edit - generated code. | |
17855 | |
17856 interface MediaList extends List<String> { | |
17857 | |
17858 final int length; | |
17859 | |
17860 String mediaText; | |
17861 | |
17862 void appendMedium(String newMedium); | |
17863 | |
17864 void deleteMedium(String oldMedium); | |
17865 | |
17866 String item(int index); | |
17867 } | |
17868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17869 // for details. All rights reserved. Use of this source code is governed by a | |
17870 // BSD-style license that can be found in the LICENSE file. | |
17871 | |
17872 // WARNING: Do not edit - generated code. | |
17873 | |
17874 interface MediaQueryList { | |
17875 | |
17876 final bool matches; | |
17877 | |
17878 final String media; | |
17879 | |
17880 void addListener(MediaQueryListListener listener); | |
17881 | |
17882 void removeListener(MediaQueryListListener listener); | |
17883 } | |
17884 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17885 // for details. All rights reserved. Use of this source code is governed by a | |
17886 // BSD-style license that can be found in the LICENSE file. | |
17887 | |
17888 // WARNING: Do not edit - generated code. | |
17889 | |
17890 interface MediaQueryListListener { | |
17891 | |
17892 void queryChanged(MediaQueryList list); | |
17893 } | |
17894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17895 // for details. All rights reserved. Use of this source code is governed by a | |
17896 // BSD-style license that can be found in the LICENSE file. | |
17897 | |
17898 // WARNING: Do not edit - generated code. | |
17899 | |
17900 interface MediaSource extends EventTarget default _MediaSourceFactoryProvider { | |
17901 | |
17902 MediaSource(); | |
17903 | |
17904 final SourceBufferList activeSourceBuffers; | |
17905 | |
17906 final String readyState; | |
17907 | |
17908 final SourceBufferList sourceBuffers; | |
17909 | |
17910 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
17911 | |
17912 SourceBuffer addSourceBuffer(String type); | |
17913 | |
17914 bool dispatchEvent(Event event); | |
17915 | |
17916 void endOfStream(String error); | |
17917 | |
17918 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
17919 | |
17920 void removeSourceBuffer(SourceBuffer buffer); | |
17921 } | |
17922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17923 // for details. All rights reserved. Use of this source code is governed by a | |
17924 // BSD-style license that can be found in the LICENSE file. | |
17925 | |
17926 // WARNING: Do not edit - generated code. | |
17927 | |
17928 interface MediaStream extends EventTarget default _MediaStreamFactoryProvider { | |
17929 | |
17930 MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks
); | |
17931 | |
17932 static const int ENDED = 2; | |
17933 | |
17934 static const int LIVE = 1; | |
17935 | |
17936 final MediaStreamTrackList audioTracks; | |
17937 | |
17938 final String label; | |
17939 | |
17940 final int readyState; | |
17941 | |
17942 final MediaStreamTrackList videoTracks; | |
17943 | |
17944 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
17945 | |
17946 bool dispatchEvent(Event event); | |
17947 | |
17948 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
17949 } | |
17950 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17951 // for details. All rights reserved. Use of this source code is governed by a | |
17952 // BSD-style license that can be found in the LICENSE file. | |
17953 | |
17954 // WARNING: Do not edit - generated code. | |
17955 | |
17956 interface MediaStreamAudioSourceNode extends AudioSourceNode { | |
17957 | |
17958 final MediaStream mediaStream; | |
17959 } | |
17960 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17961 // for details. All rights reserved. Use of this source code is governed by a | |
17962 // BSD-style license that can be found in the LICENSE file. | |
17963 | |
17964 // WARNING: Do not edit - generated code. | |
17965 | |
17966 interface MediaStreamEvent extends Event { | |
17967 | |
17968 final MediaStream stream; | |
17969 } | |
17970 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17971 // for details. All rights reserved. Use of this source code is governed by a | |
17972 // BSD-style license that can be found in the LICENSE file. | |
17973 | |
17974 // WARNING: Do not edit - generated code. | |
17975 | |
17976 interface MediaStreamList { | |
17977 | |
17978 final int length; | |
17979 | |
17980 MediaStream item(int index); | |
17981 } | |
17982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
17983 // for details. All rights reserved. Use of this source code is governed by a | |
17984 // BSD-style license that can be found in the LICENSE file. | |
17985 | |
17986 // WARNING: Do not edit - generated code. | |
17987 | |
17988 interface MediaStreamTrack extends EventTarget { | |
17989 | |
17990 static const int ENDED = 2; | |
17991 | |
17992 static const int LIVE = 0; | |
17993 | |
17994 static const int MUTED = 1; | |
17995 | |
17996 bool enabled; | |
17997 | |
17998 final String kind; | |
17999 | |
18000 final String label; | |
18001 | |
18002 final int readyState; | |
18003 | |
18004 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
18005 | |
18006 bool dispatchEvent(Event event); | |
18007 | |
18008 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
18009 } | |
18010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18011 // for details. All rights reserved. Use of this source code is governed by a | |
18012 // BSD-style license that can be found in the LICENSE file. | |
18013 | |
18014 // WARNING: Do not edit - generated code. | |
18015 | |
18016 interface MediaStreamTrackEvent extends Event { | |
18017 | |
18018 final MediaStreamTrack track; | |
18019 } | |
18020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18021 // for details. All rights reserved. Use of this source code is governed by a | |
18022 // BSD-style license that can be found in the LICENSE file. | |
18023 | |
18024 // WARNING: Do not edit - generated code. | |
18025 | |
18026 interface MediaStreamTrackList extends EventTarget { | |
18027 | |
18028 final int length; | |
18029 | |
18030 void add(MediaStreamTrack track); | |
18031 | |
18032 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
18033 | |
18034 bool dispatchEvent(Event event); | |
18035 | |
18036 MediaStreamTrack item(int index); | |
18037 | |
18038 void remove(MediaStreamTrack track); | |
18039 | |
18040 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
18041 } | |
18042 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18043 // for details. All rights reserved. Use of this source code is governed by a | |
18044 // BSD-style license that can be found in the LICENSE file. | |
18045 | |
18046 // WARNING: Do not edit - generated code. | |
18047 | |
18048 interface MemoryInfo { | |
18049 | |
18050 final int jsHeapSizeLimit; | |
18051 | |
18052 final int totalJSHeapSize; | |
18053 | |
18054 final int usedJSHeapSize; | |
18055 } | |
18056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18057 // for details. All rights reserved. Use of this source code is governed by a | |
18058 // BSD-style license that can be found in the LICENSE file. | |
18059 | |
18060 // WARNING: Do not edit - generated code. | |
18061 | |
18062 interface MessageChannel default _MessageChannelFactoryProvider { | |
18063 | |
18064 MessageChannel(); | |
18065 | |
18066 final MessagePort port1; | |
18067 | |
18068 final MessagePort port2; | |
18069 } | |
18070 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18071 // for details. All rights reserved. Use of this source code is governed by a | |
18072 // BSD-style license that can be found in the LICENSE file. | |
18073 | |
18074 // WARNING: Do not edit - generated code. | |
18075 | |
18076 interface MessageEvent extends Event { | |
18077 | |
18078 final Object data; | |
18079 | |
18080 final String lastEventId; | |
18081 | |
18082 final String origin; | |
18083 | |
18084 final List ports; | |
18085 | |
18086 final DOMWindow source; | |
18087 | |
18088 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, DOMWindow sourceArg, Lis
t messagePorts); | |
18089 | |
18090 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, DOMWindow sourceAr
g, List transferables); | |
18091 } | |
18092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18093 // for details. All rights reserved. Use of this source code is governed by a | |
18094 // BSD-style license that can be found in the LICENSE file. | |
18095 | |
18096 // WARNING: Do not edit - generated code. | |
18097 | |
18098 interface MessagePort extends EventTarget { | |
18099 | |
18100 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
18101 | |
18102 void close(); | |
18103 | |
18104 bool dispatchEvent(Event evt); | |
18105 | |
18106 void postMessage(String message, [List messagePorts]); | |
18107 | |
18108 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
18109 | |
18110 void start(); | |
18111 | |
18112 void webkitPostMessage(String message, [List transfer]); | |
18113 } | |
18114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18115 // for details. All rights reserved. Use of this source code is governed by a | |
18116 // BSD-style license that can be found in the LICENSE file. | |
18117 | |
18118 // WARNING: Do not edit - generated code. | |
18119 | |
18120 interface Metadata { | |
18121 | |
18122 final Date modificationTime; | |
18123 | |
18124 final int size; | |
18125 } | |
18126 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18127 // for details. All rights reserved. Use of this source code is governed by a | |
18128 // BSD-style license that can be found in the LICENSE file. | |
18129 | |
18130 // WARNING: Do not edit - generated code. | |
18131 | |
18132 typedef bool MetadataCallback(Metadata metadata); | |
18133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18134 // for details. All rights reserved. Use of this source code is governed by a | |
18135 // BSD-style license that can be found in the LICENSE file. | |
18136 | |
18137 // WARNING: Do not edit - generated code. | |
18138 | |
18139 interface MouseEvent extends UIEvent { | |
18140 | |
18141 final bool altKey; | |
18142 | |
18143 final int button; | |
18144 | |
18145 final int clientX; | |
18146 | |
18147 final int clientY; | |
18148 | |
18149 final bool ctrlKey; | |
18150 | |
18151 final Clipboard dataTransfer; | |
18152 | |
18153 final Node fromElement; | |
18154 | |
18155 final bool metaKey; | |
18156 | |
18157 final int offsetX; | |
18158 | |
18159 final int offsetY; | |
18160 | |
18161 final EventTarget relatedTarget; | |
18162 | |
18163 final int screenX; | |
18164 | |
18165 final int screenY; | |
18166 | |
18167 final bool shiftKey; | |
18168 | |
18169 final Node toElement; | |
18170 | |
18171 final int webkitMovementX; | |
18172 | |
18173 final int webkitMovementY; | |
18174 | |
18175 final int x; | |
18176 | |
18177 final int y; | |
18178 | |
18179 void initMouseEvent(String type, bool canBubble, bool cancelable, DOMWindow vi
ew, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey
, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarge
t); | |
18180 } | |
18181 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18182 // for details. All rights reserved. Use of this source code is governed by a | |
18183 // BSD-style license that can be found in the LICENSE file. | |
18184 | |
18185 // WARNING: Do not edit - generated code. | |
18186 | |
18187 typedef bool MutationCallback(List<MutationRecord> mutations, MutationObserver o
bserver); | |
18188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18189 // for details. All rights reserved. Use of this source code is governed by a | |
18190 // BSD-style license that can be found in the LICENSE file. | |
18191 | |
18192 // WARNING: Do not edit - generated code. | |
18193 | |
18194 interface MutationEvent extends Event { | |
18195 | |
18196 static const int ADDITION = 2; | |
18197 | |
18198 static const int MODIFICATION = 1; | |
18199 | |
18200 static const int REMOVAL = 3; | |
18201 | |
18202 final int attrChange; | |
18203 | |
18204 final String attrName; | |
18205 | |
18206 final String newValue; | |
18207 | |
18208 final String prevValue; | |
18209 | |
18210 final Node relatedNode; | |
18211 | |
18212 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela
tedNode, String prevValue, String newValue, String attrName, int attrChange); | |
18213 } | |
18214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18215 // for details. All rights reserved. Use of this source code is governed by a | |
18216 // BSD-style license that can be found in the LICENSE file. | |
18217 | |
18218 // WARNING: Do not edit - generated code. | |
18219 | |
18220 interface MutationObserver default _MutationObserverFactoryProvider { | |
18221 | |
18222 MutationObserver(MutationCallback callback); | |
18223 | |
18224 void disconnect(); | |
18225 | |
18226 void _observe(Node target, Map options); | |
18227 | |
18228 List<MutationRecord> takeRecords(); | |
18229 } | |
18230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18231 // for details. All rights reserved. Use of this source code is governed by a | |
18232 // BSD-style license that can be found in the LICENSE file. | |
18233 | |
18234 // WARNING: Do not edit - generated code. | |
18235 | |
18236 interface MutationRecord { | |
18237 | |
18238 final NodeList addedNodes; | |
18239 | |
18240 final String attributeName; | |
18241 | |
18242 final String attributeNamespace; | |
18243 | |
18244 final Node nextSibling; | |
18245 | |
18246 final String oldValue; | |
18247 | |
18248 final Node previousSibling; | |
18249 | |
18250 final NodeList removedNodes; | |
18251 | |
18252 final Node target; | |
18253 | |
18254 final String type; | |
18255 } | |
18256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18257 // for details. All rights reserved. Use of this source code is governed by a | |
18258 // BSD-style license that can be found in the LICENSE file. | |
18259 | |
18260 // WARNING: Do not edit - generated code. | |
18261 | |
18262 interface NamedNodeMap extends List<Node> { | |
18263 | |
18264 final int length; | |
18265 | |
18266 Node getNamedItem(String name); | |
18267 | |
18268 Node getNamedItemNS(String namespaceURI, String localName); | |
18269 | |
18270 Node item(int index); | |
18271 | |
18272 Node removeNamedItem(String name); | |
18273 | |
18274 Node removeNamedItemNS(String namespaceURI, String localName); | |
18275 | |
18276 Node setNamedItem(Node node); | |
18277 | |
18278 Node setNamedItemNS(Node node); | |
18279 } | |
18280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18281 // for details. All rights reserved. Use of this source code is governed by a | |
18282 // BSD-style license that can be found in the LICENSE file. | |
18283 | |
18284 // WARNING: Do not edit - generated code. | |
18285 | |
18286 interface Navigator { | |
18287 | |
18288 final String appCodeName; | |
18289 | |
18290 final String appName; | |
18291 | |
18292 final String appVersion; | |
18293 | |
18294 final bool cookieEnabled; | |
18295 | |
18296 final Geolocation geolocation; | |
18297 | |
18298 final String language; | |
18299 | |
18300 final DOMMimeTypeArray mimeTypes; | |
18301 | |
18302 final bool onLine; | |
18303 | |
18304 final String platform; | |
18305 | |
18306 final DOMPluginArray plugins; | |
18307 | |
18308 final String product; | |
18309 | |
18310 final String productSub; | |
18311 | |
18312 final String userAgent; | |
18313 | |
18314 final String vendor; | |
18315 | |
18316 final String vendorSub; | |
18317 | |
18318 final BatteryManager webkitBattery; | |
18319 | |
18320 void getStorageUpdates(); | |
18321 | |
18322 bool javaEnabled(); | |
18323 | |
18324 GamepadList webkitGetGamepads(); | |
18325 | |
18326 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]); | |
18327 } | |
18328 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18329 // for details. All rights reserved. Use of this source code is governed by a | |
18330 // BSD-style license that can be found in the LICENSE file. | |
18331 | |
18332 // WARNING: Do not edit - generated code. | |
18333 | |
18334 interface NavigatorUserMediaError { | |
18335 | |
18336 static const int PERMISSION_DENIED = 1; | |
18337 | |
18338 final int code; | |
18339 } | |
18340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18341 // for details. All rights reserved. Use of this source code is governed by a | |
18342 // BSD-style license that can be found in the LICENSE file. | |
18343 | |
18344 // WARNING: Do not edit - generated code. | |
18345 | |
18346 typedef bool NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); | |
18347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18348 // for details. All rights reserved. Use of this source code is governed by a | |
18349 // BSD-style license that can be found in the LICENSE file. | |
18350 | |
18351 // WARNING: Do not edit - generated code. | |
18352 | |
18353 typedef bool NavigatorUserMediaSuccessCallback(LocalMediaStream stream); | |
18354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18355 // for details. All rights reserved. Use of this source code is governed by a | |
18356 // BSD-style license that can be found in the LICENSE file. | |
18357 | |
18358 // WARNING: Do not edit - generated code. | |
18359 | |
18360 interface Node extends EventTarget { | |
18361 | |
18362 static const int ATTRIBUTE_NODE = 2; | |
18363 | |
18364 static const int CDATA_SECTION_NODE = 4; | |
18365 | |
18366 static const int COMMENT_NODE = 8; | |
18367 | |
18368 static const int DOCUMENT_FRAGMENT_NODE = 11; | |
18369 | |
18370 static const int DOCUMENT_NODE = 9; | |
18371 | |
18372 static const int DOCUMENT_POSITION_CONTAINED_BY = 0x10; | |
18373 | |
18374 static const int DOCUMENT_POSITION_CONTAINS = 0x08; | |
18375 | |
18376 static const int DOCUMENT_POSITION_DISCONNECTED = 0x01; | |
18377 | |
18378 static const int DOCUMENT_POSITION_FOLLOWING = 0x04; | |
18379 | |
18380 static const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | |
18381 | |
18382 static const int DOCUMENT_POSITION_PRECEDING = 0x02; | |
18383 | |
18384 static const int DOCUMENT_TYPE_NODE = 10; | |
18385 | |
18386 static const int ELEMENT_NODE = 1; | |
18387 | |
18388 static const int ENTITY_NODE = 6; | |
18389 | |
18390 static const int ENTITY_REFERENCE_NODE = 5; | |
18391 | |
18392 static const int NOTATION_NODE = 12; | |
18393 | |
18394 static const int PROCESSING_INSTRUCTION_NODE = 7; | |
18395 | |
18396 static const int TEXT_NODE = 3; | |
18397 | |
18398 final NamedNodeMap attributes; | |
18399 | |
18400 final String baseURI; | |
18401 | |
18402 final NodeList childNodes; | |
18403 | |
18404 final Node firstChild; | |
18405 | |
18406 final Node lastChild; | |
18407 | |
18408 final String localName; | |
18409 | |
18410 final String namespaceURI; | |
18411 | |
18412 final Node nextSibling; | |
18413 | |
18414 final String nodeName; | |
18415 | |
18416 final int nodeType; | |
18417 | |
18418 String nodeValue; | |
18419 | |
18420 final Document ownerDocument; | |
18421 | |
18422 final Element parentElement; | |
18423 | |
18424 final Node parentNode; | |
18425 | |
18426 String prefix; | |
18427 | |
18428 final Node previousSibling; | |
18429 | |
18430 String textContent; | |
18431 | |
18432 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
18433 | |
18434 Node appendChild(Node newChild); | |
18435 | |
18436 Node cloneNode(bool deep); | |
18437 | |
18438 int compareDocumentPosition(Node other); | |
18439 | |
18440 bool contains(Node other); | |
18441 | |
18442 bool dispatchEvent(Event event); | |
18443 | |
18444 bool hasAttributes(); | |
18445 | |
18446 bool hasChildNodes(); | |
18447 | |
18448 Node insertBefore(Node newChild, Node refChild); | |
18449 | |
18450 bool isDefaultNamespace(String namespaceURI); | |
18451 | |
18452 bool isEqualNode(Node other); | |
18453 | |
18454 bool isSameNode(Node other); | |
18455 | |
18456 bool isSupported(String feature, String version); | |
18457 | |
18458 String lookupNamespaceURI(String prefix); | |
18459 | |
18460 String lookupPrefix(String namespaceURI); | |
18461 | |
18462 void normalize(); | |
18463 | |
18464 Node removeChild(Node oldChild); | |
18465 | |
18466 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
18467 | |
18468 Node replaceChild(Node newChild, Node oldChild); | |
18469 } | |
18470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18471 // for details. All rights reserved. Use of this source code is governed by a | |
18472 // BSD-style license that can be found in the LICENSE file. | |
18473 | |
18474 // WARNING: Do not edit - generated code. | |
18475 | |
18476 interface NodeFilter { | |
18477 | |
18478 static const int FILTER_ACCEPT = 1; | |
18479 | |
18480 static const int FILTER_REJECT = 2; | |
18481 | |
18482 static const int FILTER_SKIP = 3; | |
18483 | |
18484 static const int SHOW_ALL = 0xFFFFFFFF; | |
18485 | |
18486 static const int SHOW_ATTRIBUTE = 0x00000002; | |
18487 | |
18488 static const int SHOW_CDATA_SECTION = 0x00000008; | |
18489 | |
18490 static const int SHOW_COMMENT = 0x00000080; | |
18491 | |
18492 static const int SHOW_DOCUMENT = 0x00000100; | |
18493 | |
18494 static const int SHOW_DOCUMENT_FRAGMENT = 0x00000400; | |
18495 | |
18496 static const int SHOW_DOCUMENT_TYPE = 0x00000200; | |
18497 | |
18498 static const int SHOW_ELEMENT = 0x00000001; | |
18499 | |
18500 static const int SHOW_ENTITY = 0x00000020; | |
18501 | |
18502 static const int SHOW_ENTITY_REFERENCE = 0x00000010; | |
18503 | |
18504 static const int SHOW_NOTATION = 0x00000800; | |
18505 | |
18506 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | |
18507 | |
18508 static const int SHOW_TEXT = 0x00000004; | |
18509 | |
18510 int acceptNode(Node n); | |
18511 } | |
18512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18513 // for details. All rights reserved. Use of this source code is governed by a | |
18514 // BSD-style license that can be found in the LICENSE file. | |
18515 | |
18516 // WARNING: Do not edit - generated code. | |
18517 | |
18518 interface NodeIterator { | |
18519 | |
18520 final bool expandEntityReferences; | |
18521 | |
18522 final NodeFilter filter; | |
18523 | |
18524 final bool pointerBeforeReferenceNode; | |
18525 | |
18526 final Node referenceNode; | |
18527 | |
18528 final Node root; | |
18529 | |
18530 final int whatToShow; | |
18531 | |
18532 void detach(); | |
18533 | |
18534 Node nextNode(); | |
18535 | |
18536 Node previousNode(); | |
18537 } | |
18538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18539 // for details. All rights reserved. Use of this source code is governed by a | |
18540 // BSD-style license that can be found in the LICENSE file. | |
18541 | |
18542 // WARNING: Do not edit - generated code. | |
18543 | |
18544 interface NodeList extends List<Node> { | |
18545 | |
18546 final int length; | |
18547 | |
18548 Node item(int index); | |
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 Notation extends Node { | |
18557 | |
18558 final String publicId; | |
18559 | |
18560 final String systemId; | |
18561 } | |
18562 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18563 // for details. All rights reserved. Use of this source code is governed by a | |
18564 // BSD-style license that can be found in the LICENSE file. | |
18565 | |
18566 // WARNING: Do not edit - generated code. | |
18567 | |
18568 interface Notification extends EventTarget default _NotificationFactoryProvider
{ | |
18569 | |
18570 Notification(String title, [Map options]); | |
18571 | |
18572 String dir; | |
18573 | |
18574 final String permission; | |
18575 | |
18576 String replaceId; | |
18577 | |
18578 String tag; | |
18579 | |
18580 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
18581 | |
18582 void cancel(); | |
18583 | |
18584 void close(); | |
18585 | |
18586 bool dispatchEvent(Event evt); | |
18587 | |
18588 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
18589 | |
18590 void show(); | |
18591 } | |
18592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18593 // for details. All rights reserved. Use of this source code is governed by a | |
18594 // BSD-style license that can be found in the LICENSE file. | |
18595 | |
18596 // WARNING: Do not edit - generated code. | |
18597 | |
18598 interface NotificationCenter { | |
18599 | |
18600 int checkPermission(); | |
18601 | |
18602 Notification createHTMLNotification(String url); | |
18603 | |
18604 Notification createNotification(String iconUrl, String title, String body); | |
18605 | |
18606 void requestPermission(VoidCallback callback); | |
18607 } | |
18608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18609 // for details. All rights reserved. Use of this source code is governed by a | |
18610 // BSD-style license that can be found in the LICENSE file. | |
18611 | |
18612 // WARNING: Do not edit - generated code. | |
18613 | |
18614 typedef bool NotificationPermissionCallback(String permission); | |
18615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18616 // for details. All rights reserved. Use of this source code is governed by a | |
18617 // BSD-style license that can be found in the LICENSE file. | |
18618 | |
18619 // WARNING: Do not edit - generated code. | |
18620 | |
18621 interface OESStandardDerivatives { | |
18622 | |
18623 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | |
18624 } | |
18625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18626 // for details. All rights reserved. Use of this source code is governed by a | |
18627 // BSD-style license that can be found in the LICENSE file. | |
18628 | |
18629 // WARNING: Do not edit - generated code. | |
18630 | |
18631 interface OESTextureFloat { | |
18632 } | |
18633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18634 // for details. All rights reserved. Use of this source code is governed by a | |
18635 // BSD-style license that can be found in the LICENSE file. | |
18636 | |
18637 // WARNING: Do not edit - generated code. | |
18638 | |
18639 interface OESVertexArrayObject { | |
18640 | |
18641 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; | |
18642 | |
18643 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject); | |
18644 | |
18645 WebGLVertexArrayObjectOES createVertexArrayOES(); | |
18646 | |
18647 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject); | |
18648 | |
18649 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject); | |
18650 } | |
18651 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18652 // for details. All rights reserved. Use of this source code is governed by a | |
18653 // BSD-style license that can be found in the LICENSE file. | |
18654 | |
18655 // WARNING: Do not edit - generated code. | |
18656 | |
18657 interface OfflineAudioCompletionEvent extends Event { | |
18658 | |
18659 final AudioBuffer renderedBuffer; | |
18660 } | |
18661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18662 // for details. All rights reserved. Use of this source code is governed by a | |
18663 // BSD-style license that can be found in the LICENSE file. | |
18664 | |
18665 // WARNING: Do not edit - generated code. | |
18666 | |
18667 interface Oscillator extends AudioSourceNode { | |
18668 | |
18669 static const int CUSTOM = 4; | |
18670 | |
18671 static const int FINISHED_STATE = 3; | |
18672 | |
18673 static const int PLAYING_STATE = 2; | |
18674 | |
18675 static const int SAWTOOTH = 2; | |
18676 | |
18677 static const int SCHEDULED_STATE = 1; | |
18678 | |
18679 static const int SINE = 0; | |
18680 | |
18681 static const int SQUARE = 1; | |
18682 | |
18683 static const int TRIANGLE = 3; | |
18684 | |
18685 static const int UNSCHEDULED_STATE = 0; | |
18686 | |
18687 final AudioParam detune; | |
18688 | |
18689 final AudioParam frequency; | |
18690 | |
18691 final int playbackState; | |
18692 | |
18693 int type; | |
18694 | |
18695 void noteOff(num when); | |
18696 | |
18697 void noteOn(num when); | |
18698 | |
18699 void setWaveTable(WaveTable waveTable); | |
18700 } | |
18701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18702 // for details. All rights reserved. Use of this source code is governed by a | |
18703 // BSD-style license that can be found in the LICENSE file. | |
18704 | |
18705 // WARNING: Do not edit - generated code. | |
18706 | |
18707 interface OverflowEvent extends Event { | |
18708 | |
18709 static const int BOTH = 2; | |
18710 | |
18711 static const int HORIZONTAL = 0; | |
18712 | |
18713 static const int VERTICAL = 1; | |
18714 | |
18715 final bool horizontalOverflow; | |
18716 | |
18717 final int orient; | |
18718 | |
18719 final bool verticalOverflow; | |
18720 } | |
18721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18722 // for details. All rights reserved. Use of this source code is governed by a | |
18723 // BSD-style license that can be found in the LICENSE file. | |
18724 | |
18725 // WARNING: Do not edit - generated code. | |
18726 | |
18727 interface PagePopupController { | |
18728 | |
18729 String localizeNumberString(String numberString); | |
18730 | |
18731 void setValueAndClosePopup(int numberValue, String stringValue); | |
18732 } | |
18733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18734 // for details. All rights reserved. Use of this source code is governed by a | |
18735 // BSD-style license that can be found in the LICENSE file. | |
18736 | |
18737 // WARNING: Do not edit - generated code. | |
18738 | |
18739 interface PageTransitionEvent extends Event { | |
18740 | |
18741 final bool persisted; | |
18742 } | |
18743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18744 // for details. All rights reserved. Use of this source code is governed by a | |
18745 // BSD-style license that can be found in the LICENSE file. | |
18746 | |
18747 // WARNING: Do not edit - generated code. | |
18748 | |
18749 interface PeerConnection00 extends EventTarget default _PeerConnection00FactoryP
rovider { | |
18750 | |
18751 PeerConnection00(String serverConfiguration, IceCallback iceCallback); | |
18752 | |
18753 static const int ACTIVE = 2; | |
18754 | |
18755 static const int CLOSED = 3; | |
18756 | |
18757 static const int ICE_CHECKING = 0x300; | |
18758 | |
18759 static const int ICE_CLOSED = 0x700; | |
18760 | |
18761 static const int ICE_COMPLETED = 0x500; | |
18762 | |
18763 static const int ICE_CONNECTED = 0x400; | |
18764 | |
18765 static const int ICE_FAILED = 0x600; | |
18766 | |
18767 static const int ICE_GATHERING = 0x100; | |
18768 | |
18769 static const int ICE_WAITING = 0x200; | |
18770 | |
18771 static const int NEW = 0; | |
18772 | |
18773 static const int OPENING = 1; | |
18774 | |
18775 static const int SDP_ANSWER = 0x300; | |
18776 | |
18777 static const int SDP_OFFER = 0x100; | |
18778 | |
18779 static const int SDP_PRANSWER = 0x200; | |
18780 | |
18781 final int iceState; | |
18782 | |
18783 final SessionDescription localDescription; | |
18784 | |
18785 final MediaStreamList localStreams; | |
18786 | |
18787 final int readyState; | |
18788 | |
18789 final SessionDescription remoteDescription; | |
18790 | |
18791 final MediaStreamList remoteStreams; | |
18792 | |
18793 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
18794 | |
18795 void addStream(MediaStream stream, [Map mediaStreamHints]); | |
18796 | |
18797 void close(); | |
18798 | |
18799 SessionDescription createAnswer(String offer, [Map mediaHints]); | |
18800 | |
18801 SessionDescription createOffer([Map mediaHints]); | |
18802 | |
18803 bool dispatchEvent(Event event); | |
18804 | |
18805 void processIceMessage(IceCandidate candidate); | |
18806 | |
18807 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
18808 | |
18809 void removeStream(MediaStream stream); | |
18810 | |
18811 void setLocalDescription(int action, SessionDescription desc); | |
18812 | |
18813 void setRemoteDescription(int action, SessionDescription desc); | |
18814 | |
18815 void startIce([Map iceOptions]); | |
18816 } | |
18817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18818 // for details. All rights reserved. Use of this source code is governed by a | |
18819 // BSD-style license that can be found in the LICENSE file. | |
18820 | |
18821 // WARNING: Do not edit - generated code. | |
18822 | |
18823 interface Performance extends EventTarget { | |
18824 | |
18825 final MemoryInfo memory; | |
18826 | |
18827 final PerformanceNavigation navigation; | |
18828 | |
18829 final PerformanceTiming timing; | |
18830 | |
18831 num webkitNow(); | |
18832 } | |
18833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18834 // for details. All rights reserved. Use of this source code is governed by a | |
18835 // BSD-style license that can be found in the LICENSE file. | |
18836 | |
18837 // WARNING: Do not edit - generated code. | |
18838 | |
18839 interface PerformanceNavigation { | |
18840 | |
18841 static const int TYPE_BACK_FORWARD = 2; | |
18842 | |
18843 static const int TYPE_NAVIGATE = 0; | |
18844 | |
18845 static const int TYPE_RELOAD = 1; | |
18846 | |
18847 static const int TYPE_RESERVED = 255; | |
18848 | |
18849 final int redirectCount; | |
18850 | |
18851 final int type; | |
18852 } | |
18853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18854 // for details. All rights reserved. Use of this source code is governed by a | |
18855 // BSD-style license that can be found in the LICENSE file. | |
18856 | |
18857 // WARNING: Do not edit - generated code. | |
18858 | |
18859 interface PerformanceTiming { | |
18860 | |
18861 final int connectEnd; | |
18862 | |
18863 final int connectStart; | |
18864 | |
18865 final int domComplete; | |
18866 | |
18867 final int domContentLoadedEventEnd; | |
18868 | |
18869 final int domContentLoadedEventStart; | |
18870 | |
18871 final int domInteractive; | |
18872 | |
18873 final int domLoading; | |
18874 | |
18875 final int domainLookupEnd; | |
18876 | |
18877 final int domainLookupStart; | |
18878 | |
18879 final int fetchStart; | |
18880 | |
18881 final int loadEventEnd; | |
18882 | |
18883 final int loadEventStart; | |
18884 | |
18885 final int navigationStart; | |
18886 | |
18887 final int redirectEnd; | |
18888 | |
18889 final int redirectStart; | |
18890 | |
18891 final int requestStart; | |
18892 | |
18893 final int responseEnd; | |
18894 | |
18895 final int responseStart; | |
18896 | |
18897 final int secureConnectionStart; | |
18898 | |
18899 final int unloadEventEnd; | |
18900 | |
18901 final int unloadEventStart; | |
18902 } | |
18903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18904 // for details. All rights reserved. Use of this source code is governed by a | |
18905 // BSD-style license that can be found in the LICENSE file. | |
18906 | |
18907 // WARNING: Do not edit - generated code. | |
18908 | |
18909 interface PopStateEvent extends Event { | |
18910 | |
18911 final Object state; | |
18912 } | |
18913 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18914 // for details. All rights reserved. Use of this source code is governed by a | |
18915 // BSD-style license that can be found in the LICENSE file. | |
18916 | |
18917 // WARNING: Do not edit - generated code. | |
18918 | |
18919 typedef bool PositionCallback(Geoposition position); | |
18920 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18921 // for details. All rights reserved. Use of this source code is governed by a | |
18922 // BSD-style license that can be found in the LICENSE file. | |
18923 | |
18924 // WARNING: Do not edit - generated code. | |
18925 | |
18926 interface PositionError { | |
18927 | |
18928 static const int PERMISSION_DENIED = 1; | |
18929 | |
18930 static const int POSITION_UNAVAILABLE = 2; | |
18931 | |
18932 static const int TIMEOUT = 3; | |
18933 | |
18934 final int code; | |
18935 | |
18936 final String message; | |
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 typedef bool PositionErrorCallback(PositionError error); | |
18945 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18946 // for details. All rights reserved. Use of this source code is governed by a | |
18947 // BSD-style license that can be found in the LICENSE file. | |
18948 | |
18949 // WARNING: Do not edit - generated code. | |
18950 | |
18951 interface ProcessingInstruction extends Node { | |
18952 | |
18953 String data; | |
18954 | |
18955 final StyleSheet sheet; | |
18956 | |
18957 final String target; | |
18958 } | |
18959 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18960 // for details. All rights reserved. Use of this source code is governed by a | |
18961 // BSD-style license that can be found in the LICENSE file. | |
18962 | |
18963 // WARNING: Do not edit - generated code. | |
18964 | |
18965 interface ProgressEvent extends Event { | |
18966 | |
18967 final bool lengthComputable; | |
18968 | |
18969 final int loaded; | |
18970 | |
18971 final int total; | |
18972 } | |
18973 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18974 // for details. All rights reserved. Use of this source code is governed by a | |
18975 // BSD-style license that can be found in the LICENSE file. | |
18976 | |
18977 // WARNING: Do not edit - generated code. | |
18978 | |
18979 interface RGBColor { | |
18980 | |
18981 final CSSPrimitiveValue blue; | |
18982 | |
18983 final CSSPrimitiveValue green; | |
18984 | |
18985 final CSSPrimitiveValue red; | |
18986 } | |
18987 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
18988 // for details. All rights reserved. Use of this source code is governed by a | |
18989 // BSD-style license that can be found in the LICENSE file. | |
18990 | |
18991 // WARNING: Do not edit - generated code. | |
18992 | |
18993 interface RTCPeerConnection extends EventTarget default _RTCPeerConnectionFactor
yProvider { | |
18994 | |
18995 RTCPeerConnection(Map rtcICEServers, [Map mediaConstraints]); | |
18996 | |
18997 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
18998 | |
18999 bool dispatchEvent(Event event); | |
19000 | |
19001 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
19002 } | |
19003 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19004 // for details. All rights reserved. Use of this source code is governed by a | |
19005 // BSD-style license that can be found in the LICENSE file. | |
19006 | |
19007 // WARNING: Do not edit - generated code. | |
19008 | |
19009 interface RadioNodeList extends NodeList { | |
19010 | |
19011 String value; | |
19012 } | |
19013 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19014 // for details. All rights reserved. Use of this source code is governed by a | |
19015 // BSD-style license that can be found in the LICENSE file. | |
19016 | |
19017 // WARNING: Do not edit - generated code. | |
19018 | |
19019 interface Range { | |
19020 | |
19021 static const int END_TO_END = 2; | |
19022 | |
19023 static const int END_TO_START = 3; | |
19024 | |
19025 static const int NODE_AFTER = 1; | |
19026 | |
19027 static const int NODE_BEFORE = 0; | |
19028 | |
19029 static const int NODE_BEFORE_AND_AFTER = 2; | |
19030 | |
19031 static const int NODE_INSIDE = 3; | |
19032 | |
19033 static const int START_TO_END = 1; | |
19034 | |
19035 static const int START_TO_START = 0; | |
19036 | |
19037 final bool collapsed; | |
19038 | |
19039 final Node commonAncestorContainer; | |
19040 | |
19041 final Node endContainer; | |
19042 | |
19043 final int endOffset; | |
19044 | |
19045 final Node startContainer; | |
19046 | |
19047 final int startOffset; | |
19048 | |
19049 DocumentFragment cloneContents(); | |
19050 | |
19051 Range cloneRange(); | |
19052 | |
19053 void collapse(bool toStart); | |
19054 | |
19055 int compareNode(Node refNode); | |
19056 | |
19057 int comparePoint(Node refNode, int offset); | |
19058 | |
19059 DocumentFragment createContextualFragment(String html); | |
19060 | |
19061 void deleteContents(); | |
19062 | |
19063 void detach(); | |
19064 | |
19065 void expand(String unit); | |
19066 | |
19067 DocumentFragment extractContents(); | |
19068 | |
19069 ClientRect getBoundingClientRect(); | |
19070 | |
19071 ClientRectList getClientRects(); | |
19072 | |
19073 void insertNode(Node newNode); | |
19074 | |
19075 bool intersectsNode(Node refNode); | |
19076 | |
19077 bool isPointInRange(Node refNode, int offset); | |
19078 | |
19079 void selectNode(Node refNode); | |
19080 | |
19081 void selectNodeContents(Node refNode); | |
19082 | |
19083 void setEnd(Node refNode, int offset); | |
19084 | |
19085 void setEndAfter(Node refNode); | |
19086 | |
19087 void setEndBefore(Node refNode); | |
19088 | |
19089 void setStart(Node refNode, int offset); | |
19090 | |
19091 void setStartAfter(Node refNode); | |
19092 | |
19093 void setStartBefore(Node refNode); | |
19094 | |
19095 void surroundContents(Node newParent); | |
19096 | |
19097 String toString(); | |
19098 } | |
19099 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19100 // for details. All rights reserved. Use of this source code is governed by a | |
19101 // BSD-style license that can be found in the LICENSE file. | |
19102 | |
19103 // WARNING: Do not edit - generated code. | |
19104 | |
19105 interface RangeException { | |
19106 | |
19107 static const int BAD_BOUNDARYPOINTS_ERR = 1; | |
19108 | |
19109 static const int INVALID_NODE_TYPE_ERR = 2; | |
19110 | |
19111 final int code; | |
19112 | |
19113 final String message; | |
19114 | |
19115 final String name; | |
19116 | |
19117 String toString(); | |
19118 } | |
19119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19120 // for details. All rights reserved. Use of this source code is governed by a | |
19121 // BSD-style license that can be found in the LICENSE file. | |
19122 | |
19123 // WARNING: Do not edit - generated code. | |
19124 | |
19125 interface RealtimeAnalyserNode extends AudioNode { | |
19126 | |
19127 int fftSize; | |
19128 | |
19129 final int frequencyBinCount; | |
19130 | |
19131 num maxDecibels; | |
19132 | |
19133 num minDecibels; | |
19134 | |
19135 num smoothingTimeConstant; | |
19136 | |
19137 void getByteFrequencyData(Uint8Array array); | |
19138 | |
19139 void getByteTimeDomainData(Uint8Array array); | |
19140 | |
19141 void getFloatFrequencyData(Float32Array array); | |
19142 } | |
19143 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19144 // for details. All rights reserved. Use of this source code is governed by a | |
19145 // BSD-style license that can be found in the LICENSE file. | |
19146 | |
19147 // WARNING: Do not edit - generated code. | |
19148 | |
19149 interface Rect { | |
19150 | |
19151 final CSSPrimitiveValue bottom; | |
19152 | |
19153 final CSSPrimitiveValue left; | |
19154 | |
19155 final CSSPrimitiveValue right; | |
19156 | |
19157 final CSSPrimitiveValue top; | |
19158 } | |
19159 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19160 // for details. All rights reserved. Use of this source code is governed by a | |
19161 // BSD-style license that can be found in the LICENSE file. | |
19162 | |
19163 // WARNING: Do not edit - generated code. | |
19164 | |
19165 typedef bool RequestAnimationFrameCallback(int time); | |
19166 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19167 // for details. All rights reserved. Use of this source code is governed by a | |
19168 // BSD-style license that can be found in the LICENSE file. | |
19169 | |
19170 // WARNING: Do not edit - generated code. | |
19171 | |
19172 interface SQLError { | |
19173 | |
19174 static const int CONSTRAINT_ERR = 6; | |
19175 | |
19176 static const int DATABASE_ERR = 1; | |
19177 | |
19178 static const int QUOTA_ERR = 4; | |
19179 | |
19180 static const int SYNTAX_ERR = 5; | |
19181 | |
19182 static const int TIMEOUT_ERR = 7; | |
19183 | |
19184 static const int TOO_LARGE_ERR = 3; | |
19185 | |
19186 static const int UNKNOWN_ERR = 0; | |
19187 | |
19188 static const int VERSION_ERR = 2; | |
19189 | |
19190 final int code; | |
19191 | |
19192 final String message; | |
19193 } | |
19194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19195 // for details. All rights reserved. Use of this source code is governed by a | |
19196 // BSD-style license that can be found in the LICENSE file. | |
19197 | |
19198 // WARNING: Do not edit - generated code. | |
19199 | |
19200 interface SQLException { | |
19201 | |
19202 static const int CONSTRAINT_ERR = 6; | |
19203 | |
19204 static const int DATABASE_ERR = 1; | |
19205 | |
19206 static const int QUOTA_ERR = 4; | |
19207 | |
19208 static const int SYNTAX_ERR = 5; | |
19209 | |
19210 static const int TIMEOUT_ERR = 7; | |
19211 | |
19212 static const int TOO_LARGE_ERR = 3; | |
19213 | |
19214 static const int UNKNOWN_ERR = 0; | |
19215 | |
19216 static const int VERSION_ERR = 2; | |
19217 | |
19218 final int code; | |
19219 | |
19220 final String message; | |
19221 } | |
19222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19223 // for details. All rights reserved. Use of this source code is governed by a | |
19224 // BSD-style license that can be found in the LICENSE file. | |
19225 | |
19226 // WARNING: Do not edit - generated code. | |
19227 | |
19228 interface SQLResultSet { | |
19229 | |
19230 final int insertId; | |
19231 | |
19232 final SQLResultSetRowList rows; | |
19233 | |
19234 final int rowsAffected; | |
19235 } | |
19236 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19237 // for details. All rights reserved. Use of this source code is governed by a | |
19238 // BSD-style license that can be found in the LICENSE file. | |
19239 | |
19240 // WARNING: Do not edit - generated code. | |
19241 | |
19242 interface SQLResultSetRowList { | |
19243 | |
19244 final int length; | |
19245 | |
19246 Map item(int index); | |
19247 } | |
19248 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19249 // for details. All rights reserved. Use of this source code is governed by a | |
19250 // BSD-style license that can be found in the LICENSE file. | |
19251 | |
19252 // WARNING: Do not edit - generated code. | |
19253 | |
19254 typedef bool SQLStatementCallback(SQLTransaction transaction, SQLResultSet resul
tSet); | |
19255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19256 // for details. All rights reserved. Use of this source code is governed by a | |
19257 // BSD-style license that can be found in the LICENSE file. | |
19258 | |
19259 // WARNING: Do not edit - generated code. | |
19260 | |
19261 typedef bool SQLStatementErrorCallback(SQLTransaction transaction, SQLError erro
r); | |
19262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19263 // for details. All rights reserved. Use of this source code is governed by a | |
19264 // BSD-style license that can be found in the LICENSE file. | |
19265 | |
19266 // WARNING: Do not edit - generated code. | |
19267 | |
19268 interface SQLTransaction { | |
19269 | |
19270 void executeSql(String sqlStatement, List arguments, [SQLStatementCallback cal
lback, SQLStatementErrorCallback errorCallback]); | |
19271 } | |
19272 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19273 // for details. All rights reserved. Use of this source code is governed by a | |
19274 // BSD-style license that can be found in the LICENSE file. | |
19275 | |
19276 // WARNING: Do not edit - generated code. | |
19277 | |
19278 typedef bool SQLTransactionCallback(SQLTransaction transaction); | |
19279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19280 // for details. All rights reserved. Use of this source code is governed by a | |
19281 // BSD-style license that can be found in the LICENSE file. | |
19282 | |
19283 // WARNING: Do not edit - generated code. | |
19284 | |
19285 typedef bool SQLTransactionErrorCallback(SQLError error); | |
19286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19287 // for details. All rights reserved. Use of this source code is governed by a | |
19288 // BSD-style license that can be found in the LICENSE file. | |
19289 | |
19290 // WARNING: Do not edit - generated code. | |
19291 | |
19292 interface SQLTransactionSync { | |
19293 | |
19294 SQLResultSet executeSql(String sqlStatement, List arguments); | |
19295 } | |
19296 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19297 // for details. All rights reserved. Use of this source code is governed by a | |
19298 // BSD-style license that can be found in the LICENSE file. | |
19299 | |
19300 // WARNING: Do not edit - generated code. | |
19301 | |
19302 typedef bool SQLTransactionSyncCallback(SQLTransactionSync transaction); | |
19303 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19304 // for details. All rights reserved. Use of this source code is governed by a | |
19305 // BSD-style license that can be found in the LICENSE file. | |
19306 | |
19307 // WARNING: Do not edit - generated code. | |
19308 | |
19309 interface SVGAElement extends SVGElement, SVGURIReference, SVGTests, SVGLangSpac
e, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { | |
19310 | |
19311 final SVGAnimatedString target; | |
19312 } | |
19313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19314 // for details. All rights reserved. Use of this source code is governed by a | |
19315 // BSD-style license that can be found in the LICENSE file. | |
19316 | |
19317 // WARNING: Do not edit - generated code. | |
19318 | |
19319 interface SVGAltGlyphDefElement extends SVGElement { | |
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 SVGAltGlyphElement extends SVGTextPositioningElement, SVGURIReference
{ | |
19328 | |
19329 String format; | |
19330 | |
19331 String glyphRef; | |
19332 } | |
19333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19334 // for details. All rights reserved. Use of this source code is governed by a | |
19335 // BSD-style license that can be found in the LICENSE file. | |
19336 | |
19337 // WARNING: Do not edit - generated code. | |
19338 | |
19339 interface SVGAltGlyphItemElement extends SVGElement { | |
19340 } | |
19341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19342 // for details. All rights reserved. Use of this source code is governed by a | |
19343 // BSD-style license that can be found in the LICENSE file. | |
19344 | |
19345 // WARNING: Do not edit - generated code. | |
19346 | |
19347 interface SVGAngle { | |
19348 | |
19349 static const int SVG_ANGLETYPE_DEG = 2; | |
19350 | |
19351 static const int SVG_ANGLETYPE_GRAD = 4; | |
19352 | |
19353 static const int SVG_ANGLETYPE_RAD = 3; | |
19354 | |
19355 static const int SVG_ANGLETYPE_UNKNOWN = 0; | |
19356 | |
19357 static const int SVG_ANGLETYPE_UNSPECIFIED = 1; | |
19358 | |
19359 final int unitType; | |
19360 | |
19361 num value; | |
19362 | |
19363 String valueAsString; | |
19364 | |
19365 num valueInSpecifiedUnits; | |
19366 | |
19367 void convertToSpecifiedUnits(int unitType); | |
19368 | |
19369 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits); | |
19370 } | |
19371 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19372 // for details. All rights reserved. Use of this source code is governed by a | |
19373 // BSD-style license that can be found in the LICENSE file. | |
19374 | |
19375 // WARNING: Do not edit - generated code. | |
19376 | |
19377 interface SVGAnimateColorElement extends SVGAnimationElement { | |
19378 } | |
19379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19380 // for details. All rights reserved. Use of this source code is governed by a | |
19381 // BSD-style license that can be found in the LICENSE file. | |
19382 | |
19383 // WARNING: Do not edit - generated code. | |
19384 | |
19385 interface SVGAnimateElement extends SVGAnimationElement { | |
19386 } | |
19387 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19388 // for details. All rights reserved. Use of this source code is governed by a | |
19389 // BSD-style license that can be found in the LICENSE file. | |
19390 | |
19391 // WARNING: Do not edit - generated code. | |
19392 | |
19393 interface SVGAnimateMotionElement extends SVGAnimationElement { | |
19394 } | |
19395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19396 // for details. All rights reserved. Use of this source code is governed by a | |
19397 // BSD-style license that can be found in the LICENSE file. | |
19398 | |
19399 // WARNING: Do not edit - generated code. | |
19400 | |
19401 interface SVGAnimateTransformElement extends SVGAnimationElement { | |
19402 } | |
19403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19404 // for details. All rights reserved. Use of this source code is governed by a | |
19405 // BSD-style license that can be found in the LICENSE file. | |
19406 | |
19407 // WARNING: Do not edit - generated code. | |
19408 | |
19409 interface SVGAnimatedAngle { | |
19410 | |
19411 final SVGAngle animVal; | |
19412 | |
19413 final SVGAngle baseVal; | |
19414 } | |
19415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19416 // for details. All rights reserved. Use of this source code is governed by a | |
19417 // BSD-style license that can be found in the LICENSE file. | |
19418 | |
19419 // WARNING: Do not edit - generated code. | |
19420 | |
19421 interface SVGAnimatedBoolean { | |
19422 | |
19423 final bool animVal; | |
19424 | |
19425 bool baseVal; | |
19426 } | |
19427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19428 // for details. All rights reserved. Use of this source code is governed by a | |
19429 // BSD-style license that can be found in the LICENSE file. | |
19430 | |
19431 // WARNING: Do not edit - generated code. | |
19432 | |
19433 interface SVGAnimatedEnumeration { | |
19434 | |
19435 final int animVal; | |
19436 | |
19437 int baseVal; | |
19438 } | |
19439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19440 // for details. All rights reserved. Use of this source code is governed by a | |
19441 // BSD-style license that can be found in the LICENSE file. | |
19442 | |
19443 // WARNING: Do not edit - generated code. | |
19444 | |
19445 interface SVGAnimatedInteger { | |
19446 | |
19447 final int animVal; | |
19448 | |
19449 int baseVal; | |
19450 } | |
19451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19452 // for details. All rights reserved. Use of this source code is governed by a | |
19453 // BSD-style license that can be found in the LICENSE file. | |
19454 | |
19455 // WARNING: Do not edit - generated code. | |
19456 | |
19457 interface SVGAnimatedLength { | |
19458 | |
19459 final SVGLength animVal; | |
19460 | |
19461 final SVGLength baseVal; | |
19462 } | |
19463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19464 // for details. All rights reserved. Use of this source code is governed by a | |
19465 // BSD-style license that can be found in the LICENSE file. | |
19466 | |
19467 // WARNING: Do not edit - generated code. | |
19468 | |
19469 interface SVGAnimatedLengthList { | |
19470 | |
19471 final SVGLengthList animVal; | |
19472 | |
19473 final SVGLengthList baseVal; | |
19474 } | |
19475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19476 // for details. All rights reserved. Use of this source code is governed by a | |
19477 // BSD-style license that can be found in the LICENSE file. | |
19478 | |
19479 // WARNING: Do not edit - generated code. | |
19480 | |
19481 interface SVGAnimatedNumber { | |
19482 | |
19483 final num animVal; | |
19484 | |
19485 num baseVal; | |
19486 } | |
19487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19488 // for details. All rights reserved. Use of this source code is governed by a | |
19489 // BSD-style license that can be found in the LICENSE file. | |
19490 | |
19491 // WARNING: Do not edit - generated code. | |
19492 | |
19493 interface SVGAnimatedNumberList { | |
19494 | |
19495 final SVGNumberList animVal; | |
19496 | |
19497 final SVGNumberList baseVal; | |
19498 } | |
19499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19500 // for details. All rights reserved. Use of this source code is governed by a | |
19501 // BSD-style license that can be found in the LICENSE file. | |
19502 | |
19503 // WARNING: Do not edit - generated code. | |
19504 | |
19505 interface SVGAnimatedPreserveAspectRatio { | |
19506 | |
19507 final SVGPreserveAspectRatio animVal; | |
19508 | |
19509 final SVGPreserveAspectRatio baseVal; | |
19510 } | |
19511 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19512 // for details. All rights reserved. Use of this source code is governed by a | |
19513 // BSD-style license that can be found in the LICENSE file. | |
19514 | |
19515 // WARNING: Do not edit - generated code. | |
19516 | |
19517 interface SVGAnimatedRect { | |
19518 | |
19519 final SVGRect animVal; | |
19520 | |
19521 final SVGRect baseVal; | |
19522 } | |
19523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19524 // for details. All rights reserved. Use of this source code is governed by a | |
19525 // BSD-style license that can be found in the LICENSE file. | |
19526 | |
19527 // WARNING: Do not edit - generated code. | |
19528 | |
19529 interface SVGAnimatedString { | |
19530 | |
19531 final String animVal; | |
19532 | |
19533 String baseVal; | |
19534 } | |
19535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19536 // for details. All rights reserved. Use of this source code is governed by a | |
19537 // BSD-style license that can be found in the LICENSE file. | |
19538 | |
19539 // WARNING: Do not edit - generated code. | |
19540 | |
19541 interface SVGAnimatedTransformList { | |
19542 | |
19543 final SVGTransformList animVal; | |
19544 | |
19545 final SVGTransformList baseVal; | |
19546 } | |
19547 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19548 // for details. All rights reserved. Use of this source code is governed by a | |
19549 // BSD-style license that can be found in the LICENSE file. | |
19550 | |
19551 // WARNING: Do not edit - generated code. | |
19552 | |
19553 interface SVGAnimationElement extends SVGElement, SVGTests, SVGExternalResources
Required, ElementTimeControl { | |
19554 | |
19555 final SVGElement targetElement; | |
19556 | |
19557 num getCurrentTime(); | |
19558 | |
19559 num getSimpleDuration(); | |
19560 | |
19561 num getStartTime(); | |
19562 } | |
19563 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19564 // for details. All rights reserved. Use of this source code is governed by a | |
19565 // BSD-style license that can be found in the LICENSE file. | |
19566 | |
19567 // WARNING: Do not edit - generated code. | |
19568 | |
19569 interface SVGCircleElement extends SVGElement, SVGTests, SVGLangSpace, SVGExtern
alResourcesRequired, SVGStylable, SVGTransformable { | |
19570 | |
19571 final SVGAnimatedLength cx; | |
19572 | |
19573 final SVGAnimatedLength cy; | |
19574 | |
19575 final SVGAnimatedLength r; | |
19576 } | |
19577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19578 // for details. All rights reserved. Use of this source code is governed by a | |
19579 // BSD-style license that can be found in the LICENSE file. | |
19580 | |
19581 // WARNING: Do not edit - generated code. | |
19582 | |
19583 interface SVGClipPathElement extends SVGElement, SVGTests, SVGLangSpace, SVGExte
rnalResourcesRequired, SVGStylable, SVGTransformable { | |
19584 | |
19585 final SVGAnimatedEnumeration clipPathUnits; | |
19586 } | |
19587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19588 // for details. All rights reserved. Use of this source code is governed by a | |
19589 // BSD-style license that can be found in the LICENSE file. | |
19590 | |
19591 // WARNING: Do not edit - generated code. | |
19592 | |
19593 interface SVGColor extends CSSValue { | |
19594 | |
19595 static const int SVG_COLORTYPE_CURRENTCOLOR = 3; | |
19596 | |
19597 static const int SVG_COLORTYPE_RGBCOLOR = 1; | |
19598 | |
19599 static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; | |
19600 | |
19601 static const int SVG_COLORTYPE_UNKNOWN = 0; | |
19602 | |
19603 final int colorType; | |
19604 | |
19605 final RGBColor rgbColor; | |
19606 | |
19607 void setColor(int colorType, String rgbColor, String iccColor); | |
19608 | |
19609 void setRGBColor(String rgbColor); | |
19610 | |
19611 void setRGBColorICCColor(String rgbColor, String iccColor); | |
19612 } | |
19613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19614 // for details. All rights reserved. Use of this source code is governed by a | |
19615 // BSD-style license that can be found in the LICENSE file. | |
19616 | |
19617 // WARNING: Do not edit - generated code. | |
19618 | |
19619 interface SVGComponentTransferFunctionElement extends SVGElement { | |
19620 | |
19621 static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; | |
19622 | |
19623 static const int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; | |
19624 | |
19625 static const int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; | |
19626 | |
19627 static const int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; | |
19628 | |
19629 static const int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; | |
19630 | |
19631 static const int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; | |
19632 | |
19633 final SVGAnimatedNumber amplitude; | |
19634 | |
19635 final SVGAnimatedNumber exponent; | |
19636 | |
19637 final SVGAnimatedNumber intercept; | |
19638 | |
19639 final SVGAnimatedNumber offset; | |
19640 | |
19641 final SVGAnimatedNumber slope; | |
19642 | |
19643 final SVGAnimatedNumberList tableValues; | |
19644 | |
19645 final SVGAnimatedEnumeration type; | |
19646 } | |
19647 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19648 // for details. All rights reserved. Use of this source code is governed by a | |
19649 // BSD-style license that can be found in the LICENSE file. | |
19650 | |
19651 // WARNING: Do not edit - generated code. | |
19652 | |
19653 interface SVGCursorElement extends SVGElement, SVGURIReference, SVGTests, SVGExt
ernalResourcesRequired { | |
19654 | |
19655 final SVGAnimatedLength x; | |
19656 | |
19657 final SVGAnimatedLength y; | |
19658 } | |
19659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19660 // for details. All rights reserved. Use of this source code is governed by a | |
19661 // BSD-style license that can be found in the LICENSE file. | |
19662 | |
19663 // WARNING: Do not edit - generated code. | |
19664 | |
19665 interface SVGDefsElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable, SVGTransformable { | |
19666 } | |
19667 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19668 // for details. All rights reserved. Use of this source code is governed by a | |
19669 // BSD-style license that can be found in the LICENSE file. | |
19670 | |
19671 // WARNING: Do not edit - generated code. | |
19672 | |
19673 interface SVGDescElement extends SVGElement, SVGLangSpace, SVGStylable { | |
19674 } | |
19675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19676 // for details. All rights reserved. Use of this source code is governed by a | |
19677 // BSD-style license that can be found in the LICENSE file. | |
19678 | |
19679 // WARNING: Do not edit - generated code. | |
19680 | |
19681 interface SVGDocument extends Document { | |
19682 | |
19683 final SVGSVGElement rootElement; | |
19684 | |
19685 Event createEvent(String eventType); | |
19686 } | |
19687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19688 // for details. All rights reserved. Use of this source code is governed by a | |
19689 // BSD-style license that can be found in the LICENSE file. | |
19690 | |
19691 // WARNING: Do not edit - generated code. | |
19692 | |
19693 interface SVGElement extends Element { | |
19694 | |
19695 String id; | |
19696 | |
19697 final SVGSVGElement ownerSVGElement; | |
19698 | |
19699 final SVGElement viewportElement; | |
19700 | |
19701 String xmlbase; | |
19702 } | |
19703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19704 // for details. All rights reserved. Use of this source code is governed by a | |
19705 // BSD-style license that can be found in the LICENSE file. | |
19706 | |
19707 // WARNING: Do not edit - generated code. | |
19708 | |
19709 interface SVGElementInstance extends EventTarget { | |
19710 | |
19711 final SVGElementInstanceList childNodes; | |
19712 | |
19713 final SVGElement correspondingElement; | |
19714 | |
19715 final SVGUseElement correspondingUseElement; | |
19716 | |
19717 final SVGElementInstance firstChild; | |
19718 | |
19719 final SVGElementInstance lastChild; | |
19720 | |
19721 final SVGElementInstance nextSibling; | |
19722 | |
19723 final SVGElementInstance parentNode; | |
19724 | |
19725 final SVGElementInstance previousSibling; | |
19726 } | |
19727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19728 // for details. All rights reserved. Use of this source code is governed by a | |
19729 // BSD-style license that can be found in the LICENSE file. | |
19730 | |
19731 // WARNING: Do not edit - generated code. | |
19732 | |
19733 interface SVGElementInstanceList { | |
19734 | |
19735 final int length; | |
19736 | |
19737 SVGElementInstance item(int index); | |
19738 } | |
19739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19740 // for details. All rights reserved. Use of this source code is governed by a | |
19741 // BSD-style license that can be found in the LICENSE file. | |
19742 | |
19743 // WARNING: Do not edit - generated code. | |
19744 | |
19745 interface SVGEllipseElement extends SVGElement, SVGTests, SVGLangSpace, SVGExter
nalResourcesRequired, SVGStylable, SVGTransformable { | |
19746 | |
19747 final SVGAnimatedLength cx; | |
19748 | |
19749 final SVGAnimatedLength cy; | |
19750 | |
19751 final SVGAnimatedLength rx; | |
19752 | |
19753 final SVGAnimatedLength ry; | |
19754 } | |
19755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19756 // for details. All rights reserved. Use of this source code is governed by a | |
19757 // BSD-style license that can be found in the LICENSE file. | |
19758 | |
19759 // WARNING: Do not edit - generated code. | |
19760 | |
19761 interface SVGException { | |
19762 | |
19763 static const int SVG_INVALID_VALUE_ERR = 1; | |
19764 | |
19765 static const int SVG_MATRIX_NOT_INVERTABLE = 2; | |
19766 | |
19767 static const int SVG_WRONG_TYPE_ERR = 0; | |
19768 | |
19769 final int code; | |
19770 | |
19771 final String message; | |
19772 | |
19773 final String name; | |
19774 | |
19775 String toString(); | |
19776 } | |
19777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19778 // for details. All rights reserved. Use of this source code is governed by a | |
19779 // BSD-style license that can be found in the LICENSE file. | |
19780 | |
19781 // WARNING: Do not edit - generated code. | |
19782 | |
19783 interface SVGExternalResourcesRequired { | |
19784 | |
19785 final SVGAnimatedBoolean externalResourcesRequired; | |
19786 } | |
19787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19788 // for details. All rights reserved. Use of this source code is governed by a | |
19789 // BSD-style license that can be found in the LICENSE file. | |
19790 | |
19791 // WARNING: Do not edit - generated code. | |
19792 | |
19793 interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttrib
utes { | |
19794 | |
19795 static const int SVG_FEBLEND_MODE_DARKEN = 4; | |
19796 | |
19797 static const int SVG_FEBLEND_MODE_LIGHTEN = 5; | |
19798 | |
19799 static const int SVG_FEBLEND_MODE_MULTIPLY = 2; | |
19800 | |
19801 static const int SVG_FEBLEND_MODE_NORMAL = 1; | |
19802 | |
19803 static const int SVG_FEBLEND_MODE_SCREEN = 3; | |
19804 | |
19805 static const int SVG_FEBLEND_MODE_UNKNOWN = 0; | |
19806 | |
19807 final SVGAnimatedString in1; | |
19808 | |
19809 final SVGAnimatedString in2; | |
19810 | |
19811 final SVGAnimatedEnumeration mode; | |
19812 } | |
19813 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19814 // for details. All rights reserved. Use of this source code is governed by a | |
19815 // BSD-style license that can be found in the LICENSE file. | |
19816 | |
19817 // WARNING: Do not edit - generated code. | |
19818 | |
19819 interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandard
Attributes { | |
19820 | |
19821 static const int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; | |
19822 | |
19823 static const int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; | |
19824 | |
19825 static const int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; | |
19826 | |
19827 static const int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; | |
19828 | |
19829 static const int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; | |
19830 | |
19831 final SVGAnimatedString in1; | |
19832 | |
19833 final SVGAnimatedEnumeration type; | |
19834 | |
19835 final SVGAnimatedNumberList values; | |
19836 } | |
19837 // Copyright (c) 2012, 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 interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveSt
andardAttributes { | |
19844 | |
19845 final SVGAnimatedString in1; | |
19846 } | |
19847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19848 // for details. All rights reserved. Use of this source code is governed by a | |
19849 // BSD-style license that can be found in the LICENSE file. | |
19850 | |
19851 // WARNING: Do not edit - generated code. | |
19852 | |
19853 interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAt
tributes { | |
19854 | |
19855 static const int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; | |
19856 | |
19857 static const int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; | |
19858 | |
19859 static const int SVG_FECOMPOSITE_OPERATOR_IN = 2; | |
19860 | |
19861 static const int SVG_FECOMPOSITE_OPERATOR_OUT = 3; | |
19862 | |
19863 static const int SVG_FECOMPOSITE_OPERATOR_OVER = 1; | |
19864 | |
19865 static const int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; | |
19866 | |
19867 static const int SVG_FECOMPOSITE_OPERATOR_XOR = 5; | |
19868 | |
19869 final SVGAnimatedString in1; | |
19870 | |
19871 final SVGAnimatedString in2; | |
19872 | |
19873 final SVGAnimatedNumber k1; | |
19874 | |
19875 final SVGAnimatedNumber k2; | |
19876 | |
19877 final SVGAnimatedNumber k3; | |
19878 | |
19879 final SVGAnimatedNumber k4; | |
19880 | |
19881 final SVGAnimatedEnumeration operator; | |
19882 } | |
19883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19884 // for details. All rights reserved. Use of this source code is governed by a | |
19885 // BSD-style license that can be found in the LICENSE file. | |
19886 | |
19887 // WARNING: Do not edit - generated code. | |
19888 | |
19889 interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStand
ardAttributes { | |
19890 | |
19891 static const int SVG_EDGEMODE_DUPLICATE = 1; | |
19892 | |
19893 static const int SVG_EDGEMODE_NONE = 3; | |
19894 | |
19895 static const int SVG_EDGEMODE_UNKNOWN = 0; | |
19896 | |
19897 static const int SVG_EDGEMODE_WRAP = 2; | |
19898 | |
19899 final SVGAnimatedNumber bias; | |
19900 | |
19901 final SVGAnimatedNumber divisor; | |
19902 | |
19903 final SVGAnimatedEnumeration edgeMode; | |
19904 | |
19905 final SVGAnimatedString in1; | |
19906 | |
19907 final SVGAnimatedNumberList kernelMatrix; | |
19908 | |
19909 final SVGAnimatedNumber kernelUnitLengthX; | |
19910 | |
19911 final SVGAnimatedNumber kernelUnitLengthY; | |
19912 | |
19913 final SVGAnimatedInteger orderX; | |
19914 | |
19915 final SVGAnimatedInteger orderY; | |
19916 | |
19917 final SVGAnimatedBoolean preserveAlpha; | |
19918 | |
19919 final SVGAnimatedInteger targetX; | |
19920 | |
19921 final SVGAnimatedInteger targetY; | |
19922 } | |
19923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19924 // for details. All rights reserved. Use of this source code is governed by a | |
19925 // BSD-style license that can be found in the LICENSE file. | |
19926 | |
19927 // WARNING: Do not edit - generated code. | |
19928 | |
19929 interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStan
dardAttributes { | |
19930 | |
19931 final SVGAnimatedNumber diffuseConstant; | |
19932 | |
19933 final SVGAnimatedString in1; | |
19934 | |
19935 final SVGAnimatedNumber kernelUnitLengthX; | |
19936 | |
19937 final SVGAnimatedNumber kernelUnitLengthY; | |
19938 | |
19939 final SVGAnimatedNumber surfaceScale; | |
19940 } | |
19941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19942 // for details. All rights reserved. Use of this source code is governed by a | |
19943 // BSD-style license that can be found in the LICENSE file. | |
19944 | |
19945 // WARNING: Do not edit - generated code. | |
19946 | |
19947 interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStan
dardAttributes { | |
19948 | |
19949 static const int SVG_CHANNEL_A = 4; | |
19950 | |
19951 static const int SVG_CHANNEL_B = 3; | |
19952 | |
19953 static const int SVG_CHANNEL_G = 2; | |
19954 | |
19955 static const int SVG_CHANNEL_R = 1; | |
19956 | |
19957 static const int SVG_CHANNEL_UNKNOWN = 0; | |
19958 | |
19959 final SVGAnimatedString in1; | |
19960 | |
19961 final SVGAnimatedString in2; | |
19962 | |
19963 final SVGAnimatedNumber scale; | |
19964 | |
19965 final SVGAnimatedEnumeration xChannelSelector; | |
19966 | |
19967 final SVGAnimatedEnumeration yChannelSelector; | |
19968 } | |
19969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19970 // for details. All rights reserved. Use of this source code is governed by a | |
19971 // BSD-style license that can be found in the LICENSE file. | |
19972 | |
19973 // WARNING: Do not edit - generated code. | |
19974 | |
19975 interface SVGFEDistantLightElement extends SVGElement { | |
19976 | |
19977 final SVGAnimatedNumber azimuth; | |
19978 | |
19979 final SVGAnimatedNumber elevation; | |
19980 } | |
19981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
19982 // for details. All rights reserved. Use of this source code is governed by a | |
19983 // BSD-style license that can be found in the LICENSE file. | |
19984 | |
19985 // WARNING: Do not edit - generated code. | |
19986 | |
19987 interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardA
ttributes { | |
19988 | |
19989 final SVGAnimatedNumber dx; | |
19990 | |
19991 final SVGAnimatedNumber dy; | |
19992 | |
19993 final SVGAnimatedString in1; | |
19994 | |
19995 final SVGAnimatedNumber stdDeviationX; | |
19996 | |
19997 final SVGAnimatedNumber stdDeviationY; | |
19998 | |
19999 void setStdDeviation(num stdDeviationX, num stdDeviationY); | |
20000 } | |
20001 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20002 // for details. All rights reserved. Use of this source code is governed by a | |
20003 // BSD-style license that can be found in the LICENSE file. | |
20004 | |
20005 // WARNING: Do not edit - generated code. | |
20006 | |
20007 interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttrib
utes { | |
20008 } | |
20009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20010 // for details. All rights reserved. Use of this source code is governed by a | |
20011 // BSD-style license that can be found in the LICENSE file. | |
20012 | |
20013 // WARNING: Do not edit - generated code. | |
20014 | |
20015 interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { | |
20016 } | |
20017 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20018 // for details. All rights reserved. Use of this source code is governed by a | |
20019 // BSD-style license that can be found in the LICENSE file. | |
20020 | |
20021 // WARNING: Do not edit - generated code. | |
20022 | |
20023 interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { | |
20024 } | |
20025 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20026 // for details. All rights reserved. Use of this source code is governed by a | |
20027 // BSD-style license that can be found in the LICENSE file. | |
20028 | |
20029 // WARNING: Do not edit - generated code. | |
20030 | |
20031 interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { | |
20032 } | |
20033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20034 // for details. All rights reserved. Use of this source code is governed by a | |
20035 // BSD-style license that can be found in the LICENSE file. | |
20036 | |
20037 // WARNING: Do not edit - generated code. | |
20038 | |
20039 interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { | |
20040 } | |
20041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20042 // for details. All rights reserved. Use of this source code is governed by a | |
20043 // BSD-style license that can be found in the LICENSE file. | |
20044 | |
20045 // WARNING: Do not edit - generated code. | |
20046 | |
20047 interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandar
dAttributes { | |
20048 | |
20049 final SVGAnimatedString in1; | |
20050 | |
20051 final SVGAnimatedNumber stdDeviationX; | |
20052 | |
20053 final SVGAnimatedNumber stdDeviationY; | |
20054 | |
20055 void setStdDeviation(num stdDeviationX, num stdDeviationY); | |
20056 } | |
20057 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20058 // for details. All rights reserved. Use of this source code is governed by a | |
20059 // BSD-style license that can be found in the LICENSE file. | |
20060 | |
20061 // WARNING: Do not edit - generated code. | |
20062 | |
20063 interface SVGFEImageElement extends SVGElement, SVGURIReference, SVGLangSpace, S
VGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes { | |
20064 | |
20065 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | |
20066 } | |
20067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20068 // for details. All rights reserved. Use of this source code is governed by a | |
20069 // BSD-style license that can be found in the LICENSE file. | |
20070 | |
20071 // WARNING: Do not edit - generated code. | |
20072 | |
20073 interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttrib
utes { | |
20074 } | |
20075 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20076 // for details. All rights reserved. Use of this source code is governed by a | |
20077 // BSD-style license that can be found in the LICENSE file. | |
20078 | |
20079 // WARNING: Do not edit - generated code. | |
20080 | |
20081 interface SVGFEMergeNodeElement extends SVGElement { | |
20082 | |
20083 final SVGAnimatedString in1; | |
20084 } | |
20085 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20086 // for details. All rights reserved. Use of this source code is governed by a | |
20087 // BSD-style license that can be found in the LICENSE file. | |
20088 | |
20089 // WARNING: Do not edit - generated code. | |
20090 | |
20091 interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardA
ttributes { | |
20092 | |
20093 static const int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; | |
20094 | |
20095 static const int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; | |
20096 | |
20097 static const int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; | |
20098 | |
20099 final SVGAnimatedString in1; | |
20100 | |
20101 final SVGAnimatedEnumeration operator; | |
20102 | |
20103 final SVGAnimatedNumber radiusX; | |
20104 | |
20105 final SVGAnimatedNumber radiusY; | |
20106 | |
20107 void setRadius(num radiusX, num radiusY); | |
20108 } | |
20109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20110 // for details. All rights reserved. Use of this source code is governed by a | |
20111 // BSD-style license that can be found in the LICENSE file. | |
20112 | |
20113 // WARNING: Do not edit - generated code. | |
20114 | |
20115 interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttri
butes { | |
20116 | |
20117 final SVGAnimatedNumber dx; | |
20118 | |
20119 final SVGAnimatedNumber dy; | |
20120 | |
20121 final SVGAnimatedString in1; | |
20122 } | |
20123 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20124 // for details. All rights reserved. Use of this source code is governed by a | |
20125 // BSD-style license that can be found in the LICENSE file. | |
20126 | |
20127 // WARNING: Do not edit - generated code. | |
20128 | |
20129 interface SVGFEPointLightElement extends SVGElement { | |
20130 | |
20131 final SVGAnimatedNumber x; | |
20132 | |
20133 final SVGAnimatedNumber y; | |
20134 | |
20135 final SVGAnimatedNumber z; | |
20136 } | |
20137 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20138 // for details. All rights reserved. Use of this source code is governed by a | |
20139 // BSD-style license that can be found in the LICENSE file. | |
20140 | |
20141 // WARNING: Do not edit - generated code. | |
20142 | |
20143 interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveSta
ndardAttributes { | |
20144 | |
20145 final SVGAnimatedString in1; | |
20146 | |
20147 final SVGAnimatedNumber specularConstant; | |
20148 | |
20149 final SVGAnimatedNumber specularExponent; | |
20150 | |
20151 final SVGAnimatedNumber surfaceScale; | |
20152 } | |
20153 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20154 // for details. All rights reserved. Use of this source code is governed by a | |
20155 // BSD-style license that can be found in the LICENSE file. | |
20156 | |
20157 // WARNING: Do not edit - generated code. | |
20158 | |
20159 interface SVGFESpotLightElement extends SVGElement { | |
20160 | |
20161 final SVGAnimatedNumber limitingConeAngle; | |
20162 | |
20163 final SVGAnimatedNumber pointsAtX; | |
20164 | |
20165 final SVGAnimatedNumber pointsAtY; | |
20166 | |
20167 final SVGAnimatedNumber pointsAtZ; | |
20168 | |
20169 final SVGAnimatedNumber specularExponent; | |
20170 | |
20171 final SVGAnimatedNumber x; | |
20172 | |
20173 final SVGAnimatedNumber y; | |
20174 | |
20175 final SVGAnimatedNumber z; | |
20176 } | |
20177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20178 // for details. All rights reserved. Use of this source code is governed by a | |
20179 // BSD-style license that can be found in the LICENSE file. | |
20180 | |
20181 // WARNING: Do not edit - generated code. | |
20182 | |
20183 interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttribu
tes { | |
20184 | |
20185 final SVGAnimatedString in1; | |
20186 } | |
20187 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20188 // for details. All rights reserved. Use of this source code is governed by a | |
20189 // BSD-style license that can be found in the LICENSE file. | |
20190 | |
20191 // WARNING: Do not edit - generated code. | |
20192 | |
20193 interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardA
ttributes { | |
20194 | |
20195 static const int SVG_STITCHTYPE_NOSTITCH = 2; | |
20196 | |
20197 static const int SVG_STITCHTYPE_STITCH = 1; | |
20198 | |
20199 static const int SVG_STITCHTYPE_UNKNOWN = 0; | |
20200 | |
20201 static const int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; | |
20202 | |
20203 static const int SVG_TURBULENCE_TYPE_TURBULENCE = 2; | |
20204 | |
20205 static const int SVG_TURBULENCE_TYPE_UNKNOWN = 0; | |
20206 | |
20207 final SVGAnimatedNumber baseFrequencyX; | |
20208 | |
20209 final SVGAnimatedNumber baseFrequencyY; | |
20210 | |
20211 final SVGAnimatedInteger numOctaves; | |
20212 | |
20213 final SVGAnimatedNumber seed; | |
20214 | |
20215 final SVGAnimatedEnumeration stitchTiles; | |
20216 | |
20217 final SVGAnimatedEnumeration type; | |
20218 } | |
20219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20220 // for details. All rights reserved. Use of this source code is governed by a | |
20221 // BSD-style license that can be found in the LICENSE file. | |
20222 | |
20223 // WARNING: Do not edit - generated code. | |
20224 | |
20225 interface SVGFilterElement extends SVGElement, SVGURIReference, SVGLangSpace, SV
GExternalResourcesRequired, SVGStylable { | |
20226 | |
20227 final SVGAnimatedInteger filterResX; | |
20228 | |
20229 final SVGAnimatedInteger filterResY; | |
20230 | |
20231 final SVGAnimatedEnumeration filterUnits; | |
20232 | |
20233 final SVGAnimatedLength height; | |
20234 | |
20235 final SVGAnimatedEnumeration primitiveUnits; | |
20236 | |
20237 final SVGAnimatedLength width; | |
20238 | |
20239 final SVGAnimatedLength x; | |
20240 | |
20241 final SVGAnimatedLength y; | |
20242 | |
20243 void setFilterRes(int filterResX, int filterResY); | |
20244 } | |
20245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20246 // for details. All rights reserved. Use of this source code is governed by a | |
20247 // BSD-style license that can be found in the LICENSE file. | |
20248 | |
20249 // WARNING: Do not edit - generated code. | |
20250 | |
20251 interface SVGFilterPrimitiveStandardAttributes extends SVGStylable { | |
20252 | |
20253 final SVGAnimatedLength height; | |
20254 | |
20255 final SVGAnimatedString result; | |
20256 | |
20257 final SVGAnimatedLength width; | |
20258 | |
20259 final SVGAnimatedLength x; | |
20260 | |
20261 final SVGAnimatedLength y; | |
20262 } | |
20263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20264 // for details. All rights reserved. Use of this source code is governed by a | |
20265 // BSD-style license that can be found in the LICENSE file. | |
20266 | |
20267 // WARNING: Do not edit - generated code. | |
20268 | |
20269 interface SVGFitToViewBox { | |
20270 | |
20271 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | |
20272 | |
20273 final SVGAnimatedRect viewBox; | |
20274 } | |
20275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20276 // for details. All rights reserved. Use of this source code is governed by a | |
20277 // BSD-style license that can be found in the LICENSE file. | |
20278 | |
20279 // WARNING: Do not edit - generated code. | |
20280 | |
20281 interface SVGFontElement extends SVGElement { | |
20282 } | |
20283 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20284 // for details. All rights reserved. Use of this source code is governed by a | |
20285 // BSD-style license that can be found in the LICENSE file. | |
20286 | |
20287 // WARNING: Do not edit - generated code. | |
20288 | |
20289 interface SVGFontFaceElement extends SVGElement { | |
20290 } | |
20291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20292 // for details. All rights reserved. Use of this source code is governed by a | |
20293 // BSD-style license that can be found in the LICENSE file. | |
20294 | |
20295 // WARNING: Do not edit - generated code. | |
20296 | |
20297 interface SVGFontFaceFormatElement extends SVGElement { | |
20298 } | |
20299 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20300 // for details. All rights reserved. Use of this source code is governed by a | |
20301 // BSD-style license that can be found in the LICENSE file. | |
20302 | |
20303 // WARNING: Do not edit - generated code. | |
20304 | |
20305 interface SVGFontFaceNameElement extends SVGElement { | |
20306 } | |
20307 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20308 // for details. All rights reserved. Use of this source code is governed by a | |
20309 // BSD-style license that can be found in the LICENSE file. | |
20310 | |
20311 // WARNING: Do not edit - generated code. | |
20312 | |
20313 interface SVGFontFaceSrcElement extends SVGElement { | |
20314 } | |
20315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20316 // for details. All rights reserved. Use of this source code is governed by a | |
20317 // BSD-style license that can be found in the LICENSE file. | |
20318 | |
20319 // WARNING: Do not edit - generated code. | |
20320 | |
20321 interface SVGFontFaceUriElement extends SVGElement { | |
20322 } | |
20323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20324 // for details. All rights reserved. Use of this source code is governed by a | |
20325 // BSD-style license that can be found in the LICENSE file. | |
20326 | |
20327 // WARNING: Do not edit - generated code. | |
20328 | |
20329 interface SVGForeignObjectElement extends SVGElement, SVGTests, SVGLangSpace, SV
GExternalResourcesRequired, SVGStylable, SVGTransformable { | |
20330 | |
20331 final SVGAnimatedLength height; | |
20332 | |
20333 final SVGAnimatedLength width; | |
20334 | |
20335 final SVGAnimatedLength x; | |
20336 | |
20337 final SVGAnimatedLength y; | |
20338 } | |
20339 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20340 // for details. All rights reserved. Use of this source code is governed by a | |
20341 // BSD-style license that can be found in the LICENSE file. | |
20342 | |
20343 // WARNING: Do not edit - generated code. | |
20344 | |
20345 interface SVGGElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternalRes
ourcesRequired, SVGStylable, SVGTransformable { | |
20346 } | |
20347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20348 // for details. All rights reserved. Use of this source code is governed by a | |
20349 // BSD-style license that can be found in the LICENSE file. | |
20350 | |
20351 // WARNING: Do not edit - generated code. | |
20352 | |
20353 interface SVGGlyphElement extends SVGElement { | |
20354 } | |
20355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20356 // for details. All rights reserved. Use of this source code is governed by a | |
20357 // BSD-style license that can be found in the LICENSE file. | |
20358 | |
20359 // WARNING: Do not edit - generated code. | |
20360 | |
20361 interface SVGGlyphRefElement extends SVGElement, SVGURIReference, SVGStylable { | |
20362 | |
20363 num dx; | |
20364 | |
20365 num dy; | |
20366 | |
20367 String format; | |
20368 | |
20369 String glyphRef; | |
20370 | |
20371 num x; | |
20372 | |
20373 num y; | |
20374 } | |
20375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20376 // for details. All rights reserved. Use of this source code is governed by a | |
20377 // BSD-style license that can be found in the LICENSE file. | |
20378 | |
20379 // WARNING: Do not edit - generated code. | |
20380 | |
20381 interface SVGGradientElement extends SVGElement, SVGURIReference, SVGExternalRes
ourcesRequired, SVGStylable { | |
20382 | |
20383 static const int SVG_SPREADMETHOD_PAD = 1; | |
20384 | |
20385 static const int SVG_SPREADMETHOD_REFLECT = 2; | |
20386 | |
20387 static const int SVG_SPREADMETHOD_REPEAT = 3; | |
20388 | |
20389 static const int SVG_SPREADMETHOD_UNKNOWN = 0; | |
20390 | |
20391 final SVGAnimatedTransformList gradientTransform; | |
20392 | |
20393 final SVGAnimatedEnumeration gradientUnits; | |
20394 | |
20395 final SVGAnimatedEnumeration spreadMethod; | |
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 SVGHKernElement extends SVGElement { | |
20404 } | |
20405 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20406 // for details. All rights reserved. Use of this source code is governed by a | |
20407 // BSD-style license that can be found in the LICENSE file. | |
20408 | |
20409 // WARNING: Do not edit - generated code. | |
20410 | |
20411 interface SVGImageElement extends SVGElement, SVGURIReference, SVGTests, SVGLang
Space, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { | |
20412 | |
20413 final SVGAnimatedLength height; | |
20414 | |
20415 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | |
20416 | |
20417 final SVGAnimatedLength width; | |
20418 | |
20419 final SVGAnimatedLength x; | |
20420 | |
20421 final SVGAnimatedLength y; | |
20422 } | |
20423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20424 // for details. All rights reserved. Use of this source code is governed by a | |
20425 // BSD-style license that can be found in the LICENSE file. | |
20426 | |
20427 // WARNING: Do not edit - generated code. | |
20428 | |
20429 interface SVGLangSpace { | |
20430 | |
20431 String xmllang; | |
20432 | |
20433 String xmlspace; | |
20434 } | |
20435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20436 // for details. All rights reserved. Use of this source code is governed by a | |
20437 // BSD-style license that can be found in the LICENSE file. | |
20438 | |
20439 // WARNING: Do not edit - generated code. | |
20440 | |
20441 interface SVGLength { | |
20442 | |
20443 static const int SVG_LENGTHTYPE_CM = 6; | |
20444 | |
20445 static const int SVG_LENGTHTYPE_EMS = 3; | |
20446 | |
20447 static const int SVG_LENGTHTYPE_EXS = 4; | |
20448 | |
20449 static const int SVG_LENGTHTYPE_IN = 8; | |
20450 | |
20451 static const int SVG_LENGTHTYPE_MM = 7; | |
20452 | |
20453 static const int SVG_LENGTHTYPE_NUMBER = 1; | |
20454 | |
20455 static const int SVG_LENGTHTYPE_PC = 10; | |
20456 | |
20457 static const int SVG_LENGTHTYPE_PERCENTAGE = 2; | |
20458 | |
20459 static const int SVG_LENGTHTYPE_PT = 9; | |
20460 | |
20461 static const int SVG_LENGTHTYPE_PX = 5; | |
20462 | |
20463 static const int SVG_LENGTHTYPE_UNKNOWN = 0; | |
20464 | |
20465 final int unitType; | |
20466 | |
20467 num value; | |
20468 | |
20469 String valueAsString; | |
20470 | |
20471 num valueInSpecifiedUnits; | |
20472 | |
20473 void convertToSpecifiedUnits(int unitType); | |
20474 | |
20475 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits); | |
20476 } | |
20477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20478 // for details. All rights reserved. Use of this source code is governed by a | |
20479 // BSD-style license that can be found in the LICENSE file. | |
20480 | |
20481 // WARNING: Do not edit - generated code. | |
20482 | |
20483 interface SVGLengthList { | |
20484 | |
20485 final int numberOfItems; | |
20486 | |
20487 SVGLength appendItem(SVGLength item); | |
20488 | |
20489 void clear(); | |
20490 | |
20491 SVGLength getItem(int index); | |
20492 | |
20493 SVGLength initialize(SVGLength item); | |
20494 | |
20495 SVGLength insertItemBefore(SVGLength item, int index); | |
20496 | |
20497 SVGLength removeItem(int index); | |
20498 | |
20499 SVGLength replaceItem(SVGLength item, int index); | |
20500 } | |
20501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20502 // for details. All rights reserved. Use of this source code is governed by a | |
20503 // BSD-style license that can be found in the LICENSE file. | |
20504 | |
20505 // WARNING: Do not edit - generated code. | |
20506 | |
20507 interface SVGLineElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable, SVGTransformable { | |
20508 | |
20509 final SVGAnimatedLength x1; | |
20510 | |
20511 final SVGAnimatedLength x2; | |
20512 | |
20513 final SVGAnimatedLength y1; | |
20514 | |
20515 final SVGAnimatedLength y2; | |
20516 } | |
20517 // Copyright (c) 2012, 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 interface SVGLinearGradientElement extends SVGGradientElement { | |
20524 | |
20525 final SVGAnimatedLength x1; | |
20526 | |
20527 final SVGAnimatedLength x2; | |
20528 | |
20529 final SVGAnimatedLength y1; | |
20530 | |
20531 final SVGAnimatedLength y2; | |
20532 } | |
20533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20534 // for details. All rights reserved. Use of this source code is governed by a | |
20535 // BSD-style license that can be found in the LICENSE file. | |
20536 | |
20537 // WARNING: Do not edit - generated code. | |
20538 | |
20539 interface SVGLocatable { | |
20540 | |
20541 final SVGElement farthestViewportElement; | |
20542 | |
20543 final SVGElement nearestViewportElement; | |
20544 | |
20545 SVGRect getBBox(); | |
20546 | |
20547 SVGMatrix getCTM(); | |
20548 | |
20549 SVGMatrix getScreenCTM(); | |
20550 | |
20551 SVGMatrix getTransformToElement(SVGElement element); | |
20552 } | |
20553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20554 // for details. All rights reserved. Use of this source code is governed by a | |
20555 // BSD-style license that can be found in the LICENSE file. | |
20556 | |
20557 // WARNING: Do not edit - generated code. | |
20558 | |
20559 interface SVGMPathElement extends SVGElement, SVGURIReference, SVGExternalResour
cesRequired { | |
20560 } | |
20561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20562 // for details. All rights reserved. Use of this source code is governed by a | |
20563 // BSD-style license that can be found in the LICENSE file. | |
20564 | |
20565 // WARNING: Do not edit - generated code. | |
20566 | |
20567 interface SVGMarkerElement extends SVGElement, SVGLangSpace, SVGExternalResource
sRequired, SVGStylable, SVGFitToViewBox { | |
20568 | |
20569 static const int SVG_MARKERUNITS_STROKEWIDTH = 2; | |
20570 | |
20571 static const int SVG_MARKERUNITS_UNKNOWN = 0; | |
20572 | |
20573 static const int SVG_MARKERUNITS_USERSPACEONUSE = 1; | |
20574 | |
20575 static const int SVG_MARKER_ORIENT_ANGLE = 2; | |
20576 | |
20577 static const int SVG_MARKER_ORIENT_AUTO = 1; | |
20578 | |
20579 static const int SVG_MARKER_ORIENT_UNKNOWN = 0; | |
20580 | |
20581 final SVGAnimatedLength markerHeight; | |
20582 | |
20583 final SVGAnimatedEnumeration markerUnits; | |
20584 | |
20585 final SVGAnimatedLength markerWidth; | |
20586 | |
20587 final SVGAnimatedAngle orientAngle; | |
20588 | |
20589 final SVGAnimatedEnumeration orientType; | |
20590 | |
20591 final SVGAnimatedLength refX; | |
20592 | |
20593 final SVGAnimatedLength refY; | |
20594 | |
20595 void setOrientToAngle(SVGAngle angle); | |
20596 | |
20597 void setOrientToAuto(); | |
20598 } | |
20599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20600 // for details. All rights reserved. Use of this source code is governed by a | |
20601 // BSD-style license that can be found in the LICENSE file. | |
20602 | |
20603 // WARNING: Do not edit - generated code. | |
20604 | |
20605 interface SVGMaskElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable { | |
20606 | |
20607 final SVGAnimatedLength height; | |
20608 | |
20609 final SVGAnimatedEnumeration maskContentUnits; | |
20610 | |
20611 final SVGAnimatedEnumeration maskUnits; | |
20612 | |
20613 final SVGAnimatedLength width; | |
20614 | |
20615 final SVGAnimatedLength x; | |
20616 | |
20617 final SVGAnimatedLength y; | |
20618 } | |
20619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20620 // for details. All rights reserved. Use of this source code is governed by a | |
20621 // BSD-style license that can be found in the LICENSE file. | |
20622 | |
20623 // WARNING: Do not edit - generated code. | |
20624 | |
20625 interface SVGMatrix { | |
20626 | |
20627 num a; | |
20628 | |
20629 num b; | |
20630 | |
20631 num c; | |
20632 | |
20633 num d; | |
20634 | |
20635 num e; | |
20636 | |
20637 num f; | |
20638 | |
20639 SVGMatrix flipX(); | |
20640 | |
20641 SVGMatrix flipY(); | |
20642 | |
20643 SVGMatrix inverse(); | |
20644 | |
20645 SVGMatrix multiply(SVGMatrix secondMatrix); | |
20646 | |
20647 SVGMatrix rotate(num angle); | |
20648 | |
20649 SVGMatrix rotateFromVector(num x, num y); | |
20650 | |
20651 SVGMatrix scale(num scaleFactor); | |
20652 | |
20653 SVGMatrix scaleNonUniform(num scaleFactorX, num scaleFactorY); | |
20654 | |
20655 SVGMatrix skewX(num angle); | |
20656 | |
20657 SVGMatrix skewY(num angle); | |
20658 | |
20659 SVGMatrix translate(num x, num y); | |
20660 } | |
20661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20662 // for details. All rights reserved. Use of this source code is governed by a | |
20663 // BSD-style license that can be found in the LICENSE file. | |
20664 | |
20665 // WARNING: Do not edit - generated code. | |
20666 | |
20667 interface SVGMetadataElement extends SVGElement { | |
20668 } | |
20669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20670 // for details. All rights reserved. Use of this source code is governed by a | |
20671 // BSD-style license that can be found in the LICENSE file. | |
20672 | |
20673 // WARNING: Do not edit - generated code. | |
20674 | |
20675 interface SVGMissingGlyphElement extends SVGElement { | |
20676 } | |
20677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20678 // for details. All rights reserved. Use of this source code is governed by a | |
20679 // BSD-style license that can be found in the LICENSE file. | |
20680 | |
20681 // WARNING: Do not edit - generated code. | |
20682 | |
20683 interface SVGNumber { | |
20684 | |
20685 num value; | |
20686 } | |
20687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20688 // for details. All rights reserved. Use of this source code is governed by a | |
20689 // BSD-style license that can be found in the LICENSE file. | |
20690 | |
20691 // WARNING: Do not edit - generated code. | |
20692 | |
20693 interface SVGNumberList { | |
20694 | |
20695 final int numberOfItems; | |
20696 | |
20697 SVGNumber appendItem(SVGNumber item); | |
20698 | |
20699 void clear(); | |
20700 | |
20701 SVGNumber getItem(int index); | |
20702 | |
20703 SVGNumber initialize(SVGNumber item); | |
20704 | |
20705 SVGNumber insertItemBefore(SVGNumber item, int index); | |
20706 | |
20707 SVGNumber removeItem(int index); | |
20708 | |
20709 SVGNumber replaceItem(SVGNumber item, int index); | |
20710 } | |
20711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20712 // for details. All rights reserved. Use of this source code is governed by a | |
20713 // BSD-style license that can be found in the LICENSE file. | |
20714 | |
20715 // WARNING: Do not edit - generated code. | |
20716 | |
20717 interface SVGPaint extends SVGColor { | |
20718 | |
20719 static const int SVG_PAINTTYPE_CURRENTCOLOR = 102; | |
20720 | |
20721 static const int SVG_PAINTTYPE_NONE = 101; | |
20722 | |
20723 static const int SVG_PAINTTYPE_RGBCOLOR = 1; | |
20724 | |
20725 static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; | |
20726 | |
20727 static const int SVG_PAINTTYPE_UNKNOWN = 0; | |
20728 | |
20729 static const int SVG_PAINTTYPE_URI = 107; | |
20730 | |
20731 static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104; | |
20732 | |
20733 static const int SVG_PAINTTYPE_URI_NONE = 103; | |
20734 | |
20735 static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105; | |
20736 | |
20737 static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106; | |
20738 | |
20739 final int paintType; | |
20740 | |
20741 final String uri; | |
20742 | |
20743 void setPaint(int paintType, String uri, String rgbColor, String iccColor); | |
20744 | |
20745 void setUri(String uri); | |
20746 } | |
20747 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20748 // for details. All rights reserved. Use of this source code is governed by a | |
20749 // BSD-style license that can be found in the LICENSE file. | |
20750 | |
20751 // WARNING: Do not edit - generated code. | |
20752 | |
20753 interface SVGPathElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable, SVGTransformable { | |
20754 | |
20755 final SVGPathSegList animatedNormalizedPathSegList; | |
20756 | |
20757 final SVGPathSegList animatedPathSegList; | |
20758 | |
20759 final SVGPathSegList normalizedPathSegList; | |
20760 | |
20761 final SVGAnimatedNumber pathLength; | |
20762 | |
20763 final SVGPathSegList pathSegList; | |
20764 | |
20765 SVGPathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angl
e, bool largeArcFlag, bool sweepFlag); | |
20766 | |
20767 SVGPathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angl
e, bool largeArcFlag, bool sweepFlag); | |
20768 | |
20769 SVGPathSegClosePath createSVGPathSegClosePath(); | |
20770 | |
20771 SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1
, num y1, num x2, num y2); | |
20772 | |
20773 SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1
, num y1, num x2, num y2); | |
20774 | |
20775 SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, n
um y, num x2, num y2); | |
20776 | |
20777 SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, n
um y, num x2, num y2); | |
20778 | |
20779 SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y
, num x1, num y1); | |
20780 | |
20781 SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y
, num x1, num y1); | |
20782 | |
20783 SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(
num x, num y); | |
20784 | |
20785 SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(
num x, num y); | |
20786 | |
20787 SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y); | |
20788 | |
20789 SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x); | |
20790 | |
20791 SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x); | |
20792 | |
20793 SVGPathSegLinetoRel createSVGPathSegLinetoRel(num x, num y); | |
20794 | |
20795 SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y); | |
20796 | |
20797 SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y); | |
20798 | |
20799 SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y); | |
20800 | |
20801 SVGPathSegMovetoRel createSVGPathSegMovetoRel(num x, num y); | |
20802 | |
20803 int getPathSegAtLength(num distance); | |
20804 | |
20805 SVGPoint getPointAtLength(num distance); | |
20806 | |
20807 num getTotalLength(); | |
20808 } | |
20809 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20810 // for details. All rights reserved. Use of this source code is governed by a | |
20811 // BSD-style license that can be found in the LICENSE file. | |
20812 | |
20813 // WARNING: Do not edit - generated code. | |
20814 | |
20815 interface SVGPathSeg { | |
20816 | |
20817 static const int PATHSEG_ARC_ABS = 10; | |
20818 | |
20819 static const int PATHSEG_ARC_REL = 11; | |
20820 | |
20821 static const int PATHSEG_CLOSEPATH = 1; | |
20822 | |
20823 static const int PATHSEG_CURVETO_CUBIC_ABS = 6; | |
20824 | |
20825 static const int PATHSEG_CURVETO_CUBIC_REL = 7; | |
20826 | |
20827 static const int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; | |
20828 | |
20829 static const int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; | |
20830 | |
20831 static const int PATHSEG_CURVETO_QUADRATIC_ABS = 8; | |
20832 | |
20833 static const int PATHSEG_CURVETO_QUADRATIC_REL = 9; | |
20834 | |
20835 static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; | |
20836 | |
20837 static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; | |
20838 | |
20839 static const int PATHSEG_LINETO_ABS = 4; | |
20840 | |
20841 static const int PATHSEG_LINETO_HORIZONTAL_ABS = 12; | |
20842 | |
20843 static const int PATHSEG_LINETO_HORIZONTAL_REL = 13; | |
20844 | |
20845 static const int PATHSEG_LINETO_REL = 5; | |
20846 | |
20847 static const int PATHSEG_LINETO_VERTICAL_ABS = 14; | |
20848 | |
20849 static const int PATHSEG_LINETO_VERTICAL_REL = 15; | |
20850 | |
20851 static const int PATHSEG_MOVETO_ABS = 2; | |
20852 | |
20853 static const int PATHSEG_MOVETO_REL = 3; | |
20854 | |
20855 static const int PATHSEG_UNKNOWN = 0; | |
20856 | |
20857 final int pathSegType; | |
20858 | |
20859 final String pathSegTypeAsLetter; | |
20860 } | |
20861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20862 // for details. All rights reserved. Use of this source code is governed by a | |
20863 // BSD-style license that can be found in the LICENSE file. | |
20864 | |
20865 // WARNING: Do not edit - generated code. | |
20866 | |
20867 interface SVGPathSegArcAbs extends SVGPathSeg { | |
20868 | |
20869 num angle; | |
20870 | |
20871 bool largeArcFlag; | |
20872 | |
20873 num r1; | |
20874 | |
20875 num r2; | |
20876 | |
20877 bool sweepFlag; | |
20878 | |
20879 num x; | |
20880 | |
20881 num y; | |
20882 } | |
20883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20884 // for details. All rights reserved. Use of this source code is governed by a | |
20885 // BSD-style license that can be found in the LICENSE file. | |
20886 | |
20887 // WARNING: Do not edit - generated code. | |
20888 | |
20889 interface SVGPathSegArcRel extends SVGPathSeg { | |
20890 | |
20891 num angle; | |
20892 | |
20893 bool largeArcFlag; | |
20894 | |
20895 num r1; | |
20896 | |
20897 num r2; | |
20898 | |
20899 bool sweepFlag; | |
20900 | |
20901 num x; | |
20902 | |
20903 num y; | |
20904 } | |
20905 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20906 // for details. All rights reserved. Use of this source code is governed by a | |
20907 // BSD-style license that can be found in the LICENSE file. | |
20908 | |
20909 // WARNING: Do not edit - generated code. | |
20910 | |
20911 interface SVGPathSegClosePath extends SVGPathSeg { | |
20912 } | |
20913 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20914 // for details. All rights reserved. Use of this source code is governed by a | |
20915 // BSD-style license that can be found in the LICENSE file. | |
20916 | |
20917 // WARNING: Do not edit - generated code. | |
20918 | |
20919 interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg { | |
20920 | |
20921 num x; | |
20922 | |
20923 num x1; | |
20924 | |
20925 num x2; | |
20926 | |
20927 num y; | |
20928 | |
20929 num y1; | |
20930 | |
20931 num y2; | |
20932 } | |
20933 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20934 // for details. All rights reserved. Use of this source code is governed by a | |
20935 // BSD-style license that can be found in the LICENSE file. | |
20936 | |
20937 // WARNING: Do not edit - generated code. | |
20938 | |
20939 interface SVGPathSegCurvetoCubicRel extends SVGPathSeg { | |
20940 | |
20941 num x; | |
20942 | |
20943 num x1; | |
20944 | |
20945 num x2; | |
20946 | |
20947 num y; | |
20948 | |
20949 num y1; | |
20950 | |
20951 num y2; | |
20952 } | |
20953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20954 // for details. All rights reserved. Use of this source code is governed by a | |
20955 // BSD-style license that can be found in the LICENSE file. | |
20956 | |
20957 // WARNING: Do not edit - generated code. | |
20958 | |
20959 interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { | |
20960 | |
20961 num x; | |
20962 | |
20963 num x2; | |
20964 | |
20965 num y; | |
20966 | |
20967 num y2; | |
20968 } | |
20969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20970 // for details. All rights reserved. Use of this source code is governed by a | |
20971 // BSD-style license that can be found in the LICENSE file. | |
20972 | |
20973 // WARNING: Do not edit - generated code. | |
20974 | |
20975 interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { | |
20976 | |
20977 num x; | |
20978 | |
20979 num x2; | |
20980 | |
20981 num y; | |
20982 | |
20983 num y2; | |
20984 } | |
20985 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
20986 // for details. All rights reserved. Use of this source code is governed by a | |
20987 // BSD-style license that can be found in the LICENSE file. | |
20988 | |
20989 // WARNING: Do not edit - generated code. | |
20990 | |
20991 interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { | |
20992 | |
20993 num x; | |
20994 | |
20995 num x1; | |
20996 | |
20997 num y; | |
20998 | |
20999 num y1; | |
21000 } | |
21001 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21002 // for details. All rights reserved. Use of this source code is governed by a | |
21003 // BSD-style license that can be found in the LICENSE file. | |
21004 | |
21005 // WARNING: Do not edit - generated code. | |
21006 | |
21007 interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { | |
21008 | |
21009 num x; | |
21010 | |
21011 num x1; | |
21012 | |
21013 num y; | |
21014 | |
21015 num y1; | |
21016 } | |
21017 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21018 // for details. All rights reserved. Use of this source code is governed by a | |
21019 // BSD-style license that can be found in the LICENSE file. | |
21020 | |
21021 // WARNING: Do not edit - generated code. | |
21022 | |
21023 interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { | |
21024 | |
21025 num x; | |
21026 | |
21027 num y; | |
21028 } | |
21029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21030 // for details. All rights reserved. Use of this source code is governed by a | |
21031 // BSD-style license that can be found in the LICENSE file. | |
21032 | |
21033 // WARNING: Do not edit - generated code. | |
21034 | |
21035 interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { | |
21036 | |
21037 num x; | |
21038 | |
21039 num y; | |
21040 } | |
21041 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21042 // for details. All rights reserved. Use of this source code is governed by a | |
21043 // BSD-style license that can be found in the LICENSE file. | |
21044 | |
21045 // WARNING: Do not edit - generated code. | |
21046 | |
21047 interface SVGPathSegLinetoAbs extends SVGPathSeg { | |
21048 | |
21049 num x; | |
21050 | |
21051 num y; | |
21052 } | |
21053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21054 // for details. All rights reserved. Use of this source code is governed by a | |
21055 // BSD-style license that can be found in the LICENSE file. | |
21056 | |
21057 // WARNING: Do not edit - generated code. | |
21058 | |
21059 interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { | |
21060 | |
21061 num x; | |
21062 } | |
21063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21064 // for details. All rights reserved. Use of this source code is governed by a | |
21065 // BSD-style license that can be found in the LICENSE file. | |
21066 | |
21067 // WARNING: Do not edit - generated code. | |
21068 | |
21069 interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg { | |
21070 | |
21071 num x; | |
21072 } | |
21073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21074 // for details. All rights reserved. Use of this source code is governed by a | |
21075 // BSD-style license that can be found in the LICENSE file. | |
21076 | |
21077 // WARNING: Do not edit - generated code. | |
21078 | |
21079 interface SVGPathSegLinetoRel extends SVGPathSeg { | |
21080 | |
21081 num x; | |
21082 | |
21083 num y; | |
21084 } | |
21085 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21086 // for details. All rights reserved. Use of this source code is governed by a | |
21087 // BSD-style license that can be found in the LICENSE file. | |
21088 | |
21089 // WARNING: Do not edit - generated code. | |
21090 | |
21091 interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg { | |
21092 | |
21093 num y; | |
21094 } | |
21095 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21096 // for details. All rights reserved. Use of this source code is governed by a | |
21097 // BSD-style license that can be found in the LICENSE file. | |
21098 | |
21099 // WARNING: Do not edit - generated code. | |
21100 | |
21101 interface SVGPathSegLinetoVerticalRel extends SVGPathSeg { | |
21102 | |
21103 num y; | |
21104 } | |
21105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21106 // for details. All rights reserved. Use of this source code is governed by a | |
21107 // BSD-style license that can be found in the LICENSE file. | |
21108 | |
21109 // WARNING: Do not edit - generated code. | |
21110 | |
21111 interface SVGPathSegList { | |
21112 | |
21113 final int numberOfItems; | |
21114 | |
21115 SVGPathSeg appendItem(SVGPathSeg newItem); | |
21116 | |
21117 void clear(); | |
21118 | |
21119 SVGPathSeg getItem(int index); | |
21120 | |
21121 SVGPathSeg initialize(SVGPathSeg newItem); | |
21122 | |
21123 SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index); | |
21124 | |
21125 SVGPathSeg removeItem(int index); | |
21126 | |
21127 SVGPathSeg replaceItem(SVGPathSeg newItem, int index); | |
21128 } | |
21129 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21130 // for details. All rights reserved. Use of this source code is governed by a | |
21131 // BSD-style license that can be found in the LICENSE file. | |
21132 | |
21133 // WARNING: Do not edit - generated code. | |
21134 | |
21135 interface SVGPathSegMovetoAbs extends SVGPathSeg { | |
21136 | |
21137 num x; | |
21138 | |
21139 num y; | |
21140 } | |
21141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21142 // for details. All rights reserved. Use of this source code is governed by a | |
21143 // BSD-style license that can be found in the LICENSE file. | |
21144 | |
21145 // WARNING: Do not edit - generated code. | |
21146 | |
21147 interface SVGPathSegMovetoRel extends SVGPathSeg { | |
21148 | |
21149 num x; | |
21150 | |
21151 num y; | |
21152 } | |
21153 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21154 // for details. All rights reserved. Use of this source code is governed by a | |
21155 // BSD-style license that can be found in the LICENSE file. | |
21156 | |
21157 // WARNING: Do not edit - generated code. | |
21158 | |
21159 interface SVGPatternElement extends SVGElement, SVGURIReference, SVGTests, SVGLa
ngSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { | |
21160 | |
21161 final SVGAnimatedLength height; | |
21162 | |
21163 final SVGAnimatedEnumeration patternContentUnits; | |
21164 | |
21165 final SVGAnimatedTransformList patternTransform; | |
21166 | |
21167 final SVGAnimatedEnumeration patternUnits; | |
21168 | |
21169 final SVGAnimatedLength width; | |
21170 | |
21171 final SVGAnimatedLength x; | |
21172 | |
21173 final SVGAnimatedLength y; | |
21174 } | |
21175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21176 // for details. All rights reserved. Use of this source code is governed by a | |
21177 // BSD-style license that can be found in the LICENSE file. | |
21178 | |
21179 // WARNING: Do not edit - generated code. | |
21180 | |
21181 interface SVGPoint { | |
21182 | |
21183 num x; | |
21184 | |
21185 num y; | |
21186 | |
21187 SVGPoint matrixTransform(SVGMatrix matrix); | |
21188 } | |
21189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21190 // for details. All rights reserved. Use of this source code is governed by a | |
21191 // BSD-style license that can be found in the LICENSE file. | |
21192 | |
21193 // WARNING: Do not edit - generated code. | |
21194 | |
21195 interface SVGPointList { | |
21196 | |
21197 final int numberOfItems; | |
21198 | |
21199 SVGPoint appendItem(SVGPoint item); | |
21200 | |
21201 void clear(); | |
21202 | |
21203 SVGPoint getItem(int index); | |
21204 | |
21205 SVGPoint initialize(SVGPoint item); | |
21206 | |
21207 SVGPoint insertItemBefore(SVGPoint item, int index); | |
21208 | |
21209 SVGPoint removeItem(int index); | |
21210 | |
21211 SVGPoint replaceItem(SVGPoint item, int index); | |
21212 } | |
21213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21214 // for details. All rights reserved. Use of this source code is governed by a | |
21215 // BSD-style license that can be found in the LICENSE file. | |
21216 | |
21217 // WARNING: Do not edit - generated code. | |
21218 | |
21219 interface SVGPolygonElement extends SVGElement, SVGTests, SVGLangSpace, SVGExter
nalResourcesRequired, SVGStylable, SVGTransformable { | |
21220 | |
21221 final SVGPointList animatedPoints; | |
21222 | |
21223 final SVGPointList points; | |
21224 } | |
21225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21226 // for details. All rights reserved. Use of this source code is governed by a | |
21227 // BSD-style license that can be found in the LICENSE file. | |
21228 | |
21229 // WARNING: Do not edit - generated code. | |
21230 | |
21231 interface SVGPolylineElement extends SVGElement, SVGTests, SVGLangSpace, SVGExte
rnalResourcesRequired, SVGStylable, SVGTransformable { | |
21232 | |
21233 final SVGPointList animatedPoints; | |
21234 | |
21235 final SVGPointList points; | |
21236 } | |
21237 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21238 // for details. All rights reserved. Use of this source code is governed by a | |
21239 // BSD-style license that can be found in the LICENSE file. | |
21240 | |
21241 // WARNING: Do not edit - generated code. | |
21242 | |
21243 interface SVGPreserveAspectRatio { | |
21244 | |
21245 static const int SVG_MEETORSLICE_MEET = 1; | |
21246 | |
21247 static const int SVG_MEETORSLICE_SLICE = 2; | |
21248 | |
21249 static const int SVG_MEETORSLICE_UNKNOWN = 0; | |
21250 | |
21251 static const int SVG_PRESERVEASPECTRATIO_NONE = 1; | |
21252 | |
21253 static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; | |
21254 | |
21255 static const int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; | |
21256 | |
21257 static const int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; | |
21258 | |
21259 static const int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; | |
21260 | |
21261 static const int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; | |
21262 | |
21263 static const int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; | |
21264 | |
21265 static const int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; | |
21266 | |
21267 static const int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; | |
21268 | |
21269 static const int SVG_PRESERVEASPECTRATIO_XMINYMID = 5; | |
21270 | |
21271 static const int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; | |
21272 | |
21273 int align; | |
21274 | |
21275 int meetOrSlice; | |
21276 } | |
21277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21278 // for details. All rights reserved. Use of this source code is governed by a | |
21279 // BSD-style license that can be found in the LICENSE file. | |
21280 | |
21281 // WARNING: Do not edit - generated code. | |
21282 | |
21283 interface SVGRadialGradientElement extends SVGGradientElement { | |
21284 | |
21285 final SVGAnimatedLength cx; | |
21286 | |
21287 final SVGAnimatedLength cy; | |
21288 | |
21289 final SVGAnimatedLength fx; | |
21290 | |
21291 final SVGAnimatedLength fy; | |
21292 | |
21293 final SVGAnimatedLength r; | |
21294 } | |
21295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21296 // for details. All rights reserved. Use of this source code is governed by a | |
21297 // BSD-style license that can be found in the LICENSE file. | |
21298 | |
21299 // WARNING: Do not edit - generated code. | |
21300 | |
21301 interface SVGRect { | |
21302 | |
21303 num height; | |
21304 | |
21305 num width; | |
21306 | |
21307 num x; | |
21308 | |
21309 num y; | |
21310 } | |
21311 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21312 // for details. All rights reserved. Use of this source code is governed by a | |
21313 // BSD-style license that can be found in the LICENSE file. | |
21314 | |
21315 // WARNING: Do not edit - generated code. | |
21316 | |
21317 interface SVGRectElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable, SVGTransformable { | |
21318 | |
21319 final SVGAnimatedLength height; | |
21320 | |
21321 final SVGAnimatedLength rx; | |
21322 | |
21323 final SVGAnimatedLength ry; | |
21324 | |
21325 final SVGAnimatedLength width; | |
21326 | |
21327 final SVGAnimatedLength x; | |
21328 | |
21329 final SVGAnimatedLength y; | |
21330 } | |
21331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21332 // for details. All rights reserved. Use of this source code is governed by a | |
21333 // BSD-style license that can be found in the LICENSE file. | |
21334 | |
21335 // WARNING: Do not edit - generated code. | |
21336 | |
21337 interface SVGRenderingIntent { | |
21338 | |
21339 static const int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; | |
21340 | |
21341 static const int RENDERING_INTENT_AUTO = 1; | |
21342 | |
21343 static const int RENDERING_INTENT_PERCEPTUAL = 2; | |
21344 | |
21345 static const int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; | |
21346 | |
21347 static const int RENDERING_INTENT_SATURATION = 4; | |
21348 | |
21349 static const int RENDERING_INTENT_UNKNOWN = 0; | |
21350 } | |
21351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21352 // for details. All rights reserved. Use of this source code is governed by a | |
21353 // BSD-style license that can be found in the LICENSE file. | |
21354 | |
21355 // WARNING: Do not edit - generated code. | |
21356 | |
21357 interface SVGSVGElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternalR
esourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan { | |
21358 | |
21359 String contentScriptType; | |
21360 | |
21361 String contentStyleType; | |
21362 | |
21363 num currentScale; | |
21364 | |
21365 final SVGPoint currentTranslate; | |
21366 | |
21367 final SVGViewSpec currentView; | |
21368 | |
21369 final SVGAnimatedLength height; | |
21370 | |
21371 final num pixelUnitToMillimeterX; | |
21372 | |
21373 final num pixelUnitToMillimeterY; | |
21374 | |
21375 final num screenPixelToMillimeterX; | |
21376 | |
21377 final num screenPixelToMillimeterY; | |
21378 | |
21379 final bool useCurrentView; | |
21380 | |
21381 final SVGRect viewport; | |
21382 | |
21383 final SVGAnimatedLength width; | |
21384 | |
21385 final SVGAnimatedLength x; | |
21386 | |
21387 final SVGAnimatedLength y; | |
21388 | |
21389 bool animationsPaused(); | |
21390 | |
21391 bool checkEnclosure(SVGElement element, SVGRect rect); | |
21392 | |
21393 bool checkIntersection(SVGElement element, SVGRect rect); | |
21394 | |
21395 SVGAngle createSVGAngle(); | |
21396 | |
21397 SVGLength createSVGLength(); | |
21398 | |
21399 SVGMatrix createSVGMatrix(); | |
21400 | |
21401 SVGNumber createSVGNumber(); | |
21402 | |
21403 SVGPoint createSVGPoint(); | |
21404 | |
21405 SVGRect createSVGRect(); | |
21406 | |
21407 SVGTransform createSVGTransform(); | |
21408 | |
21409 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); | |
21410 | |
21411 void deselectAll(); | |
21412 | |
21413 void forceRedraw(); | |
21414 | |
21415 num getCurrentTime(); | |
21416 | |
21417 Element getElementById(String elementId); | |
21418 | |
21419 NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement); | |
21420 | |
21421 NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement); | |
21422 | |
21423 void pauseAnimations(); | |
21424 | |
21425 void setCurrentTime(num seconds); | |
21426 | |
21427 int suspendRedraw(int maxWaitMilliseconds); | |
21428 | |
21429 void unpauseAnimations(); | |
21430 | |
21431 void unsuspendRedraw(int suspendHandleId); | |
21432 | |
21433 void unsuspendRedrawAll(); | |
21434 } | |
21435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21436 // for details. All rights reserved. Use of this source code is governed by a | |
21437 // BSD-style license that can be found in the LICENSE file. | |
21438 | |
21439 // WARNING: Do not edit - generated code. | |
21440 | |
21441 interface SVGScriptElement extends SVGElement, SVGURIReference, SVGExternalResou
rcesRequired { | |
21442 | |
21443 String type; | |
21444 } | |
21445 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21446 // for details. All rights reserved. Use of this source code is governed by a | |
21447 // BSD-style license that can be found in the LICENSE file. | |
21448 | |
21449 // WARNING: Do not edit - generated code. | |
21450 | |
21451 interface SVGSetElement extends SVGAnimationElement { | |
21452 } | |
21453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21454 // for details. All rights reserved. Use of this source code is governed by a | |
21455 // BSD-style license that can be found in the LICENSE file. | |
21456 | |
21457 // WARNING: Do not edit - generated code. | |
21458 | |
21459 interface SVGStopElement extends SVGElement, SVGStylable { | |
21460 | |
21461 final SVGAnimatedNumber offset; | |
21462 } | |
21463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21464 // for details. All rights reserved. Use of this source code is governed by a | |
21465 // BSD-style license that can be found in the LICENSE file. | |
21466 | |
21467 // WARNING: Do not edit - generated code. | |
21468 | |
21469 interface SVGStringList { | |
21470 | |
21471 final int numberOfItems; | |
21472 | |
21473 String appendItem(String item); | |
21474 | |
21475 void clear(); | |
21476 | |
21477 String getItem(int index); | |
21478 | |
21479 String initialize(String item); | |
21480 | |
21481 String insertItemBefore(String item, int index); | |
21482 | |
21483 String removeItem(int index); | |
21484 | |
21485 String replaceItem(String item, int index); | |
21486 } | |
21487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21488 // for details. All rights reserved. Use of this source code is governed by a | |
21489 // BSD-style license that can be found in the LICENSE file. | |
21490 | |
21491 // WARNING: Do not edit - generated code. | |
21492 | |
21493 interface SVGStylable { | |
21494 | |
21495 final SVGAnimatedString className; | |
21496 | |
21497 final CSSStyleDeclaration style; | |
21498 | |
21499 CSSValue getPresentationAttribute(String name); | |
21500 } | |
21501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21502 // for details. All rights reserved. Use of this source code is governed by a | |
21503 // BSD-style license that can be found in the LICENSE file. | |
21504 | |
21505 // WARNING: Do not edit - generated code. | |
21506 | |
21507 interface SVGStyleElement extends SVGElement, SVGLangSpace { | |
21508 | |
21509 bool disabled; | |
21510 | |
21511 String media; | |
21512 | |
21513 String title; | |
21514 | |
21515 String type; | |
21516 } | |
21517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21518 // for details. All rights reserved. Use of this source code is governed by a | |
21519 // BSD-style license that can be found in the LICENSE file. | |
21520 | |
21521 // WARNING: Do not edit - generated code. | |
21522 | |
21523 interface SVGSwitchElement extends SVGElement, SVGTests, SVGLangSpace, SVGExtern
alResourcesRequired, SVGStylable, SVGTransformable { | |
21524 } | |
21525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21526 // for details. All rights reserved. Use of this source code is governed by a | |
21527 // BSD-style license that can be found in the LICENSE file. | |
21528 | |
21529 // WARNING: Do not edit - generated code. | |
21530 | |
21531 interface SVGSymbolElement extends SVGElement, SVGLangSpace, SVGExternalResource
sRequired, SVGStylable, SVGFitToViewBox { | |
21532 } | |
21533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21534 // for details. All rights reserved. Use of this source code is governed by a | |
21535 // BSD-style license that can be found in the LICENSE file. | |
21536 | |
21537 // WARNING: Do not edit - generated code. | |
21538 | |
21539 interface SVGTRefElement extends SVGTextPositioningElement, SVGURIReference { | |
21540 } | |
21541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21542 // for details. All rights reserved. Use of this source code is governed by a | |
21543 // BSD-style license that can be found in the LICENSE file. | |
21544 | |
21545 // WARNING: Do not edit - generated code. | |
21546 | |
21547 interface SVGTSpanElement extends SVGTextPositioningElement { | |
21548 } | |
21549 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21550 // for details. All rights reserved. Use of this source code is governed by a | |
21551 // BSD-style license that can be found in the LICENSE file. | |
21552 | |
21553 // WARNING: Do not edit - generated code. | |
21554 | |
21555 interface SVGTests { | |
21556 | |
21557 final SVGStringList requiredExtensions; | |
21558 | |
21559 final SVGStringList requiredFeatures; | |
21560 | |
21561 final SVGStringList systemLanguage; | |
21562 | |
21563 bool hasExtension(String extension); | |
21564 } | |
21565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21566 // for details. All rights reserved. Use of this source code is governed by a | |
21567 // BSD-style license that can be found in the LICENSE file. | |
21568 | |
21569 // WARNING: Do not edit - generated code. | |
21570 | |
21571 interface SVGTextContentElement extends SVGElement, SVGTests, SVGLangSpace, SVGE
xternalResourcesRequired, SVGStylable { | |
21572 | |
21573 static const int LENGTHADJUST_SPACING = 1; | |
21574 | |
21575 static const int LENGTHADJUST_SPACINGANDGLYPHS = 2; | |
21576 | |
21577 static const int LENGTHADJUST_UNKNOWN = 0; | |
21578 | |
21579 final SVGAnimatedEnumeration lengthAdjust; | |
21580 | |
21581 final SVGAnimatedLength textLength; | |
21582 | |
21583 int getCharNumAtPosition(SVGPoint point); | |
21584 | |
21585 num getComputedTextLength(); | |
21586 | |
21587 SVGPoint getEndPositionOfChar(int offset); | |
21588 | |
21589 SVGRect getExtentOfChar(int offset); | |
21590 | |
21591 int getNumberOfChars(); | |
21592 | |
21593 num getRotationOfChar(int offset); | |
21594 | |
21595 SVGPoint getStartPositionOfChar(int offset); | |
21596 | |
21597 num getSubStringLength(int offset, int length); | |
21598 | |
21599 void selectSubString(int offset, int length); | |
21600 } | |
21601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21602 // for details. All rights reserved. Use of this source code is governed by a | |
21603 // BSD-style license that can be found in the LICENSE file. | |
21604 | |
21605 // WARNING: Do not edit - generated code. | |
21606 | |
21607 interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable { | |
21608 } | |
21609 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21610 // for details. All rights reserved. Use of this source code is governed by a | |
21611 // BSD-style license that can be found in the LICENSE file. | |
21612 | |
21613 // WARNING: Do not edit - generated code. | |
21614 | |
21615 interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { | |
21616 | |
21617 static const int TEXTPATH_METHODTYPE_ALIGN = 1; | |
21618 | |
21619 static const int TEXTPATH_METHODTYPE_STRETCH = 2; | |
21620 | |
21621 static const int TEXTPATH_METHODTYPE_UNKNOWN = 0; | |
21622 | |
21623 static const int TEXTPATH_SPACINGTYPE_AUTO = 1; | |
21624 | |
21625 static const int TEXTPATH_SPACINGTYPE_EXACT = 2; | |
21626 | |
21627 static const int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; | |
21628 | |
21629 final SVGAnimatedEnumeration method; | |
21630 | |
21631 final SVGAnimatedEnumeration spacing; | |
21632 | |
21633 final SVGAnimatedLength startOffset; | |
21634 } | |
21635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21636 // for details. All rights reserved. Use of this source code is governed by a | |
21637 // BSD-style license that can be found in the LICENSE file. | |
21638 | |
21639 // WARNING: Do not edit - generated code. | |
21640 | |
21641 interface SVGTextPositioningElement extends SVGTextContentElement { | |
21642 | |
21643 final SVGAnimatedLengthList dx; | |
21644 | |
21645 final SVGAnimatedLengthList dy; | |
21646 | |
21647 final SVGAnimatedNumberList rotate; | |
21648 | |
21649 final SVGAnimatedLengthList x; | |
21650 | |
21651 final SVGAnimatedLengthList y; | |
21652 } | |
21653 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21654 // for details. All rights reserved. Use of this source code is governed by a | |
21655 // BSD-style license that can be found in the LICENSE file. | |
21656 | |
21657 // WARNING: Do not edit - generated code. | |
21658 | |
21659 interface SVGTitleElement extends SVGElement, SVGLangSpace, SVGStylable { | |
21660 } | |
21661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21662 // for details. All rights reserved. Use of this source code is governed by a | |
21663 // BSD-style license that can be found in the LICENSE file. | |
21664 | |
21665 // WARNING: Do not edit - generated code. | |
21666 | |
21667 interface SVGTransform { | |
21668 | |
21669 static const int SVG_TRANSFORM_MATRIX = 1; | |
21670 | |
21671 static const int SVG_TRANSFORM_ROTATE = 4; | |
21672 | |
21673 static const int SVG_TRANSFORM_SCALE = 3; | |
21674 | |
21675 static const int SVG_TRANSFORM_SKEWX = 5; | |
21676 | |
21677 static const int SVG_TRANSFORM_SKEWY = 6; | |
21678 | |
21679 static const int SVG_TRANSFORM_TRANSLATE = 2; | |
21680 | |
21681 static const int SVG_TRANSFORM_UNKNOWN = 0; | |
21682 | |
21683 final num angle; | |
21684 | |
21685 final SVGMatrix matrix; | |
21686 | |
21687 final int type; | |
21688 | |
21689 void setMatrix(SVGMatrix matrix); | |
21690 | |
21691 void setRotate(num angle, num cx, num cy); | |
21692 | |
21693 void setScale(num sx, num sy); | |
21694 | |
21695 void setSkewX(num angle); | |
21696 | |
21697 void setSkewY(num angle); | |
21698 | |
21699 void setTranslate(num tx, num ty); | |
21700 } | |
21701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21702 // for details. All rights reserved. Use of this source code is governed by a | |
21703 // BSD-style license that can be found in the LICENSE file. | |
21704 | |
21705 // WARNING: Do not edit - generated code. | |
21706 | |
21707 interface SVGTransformList { | |
21708 | |
21709 final int numberOfItems; | |
21710 | |
21711 SVGTransform appendItem(SVGTransform item); | |
21712 | |
21713 void clear(); | |
21714 | |
21715 SVGTransform consolidate(); | |
21716 | |
21717 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); | |
21718 | |
21719 SVGTransform getItem(int index); | |
21720 | |
21721 SVGTransform initialize(SVGTransform item); | |
21722 | |
21723 SVGTransform insertItemBefore(SVGTransform item, int index); | |
21724 | |
21725 SVGTransform removeItem(int index); | |
21726 | |
21727 SVGTransform replaceItem(SVGTransform item, int index); | |
21728 } | |
21729 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21730 // for details. All rights reserved. Use of this source code is governed by a | |
21731 // BSD-style license that can be found in the LICENSE file. | |
21732 | |
21733 // WARNING: Do not edit - generated code. | |
21734 | |
21735 interface SVGTransformable extends SVGLocatable { | |
21736 | |
21737 final SVGAnimatedTransformList transform; | |
21738 } | |
21739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21740 // for details. All rights reserved. Use of this source code is governed by a | |
21741 // BSD-style license that can be found in the LICENSE file. | |
21742 | |
21743 // WARNING: Do not edit - generated code. | |
21744 | |
21745 interface SVGURIReference { | |
21746 | |
21747 final SVGAnimatedString href; | |
21748 } | |
21749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21750 // for details. All rights reserved. Use of this source code is governed by a | |
21751 // BSD-style license that can be found in the LICENSE file. | |
21752 | |
21753 // WARNING: Do not edit - generated code. | |
21754 | |
21755 interface SVGUnitTypes { | |
21756 | |
21757 static const int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; | |
21758 | |
21759 static const int SVG_UNIT_TYPE_UNKNOWN = 0; | |
21760 | |
21761 static const int SVG_UNIT_TYPE_USERSPACEONUSE = 1; | |
21762 } | |
21763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21764 // for details. All rights reserved. Use of this source code is governed by a | |
21765 // BSD-style license that can be found in the LICENSE file. | |
21766 | |
21767 // WARNING: Do not edit - generated code. | |
21768 | |
21769 interface SVGUseElement extends SVGElement, SVGURIReference, SVGTests, SVGLangSp
ace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { | |
21770 | |
21771 final SVGElementInstance animatedInstanceRoot; | |
21772 | |
21773 final SVGAnimatedLength height; | |
21774 | |
21775 final SVGElementInstance instanceRoot; | |
21776 | |
21777 final SVGAnimatedLength width; | |
21778 | |
21779 final SVGAnimatedLength x; | |
21780 | |
21781 final SVGAnimatedLength y; | |
21782 } | |
21783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21784 // for details. All rights reserved. Use of this source code is governed by a | |
21785 // BSD-style license that can be found in the LICENSE file. | |
21786 | |
21787 // WARNING: Do not edit - generated code. | |
21788 | |
21789 interface SVGVKernElement extends SVGElement { | |
21790 } | |
21791 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21792 // for details. All rights reserved. Use of this source code is governed by a | |
21793 // BSD-style license that can be found in the LICENSE file. | |
21794 | |
21795 // WARNING: Do not edit - generated code. | |
21796 | |
21797 interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, SVGFi
tToViewBox, SVGZoomAndPan { | |
21798 | |
21799 final SVGStringList viewTarget; | |
21800 } | |
21801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21802 // for details. All rights reserved. Use of this source code is governed by a | |
21803 // BSD-style license that can be found in the LICENSE file. | |
21804 | |
21805 // WARNING: Do not edit - generated code. | |
21806 | |
21807 interface SVGViewSpec { | |
21808 | |
21809 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | |
21810 | |
21811 final String preserveAspectRatioString; | |
21812 | |
21813 final SVGTransformList transform; | |
21814 | |
21815 final String transformString; | |
21816 | |
21817 final SVGAnimatedRect viewBox; | |
21818 | |
21819 final String viewBoxString; | |
21820 | |
21821 final SVGElement viewTarget; | |
21822 | |
21823 final String viewTargetString; | |
21824 | |
21825 int zoomAndPan; | |
21826 } | |
21827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21828 // for details. All rights reserved. Use of this source code is governed by a | |
21829 // BSD-style license that can be found in the LICENSE file. | |
21830 | |
21831 // WARNING: Do not edit - generated code. | |
21832 | |
21833 interface SVGZoomAndPan { | |
21834 | |
21835 static const int SVG_ZOOMANDPAN_DISABLE = 1; | |
21836 | |
21837 static const int SVG_ZOOMANDPAN_MAGNIFY = 2; | |
21838 | |
21839 static const int SVG_ZOOMANDPAN_UNKNOWN = 0; | |
21840 | |
21841 int zoomAndPan; | |
21842 } | |
21843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21844 // for details. All rights reserved. Use of this source code is governed by a | |
21845 // BSD-style license that can be found in the LICENSE file. | |
21846 | |
21847 // WARNING: Do not edit - generated code. | |
21848 | |
21849 interface SVGZoomEvent extends UIEvent { | |
21850 | |
21851 final num newScale; | |
21852 | |
21853 final SVGPoint newTranslate; | |
21854 | |
21855 final num previousScale; | |
21856 | |
21857 final SVGPoint previousTranslate; | |
21858 | |
21859 final SVGRect zoomRectScreen; | |
21860 } | |
21861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21862 // for details. All rights reserved. Use of this source code is governed by a | |
21863 // BSD-style license that can be found in the LICENSE file. | |
21864 | |
21865 // WARNING: Do not edit - generated code. | |
21866 | |
21867 interface Screen { | |
21868 | |
21869 final int availHeight; | |
21870 | |
21871 final int availLeft; | |
21872 | |
21873 final int availTop; | |
21874 | |
21875 final int availWidth; | |
21876 | |
21877 final int colorDepth; | |
21878 | |
21879 final int height; | |
21880 | |
21881 final int pixelDepth; | |
21882 | |
21883 final int width; | |
21884 } | |
21885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21886 // for details. All rights reserved. Use of this source code is governed by a | |
21887 // BSD-style license that can be found in the LICENSE file. | |
21888 | |
21889 // WARNING: Do not edit - generated code. | |
21890 | |
21891 interface ScriptProfile { | |
21892 | |
21893 final ScriptProfileNode head; | |
21894 | |
21895 final String title; | |
21896 | |
21897 final int uid; | |
21898 } | |
21899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21900 // for details. All rights reserved. Use of this source code is governed by a | |
21901 // BSD-style license that can be found in the LICENSE file. | |
21902 | |
21903 // WARNING: Do not edit - generated code. | |
21904 | |
21905 interface ScriptProfileNode { | |
21906 | |
21907 final int callUID; | |
21908 | |
21909 final String functionName; | |
21910 | |
21911 final int lineNumber; | |
21912 | |
21913 final int numberOfCalls; | |
21914 | |
21915 final num selfTime; | |
21916 | |
21917 final num totalTime; | |
21918 | |
21919 final String url; | |
21920 | |
21921 final bool visible; | |
21922 | |
21923 List<ScriptProfileNode> children(); | |
21924 } | |
21925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21926 // for details. All rights reserved. Use of this source code is governed by a | |
21927 // BSD-style license that can be found in the LICENSE file. | |
21928 | |
21929 // WARNING: Do not edit - generated code. | |
21930 | |
21931 interface SessionDescription default _SessionDescriptionFactoryProvider { | |
21932 | |
21933 SessionDescription(String sdp); | |
21934 | |
21935 void addCandidate(IceCandidate candidate); | |
21936 | |
21937 String toSdp(); | |
21938 } | |
21939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21940 // for details. All rights reserved. Use of this source code is governed by a | |
21941 // BSD-style license that can be found in the LICENSE file. | |
21942 | |
21943 // WARNING: Do not edit - generated code. | |
21944 | |
21945 interface ShadowRoot extends DocumentFragment default _ShadowRootFactoryProvider
{ | |
21946 | |
21947 ShadowRoot(Element host); | |
21948 | |
21949 final Element activeElement; | |
21950 | |
21951 bool applyAuthorStyles; | |
21952 | |
21953 String innerHTML; | |
21954 | |
21955 bool resetStyleInheritance; | |
21956 | |
21957 Element getElementById(String elementId); | |
21958 | |
21959 NodeList getElementsByClassName(String className); | |
21960 | |
21961 NodeList getElementsByTagName(String tagName); | |
21962 | |
21963 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | |
21964 | |
21965 DOMSelection getSelection(); | |
21966 } | |
21967 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21968 // for details. All rights reserved. Use of this source code is governed by a | |
21969 // BSD-style license that can be found in the LICENSE file. | |
21970 | |
21971 // WARNING: Do not edit - generated code. | |
21972 | |
21973 interface SharedWorker extends AbstractWorker default _SharedWorkerFactoryProvid
er { | |
21974 | |
21975 SharedWorker(String scriptURL, [String name]); | |
21976 | |
21977 final MessagePort port; | |
21978 } | |
21979 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21980 // for details. All rights reserved. Use of this source code is governed by a | |
21981 // BSD-style license that can be found in the LICENSE file. | |
21982 | |
21983 // WARNING: Do not edit - generated code. | |
21984 | |
21985 interface SharedWorkerGlobalScope extends WorkerContext { | |
21986 | |
21987 final String name; | |
21988 } | |
21989 | |
21990 interface SharedWorkerContext extends SharedWorkerGlobalScope { | |
21991 } | |
21992 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
21993 // for details. All rights reserved. Use of this source code is governed by a | |
21994 // BSD-style license that can be found in the LICENSE file. | |
21995 | |
21996 // WARNING: Do not edit - generated code. | |
21997 | |
21998 interface SourceBuffer { | |
21999 | |
22000 final TimeRanges buffered; | |
22001 | |
22002 num timestampOffset; | |
22003 | |
22004 void abort(); | |
22005 | |
22006 void append(Uint8Array data); | |
22007 } | |
22008 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22009 // for details. All rights reserved. Use of this source code is governed by a | |
22010 // BSD-style license that can be found in the LICENSE file. | |
22011 | |
22012 // WARNING: Do not edit - generated code. | |
22013 | |
22014 interface SourceBufferList extends EventTarget { | |
22015 | |
22016 final int length; | |
22017 | |
22018 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
22019 | |
22020 bool dispatchEvent(Event event); | |
22021 | |
22022 SourceBuffer item(int index); | |
22023 | |
22024 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
22025 } | |
22026 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22027 // for details. All rights reserved. Use of this source code is governed by a | |
22028 // BSD-style license that can be found in the LICENSE file. | |
22029 | |
22030 // WARNING: Do not edit - generated code. | |
22031 | |
22032 interface SpeechGrammar default _SpeechGrammarFactoryProvider { | |
22033 | |
22034 SpeechGrammar(); | |
22035 | |
22036 String src; | |
22037 | |
22038 num weight; | |
22039 } | |
22040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22041 // for details. All rights reserved. Use of this source code is governed by a | |
22042 // BSD-style license that can be found in the LICENSE file. | |
22043 | |
22044 // WARNING: Do not edit - generated code. | |
22045 | |
22046 interface SpeechGrammarList default _SpeechGrammarListFactoryProvider { | |
22047 | |
22048 SpeechGrammarList(); | |
22049 | |
22050 final int length; | |
22051 | |
22052 void addFromString(String string, [num weight]); | |
22053 | |
22054 void addFromUri(String src, [num weight]); | |
22055 | |
22056 SpeechGrammar item(int index); | |
22057 } | |
22058 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22059 // for details. All rights reserved. Use of this source code is governed by a | |
22060 // BSD-style license that can be found in the LICENSE file. | |
22061 | |
22062 // WARNING: Do not edit - generated code. | |
22063 | |
22064 interface SpeechInputEvent extends Event { | |
22065 | |
22066 final SpeechInputResultList results; | |
22067 } | |
22068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22069 // for details. All rights reserved. Use of this source code is governed by a | |
22070 // BSD-style license that can be found in the LICENSE file. | |
22071 | |
22072 // WARNING: Do not edit - generated code. | |
22073 | |
22074 interface SpeechInputResult { | |
22075 | |
22076 final num confidence; | |
22077 | |
22078 final String utterance; | |
22079 } | |
22080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22081 // for details. All rights reserved. Use of this source code is governed by a | |
22082 // BSD-style license that can be found in the LICENSE file. | |
22083 | |
22084 // WARNING: Do not edit - generated code. | |
22085 | |
22086 interface SpeechInputResultList { | |
22087 | |
22088 final int length; | |
22089 | |
22090 SpeechInputResult item(int index); | |
22091 } | |
22092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22093 // for details. All rights reserved. Use of this source code is governed by a | |
22094 // BSD-style license that can be found in the LICENSE file. | |
22095 | |
22096 // WARNING: Do not edit - generated code. | |
22097 | |
22098 interface SpeechRecognition extends EventTarget default _SpeechRecognitionFactor
yProvider { | |
22099 | |
22100 SpeechRecognition(); | |
22101 | |
22102 bool continuous; | |
22103 | |
22104 SpeechGrammarList grammars; | |
22105 | |
22106 String lang; | |
22107 | |
22108 int maxAlternatives; | |
22109 | |
22110 void abort(); | |
22111 | |
22112 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
22113 | |
22114 bool dispatchEvent(Event evt); | |
22115 | |
22116 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
22117 | |
22118 void start(); | |
22119 | |
22120 void stop(); | |
22121 } | |
22122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22123 // for details. All rights reserved. Use of this source code is governed by a | |
22124 // BSD-style license that can be found in the LICENSE file. | |
22125 | |
22126 // WARNING: Do not edit - generated code. | |
22127 | |
22128 interface SpeechRecognitionAlternative { | |
22129 | |
22130 final num confidence; | |
22131 | |
22132 final String transcript; | |
22133 } | |
22134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22135 // for details. All rights reserved. Use of this source code is governed by a | |
22136 // BSD-style license that can be found in the LICENSE file. | |
22137 | |
22138 // WARNING: Do not edit - generated code. | |
22139 | |
22140 interface SpeechRecognitionError extends Event { | |
22141 | |
22142 static const int ABORTED = 2; | |
22143 | |
22144 static const int AUDIO_CAPTURE = 3; | |
22145 | |
22146 static const int BAD_GRAMMAR = 7; | |
22147 | |
22148 static const int LANGUAGE_NOT_SUPPORTED = 8; | |
22149 | |
22150 static const int NETWORK = 4; | |
22151 | |
22152 static const int NOT_ALLOWED = 5; | |
22153 | |
22154 static const int NO_SPEECH = 1; | |
22155 | |
22156 static const int OTHER = 0; | |
22157 | |
22158 static const int SERVICE_NOT_ALLOWED = 6; | |
22159 | |
22160 final int code; | |
22161 | |
22162 final String message; | |
22163 } | |
22164 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22165 // for details. All rights reserved. Use of this source code is governed by a | |
22166 // BSD-style license that can be found in the LICENSE file. | |
22167 | |
22168 // WARNING: Do not edit - generated code. | |
22169 | |
22170 interface SpeechRecognitionEvent extends Event { | |
22171 | |
22172 final SpeechRecognitionResult result; | |
22173 | |
22174 final SpeechRecognitionResultList resultHistory; | |
22175 | |
22176 final int resultIndex; | |
22177 } | |
22178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22179 // for details. All rights reserved. Use of this source code is governed by a | |
22180 // BSD-style license that can be found in the LICENSE file. | |
22181 | |
22182 // WARNING: Do not edit - generated code. | |
22183 | |
22184 interface SpeechRecognitionResult { | |
22185 | |
22186 final Document emma; | |
22187 | |
22188 final bool finalValue; | |
22189 | |
22190 final int length; | |
22191 | |
22192 SpeechRecognitionAlternative item(int index); | |
22193 } | |
22194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22195 // for details. All rights reserved. Use of this source code is governed by a | |
22196 // BSD-style license that can be found in the LICENSE file. | |
22197 | |
22198 // WARNING: Do not edit - generated code. | |
22199 | |
22200 interface SpeechRecognitionResultList { | |
22201 | |
22202 final int length; | |
22203 | |
22204 SpeechRecognitionResult item(int index); | |
22205 } | |
22206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22207 // for details. All rights reserved. Use of this source code is governed by a | |
22208 // BSD-style license that can be found in the LICENSE file. | |
22209 | |
22210 // WARNING: Do not edit - generated code. | |
22211 | |
22212 interface Storage { | |
22213 | |
22214 final int length; | |
22215 | |
22216 void clear(); | |
22217 | |
22218 String getItem(String key); | |
22219 | |
22220 String key(int index); | |
22221 | |
22222 void removeItem(String key); | |
22223 | |
22224 void setItem(String key, String data); | |
22225 } | |
22226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22227 // for details. All rights reserved. Use of this source code is governed by a | |
22228 // BSD-style license that can be found in the LICENSE file. | |
22229 | |
22230 // WARNING: Do not edit - generated code. | |
22231 | |
22232 interface StorageEvent extends Event { | |
22233 | |
22234 final String key; | |
22235 | |
22236 final String newValue; | |
22237 | |
22238 final String oldValue; | |
22239 | |
22240 final Storage storageArea; | |
22241 | |
22242 final String url; | |
22243 | |
22244 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg); | |
22245 } | |
22246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22247 // for details. All rights reserved. Use of this source code is governed by a | |
22248 // BSD-style license that can be found in the LICENSE file. | |
22249 | |
22250 // WARNING: Do not edit - generated code. | |
22251 | |
22252 interface StorageInfo { | |
22253 | |
22254 static const int PERSISTENT = 1; | |
22255 | |
22256 static const int TEMPORARY = 0; | |
22257 | |
22258 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]); | |
22259 | |
22260 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]); | |
22261 } | |
22262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22263 // for details. All rights reserved. Use of this source code is governed by a | |
22264 // BSD-style license that can be found in the LICENSE file. | |
22265 | |
22266 // WARNING: Do not edit - generated code. | |
22267 | |
22268 typedef bool StorageInfoErrorCallback(DOMException error); | |
22269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22270 // for details. All rights reserved. Use of this source code is governed by a | |
22271 // BSD-style license that can be found in the LICENSE file. | |
22272 | |
22273 // WARNING: Do not edit - generated code. | |
22274 | |
22275 typedef bool StorageInfoQuotaCallback(int grantedQuotaInBytes); | |
22276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22277 // for details. All rights reserved. Use of this source code is governed by a | |
22278 // BSD-style license that can be found in the LICENSE file. | |
22279 | |
22280 // WARNING: Do not edit - generated code. | |
22281 | |
22282 typedef bool StorageInfoUsageCallback(int currentUsageInBytes, int currentQuotaI
nBytes); | |
22283 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22284 // for details. All rights reserved. Use of this source code is governed by a | |
22285 // BSD-style license that can be found in the LICENSE file. | |
22286 | |
22287 // WARNING: Do not edit - generated code. | |
22288 | |
22289 typedef bool StringCallback(String data); | |
22290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22291 // for details. All rights reserved. Use of this source code is governed by a | |
22292 // BSD-style license that can be found in the LICENSE file. | |
22293 | |
22294 // WARNING: Do not edit - generated code. | |
22295 | |
22296 interface StyleMedia { | |
22297 | |
22298 final String type; | |
22299 | |
22300 bool matchMedium(String mediaquery); | |
22301 } | |
22302 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22303 // for details. All rights reserved. Use of this source code is governed by a | |
22304 // BSD-style license that can be found in the LICENSE file. | |
22305 | |
22306 // WARNING: Do not edit - generated code. | |
22307 | |
22308 interface StyleSheet { | |
22309 | |
22310 bool disabled; | |
22311 | |
22312 final String href; | |
22313 | |
22314 final MediaList media; | |
22315 | |
22316 final Node ownerNode; | |
22317 | |
22318 final StyleSheet parentStyleSheet; | |
22319 | |
22320 final String title; | |
22321 | |
22322 final String type; | |
22323 } | |
22324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22325 // for details. All rights reserved. Use of this source code is governed by a | |
22326 // BSD-style license that can be found in the LICENSE file. | |
22327 | |
22328 // WARNING: Do not edit - generated code. | |
22329 | |
22330 interface StyleSheetList extends List<StyleSheet> { | |
22331 | |
22332 final int length; | |
22333 | |
22334 StyleSheet item(int index); | |
22335 } | |
22336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22337 // for details. All rights reserved. Use of this source code is governed by a | |
22338 // BSD-style license that can be found in the LICENSE file. | |
22339 | |
22340 // WARNING: Do not edit - generated code. | |
22341 | |
22342 interface Text extends CharacterData { | |
22343 | |
22344 final String wholeText; | |
22345 | |
22346 Text replaceWholeText(String content); | |
22347 | |
22348 Text splitText(int offset); | |
22349 } | |
22350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22351 // for details. All rights reserved. Use of this source code is governed by a | |
22352 // BSD-style license that can be found in the LICENSE file. | |
22353 | |
22354 // WARNING: Do not edit - generated code. | |
22355 | |
22356 interface TextEvent extends UIEvent { | |
22357 | |
22358 final String data; | |
22359 | |
22360 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, DOMW
indow viewArg, String dataArg); | |
22361 } | |
22362 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22363 // for details. All rights reserved. Use of this source code is governed by a | |
22364 // BSD-style license that can be found in the LICENSE file. | |
22365 | |
22366 // WARNING: Do not edit - generated code. | |
22367 | |
22368 interface TextMetrics { | |
22369 | |
22370 final num width; | |
22371 } | |
22372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22373 // for details. All rights reserved. Use of this source code is governed by a | |
22374 // BSD-style license that can be found in the LICENSE file. | |
22375 | |
22376 // WARNING: Do not edit - generated code. | |
22377 | |
22378 interface TextTrack extends EventTarget { | |
22379 | |
22380 static const int DISABLED = 0; | |
22381 | |
22382 static const int HIDDEN = 1; | |
22383 | |
22384 static const int SHOWING = 2; | |
22385 | |
22386 final TextTrackCueList activeCues; | |
22387 | |
22388 final TextTrackCueList cues; | |
22389 | |
22390 final String kind; | |
22391 | |
22392 final String label; | |
22393 | |
22394 final String language; | |
22395 | |
22396 int mode; | |
22397 | |
22398 void addCue(TextTrackCue cue); | |
22399 | |
22400 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
22401 | |
22402 bool dispatchEvent(Event evt); | |
22403 | |
22404 void removeCue(TextTrackCue cue); | |
22405 | |
22406 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
22407 } | |
22408 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22409 // for details. All rights reserved. Use of this source code is governed by a | |
22410 // BSD-style license that can be found in the LICENSE file. | |
22411 | |
22412 // WARNING: Do not edit - generated code. | |
22413 | |
22414 interface TextTrackCue extends EventTarget default _TextTrackCueFactoryProvider
{ | |
22415 | |
22416 TextTrackCue(String id, num startTime, num endTime, String text, [String setti
ngs, bool pauseOnExit]); | |
22417 | |
22418 String align; | |
22419 | |
22420 num endTime; | |
22421 | |
22422 String id; | |
22423 | |
22424 int line; | |
22425 | |
22426 bool pauseOnExit; | |
22427 | |
22428 int position; | |
22429 | |
22430 int size; | |
22431 | |
22432 bool snapToLines; | |
22433 | |
22434 num startTime; | |
22435 | |
22436 String text; | |
22437 | |
22438 final TextTrack track; | |
22439 | |
22440 String vertical; | |
22441 | |
22442 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
22443 | |
22444 bool dispatchEvent(Event evt); | |
22445 | |
22446 DocumentFragment getCueAsHTML(); | |
22447 | |
22448 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
22449 } | |
22450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22451 // for details. All rights reserved. Use of this source code is governed by a | |
22452 // BSD-style license that can be found in the LICENSE file. | |
22453 | |
22454 // WARNING: Do not edit - generated code. | |
22455 | |
22456 interface TextTrackCueList { | |
22457 | |
22458 final int length; | |
22459 | |
22460 TextTrackCue getCueById(String id); | |
22461 | |
22462 TextTrackCue item(int index); | |
22463 } | |
22464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22465 // for details. All rights reserved. Use of this source code is governed by a | |
22466 // BSD-style license that can be found in the LICENSE file. | |
22467 | |
22468 // WARNING: Do not edit - generated code. | |
22469 | |
22470 interface TextTrackList extends EventTarget { | |
22471 | |
22472 final int length; | |
22473 | |
22474 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
22475 | |
22476 bool dispatchEvent(Event evt); | |
22477 | |
22478 TextTrack item(int index); | |
22479 | |
22480 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
22481 } | |
22482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22483 // for details. All rights reserved. Use of this source code is governed by a | |
22484 // BSD-style license that can be found in the LICENSE file. | |
22485 | |
22486 // WARNING: Do not edit - generated code. | |
22487 | |
22488 interface TimeRanges { | |
22489 | |
22490 final int length; | |
22491 | |
22492 num end(int index); | |
22493 | |
22494 num start(int index); | |
22495 } | |
22496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22497 // for details. All rights reserved. Use of this source code is governed by a | |
22498 // BSD-style license that can be found in the LICENSE file. | |
22499 | |
22500 // WARNING: Do not edit - generated code. | |
22501 | |
22502 typedef void TimeoutHandler(); | |
22503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22504 // for details. All rights reserved. Use of this source code is governed by a | |
22505 // BSD-style license that can be found in the LICENSE file. | |
22506 | |
22507 // WARNING: Do not edit - generated code. | |
22508 | |
22509 interface Touch { | |
22510 | |
22511 final int clientX; | |
22512 | |
22513 final int clientY; | |
22514 | |
22515 final int identifier; | |
22516 | |
22517 final int pageX; | |
22518 | |
22519 final int pageY; | |
22520 | |
22521 final int screenX; | |
22522 | |
22523 final int screenY; | |
22524 | |
22525 final EventTarget target; | |
22526 | |
22527 final num webkitForce; | |
22528 | |
22529 final int webkitRadiusX; | |
22530 | |
22531 final int webkitRadiusY; | |
22532 | |
22533 final num webkitRotationAngle; | |
22534 } | |
22535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22536 // for details. All rights reserved. Use of this source code is governed by a | |
22537 // BSD-style license that can be found in the LICENSE file. | |
22538 | |
22539 // WARNING: Do not edit - generated code. | |
22540 | |
22541 interface TouchEvent extends UIEvent { | |
22542 | |
22543 final bool altKey; | |
22544 | |
22545 final TouchList changedTouches; | |
22546 | |
22547 final bool ctrlKey; | |
22548 | |
22549 final bool metaKey; | |
22550 | |
22551 final bool shiftKey; | |
22552 | |
22553 final TouchList targetTouches; | |
22554 | |
22555 final TouchList touches; | |
22556 | |
22557 void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList chan
gedTouches, String type, DOMWindow view, int screenX, int screenY, int clientX,
int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey); | |
22558 } | |
22559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22560 // for details. All rights reserved. Use of this source code is governed by a | |
22561 // BSD-style license that can be found in the LICENSE file. | |
22562 | |
22563 // WARNING: Do not edit - generated code. | |
22564 | |
22565 interface TouchList extends List<Touch> { | |
22566 | |
22567 final int length; | |
22568 | |
22569 Touch item(int index); | |
22570 } | |
22571 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22572 // for details. All rights reserved. Use of this source code is governed by a | |
22573 // BSD-style license that can be found in the LICENSE file. | |
22574 | |
22575 // WARNING: Do not edit - generated code. | |
22576 | |
22577 interface TrackEvent extends Event { | |
22578 | |
22579 final Object track; | |
22580 } | |
22581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22582 // for details. All rights reserved. Use of this source code is governed by a | |
22583 // BSD-style license that can be found in the LICENSE file. | |
22584 | |
22585 // WARNING: Do not edit - generated code. | |
22586 | |
22587 interface TreeWalker { | |
22588 | |
22589 Node currentNode; | |
22590 | |
22591 final bool expandEntityReferences; | |
22592 | |
22593 final NodeFilter filter; | |
22594 | |
22595 final Node root; | |
22596 | |
22597 final int whatToShow; | |
22598 | |
22599 Node firstChild(); | |
22600 | |
22601 Node lastChild(); | |
22602 | |
22603 Node nextNode(); | |
22604 | |
22605 Node nextSibling(); | |
22606 | |
22607 Node parentNode(); | |
22608 | |
22609 Node previousNode(); | |
22610 | |
22611 Node previousSibling(); | |
22612 } | |
22613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22614 // for details. All rights reserved. Use of this source code is governed by a | |
22615 // BSD-style license that can be found in the LICENSE file. | |
22616 | |
22617 // WARNING: Do not edit - generated code. | |
22618 | |
22619 interface UIEvent extends Event { | |
22620 | |
22621 final int charCode; | |
22622 | |
22623 final int detail; | |
22624 | |
22625 final int keyCode; | |
22626 | |
22627 final int layerX; | |
22628 | |
22629 final int layerY; | |
22630 | |
22631 final int pageX; | |
22632 | |
22633 final int pageY; | |
22634 | |
22635 final DOMWindow view; | |
22636 | |
22637 final int which; | |
22638 | |
22639 void initUIEvent(String type, bool canBubble, bool cancelable, DOMWindow view,
int detail); | |
22640 } | |
22641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22642 // for details. All rights reserved. Use of this source code is governed by a | |
22643 // BSD-style license that can be found in the LICENSE file. | |
22644 | |
22645 // WARNING: Do not edit - generated code. | |
22646 | |
22647 interface Uint16Array extends ArrayBufferView, List<int> default _TypedArrayFact
oryProvider { | |
22648 | |
22649 Uint16Array(int length); | |
22650 | |
22651 Uint16Array.fromList(List<int> list); | |
22652 | |
22653 Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
22654 | |
22655 static const int BYTES_PER_ELEMENT = 2; | |
22656 | |
22657 final int length; | |
22658 | |
22659 void setElements(Object array, [int offset]); | |
22660 | |
22661 Uint16Array subarray(int start, [int end]); | |
22662 } | |
22663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22664 // for details. All rights reserved. Use of this source code is governed by a | |
22665 // BSD-style license that can be found in the LICENSE file. | |
22666 | |
22667 // WARNING: Do not edit - generated code. | |
22668 | |
22669 interface Uint32Array extends ArrayBufferView, List<int> default _TypedArrayFact
oryProvider { | |
22670 | |
22671 Uint32Array(int length); | |
22672 | |
22673 Uint32Array.fromList(List<int> list); | |
22674 | |
22675 Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
22676 | |
22677 static const int BYTES_PER_ELEMENT = 4; | |
22678 | |
22679 final int length; | |
22680 | |
22681 void setElements(Object array, [int offset]); | |
22682 | |
22683 Uint32Array subarray(int start, [int end]); | |
22684 } | |
22685 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22686 // for details. All rights reserved. Use of this source code is governed by a | |
22687 // BSD-style license that can be found in the LICENSE file. | |
22688 | |
22689 // WARNING: Do not edit - generated code. | |
22690 | |
22691 interface Uint8Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { | |
22692 | |
22693 Uint8Array(int length); | |
22694 | |
22695 Uint8Array.fromList(List<int> list); | |
22696 | |
22697 Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
22698 | |
22699 static const int BYTES_PER_ELEMENT = 1; | |
22700 | |
22701 final int length; | |
22702 | |
22703 void setElements(Object array, [int offset]); | |
22704 | |
22705 Uint8Array subarray(int start, [int end]); | |
22706 } | |
22707 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22708 // for details. All rights reserved. Use of this source code is governed by a | |
22709 // BSD-style license that can be found in the LICENSE file. | |
22710 | |
22711 // WARNING: Do not edit - generated code. | |
22712 | |
22713 interface Uint8ClampedArray extends Uint8Array default _TypedArrayFactoryProvide
r { | |
22714 | |
22715 Uint8ClampedArray(int length); | |
22716 | |
22717 Uint8ClampedArray.fromList(List<int> list); | |
22718 | |
22719 Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length])
; | |
22720 | |
22721 final int length; | |
22722 | |
22723 void setElements(Object array, [int offset]); | |
22724 | |
22725 Uint8ClampedArray subarray(int start, [int end]); | |
22726 } | |
22727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22728 // for details. All rights reserved. Use of this source code is governed by a | |
22729 // BSD-style license that can be found in the LICENSE file. | |
22730 | |
22731 // WARNING: Do not edit - generated code. | |
22732 | |
22733 interface ValidityState { | |
22734 | |
22735 final bool customError; | |
22736 | |
22737 final bool patternMismatch; | |
22738 | |
22739 final bool rangeOverflow; | |
22740 | |
22741 final bool rangeUnderflow; | |
22742 | |
22743 final bool stepMismatch; | |
22744 | |
22745 final bool tooLong; | |
22746 | |
22747 final bool typeMismatch; | |
22748 | |
22749 final bool valid; | |
22750 | |
22751 final bool valueMissing; | |
22752 } | |
22753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22754 // for details. All rights reserved. Use of this source code is governed by a | |
22755 // BSD-style license that can be found in the LICENSE file. | |
22756 | |
22757 // WARNING: Do not edit - generated code. | |
22758 | |
22759 typedef bool VoidCallback(); | |
22760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22761 // for details. All rights reserved. Use of this source code is governed by a | |
22762 // BSD-style license that can be found in the LICENSE file. | |
22763 | |
22764 // WARNING: Do not edit - generated code. | |
22765 | |
22766 interface WaveShaperNode extends AudioNode { | |
22767 | |
22768 Float32Array curve; | |
22769 } | |
22770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22771 // for details. All rights reserved. Use of this source code is governed by a | |
22772 // BSD-style license that can be found in the LICENSE file. | |
22773 | |
22774 // WARNING: Do not edit - generated code. | |
22775 | |
22776 interface WaveTable { | |
22777 } | |
22778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22779 // for details. All rights reserved. Use of this source code is governed by a | |
22780 // BSD-style license that can be found in the LICENSE file. | |
22781 | |
22782 // WARNING: Do not edit - generated code. | |
22783 | |
22784 interface WebGLActiveInfo { | |
22785 | |
22786 final String name; | |
22787 | |
22788 final int size; | |
22789 | |
22790 final int type; | |
22791 } | |
22792 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22793 // for details. All rights reserved. Use of this source code is governed by a | |
22794 // BSD-style license that can be found in the LICENSE file. | |
22795 | |
22796 // WARNING: Do not edit - generated code. | |
22797 | |
22798 interface WebGLBuffer { | |
22799 } | |
22800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22801 // for details. All rights reserved. Use of this source code is governed by a | |
22802 // BSD-style license that can be found in the LICENSE file. | |
22803 | |
22804 // WARNING: Do not edit - generated code. | |
22805 | |
22806 interface WebGLCompressedTextureS3TC { | |
22807 | |
22808 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; | |
22809 | |
22810 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; | |
22811 | |
22812 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; | |
22813 | |
22814 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; | |
22815 } | |
22816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22817 // for details. All rights reserved. Use of this source code is governed by a | |
22818 // BSD-style license that can be found in the LICENSE file. | |
22819 | |
22820 // WARNING: Do not edit - generated code. | |
22821 | |
22822 interface WebGLContextAttributes { | |
22823 | |
22824 bool alpha; | |
22825 | |
22826 bool antialias; | |
22827 | |
22828 bool depth; | |
22829 | |
22830 bool premultipliedAlpha; | |
22831 | |
22832 bool preserveDrawingBuffer; | |
22833 | |
22834 bool stencil; | |
22835 } | |
22836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22837 // for details. All rights reserved. Use of this source code is governed by a | |
22838 // BSD-style license that can be found in the LICENSE file. | |
22839 | |
22840 // WARNING: Do not edit - generated code. | |
22841 | |
22842 interface WebGLContextEvent extends Event { | |
22843 | |
22844 final String statusMessage; | |
22845 } | |
22846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22847 // for details. All rights reserved. Use of this source code is governed by a | |
22848 // BSD-style license that can be found in the LICENSE file. | |
22849 | |
22850 // WARNING: Do not edit - generated code. | |
22851 | |
22852 interface WebGLDebugRendererInfo { | |
22853 | |
22854 static const int UNMASKED_RENDERER_WEBGL = 0x9246; | |
22855 | |
22856 static const int UNMASKED_VENDOR_WEBGL = 0x9245; | |
22857 } | |
22858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22859 // for details. All rights reserved. Use of this source code is governed by a | |
22860 // BSD-style license that can be found in the LICENSE file. | |
22861 | |
22862 // WARNING: Do not edit - generated code. | |
22863 | |
22864 interface WebGLDebugShaders { | |
22865 | |
22866 String getTranslatedShaderSource(WebGLShader shader); | |
22867 } | |
22868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22869 // for details. All rights reserved. Use of this source code is governed by a | |
22870 // BSD-style license that can be found in the LICENSE file. | |
22871 | |
22872 // WARNING: Do not edit - generated code. | |
22873 | |
22874 interface WebGLDepthTexture { | |
22875 | |
22876 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; | |
22877 } | |
22878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22879 // for details. All rights reserved. Use of this source code is governed by a | |
22880 // BSD-style license that can be found in the LICENSE file. | |
22881 | |
22882 // WARNING: Do not edit - generated code. | |
22883 | |
22884 interface WebGLFramebuffer { | |
22885 } | |
22886 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22887 // for details. All rights reserved. Use of this source code is governed by a | |
22888 // BSD-style license that can be found in the LICENSE file. | |
22889 | |
22890 // WARNING: Do not edit - generated code. | |
22891 | |
22892 interface WebGLLoseContext { | |
22893 | |
22894 void loseContext(); | |
22895 | |
22896 void restoreContext(); | |
22897 } | |
22898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22899 // for details. All rights reserved. Use of this source code is governed by a | |
22900 // BSD-style license that can be found in the LICENSE file. | |
22901 | |
22902 // WARNING: Do not edit - generated code. | |
22903 | |
22904 interface WebGLProgram { | |
22905 } | |
22906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22907 // for details. All rights reserved. Use of this source code is governed by a | |
22908 // BSD-style license that can be found in the LICENSE file. | |
22909 | |
22910 // WARNING: Do not edit - generated code. | |
22911 | |
22912 interface WebGLRenderbuffer { | |
22913 } | |
22914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
22915 // for details. All rights reserved. Use of this source code is governed by a | |
22916 // BSD-style license that can be found in the LICENSE file. | |
22917 | |
22918 // WARNING: Do not edit - generated code. | |
22919 | |
22920 interface WebGLRenderingContext extends CanvasRenderingContext { | |
22921 | |
22922 static const int ACTIVE_ATTRIBUTES = 0x8B89; | |
22923 | |
22924 static const int ACTIVE_TEXTURE = 0x84E0; | |
22925 | |
22926 static const int ACTIVE_UNIFORMS = 0x8B86; | |
22927 | |
22928 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E; | |
22929 | |
22930 static const int ALIASED_POINT_SIZE_RANGE = 0x846D; | |
22931 | |
22932 static const int ALPHA = 0x1906; | |
22933 | |
22934 static const int ALPHA_BITS = 0x0D55; | |
22935 | |
22936 static const int ALWAYS = 0x0207; | |
22937 | |
22938 static const int ARRAY_BUFFER = 0x8892; | |
22939 | |
22940 static const int ARRAY_BUFFER_BINDING = 0x8894; | |
22941 | |
22942 static const int ATTACHED_SHADERS = 0x8B85; | |
22943 | |
22944 static const int BACK = 0x0405; | |
22945 | |
22946 static const int BLEND = 0x0BE2; | |
22947 | |
22948 static const int BLEND_COLOR = 0x8005; | |
22949 | |
22950 static const int BLEND_DST_ALPHA = 0x80CA; | |
22951 | |
22952 static const int BLEND_DST_RGB = 0x80C8; | |
22953 | |
22954 static const int BLEND_EQUATION = 0x8009; | |
22955 | |
22956 static const int BLEND_EQUATION_ALPHA = 0x883D; | |
22957 | |
22958 static const int BLEND_EQUATION_RGB = 0x8009; | |
22959 | |
22960 static const int BLEND_SRC_ALPHA = 0x80CB; | |
22961 | |
22962 static const int BLEND_SRC_RGB = 0x80C9; | |
22963 | |
22964 static const int BLUE_BITS = 0x0D54; | |
22965 | |
22966 static const int BOOL = 0x8B56; | |
22967 | |
22968 static const int BOOL_VEC2 = 0x8B57; | |
22969 | |
22970 static const int BOOL_VEC3 = 0x8B58; | |
22971 | |
22972 static const int BOOL_VEC4 = 0x8B59; | |
22973 | |
22974 static const int BROWSER_DEFAULT_WEBGL = 0x9244; | |
22975 | |
22976 static const int BUFFER_SIZE = 0x8764; | |
22977 | |
22978 static const int BUFFER_USAGE = 0x8765; | |
22979 | |
22980 static const int BYTE = 0x1400; | |
22981 | |
22982 static const int CCW = 0x0901; | |
22983 | |
22984 static const int CLAMP_TO_EDGE = 0x812F; | |
22985 | |
22986 static const int COLOR_ATTACHMENT0 = 0x8CE0; | |
22987 | |
22988 static const int COLOR_BUFFER_BIT = 0x00004000; | |
22989 | |
22990 static const int COLOR_CLEAR_VALUE = 0x0C22; | |
22991 | |
22992 static const int COLOR_WRITEMASK = 0x0C23; | |
22993 | |
22994 static const int COMPILE_STATUS = 0x8B81; | |
22995 | |
22996 static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3; | |
22997 | |
22998 static const int CONSTANT_ALPHA = 0x8003; | |
22999 | |
23000 static const int CONSTANT_COLOR = 0x8001; | |
23001 | |
23002 static const int CONTEXT_LOST_WEBGL = 0x9242; | |
23003 | |
23004 static const int CULL_FACE = 0x0B44; | |
23005 | |
23006 static const int CULL_FACE_MODE = 0x0B45; | |
23007 | |
23008 static const int CURRENT_PROGRAM = 0x8B8D; | |
23009 | |
23010 static const int CURRENT_VERTEX_ATTRIB = 0x8626; | |
23011 | |
23012 static const int CW = 0x0900; | |
23013 | |
23014 static const int DECR = 0x1E03; | |
23015 | |
23016 static const int DECR_WRAP = 0x8508; | |
23017 | |
23018 static const int DELETE_STATUS = 0x8B80; | |
23019 | |
23020 static const int DEPTH_ATTACHMENT = 0x8D00; | |
23021 | |
23022 static const int DEPTH_BITS = 0x0D56; | |
23023 | |
23024 static const int DEPTH_BUFFER_BIT = 0x00000100; | |
23025 | |
23026 static const int DEPTH_CLEAR_VALUE = 0x0B73; | |
23027 | |
23028 static const int DEPTH_COMPONENT = 0x1902; | |
23029 | |
23030 static const int DEPTH_COMPONENT16 = 0x81A5; | |
23031 | |
23032 static const int DEPTH_FUNC = 0x0B74; | |
23033 | |
23034 static const int DEPTH_RANGE = 0x0B70; | |
23035 | |
23036 static const int DEPTH_STENCIL = 0x84F9; | |
23037 | |
23038 static const int DEPTH_STENCIL_ATTACHMENT = 0x821A; | |
23039 | |
23040 static const int DEPTH_TEST = 0x0B71; | |
23041 | |
23042 static const int DEPTH_WRITEMASK = 0x0B72; | |
23043 | |
23044 static const int DITHER = 0x0BD0; | |
23045 | |
23046 static const int DONT_CARE = 0x1100; | |
23047 | |
23048 static const int DST_ALPHA = 0x0304; | |
23049 | |
23050 static const int DST_COLOR = 0x0306; | |
23051 | |
23052 static const int DYNAMIC_DRAW = 0x88E8; | |
23053 | |
23054 static const int ELEMENT_ARRAY_BUFFER = 0x8893; | |
23055 | |
23056 static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; | |
23057 | |
23058 static const int EQUAL = 0x0202; | |
23059 | |
23060 static const int FASTEST = 0x1101; | |
23061 | |
23062 static const int FLOAT = 0x1406; | |
23063 | |
23064 static const int FLOAT_MAT2 = 0x8B5A; | |
23065 | |
23066 static const int FLOAT_MAT3 = 0x8B5B; | |
23067 | |
23068 static const int FLOAT_MAT4 = 0x8B5C; | |
23069 | |
23070 static const int FLOAT_VEC2 = 0x8B50; | |
23071 | |
23072 static const int FLOAT_VEC3 = 0x8B51; | |
23073 | |
23074 static const int FLOAT_VEC4 = 0x8B52; | |
23075 | |
23076 static const int FRAGMENT_SHADER = 0x8B30; | |
23077 | |
23078 static const int FRAMEBUFFER = 0x8D40; | |
23079 | |
23080 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; | |
23081 | |
23082 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; | |
23083 | |
23084 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; | |
23085 | |
23086 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; | |
23087 | |
23088 static const int FRAMEBUFFER_BINDING = 0x8CA6; | |
23089 | |
23090 static const int FRAMEBUFFER_COMPLETE = 0x8CD5; | |
23091 | |
23092 static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; | |
23093 | |
23094 static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; | |
23095 | |
23096 static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; | |
23097 | |
23098 static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; | |
23099 | |
23100 static const int FRONT = 0x0404; | |
23101 | |
23102 static const int FRONT_AND_BACK = 0x0408; | |
23103 | |
23104 static const int FRONT_FACE = 0x0B46; | |
23105 | |
23106 static const int FUNC_ADD = 0x8006; | |
23107 | |
23108 static const int FUNC_REVERSE_SUBTRACT = 0x800B; | |
23109 | |
23110 static const int FUNC_SUBTRACT = 0x800A; | |
23111 | |
23112 static const int GENERATE_MIPMAP_HINT = 0x8192; | |
23113 | |
23114 static const int GEQUAL = 0x0206; | |
23115 | |
23116 static const int GREATER = 0x0204; | |
23117 | |
23118 static const int GREEN_BITS = 0x0D53; | |
23119 | |
23120 static const int HIGH_FLOAT = 0x8DF2; | |
23121 | |
23122 static const int HIGH_INT = 0x8DF5; | |
23123 | |
23124 static const int INCR = 0x1E02; | |
23125 | |
23126 static const int INCR_WRAP = 0x8507; | |
23127 | |
23128 static const int INT = 0x1404; | |
23129 | |
23130 static const int INT_VEC2 = 0x8B53; | |
23131 | |
23132 static const int INT_VEC3 = 0x8B54; | |
23133 | |
23134 static const int INT_VEC4 = 0x8B55; | |
23135 | |
23136 static const int INVALID_ENUM = 0x0500; | |
23137 | |
23138 static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506; | |
23139 | |
23140 static const int INVALID_OPERATION = 0x0502; | |
23141 | |
23142 static const int INVALID_VALUE = 0x0501; | |
23143 | |
23144 static const int INVERT = 0x150A; | |
23145 | |
23146 static const int KEEP = 0x1E00; | |
23147 | |
23148 static const int LEQUAL = 0x0203; | |
23149 | |
23150 static const int LESS = 0x0201; | |
23151 | |
23152 static const int LINEAR = 0x2601; | |
23153 | |
23154 static const int LINEAR_MIPMAP_LINEAR = 0x2703; | |
23155 | |
23156 static const int LINEAR_MIPMAP_NEAREST = 0x2701; | |
23157 | |
23158 static const int LINES = 0x0001; | |
23159 | |
23160 static const int LINE_LOOP = 0x0002; | |
23161 | |
23162 static const int LINE_STRIP = 0x0003; | |
23163 | |
23164 static const int LINE_WIDTH = 0x0B21; | |
23165 | |
23166 static const int LINK_STATUS = 0x8B82; | |
23167 | |
23168 static const int LOW_FLOAT = 0x8DF0; | |
23169 | |
23170 static const int LOW_INT = 0x8DF3; | |
23171 | |
23172 static const int LUMINANCE = 0x1909; | |
23173 | |
23174 static const int LUMINANCE_ALPHA = 0x190A; | |
23175 | |
23176 static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; | |
23177 | |
23178 static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; | |
23179 | |
23180 static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; | |
23181 | |
23182 static const int MAX_RENDERBUFFER_SIZE = 0x84E8; | |
23183 | |
23184 static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872; | |
23185 | |
23186 static const int MAX_TEXTURE_SIZE = 0x0D33; | |
23187 | |
23188 static const int MAX_VARYING_VECTORS = 0x8DFC; | |
23189 | |
23190 static const int MAX_VERTEX_ATTRIBS = 0x8869; | |
23191 | |
23192 static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; | |
23193 | |
23194 static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; | |
23195 | |
23196 static const int MAX_VIEWPORT_DIMS = 0x0D3A; | |
23197 | |
23198 static const int MEDIUM_FLOAT = 0x8DF1; | |
23199 | |
23200 static const int MEDIUM_INT = 0x8DF4; | |
23201 | |
23202 static const int MIRRORED_REPEAT = 0x8370; | |
23203 | |
23204 static const int NEAREST = 0x2600; | |
23205 | |
23206 static const int NEAREST_MIPMAP_LINEAR = 0x2702; | |
23207 | |
23208 static const int NEAREST_MIPMAP_NEAREST = 0x2700; | |
23209 | |
23210 static const int NEVER = 0x0200; | |
23211 | |
23212 static const int NICEST = 0x1102; | |
23213 | |
23214 static const int NONE = 0; | |
23215 | |
23216 static const int NOTEQUAL = 0x0205; | |
23217 | |
23218 static const int NO_ERROR = 0; | |
23219 | |
23220 static const int ONE = 1; | |
23221 | |
23222 static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004; | |
23223 | |
23224 static const int ONE_MINUS_CONSTANT_COLOR = 0x8002; | |
23225 | |
23226 static const int ONE_MINUS_DST_ALPHA = 0x0305; | |
23227 | |
23228 static const int ONE_MINUS_DST_COLOR = 0x0307; | |
23229 | |
23230 static const int ONE_MINUS_SRC_ALPHA = 0x0303; | |
23231 | |
23232 static const int ONE_MINUS_SRC_COLOR = 0x0301; | |
23233 | |
23234 static const int OUT_OF_MEMORY = 0x0505; | |
23235 | |
23236 static const int PACK_ALIGNMENT = 0x0D05; | |
23237 | |
23238 static const int POINTS = 0x0000; | |
23239 | |
23240 static const int POLYGON_OFFSET_FACTOR = 0x8038; | |
23241 | |
23242 static const int POLYGON_OFFSET_FILL = 0x8037; | |
23243 | |
23244 static const int POLYGON_OFFSET_UNITS = 0x2A00; | |
23245 | |
23246 static const int RED_BITS = 0x0D52; | |
23247 | |
23248 static const int RENDERBUFFER = 0x8D41; | |
23249 | |
23250 static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53; | |
23251 | |
23252 static const int RENDERBUFFER_BINDING = 0x8CA7; | |
23253 | |
23254 static const int RENDERBUFFER_BLUE_SIZE = 0x8D52; | |
23255 | |
23256 static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54; | |
23257 | |
23258 static const int RENDERBUFFER_GREEN_SIZE = 0x8D51; | |
23259 | |
23260 static const int RENDERBUFFER_HEIGHT = 0x8D43; | |
23261 | |
23262 static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; | |
23263 | |
23264 static const int RENDERBUFFER_RED_SIZE = 0x8D50; | |
23265 | |
23266 static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55; | |
23267 | |
23268 static const int RENDERBUFFER_WIDTH = 0x8D42; | |
23269 | |
23270 static const int RENDERER = 0x1F01; | |
23271 | |
23272 static const int REPEAT = 0x2901; | |
23273 | |
23274 static const int REPLACE = 0x1E01; | |
23275 | |
23276 static const int RGB = 0x1907; | |
23277 | |
23278 static const int RGB565 = 0x8D62; | |
23279 | |
23280 static const int RGB5_A1 = 0x8057; | |
23281 | |
23282 static const int RGBA = 0x1908; | |
23283 | |
23284 static const int RGBA4 = 0x8056; | |
23285 | |
23286 static const int SAMPLER_2D = 0x8B5E; | |
23287 | |
23288 static const int SAMPLER_CUBE = 0x8B60; | |
23289 | |
23290 static const int SAMPLES = 0x80A9; | |
23291 | |
23292 static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; | |
23293 | |
23294 static const int SAMPLE_BUFFERS = 0x80A8; | |
23295 | |
23296 static const int SAMPLE_COVERAGE = 0x80A0; | |
23297 | |
23298 static const int SAMPLE_COVERAGE_INVERT = 0x80AB; | |
23299 | |
23300 static const int SAMPLE_COVERAGE_VALUE = 0x80AA; | |
23301 | |
23302 static const int SCISSOR_BOX = 0x0C10; | |
23303 | |
23304 static const int SCISSOR_TEST = 0x0C11; | |
23305 | |
23306 static const int SHADER_TYPE = 0x8B4F; | |
23307 | |
23308 static const int SHADING_LANGUAGE_VERSION = 0x8B8C; | |
23309 | |
23310 static const int SHORT = 0x1402; | |
23311 | |
23312 static const int SRC_ALPHA = 0x0302; | |
23313 | |
23314 static const int SRC_ALPHA_SATURATE = 0x0308; | |
23315 | |
23316 static const int SRC_COLOR = 0x0300; | |
23317 | |
23318 static const int STATIC_DRAW = 0x88E4; | |
23319 | |
23320 static const int STENCIL_ATTACHMENT = 0x8D20; | |
23321 | |
23322 static const int STENCIL_BACK_FAIL = 0x8801; | |
23323 | |
23324 static const int STENCIL_BACK_FUNC = 0x8800; | |
23325 | |
23326 static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; | |
23327 | |
23328 static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; | |
23329 | |
23330 static const int STENCIL_BACK_REF = 0x8CA3; | |
23331 | |
23332 static const int STENCIL_BACK_VALUE_MASK = 0x8CA4; | |
23333 | |
23334 static const int STENCIL_BACK_WRITEMASK = 0x8CA5; | |
23335 | |
23336 static const int STENCIL_BITS = 0x0D57; | |
23337 | |
23338 static const int STENCIL_BUFFER_BIT = 0x00000400; | |
23339 | |
23340 static const int STENCIL_CLEAR_VALUE = 0x0B91; | |
23341 | |
23342 static const int STENCIL_FAIL = 0x0B94; | |
23343 | |
23344 static const int STENCIL_FUNC = 0x0B92; | |
23345 | |
23346 static const int STENCIL_INDEX = 0x1901; | |
23347 | |
23348 static const int STENCIL_INDEX8 = 0x8D48; | |
23349 | |
23350 static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95; | |
23351 | |
23352 static const int STENCIL_PASS_DEPTH_PASS = 0x0B96; | |
23353 | |
23354 static const int STENCIL_REF = 0x0B97; | |
23355 | |
23356 static const int STENCIL_TEST = 0x0B90; | |
23357 | |
23358 static const int STENCIL_VALUE_MASK = 0x0B93; | |
23359 | |
23360 static const int STENCIL_WRITEMASK = 0x0B98; | |
23361 | |
23362 static const int STREAM_DRAW = 0x88E0; | |
23363 | |
23364 static const int SUBPIXEL_BITS = 0x0D50; | |
23365 | |
23366 static const int TEXTURE = 0x1702; | |
23367 | |
23368 static const int TEXTURE0 = 0x84C0; | |
23369 | |
23370 static const int TEXTURE1 = 0x84C1; | |
23371 | |
23372 static const int TEXTURE10 = 0x84CA; | |
23373 | |
23374 static const int TEXTURE11 = 0x84CB; | |
23375 | |
23376 static const int TEXTURE12 = 0x84CC; | |
23377 | |
23378 static const int TEXTURE13 = 0x84CD; | |
23379 | |
23380 static const int TEXTURE14 = 0x84CE; | |
23381 | |
23382 static const int TEXTURE15 = 0x84CF; | |
23383 | |
23384 static const int TEXTURE16 = 0x84D0; | |
23385 | |
23386 static const int TEXTURE17 = 0x84D1; | |
23387 | |
23388 static const int TEXTURE18 = 0x84D2; | |
23389 | |
23390 static const int TEXTURE19 = 0x84D3; | |
23391 | |
23392 static const int TEXTURE2 = 0x84C2; | |
23393 | |
23394 static const int TEXTURE20 = 0x84D4; | |
23395 | |
23396 static const int TEXTURE21 = 0x84D5; | |
23397 | |
23398 static const int TEXTURE22 = 0x84D6; | |
23399 | |
23400 static const int TEXTURE23 = 0x84D7; | |
23401 | |
23402 static const int TEXTURE24 = 0x84D8; | |
23403 | |
23404 static const int TEXTURE25 = 0x84D9; | |
23405 | |
23406 static const int TEXTURE26 = 0x84DA; | |
23407 | |
23408 static const int TEXTURE27 = 0x84DB; | |
23409 | |
23410 static const int TEXTURE28 = 0x84DC; | |
23411 | |
23412 static const int TEXTURE29 = 0x84DD; | |
23413 | |
23414 static const int TEXTURE3 = 0x84C3; | |
23415 | |
23416 static const int TEXTURE30 = 0x84DE; | |
23417 | |
23418 static const int TEXTURE31 = 0x84DF; | |
23419 | |
23420 static const int TEXTURE4 = 0x84C4; | |
23421 | |
23422 static const int TEXTURE5 = 0x84C5; | |
23423 | |
23424 static const int TEXTURE6 = 0x84C6; | |
23425 | |
23426 static const int TEXTURE7 = 0x84C7; | |
23427 | |
23428 static const int TEXTURE8 = 0x84C8; | |
23429 | |
23430 static const int TEXTURE9 = 0x84C9; | |
23431 | |
23432 static const int TEXTURE_2D = 0x0DE1; | |
23433 | |
23434 static const int TEXTURE_BINDING_2D = 0x8069; | |
23435 | |
23436 static const int TEXTURE_BINDING_CUBE_MAP = 0x8514; | |
23437 | |
23438 static const int TEXTURE_CUBE_MAP = 0x8513; | |
23439 | |
23440 static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; | |
23441 | |
23442 static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; | |
23443 | |
23444 static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; | |
23445 | |
23446 static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; | |
23447 | |
23448 static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; | |
23449 | |
23450 static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; | |
23451 | |
23452 static const int TEXTURE_MAG_FILTER = 0x2800; | |
23453 | |
23454 static const int TEXTURE_MIN_FILTER = 0x2801; | |
23455 | |
23456 static const int TEXTURE_WRAP_S = 0x2802; | |
23457 | |
23458 static const int TEXTURE_WRAP_T = 0x2803; | |
23459 | |
23460 static const int TRIANGLES = 0x0004; | |
23461 | |
23462 static const int TRIANGLE_FAN = 0x0006; | |
23463 | |
23464 static const int TRIANGLE_STRIP = 0x0005; | |
23465 | |
23466 static const int UNPACK_ALIGNMENT = 0x0CF5; | |
23467 | |
23468 static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | |
23469 | |
23470 static const int UNPACK_FLIP_Y_WEBGL = 0x9240; | |
23471 | |
23472 static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | |
23473 | |
23474 static const int UNSIGNED_BYTE = 0x1401; | |
23475 | |
23476 static const int UNSIGNED_INT = 0x1405; | |
23477 | |
23478 static const int UNSIGNED_SHORT = 0x1403; | |
23479 | |
23480 static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033; | |
23481 | |
23482 static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034; | |
23483 | |
23484 static const int UNSIGNED_SHORT_5_6_5 = 0x8363; | |
23485 | |
23486 static const int VALIDATE_STATUS = 0x8B83; | |
23487 | |
23488 static const int VENDOR = 0x1F00; | |
23489 | |
23490 static const int VERSION = 0x1F02; | |
23491 | |
23492 static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; | |
23493 | |
23494 static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; | |
23495 | |
23496 static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; | |
23497 | |
23498 static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; | |
23499 | |
23500 static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; | |
23501 | |
23502 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; | |
23503 | |
23504 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; | |
23505 | |
23506 static const int VERTEX_SHADER = 0x8B31; | |
23507 | |
23508 static const int VIEWPORT = 0x0BA2; | |
23509 | |
23510 static const int ZERO = 0; | |
23511 | |
23512 final int drawingBufferHeight; | |
23513 | |
23514 final int drawingBufferWidth; | |
23515 | |
23516 void activeTexture(int texture); | |
23517 | |
23518 void attachShader(WebGLProgram program, WebGLShader shader); | |
23519 | |
23520 void bindAttribLocation(WebGLProgram program, int index, String name); | |
23521 | |
23522 void bindBuffer(int target, WebGLBuffer buffer); | |
23523 | |
23524 void bindFramebuffer(int target, WebGLFramebuffer framebuffer); | |
23525 | |
23526 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer); | |
23527 | |
23528 void bindTexture(int target, WebGLTexture texture); | |
23529 | |
23530 void blendColor(num red, num green, num blue, num alpha); | |
23531 | |
23532 void blendEquation(int mode); | |
23533 | |
23534 void blendEquationSeparate(int modeRGB, int modeAlpha); | |
23535 | |
23536 void blendFunc(int sfactor, int dfactor); | |
23537 | |
23538 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha); | |
23539 | |
23540 void bufferData(int target, data_OR_size, int usage); | |
23541 | |
23542 void bufferSubData(int target, int offset, data); | |
23543 | |
23544 int checkFramebufferStatus(int target); | |
23545 | |
23546 void clear(int mask); | |
23547 | |
23548 void clearColor(num red, num green, num blue, num alpha); | |
23549 | |
23550 void clearDepth(num depth); | |
23551 | |
23552 void clearStencil(int s); | |
23553 | |
23554 void colorMask(bool red, bool green, bool blue, bool alpha); | |
23555 | |
23556 void compileShader(WebGLShader shader); | |
23557 | |
23558 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, ArrayBufferView data); | |
23559 | |
23560 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, ArrayBufferView data); | |
23561 | |
23562 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border); | |
23563 | |
23564 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height); | |
23565 | |
23566 WebGLBuffer createBuffer(); | |
23567 | |
23568 WebGLFramebuffer createFramebuffer(); | |
23569 | |
23570 WebGLProgram createProgram(); | |
23571 | |
23572 WebGLRenderbuffer createRenderbuffer(); | |
23573 | |
23574 WebGLShader createShader(int type); | |
23575 | |
23576 WebGLTexture createTexture(); | |
23577 | |
23578 void cullFace(int mode); | |
23579 | |
23580 void deleteBuffer(WebGLBuffer buffer); | |
23581 | |
23582 void deleteFramebuffer(WebGLFramebuffer framebuffer); | |
23583 | |
23584 void deleteProgram(WebGLProgram program); | |
23585 | |
23586 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer); | |
23587 | |
23588 void deleteShader(WebGLShader shader); | |
23589 | |
23590 void deleteTexture(WebGLTexture texture); | |
23591 | |
23592 void depthFunc(int func); | |
23593 | |
23594 void depthMask(bool flag); | |
23595 | |
23596 void depthRange(num zNear, num zFar); | |
23597 | |
23598 void detachShader(WebGLProgram program, WebGLShader shader); | |
23599 | |
23600 void disable(int cap); | |
23601 | |
23602 void disableVertexAttribArray(int index); | |
23603 | |
23604 void drawArrays(int mode, int first, int count); | |
23605 | |
23606 void drawElements(int mode, int count, int type, int offset); | |
23607 | |
23608 void enable(int cap); | |
23609 | |
23610 void enableVertexAttribArray(int index); | |
23611 | |
23612 void finish(); | |
23613 | |
23614 void flush(); | |
23615 | |
23616 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, WebGLRenderbuffer renderbuffer); | |
23617 | |
23618 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level); | |
23619 | |
23620 void frontFace(int mode); | |
23621 | |
23622 void generateMipmap(int target); | |
23623 | |
23624 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index); | |
23625 | |
23626 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index); | |
23627 | |
23628 List<Object> getAttachedShaders(WebGLProgram program); | |
23629 | |
23630 int getAttribLocation(WebGLProgram program, String name); | |
23631 | |
23632 Object getBufferParameter(int target, int pname); | |
23633 | |
23634 WebGLContextAttributes getContextAttributes(); | |
23635 | |
23636 int getError(); | |
23637 | |
23638 Object getExtension(String name); | |
23639 | |
23640 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
); | |
23641 | |
23642 Object getParameter(int pname); | |
23643 | |
23644 String getProgramInfoLog(WebGLProgram program); | |
23645 | |
23646 Object getProgramParameter(WebGLProgram program, int pname); | |
23647 | |
23648 Object getRenderbufferParameter(int target, int pname); | |
23649 | |
23650 String getShaderInfoLog(WebGLShader shader); | |
23651 | |
23652 Object getShaderParameter(WebGLShader shader, int pname); | |
23653 | |
23654 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis
iontype); | |
23655 | |
23656 String getShaderSource(WebGLShader shader); | |
23657 | |
23658 List<String> getSupportedExtensions(); | |
23659 | |
23660 Object getTexParameter(int target, int pname); | |
23661 | |
23662 Object getUniform(WebGLProgram program, WebGLUniformLocation location); | |
23663 | |
23664 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name); | |
23665 | |
23666 Object getVertexAttrib(int index, int pname); | |
23667 | |
23668 int getVertexAttribOffset(int index, int pname); | |
23669 | |
23670 void hint(int target, int mode); | |
23671 | |
23672 bool isBuffer(WebGLBuffer buffer); | |
23673 | |
23674 bool isContextLost(); | |
23675 | |
23676 bool isEnabled(int cap); | |
23677 | |
23678 bool isFramebuffer(WebGLFramebuffer framebuffer); | |
23679 | |
23680 bool isProgram(WebGLProgram program); | |
23681 | |
23682 bool isRenderbuffer(WebGLRenderbuffer renderbuffer); | |
23683 | |
23684 bool isShader(WebGLShader shader); | |
23685 | |
23686 bool isTexture(WebGLTexture texture); | |
23687 | |
23688 void lineWidth(num width); | |
23689 | |
23690 void linkProgram(WebGLProgram program); | |
23691 | |
23692 void pixelStorei(int pname, int param); | |
23693 | |
23694 void polygonOffset(num factor, num units); | |
23695 | |
23696 void readPixels(int x, int y, int width, int height, int format, int type, Arr
ayBufferView pixels); | |
23697 | |
23698 void releaseShaderCompiler(); | |
23699 | |
23700 void renderbufferStorage(int target, int internalformat, int width, int height
); | |
23701 | |
23702 void sampleCoverage(num value, bool invert); | |
23703 | |
23704 void scissor(int x, int y, int width, int height); | |
23705 | |
23706 void shaderSource(WebGLShader shader, String string); | |
23707 | |
23708 void stencilFunc(int func, int ref, int mask); | |
23709 | |
23710 void stencilFuncSeparate(int face, int func, int ref, int mask); | |
23711 | |
23712 void stencilMask(int mask); | |
23713 | |
23714 void stencilMaskSeparate(int face, int mask); | |
23715 | |
23716 void stencilOp(int fail, int zfail, int zpass); | |
23717 | |
23718 void stencilOpSeparate(int face, int fail, int zfail, int zpass); | |
23719 | |
23720 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, ArrayBufferView pixels]); | |
23721 | |
23722 void texParameterf(int target, int pname, num param); | |
23723 | |
23724 void texParameteri(int target, int pname, int param); | |
23725 | |
23726 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, ArrayBufferView pixels]); | |
23727 | |
23728 void uniform1f(WebGLUniformLocation location, num x); | |
23729 | |
23730 void uniform1fv(WebGLUniformLocation location, Float32Array v); | |
23731 | |
23732 void uniform1i(WebGLUniformLocation location, int x); | |
23733 | |
23734 void uniform1iv(WebGLUniformLocation location, Int32Array v); | |
23735 | |
23736 void uniform2f(WebGLUniformLocation location, num x, num y); | |
23737 | |
23738 void uniform2fv(WebGLUniformLocation location, Float32Array v); | |
23739 | |
23740 void uniform2i(WebGLUniformLocation location, int x, int y); | |
23741 | |
23742 void uniform2iv(WebGLUniformLocation location, Int32Array v); | |
23743 | |
23744 void uniform3f(WebGLUniformLocation location, num x, num y, num z); | |
23745 | |
23746 void uniform3fv(WebGLUniformLocation location, Float32Array v); | |
23747 | |
23748 void uniform3i(WebGLUniformLocation location, int x, int y, int z); | |
23749 | |
23750 void uniform3iv(WebGLUniformLocation location, Int32Array v); | |
23751 | |
23752 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w); | |
23753 | |
23754 void uniform4fv(WebGLUniformLocation location, Float32Array v); | |
23755 | |
23756 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w); | |
23757 | |
23758 void uniform4iv(WebGLUniformLocation location, Int32Array v); | |
23759 | |
23760 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array); | |
23761 | |
23762 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array); | |
23763 | |
23764 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array); | |
23765 | |
23766 void useProgram(WebGLProgram program); | |
23767 | |
23768 void validateProgram(WebGLProgram program); | |
23769 | |
23770 void vertexAttrib1f(int indx, num x); | |
23771 | |
23772 void vertexAttrib1fv(int indx, Float32Array values); | |
23773 | |
23774 void vertexAttrib2f(int indx, num x, num y); | |
23775 | |
23776 void vertexAttrib2fv(int indx, Float32Array values); | |
23777 | |
23778 void vertexAttrib3f(int indx, num x, num y, num z); | |
23779 | |
23780 void vertexAttrib3fv(int indx, Float32Array values); | |
23781 | |
23782 void vertexAttrib4f(int indx, num x, num y, num z, num w); | |
23783 | |
23784 void vertexAttrib4fv(int indx, Float32Array values); | |
23785 | |
23786 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset); | |
23787 | |
23788 void viewport(int x, int y, int width, int height); | |
23789 } | |
23790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23791 // for details. All rights reserved. Use of this source code is governed by a | |
23792 // BSD-style license that can be found in the LICENSE file. | |
23793 | |
23794 // WARNING: Do not edit - generated code. | |
23795 | |
23796 interface WebGLShader { | |
23797 } | |
23798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23799 // for details. All rights reserved. Use of this source code is governed by a | |
23800 // BSD-style license that can be found in the LICENSE file. | |
23801 | |
23802 // WARNING: Do not edit - generated code. | |
23803 | |
23804 interface WebGLShaderPrecisionFormat { | |
23805 | |
23806 final int precision; | |
23807 | |
23808 final int rangeMax; | |
23809 | |
23810 final int rangeMin; | |
23811 } | |
23812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23813 // for details. All rights reserved. Use of this source code is governed by a | |
23814 // BSD-style license that can be found in the LICENSE file. | |
23815 | |
23816 // WARNING: Do not edit - generated code. | |
23817 | |
23818 interface WebGLTexture { | |
23819 } | |
23820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23821 // for details. All rights reserved. Use of this source code is governed by a | |
23822 // BSD-style license that can be found in the LICENSE file. | |
23823 | |
23824 // WARNING: Do not edit - generated code. | |
23825 | |
23826 interface WebGLUniformLocation { | |
23827 } | |
23828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23829 // for details. All rights reserved. Use of this source code is governed by a | |
23830 // BSD-style license that can be found in the LICENSE file. | |
23831 | |
23832 // WARNING: Do not edit - generated code. | |
23833 | |
23834 interface WebGLVertexArrayObjectOES { | |
23835 } | |
23836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23837 // for details. All rights reserved. Use of this source code is governed by a | |
23838 // BSD-style license that can be found in the LICENSE file. | |
23839 | |
23840 // WARNING: Do not edit - generated code. | |
23841 | |
23842 interface WebKitAnimation { | |
23843 | |
23844 static const int DIRECTION_ALTERNATE = 1; | |
23845 | |
23846 static const int DIRECTION_NORMAL = 0; | |
23847 | |
23848 static const int FILL_BACKWARDS = 1; | |
23849 | |
23850 static const int FILL_BOTH = 3; | |
23851 | |
23852 static const int FILL_FORWARDS = 2; | |
23853 | |
23854 static const int FILL_NONE = 0; | |
23855 | |
23856 final num delay; | |
23857 | |
23858 final int direction; | |
23859 | |
23860 final num duration; | |
23861 | |
23862 num elapsedTime; | |
23863 | |
23864 final bool ended; | |
23865 | |
23866 final int fillMode; | |
23867 | |
23868 final int iterationCount; | |
23869 | |
23870 final String name; | |
23871 | |
23872 final bool paused; | |
23873 | |
23874 void pause(); | |
23875 | |
23876 void play(); | |
23877 } | |
23878 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23879 // for details. All rights reserved. Use of this source code is governed by a | |
23880 // BSD-style license that can be found in the LICENSE file. | |
23881 | |
23882 // WARNING: Do not edit - generated code. | |
23883 | |
23884 interface WebKitAnimationEvent extends Event { | |
23885 | |
23886 final String animationName; | |
23887 | |
23888 final num elapsedTime; | |
23889 } | |
23890 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23891 // for details. All rights reserved. Use of this source code is governed by a | |
23892 // BSD-style license that can be found in the LICENSE file. | |
23893 | |
23894 // WARNING: Do not edit - generated code. | |
23895 | |
23896 interface WebKitAnimationList { | |
23897 | |
23898 final int length; | |
23899 | |
23900 WebKitAnimation item(int index); | |
23901 } | |
23902 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23903 // for details. All rights reserved. Use of this source code is governed by a | |
23904 // BSD-style license that can be found in the LICENSE file. | |
23905 | |
23906 // WARNING: Do not edit - generated code. | |
23907 | |
23908 interface WebKitCSSFilterValue extends CSSValueList { | |
23909 | |
23910 static const int CSS_FILTER_BLUR = 10; | |
23911 | |
23912 static const int CSS_FILTER_BRIGHTNESS = 8; | |
23913 | |
23914 static const int CSS_FILTER_CONTRAST = 9; | |
23915 | |
23916 static const int CSS_FILTER_CUSTOM = 12; | |
23917 | |
23918 static const int CSS_FILTER_DROP_SHADOW = 11; | |
23919 | |
23920 static const int CSS_FILTER_GRAYSCALE = 2; | |
23921 | |
23922 static const int CSS_FILTER_HUE_ROTATE = 5; | |
23923 | |
23924 static const int CSS_FILTER_INVERT = 6; | |
23925 | |
23926 static const int CSS_FILTER_OPACITY = 7; | |
23927 | |
23928 static const int CSS_FILTER_REFERENCE = 1; | |
23929 | |
23930 static const int CSS_FILTER_SATURATE = 4; | |
23931 | |
23932 static const int CSS_FILTER_SEPIA = 3; | |
23933 | |
23934 final int operationType; | |
23935 } | |
23936 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23937 // for details. All rights reserved. Use of this source code is governed by a | |
23938 // BSD-style license that can be found in the LICENSE file. | |
23939 | |
23940 // WARNING: Do not edit - generated code. | |
23941 | |
23942 interface WebKitCSSKeyframeRule extends CSSRule { | |
23943 | |
23944 String keyText; | |
23945 | |
23946 final CSSStyleDeclaration style; | |
23947 } | |
23948 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
23949 // for details. All rights reserved. Use of this source code is governed by a | |
23950 // BSD-style license that can be found in the LICENSE file. | |
23951 | |
23952 // WARNING: Do not edit - generated code. | |
23953 | |
23954 interface WebKitCSSKeyframesRule extends CSSRule { | |
23955 | |
23956 final CSSRuleList cssRules; | |
23957 | |
23958 String name; | |
23959 | |
23960 void deleteRule(String key); | |
23961 | |
23962 WebKitCSSKeyframeRule findRule(String key); | |
23963 | |
23964 void insertRule(String rule); | |
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 WebKitCSSMatrix default _WebKitCSSMatrixFactoryProvider { | |
23973 | |
23974 WebKitCSSMatrix([String cssValue]); | |
23975 | |
23976 num a; | |
23977 | |
23978 num b; | |
23979 | |
23980 num c; | |
23981 | |
23982 num d; | |
23983 | |
23984 num e; | |
23985 | |
23986 num f; | |
23987 | |
23988 num m11; | |
23989 | |
23990 num m12; | |
23991 | |
23992 num m13; | |
23993 | |
23994 num m14; | |
23995 | |
23996 num m21; | |
23997 | |
23998 num m22; | |
23999 | |
24000 num m23; | |
24001 | |
24002 num m24; | |
24003 | |
24004 num m31; | |
24005 | |
24006 num m32; | |
24007 | |
24008 num m33; | |
24009 | |
24010 num m34; | |
24011 | |
24012 num m41; | |
24013 | |
24014 num m42; | |
24015 | |
24016 num m43; | |
24017 | |
24018 num m44; | |
24019 | |
24020 WebKitCSSMatrix inverse(); | |
24021 | |
24022 WebKitCSSMatrix multiply(WebKitCSSMatrix secondMatrix); | |
24023 | |
24024 WebKitCSSMatrix rotate(num rotX, num rotY, num rotZ); | |
24025 | |
24026 WebKitCSSMatrix rotateAxisAngle(num x, num y, num z, num angle); | |
24027 | |
24028 WebKitCSSMatrix scale(num scaleX, num scaleY, num scaleZ); | |
24029 | |
24030 void setMatrixValue(String string); | |
24031 | |
24032 WebKitCSSMatrix skewX(num angle); | |
24033 | |
24034 WebKitCSSMatrix skewY(num angle); | |
24035 | |
24036 String toString(); | |
24037 | |
24038 WebKitCSSMatrix translate(num x, num y, num z); | |
24039 } | |
24040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24041 // for details. All rights reserved. Use of this source code is governed by a | |
24042 // BSD-style license that can be found in the LICENSE file. | |
24043 | |
24044 // WARNING: Do not edit - generated code. | |
24045 | |
24046 interface WebKitCSSTransformValue extends CSSValueList { | |
24047 | |
24048 static const int CSS_MATRIX = 11; | |
24049 | |
24050 static const int CSS_MATRIX3D = 21; | |
24051 | |
24052 static const int CSS_PERSPECTIVE = 20; | |
24053 | |
24054 static const int CSS_ROTATE = 4; | |
24055 | |
24056 static const int CSS_ROTATE3D = 17; | |
24057 | |
24058 static const int CSS_ROTATEX = 14; | |
24059 | |
24060 static const int CSS_ROTATEY = 15; | |
24061 | |
24062 static const int CSS_ROTATEZ = 16; | |
24063 | |
24064 static const int CSS_SCALE = 5; | |
24065 | |
24066 static const int CSS_SCALE3D = 19; | |
24067 | |
24068 static const int CSS_SCALEX = 6; | |
24069 | |
24070 static const int CSS_SCALEY = 7; | |
24071 | |
24072 static const int CSS_SCALEZ = 18; | |
24073 | |
24074 static const int CSS_SKEW = 8; | |
24075 | |
24076 static const int CSS_SKEWX = 9; | |
24077 | |
24078 static const int CSS_SKEWY = 10; | |
24079 | |
24080 static const int CSS_TRANSLATE = 1; | |
24081 | |
24082 static const int CSS_TRANSLATE3D = 13; | |
24083 | |
24084 static const int CSS_TRANSLATEX = 2; | |
24085 | |
24086 static const int CSS_TRANSLATEY = 3; | |
24087 | |
24088 static const int CSS_TRANSLATEZ = 12; | |
24089 | |
24090 final int operationType; | |
24091 } | |
24092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24093 // for details. All rights reserved. Use of this source code is governed by a | |
24094 // BSD-style license that can be found in the LICENSE file. | |
24095 | |
24096 // WARNING: Do not edit - generated code. | |
24097 | |
24098 interface WebKitNamedFlow extends EventTarget { | |
24099 | |
24100 final int firstEmptyRegionIndex; | |
24101 | |
24102 final String name; | |
24103 | |
24104 final bool overset; | |
24105 | |
24106 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
24107 | |
24108 bool dispatchEvent(Event event); | |
24109 | |
24110 NodeList getContent(); | |
24111 | |
24112 NodeList getRegions(); | |
24113 | |
24114 NodeList getRegionsByContent(Node contentNode); | |
24115 | |
24116 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
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 WebKitPoint default _WebKitPointFactoryProvider { | |
24125 | |
24126 WebKitPoint(num x, num y); | |
24127 | |
24128 num x; | |
24129 | |
24130 num y; | |
24131 } | |
24132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24133 // for details. All rights reserved. Use of this source code is governed by a | |
24134 // BSD-style license that can be found in the LICENSE file. | |
24135 | |
24136 // WARNING: Do not edit - generated code. | |
24137 | |
24138 interface WebKitTransitionEvent extends Event { | |
24139 | |
24140 final num elapsedTime; | |
24141 | |
24142 final String propertyName; | |
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 WebSocket extends EventTarget default _WebSocketFactoryProvider { | |
24151 | |
24152 WebSocket(String url); | |
24153 | |
24154 static const int CLOSED = 3; | |
24155 | |
24156 static const int CLOSING = 2; | |
24157 | |
24158 static const int CONNECTING = 0; | |
24159 | |
24160 static const int OPEN = 1; | |
24161 | |
24162 final String URL; | |
24163 | |
24164 String binaryType; | |
24165 | |
24166 final int bufferedAmount; | |
24167 | |
24168 final String extensions; | |
24169 | |
24170 final String protocol; | |
24171 | |
24172 final int readyState; | |
24173 | |
24174 final String url; | |
24175 | |
24176 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
24177 | |
24178 void close([int code, String reason]); | |
24179 | |
24180 bool dispatchEvent(Event evt); | |
24181 | |
24182 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
24183 | |
24184 void send(data); | |
24185 } | |
24186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24187 // for details. All rights reserved. Use of this source code is governed by a | |
24188 // BSD-style license that can be found in the LICENSE file. | |
24189 | |
24190 // WARNING: Do not edit - generated code. | |
24191 | |
24192 interface WheelEvent extends MouseEvent { | |
24193 | |
24194 final bool webkitDirectionInvertedFromDevice; | |
24195 | |
24196 final int wheelDelta; | |
24197 | |
24198 final int wheelDeltaX; | |
24199 | |
24200 final int wheelDeltaY; | |
24201 | |
24202 void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, DOMWindow view, in
t screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, boo
l shiftKey, bool metaKey); | |
24203 } | |
24204 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24205 // for details. All rights reserved. Use of this source code is governed by a | |
24206 // BSD-style license that can be found in the LICENSE file. | |
24207 | |
24208 // WARNING: Do not edit - generated code. | |
24209 | |
24210 interface Worker extends AbstractWorker default _WorkerFactoryProvider { | |
24211 | |
24212 Worker(String scriptUrl); | |
24213 | |
24214 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]); | |
24215 | |
24216 void terminate(); | |
24217 | |
24218 void webkitPostMessage(/*SerializedScriptValue*/ message, [List messagePorts])
; | |
24219 } | |
24220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24221 // for details. All rights reserved. Use of this source code is governed by a | |
24222 // BSD-style license that can be found in the LICENSE file. | |
24223 | |
24224 // WARNING: Do not edit - generated code. | |
24225 | |
24226 interface WorkerGlobalScope extends EventTarget { | |
24227 | |
24228 final WorkerLocation location; | |
24229 | |
24230 final WorkerNavigator navigator; | |
24231 | |
24232 final WorkerContext self; | |
24233 | |
24234 final IDBFactory webkitIndexedDB; | |
24235 | |
24236 final NotificationCenter webkitNotifications; | |
24237 | |
24238 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
24239 | |
24240 void clearInterval(int handle); | |
24241 | |
24242 void clearTimeout(int handle); | |
24243 | |
24244 void close(); | |
24245 | |
24246 bool dispatchEvent(Event evt); | |
24247 | |
24248 void importScripts(); | |
24249 | |
24250 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); | |
24251 | |
24252 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback]); | |
24253 | |
24254 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
24255 | |
24256 int setInterval(TimeoutHandler handler, int timeout); | |
24257 | |
24258 int setTimeout(TimeoutHandler handler, int timeout); | |
24259 | |
24260 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]); | |
24261 | |
24262 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size); | |
24263 | |
24264 EntrySync webkitResolveLocalFileSystemSyncURL(String url); | |
24265 | |
24266 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]); | |
24267 } | |
24268 | |
24269 interface WorkerContext extends WorkerGlobalScope { | |
24270 | |
24271 static const int PERSISTENT = 1; | |
24272 | |
24273 static const int TEMPORARY = 0; | |
24274 } | |
24275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24276 // for details. All rights reserved. Use of this source code is governed by a | |
24277 // BSD-style license that can be found in the LICENSE file. | |
24278 | |
24279 // WARNING: Do not edit - generated code. | |
24280 | |
24281 interface WorkerLocation { | |
24282 | |
24283 final String hash; | |
24284 | |
24285 final String host; | |
24286 | |
24287 final String hostname; | |
24288 | |
24289 final String href; | |
24290 | |
24291 final String pathname; | |
24292 | |
24293 final String port; | |
24294 | |
24295 final String protocol; | |
24296 | |
24297 final String search; | |
24298 | |
24299 String toString(); | |
24300 } | |
24301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24302 // for details. All rights reserved. Use of this source code is governed by a | |
24303 // BSD-style license that can be found in the LICENSE file. | |
24304 | |
24305 // WARNING: Do not edit - generated code. | |
24306 | |
24307 interface WorkerNavigator { | |
24308 | |
24309 final String appName; | |
24310 | |
24311 final String appVersion; | |
24312 | |
24313 final bool onLine; | |
24314 | |
24315 final String platform; | |
24316 | |
24317 final String userAgent; | |
24318 } | |
24319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24320 // for details. All rights reserved. Use of this source code is governed by a | |
24321 // BSD-style license that can be found in the LICENSE file. | |
24322 | |
24323 // WARNING: Do not edit - generated code. | |
24324 | |
24325 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi
der { | |
24326 | |
24327 XMLHttpRequest(); | |
24328 | |
24329 static const int DONE = 4; | |
24330 | |
24331 static const int HEADERS_RECEIVED = 2; | |
24332 | |
24333 static const int LOADING = 3; | |
24334 | |
24335 static const int OPENED = 1; | |
24336 | |
24337 static const int UNSENT = 0; | |
24338 | |
24339 final int readyState; | |
24340 | |
24341 final Object response; | |
24342 | |
24343 final String responseText; | |
24344 | |
24345 String responseType; | |
24346 | |
24347 final Document responseXML; | |
24348 | |
24349 final int status; | |
24350 | |
24351 final String statusText; | |
24352 | |
24353 final XMLHttpRequestUpload upload; | |
24354 | |
24355 bool withCredentials; | |
24356 | |
24357 void abort(); | |
24358 | |
24359 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
24360 | |
24361 bool dispatchEvent(Event evt); | |
24362 | |
24363 String getAllResponseHeaders(); | |
24364 | |
24365 String getResponseHeader(String header); | |
24366 | |
24367 void open(String method, String url, [bool async, String user, String password
]); | |
24368 | |
24369 void overrideMimeType(String override); | |
24370 | |
24371 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
24372 | |
24373 void send([data]); | |
24374 | |
24375 void setRequestHeader(String header, String value); | |
24376 } | |
24377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24378 // for details. All rights reserved. Use of this source code is governed by a | |
24379 // BSD-style license that can be found in the LICENSE file. | |
24380 | |
24381 // WARNING: Do not edit - generated code. | |
24382 | |
24383 interface XMLHttpRequestException { | |
24384 | |
24385 static const int ABORT_ERR = 102; | |
24386 | |
24387 static const int NETWORK_ERR = 101; | |
24388 | |
24389 final int code; | |
24390 | |
24391 final String message; | |
24392 | |
24393 final String name; | |
24394 | |
24395 String toString(); | |
24396 } | |
24397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24398 // for details. All rights reserved. Use of this source code is governed by a | |
24399 // BSD-style license that can be found in the LICENSE file. | |
24400 | |
24401 // WARNING: Do not edit - generated code. | |
24402 | |
24403 interface XMLHttpRequestProgressEvent extends ProgressEvent { | |
24404 | |
24405 final int position; | |
24406 | |
24407 final int totalSize; | |
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 XMLHttpRequestUpload extends EventTarget { | |
24416 | |
24417 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
24418 | |
24419 bool dispatchEvent(Event evt); | |
24420 | |
24421 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
24422 } | |
24423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24424 // for details. All rights reserved. Use of this source code is governed by a | |
24425 // BSD-style license that can be found in the LICENSE file. | |
24426 | |
24427 // WARNING: Do not edit - generated code. | |
24428 | |
24429 interface XMLSerializer default _XMLSerializerFactoryProvider { | |
24430 | |
24431 XMLSerializer(); | |
24432 | |
24433 String serializeToString(Node node); | |
24434 } | |
24435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24436 // for details. All rights reserved. Use of this source code is governed by a | |
24437 // BSD-style license that can be found in the LICENSE file. | |
24438 | |
24439 // WARNING: Do not edit - generated code. | |
24440 | |
24441 interface XPathEvaluator default _XPathEvaluatorFactoryProvider { | |
24442 | |
24443 XPathEvaluator(); | |
24444 | |
24445 XPathExpression createExpression(String expression, XPathNSResolver resolver); | |
24446 | |
24447 XPathNSResolver createNSResolver(Node nodeResolver); | |
24448 | |
24449 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult); | |
24450 } | |
24451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24452 // for details. All rights reserved. Use of this source code is governed by a | |
24453 // BSD-style license that can be found in the LICENSE file. | |
24454 | |
24455 // WARNING: Do not edit - generated code. | |
24456 | |
24457 interface XPathException { | |
24458 | |
24459 static const int INVALID_EXPRESSION_ERR = 51; | |
24460 | |
24461 static const int TYPE_ERR = 52; | |
24462 | |
24463 final int code; | |
24464 | |
24465 final String message; | |
24466 | |
24467 final String name; | |
24468 | |
24469 String toString(); | |
24470 } | |
24471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24472 // for details. All rights reserved. Use of this source code is governed by a | |
24473 // BSD-style license that can be found in the LICENSE file. | |
24474 | |
24475 // WARNING: Do not edit - generated code. | |
24476 | |
24477 interface XPathExpression { | |
24478 | |
24479 XPathResult evaluate(Node contextNode, int type, XPathResult inResult); | |
24480 } | |
24481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24482 // for details. All rights reserved. Use of this source code is governed by a | |
24483 // BSD-style license that can be found in the LICENSE file. | |
24484 | |
24485 // WARNING: Do not edit - generated code. | |
24486 | |
24487 interface XPathNSResolver { | |
24488 | |
24489 String lookupNamespaceURI(String prefix); | |
24490 } | |
24491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24492 // for details. All rights reserved. Use of this source code is governed by a | |
24493 // BSD-style license that can be found in the LICENSE file. | |
24494 | |
24495 // WARNING: Do not edit - generated code. | |
24496 | |
24497 interface XPathResult { | |
24498 | |
24499 static const int ANY_TYPE = 0; | |
24500 | |
24501 static const int ANY_UNORDERED_NODE_TYPE = 8; | |
24502 | |
24503 static const int BOOLEAN_TYPE = 3; | |
24504 | |
24505 static const int FIRST_ORDERED_NODE_TYPE = 9; | |
24506 | |
24507 static const int NUMBER_TYPE = 1; | |
24508 | |
24509 static const int ORDERED_NODE_ITERATOR_TYPE = 5; | |
24510 | |
24511 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; | |
24512 | |
24513 static const int STRING_TYPE = 2; | |
24514 | |
24515 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; | |
24516 | |
24517 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; | |
24518 | |
24519 final bool booleanValue; | |
24520 | |
24521 final bool invalidIteratorState; | |
24522 | |
24523 final num numberValue; | |
24524 | |
24525 final int resultType; | |
24526 | |
24527 final Node singleNodeValue; | |
24528 | |
24529 final int snapshotLength; | |
24530 | |
24531 final String stringValue; | |
24532 | |
24533 Node iterateNext(); | |
24534 | |
24535 Node snapshotItem(int index); | |
24536 } | |
24537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
24538 // for details. All rights reserved. Use of this source code is governed by a | |
24539 // BSD-style license that can be found in the LICENSE file. | |
24540 | |
24541 // WARNING: Do not edit - generated code. | |
24542 | |
24543 interface XSLTProcessor default _XSLTProcessorFactoryProvider { | |
24544 | |
24545 XSLTProcessor(); | |
24546 | |
24547 void clearParameters(); | |
24548 | |
24549 String getParameter(String namespaceURI, String localName); | |
24550 | |
24551 void importStylesheet(Node stylesheet); | |
24552 | |
24553 void removeParameter(String namespaceURI, String localName); | |
24554 | |
24555 void reset(); | |
24556 | |
24557 void setParameter(String namespaceURI, String localName, String value); | |
24558 | |
24559 Document transformToDocument(Node source); | |
24560 | |
24561 DocumentFragment transformToFragment(Node source, Document docVal); | |
24562 } | |
24563 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
24564 // for details. All rights reserved. Use of this source code is governed by a | |
24565 // BSD-style license that can be found in the LICENSE file. | |
24566 | |
24567 typedef void EventListener(Event event); | |
24568 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
24569 // for details. All rights reserved. Use of this source code is governed by a | |
24570 // BSD-style license that can be found in the LICENSE file. | |
24571 | |
24572 /** | |
24573 * Defines the standard key locations returned by | |
24574 * KeyboardEvent.getKeyLocation. | |
24575 */ | |
24576 interface KeyLocation { | |
24577 | |
24578 /** | |
24579 * The event key is not distinguished as the left or right version | |
24580 * of the key, and did not originate from the numeric keypad (or did not | |
24581 * originate with a virtual key corresponding to the numeric keypad). | |
24582 */ | |
24583 static const int STANDARD = 0; | |
24584 | |
24585 /** | |
24586 * The event key is in the left key location. | |
24587 */ | |
24588 static const int LEFT = 1; | |
24589 | |
24590 /** | |
24591 * The event key is in the right key location. | |
24592 */ | |
24593 static const int RIGHT = 2; | |
24594 | |
24595 /** | |
24596 * The event key originated on the numeric keypad or with a virtual key | |
24597 * corresponding to the numeric keypad. | |
24598 */ | |
24599 static const int NUMPAD = 3; | |
24600 | |
24601 /** | |
24602 * The event key originated on a mobile device, either on a physical | |
24603 * keypad or a virtual keyboard. | |
24604 */ | |
24605 static const int MOBILE = 4; | |
24606 | |
24607 /** | |
24608 * The event key originated on a game controller or a joystick on a mobile | |
24609 * device. | |
24610 */ | |
24611 static const int JOYSTICK = 5; | |
24612 } | |
24613 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
24614 // for details. All rights reserved. Use of this source code is governed by a | |
24615 // BSD-style license that can be found in the LICENSE file. | |
24616 | |
24617 /** | |
24618 * Defines the standard keyboard identifier names for keys that are returned | |
24619 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct | |
24620 * unicode mapping. | |
24621 */ | |
24622 interface KeyName { | |
24623 | |
24624 /** The Accept (Commit, OK) key */ | |
24625 static const String ACCEPT = "Accept"; | |
24626 | |
24627 /** The Add key */ | |
24628 static const String ADD = "Add"; | |
24629 | |
24630 /** The Again key */ | |
24631 static const String AGAIN = "Again"; | |
24632 | |
24633 /** The All Candidates key */ | |
24634 static const String ALL_CANDIDATES = "AllCandidates"; | |
24635 | |
24636 /** The Alphanumeric key */ | |
24637 static const String ALPHANUMERIC = "Alphanumeric"; | |
24638 | |
24639 /** The Alt (Menu) key */ | |
24640 static const String ALT = "Alt"; | |
24641 | |
24642 /** The Alt-Graph key */ | |
24643 static const String ALT_GRAPH = "AltGraph"; | |
24644 | |
24645 /** The Application key */ | |
24646 static const String APPS = "Apps"; | |
24647 | |
24648 /** The ATTN key */ | |
24649 static const String ATTN = "Attn"; | |
24650 | |
24651 /** The Browser Back key */ | |
24652 static const String BROWSER_BACK = "BrowserBack"; | |
24653 | |
24654 /** The Browser Favorites key */ | |
24655 static const String BROWSER_FAVORTIES = "BrowserFavorites"; | |
24656 | |
24657 /** The Browser Forward key */ | |
24658 static const String BROWSER_FORWARD = "BrowserForward"; | |
24659 | |
24660 /** The Browser Home key */ | |
24661 static const String BROWSER_NAME = "BrowserHome"; | |
24662 | |
24663 /** The Browser Refresh key */ | |
24664 static const String BROWSER_REFRESH = "BrowserRefresh"; | |
24665 | |
24666 /** The Browser Search key */ | |
24667 static const String BROWSER_SEARCH = "BrowserSearch"; | |
24668 | |
24669 /** The Browser Stop key */ | |
24670 static const String BROWSER_STOP = "BrowserStop"; | |
24671 | |
24672 /** The Camera key */ | |
24673 static const String CAMERA = "Camera"; | |
24674 | |
24675 /** The Caps Lock (Capital) key */ | |
24676 static const String CAPS_LOCK = "CapsLock"; | |
24677 | |
24678 /** The Clear key */ | |
24679 static const String CLEAR = "Clear"; | |
24680 | |
24681 /** The Code Input key */ | |
24682 static const String CODE_INPUT = "CodeInput"; | |
24683 | |
24684 /** The Compose key */ | |
24685 static const String COMPOSE = "Compose"; | |
24686 | |
24687 /** The Control (Ctrl) key */ | |
24688 static const String CONTROL = "Control"; | |
24689 | |
24690 /** The Crsel key */ | |
24691 static const String CRSEL = "Crsel"; | |
24692 | |
24693 /** The Convert key */ | |
24694 static const String CONVERT = "Convert"; | |
24695 | |
24696 /** The Copy key */ | |
24697 static const String COPY = "Copy"; | |
24698 | |
24699 /** The Cut key */ | |
24700 static const String CUT = "Cut"; | |
24701 | |
24702 /** The Decimal key */ | |
24703 static const String DECIMAL = "Decimal"; | |
24704 | |
24705 /** The Divide key */ | |
24706 static const String DIVIDE = "Divide"; | |
24707 | |
24708 /** The Down Arrow key */ | |
24709 static const String DOWN = "Down"; | |
24710 | |
24711 /** The diagonal Down-Left Arrow key */ | |
24712 static const String DOWN_LEFT = "DownLeft"; | |
24713 | |
24714 /** The diagonal Down-Right Arrow key */ | |
24715 static const String DOWN_RIGHT = "DownRight"; | |
24716 | |
24717 /** The Eject key */ | |
24718 static const String EJECT = "Eject"; | |
24719 | |
24720 /** The End key */ | |
24721 static const String END = "End"; | |
24722 | |
24723 /** | |
24724 * The Enter key. Note: This key value must also be used for the Return | |
24725 * (Macintosh numpad) key | |
24726 */ | |
24727 static const String ENTER = "Enter"; | |
24728 | |
24729 /** The Erase EOF key */ | |
24730 static const String ERASE_EOF= "EraseEof"; | |
24731 | |
24732 /** The Execute key */ | |
24733 static const String EXECUTE = "Execute"; | |
24734 | |
24735 /** The Exsel key */ | |
24736 static const String EXSEL = "Exsel"; | |
24737 | |
24738 /** The Function switch key */ | |
24739 static const String FN = "Fn"; | |
24740 | |
24741 /** The F1 key */ | |
24742 static const String F1 = "F1"; | |
24743 | |
24744 /** The F2 key */ | |
24745 static const String F2 = "F2"; | |
24746 | |
24747 /** The F3 key */ | |
24748 static const String F3 = "F3"; | |
24749 | |
24750 /** The F4 key */ | |
24751 static const String F4 = "F4"; | |
24752 | |
24753 /** The F5 key */ | |
24754 static const String F5 = "F5"; | |
24755 | |
24756 /** The F6 key */ | |
24757 static const String F6 = "F6"; | |
24758 | |
24759 /** The F7 key */ | |
24760 static const String F7 = "F7"; | |
24761 | |
24762 /** The F8 key */ | |
24763 static const String F8 = "F8"; | |
24764 | |
24765 /** The F9 key */ | |
24766 static const String F9 = "F9"; | |
24767 | |
24768 /** The F10 key */ | |
24769 static const String F10 = "F10"; | |
24770 | |
24771 /** The F11 key */ | |
24772 static const String F11 = "F11"; | |
24773 | |
24774 /** The F12 key */ | |
24775 static const String F12 = "F12"; | |
24776 | |
24777 /** The F13 key */ | |
24778 static const String F13 = "F13"; | |
24779 | |
24780 /** The F14 key */ | |
24781 static const String F14 = "F14"; | |
24782 | |
24783 /** The F15 key */ | |
24784 static const String F15 = "F15"; | |
24785 | |
24786 /** The F16 key */ | |
24787 static const String F16 = "F16"; | |
24788 | |
24789 /** The F17 key */ | |
24790 static const String F17 = "F17"; | |
24791 | |
24792 /** The F18 key */ | |
24793 static const String F18 = "F18"; | |
24794 | |
24795 /** The F19 key */ | |
24796 static const String F19 = "F19"; | |
24797 | |
24798 /** The F20 key */ | |
24799 static const String F20 = "F20"; | |
24800 | |
24801 /** The F21 key */ | |
24802 static const String F21 = "F21"; | |
24803 | |
24804 /** The F22 key */ | |
24805 static const String F22 = "F22"; | |
24806 | |
24807 /** The F23 key */ | |
24808 static const String F23 = "F23"; | |
24809 | |
24810 /** The F24 key */ | |
24811 static const String F24 = "F24"; | |
24812 | |
24813 /** The Final Mode (Final) key used on some asian keyboards */ | |
24814 static const String FINAL_MODE = "FinalMode"; | |
24815 | |
24816 /** The Find key */ | |
24817 static const String FIND = "Find"; | |
24818 | |
24819 /** The Full-Width Characters key */ | |
24820 static const String FULL_WIDTH = "FullWidth"; | |
24821 | |
24822 /** The Half-Width Characters key */ | |
24823 static const String HALF_WIDTH = "HalfWidth"; | |
24824 | |
24825 /** The Hangul (Korean characters) Mode key */ | |
24826 static const String HANGUL_MODE = "HangulMode"; | |
24827 | |
24828 /** The Hanja (Korean characters) Mode key */ | |
24829 static const String HANJA_MODE = "HanjaMode"; | |
24830 | |
24831 /** The Help key */ | |
24832 static const String HELP = "Help"; | |
24833 | |
24834 /** The Hiragana (Japanese Kana characters) key */ | |
24835 static const String HIRAGANA = "Hiragana"; | |
24836 | |
24837 /** The Home key */ | |
24838 static const String HOME = "Home"; | |
24839 | |
24840 /** The Insert (Ins) key */ | |
24841 static const String INSERT = "Insert"; | |
24842 | |
24843 /** The Japanese-Hiragana key */ | |
24844 static const String JAPANESE_HIRAGANA = "JapaneseHiragana"; | |
24845 | |
24846 /** The Japanese-Katakana key */ | |
24847 static const String JAPANESE_KATAKANA = "JapaneseKatakana"; | |
24848 | |
24849 /** The Japanese-Romaji key */ | |
24850 static const String JAPANESE_ROMAJI = "JapaneseRomaji"; | |
24851 | |
24852 /** The Junja Mode key */ | |
24853 static const String JUNJA_MODE = "JunjaMode"; | |
24854 | |
24855 /** The Kana Mode (Kana Lock) key */ | |
24856 static const String KANA_MODE = "KanaMode"; | |
24857 | |
24858 /** | |
24859 * The Kanji (Japanese name for ideographic characters of Chinese origin) | |
24860 * Mode key | |
24861 */ | |
24862 static const String KANJI_MODE = "KanjiMode"; | |
24863 | |
24864 /** The Katakana (Japanese Kana characters) key */ | |
24865 static const String KATAKANA = "Katakana"; | |
24866 | |
24867 /** The Start Application One key */ | |
24868 static const String LAUNCH_APPLICATION_1 = "LaunchApplication1"; | |
24869 | |
24870 /** The Start Application Two key */ | |
24871 static const String LAUNCH_APPLICATION_2 = "LaunchApplication2"; | |
24872 | |
24873 /** The Start Mail key */ | |
24874 static const String LAUNCH_MAIL = "LaunchMail"; | |
24875 | |
24876 /** The Left Arrow key */ | |
24877 static const String LEFT = "Left"; | |
24878 | |
24879 /** The Menu key */ | |
24880 static const String MENU = "Menu"; | |
24881 | |
24882 /** | |
24883 * The Meta key. Note: This key value shall be also used for the Apple | |
24884 * Command key | |
24885 */ | |
24886 static const String META = "Meta"; | |
24887 | |
24888 /** The Media Next Track key */ | |
24889 static const String MEDIA_NEXT_TRACK = "MediaNextTrack"; | |
24890 | |
24891 /** The Media Play Pause key */ | |
24892 static const String MEDIA_PAUSE_PLAY = "MediaPlayPause"; | |
24893 | |
24894 /** The Media Previous Track key */ | |
24895 static const String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack"; | |
24896 | |
24897 /** The Media Stop key */ | |
24898 static const String MEDIA_STOP = "MediaStop"; | |
24899 | |
24900 /** The Mode Change key */ | |
24901 static const String MODE_CHANGE = "ModeChange"; | |
24902 | |
24903 /** The Next Candidate function key */ | |
24904 static const String NEXT_CANDIDATE = "NextCandidate"; | |
24905 | |
24906 /** The Nonconvert (Don't Convert) key */ | |
24907 static const String NON_CONVERT = "Nonconvert"; | |
24908 | |
24909 /** The Number Lock key */ | |
24910 static const String NUM_LOCK = "NumLock"; | |
24911 | |
24912 /** The Page Down (Next) key */ | |
24913 static const String PAGE_DOWN = "PageDown"; | |
24914 | |
24915 /** The Page Up key */ | |
24916 static const String PAGE_UP = "PageUp"; | |
24917 | |
24918 /** The Paste key */ | |
24919 static const String PASTE = "Paste"; | |
24920 | |
24921 /** The Pause key */ | |
24922 static const String PAUSE = "Pause"; | |
24923 | |
24924 /** The Play key */ | |
24925 static const String PLAY = "Play"; | |
24926 | |
24927 /** | |
24928 * The Power key. Note: Some devices may not expose this key to the | |
24929 * operating environment | |
24930 */ | |
24931 static const String POWER = "Power"; | |
24932 | |
24933 /** The Previous Candidate function key */ | |
24934 static const String PREVIOUS_CANDIDATE = "PreviousCandidate"; | |
24935 | |
24936 /** The Print Screen (PrintScrn, SnapShot) key */ | |
24937 static const String PRINT_SCREEN = "PrintScreen"; | |
24938 | |
24939 /** The Process key */ | |
24940 static const String PROCESS = "Process"; | |
24941 | |
24942 /** The Props key */ | |
24943 static const String PROPS = "Props"; | |
24944 | |
24945 /** The Right Arrow key */ | |
24946 static const String RIGHT = "Right"; | |
24947 | |
24948 /** The Roman Characters function key */ | |
24949 static const String ROMAN_CHARACTERS = "RomanCharacters"; | |
24950 | |
24951 /** The Scroll Lock key */ | |
24952 static const String SCROLL = "Scroll"; | |
24953 | |
24954 /** The Select key */ | |
24955 static const String SELECT = "Select"; | |
24956 | |
24957 /** The Select Media key */ | |
24958 static const String SELECT_MEDIA = "SelectMedia"; | |
24959 | |
24960 /** The Separator key */ | |
24961 static const String SEPARATOR = "Separator"; | |
24962 | |
24963 /** The Shift key */ | |
24964 static const String SHIFT = "Shift"; | |
24965 | |
24966 /** The Soft1 key */ | |
24967 static const String SOFT_1 = "Soft1"; | |
24968 | |
24969 /** The Soft2 key */ | |
24970 static const String SOFT_2 = "Soft2"; | |
24971 | |
24972 /** The Soft3 key */ | |
24973 static const String SOFT_3 = "Soft3"; | |
24974 | |
24975 /** The Soft4 key */ | |
24976 static const String SOFT_4 = "Soft4"; | |
24977 | |
24978 /** The Stop key */ | |
24979 static const String STOP = "Stop"; | |
24980 | |
24981 /** The Subtract key */ | |
24982 static const String SUBTRACT = "Subtract"; | |
24983 | |
24984 /** The Symbol Lock key */ | |
24985 static const String SYMBOL_LOCK = "SymbolLock"; | |
24986 | |
24987 /** The Up Arrow key */ | |
24988 static const String UP = "Up"; | |
24989 | |
24990 /** The diagonal Up-Left Arrow key */ | |
24991 static const String UP_LEFT = "UpLeft"; | |
24992 | |
24993 /** The diagonal Up-Right Arrow key */ | |
24994 static const String UP_RIGHT = "UpRight"; | |
24995 | |
24996 /** The Undo key */ | |
24997 static const String UNDO = "Undo"; | |
24998 | |
24999 /** The Volume Down key */ | |
25000 static const String VOLUME_DOWN = "VolumeDown"; | |
25001 | |
25002 /** The Volume Mute key */ | |
25003 static const String VOLUMN_MUTE = "VolumeMute"; | |
25004 | |
25005 /** The Volume Up key */ | |
25006 static const String VOLUMN_UP = "VolumeUp"; | |
25007 | |
25008 /** The Windows Logo key */ | |
25009 static const String WIN = "Win"; | |
25010 | |
25011 /** The Zoom key */ | |
25012 static const String ZOOM = "Zoom"; | |
25013 | |
25014 /** | |
25015 * The Backspace (Back) key. Note: This key value shall be also used for the | |
25016 * key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key | |
25017 */ | |
25018 static const String BACKSPACE = "Backspace"; | |
25019 | |
25020 /** The Horizontal Tabulation (Tab) key */ | |
25021 static const String TAB = "Tab"; | |
25022 | |
25023 /** The Cancel key */ | |
25024 static const String CANCEL = "Cancel"; | |
25025 | |
25026 /** The Escape (Esc) key */ | |
25027 static const String ESC = "Esc"; | |
25028 | |
25029 /** The Space (Spacebar) key: */ | |
25030 static const String SPACEBAR = "Spacebar"; | |
25031 | |
25032 /** | |
25033 * The Delete (Del) Key. Note: This key value shall be also used for the key | |
25034 * labeled 'delete' MacOS keyboards when modified by the 'Fn' key | |
25035 */ | |
25036 static const String DEL = "Del"; | |
25037 | |
25038 /** The Combining Grave Accent (Greek Varia, Dead Grave) key */ | |
25039 static const String DEAD_GRAVE = "DeadGrave"; | |
25040 | |
25041 /** | |
25042 * The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute) | |
25043 * key | |
25044 */ | |
25045 static const String DEAD_EACUTE = "DeadEacute"; | |
25046 | |
25047 /** The Combining Circumflex Accent (Hat, Dead Circumflex) key */ | |
25048 static const String DEAD_CIRCUMFLEX = "DeadCircumflex"; | |
25049 | |
25050 /** The Combining Tilde (Dead Tilde) key */ | |
25051 static const String DEAD_TILDE = "DeadTilde"; | |
25052 | |
25053 /** The Combining Macron (Long, Dead Macron) key */ | |
25054 static const String DEAD_MACRON = "DeadMacron"; | |
25055 | |
25056 /** The Combining Breve (Short, Dead Breve) key */ | |
25057 static const String DEAD_BREVE = "DeadBreve"; | |
25058 | |
25059 /** The Combining Dot Above (Derivative, Dead Above Dot) key */ | |
25060 static const String DEAD_ABOVE_DOT = "DeadAboveDot"; | |
25061 | |
25062 /** | |
25063 * The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika, | |
25064 * Double Derivative, Dead Diaeresis) key | |
25065 */ | |
25066 static const String DEAD_UMLAUT = "DeadUmlaut"; | |
25067 | |
25068 /** The Combining Ring Above (Dead Above Ring) key */ | |
25069 static const String DEAD_ABOVE_RING = "DeadAboveRing"; | |
25070 | |
25071 /** The Combining Double Acute Accent (Dead Doubleacute) key */ | |
25072 static const String DEAD_DOUBLEACUTE = "DeadDoubleacute"; | |
25073 | |
25074 /** The Combining Caron (Hacek, V Above, Dead Caron) key */ | |
25075 static const String DEAD_CARON = "DeadCaron"; | |
25076 | |
25077 /** The Combining Cedilla (Dead Cedilla) key */ | |
25078 static const String DEAD_CEDILLA = "DeadCedilla"; | |
25079 | |
25080 /** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */ | |
25081 static const String DEAD_OGONEK = "DeadOgonek"; | |
25082 | |
25083 /** | |
25084 * The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota | |
25085 * Subscript, Dead Iota) key | |
25086 */ | |
25087 static const String DEAD_IOTA = "DeadIota"; | |
25088 | |
25089 /** | |
25090 * The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key | |
25091 */ | |
25092 static const String DEAD_VOICED_SOUND = "DeadVoicedSound"; | |
25093 | |
25094 /** | |
25095 * The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced | |
25096 * Sound) key | |
25097 */ | |
25098 static const String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; | |
25099 | |
25100 /** | |
25101 * Key value used when an implementation is unable to identify another key | |
25102 * value, due to either hardware, platform, or software constraints | |
25103 */ | |
25104 static const String UNIDENTIFIED = "Unidentified"; | |
25105 } | |
25106 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
25107 // for details. All rights reserved. Use of this source code is governed by a | |
25108 // BSD-style license that can be found in the LICENSE file. | |
25109 | |
25110 /** | |
25111 * Contains the set of standard values returned by HTMLDocument.getReadyState. | |
25112 */ | |
25113 interface ReadyState { | |
25114 /** | |
25115 * Indicates the document is still loading and parsing. | |
25116 */ | |
25117 static const String LOADING = "loading"; | |
25118 | |
25119 /** | |
25120 * Indicates the document is finished parsing but is still loading | |
25121 * subresources. | |
25122 */ | |
25123 static const String INTERACTIVE = "interactive"; | |
25124 | |
25125 /** | |
25126 * Indicates the document and all subresources have been loaded. | |
25127 */ | |
25128 static const String COMPLETE = "complete"; | |
25129 } | |
25130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
25131 // for details. All rights reserved. Use of this source code is governed by a | |
25132 // BSD-style license that can be found in the LICENSE file. | |
25133 | |
25134 // TODO(vsm): Unify with Dartium version. | |
25135 class _DOMWindowCrossFrameImpl implements DOMType, DOMWindow { | |
25136 // Private window. | |
25137 _DOMWindowJs _window; | |
25138 | |
25139 // DOMType | |
25140 var dartObjectLocalStorage; | |
25141 String get typeName() => "DOMWindow"; | |
25142 | |
25143 // Fields. | |
25144 // TODO(vsm): Implement history and location getters. | |
25145 | |
25146 bool get closed() => _window.closed; | |
25147 int get length() => _window.length; | |
25148 DOMWindow get opener() => _createSafe(_window.opener); | |
25149 DOMWindow get parent() => _createSafe(_window.parent); | |
25150 DOMWindow get top() => _createSafe(_window.top); | |
25151 | |
25152 // Methods. | |
25153 void focus() => _window.focus(); | |
25154 | |
25155 void blur() => _window.blur(); | |
25156 | |
25157 void close() => _window.close(); | |
25158 | |
25159 void postMessage(Dynamic message, | |
25160 String targetOrigin, | |
25161 [List messagePorts = null]) { | |
25162 if (messagePorts == null) { | |
25163 _postMessage2(_window, message, targetOrigin); | |
25164 } else { | |
25165 _postMessage3(_window, message, targetOrigin, messagePorts); | |
25166 } | |
25167 } | |
25168 | |
25169 // TODO(vsm): This is a hack to workaround dartbug.com/3175. We | |
25170 // need a more robust convention to invoke JS methods on the | |
25171 // underlying window. | |
25172 static void _postMessage2(win, message, targetOrigin) native """ | |
25173 win.postMessage(message, targetOrigin); | |
25174 """; | |
25175 | |
25176 static void _postMessage3(win, message, targetOrigin, messagePorts) native """ | |
25177 win.postMessage(message, targetOrigin, messagePorts); | |
25178 """; | |
25179 | |
25180 // Implementation support. | |
25181 _DOMWindowCrossFrameImpl(this._window); | |
25182 | |
25183 static DOMWindow _createSafe(w) { | |
25184 if (w === window) { | |
25185 return w; | |
25186 } else { | |
25187 // TODO(vsm): Cache or implement equality. | |
25188 return new _DOMWindowCrossFrameImpl(w); | |
25189 } | |
25190 } | |
25191 } | |
25192 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
25193 // for details. All rights reserved. Use of this source code is governed by a | |
25194 // BSD-style license that can be found in the LICENSE file. | |
25195 | |
25196 interface DOMType { | |
25197 // TODO(vsm): Remove if/when Dart supports OLS for all objects. | |
25198 var dartObjectLocalStorage; | |
25199 | |
25200 String get typeName(); | |
25201 } | |
25202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
25203 // for details. All rights reserved. Use of this source code is governed by a | |
25204 // BSD-style license that can be found in the LICENSE file. | |
25205 | |
25206 class _DOMTypeJs implements DOMType native '*DOMType' { | |
25207 | |
25208 var dartObjectLocalStorage; | |
25209 | |
25210 String get typeName() native; | |
25211 } | |
25212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
25213 // for details. All rights reserved. Use of this source code is governed by a | |
25214 // BSD-style license that can be found in the LICENSE file. | |
25215 | |
25216 class _AudioContextFactoryProvider { | |
25217 | |
25218 factory AudioContext() native ''' | |
25219 var constructor = window.AudioContext || window.webkitAudioContext; | |
25220 return new constructor(); | |
25221 '''; | |
25222 } | |
25223 | |
25224 class _FormDataFactoryProvider { | |
25225 | |
25226 factory FormData([HTMLFormElement form = null]) native ''' | |
25227 if (form == null) return new FormData(); | |
25228 return new FormData(form); | |
25229 '''; | |
25230 | |
25231 } | |
25232 | |
25233 class _WebKitPointFactoryProvider { | |
25234 | |
25235 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; | |
25236 } | |
25237 | |
25238 class _WebSocketFactoryProvider { | |
25239 | |
25240 factory WebSocket(String url) native '''return new WebSocket(url);'''; | |
25241 } | |
25242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
25243 // for details. All rights reserved. Use of this source code is governed by a | |
25244 // BSD-style license that can be found in the LICENSE file. | |
25245 | |
25246 class _IDBKeyRangeFactoryProvider { | |
25247 | |
25248 factory IDBKeyRange.only(/*IDBKey*/ value) => | |
25249 _only(_class(), _translateKey(value)); | |
25250 | |
25251 factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) => | |
25252 _lowerBound(_class(), _translateKey(bound), open); | |
25253 | |
25254 factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) => | |
25255 _upperBound(_class(), _translateKey(bound), open); | |
25256 | |
25257 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, | |
25258 [bool lowerOpen = false, bool upperOpen = false]) => | |
25259 _bound(_class(), _translateKey(lower), _translateKey(upper), | |
25260 lowerOpen, upperOpen); | |
25261 | |
25262 static var _cachedClass; | |
25263 | |
25264 static _class() { | |
25265 if (_cachedClass != null) return _cachedClass; | |
25266 return _cachedClass = _uncachedClass(); | |
25267 } | |
25268 | |
25269 static _uncachedClass() native ''' | |
25270 return window.webkitIDBKeyRange || window.mozIDBKeyRange || | |
25271 window.msIDBKeyRange || window.IDBKeyRange; | |
25272 '''; | |
25273 | |
25274 static _translateKey(idbkey) => idbkey; // TODO: fixme. | |
25275 | |
25276 static _IDBKeyRangeJs _only(cls, value) native | |
25277 '''return cls.only(value);'''; | |
25278 | |
25279 static _IDBKeyRangeJs _lowerBound(cls, bound, open) native | |
25280 '''return cls.lowerBound(bound, open);'''; | |
25281 | |
25282 static _IDBKeyRangeJs _upperBound(cls, bound, open) native | |
25283 '''return cls.upperBound(bound, open);'''; | |
25284 | |
25285 static _IDBKeyRangeJs _bound(cls, lower, upper, lowerOpen, upperOpen) native | |
25286 '''return cls.bound(lower, upper, lowerOpen, upperOpen);'''; | |
25287 | |
25288 } | |
25289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
25290 // for details. All rights reserved. Use of this source code is governed by a | |
25291 // BSD-style license that can be found in the LICENSE file. | |
25292 | |
25293 class _TypedArrayFactoryProvider { | |
25294 | |
25295 factory Float32Array(int length) => _F32(length); | |
25296 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); | |
25297 factory Float32Array.fromBuffer(ArrayBuffer buffer, | |
25298 [int byteOffset = 0, int length]) { | |
25299 if (length == null) return _F32_2(buffer, byteOffset); | |
25300 return _F32_3(buffer, byteOffset, length); | |
25301 } | |
25302 | |
25303 factory Float64Array(int length) => _F64(length); | |
25304 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list)); | |
25305 factory Float64Array.fromBuffer(ArrayBuffer buffer, | |
25306 [int byteOffset = 0, int length]) { | |
25307 if (length == null) return _F64_2(buffer, byteOffset); | |
25308 return _F64_3(buffer, byteOffset, length); | |
25309 } | |
25310 | |
25311 factory Int8Array(int length) => _I8(length); | |
25312 factory Int8Array.fromList(List<num> list) => _I8(ensureNative(list)); | |
25313 factory Int8Array.fromBuffer(ArrayBuffer buffer, | |
25314 [int byteOffset = 0, int length]) { | |
25315 if (length == null) return _I8_2(buffer, byteOffset); | |
25316 return _I8_3(buffer, byteOffset, length); | |
25317 } | |
25318 | |
25319 factory Int16Array(int length) => _I16(length); | |
25320 factory Int16Array.fromList(List<num> list) => _I16(ensureNative(list)); | |
25321 factory Int16Array.fromBuffer(ArrayBuffer buffer, | |
25322 [int byteOffset = 0, int length]) { | |
25323 if (length == null) return _I16_2(buffer, byteOffset); | |
25324 return _I16_3(buffer, byteOffset, length); | |
25325 } | |
25326 | |
25327 factory Int32Array(int length) => _I32(length); | |
25328 factory Int32Array.fromList(List<num> list) => _I32(ensureNative(list)); | |
25329 factory Int32Array.fromBuffer(ArrayBuffer buffer, | |
25330 [int byteOffset = 0, int length]) { | |
25331 if (length == null) return _I32_2(buffer, byteOffset); | |
25332 return _I32_3(buffer, byteOffset, length); | |
25333 } | |
25334 | |
25335 factory Uint8Array(int length) => _U8(length); | |
25336 factory Uint8Array.fromList(List<num> list) => _U8(ensureNative(list)); | |
25337 factory Uint8Array.fromBuffer(ArrayBuffer buffer, | |
25338 [int byteOffset = 0, int length]) { | |
25339 if (length == null) return _U8_2(buffer, byteOffset); | |
25340 return _U8_3(buffer, byteOffset, length); | |
25341 } | |
25342 | |
25343 factory Uint16Array(int length) => _U16(length); | |
25344 factory Uint16Array.fromList(List<num> list) => _U16(ensureNative(list)); | |
25345 factory Uint16Array.fromBuffer(ArrayBuffer buffer, | |
25346 [int byteOffset = 0, int length]) { | |
25347 if (length == null) return _U16_2(buffer, byteOffset); | |
25348 return _U16_3(buffer, byteOffset, length); | |
25349 } | |
25350 | |
25351 factory Uint32Array(int length) => _U32(length); | |
25352 factory Uint32Array.fromList(List<num> list) => _U32(ensureNative(list)); | |
25353 factory Uint32Array.fromBuffer(ArrayBuffer buffer, | |
25354 [int byteOffset = 0, int length]) { | |
25355 if (length == null) return _U32_2(buffer, byteOffset); | |
25356 return _U32_3(buffer, byteOffset, length); | |
25357 } | |
25358 | |
25359 factory Uint8ClampedArray(int length) => _U8C(length); | |
25360 factory Uint8ClampedArray.fromList(List<num> list) => _U8C(ensureNative(list))
; | |
25361 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, | |
25362 [int byteOffset = 0, int length]) { | |
25363 if (length == null) return _U8C_2(buffer, byteOffset); | |
25364 return _U8C_3(buffer, byteOffset, length); | |
25365 } | |
25366 | |
25367 static Float32Array _F32(arg) native 'return new Float32Array(arg);'; | |
25368 static Float64Array _F64(arg) native 'return new Float64Array(arg);'; | |
25369 static Int8Array _I8(arg) native 'return new Int8Array(arg);'; | |
25370 static Int16Array _I16(arg) native 'return new Int16Array(arg);'; | |
25371 static Int32Array _I32(arg) native 'return new Int32Array(arg);'; | |
25372 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);'; | |
25373 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);'; | |
25374 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; | |
25375 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);'
; | |
25376 | |
25377 static Float32Array _F32_2(arg1, arg2) native 'return new Float32Array(arg1, a
rg2);'; | |
25378 static Float64Array _F64_2(arg1, arg2) native 'return new Float64Array(arg1, a
rg2);'; | |
25379 static Int8Array _I8_2(arg1, arg2) native 'return new Int8Array(arg1, arg2);'; | |
25380 static Int16Array _I16_2(arg1, arg2) native 'return new Int16Array(arg1, arg2)
;'; | |
25381 static Int32Array _I32_2(arg1, arg2) native 'return new Int32Array(arg1, arg2)
;'; | |
25382 static Uint8Array _U8_2(arg1, arg2) native 'return new Uint8Array(arg1, arg2);
'; | |
25383 static Uint16Array _U16_2(arg1, arg2) native 'return new Uint16Array(arg1, arg
2);'; | |
25384 static Uint32Array _U32_2(arg1, arg2) native 'return new Uint32Array(arg1, arg
2);'; | |
25385 static Uint8ClampedArray _U8C_2(arg1, arg2) native 'return new Uint8ClampedArr
ay(arg1, arg2);'; | |
25386 | |
25387 static Float32Array _F32_3(arg1, arg2, arg3) native 'return new Float32Array(a
rg1, arg2, arg3);'; | |
25388 static Float64Array _F64_3(arg1, arg2, arg3) native 'return new Float64Array(a
rg1, arg2, arg3);'; | |
25389 static Int8Array _I8_3(arg1, arg2, arg3) native 'return new Int8Array(arg1, ar
g2, arg3);'; | |
25390 static Int16Array _I16_3(arg1, arg2, arg3) native 'return new Int16Array(arg1,
arg2, arg3);'; | |
25391 static Int32Array _I32_3(arg1, arg2, arg3) native 'return new Int32Array(arg1,
arg2, arg3);'; | |
25392 static Uint8Array _U8_3(arg1, arg2, arg3) native 'return new Uint8Array(arg1,
arg2, arg3);'; | |
25393 static Uint16Array _U16_3(arg1, arg2, arg3) native 'return new Uint16Array(arg
1, arg2, arg3);'; | |
25394 static Uint32Array _U32_3(arg1, arg2, arg3) native 'return new Uint32Array(arg
1, arg2, arg3);'; | |
25395 static Uint8ClampedArray _U8C_3(arg1, arg2, arg3) native 'return new Uint8Clam
pedArray(arg1, arg2, arg3);'; | |
25396 | |
25397 | |
25398 // Ensures that [list] is a JavaScript Array or a typed array. If necessary, | |
25399 // copies the list. | |
25400 static ensureNative(List list) => list; // TODO: make sure. | |
25401 } | |
25402 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
25403 // for details. All rights reserved. Use of this source code is governed by a | |
25404 // BSD-style license that can be found in the LICENSE file. | |
25405 | |
25406 /** | |
25407 * The [Collections] class implements static methods useful when | |
25408 * writing a class that implements [Collection] and the [iterator] | |
25409 * method. | |
25410 */ | |
25411 class _Collections { | |
25412 static void forEach(Iterable<Object> iterable, void f(Object o)) { | |
25413 for (final e in iterable) { | |
25414 f(e); | |
25415 } | |
25416 } | |
25417 | |
25418 static List map(Iterable<Object> source, | |
25419 List<Object> destination, | |
25420 f(o)) { | |
25421 for (final e in source) { | |
25422 destination.add(f(e)); | |
25423 } | |
25424 return destination; | |
25425 } | |
25426 | |
25427 static bool some(Iterable<Object> iterable, bool f(Object o)) { | |
25428 for (final e in iterable) { | |
25429 if (f(e)) return true; | |
25430 } | |
25431 return false; | |
25432 } | |
25433 | |
25434 static bool every(Iterable<Object> iterable, bool f(Object o)) { | |
25435 for (final e in iterable) { | |
25436 if (!f(e)) return false; | |
25437 } | |
25438 return true; | |
25439 } | |
25440 | |
25441 static List filter(Iterable<Object> source, | |
25442 List<Object> destination, | |
25443 bool f(o)) { | |
25444 for (final e in source) { | |
25445 if (f(e)) destination.add(e); | |
25446 } | |
25447 return destination; | |
25448 } | |
25449 | |
25450 static bool isEmpty(Iterable<Object> iterable) { | |
25451 return !iterable.iterator().hasNext(); | |
25452 } | |
25453 } | |
25454 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
25455 // for details. All rights reserved. Use of this source code is governed by a | |
25456 // BSD-style license that can be found in the LICENSE file. | |
25457 | |
25458 // Iterator for arrays with fixed size. | |
25459 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> { | |
25460 _FixedSizeListIterator(List<T> array) | |
25461 : super(array), | |
25462 _length = array.length; | |
25463 | |
25464 bool hasNext() => _length > _pos; | |
25465 | |
25466 final int _length; // Cache array length for faster access. | |
25467 } | |
25468 | |
25469 // Iterator for arrays with variable size. | |
25470 class _VariableSizeListIterator<T> implements Iterator<T> { | |
25471 _VariableSizeListIterator(List<T> array) | |
25472 : _array = array, | |
25473 _pos = 0; | |
25474 | |
25475 bool hasNext() => _array.length > _pos; | |
25476 | |
25477 T next() { | |
25478 if (!hasNext()) { | |
25479 throw const NoMoreElementsException(); | |
25480 } | |
25481 return _array[_pos++]; | |
25482 } | |
25483 | |
25484 final List<T> _array; | |
25485 int _pos; | |
25486 } | |
25487 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
25488 // for details. All rights reserved. Use of this source code is governed by a | |
25489 // BSD-style license that can be found in the LICENSE file. | |
25490 | |
25491 class _Lists { | |
25492 | |
25493 /** | |
25494 * Returns the index in the array [a] of the given [element], starting | |
25495 * the search at index [startIndex] to [endIndex] (exclusive). | |
25496 * Returns -1 if [element] is not found. | |
25497 */ | |
25498 static int indexOf(List a, | |
25499 Object element, | |
25500 int startIndex, | |
25501 int endIndex) { | |
25502 if (startIndex >= a.length) { | |
25503 return -1; | |
25504 } | |
25505 if (startIndex < 0) { | |
25506 startIndex = 0; | |
25507 } | |
25508 for (int i = startIndex; i < endIndex; i++) { | |
25509 if (a[i] == element) { | |
25510 return i; | |
25511 } | |
25512 } | |
25513 return -1; | |
25514 } | |
25515 | |
25516 /** | |
25517 * Returns the last index in the array [a] of the given [element], starting | |
25518 * the search at index [startIndex] to 0. | |
25519 * Returns -1 if [element] is not found. | |
25520 */ | |
25521 static int lastIndexOf(List a, Object element, int startIndex) { | |
25522 if (startIndex < 0) { | |
25523 return -1; | |
25524 } | |
25525 if (startIndex >= a.length) { | |
25526 startIndex = a.length - 1; | |
25527 } | |
25528 for (int i = startIndex; i >= 0; i--) { | |
25529 if (a[i] == element) { | |
25530 return i; | |
25531 } | |
25532 } | |
25533 return -1; | |
25534 } | |
25535 | |
25536 /** | |
25537 * Returns a sub list copy of this list, from [start] to | |
25538 * [:start + length:]. | |
25539 * Returns an empty list if [length] is 0. | |
25540 * Throws an [IllegalArgumentException] if [length] is negative. | |
25541 * Throws an [IndexOutOfRangeException] if [start] or | |
25542 * [:start + length:] are out of range. | |
25543 */ | |
25544 static List getRange(List a, int start, int length, List accumulator) { | |
25545 if (length < 0) throw new IllegalArgumentException('length'); | |
25546 if (start < 0) throw new IndexOutOfRangeException(start); | |
25547 int end = start + length; | |
25548 if (end > a.length) throw new IndexOutOfRangeException(end); | |
25549 for (int i = start; i < end; i++) { | |
25550 accumulator.add(a[i]); | |
25551 } | |
25552 return accumulator; | |
25553 } | |
25554 } | |
OLD | NEW |