| 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 final int FINISHED_STATE = 3; | |
| 83 | |
| 84 static final int PLAYING_STATE = 2; | |
| 85 | |
| 86 static final int SCHEDULED_STATE = 1; | |
| 87 | |
| 88 static final 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 _OscillatorJs createOscillator() native; | |
| 152 | |
| 153 _AudioPannerNodeJs createPanner() native; | |
| 154 | |
| 155 _WaveShaperNodeJs createWaveShaper() native; | |
| 156 | |
| 157 _WaveTableJs createWaveTable(_Float32ArrayJs real, _Float32ArrayJs imag) nativ
e; | |
| 158 | |
| 159 void decodeAudioData(_ArrayBufferJs audioData, AudioBufferCallback successCall
back, [AudioBufferCallback errorCallback]) native; | |
| 160 | |
| 161 void startRendering() native; | |
| 162 } | |
| 163 | |
| 164 class _AudioDestinationNodeJs extends _AudioNodeJs implements AudioDestinationNo
de native "*AudioDestinationNode" { | |
| 165 | |
| 166 final int numberOfChannels; | |
| 167 } | |
| 168 | |
| 169 class _AudioGainJs extends _AudioParamJs implements AudioGain native "*AudioGain
" { | |
| 170 } | |
| 171 | |
| 172 class _AudioGainNodeJs extends _AudioNodeJs implements AudioGainNode native "*Au
dioGainNode" { | |
| 173 | |
| 174 final _AudioGainJs gain; | |
| 175 } | |
| 176 | |
| 177 class _AudioListenerJs extends _DOMTypeJs implements AudioListener native "*Audi
oListener" { | |
| 178 | |
| 179 num dopplerFactor; | |
| 180 | |
| 181 num speedOfSound; | |
| 182 | |
| 183 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; | |
| 184 | |
| 185 void setPosition(num x, num y, num z) native; | |
| 186 | |
| 187 void setVelocity(num x, num y, num z) native; | |
| 188 } | |
| 189 | |
| 190 class _AudioNodeJs extends _DOMTypeJs implements AudioNode native "*AudioNode" { | |
| 191 | |
| 192 final _AudioContextJs context; | |
| 193 | |
| 194 final int numberOfInputs; | |
| 195 | |
| 196 final int numberOfOutputs; | |
| 197 | |
| 198 void connect(destination, int output, [int input]) native; | |
| 199 | |
| 200 void disconnect(int output) native; | |
| 201 } | |
| 202 | |
| 203 class _AudioPannerNodeJs extends _AudioNodeJs implements AudioPannerNode native
"*AudioPannerNode" { | |
| 204 | |
| 205 static final int EQUALPOWER = 0; | |
| 206 | |
| 207 static final int EXPONENTIAL_DISTANCE = 2; | |
| 208 | |
| 209 static final int HRTF = 1; | |
| 210 | |
| 211 static final int INVERSE_DISTANCE = 1; | |
| 212 | |
| 213 static final int LINEAR_DISTANCE = 0; | |
| 214 | |
| 215 static final int SOUNDFIELD = 2; | |
| 216 | |
| 217 final _AudioGainJs coneGain; | |
| 218 | |
| 219 num coneInnerAngle; | |
| 220 | |
| 221 num coneOuterAngle; | |
| 222 | |
| 223 num coneOuterGain; | |
| 224 | |
| 225 final _AudioGainJs distanceGain; | |
| 226 | |
| 227 int distanceModel; | |
| 228 | |
| 229 num maxDistance; | |
| 230 | |
| 231 int panningModel; | |
| 232 | |
| 233 num refDistance; | |
| 234 | |
| 235 num rolloffFactor; | |
| 236 | |
| 237 void setOrientation(num x, num y, num z) native; | |
| 238 | |
| 239 void setPosition(num x, num y, num z) native; | |
| 240 | |
| 241 void setVelocity(num x, num y, num z) native; | |
| 242 } | |
| 243 | |
| 244 class _AudioParamJs extends _DOMTypeJs implements AudioParam native "*AudioParam
" { | |
| 245 | |
| 246 final num defaultValue; | |
| 247 | |
| 248 final num maxValue; | |
| 249 | |
| 250 final num minValue; | |
| 251 | |
| 252 final String name; | |
| 253 | |
| 254 final int units; | |
| 255 | |
| 256 num value; | |
| 257 | |
| 258 void cancelScheduledValues(num startTime) native; | |
| 259 | |
| 260 void exponentialRampToValueAtTime(num value, num time) native; | |
| 261 | |
| 262 void linearRampToValueAtTime(num value, num time) native; | |
| 263 | |
| 264 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; | |
| 265 | |
| 266 void setValueAtTime(num value, num time) native; | |
| 267 | |
| 268 void setValueCurveAtTime(_Float32ArrayJs values, num time, num duration) nativ
e; | |
| 269 } | |
| 270 | |
| 271 class _AudioProcessingEventJs extends _EventJs implements AudioProcessingEvent n
ative "*AudioProcessingEvent" { | |
| 272 | |
| 273 final _AudioBufferJs inputBuffer; | |
| 274 | |
| 275 final _AudioBufferJs outputBuffer; | |
| 276 } | |
| 277 | |
| 278 class _AudioSourceNodeJs extends _AudioNodeJs implements AudioSourceNode native
"*AudioSourceNode" { | |
| 279 } | |
| 280 | |
| 281 class _BarInfoJs extends _DOMTypeJs implements BarInfo native "*BarInfo" { | |
| 282 | |
| 283 final bool visible; | |
| 284 } | |
| 285 | |
| 286 class _BatteryManagerJs extends _EventTargetJs implements BatteryManager native
"*BatteryManager" { | |
| 287 | |
| 288 final bool charging; | |
| 289 | |
| 290 final num chargingTime; | |
| 291 | |
| 292 final num dischargingTime; | |
| 293 | |
| 294 final num level; | |
| 295 | |
| 296 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 297 | |
| 298 bool dispatchEvent(_EventJs evt) native; | |
| 299 | |
| 300 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 301 } | |
| 302 | |
| 303 class _BeforeLoadEventJs extends _EventJs implements BeforeLoadEvent native "*Be
foreLoadEvent" { | |
| 304 | |
| 305 final String url; | |
| 306 } | |
| 307 | |
| 308 class _BiquadFilterNodeJs extends _AudioNodeJs implements BiquadFilterNode nativ
e "*BiquadFilterNode" { | |
| 309 | |
| 310 static final int ALLPASS = 7; | |
| 311 | |
| 312 static final int BANDPASS = 2; | |
| 313 | |
| 314 static final int HIGHPASS = 1; | |
| 315 | |
| 316 static final int HIGHSHELF = 4; | |
| 317 | |
| 318 static final int LOWPASS = 0; | |
| 319 | |
| 320 static final int LOWSHELF = 3; | |
| 321 | |
| 322 static final int NOTCH = 6; | |
| 323 | |
| 324 static final int PEAKING = 5; | |
| 325 | |
| 326 final _AudioParamJs Q; | |
| 327 | |
| 328 final _AudioParamJs frequency; | |
| 329 | |
| 330 final _AudioParamJs gain; | |
| 331 | |
| 332 int type; | |
| 333 | |
| 334 void getFrequencyResponse(_Float32ArrayJs frequencyHz, _Float32ArrayJs magResp
onse, _Float32ArrayJs phaseResponse) native; | |
| 335 } | |
| 336 | |
| 337 class _BlobJs extends _DOMTypeJs implements Blob native "*Blob" { | |
| 338 | |
| 339 final int size; | |
| 340 | |
| 341 final String type; | |
| 342 | |
| 343 _BlobJs slice([int start, int end, String contentType]) native; | |
| 344 | |
| 345 _BlobJs webkitSlice([int start, int end, String contentType]) native; | |
| 346 } | |
| 347 | |
| 348 class _CDATASectionJs extends _TextJs implements CDATASection native "*CDATASect
ion" { | |
| 349 } | |
| 350 | |
| 351 class _CSSCharsetRuleJs extends _CSSRuleJs implements CSSCharsetRule native "*CS
SCharsetRule" { | |
| 352 | |
| 353 String encoding; | |
| 354 } | |
| 355 | |
| 356 class _CSSFontFaceRuleJs extends _CSSRuleJs implements CSSFontFaceRule native "*
CSSFontFaceRule" { | |
| 357 | |
| 358 final _CSSStyleDeclarationJs style; | |
| 359 } | |
| 360 | |
| 361 class _CSSImportRuleJs extends _CSSRuleJs implements CSSImportRule native "*CSSI
mportRule" { | |
| 362 | |
| 363 final String href; | |
| 364 | |
| 365 final _MediaListJs media; | |
| 366 | |
| 367 final _CSSStyleSheetJs styleSheet; | |
| 368 } | |
| 369 | |
| 370 class _CSSMediaRuleJs extends _CSSRuleJs implements CSSMediaRule native "*CSSMed
iaRule" { | |
| 371 | |
| 372 final _CSSRuleListJs cssRules; | |
| 373 | |
| 374 final _MediaListJs media; | |
| 375 | |
| 376 void deleteRule(int index) native; | |
| 377 | |
| 378 int insertRule(String rule, int index) native; | |
| 379 } | |
| 380 | |
| 381 class _CSSPageRuleJs extends _CSSRuleJs implements CSSPageRule native "*CSSPageR
ule" { | |
| 382 | |
| 383 String selectorText; | |
| 384 | |
| 385 final _CSSStyleDeclarationJs style; | |
| 386 } | |
| 387 | |
| 388 class _CSSPrimitiveValueJs extends _CSSValueJs implements CSSPrimitiveValue nati
ve "*CSSPrimitiveValue" { | |
| 389 | |
| 390 static final int CSS_ATTR = 22; | |
| 391 | |
| 392 static final int CSS_CM = 6; | |
| 393 | |
| 394 static final int CSS_COUNTER = 23; | |
| 395 | |
| 396 static final int CSS_DEG = 11; | |
| 397 | |
| 398 static final int CSS_DIMENSION = 18; | |
| 399 | |
| 400 static final int CSS_EMS = 3; | |
| 401 | |
| 402 static final int CSS_EXS = 4; | |
| 403 | |
| 404 static final int CSS_GRAD = 13; | |
| 405 | |
| 406 static final int CSS_HZ = 16; | |
| 407 | |
| 408 static final int CSS_IDENT = 21; | |
| 409 | |
| 410 static final int CSS_IN = 8; | |
| 411 | |
| 412 static final int CSS_KHZ = 17; | |
| 413 | |
| 414 static final int CSS_MM = 7; | |
| 415 | |
| 416 static final int CSS_MS = 14; | |
| 417 | |
| 418 static final int CSS_NUMBER = 1; | |
| 419 | |
| 420 static final int CSS_PC = 10; | |
| 421 | |
| 422 static final int CSS_PERCENTAGE = 2; | |
| 423 | |
| 424 static final int CSS_PT = 9; | |
| 425 | |
| 426 static final int CSS_PX = 5; | |
| 427 | |
| 428 static final int CSS_RAD = 12; | |
| 429 | |
| 430 static final int CSS_RECT = 24; | |
| 431 | |
| 432 static final int CSS_RGBCOLOR = 25; | |
| 433 | |
| 434 static final int CSS_S = 15; | |
| 435 | |
| 436 static final int CSS_STRING = 19; | |
| 437 | |
| 438 static final int CSS_UNKNOWN = 0; | |
| 439 | |
| 440 static final int CSS_URI = 20; | |
| 441 | |
| 442 static final int CSS_VH = 27; | |
| 443 | |
| 444 static final int CSS_VMIN = 28; | |
| 445 | |
| 446 static final int CSS_VW = 26; | |
| 447 | |
| 448 final int primitiveType; | |
| 449 | |
| 450 _CounterJs getCounterValue() native; | |
| 451 | |
| 452 num getFloatValue(int unitType) native; | |
| 453 | |
| 454 _RGBColorJs getRGBColorValue() native; | |
| 455 | |
| 456 _RectJs getRectValue() native; | |
| 457 | |
| 458 String getStringValue() native; | |
| 459 | |
| 460 void setFloatValue(int unitType, num floatValue) native; | |
| 461 | |
| 462 void setStringValue(int stringType, String stringValue) native; | |
| 463 } | |
| 464 | |
| 465 class _CSSRuleJs extends _DOMTypeJs implements CSSRule native "*CSSRule" { | |
| 466 | |
| 467 static final int CHARSET_RULE = 2; | |
| 468 | |
| 469 static final int FONT_FACE_RULE = 5; | |
| 470 | |
| 471 static final int IMPORT_RULE = 3; | |
| 472 | |
| 473 static final int MEDIA_RULE = 4; | |
| 474 | |
| 475 static final int PAGE_RULE = 6; | |
| 476 | |
| 477 static final int STYLE_RULE = 1; | |
| 478 | |
| 479 static final int UNKNOWN_RULE = 0; | |
| 480 | |
| 481 static final int WEBKIT_KEYFRAMES_RULE = 7; | |
| 482 | |
| 483 static final int WEBKIT_KEYFRAME_RULE = 8; | |
| 484 | |
| 485 String cssText; | |
| 486 | |
| 487 final _CSSRuleJs parentRule; | |
| 488 | |
| 489 final _CSSStyleSheetJs parentStyleSheet; | |
| 490 | |
| 491 final int type; | |
| 492 } | |
| 493 | |
| 494 class _CSSRuleListJs extends _DOMTypeJs implements CSSRuleList native "*CSSRuleL
ist" { | |
| 495 | |
| 496 final int length; | |
| 497 | |
| 498 _CSSRuleJs item(int index) native; | |
| 499 } | |
| 500 | |
| 501 class _CSSStyleDeclarationJs extends _DOMTypeJs implements CSSStyleDeclaration n
ative "*CSSStyleDeclaration" { | |
| 502 | |
| 503 String cssText; | |
| 504 | |
| 505 final int length; | |
| 506 | |
| 507 final _CSSRuleJs parentRule; | |
| 508 | |
| 509 _CSSValueJs getPropertyCSSValue(String propertyName) native; | |
| 510 | |
| 511 String getPropertyPriority(String propertyName) native; | |
| 512 | |
| 513 String getPropertyShorthand(String propertyName) native; | |
| 514 | |
| 515 String getPropertyValue(String propertyName) native; | |
| 516 | |
| 517 bool isPropertyImplicit(String propertyName) native; | |
| 518 | |
| 519 String item(int index) native; | |
| 520 | |
| 521 String removeProperty(String propertyName) native; | |
| 522 | |
| 523 void setProperty(String propertyName, String value, [String priority]) native; | |
| 524 } | |
| 525 | |
| 526 class _CSSStyleRuleJs extends _CSSRuleJs implements CSSStyleRule native "*CSSSty
leRule" { | |
| 527 | |
| 528 String selectorText; | |
| 529 | |
| 530 final _CSSStyleDeclarationJs style; | |
| 531 } | |
| 532 | |
| 533 class _CSSStyleSheetJs extends _StyleSheetJs implements CSSStyleSheet native "*C
SSStyleSheet" { | |
| 534 | |
| 535 final _CSSRuleListJs cssRules; | |
| 536 | |
| 537 final _CSSRuleJs ownerRule; | |
| 538 | |
| 539 final _CSSRuleListJs rules; | |
| 540 | |
| 541 int addRule(String selector, String style, [int index]) native; | |
| 542 | |
| 543 void deleteRule(int index) native; | |
| 544 | |
| 545 int insertRule(String rule, int index) native; | |
| 546 | |
| 547 void removeRule(int index) native; | |
| 548 } | |
| 549 | |
| 550 class _CSSUnknownRuleJs extends _CSSRuleJs implements CSSUnknownRule native "*CS
SUnknownRule" { | |
| 551 } | |
| 552 | |
| 553 class _CSSValueJs extends _DOMTypeJs implements CSSValue native "*CSSValue" { | |
| 554 | |
| 555 static final int CSS_CUSTOM = 3; | |
| 556 | |
| 557 static final int CSS_INHERIT = 0; | |
| 558 | |
| 559 static final int CSS_PRIMITIVE_VALUE = 1; | |
| 560 | |
| 561 static final int CSS_VALUE_LIST = 2; | |
| 562 | |
| 563 String cssText; | |
| 564 | |
| 565 final int cssValueType; | |
| 566 } | |
| 567 | |
| 568 class _CSSValueListJs extends _CSSValueJs implements CSSValueList native "*CSSVa
lueList" { | |
| 569 | |
| 570 final int length; | |
| 571 | |
| 572 _CSSValueJs item(int index) native; | |
| 573 } | |
| 574 | |
| 575 class _CanvasGradientJs extends _DOMTypeJs implements CanvasGradient native "*Ca
nvasGradient" { | |
| 576 | |
| 577 void addColorStop(num offset, String color) native; | |
| 578 } | |
| 579 | |
| 580 class _CanvasPatternJs extends _DOMTypeJs implements CanvasPattern native "*Canv
asPattern" { | |
| 581 } | |
| 582 | |
| 583 class _CanvasRenderingContextJs extends _DOMTypeJs implements CanvasRenderingCon
text native "*CanvasRenderingContext" { | |
| 584 | |
| 585 final _HTMLCanvasElementJs canvas; | |
| 586 } | |
| 587 | |
| 588 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C
anvasRenderingContext2D native "*CanvasRenderingContext2D" { | |
| 589 | |
| 590 var fillStyle; | |
| 591 | |
| 592 String font; | |
| 593 | |
| 594 num globalAlpha; | |
| 595 | |
| 596 String globalCompositeOperation; | |
| 597 | |
| 598 String lineCap; | |
| 599 | |
| 600 String lineJoin; | |
| 601 | |
| 602 num lineWidth; | |
| 603 | |
| 604 num miterLimit; | |
| 605 | |
| 606 num shadowBlur; | |
| 607 | |
| 608 String shadowColor; | |
| 609 | |
| 610 num shadowOffsetX; | |
| 611 | |
| 612 num shadowOffsetY; | |
| 613 | |
| 614 var strokeStyle; | |
| 615 | |
| 616 String textAlign; | |
| 617 | |
| 618 String textBaseline; | |
| 619 | |
| 620 final num webkitBackingStorePixelRatio; | |
| 621 | |
| 622 bool webkitImageSmoothingEnabled; | |
| 623 | |
| 624 List webkitLineDash; | |
| 625 | |
| 626 num webkitLineDashOffset; | |
| 627 | |
| 628 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; | |
| 629 | |
| 630 void arcTo(num x1, num y1, num x2, num y2, num radius) native; | |
| 631 | |
| 632 void beginPath() native; | |
| 633 | |
| 634 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | |
| 635 | |
| 636 void clearRect(num x, num y, num width, num height) native; | |
| 637 | |
| 638 void clearShadow() native; | |
| 639 | |
| 640 void clip() native; | |
| 641 | |
| 642 void closePath() native; | |
| 643 | |
| 644 _ImageDataJs createImageData(imagedata_OR_sw, [num sh]) native; | |
| 645 | |
| 646 _CanvasGradientJs createLinearGradient(num x0, num y0, num x1, num y1) native; | |
| 647 | |
| 648 _CanvasPatternJs createPattern(canvas_OR_image, String repetitionType) native; | |
| 649 | |
| 650 _CanvasGradientJs createRadialGradient(num x0, num y0, num r0, num x1, num y1,
num r1) native; | |
| 651 | |
| 652 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; | |
| 653 | |
| 654 void drawImageFromRect(_HTMLImageElementJs image, [num sx, num sy, num sw, num
sh, num dx, num dy, num dw, num dh, String compositeOperation]) native; | |
| 655 | |
| 656 void fill() native; | |
| 657 | |
| 658 void fillRect(num x, num y, num width, num height) native; | |
| 659 | |
| 660 void fillText(String text, num x, num y, [num maxWidth]) native; | |
| 661 | |
| 662 _ImageDataJs getImageData(num sx, num sy, num sw, num sh) native; | |
| 663 | |
| 664 bool isPointInPath(num x, num y) native; | |
| 665 | |
| 666 void lineTo(num x, num y) native; | |
| 667 | |
| 668 _TextMetricsJs measureText(String text) native; | |
| 669 | |
| 670 void moveTo(num x, num y) native; | |
| 671 | |
| 672 void putImageData(_ImageDataJs imagedata, num dx, num dy, [num dirtyX, num dir
tyY, num dirtyWidth, num dirtyHeight]) native; | |
| 673 | |
| 674 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | |
| 675 | |
| 676 void rect(num x, num y, num width, num height) native; | |
| 677 | |
| 678 void restore() native; | |
| 679 | |
| 680 void rotate(num angle) native; | |
| 681 | |
| 682 void save() native; | |
| 683 | |
| 684 void scale(num sx, num sy) native; | |
| 685 | |
| 686 void setAlpha(num alpha) native; | |
| 687 | |
| 688 void setCompositeOperation(String compositeOperation) native; | |
| 689 | |
| 690 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; | |
| 691 | |
| 692 void setLineCap(String cap) native; | |
| 693 | |
| 694 void setLineJoin(String join) native; | |
| 695 | |
| 696 void setLineWidth(num width) native; | |
| 697 | |
| 698 void setMiterLimit(num limit) native; | |
| 699 | |
| 700 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; | |
| 701 | |
| 702 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; | |
| 703 | |
| 704 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; | |
| 705 | |
| 706 void stroke() native; | |
| 707 | |
| 708 void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; | |
| 709 | |
| 710 void strokeText(String text, num x, num y, [num maxWidth]) native; | |
| 711 | |
| 712 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | |
| 713 | |
| 714 void translate(num tx, num ty) native; | |
| 715 | |
| 716 _ImageDataJs webkitGetImageDataHD(num sx, num sy, num sw, num sh) native; | |
| 717 | |
| 718 void webkitPutImageDataHD(_ImageDataJs imagedata, num dx, num dy, [num dirtyX,
num dirtyY, num dirtyWidth, num dirtyHeight]) native; | |
| 719 } | |
| 720 | |
| 721 class _CharacterDataJs extends _NodeJs implements CharacterData native "*Charact
erData" { | |
| 722 | |
| 723 String data; | |
| 724 | |
| 725 final int length; | |
| 726 | |
| 727 void appendData(String data) native; | |
| 728 | |
| 729 void deleteData(int offset, int length) native; | |
| 730 | |
| 731 void insertData(int offset, String data) native; | |
| 732 | |
| 733 void replaceData(int offset, int length, String data) native; | |
| 734 | |
| 735 String substringData(int offset, int length) native; | |
| 736 } | |
| 737 | |
| 738 class _ClientRectJs extends _DOMTypeJs implements ClientRect native "*ClientRect
" { | |
| 739 | |
| 740 final num bottom; | |
| 741 | |
| 742 final num height; | |
| 743 | |
| 744 final num left; | |
| 745 | |
| 746 final num right; | |
| 747 | |
| 748 final num top; | |
| 749 | |
| 750 final num width; | |
| 751 } | |
| 752 | |
| 753 class _ClientRectListJs extends _DOMTypeJs implements ClientRectList native "*Cl
ientRectList" { | |
| 754 | |
| 755 final int length; | |
| 756 | |
| 757 _ClientRectJs item(int index) native; | |
| 758 } | |
| 759 | |
| 760 class _ClipboardJs extends _DOMTypeJs implements Clipboard native "*Clipboard" { | |
| 761 | |
| 762 String dropEffect; | |
| 763 | |
| 764 String effectAllowed; | |
| 765 | |
| 766 final _FileListJs files; | |
| 767 | |
| 768 final _DataTransferItemListJs items; | |
| 769 | |
| 770 final List types; | |
| 771 | |
| 772 void clearData([String type]) native; | |
| 773 | |
| 774 String getData(String type) native; | |
| 775 | |
| 776 bool setData(String type, String data) native; | |
| 777 | |
| 778 void setDragImage(_HTMLImageElementJs image, int x, int y) native; | |
| 779 } | |
| 780 | |
| 781 class _CloseEventJs extends _EventJs implements CloseEvent native "*CloseEvent"
{ | |
| 782 | |
| 783 final int code; | |
| 784 | |
| 785 final String reason; | |
| 786 | |
| 787 final bool wasClean; | |
| 788 } | |
| 789 | |
| 790 class _CommentJs extends _CharacterDataJs implements Comment native "*Comment" { | |
| 791 } | |
| 792 | |
| 793 class _CompositionEventJs extends _UIEventJs implements CompositionEvent native
"*CompositionEvent" { | |
| 794 | |
| 795 final String data; | |
| 796 | |
| 797 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, _DOMWindowJs viewArg, String dataArg) native; | |
| 798 } | |
| 799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 800 // for details. All rights reserved. Use of this source code is governed by a | |
| 801 // BSD-style license that can be found in the LICENSE file. | |
| 802 | |
| 803 class _ConsoleJs | |
| 804 // Implement DOMType directly. Console is sometimes a singleton | |
| 805 // bag-of-properties without a prototype, so it can't inherit from | |
| 806 // DOMTypeJs. | |
| 807 implements Console, DOMType | |
| 808 native "=(typeof console == 'undefined' ? {} : console)" { | |
| 809 | |
| 810 final _MemoryInfoJs memory; | |
| 811 | |
| 812 final List<ScriptProfile> profiles; | |
| 813 | |
| 814 void assertCondition(bool condition, Object arg) native; | |
| 815 | |
| 816 void count() native; | |
| 817 | |
| 818 void debug(Object arg) native; | |
| 819 | |
| 820 void dir() native; | |
| 821 | |
| 822 void dirxml() native; | |
| 823 | |
| 824 void error(Object arg) native; | |
| 825 | |
| 826 void group(Object arg) native; | |
| 827 | |
| 828 void groupCollapsed(Object arg) native; | |
| 829 | |
| 830 void groupEnd() native; | |
| 831 | |
| 832 void info(Object arg) native; | |
| 833 | |
| 834 void log(Object arg) native; | |
| 835 | |
| 836 void markTimeline() native; | |
| 837 | |
| 838 void profile(String title) native; | |
| 839 | |
| 840 void profileEnd(String title) native; | |
| 841 | |
| 842 void time(String title) native; | |
| 843 | |
| 844 void timeEnd(String title, Object arg) native; | |
| 845 | |
| 846 void timeStamp(Object arg) native; | |
| 847 | |
| 848 void trace(Object arg) native; | |
| 849 | |
| 850 void warn(Object arg) native; | |
| 851 | |
| 852 | |
| 853 // Keep these in sync with frog_DOMTypeJs.dart. | |
| 854 var dartObjectLocalStorage; | |
| 855 String get typeName() native; | |
| 856 } | |
| 857 | |
| 858 class _ConvolverNodeJs extends _AudioNodeJs implements ConvolverNode native "*Co
nvolverNode" { | |
| 859 | |
| 860 _AudioBufferJs buffer; | |
| 861 | |
| 862 bool normalize; | |
| 863 } | |
| 864 | |
| 865 class _CoordinatesJs extends _DOMTypeJs implements Coordinates native "*Coordina
tes" { | |
| 866 | |
| 867 final num accuracy; | |
| 868 | |
| 869 final num altitude; | |
| 870 | |
| 871 final num altitudeAccuracy; | |
| 872 | |
| 873 final num heading; | |
| 874 | |
| 875 final num latitude; | |
| 876 | |
| 877 final num longitude; | |
| 878 | |
| 879 final num speed; | |
| 880 } | |
| 881 | |
| 882 class _CounterJs extends _DOMTypeJs implements Counter native "*Counter" { | |
| 883 | |
| 884 final String identifier; | |
| 885 | |
| 886 final String listStyle; | |
| 887 | |
| 888 final String separator; | |
| 889 } | |
| 890 | |
| 891 class _CryptoJs extends _DOMTypeJs implements Crypto native "*Crypto" { | |
| 892 | |
| 893 void getRandomValues(_ArrayBufferViewJs array) native; | |
| 894 } | |
| 895 | |
| 896 class _CustomEventJs extends _EventJs implements CustomEvent native "*CustomEven
t" { | |
| 897 | |
| 898 final Object detail; | |
| 899 | |
| 900 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob
ject detailArg) native; | |
| 901 } | |
| 902 | |
| 903 class _DOMApplicationCacheJs extends _EventTargetJs implements DOMApplicationCac
he native "*DOMApplicationCache" { | |
| 904 | |
| 905 static final int CHECKING = 2; | |
| 906 | |
| 907 static final int DOWNLOADING = 3; | |
| 908 | |
| 909 static final int IDLE = 1; | |
| 910 | |
| 911 static final int OBSOLETE = 5; | |
| 912 | |
| 913 static final int UNCACHED = 0; | |
| 914 | |
| 915 static final int UPDATEREADY = 4; | |
| 916 | |
| 917 final int status; | |
| 918 | |
| 919 void abort() native; | |
| 920 | |
| 921 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 922 | |
| 923 bool dispatchEvent(_EventJs evt) native; | |
| 924 | |
| 925 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 926 | |
| 927 void swapCache() native; | |
| 928 | |
| 929 void update() native; | |
| 930 } | |
| 931 | |
| 932 class _DOMErrorJs extends _DOMTypeJs implements DOMError native "*DOMError" { | |
| 933 | |
| 934 final String name; | |
| 935 } | |
| 936 | |
| 937 class _DOMExceptionJs extends _DOMTypeJs implements DOMException native "*DOMExc
eption" { | |
| 938 | |
| 939 static final int ABORT_ERR = 20; | |
| 940 | |
| 941 static final int DATA_CLONE_ERR = 25; | |
| 942 | |
| 943 static final int DOMSTRING_SIZE_ERR = 2; | |
| 944 | |
| 945 static final int HIERARCHY_REQUEST_ERR = 3; | |
| 946 | |
| 947 static final int INDEX_SIZE_ERR = 1; | |
| 948 | |
| 949 static final int INUSE_ATTRIBUTE_ERR = 10; | |
| 950 | |
| 951 static final int INVALID_ACCESS_ERR = 15; | |
| 952 | |
| 953 static final int INVALID_CHARACTER_ERR = 5; | |
| 954 | |
| 955 static final int INVALID_MODIFICATION_ERR = 13; | |
| 956 | |
| 957 static final int INVALID_NODE_TYPE_ERR = 24; | |
| 958 | |
| 959 static final int INVALID_STATE_ERR = 11; | |
| 960 | |
| 961 static final int NAMESPACE_ERR = 14; | |
| 962 | |
| 963 static final int NETWORK_ERR = 19; | |
| 964 | |
| 965 static final int NOT_FOUND_ERR = 8; | |
| 966 | |
| 967 static final int NOT_SUPPORTED_ERR = 9; | |
| 968 | |
| 969 static final int NO_DATA_ALLOWED_ERR = 6; | |
| 970 | |
| 971 static final int NO_MODIFICATION_ALLOWED_ERR = 7; | |
| 972 | |
| 973 static final int QUOTA_EXCEEDED_ERR = 22; | |
| 974 | |
| 975 static final int SECURITY_ERR = 18; | |
| 976 | |
| 977 static final int SYNTAX_ERR = 12; | |
| 978 | |
| 979 static final int TIMEOUT_ERR = 23; | |
| 980 | |
| 981 static final int TYPE_MISMATCH_ERR = 17; | |
| 982 | |
| 983 static final int URL_MISMATCH_ERR = 21; | |
| 984 | |
| 985 static final int VALIDATION_ERR = 16; | |
| 986 | |
| 987 static final int WRONG_DOCUMENT_ERR = 4; | |
| 988 | |
| 989 final int code; | |
| 990 | |
| 991 final String message; | |
| 992 | |
| 993 final String name; | |
| 994 | |
| 995 String toString() native; | |
| 996 } | |
| 997 | |
| 998 class _DOMFileSystemJs extends _DOMTypeJs implements DOMFileSystem native "*DOMF
ileSystem" { | |
| 999 | |
| 1000 final String name; | |
| 1001 | |
| 1002 final _DirectoryEntryJs root; | |
| 1003 } | |
| 1004 | |
| 1005 class _DOMFileSystemSyncJs extends _DOMTypeJs implements DOMFileSystemSync nativ
e "*DOMFileSystemSync" { | |
| 1006 | |
| 1007 final String name; | |
| 1008 | |
| 1009 final _DirectoryEntrySyncJs root; | |
| 1010 } | |
| 1011 | |
| 1012 class _DOMFormDataJs extends _DOMTypeJs implements DOMFormData native "*DOMFormD
ata" { | |
| 1013 | |
| 1014 void append(String name, String value, String filename) native; | |
| 1015 } | |
| 1016 | |
| 1017 class _DOMImplementationJs extends _DOMTypeJs implements DOMImplementation nativ
e "*DOMImplementation" { | |
| 1018 | |
| 1019 _CSSStyleSheetJs createCSSStyleSheet(String title, String media) native; | |
| 1020 | |
| 1021 _DocumentJs createDocument(String namespaceURI, String qualifiedName, _Documen
tTypeJs doctype) native; | |
| 1022 | |
| 1023 _DocumentTypeJs createDocumentType(String qualifiedName, String publicId, Stri
ng systemId) native; | |
| 1024 | |
| 1025 _HTMLDocumentJs createHTMLDocument(String title) native; | |
| 1026 | |
| 1027 bool hasFeature(String feature, String version) native; | |
| 1028 } | |
| 1029 | |
| 1030 class _DOMMimeTypeJs extends _DOMTypeJs implements DOMMimeType native "*DOMMimeT
ype" { | |
| 1031 | |
| 1032 final String description; | |
| 1033 | |
| 1034 final _DOMPluginJs enabledPlugin; | |
| 1035 | |
| 1036 final String suffixes; | |
| 1037 | |
| 1038 final String type; | |
| 1039 } | |
| 1040 | |
| 1041 class _DOMMimeTypeArrayJs extends _DOMTypeJs implements DOMMimeTypeArray native
"*DOMMimeTypeArray" { | |
| 1042 | |
| 1043 final int length; | |
| 1044 | |
| 1045 _DOMMimeTypeJs item(int index) native; | |
| 1046 | |
| 1047 _DOMMimeTypeJs namedItem(String name) native; | |
| 1048 } | |
| 1049 | |
| 1050 class _DOMParserJs extends _DOMTypeJs implements DOMParser native "*DOMParser" { | |
| 1051 | |
| 1052 _DocumentJs parseFromString(String str, String contentType) native; | |
| 1053 } | |
| 1054 | |
| 1055 class _DOMPluginJs extends _DOMTypeJs implements DOMPlugin native "*DOMPlugin" { | |
| 1056 | |
| 1057 final String description; | |
| 1058 | |
| 1059 final String filename; | |
| 1060 | |
| 1061 final int length; | |
| 1062 | |
| 1063 final String name; | |
| 1064 | |
| 1065 _DOMMimeTypeJs item(int index) native; | |
| 1066 | |
| 1067 _DOMMimeTypeJs namedItem(String name) native; | |
| 1068 } | |
| 1069 | |
| 1070 class _DOMPluginArrayJs extends _DOMTypeJs implements DOMPluginArray native "*DO
MPluginArray" { | |
| 1071 | |
| 1072 final int length; | |
| 1073 | |
| 1074 _DOMPluginJs item(int index) native; | |
| 1075 | |
| 1076 _DOMPluginJs namedItem(String name) native; | |
| 1077 | |
| 1078 void refresh(bool reload) native; | |
| 1079 } | |
| 1080 | |
| 1081 class _DOMSelectionJs extends _DOMTypeJs implements DOMSelection native "*DOMSel
ection" { | |
| 1082 | |
| 1083 final _NodeJs anchorNode; | |
| 1084 | |
| 1085 final int anchorOffset; | |
| 1086 | |
| 1087 final _NodeJs baseNode; | |
| 1088 | |
| 1089 final int baseOffset; | |
| 1090 | |
| 1091 final _NodeJs extentNode; | |
| 1092 | |
| 1093 final int extentOffset; | |
| 1094 | |
| 1095 final _NodeJs focusNode; | |
| 1096 | |
| 1097 final int focusOffset; | |
| 1098 | |
| 1099 final bool isCollapsed; | |
| 1100 | |
| 1101 final int rangeCount; | |
| 1102 | |
| 1103 final String type; | |
| 1104 | |
| 1105 void addRange(_RangeJs range) native; | |
| 1106 | |
| 1107 void collapse(_NodeJs node, int index) native; | |
| 1108 | |
| 1109 void collapseToEnd() native; | |
| 1110 | |
| 1111 void collapseToStart() native; | |
| 1112 | |
| 1113 bool containsNode(_NodeJs node, bool allowPartial) native; | |
| 1114 | |
| 1115 void deleteFromDocument() native; | |
| 1116 | |
| 1117 void empty() native; | |
| 1118 | |
| 1119 void extend(_NodeJs node, int offset) native; | |
| 1120 | |
| 1121 _RangeJs getRangeAt(int index) native; | |
| 1122 | |
| 1123 void modify(String alter, String direction, String granularity) native; | |
| 1124 | |
| 1125 void removeAllRanges() native; | |
| 1126 | |
| 1127 void selectAllChildren(_NodeJs node) native; | |
| 1128 | |
| 1129 void setBaseAndExtent(_NodeJs baseNode, int baseOffset, _NodeJs extentNode, in
t extentOffset) native; | |
| 1130 | |
| 1131 void setPosition(_NodeJs node, int offset) native; | |
| 1132 | |
| 1133 String toString() native; | |
| 1134 } | |
| 1135 | |
| 1136 class _DOMSettableTokenListJs extends _DOMTokenListJs implements DOMSettableToke
nList native "*DOMSettableTokenList" { | |
| 1137 | |
| 1138 String value; | |
| 1139 } | |
| 1140 | |
| 1141 class _DOMStringListJs extends _DOMTypeJs implements DOMStringList native "*DOMS
tringList" { | |
| 1142 | |
| 1143 final int length; | |
| 1144 | |
| 1145 String operator[](int index) native "return this[index];"; | |
| 1146 | |
| 1147 void operator[]=(int index, String value) { | |
| 1148 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 1149 } | |
| 1150 // -- start List<String> mixins. | |
| 1151 // String is the element type. | |
| 1152 | |
| 1153 // From Iterable<String>: | |
| 1154 | |
| 1155 Iterator<String> iterator() { | |
| 1156 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 1157 // be cached in both iterator _and_ forEach method. For now caching it | |
| 1158 // for consistency. | |
| 1159 return new _FixedSizeListIterator<String>(this); | |
| 1160 } | |
| 1161 | |
| 1162 // From Collection<String>: | |
| 1163 | |
| 1164 void add(String value) { | |
| 1165 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 1166 } | |
| 1167 | |
| 1168 void addLast(String value) { | |
| 1169 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 1170 } | |
| 1171 | |
| 1172 void addAll(Collection<String> collection) { | |
| 1173 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 1174 } | |
| 1175 | |
| 1176 void forEach(void f(String element)) => _Collections.forEach(this, f); | |
| 1177 | |
| 1178 Collection map(f(String element)) => _Collections.map(this, [], f); | |
| 1179 | |
| 1180 Collection<String> filter(bool f(String element)) => | |
| 1181 _Collections.filter(this, <String>[], f); | |
| 1182 | |
| 1183 bool every(bool f(String element)) => _Collections.every(this, f); | |
| 1184 | |
| 1185 bool some(bool f(String element)) => _Collections.some(this, f); | |
| 1186 | |
| 1187 bool isEmpty() => this.length == 0; | |
| 1188 | |
| 1189 // From List<String>: | |
| 1190 | |
| 1191 void sort(int compare(String a, String b)) { | |
| 1192 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 1193 } | |
| 1194 | |
| 1195 int indexOf(String element, [int start = 0]) => | |
| 1196 _Lists.indexOf(this, element, start, this.length); | |
| 1197 | |
| 1198 int lastIndexOf(String element, [int start]) { | |
| 1199 if (start === null) start = length - 1; | |
| 1200 return _Lists.lastIndexOf(this, element, start); | |
| 1201 } | |
| 1202 | |
| 1203 String last() => this[length - 1]; | |
| 1204 | |
| 1205 String removeLast() { | |
| 1206 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 1207 } | |
| 1208 | |
| 1209 // FIXME: implement these. | |
| 1210 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ | |
| 1211 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 1212 } | |
| 1213 | |
| 1214 void removeRange(int start, int rangeLength) { | |
| 1215 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 1216 } | |
| 1217 | |
| 1218 void insertRange(int start, int rangeLength, [String initialValue]) { | |
| 1219 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 1220 } | |
| 1221 | |
| 1222 List<String> getRange(int start, int rangeLength) => | |
| 1223 _Lists.getRange(this, start, rangeLength, <String>[]); | |
| 1224 | |
| 1225 // -- end List<String> mixins. | |
| 1226 | |
| 1227 bool contains(String string) native; | |
| 1228 | |
| 1229 String item(int index) native; | |
| 1230 } | |
| 1231 | |
| 1232 class _DOMTokenListJs extends _DOMTypeJs implements DOMTokenList native "*DOMTok
enList" { | |
| 1233 | |
| 1234 final int length; | |
| 1235 | |
| 1236 void add(String token) native; | |
| 1237 | |
| 1238 bool contains(String token) native; | |
| 1239 | |
| 1240 String item(int index) native; | |
| 1241 | |
| 1242 void remove(String token) native; | |
| 1243 | |
| 1244 String toString() native; | |
| 1245 | |
| 1246 bool toggle(String token) native; | |
| 1247 } | |
| 1248 | |
| 1249 class _DOMURLJs extends _DOMTypeJs implements DOMURL native "*DOMURL" { | |
| 1250 } | |
| 1251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 1252 // for details. All rights reserved. Use of this source code is governed by a | |
| 1253 // BSD-style license that can be found in the LICENSE file. | |
| 1254 | |
| 1255 class _DOMWindowJs extends _EventTargetJs implements DOMWindow native "@*DOMWind
ow" { | |
| 1256 | |
| 1257 Window get _top() native "return this.top;"; | |
| 1258 | |
| 1259 // Override top to return secure wrapper. | |
| 1260 Window get top() => _DOMWindowCrossFrameImpl._createSafe(_top); | |
| 1261 | |
| 1262 int requestAnimationFrame(RequestAnimationFrameCallback callback) native ''' | |
| 1263 if (!window.requestAnimationFrame) { | |
| 1264 window.requestAnimationFrame = | |
| 1265 window.webkitRequestAnimationFrame || | |
| 1266 window.mozRequestAnimationFrame || | |
| 1267 window.msRequestAnimationFrame || | |
| 1268 window.oRequestAnimationFrame || | |
| 1269 function (callback) { | |
| 1270 window.setTimeout(callback, 16 /* 16ms ~= 60fps */); | |
| 1271 }; | |
| 1272 } | |
| 1273 return window.requestAnimationFrame(callback); | |
| 1274 '''; | |
| 1275 | |
| 1276 // Protect member 'requestAnimationFrame'. | |
| 1277 _requestAnimationFrame() native 'requestAnimationFrame'; | |
| 1278 | |
| 1279 | |
| 1280 static final int PERSISTENT = 1; | |
| 1281 | |
| 1282 static final int TEMPORARY = 0; | |
| 1283 | |
| 1284 final _DOMApplicationCacheJs applicationCache; | |
| 1285 | |
| 1286 final _NavigatorJs clientInformation; | |
| 1287 | |
| 1288 final bool closed; | |
| 1289 | |
| 1290 final _ConsoleJs console; | |
| 1291 | |
| 1292 final _CryptoJs crypto; | |
| 1293 | |
| 1294 String defaultStatus; | |
| 1295 | |
| 1296 String defaultstatus; | |
| 1297 | |
| 1298 final num devicePixelRatio; | |
| 1299 | |
| 1300 final _DocumentJs document; | |
| 1301 | |
| 1302 final _EventJs event; | |
| 1303 | |
| 1304 final _DOMWindowJs frames; | |
| 1305 | |
| 1306 final _HistoryJs history; | |
| 1307 | |
| 1308 final int innerHeight; | |
| 1309 | |
| 1310 final int innerWidth; | |
| 1311 | |
| 1312 final int length; | |
| 1313 | |
| 1314 final _StorageJs localStorage; | |
| 1315 | |
| 1316 _LocationJs location; | |
| 1317 | |
| 1318 final _BarInfoJs locationbar; | |
| 1319 | |
| 1320 final _BarInfoJs menubar; | |
| 1321 | |
| 1322 String name; | |
| 1323 | |
| 1324 final _NavigatorJs navigator; | |
| 1325 | |
| 1326 final bool offscreenBuffering; | |
| 1327 | |
| 1328 final _DOMWindowJs opener; | |
| 1329 | |
| 1330 final int outerHeight; | |
| 1331 | |
| 1332 final int outerWidth; | |
| 1333 | |
| 1334 final _PagePopupControllerJs pagePopupController; | |
| 1335 | |
| 1336 final int pageXOffset; | |
| 1337 | |
| 1338 final int pageYOffset; | |
| 1339 | |
| 1340 final _DOMWindowJs parent; | |
| 1341 | |
| 1342 final _PerformanceJs performance; | |
| 1343 | |
| 1344 final _BarInfoJs personalbar; | |
| 1345 | |
| 1346 final _ScreenJs screen; | |
| 1347 | |
| 1348 final int screenLeft; | |
| 1349 | |
| 1350 final int screenTop; | |
| 1351 | |
| 1352 final int screenX; | |
| 1353 | |
| 1354 final int screenY; | |
| 1355 | |
| 1356 final int scrollX; | |
| 1357 | |
| 1358 final int scrollY; | |
| 1359 | |
| 1360 final _BarInfoJs scrollbars; | |
| 1361 | |
| 1362 final _DOMWindowJs self; | |
| 1363 | |
| 1364 final _StorageJs sessionStorage; | |
| 1365 | |
| 1366 String status; | |
| 1367 | |
| 1368 final _BarInfoJs statusbar; | |
| 1369 | |
| 1370 final _StyleMediaJs styleMedia; | |
| 1371 | |
| 1372 final _BarInfoJs toolbar; | |
| 1373 | |
| 1374 final _IDBFactoryJs webkitIndexedDB; | |
| 1375 | |
| 1376 final _NotificationCenterJs webkitNotifications; | |
| 1377 | |
| 1378 final _StorageInfoJs webkitStorageInfo; | |
| 1379 | |
| 1380 final _DOMWindowJs window; | |
| 1381 | |
| 1382 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 1383 | |
| 1384 void alert(String message) native; | |
| 1385 | |
| 1386 String atob(String string) native; | |
| 1387 | |
| 1388 void blur() native; | |
| 1389 | |
| 1390 String btoa(String string) native; | |
| 1391 | |
| 1392 void captureEvents() native; | |
| 1393 | |
| 1394 void clearInterval(int handle) native; | |
| 1395 | |
| 1396 void clearTimeout(int handle) native; | |
| 1397 | |
| 1398 void close() native; | |
| 1399 | |
| 1400 bool confirm(String message) native; | |
| 1401 | |
| 1402 bool dispatchEvent(_EventJs evt) native; | |
| 1403 | |
| 1404 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; | |
| 1405 | |
| 1406 void focus() native; | |
| 1407 | |
| 1408 _CSSStyleDeclarationJs getComputedStyle(_ElementJs element, String pseudoEleme
nt) native; | |
| 1409 | |
| 1410 _CSSRuleListJs getMatchedCSSRules(_ElementJs element, String pseudoElement) na
tive; | |
| 1411 | |
| 1412 _DOMSelectionJs getSelection() native; | |
| 1413 | |
| 1414 _MediaQueryListJs matchMedia(String query) native; | |
| 1415 | |
| 1416 void moveBy(num x, num y) native; | |
| 1417 | |
| 1418 void moveTo(num x, num y) native; | |
| 1419 | |
| 1420 _DOMWindowJs open(String url, String name, [String options]) native; | |
| 1421 | |
| 1422 _DatabaseJs openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback]) native; | |
| 1423 | |
| 1424 void postMessage(message, String targetOrigin, [List messagePorts]) native; | |
| 1425 | |
| 1426 void print() native; | |
| 1427 | |
| 1428 String prompt(String message, String defaultValue) native; | |
| 1429 | |
| 1430 void releaseEvents() native; | |
| 1431 | |
| 1432 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 1433 | |
| 1434 void resizeBy(num x, num y) native; | |
| 1435 | |
| 1436 void resizeTo(num width, num height) native; | |
| 1437 | |
| 1438 void scroll(int x, int y) native; | |
| 1439 | |
| 1440 void scrollBy(int x, int y) native; | |
| 1441 | |
| 1442 void scrollTo(int x, int y) native; | |
| 1443 | |
| 1444 int setInterval(TimeoutHandler handler, int timeout) native; | |
| 1445 | |
| 1446 int setTimeout(TimeoutHandler handler, int timeout) native; | |
| 1447 | |
| 1448 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; | |
| 1449 | |
| 1450 void stop() native; | |
| 1451 | |
| 1452 void webkitCancelAnimationFrame(int id) native; | |
| 1453 | |
| 1454 void webkitCancelRequestAnimationFrame(int id) native; | |
| 1455 | |
| 1456 _WebKitPointJs webkitConvertPointFromNodeToPage(_NodeJs node, _WebKitPointJs p
) native; | |
| 1457 | |
| 1458 _WebKitPointJs webkitConvertPointFromPageToNode(_NodeJs node, _WebKitPointJs p
) native; | |
| 1459 | |
| 1460 void webkitPostMessage(message, String targetOrigin, [List transferList]) nati
ve; | |
| 1461 | |
| 1462 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback) native
; | |
| 1463 | |
| 1464 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]) native; | |
| 1465 | |
| 1466 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]) native; | |
| 1467 | |
| 1468 } | |
| 1469 | |
| 1470 class _DataTransferItemJs extends _DOMTypeJs implements DataTransferItem native
"*DataTransferItem" { | |
| 1471 | |
| 1472 final String kind; | |
| 1473 | |
| 1474 final String type; | |
| 1475 | |
| 1476 _BlobJs getAsFile() native; | |
| 1477 | |
| 1478 void getAsString([StringCallback callback]) native; | |
| 1479 | |
| 1480 _EntryJs webkitGetAsEntry() native; | |
| 1481 } | |
| 1482 | |
| 1483 class _DataTransferItemListJs extends _DOMTypeJs implements DataTransferItemList
native "*DataTransferItemList" { | |
| 1484 | |
| 1485 final int length; | |
| 1486 | |
| 1487 void add(data_OR_file, [String type]) native; | |
| 1488 | |
| 1489 void clear() native; | |
| 1490 | |
| 1491 _DataTransferItemJs item(int index) native; | |
| 1492 } | |
| 1493 | |
| 1494 class _DataViewJs extends _ArrayBufferViewJs implements DataView native "*DataVi
ew" { | |
| 1495 | |
| 1496 num getFloat32(int byteOffset, [bool littleEndian]) native; | |
| 1497 | |
| 1498 num getFloat64(int byteOffset, [bool littleEndian]) native; | |
| 1499 | |
| 1500 int getInt16(int byteOffset, [bool littleEndian]) native; | |
| 1501 | |
| 1502 int getInt32(int byteOffset, [bool littleEndian]) native; | |
| 1503 | |
| 1504 int getInt8(int byteOffset) native; | |
| 1505 | |
| 1506 int getUint16(int byteOffset, [bool littleEndian]) native; | |
| 1507 | |
| 1508 int getUint32(int byteOffset, [bool littleEndian]) native; | |
| 1509 | |
| 1510 int getUint8(int byteOffset) native; | |
| 1511 | |
| 1512 void setFloat32(int byteOffset, num value, [bool littleEndian]) native; | |
| 1513 | |
| 1514 void setFloat64(int byteOffset, num value, [bool littleEndian]) native; | |
| 1515 | |
| 1516 void setInt16(int byteOffset, int value, [bool littleEndian]) native; | |
| 1517 | |
| 1518 void setInt32(int byteOffset, int value, [bool littleEndian]) native; | |
| 1519 | |
| 1520 void setInt8(int byteOffset, int value) native; | |
| 1521 | |
| 1522 void setUint16(int byteOffset, int value, [bool littleEndian]) native; | |
| 1523 | |
| 1524 void setUint32(int byteOffset, int value, [bool littleEndian]) native; | |
| 1525 | |
| 1526 void setUint8(int byteOffset, int value) native; | |
| 1527 } | |
| 1528 | |
| 1529 class _DatabaseJs extends _DOMTypeJs implements Database native "*Database" { | |
| 1530 | |
| 1531 final String version; | |
| 1532 | |
| 1533 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall
back]) native; | |
| 1534 | |
| 1535 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback, VoidCallback successCallback]) native; | |
| 1536 | |
| 1537 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback, VoidCallback successCallback]) native; | |
| 1538 } | |
| 1539 | |
| 1540 class _DatabaseSyncJs extends _DOMTypeJs implements DatabaseSync native "*Databa
seSync" { | |
| 1541 | |
| 1542 final String lastErrorMessage; | |
| 1543 | |
| 1544 final String version; | |
| 1545 | |
| 1546 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa
llback callback]) native; | |
| 1547 | |
| 1548 void readTransaction(SQLTransactionSyncCallback callback) native; | |
| 1549 | |
| 1550 void transaction(SQLTransactionSyncCallback callback) native; | |
| 1551 } | |
| 1552 | |
| 1553 class _DedicatedWorkerContextJs extends _WorkerContextJs implements DedicatedWor
kerContext native "*DedicatedWorkerContext" { | |
| 1554 | |
| 1555 void postMessage(Object message, [List messagePorts]) native; | |
| 1556 | |
| 1557 void webkitPostMessage(Object message, [List transferList]) native; | |
| 1558 } | |
| 1559 | |
| 1560 class _DelayNodeJs extends _AudioNodeJs implements DelayNode native "*DelayNode"
{ | |
| 1561 | |
| 1562 final _AudioParamJs delayTime; | |
| 1563 } | |
| 1564 | |
| 1565 class _DeprecatedPeerConnectionJs extends _EventTargetJs implements DeprecatedPe
erConnection native "*DeprecatedPeerConnection" { | |
| 1566 | |
| 1567 static final int ACTIVE = 2; | |
| 1568 | |
| 1569 static final int CLOSED = 3; | |
| 1570 | |
| 1571 static final int NEGOTIATING = 1; | |
| 1572 | |
| 1573 static final int NEW = 0; | |
| 1574 | |
| 1575 final _MediaStreamListJs localStreams; | |
| 1576 | |
| 1577 final int readyState; | |
| 1578 | |
| 1579 final _MediaStreamListJs remoteStreams; | |
| 1580 | |
| 1581 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 1582 | |
| 1583 void addStream(_MediaStreamJs stream) native; | |
| 1584 | |
| 1585 void close() native; | |
| 1586 | |
| 1587 bool dispatchEvent(_EventJs event) native; | |
| 1588 | |
| 1589 void processSignalingMessage(String message) native; | |
| 1590 | |
| 1591 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 1592 | |
| 1593 void removeStream(_MediaStreamJs stream) native; | |
| 1594 | |
| 1595 void send(String text) native; | |
| 1596 } | |
| 1597 | |
| 1598 class _DeviceMotionEventJs extends _EventJs implements DeviceMotionEvent native
"*DeviceMotionEvent" { | |
| 1599 | |
| 1600 final num interval; | |
| 1601 } | |
| 1602 | |
| 1603 class _DeviceOrientationEventJs extends _EventJs implements DeviceOrientationEve
nt native "*DeviceOrientationEvent" { | |
| 1604 | |
| 1605 final bool absolute; | |
| 1606 | |
| 1607 final num alpha; | |
| 1608 | |
| 1609 final num beta; | |
| 1610 | |
| 1611 final num gamma; | |
| 1612 | |
| 1613 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute) native; | |
| 1614 } | |
| 1615 | |
| 1616 class _DirectoryEntryJs extends _EntryJs implements DirectoryEntry native "*Dire
ctoryEntry" { | |
| 1617 | |
| 1618 _DirectoryReaderJs createReader() native; | |
| 1619 | |
| 1620 void getDirectory(String path, [Object flags, EntryCallback successCallback, E
rrorCallback errorCallback]) native; | |
| 1621 | |
| 1622 void getFile(String path, [Object flags, EntryCallback successCallback, ErrorC
allback errorCallback]) native; | |
| 1623 | |
| 1624 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]) native; | |
| 1625 } | |
| 1626 | |
| 1627 class _DirectoryEntrySyncJs extends _EntrySyncJs implements DirectoryEntrySync n
ative "*DirectoryEntrySync" { | |
| 1628 | |
| 1629 _DirectoryReaderSyncJs createReader() native; | |
| 1630 | |
| 1631 _DirectoryEntrySyncJs getDirectory(String path, Object flags) native; | |
| 1632 | |
| 1633 _FileEntrySyncJs getFile(String path, Object flags) native; | |
| 1634 | |
| 1635 void removeRecursively() native; | |
| 1636 } | |
| 1637 | |
| 1638 class _DirectoryReaderJs extends _DOMTypeJs implements DirectoryReader native "*
DirectoryReader" { | |
| 1639 | |
| 1640 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
]) native; | |
| 1641 } | |
| 1642 | |
| 1643 class _DirectoryReaderSyncJs extends _DOMTypeJs implements DirectoryReaderSync n
ative "*DirectoryReaderSync" { | |
| 1644 | |
| 1645 _EntryArraySyncJs readEntries() native; | |
| 1646 } | |
| 1647 | |
| 1648 class _DocumentJs extends _NodeJs implements Document native "*Document" { | |
| 1649 | |
| 1650 final String URL; | |
| 1651 | |
| 1652 final _HTMLCollectionJs anchors; | |
| 1653 | |
| 1654 final _HTMLCollectionJs applets; | |
| 1655 | |
| 1656 _HTMLElementJs body; | |
| 1657 | |
| 1658 final String characterSet; | |
| 1659 | |
| 1660 String charset; | |
| 1661 | |
| 1662 final String compatMode; | |
| 1663 | |
| 1664 String cookie; | |
| 1665 | |
| 1666 final String defaultCharset; | |
| 1667 | |
| 1668 final _DOMWindowJs defaultView; | |
| 1669 | |
| 1670 final _DocumentTypeJs doctype; | |
| 1671 | |
| 1672 final _ElementJs documentElement; | |
| 1673 | |
| 1674 final String documentURI; | |
| 1675 | |
| 1676 String domain; | |
| 1677 | |
| 1678 final _HTMLCollectionJs forms; | |
| 1679 | |
| 1680 final _HTMLHeadElementJs head; | |
| 1681 | |
| 1682 final _HTMLCollectionJs images; | |
| 1683 | |
| 1684 final _DOMImplementationJs implementation; | |
| 1685 | |
| 1686 final String inputEncoding; | |
| 1687 | |
| 1688 final String lastModified; | |
| 1689 | |
| 1690 final _HTMLCollectionJs links; | |
| 1691 | |
| 1692 _LocationJs location; | |
| 1693 | |
| 1694 final String preferredStylesheetSet; | |
| 1695 | |
| 1696 final String readyState; | |
| 1697 | |
| 1698 final String referrer; | |
| 1699 | |
| 1700 String selectedStylesheetSet; | |
| 1701 | |
| 1702 final _StyleSheetListJs styleSheets; | |
| 1703 | |
| 1704 String title; | |
| 1705 | |
| 1706 final _ElementJs webkitCurrentFullScreenElement; | |
| 1707 | |
| 1708 final bool webkitFullScreenKeyboardInputAllowed; | |
| 1709 | |
| 1710 final _ElementJs webkitFullscreenElement; | |
| 1711 | |
| 1712 final bool webkitFullscreenEnabled; | |
| 1713 | |
| 1714 final bool webkitHidden; | |
| 1715 | |
| 1716 final bool webkitIsFullScreen; | |
| 1717 | |
| 1718 final _ElementJs webkitPointerLockElement; | |
| 1719 | |
| 1720 final String webkitVisibilityState; | |
| 1721 | |
| 1722 final String xmlEncoding; | |
| 1723 | |
| 1724 bool xmlStandalone; | |
| 1725 | |
| 1726 String xmlVersion; | |
| 1727 | |
| 1728 _NodeJs adoptNode(_NodeJs source) native; | |
| 1729 | |
| 1730 _RangeJs caretRangeFromPoint(int x, int y) native; | |
| 1731 | |
| 1732 _AttrJs createAttribute(String name) native; | |
| 1733 | |
| 1734 _AttrJs createAttributeNS(String namespaceURI, String qualifiedName) native; | |
| 1735 | |
| 1736 _CDATASectionJs createCDATASection(String data) native; | |
| 1737 | |
| 1738 _CommentJs createComment(String data) native; | |
| 1739 | |
| 1740 _DocumentFragmentJs createDocumentFragment() native; | |
| 1741 | |
| 1742 _ElementJs createElement(String tagName) native; | |
| 1743 | |
| 1744 _ElementJs createElementNS(String namespaceURI, String qualifiedName) native; | |
| 1745 | |
| 1746 _EntityReferenceJs createEntityReference(String name) native; | |
| 1747 | |
| 1748 _EventJs createEvent(String eventType) native; | |
| 1749 | |
| 1750 _XPathExpressionJs createExpression(String expression, _XPathNSResolverJs reso
lver) native; | |
| 1751 | |
| 1752 _XPathNSResolverJs createNSResolver(_NodeJs nodeResolver) native; | |
| 1753 | |
| 1754 _NodeIteratorJs createNodeIterator(_NodeJs root, int whatToShow, _NodeFilterJs
filter, bool expandEntityReferences) native; | |
| 1755 | |
| 1756 _ProcessingInstructionJs createProcessingInstruction(String target, String dat
a) native; | |
| 1757 | |
| 1758 _RangeJs createRange() native; | |
| 1759 | |
| 1760 _TextJs createTextNode(String data) native; | |
| 1761 | |
| 1762 _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; | |
| 1763 | |
| 1764 _TouchListJs createTouchList() native; | |
| 1765 | |
| 1766 _TreeWalkerJs createTreeWalker(_NodeJs root, int whatToShow, _NodeFilterJs fil
ter, bool expandEntityReferences) native; | |
| 1767 | |
| 1768 _ElementJs elementFromPoint(int x, int y) native; | |
| 1769 | |
| 1770 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv
erJs resolver, int type, _XPathResultJs inResult) native; | |
| 1771 | |
| 1772 bool execCommand(String command, bool userInterface, String value) native; | |
| 1773 | |
| 1774 _CanvasRenderingContextJs getCSSCanvasContext(String contextId, String name, i
nt width, int height) native; | |
| 1775 | |
| 1776 _ElementJs getElementById(String elementId) native; | |
| 1777 | |
| 1778 _NodeListJs getElementsByClassName(String tagname) native; | |
| 1779 | |
| 1780 _NodeListJs getElementsByName(String elementName) native; | |
| 1781 | |
| 1782 _NodeListJs getElementsByTagName(String tagname) native; | |
| 1783 | |
| 1784 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | |
| 1785 | |
| 1786 _CSSStyleDeclarationJs getOverrideStyle(_ElementJs element, String pseudoEleme
nt) native; | |
| 1787 | |
| 1788 _DOMSelectionJs getSelection() native; | |
| 1789 | |
| 1790 _NodeJs importNode(_NodeJs importedNode, [bool deep]) native; | |
| 1791 | |
| 1792 bool queryCommandEnabled(String command) native; | |
| 1793 | |
| 1794 bool queryCommandIndeterm(String command) native; | |
| 1795 | |
| 1796 bool queryCommandState(String command) native; | |
| 1797 | |
| 1798 bool queryCommandSupported(String command) native; | |
| 1799 | |
| 1800 String queryCommandValue(String command) native; | |
| 1801 | |
| 1802 _ElementJs querySelector(String selectors) native; | |
| 1803 | |
| 1804 _NodeListJs querySelectorAll(String selectors) native; | |
| 1805 | |
| 1806 void webkitCancelFullScreen() native; | |
| 1807 | |
| 1808 void webkitExitFullscreen() native; | |
| 1809 | |
| 1810 void webkitExitPointerLock() native; | |
| 1811 } | |
| 1812 | |
| 1813 class _DocumentFragmentJs extends _NodeJs implements DocumentFragment native "*D
ocumentFragment" { | |
| 1814 | |
| 1815 _ElementJs querySelector(String selectors) native; | |
| 1816 | |
| 1817 _NodeListJs querySelectorAll(String selectors) native; | |
| 1818 } | |
| 1819 | |
| 1820 class _DocumentTypeJs extends _NodeJs implements DocumentType native "*DocumentT
ype" { | |
| 1821 | |
| 1822 final _NamedNodeMapJs entities; | |
| 1823 | |
| 1824 final String internalSubset; | |
| 1825 | |
| 1826 final String name; | |
| 1827 | |
| 1828 final _NamedNodeMapJs notations; | |
| 1829 | |
| 1830 final String publicId; | |
| 1831 | |
| 1832 final String systemId; | |
| 1833 } | |
| 1834 | |
| 1835 class _DynamicsCompressorNodeJs extends _AudioNodeJs implements DynamicsCompress
orNode native "*DynamicsCompressorNode" { | |
| 1836 | |
| 1837 final _AudioParamJs attack; | |
| 1838 | |
| 1839 final _AudioParamJs knee; | |
| 1840 | |
| 1841 final _AudioParamJs ratio; | |
| 1842 | |
| 1843 final _AudioParamJs reduction; | |
| 1844 | |
| 1845 final _AudioParamJs release; | |
| 1846 | |
| 1847 final _AudioParamJs threshold; | |
| 1848 } | |
| 1849 | |
| 1850 class _EXTTextureFilterAnisotropicJs extends _DOMTypeJs implements EXTTextureFil
terAnisotropic native "*EXTTextureFilterAnisotropic" { | |
| 1851 | |
| 1852 static final int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; | |
| 1853 | |
| 1854 static final int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; | |
| 1855 } | |
| 1856 | |
| 1857 class _ElementJs extends _NodeJs implements Element native "*Element" { | |
| 1858 | |
| 1859 static final int ALLOW_KEYBOARD_INPUT = 1; | |
| 1860 | |
| 1861 final int childElementCount; | |
| 1862 | |
| 1863 final int clientHeight; | |
| 1864 | |
| 1865 final int clientLeft; | |
| 1866 | |
| 1867 final int clientTop; | |
| 1868 | |
| 1869 final int clientWidth; | |
| 1870 | |
| 1871 final Map<String, String> dataset; | |
| 1872 | |
| 1873 final _ElementJs firstElementChild; | |
| 1874 | |
| 1875 final _ElementJs lastElementChild; | |
| 1876 | |
| 1877 final _ElementJs nextElementSibling; | |
| 1878 | |
| 1879 final int offsetHeight; | |
| 1880 | |
| 1881 final int offsetLeft; | |
| 1882 | |
| 1883 final _ElementJs offsetParent; | |
| 1884 | |
| 1885 final int offsetTop; | |
| 1886 | |
| 1887 final int offsetWidth; | |
| 1888 | |
| 1889 final _ElementJs previousElementSibling; | |
| 1890 | |
| 1891 final int scrollHeight; | |
| 1892 | |
| 1893 int scrollLeft; | |
| 1894 | |
| 1895 int scrollTop; | |
| 1896 | |
| 1897 final int scrollWidth; | |
| 1898 | |
| 1899 final _CSSStyleDeclarationJs style; | |
| 1900 | |
| 1901 final String tagName; | |
| 1902 | |
| 1903 final String webkitRegionOverflow; | |
| 1904 | |
| 1905 void blur() native; | |
| 1906 | |
| 1907 void focus() native; | |
| 1908 | |
| 1909 String getAttribute(String name) native; | |
| 1910 | |
| 1911 String getAttributeNS(String namespaceURI, String localName) native; | |
| 1912 | |
| 1913 _AttrJs getAttributeNode(String name) native; | |
| 1914 | |
| 1915 _AttrJs getAttributeNodeNS(String namespaceURI, String localName) native; | |
| 1916 | |
| 1917 _ClientRectJs getBoundingClientRect() native; | |
| 1918 | |
| 1919 _ClientRectListJs getClientRects() native; | |
| 1920 | |
| 1921 _NodeListJs getElementsByClassName(String name) native; | |
| 1922 | |
| 1923 _NodeListJs getElementsByTagName(String name) native; | |
| 1924 | |
| 1925 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | |
| 1926 | |
| 1927 bool hasAttribute(String name) native; | |
| 1928 | |
| 1929 bool hasAttributeNS(String namespaceURI, String localName) native; | |
| 1930 | |
| 1931 _ElementJs querySelector(String selectors) native; | |
| 1932 | |
| 1933 _NodeListJs querySelectorAll(String selectors) native; | |
| 1934 | |
| 1935 void removeAttribute(String name) native; | |
| 1936 | |
| 1937 void removeAttributeNS(String namespaceURI, String localName) native; | |
| 1938 | |
| 1939 _AttrJs removeAttributeNode(_AttrJs oldAttr) native; | |
| 1940 | |
| 1941 void scrollByLines(int lines) native; | |
| 1942 | |
| 1943 void scrollByPages(int pages) native; | |
| 1944 | |
| 1945 void scrollIntoView([bool alignWithTop]) native; | |
| 1946 | |
| 1947 void scrollIntoViewIfNeeded([bool centerIfNeeded]) native; | |
| 1948 | |
| 1949 void setAttribute(String name, String value) native; | |
| 1950 | |
| 1951 void setAttributeNS(String namespaceURI, String qualifiedName, String value) n
ative; | |
| 1952 | |
| 1953 _AttrJs setAttributeNode(_AttrJs newAttr) native; | |
| 1954 | |
| 1955 _AttrJs setAttributeNodeNS(_AttrJs newAttr) native; | |
| 1956 | |
| 1957 bool webkitMatchesSelector(String selectors) native; | |
| 1958 | |
| 1959 void webkitRequestFullScreen(int flags) native; | |
| 1960 | |
| 1961 void webkitRequestFullscreen() native; | |
| 1962 | |
| 1963 void webkitRequestPointerLock() native; | |
| 1964 } | |
| 1965 | |
| 1966 class _EntityJs extends _NodeJs implements Entity native "*Entity" { | |
| 1967 | |
| 1968 final String notationName; | |
| 1969 | |
| 1970 final String publicId; | |
| 1971 | |
| 1972 final String systemId; | |
| 1973 } | |
| 1974 | |
| 1975 class _EntityReferenceJs extends _NodeJs implements EntityReference native "*Ent
ityReference" { | |
| 1976 } | |
| 1977 | |
| 1978 class _EntryJs extends _DOMTypeJs implements Entry native "*Entry" { | |
| 1979 | |
| 1980 final _DOMFileSystemJs filesystem; | |
| 1981 | |
| 1982 final String fullPath; | |
| 1983 | |
| 1984 final bool isDirectory; | |
| 1985 | |
| 1986 final bool isFile; | |
| 1987 | |
| 1988 final String name; | |
| 1989 | |
| 1990 void copyTo(_DirectoryEntryJs parent, [String name, EntryCallback successCallb
ack, ErrorCallback errorCallback]) native; | |
| 1991 | |
| 1992 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k]) native; | |
| 1993 | |
| 1994 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) n
ative; | |
| 1995 | |
| 1996 void moveTo(_DirectoryEntryJs parent, [String name, EntryCallback successCallb
ack, ErrorCallback errorCallback]) native; | |
| 1997 | |
| 1998 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) nativ
e; | |
| 1999 | |
| 2000 String toURL() native; | |
| 2001 } | |
| 2002 | |
| 2003 class _EntryArrayJs extends _DOMTypeJs implements EntryArray native "*EntryArray
" { | |
| 2004 | |
| 2005 final int length; | |
| 2006 | |
| 2007 _EntryJs item(int index) native; | |
| 2008 } | |
| 2009 | |
| 2010 class _EntryArraySyncJs extends _DOMTypeJs implements EntryArraySync native "*En
tryArraySync" { | |
| 2011 | |
| 2012 final int length; | |
| 2013 | |
| 2014 _EntrySyncJs item(int index) native; | |
| 2015 } | |
| 2016 | |
| 2017 class _EntrySyncJs extends _DOMTypeJs implements EntrySync native "*EntrySync" { | |
| 2018 | |
| 2019 final _DOMFileSystemSyncJs filesystem; | |
| 2020 | |
| 2021 final String fullPath; | |
| 2022 | |
| 2023 final bool isDirectory; | |
| 2024 | |
| 2025 final bool isFile; | |
| 2026 | |
| 2027 final String name; | |
| 2028 | |
| 2029 _EntrySyncJs copyTo(_DirectoryEntrySyncJs parent, String name) native; | |
| 2030 | |
| 2031 _MetadataJs getMetadata() native; | |
| 2032 | |
| 2033 _EntrySyncJs getParent() native; | |
| 2034 | |
| 2035 _EntrySyncJs moveTo(_DirectoryEntrySyncJs parent, String name) native; | |
| 2036 | |
| 2037 void remove() native; | |
| 2038 | |
| 2039 String toURL() native; | |
| 2040 } | |
| 2041 | |
| 2042 class _ErrorEventJs extends _EventJs implements ErrorEvent native "*ErrorEvent"
{ | |
| 2043 | |
| 2044 final String filename; | |
| 2045 | |
| 2046 final int lineno; | |
| 2047 | |
| 2048 final String message; | |
| 2049 } | |
| 2050 | |
| 2051 class _EventJs extends _DOMTypeJs implements Event native "*Event" { | |
| 2052 | |
| 2053 static final int AT_TARGET = 2; | |
| 2054 | |
| 2055 static final int BLUR = 8192; | |
| 2056 | |
| 2057 static final int BUBBLING_PHASE = 3; | |
| 2058 | |
| 2059 static final int CAPTURING_PHASE = 1; | |
| 2060 | |
| 2061 static final int CHANGE = 32768; | |
| 2062 | |
| 2063 static final int CLICK = 64; | |
| 2064 | |
| 2065 static final int DBLCLICK = 128; | |
| 2066 | |
| 2067 static final int DRAGDROP = 2048; | |
| 2068 | |
| 2069 static final int FOCUS = 4096; | |
| 2070 | |
| 2071 static final int KEYDOWN = 256; | |
| 2072 | |
| 2073 static final int KEYPRESS = 1024; | |
| 2074 | |
| 2075 static final int KEYUP = 512; | |
| 2076 | |
| 2077 static final int MOUSEDOWN = 1; | |
| 2078 | |
| 2079 static final int MOUSEDRAG = 32; | |
| 2080 | |
| 2081 static final int MOUSEMOVE = 16; | |
| 2082 | |
| 2083 static final int MOUSEOUT = 8; | |
| 2084 | |
| 2085 static final int MOUSEOVER = 4; | |
| 2086 | |
| 2087 static final int MOUSEUP = 2; | |
| 2088 | |
| 2089 static final int NONE = 0; | |
| 2090 | |
| 2091 static final int SELECT = 16384; | |
| 2092 | |
| 2093 final bool bubbles; | |
| 2094 | |
| 2095 bool cancelBubble; | |
| 2096 | |
| 2097 final bool cancelable; | |
| 2098 | |
| 2099 final _ClipboardJs clipboardData; | |
| 2100 | |
| 2101 final _EventTargetJs currentTarget; | |
| 2102 | |
| 2103 final bool defaultPrevented; | |
| 2104 | |
| 2105 final int eventPhase; | |
| 2106 | |
| 2107 bool returnValue; | |
| 2108 | |
| 2109 final _EventTargetJs srcElement; | |
| 2110 | |
| 2111 final _EventTargetJs target; | |
| 2112 | |
| 2113 final int timeStamp; | |
| 2114 | |
| 2115 final String type; | |
| 2116 | |
| 2117 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) nat
ive; | |
| 2118 | |
| 2119 void preventDefault() native; | |
| 2120 | |
| 2121 void stopImmediatePropagation() native; | |
| 2122 | |
| 2123 void stopPropagation() native; | |
| 2124 } | |
| 2125 | |
| 2126 class _EventExceptionJs extends _DOMTypeJs implements EventException native "*Ev
entException" { | |
| 2127 | |
| 2128 static final int DISPATCH_REQUEST_ERR = 1; | |
| 2129 | |
| 2130 static final int UNSPECIFIED_EVENT_TYPE_ERR = 0; | |
| 2131 | |
| 2132 final int code; | |
| 2133 | |
| 2134 final String message; | |
| 2135 | |
| 2136 final String name; | |
| 2137 | |
| 2138 String toString() native; | |
| 2139 } | |
| 2140 | |
| 2141 class _EventSourceJs extends _EventTargetJs implements EventSource native "*Even
tSource" { | |
| 2142 | |
| 2143 static final int CLOSED = 2; | |
| 2144 | |
| 2145 static final int CONNECTING = 0; | |
| 2146 | |
| 2147 static final int OPEN = 1; | |
| 2148 | |
| 2149 final String URL; | |
| 2150 | |
| 2151 final int readyState; | |
| 2152 | |
| 2153 final String url; | |
| 2154 | |
| 2155 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 2156 | |
| 2157 void close() native; | |
| 2158 | |
| 2159 bool dispatchEvent(_EventJs evt) native; | |
| 2160 | |
| 2161 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 2162 } | |
| 2163 | |
| 2164 class _EventTargetJs extends _DOMTypeJs implements EventTarget native "*EventTar
get" { | |
| 2165 | |
| 2166 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 2167 | |
| 2168 bool dispatchEvent(_EventJs event) native; | |
| 2169 | |
| 2170 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 2171 } | |
| 2172 | |
| 2173 class _FileJs extends _BlobJs implements File native "*File" { | |
| 2174 | |
| 2175 final Date lastModifiedDate; | |
| 2176 | |
| 2177 final String name; | |
| 2178 | |
| 2179 final String webkitRelativePath; | |
| 2180 } | |
| 2181 | |
| 2182 class _FileEntryJs extends _EntryJs implements FileEntry native "*FileEntry" { | |
| 2183 | |
| 2184 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back]) native; | |
| 2185 | |
| 2186 void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; | |
| 2187 } | |
| 2188 | |
| 2189 class _FileEntrySyncJs extends _EntrySyncJs implements FileEntrySync native "*Fi
leEntrySync" { | |
| 2190 | |
| 2191 _FileWriterSyncJs createWriter() native; | |
| 2192 | |
| 2193 _FileJs file() native; | |
| 2194 } | |
| 2195 | |
| 2196 class _FileErrorJs extends _DOMTypeJs implements FileError native "*FileError" { | |
| 2197 | |
| 2198 static final int ABORT_ERR = 3; | |
| 2199 | |
| 2200 static final int ENCODING_ERR = 5; | |
| 2201 | |
| 2202 static final int INVALID_MODIFICATION_ERR = 9; | |
| 2203 | |
| 2204 static final int INVALID_STATE_ERR = 7; | |
| 2205 | |
| 2206 static final int NOT_FOUND_ERR = 1; | |
| 2207 | |
| 2208 static final int NOT_READABLE_ERR = 4; | |
| 2209 | |
| 2210 static final int NO_MODIFICATION_ALLOWED_ERR = 6; | |
| 2211 | |
| 2212 static final int PATH_EXISTS_ERR = 12; | |
| 2213 | |
| 2214 static final int QUOTA_EXCEEDED_ERR = 10; | |
| 2215 | |
| 2216 static final int SECURITY_ERR = 2; | |
| 2217 | |
| 2218 static final int SYNTAX_ERR = 8; | |
| 2219 | |
| 2220 static final int TYPE_MISMATCH_ERR = 11; | |
| 2221 | |
| 2222 final int code; | |
| 2223 } | |
| 2224 | |
| 2225 class _FileExceptionJs extends _DOMTypeJs implements FileException native "*File
Exception" { | |
| 2226 | |
| 2227 static final int ABORT_ERR = 3; | |
| 2228 | |
| 2229 static final int ENCODING_ERR = 5; | |
| 2230 | |
| 2231 static final int INVALID_MODIFICATION_ERR = 9; | |
| 2232 | |
| 2233 static final int INVALID_STATE_ERR = 7; | |
| 2234 | |
| 2235 static final int NOT_FOUND_ERR = 1; | |
| 2236 | |
| 2237 static final int NOT_READABLE_ERR = 4; | |
| 2238 | |
| 2239 static final int NO_MODIFICATION_ALLOWED_ERR = 6; | |
| 2240 | |
| 2241 static final int PATH_EXISTS_ERR = 12; | |
| 2242 | |
| 2243 static final int QUOTA_EXCEEDED_ERR = 10; | |
| 2244 | |
| 2245 static final int SECURITY_ERR = 2; | |
| 2246 | |
| 2247 static final int SYNTAX_ERR = 8; | |
| 2248 | |
| 2249 static final int TYPE_MISMATCH_ERR = 11; | |
| 2250 | |
| 2251 final int code; | |
| 2252 | |
| 2253 final String message; | |
| 2254 | |
| 2255 final String name; | |
| 2256 | |
| 2257 String toString() native; | |
| 2258 } | |
| 2259 | |
| 2260 class _FileListJs extends _DOMTypeJs implements FileList native "*FileList" { | |
| 2261 | |
| 2262 final int length; | |
| 2263 | |
| 2264 _FileJs operator[](int index) native "return this[index];"; | |
| 2265 | |
| 2266 void operator[]=(int index, _FileJs value) { | |
| 2267 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 2268 } | |
| 2269 // -- start List<File> mixins. | |
| 2270 // File is the element type. | |
| 2271 | |
| 2272 // From Iterable<File>: | |
| 2273 | |
| 2274 Iterator<File> iterator() { | |
| 2275 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 2276 // be cached in both iterator _and_ forEach method. For now caching it | |
| 2277 // for consistency. | |
| 2278 return new _FixedSizeListIterator<File>(this); | |
| 2279 } | |
| 2280 | |
| 2281 // From Collection<File>: | |
| 2282 | |
| 2283 void add(File value) { | |
| 2284 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2285 } | |
| 2286 | |
| 2287 void addLast(File value) { | |
| 2288 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2289 } | |
| 2290 | |
| 2291 void addAll(Collection<File> collection) { | |
| 2292 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2293 } | |
| 2294 | |
| 2295 void forEach(void f(File element)) => _Collections.forEach(this, f); | |
| 2296 | |
| 2297 Collection map(f(File element)) => _Collections.map(this, [], f); | |
| 2298 | |
| 2299 Collection<File> filter(bool f(File element)) => | |
| 2300 _Collections.filter(this, <File>[], f); | |
| 2301 | |
| 2302 bool every(bool f(File element)) => _Collections.every(this, f); | |
| 2303 | |
| 2304 bool some(bool f(File element)) => _Collections.some(this, f); | |
| 2305 | |
| 2306 bool isEmpty() => this.length == 0; | |
| 2307 | |
| 2308 // From List<File>: | |
| 2309 | |
| 2310 void sort(int compare(File a, File b)) { | |
| 2311 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 2312 } | |
| 2313 | |
| 2314 int indexOf(File element, [int start = 0]) => | |
| 2315 _Lists.indexOf(this, element, start, this.length); | |
| 2316 | |
| 2317 int lastIndexOf(File element, [int start]) { | |
| 2318 if (start === null) start = length - 1; | |
| 2319 return _Lists.lastIndexOf(this, element, start); | |
| 2320 } | |
| 2321 | |
| 2322 File last() => this[length - 1]; | |
| 2323 | |
| 2324 File removeLast() { | |
| 2325 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 2326 } | |
| 2327 | |
| 2328 // FIXME: implement these. | |
| 2329 void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { | |
| 2330 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 2331 } | |
| 2332 | |
| 2333 void removeRange(int start, int rangeLength) { | |
| 2334 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 2335 } | |
| 2336 | |
| 2337 void insertRange(int start, int rangeLength, [File initialValue]) { | |
| 2338 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 2339 } | |
| 2340 | |
| 2341 List<File> getRange(int start, int rangeLength) => | |
| 2342 _Lists.getRange(this, start, rangeLength, <File>[]); | |
| 2343 | |
| 2344 // -- end List<File> mixins. | |
| 2345 | |
| 2346 _FileJs item(int index) native; | |
| 2347 } | |
| 2348 | |
| 2349 class _FileReaderJs extends _EventTargetJs implements FileReader native "*FileRe
ader" { | |
| 2350 | |
| 2351 static final int DONE = 2; | |
| 2352 | |
| 2353 static final int EMPTY = 0; | |
| 2354 | |
| 2355 static final int LOADING = 1; | |
| 2356 | |
| 2357 final _FileErrorJs error; | |
| 2358 | |
| 2359 final int readyState; | |
| 2360 | |
| 2361 final Object result; | |
| 2362 | |
| 2363 void abort() native; | |
| 2364 | |
| 2365 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 2366 | |
| 2367 bool dispatchEvent(_EventJs evt) native; | |
| 2368 | |
| 2369 void readAsArrayBuffer(_BlobJs blob) native; | |
| 2370 | |
| 2371 void readAsBinaryString(_BlobJs blob) native; | |
| 2372 | |
| 2373 void readAsDataURL(_BlobJs blob) native; | |
| 2374 | |
| 2375 void readAsText(_BlobJs blob, [String encoding]) native; | |
| 2376 | |
| 2377 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 2378 } | |
| 2379 | |
| 2380 class _FileReaderSyncJs extends _DOMTypeJs implements FileReaderSync native "*Fi
leReaderSync" { | |
| 2381 | |
| 2382 _ArrayBufferJs readAsArrayBuffer(_BlobJs blob) native; | |
| 2383 | |
| 2384 String readAsBinaryString(_BlobJs blob) native; | |
| 2385 | |
| 2386 String readAsDataURL(_BlobJs blob) native; | |
| 2387 | |
| 2388 String readAsText(_BlobJs blob, [String encoding]) native; | |
| 2389 } | |
| 2390 | |
| 2391 class _FileWriterJs extends _EventTargetJs implements FileWriter native "*FileWr
iter" { | |
| 2392 | |
| 2393 static final int DONE = 2; | |
| 2394 | |
| 2395 static final int INIT = 0; | |
| 2396 | |
| 2397 static final int WRITING = 1; | |
| 2398 | |
| 2399 final _FileErrorJs error; | |
| 2400 | |
| 2401 final int length; | |
| 2402 | |
| 2403 final int position; | |
| 2404 | |
| 2405 final int readyState; | |
| 2406 | |
| 2407 void abort() native; | |
| 2408 | |
| 2409 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 2410 | |
| 2411 bool dispatchEvent(_EventJs evt) native; | |
| 2412 | |
| 2413 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 2414 | |
| 2415 void seek(int position) native; | |
| 2416 | |
| 2417 void truncate(int size) native; | |
| 2418 | |
| 2419 void write(_BlobJs data) native; | |
| 2420 } | |
| 2421 | |
| 2422 class _FileWriterSyncJs extends _DOMTypeJs implements FileWriterSync native "*Fi
leWriterSync" { | |
| 2423 | |
| 2424 final int length; | |
| 2425 | |
| 2426 final int position; | |
| 2427 | |
| 2428 void seek(int position) native; | |
| 2429 | |
| 2430 void truncate(int size) native; | |
| 2431 | |
| 2432 void write(_BlobJs data) native; | |
| 2433 } | |
| 2434 | |
| 2435 class _Float32ArrayJs extends _ArrayBufferViewJs implements Float32Array, List<n
um> native "*Float32Array" { | |
| 2436 | |
| 2437 static final int BYTES_PER_ELEMENT = 4; | |
| 2438 | |
| 2439 final int length; | |
| 2440 | |
| 2441 num operator[](int index) native "return this[index];"; | |
| 2442 | |
| 2443 void operator[]=(int index, num value) native "this[index] = value"; | |
| 2444 // -- start List<num> mixins. | |
| 2445 // num is the element type. | |
| 2446 | |
| 2447 // From Iterable<num>: | |
| 2448 | |
| 2449 Iterator<num> iterator() { | |
| 2450 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 2451 // be cached in both iterator _and_ forEach method. For now caching it | |
| 2452 // for consistency. | |
| 2453 return new _FixedSizeListIterator<num>(this); | |
| 2454 } | |
| 2455 | |
| 2456 // From Collection<num>: | |
| 2457 | |
| 2458 void add(num value) { | |
| 2459 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2460 } | |
| 2461 | |
| 2462 void addLast(num value) { | |
| 2463 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2464 } | |
| 2465 | |
| 2466 void addAll(Collection<num> collection) { | |
| 2467 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2468 } | |
| 2469 | |
| 2470 void forEach(void f(num element)) => _Collections.forEach(this, f); | |
| 2471 | |
| 2472 Collection map(f(num element)) => _Collections.map(this, [], f); | |
| 2473 | |
| 2474 Collection<num> filter(bool f(num element)) => | |
| 2475 _Collections.filter(this, <num>[], f); | |
| 2476 | |
| 2477 bool every(bool f(num element)) => _Collections.every(this, f); | |
| 2478 | |
| 2479 bool some(bool f(num element)) => _Collections.some(this, f); | |
| 2480 | |
| 2481 bool isEmpty() => this.length == 0; | |
| 2482 | |
| 2483 // From List<num>: | |
| 2484 | |
| 2485 void sort(int compare(num a, num b)) { | |
| 2486 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 2487 } | |
| 2488 | |
| 2489 int indexOf(num element, [int start = 0]) => | |
| 2490 _Lists.indexOf(this, element, start, this.length); | |
| 2491 | |
| 2492 int lastIndexOf(num element, [int start]) { | |
| 2493 if (start === null) start = length - 1; | |
| 2494 return _Lists.lastIndexOf(this, element, start); | |
| 2495 } | |
| 2496 | |
| 2497 num last() => this[length - 1]; | |
| 2498 | |
| 2499 num removeLast() { | |
| 2500 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 2501 } | |
| 2502 | |
| 2503 // FIXME: implement these. | |
| 2504 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { | |
| 2505 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 2506 } | |
| 2507 | |
| 2508 void removeRange(int start, int rangeLength) { | |
| 2509 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 2510 } | |
| 2511 | |
| 2512 void insertRange(int start, int rangeLength, [num initialValue]) { | |
| 2513 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 2514 } | |
| 2515 | |
| 2516 List<num> getRange(int start, int rangeLength) => | |
| 2517 _Lists.getRange(this, start, rangeLength, <num>[]); | |
| 2518 | |
| 2519 // -- end List<num> mixins. | |
| 2520 | |
| 2521 void setElements(Object array, [int offset]) native 'set'; | |
| 2522 | |
| 2523 _Float32ArrayJs subarray(int start, [int end]) native; | |
| 2524 } | |
| 2525 | |
| 2526 class _Float64ArrayJs extends _ArrayBufferViewJs implements Float64Array, List<n
um> native "*Float64Array" { | |
| 2527 | |
| 2528 static final int BYTES_PER_ELEMENT = 8; | |
| 2529 | |
| 2530 final int length; | |
| 2531 | |
| 2532 num operator[](int index) native "return this[index];"; | |
| 2533 | |
| 2534 void operator[]=(int index, num value) native "this[index] = value"; | |
| 2535 // -- start List<num> mixins. | |
| 2536 // num is the element type. | |
| 2537 | |
| 2538 // From Iterable<num>: | |
| 2539 | |
| 2540 Iterator<num> iterator() { | |
| 2541 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 2542 // be cached in both iterator _and_ forEach method. For now caching it | |
| 2543 // for consistency. | |
| 2544 return new _FixedSizeListIterator<num>(this); | |
| 2545 } | |
| 2546 | |
| 2547 // From Collection<num>: | |
| 2548 | |
| 2549 void add(num value) { | |
| 2550 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2551 } | |
| 2552 | |
| 2553 void addLast(num value) { | |
| 2554 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2555 } | |
| 2556 | |
| 2557 void addAll(Collection<num> collection) { | |
| 2558 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2559 } | |
| 2560 | |
| 2561 void forEach(void f(num element)) => _Collections.forEach(this, f); | |
| 2562 | |
| 2563 Collection map(f(num element)) => _Collections.map(this, [], f); | |
| 2564 | |
| 2565 Collection<num> filter(bool f(num element)) => | |
| 2566 _Collections.filter(this, <num>[], f); | |
| 2567 | |
| 2568 bool every(bool f(num element)) => _Collections.every(this, f); | |
| 2569 | |
| 2570 bool some(bool f(num element)) => _Collections.some(this, f); | |
| 2571 | |
| 2572 bool isEmpty() => this.length == 0; | |
| 2573 | |
| 2574 // From List<num>: | |
| 2575 | |
| 2576 void sort(int compare(num a, num b)) { | |
| 2577 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 2578 } | |
| 2579 | |
| 2580 int indexOf(num element, [int start = 0]) => | |
| 2581 _Lists.indexOf(this, element, start, this.length); | |
| 2582 | |
| 2583 int lastIndexOf(num element, [int start]) { | |
| 2584 if (start === null) start = length - 1; | |
| 2585 return _Lists.lastIndexOf(this, element, start); | |
| 2586 } | |
| 2587 | |
| 2588 num last() => this[length - 1]; | |
| 2589 | |
| 2590 num removeLast() { | |
| 2591 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 2592 } | |
| 2593 | |
| 2594 // FIXME: implement these. | |
| 2595 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { | |
| 2596 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 2597 } | |
| 2598 | |
| 2599 void removeRange(int start, int rangeLength) { | |
| 2600 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 2601 } | |
| 2602 | |
| 2603 void insertRange(int start, int rangeLength, [num initialValue]) { | |
| 2604 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 2605 } | |
| 2606 | |
| 2607 List<num> getRange(int start, int rangeLength) => | |
| 2608 _Lists.getRange(this, start, rangeLength, <num>[]); | |
| 2609 | |
| 2610 // -- end List<num> mixins. | |
| 2611 | |
| 2612 void setElements(Object array, [int offset]) native 'set'; | |
| 2613 | |
| 2614 _Float64ArrayJs subarray(int start, [int end]) native; | |
| 2615 } | |
| 2616 | |
| 2617 class _GamepadJs extends _DOMTypeJs implements Gamepad native "*Gamepad" { | |
| 2618 | |
| 2619 final List<num> axes; | |
| 2620 | |
| 2621 final List<num> buttons; | |
| 2622 | |
| 2623 final String id; | |
| 2624 | |
| 2625 final int index; | |
| 2626 | |
| 2627 final int timestamp; | |
| 2628 } | |
| 2629 | |
| 2630 class _GamepadListJs extends _DOMTypeJs implements GamepadList native "*GamepadL
ist" { | |
| 2631 | |
| 2632 final int length; | |
| 2633 | |
| 2634 _GamepadJs item(int index) native; | |
| 2635 } | |
| 2636 | |
| 2637 class _GeolocationJs extends _DOMTypeJs implements Geolocation native "*Geolocat
ion" { | |
| 2638 | |
| 2639 void clearWatch(int watchId) native; | |
| 2640 | |
| 2641 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]) native; | |
| 2642 | |
| 2643 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]) native; | |
| 2644 } | |
| 2645 | |
| 2646 class _GeopositionJs extends _DOMTypeJs implements Geoposition native "*Geoposit
ion" { | |
| 2647 | |
| 2648 final _CoordinatesJs coords; | |
| 2649 | |
| 2650 final int timestamp; | |
| 2651 } | |
| 2652 | |
| 2653 class _HTMLAllCollectionJs extends _DOMTypeJs implements HTMLAllCollection nativ
e "*HTMLAllCollection" { | |
| 2654 | |
| 2655 final int length; | |
| 2656 | |
| 2657 _NodeJs item(int index) native; | |
| 2658 | |
| 2659 _NodeJs namedItem(String name) native; | |
| 2660 | |
| 2661 _NodeListJs tags(String name) native; | |
| 2662 } | |
| 2663 | |
| 2664 class _HTMLAnchorElementJs extends _HTMLElementJs implements HTMLAnchorElement n
ative "*HTMLAnchorElement" { | |
| 2665 | |
| 2666 String charset; | |
| 2667 | |
| 2668 String coords; | |
| 2669 | |
| 2670 String download; | |
| 2671 | |
| 2672 String hash; | |
| 2673 | |
| 2674 String host; | |
| 2675 | |
| 2676 String hostname; | |
| 2677 | |
| 2678 String href; | |
| 2679 | |
| 2680 String hreflang; | |
| 2681 | |
| 2682 String name; | |
| 2683 | |
| 2684 final String origin; | |
| 2685 | |
| 2686 String pathname; | |
| 2687 | |
| 2688 String ping; | |
| 2689 | |
| 2690 String port; | |
| 2691 | |
| 2692 String protocol; | |
| 2693 | |
| 2694 String rel; | |
| 2695 | |
| 2696 String rev; | |
| 2697 | |
| 2698 String search; | |
| 2699 | |
| 2700 String shape; | |
| 2701 | |
| 2702 String target; | |
| 2703 | |
| 2704 final String text; | |
| 2705 | |
| 2706 String type; | |
| 2707 | |
| 2708 String toString() native; | |
| 2709 } | |
| 2710 | |
| 2711 class _HTMLAppletElementJs extends _HTMLElementJs implements HTMLAppletElement n
ative "*HTMLAppletElement" { | |
| 2712 | |
| 2713 String align; | |
| 2714 | |
| 2715 String alt; | |
| 2716 | |
| 2717 String archive; | |
| 2718 | |
| 2719 String code; | |
| 2720 | |
| 2721 String codeBase; | |
| 2722 | |
| 2723 String height; | |
| 2724 | |
| 2725 String hspace; | |
| 2726 | |
| 2727 String name; | |
| 2728 | |
| 2729 String object; | |
| 2730 | |
| 2731 String vspace; | |
| 2732 | |
| 2733 String width; | |
| 2734 } | |
| 2735 | |
| 2736 class _HTMLAreaElementJs extends _HTMLElementJs implements HTMLAreaElement nativ
e "*HTMLAreaElement" { | |
| 2737 | |
| 2738 String alt; | |
| 2739 | |
| 2740 String coords; | |
| 2741 | |
| 2742 final String hash; | |
| 2743 | |
| 2744 final String host; | |
| 2745 | |
| 2746 final String hostname; | |
| 2747 | |
| 2748 String href; | |
| 2749 | |
| 2750 bool noHref; | |
| 2751 | |
| 2752 final String pathname; | |
| 2753 | |
| 2754 String ping; | |
| 2755 | |
| 2756 final String port; | |
| 2757 | |
| 2758 final String protocol; | |
| 2759 | |
| 2760 final String search; | |
| 2761 | |
| 2762 String shape; | |
| 2763 | |
| 2764 String target; | |
| 2765 } | |
| 2766 | |
| 2767 class _HTMLAudioElementJs extends _HTMLMediaElementJs implements HTMLAudioElemen
t native "*HTMLAudioElement" { | |
| 2768 } | |
| 2769 | |
| 2770 class _HTMLBRElementJs extends _HTMLElementJs implements HTMLBRElement native "*
HTMLBRElement" { | |
| 2771 | |
| 2772 String clear; | |
| 2773 } | |
| 2774 | |
| 2775 class _HTMLBaseElementJs extends _HTMLElementJs implements HTMLBaseElement nativ
e "*HTMLBaseElement" { | |
| 2776 | |
| 2777 String href; | |
| 2778 | |
| 2779 String target; | |
| 2780 } | |
| 2781 | |
| 2782 class _HTMLBaseFontElementJs extends _HTMLElementJs implements HTMLBaseFontEleme
nt native "*HTMLBaseFontElement" { | |
| 2783 | |
| 2784 String color; | |
| 2785 | |
| 2786 String face; | |
| 2787 | |
| 2788 int size; | |
| 2789 } | |
| 2790 | |
| 2791 class _HTMLBodyElementJs extends _HTMLElementJs implements HTMLBodyElement nativ
e "*HTMLBodyElement" { | |
| 2792 | |
| 2793 String aLink; | |
| 2794 | |
| 2795 String background; | |
| 2796 | |
| 2797 String bgColor; | |
| 2798 | |
| 2799 String link; | |
| 2800 | |
| 2801 String text; | |
| 2802 | |
| 2803 String vLink; | |
| 2804 } | |
| 2805 | |
| 2806 class _HTMLButtonElementJs extends _HTMLElementJs implements HTMLButtonElement n
ative "*HTMLButtonElement" { | |
| 2807 | |
| 2808 bool autofocus; | |
| 2809 | |
| 2810 bool disabled; | |
| 2811 | |
| 2812 final _HTMLFormElementJs form; | |
| 2813 | |
| 2814 String formAction; | |
| 2815 | |
| 2816 String formEnctype; | |
| 2817 | |
| 2818 String formMethod; | |
| 2819 | |
| 2820 bool formNoValidate; | |
| 2821 | |
| 2822 String formTarget; | |
| 2823 | |
| 2824 final _NodeListJs labels; | |
| 2825 | |
| 2826 String name; | |
| 2827 | |
| 2828 String type; | |
| 2829 | |
| 2830 final String validationMessage; | |
| 2831 | |
| 2832 final _ValidityStateJs validity; | |
| 2833 | |
| 2834 String value; | |
| 2835 | |
| 2836 final bool willValidate; | |
| 2837 | |
| 2838 bool checkValidity() native; | |
| 2839 | |
| 2840 void setCustomValidity(String error) native; | |
| 2841 } | |
| 2842 | |
| 2843 class _HTMLCanvasElementJs extends _HTMLElementJs implements HTMLCanvasElement n
ative "*HTMLCanvasElement" { | |
| 2844 | |
| 2845 int height; | |
| 2846 | |
| 2847 int width; | |
| 2848 | |
| 2849 Object getContext(String contextId) native; | |
| 2850 | |
| 2851 String toDataURL(String type) native; | |
| 2852 } | |
| 2853 | |
| 2854 class _HTMLCollectionJs extends _DOMTypeJs implements HTMLCollection native "*HT
MLCollection" { | |
| 2855 | |
| 2856 final int length; | |
| 2857 | |
| 2858 _NodeJs operator[](int index) native "return this[index];"; | |
| 2859 | |
| 2860 void operator[]=(int index, _NodeJs value) { | |
| 2861 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 2862 } | |
| 2863 // -- start List<Node> mixins. | |
| 2864 // Node is the element type. | |
| 2865 | |
| 2866 // From Iterable<Node>: | |
| 2867 | |
| 2868 Iterator<Node> iterator() { | |
| 2869 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 2870 // be cached in both iterator _and_ forEach method. For now caching it | |
| 2871 // for consistency. | |
| 2872 return new _FixedSizeListIterator<Node>(this); | |
| 2873 } | |
| 2874 | |
| 2875 // From Collection<Node>: | |
| 2876 | |
| 2877 void add(Node value) { | |
| 2878 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2879 } | |
| 2880 | |
| 2881 void addLast(Node value) { | |
| 2882 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2883 } | |
| 2884 | |
| 2885 void addAll(Collection<Node> collection) { | |
| 2886 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 2887 } | |
| 2888 | |
| 2889 void forEach(void f(Node element)) => _Collections.forEach(this, f); | |
| 2890 | |
| 2891 Collection map(f(Node element)) => _Collections.map(this, [], f); | |
| 2892 | |
| 2893 Collection<Node> filter(bool f(Node element)) => | |
| 2894 _Collections.filter(this, <Node>[], f); | |
| 2895 | |
| 2896 bool every(bool f(Node element)) => _Collections.every(this, f); | |
| 2897 | |
| 2898 bool some(bool f(Node element)) => _Collections.some(this, f); | |
| 2899 | |
| 2900 bool isEmpty() => this.length == 0; | |
| 2901 | |
| 2902 // From List<Node>: | |
| 2903 | |
| 2904 void sort(int compare(Node a, Node b)) { | |
| 2905 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 2906 } | |
| 2907 | |
| 2908 int indexOf(Node element, [int start = 0]) => | |
| 2909 _Lists.indexOf(this, element, start, this.length); | |
| 2910 | |
| 2911 int lastIndexOf(Node element, [int start]) { | |
| 2912 if (start === null) start = length - 1; | |
| 2913 return _Lists.lastIndexOf(this, element, start); | |
| 2914 } | |
| 2915 | |
| 2916 Node last() => this[length - 1]; | |
| 2917 | |
| 2918 Node removeLast() { | |
| 2919 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 2920 } | |
| 2921 | |
| 2922 // FIXME: implement these. | |
| 2923 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | |
| 2924 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 2925 } | |
| 2926 | |
| 2927 void removeRange(int start, int rangeLength) { | |
| 2928 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 2929 } | |
| 2930 | |
| 2931 void insertRange(int start, int rangeLength, [Node initialValue]) { | |
| 2932 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 2933 } | |
| 2934 | |
| 2935 List<Node> getRange(int start, int rangeLength) => | |
| 2936 _Lists.getRange(this, start, rangeLength, <Node>[]); | |
| 2937 | |
| 2938 // -- end List<Node> mixins. | |
| 2939 | |
| 2940 _NodeJs item(int index) native; | |
| 2941 | |
| 2942 _NodeJs namedItem(String name) native; | |
| 2943 } | |
| 2944 | |
| 2945 class _HTMLContentElementJs extends _HTMLElementJs implements HTMLContentElement
native "*HTMLContentElement" { | |
| 2946 | |
| 2947 String select; | |
| 2948 } | |
| 2949 | |
| 2950 class _HTMLDListElementJs extends _HTMLElementJs implements HTMLDListElement nat
ive "*HTMLDListElement" { | |
| 2951 | |
| 2952 bool compact; | |
| 2953 } | |
| 2954 | |
| 2955 class _HTMLDetailsElementJs extends _HTMLElementJs implements HTMLDetailsElement
native "*HTMLDetailsElement" { | |
| 2956 | |
| 2957 bool open; | |
| 2958 } | |
| 2959 | |
| 2960 class _HTMLDirectoryElementJs extends _HTMLElementJs implements HTMLDirectoryEle
ment native "*HTMLDirectoryElement" { | |
| 2961 | |
| 2962 bool compact; | |
| 2963 } | |
| 2964 | |
| 2965 class _HTMLDivElementJs extends _HTMLElementJs implements HTMLDivElement native
"*HTMLDivElement" { | |
| 2966 | |
| 2967 String align; | |
| 2968 } | |
| 2969 | |
| 2970 class _HTMLDocumentJs extends _DocumentJs implements HTMLDocument native "*HTMLD
ocument" { | |
| 2971 | |
| 2972 final _ElementJs activeElement; | |
| 2973 | |
| 2974 String alinkColor; | |
| 2975 | |
| 2976 _HTMLAllCollectionJs all; | |
| 2977 | |
| 2978 String bgColor; | |
| 2979 | |
| 2980 // Use implementation from Document. | |
| 2981 // final String compatMode; | |
| 2982 | |
| 2983 String designMode; | |
| 2984 | |
| 2985 String dir; | |
| 2986 | |
| 2987 final _HTMLCollectionJs embeds; | |
| 2988 | |
| 2989 String fgColor; | |
| 2990 | |
| 2991 final int height; | |
| 2992 | |
| 2993 String linkColor; | |
| 2994 | |
| 2995 final _HTMLCollectionJs plugins; | |
| 2996 | |
| 2997 final _HTMLCollectionJs scripts; | |
| 2998 | |
| 2999 String vlinkColor; | |
| 3000 | |
| 3001 final int width; | |
| 3002 | |
| 3003 void captureEvents() native; | |
| 3004 | |
| 3005 void clear() native; | |
| 3006 | |
| 3007 void close() native; | |
| 3008 | |
| 3009 bool hasFocus() native; | |
| 3010 | |
| 3011 void open() native; | |
| 3012 | |
| 3013 void releaseEvents() native; | |
| 3014 | |
| 3015 void write(String text) native; | |
| 3016 | |
| 3017 void writeln(String text) native; | |
| 3018 } | |
| 3019 | |
| 3020 class _HTMLElementJs extends _ElementJs implements HTMLElement native "*HTMLElem
ent" { | |
| 3021 | |
| 3022 String accessKey; | |
| 3023 | |
| 3024 final _HTMLCollectionJs children; | |
| 3025 | |
| 3026 final _DOMTokenListJs classList; | |
| 3027 | |
| 3028 String className; | |
| 3029 | |
| 3030 String contentEditable; | |
| 3031 | |
| 3032 String dir; | |
| 3033 | |
| 3034 bool draggable; | |
| 3035 | |
| 3036 bool hidden; | |
| 3037 | |
| 3038 String id; | |
| 3039 | |
| 3040 String innerHTML; | |
| 3041 | |
| 3042 String innerText; | |
| 3043 | |
| 3044 final bool isContentEditable; | |
| 3045 | |
| 3046 String lang; | |
| 3047 | |
| 3048 String outerHTML; | |
| 3049 | |
| 3050 String outerText; | |
| 3051 | |
| 3052 bool spellcheck; | |
| 3053 | |
| 3054 int tabIndex; | |
| 3055 | |
| 3056 String title; | |
| 3057 | |
| 3058 bool translate; | |
| 3059 | |
| 3060 String webkitdropzone; | |
| 3061 | |
| 3062 void click() native; | |
| 3063 | |
| 3064 _ElementJs insertAdjacentElement(String where, _ElementJs element) native; | |
| 3065 | |
| 3066 void insertAdjacentHTML(String where, String html) native; | |
| 3067 | |
| 3068 void insertAdjacentText(String where, String text) native; | |
| 3069 } | |
| 3070 | |
| 3071 class _HTMLEmbedElementJs extends _HTMLElementJs implements HTMLEmbedElement nat
ive "*HTMLEmbedElement" { | |
| 3072 | |
| 3073 String align; | |
| 3074 | |
| 3075 String height; | |
| 3076 | |
| 3077 String name; | |
| 3078 | |
| 3079 String src; | |
| 3080 | |
| 3081 String type; | |
| 3082 | |
| 3083 String width; | |
| 3084 | |
| 3085 _SVGDocumentJs getSVGDocument() native; | |
| 3086 } | |
| 3087 | |
| 3088 class _HTMLFieldSetElementJs extends _HTMLElementJs implements HTMLFieldSetEleme
nt native "*HTMLFieldSetElement" { | |
| 3089 | |
| 3090 bool disabled; | |
| 3091 | |
| 3092 final _HTMLCollectionJs elements; | |
| 3093 | |
| 3094 final _HTMLFormElementJs form; | |
| 3095 | |
| 3096 String name; | |
| 3097 | |
| 3098 final String type; | |
| 3099 | |
| 3100 final String validationMessage; | |
| 3101 | |
| 3102 final _ValidityStateJs validity; | |
| 3103 | |
| 3104 final bool willValidate; | |
| 3105 | |
| 3106 bool checkValidity() native; | |
| 3107 | |
| 3108 void setCustomValidity(String error) native; | |
| 3109 } | |
| 3110 | |
| 3111 class _HTMLFontElementJs extends _HTMLElementJs implements HTMLFontElement nativ
e "*HTMLFontElement" { | |
| 3112 | |
| 3113 String color; | |
| 3114 | |
| 3115 String face; | |
| 3116 | |
| 3117 String size; | |
| 3118 } | |
| 3119 | |
| 3120 class _HTMLFormElementJs extends _HTMLElementJs implements HTMLFormElement nativ
e "*HTMLFormElement" { | |
| 3121 | |
| 3122 String acceptCharset; | |
| 3123 | |
| 3124 String action; | |
| 3125 | |
| 3126 String autocomplete; | |
| 3127 | |
| 3128 final _HTMLCollectionJs elements; | |
| 3129 | |
| 3130 String encoding; | |
| 3131 | |
| 3132 String enctype; | |
| 3133 | |
| 3134 final int length; | |
| 3135 | |
| 3136 String method; | |
| 3137 | |
| 3138 String name; | |
| 3139 | |
| 3140 bool noValidate; | |
| 3141 | |
| 3142 String target; | |
| 3143 | |
| 3144 bool checkValidity() native; | |
| 3145 | |
| 3146 void reset() native; | |
| 3147 | |
| 3148 void submit() native; | |
| 3149 } | |
| 3150 | |
| 3151 class _HTMLFrameElementJs extends _HTMLElementJs implements HTMLFrameElement nat
ive "*HTMLFrameElement" { | |
| 3152 | |
| 3153 final _DocumentJs contentDocument; | |
| 3154 | |
| 3155 final _DOMWindowJs contentWindow; | |
| 3156 | |
| 3157 String frameBorder; | |
| 3158 | |
| 3159 final int height; | |
| 3160 | |
| 3161 String location; | |
| 3162 | |
| 3163 String longDesc; | |
| 3164 | |
| 3165 String marginHeight; | |
| 3166 | |
| 3167 String marginWidth; | |
| 3168 | |
| 3169 String name; | |
| 3170 | |
| 3171 bool noResize; | |
| 3172 | |
| 3173 String scrolling; | |
| 3174 | |
| 3175 String src; | |
| 3176 | |
| 3177 final int width; | |
| 3178 | |
| 3179 _SVGDocumentJs getSVGDocument() native; | |
| 3180 } | |
| 3181 | |
| 3182 class _HTMLFrameSetElementJs extends _HTMLElementJs implements HTMLFrameSetEleme
nt native "*HTMLFrameSetElement" { | |
| 3183 | |
| 3184 String cols; | |
| 3185 | |
| 3186 String rows; | |
| 3187 } | |
| 3188 | |
| 3189 class _HTMLHRElementJs extends _HTMLElementJs implements HTMLHRElement native "*
HTMLHRElement" { | |
| 3190 | |
| 3191 String align; | |
| 3192 | |
| 3193 bool noShade; | |
| 3194 | |
| 3195 String size; | |
| 3196 | |
| 3197 String width; | |
| 3198 } | |
| 3199 | |
| 3200 class _HTMLHeadElementJs extends _HTMLElementJs implements HTMLHeadElement nativ
e "*HTMLHeadElement" { | |
| 3201 | |
| 3202 String profile; | |
| 3203 } | |
| 3204 | |
| 3205 class _HTMLHeadingElementJs extends _HTMLElementJs implements HTMLHeadingElement
native "*HTMLHeadingElement" { | |
| 3206 | |
| 3207 String align; | |
| 3208 } | |
| 3209 | |
| 3210 class _HTMLHtmlElementJs extends _HTMLElementJs implements HTMLHtmlElement nativ
e "*HTMLHtmlElement" { | |
| 3211 | |
| 3212 String manifest; | |
| 3213 | |
| 3214 String version; | |
| 3215 } | |
| 3216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 3217 // for details. All rights reserved. Use of this source code is governed by a | |
| 3218 // BSD-style license that can be found in the LICENSE file. | |
| 3219 | |
| 3220 class _HTMLIFrameElementJs extends _HTMLElementJs implements HTMLIFrameElement n
ative "*HTMLIFrameElement" { | |
| 3221 | |
| 3222 String align; | |
| 3223 | |
| 3224 String frameBorder; | |
| 3225 | |
| 3226 String height; | |
| 3227 | |
| 3228 String longDesc; | |
| 3229 | |
| 3230 String marginHeight; | |
| 3231 | |
| 3232 String marginWidth; | |
| 3233 | |
| 3234 String name; | |
| 3235 | |
| 3236 String sandbox; | |
| 3237 | |
| 3238 String scrolling; | |
| 3239 | |
| 3240 String src; | |
| 3241 | |
| 3242 String srcdoc; | |
| 3243 | |
| 3244 String width; | |
| 3245 | |
| 3246 _SVGDocumentJs getSVGDocument() native; | |
| 3247 | |
| 3248 | |
| 3249 Window get _contentWindow() native "return this.contentWindow;"; | |
| 3250 | |
| 3251 // Override contentWindow to return secure wrapper. | |
| 3252 Window get contentWindow() { | |
| 3253 return _DOMWindowCrossFrameImpl._createSafe(_contentWindow); | |
| 3254 } | |
| 3255 } | |
| 3256 | |
| 3257 class _HTMLImageElementJs extends _HTMLElementJs implements HTMLImageElement nat
ive "*HTMLImageElement" { | |
| 3258 | |
| 3259 String align; | |
| 3260 | |
| 3261 String alt; | |
| 3262 | |
| 3263 String border; | |
| 3264 | |
| 3265 final bool complete; | |
| 3266 | |
| 3267 String crossOrigin; | |
| 3268 | |
| 3269 int height; | |
| 3270 | |
| 3271 int hspace; | |
| 3272 | |
| 3273 bool isMap; | |
| 3274 | |
| 3275 String longDesc; | |
| 3276 | |
| 3277 String lowsrc; | |
| 3278 | |
| 3279 String name; | |
| 3280 | |
| 3281 final int naturalHeight; | |
| 3282 | |
| 3283 final int naturalWidth; | |
| 3284 | |
| 3285 String src; | |
| 3286 | |
| 3287 String useMap; | |
| 3288 | |
| 3289 int vspace; | |
| 3290 | |
| 3291 int width; | |
| 3292 | |
| 3293 final int x; | |
| 3294 | |
| 3295 final int y; | |
| 3296 } | |
| 3297 | |
| 3298 class _HTMLInputElementJs extends _HTMLElementJs implements HTMLInputElement nat
ive "*HTMLInputElement" { | |
| 3299 | |
| 3300 String accept; | |
| 3301 | |
| 3302 String align; | |
| 3303 | |
| 3304 String alt; | |
| 3305 | |
| 3306 String autocomplete; | |
| 3307 | |
| 3308 bool autofocus; | |
| 3309 | |
| 3310 bool checked; | |
| 3311 | |
| 3312 bool defaultChecked; | |
| 3313 | |
| 3314 String defaultValue; | |
| 3315 | |
| 3316 String dirName; | |
| 3317 | |
| 3318 bool disabled; | |
| 3319 | |
| 3320 _FileListJs files; | |
| 3321 | |
| 3322 final _HTMLFormElementJs form; | |
| 3323 | |
| 3324 String formAction; | |
| 3325 | |
| 3326 String formEnctype; | |
| 3327 | |
| 3328 String formMethod; | |
| 3329 | |
| 3330 bool formNoValidate; | |
| 3331 | |
| 3332 String formTarget; | |
| 3333 | |
| 3334 int height; | |
| 3335 | |
| 3336 bool incremental; | |
| 3337 | |
| 3338 bool indeterminate; | |
| 3339 | |
| 3340 final _NodeListJs labels; | |
| 3341 | |
| 3342 String max; | |
| 3343 | |
| 3344 int maxLength; | |
| 3345 | |
| 3346 String min; | |
| 3347 | |
| 3348 bool multiple; | |
| 3349 | |
| 3350 String name; | |
| 3351 | |
| 3352 String pattern; | |
| 3353 | |
| 3354 String placeholder; | |
| 3355 | |
| 3356 bool readOnly; | |
| 3357 | |
| 3358 bool required; | |
| 3359 | |
| 3360 String selectionDirection; | |
| 3361 | |
| 3362 int selectionEnd; | |
| 3363 | |
| 3364 int selectionStart; | |
| 3365 | |
| 3366 int size; | |
| 3367 | |
| 3368 String src; | |
| 3369 | |
| 3370 String step; | |
| 3371 | |
| 3372 String type; | |
| 3373 | |
| 3374 String useMap; | |
| 3375 | |
| 3376 final String validationMessage; | |
| 3377 | |
| 3378 final _ValidityStateJs validity; | |
| 3379 | |
| 3380 String value; | |
| 3381 | |
| 3382 Date valueAsDate; | |
| 3383 | |
| 3384 num valueAsNumber; | |
| 3385 | |
| 3386 final _EntryArrayJs webkitEntries; | |
| 3387 | |
| 3388 bool webkitGrammar; | |
| 3389 | |
| 3390 bool webkitSpeech; | |
| 3391 | |
| 3392 bool webkitdirectory; | |
| 3393 | |
| 3394 int width; | |
| 3395 | |
| 3396 final bool willValidate; | |
| 3397 | |
| 3398 bool checkValidity() native; | |
| 3399 | |
| 3400 void select() native; | |
| 3401 | |
| 3402 void setCustomValidity(String error) native; | |
| 3403 | |
| 3404 void setSelectionRange(int start, int end, [String direction]) native; | |
| 3405 | |
| 3406 void stepDown([int n]) native; | |
| 3407 | |
| 3408 void stepUp([int n]) native; | |
| 3409 } | |
| 3410 | |
| 3411 class _HTMLKeygenElementJs extends _HTMLElementJs implements HTMLKeygenElement n
ative "*HTMLKeygenElement" { | |
| 3412 | |
| 3413 bool autofocus; | |
| 3414 | |
| 3415 String challenge; | |
| 3416 | |
| 3417 bool disabled; | |
| 3418 | |
| 3419 final _HTMLFormElementJs form; | |
| 3420 | |
| 3421 String keytype; | |
| 3422 | |
| 3423 final _NodeListJs labels; | |
| 3424 | |
| 3425 String name; | |
| 3426 | |
| 3427 final String type; | |
| 3428 | |
| 3429 final String validationMessage; | |
| 3430 | |
| 3431 final _ValidityStateJs validity; | |
| 3432 | |
| 3433 final bool willValidate; | |
| 3434 | |
| 3435 bool checkValidity() native; | |
| 3436 | |
| 3437 void setCustomValidity(String error) native; | |
| 3438 } | |
| 3439 | |
| 3440 class _HTMLLIElementJs extends _HTMLElementJs implements HTMLLIElement native "*
HTMLLIElement" { | |
| 3441 | |
| 3442 String type; | |
| 3443 | |
| 3444 int value; | |
| 3445 } | |
| 3446 | |
| 3447 class _HTMLLabelElementJs extends _HTMLElementJs implements HTMLLabelElement nat
ive "*HTMLLabelElement" { | |
| 3448 | |
| 3449 final _HTMLElementJs control; | |
| 3450 | |
| 3451 final _HTMLFormElementJs form; | |
| 3452 | |
| 3453 String htmlFor; | |
| 3454 } | |
| 3455 | |
| 3456 class _HTMLLegendElementJs extends _HTMLElementJs implements HTMLLegendElement n
ative "*HTMLLegendElement" { | |
| 3457 | |
| 3458 String align; | |
| 3459 | |
| 3460 final _HTMLFormElementJs form; | |
| 3461 } | |
| 3462 | |
| 3463 class _HTMLLinkElementJs extends _HTMLElementJs implements HTMLLinkElement nativ
e "*HTMLLinkElement" { | |
| 3464 | |
| 3465 String charset; | |
| 3466 | |
| 3467 bool disabled; | |
| 3468 | |
| 3469 String href; | |
| 3470 | |
| 3471 String hreflang; | |
| 3472 | |
| 3473 String media; | |
| 3474 | |
| 3475 String rel; | |
| 3476 | |
| 3477 String rev; | |
| 3478 | |
| 3479 final _StyleSheetJs sheet; | |
| 3480 | |
| 3481 _DOMSettableTokenListJs sizes; | |
| 3482 | |
| 3483 String target; | |
| 3484 | |
| 3485 String type; | |
| 3486 } | |
| 3487 | |
| 3488 class _HTMLMapElementJs extends _HTMLElementJs implements HTMLMapElement native
"*HTMLMapElement" { | |
| 3489 | |
| 3490 final _HTMLCollectionJs areas; | |
| 3491 | |
| 3492 String name; | |
| 3493 } | |
| 3494 | |
| 3495 class _HTMLMarqueeElementJs extends _HTMLElementJs implements HTMLMarqueeElement
native "*HTMLMarqueeElement" { | |
| 3496 | |
| 3497 String behavior; | |
| 3498 | |
| 3499 String bgColor; | |
| 3500 | |
| 3501 String direction; | |
| 3502 | |
| 3503 String height; | |
| 3504 | |
| 3505 int hspace; | |
| 3506 | |
| 3507 int loop; | |
| 3508 | |
| 3509 int scrollAmount; | |
| 3510 | |
| 3511 int scrollDelay; | |
| 3512 | |
| 3513 bool trueSpeed; | |
| 3514 | |
| 3515 int vspace; | |
| 3516 | |
| 3517 String width; | |
| 3518 | |
| 3519 void start() native; | |
| 3520 | |
| 3521 void stop() native; | |
| 3522 } | |
| 3523 | |
| 3524 class _HTMLMediaElementJs extends _HTMLElementJs implements HTMLMediaElement nat
ive "*HTMLMediaElement" { | |
| 3525 | |
| 3526 static final int EOS_DECODE_ERR = 2; | |
| 3527 | |
| 3528 static final int EOS_NETWORK_ERR = 1; | |
| 3529 | |
| 3530 static final int EOS_NO_ERROR = 0; | |
| 3531 | |
| 3532 static final int HAVE_CURRENT_DATA = 2; | |
| 3533 | |
| 3534 static final int HAVE_ENOUGH_DATA = 4; | |
| 3535 | |
| 3536 static final int HAVE_FUTURE_DATA = 3; | |
| 3537 | |
| 3538 static final int HAVE_METADATA = 1; | |
| 3539 | |
| 3540 static final int HAVE_NOTHING = 0; | |
| 3541 | |
| 3542 static final int NETWORK_EMPTY = 0; | |
| 3543 | |
| 3544 static final int NETWORK_IDLE = 1; | |
| 3545 | |
| 3546 static final int NETWORK_LOADING = 2; | |
| 3547 | |
| 3548 static final int NETWORK_NO_SOURCE = 3; | |
| 3549 | |
| 3550 static final int SOURCE_CLOSED = 0; | |
| 3551 | |
| 3552 static final int SOURCE_ENDED = 2; | |
| 3553 | |
| 3554 static final int SOURCE_OPEN = 1; | |
| 3555 | |
| 3556 bool autoplay; | |
| 3557 | |
| 3558 final _TimeRangesJs buffered; | |
| 3559 | |
| 3560 _MediaControllerJs controller; | |
| 3561 | |
| 3562 bool controls; | |
| 3563 | |
| 3564 final String currentSrc; | |
| 3565 | |
| 3566 num currentTime; | |
| 3567 | |
| 3568 bool defaultMuted; | |
| 3569 | |
| 3570 num defaultPlaybackRate; | |
| 3571 | |
| 3572 final num duration; | |
| 3573 | |
| 3574 final bool ended; | |
| 3575 | |
| 3576 final _MediaErrorJs error; | |
| 3577 | |
| 3578 final num initialTime; | |
| 3579 | |
| 3580 bool loop; | |
| 3581 | |
| 3582 String mediaGroup; | |
| 3583 | |
| 3584 bool muted; | |
| 3585 | |
| 3586 final int networkState; | |
| 3587 | |
| 3588 final bool paused; | |
| 3589 | |
| 3590 num playbackRate; | |
| 3591 | |
| 3592 final _TimeRangesJs played; | |
| 3593 | |
| 3594 String preload; | |
| 3595 | |
| 3596 final int readyState; | |
| 3597 | |
| 3598 final _TimeRangesJs seekable; | |
| 3599 | |
| 3600 final bool seeking; | |
| 3601 | |
| 3602 String src; | |
| 3603 | |
| 3604 final num startTime; | |
| 3605 | |
| 3606 final _TextTrackListJs textTracks; | |
| 3607 | |
| 3608 num volume; | |
| 3609 | |
| 3610 final int webkitAudioDecodedByteCount; | |
| 3611 | |
| 3612 bool webkitClosedCaptionsVisible; | |
| 3613 | |
| 3614 final bool webkitHasClosedCaptions; | |
| 3615 | |
| 3616 final String webkitMediaSourceURL; | |
| 3617 | |
| 3618 bool webkitPreservesPitch; | |
| 3619 | |
| 3620 final int webkitSourceState; | |
| 3621 | |
| 3622 final int webkitVideoDecodedByteCount; | |
| 3623 | |
| 3624 _TextTrackJs addTextTrack(String kind, [String label, String language]) native
; | |
| 3625 | |
| 3626 String canPlayType(String type, String keySystem) native; | |
| 3627 | |
| 3628 void load() native; | |
| 3629 | |
| 3630 void pause() native; | |
| 3631 | |
| 3632 void play() native; | |
| 3633 | |
| 3634 void webkitAddKey(String keySystem, _Uint8ArrayJs key, [_Uint8ArrayJs initData
, String sessionId]) native; | |
| 3635 | |
| 3636 void webkitCancelKeyRequest(String keySystem, String sessionId) native; | |
| 3637 | |
| 3638 void webkitGenerateKeyRequest(String keySystem, [_Uint8ArrayJs initData]) nati
ve; | |
| 3639 | |
| 3640 void webkitSourceAbort(String id) native; | |
| 3641 | |
| 3642 void webkitSourceAddId(String id, String type) native; | |
| 3643 | |
| 3644 void webkitSourceAppend(String id, _Uint8ArrayJs data) native; | |
| 3645 | |
| 3646 _TimeRangesJs webkitSourceBuffered(String id) native; | |
| 3647 | |
| 3648 void webkitSourceEndOfStream(int status) native; | |
| 3649 | |
| 3650 void webkitSourceRemoveId(String id) native; | |
| 3651 } | |
| 3652 | |
| 3653 class _HTMLMenuElementJs extends _HTMLElementJs implements HTMLMenuElement nativ
e "*HTMLMenuElement" { | |
| 3654 | |
| 3655 bool compact; | |
| 3656 } | |
| 3657 | |
| 3658 class _HTMLMetaElementJs extends _HTMLElementJs implements HTMLMetaElement nativ
e "*HTMLMetaElement" { | |
| 3659 | |
| 3660 String content; | |
| 3661 | |
| 3662 String httpEquiv; | |
| 3663 | |
| 3664 String name; | |
| 3665 | |
| 3666 String scheme; | |
| 3667 } | |
| 3668 | |
| 3669 class _HTMLMeterElementJs extends _HTMLElementJs implements HTMLMeterElement nat
ive "*HTMLMeterElement" { | |
| 3670 | |
| 3671 num high; | |
| 3672 | |
| 3673 final _NodeListJs labels; | |
| 3674 | |
| 3675 num low; | |
| 3676 | |
| 3677 num max; | |
| 3678 | |
| 3679 num min; | |
| 3680 | |
| 3681 num optimum; | |
| 3682 | |
| 3683 num value; | |
| 3684 } | |
| 3685 | |
| 3686 class _HTMLModElementJs extends _HTMLElementJs implements HTMLModElement native
"*HTMLModElement" { | |
| 3687 | |
| 3688 String cite; | |
| 3689 | |
| 3690 String dateTime; | |
| 3691 } | |
| 3692 | |
| 3693 class _HTMLOListElementJs extends _HTMLElementJs implements HTMLOListElement nat
ive "*HTMLOListElement" { | |
| 3694 | |
| 3695 bool compact; | |
| 3696 | |
| 3697 bool reversed; | |
| 3698 | |
| 3699 int start; | |
| 3700 | |
| 3701 String type; | |
| 3702 } | |
| 3703 | |
| 3704 class _HTMLObjectElementJs extends _HTMLElementJs implements HTMLObjectElement n
ative "*HTMLObjectElement" { | |
| 3705 | |
| 3706 String align; | |
| 3707 | |
| 3708 String archive; | |
| 3709 | |
| 3710 String border; | |
| 3711 | |
| 3712 String code; | |
| 3713 | |
| 3714 String codeBase; | |
| 3715 | |
| 3716 String codeType; | |
| 3717 | |
| 3718 final _DocumentJs contentDocument; | |
| 3719 | |
| 3720 String data; | |
| 3721 | |
| 3722 bool declare; | |
| 3723 | |
| 3724 final _HTMLFormElementJs form; | |
| 3725 | |
| 3726 String height; | |
| 3727 | |
| 3728 int hspace; | |
| 3729 | |
| 3730 String name; | |
| 3731 | |
| 3732 String standby; | |
| 3733 | |
| 3734 String type; | |
| 3735 | |
| 3736 String useMap; | |
| 3737 | |
| 3738 final String validationMessage; | |
| 3739 | |
| 3740 final _ValidityStateJs validity; | |
| 3741 | |
| 3742 int vspace; | |
| 3743 | |
| 3744 String width; | |
| 3745 | |
| 3746 final bool willValidate; | |
| 3747 | |
| 3748 bool checkValidity() native; | |
| 3749 | |
| 3750 _SVGDocumentJs getSVGDocument() native; | |
| 3751 | |
| 3752 void setCustomValidity(String error) native; | |
| 3753 } | |
| 3754 | |
| 3755 class _HTMLOptGroupElementJs extends _HTMLElementJs implements HTMLOptGroupEleme
nt native "*HTMLOptGroupElement" { | |
| 3756 | |
| 3757 bool disabled; | |
| 3758 | |
| 3759 String label; | |
| 3760 } | |
| 3761 | |
| 3762 class _HTMLOptionElementJs extends _HTMLElementJs implements HTMLOptionElement n
ative "*HTMLOptionElement" { | |
| 3763 | |
| 3764 bool defaultSelected; | |
| 3765 | |
| 3766 bool disabled; | |
| 3767 | |
| 3768 final _HTMLFormElementJs form; | |
| 3769 | |
| 3770 final int index; | |
| 3771 | |
| 3772 String label; | |
| 3773 | |
| 3774 bool selected; | |
| 3775 | |
| 3776 String text; | |
| 3777 | |
| 3778 String value; | |
| 3779 } | |
| 3780 | |
| 3781 class _HTMLOptionsCollectionJs extends _HTMLCollectionJs implements HTMLOptionsC
ollection native "*HTMLOptionsCollection" { | |
| 3782 | |
| 3783 // Shadowing definition. | |
| 3784 int get length() native "return this.length;"; | |
| 3785 void set length(int value) native "this.length = value;"; | |
| 3786 | |
| 3787 int selectedIndex; | |
| 3788 | |
| 3789 void remove(int index) native; | |
| 3790 } | |
| 3791 | |
| 3792 class _HTMLOutputElementJs extends _HTMLElementJs implements HTMLOutputElement n
ative "*HTMLOutputElement" { | |
| 3793 | |
| 3794 String defaultValue; | |
| 3795 | |
| 3796 final _HTMLFormElementJs form; | |
| 3797 | |
| 3798 _DOMSettableTokenListJs htmlFor; | |
| 3799 | |
| 3800 final _NodeListJs labels; | |
| 3801 | |
| 3802 String name; | |
| 3803 | |
| 3804 final String type; | |
| 3805 | |
| 3806 final String validationMessage; | |
| 3807 | |
| 3808 final _ValidityStateJs validity; | |
| 3809 | |
| 3810 String value; | |
| 3811 | |
| 3812 final bool willValidate; | |
| 3813 | |
| 3814 bool checkValidity() native; | |
| 3815 | |
| 3816 void setCustomValidity(String error) native; | |
| 3817 } | |
| 3818 | |
| 3819 class _HTMLParagraphElementJs extends _HTMLElementJs implements HTMLParagraphEle
ment native "*HTMLParagraphElement" { | |
| 3820 | |
| 3821 String align; | |
| 3822 } | |
| 3823 | |
| 3824 class _HTMLParamElementJs extends _HTMLElementJs implements HTMLParamElement nat
ive "*HTMLParamElement" { | |
| 3825 | |
| 3826 String name; | |
| 3827 | |
| 3828 String type; | |
| 3829 | |
| 3830 String value; | |
| 3831 | |
| 3832 String valueType; | |
| 3833 } | |
| 3834 | |
| 3835 class _HTMLPreElementJs extends _HTMLElementJs implements HTMLPreElement native
"*HTMLPreElement" { | |
| 3836 | |
| 3837 int width; | |
| 3838 | |
| 3839 bool wrap; | |
| 3840 } | |
| 3841 | |
| 3842 class _HTMLProgressElementJs extends _HTMLElementJs implements HTMLProgressEleme
nt native "*HTMLProgressElement" { | |
| 3843 | |
| 3844 final _NodeListJs labels; | |
| 3845 | |
| 3846 num max; | |
| 3847 | |
| 3848 final num position; | |
| 3849 | |
| 3850 num value; | |
| 3851 } | |
| 3852 | |
| 3853 class _HTMLQuoteElementJs extends _HTMLElementJs implements HTMLQuoteElement nat
ive "*HTMLQuoteElement" { | |
| 3854 | |
| 3855 String cite; | |
| 3856 } | |
| 3857 | |
| 3858 class _HTMLScriptElementJs extends _HTMLElementJs implements HTMLScriptElement n
ative "*HTMLScriptElement" { | |
| 3859 | |
| 3860 bool async; | |
| 3861 | |
| 3862 String charset; | |
| 3863 | |
| 3864 String crossOrigin; | |
| 3865 | |
| 3866 bool defer; | |
| 3867 | |
| 3868 String event; | |
| 3869 | |
| 3870 String htmlFor; | |
| 3871 | |
| 3872 String src; | |
| 3873 | |
| 3874 String text; | |
| 3875 | |
| 3876 String type; | |
| 3877 } | |
| 3878 | |
| 3879 class _HTMLSelectElementJs extends _HTMLElementJs implements HTMLSelectElement n
ative "*HTMLSelectElement" { | |
| 3880 | |
| 3881 bool autofocus; | |
| 3882 | |
| 3883 bool disabled; | |
| 3884 | |
| 3885 final _HTMLFormElementJs form; | |
| 3886 | |
| 3887 final _NodeListJs labels; | |
| 3888 | |
| 3889 int length; | |
| 3890 | |
| 3891 bool multiple; | |
| 3892 | |
| 3893 String name; | |
| 3894 | |
| 3895 final _HTMLOptionsCollectionJs options; | |
| 3896 | |
| 3897 bool required; | |
| 3898 | |
| 3899 int selectedIndex; | |
| 3900 | |
| 3901 final _HTMLCollectionJs selectedOptions; | |
| 3902 | |
| 3903 int size; | |
| 3904 | |
| 3905 final String type; | |
| 3906 | |
| 3907 final String validationMessage; | |
| 3908 | |
| 3909 final _ValidityStateJs validity; | |
| 3910 | |
| 3911 String value; | |
| 3912 | |
| 3913 final bool willValidate; | |
| 3914 | |
| 3915 void add(_HTMLElementJs element, _HTMLElementJs before) native; | |
| 3916 | |
| 3917 bool checkValidity() native; | |
| 3918 | |
| 3919 _NodeJs item(int index) native; | |
| 3920 | |
| 3921 _NodeJs namedItem(String name) native; | |
| 3922 | |
| 3923 void remove(index_OR_option) native; | |
| 3924 | |
| 3925 void setCustomValidity(String error) native; | |
| 3926 } | |
| 3927 | |
| 3928 class _HTMLShadowElementJs extends _HTMLElementJs implements HTMLShadowElement n
ative "*HTMLShadowElement" { | |
| 3929 } | |
| 3930 | |
| 3931 class _HTMLSourceElementJs extends _HTMLElementJs implements HTMLSourceElement n
ative "*HTMLSourceElement" { | |
| 3932 | |
| 3933 String media; | |
| 3934 | |
| 3935 String src; | |
| 3936 | |
| 3937 String type; | |
| 3938 } | |
| 3939 | |
| 3940 class _HTMLSpanElementJs extends _HTMLElementJs implements HTMLSpanElement nativ
e "*HTMLSpanElement" { | |
| 3941 } | |
| 3942 | |
| 3943 class _HTMLStyleElementJs extends _HTMLElementJs implements HTMLStyleElement nat
ive "*HTMLStyleElement" { | |
| 3944 | |
| 3945 bool disabled; | |
| 3946 | |
| 3947 String media; | |
| 3948 | |
| 3949 bool scoped; | |
| 3950 | |
| 3951 final _StyleSheetJs sheet; | |
| 3952 | |
| 3953 String type; | |
| 3954 } | |
| 3955 | |
| 3956 class _HTMLTableCaptionElementJs extends _HTMLElementJs implements HTMLTableCapt
ionElement native "*HTMLTableCaptionElement" { | |
| 3957 | |
| 3958 String align; | |
| 3959 } | |
| 3960 | |
| 3961 class _HTMLTableCellElementJs extends _HTMLElementJs implements HTMLTableCellEle
ment native "*HTMLTableCellElement" { | |
| 3962 | |
| 3963 String abbr; | |
| 3964 | |
| 3965 String align; | |
| 3966 | |
| 3967 String axis; | |
| 3968 | |
| 3969 String bgColor; | |
| 3970 | |
| 3971 final int cellIndex; | |
| 3972 | |
| 3973 String ch; | |
| 3974 | |
| 3975 String chOff; | |
| 3976 | |
| 3977 int colSpan; | |
| 3978 | |
| 3979 String headers; | |
| 3980 | |
| 3981 String height; | |
| 3982 | |
| 3983 bool noWrap; | |
| 3984 | |
| 3985 int rowSpan; | |
| 3986 | |
| 3987 String scope; | |
| 3988 | |
| 3989 String vAlign; | |
| 3990 | |
| 3991 String width; | |
| 3992 } | |
| 3993 | |
| 3994 class _HTMLTableColElementJs extends _HTMLElementJs implements HTMLTableColEleme
nt native "*HTMLTableColElement" { | |
| 3995 | |
| 3996 String align; | |
| 3997 | |
| 3998 String ch; | |
| 3999 | |
| 4000 String chOff; | |
| 4001 | |
| 4002 int span; | |
| 4003 | |
| 4004 String vAlign; | |
| 4005 | |
| 4006 String width; | |
| 4007 } | |
| 4008 | |
| 4009 class _HTMLTableElementJs extends _HTMLElementJs implements HTMLTableElement nat
ive "*HTMLTableElement" { | |
| 4010 | |
| 4011 String align; | |
| 4012 | |
| 4013 String bgColor; | |
| 4014 | |
| 4015 String border; | |
| 4016 | |
| 4017 _HTMLTableCaptionElementJs caption; | |
| 4018 | |
| 4019 String cellPadding; | |
| 4020 | |
| 4021 String cellSpacing; | |
| 4022 | |
| 4023 String frame; | |
| 4024 | |
| 4025 final _HTMLCollectionJs rows; | |
| 4026 | |
| 4027 String rules; | |
| 4028 | |
| 4029 String summary; | |
| 4030 | |
| 4031 final _HTMLCollectionJs tBodies; | |
| 4032 | |
| 4033 _HTMLTableSectionElementJs tFoot; | |
| 4034 | |
| 4035 _HTMLTableSectionElementJs tHead; | |
| 4036 | |
| 4037 String width; | |
| 4038 | |
| 4039 _HTMLElementJs createCaption() native; | |
| 4040 | |
| 4041 _HTMLElementJs createTBody() native; | |
| 4042 | |
| 4043 _HTMLElementJs createTFoot() native; | |
| 4044 | |
| 4045 _HTMLElementJs createTHead() native; | |
| 4046 | |
| 4047 void deleteCaption() native; | |
| 4048 | |
| 4049 void deleteRow(int index) native; | |
| 4050 | |
| 4051 void deleteTFoot() native; | |
| 4052 | |
| 4053 void deleteTHead() native; | |
| 4054 | |
| 4055 _HTMLElementJs insertRow(int index) native; | |
| 4056 } | |
| 4057 | |
| 4058 class _HTMLTableRowElementJs extends _HTMLElementJs implements HTMLTableRowEleme
nt native "*HTMLTableRowElement" { | |
| 4059 | |
| 4060 String align; | |
| 4061 | |
| 4062 String bgColor; | |
| 4063 | |
| 4064 final _HTMLCollectionJs cells; | |
| 4065 | |
| 4066 String ch; | |
| 4067 | |
| 4068 String chOff; | |
| 4069 | |
| 4070 final int rowIndex; | |
| 4071 | |
| 4072 final int sectionRowIndex; | |
| 4073 | |
| 4074 String vAlign; | |
| 4075 | |
| 4076 void deleteCell(int index) native; | |
| 4077 | |
| 4078 _HTMLElementJs insertCell(int index) native; | |
| 4079 } | |
| 4080 | |
| 4081 class _HTMLTableSectionElementJs extends _HTMLElementJs implements HTMLTableSect
ionElement native "*HTMLTableSectionElement" { | |
| 4082 | |
| 4083 String align; | |
| 4084 | |
| 4085 String ch; | |
| 4086 | |
| 4087 String chOff; | |
| 4088 | |
| 4089 final _HTMLCollectionJs rows; | |
| 4090 | |
| 4091 String vAlign; | |
| 4092 | |
| 4093 void deleteRow(int index) native; | |
| 4094 | |
| 4095 _HTMLElementJs insertRow(int index) native; | |
| 4096 } | |
| 4097 | |
| 4098 class _HTMLTextAreaElementJs extends _HTMLElementJs implements HTMLTextAreaEleme
nt native "*HTMLTextAreaElement" { | |
| 4099 | |
| 4100 bool autofocus; | |
| 4101 | |
| 4102 int cols; | |
| 4103 | |
| 4104 String defaultValue; | |
| 4105 | |
| 4106 String dirName; | |
| 4107 | |
| 4108 bool disabled; | |
| 4109 | |
| 4110 final _HTMLFormElementJs form; | |
| 4111 | |
| 4112 final _NodeListJs labels; | |
| 4113 | |
| 4114 int maxLength; | |
| 4115 | |
| 4116 String name; | |
| 4117 | |
| 4118 String placeholder; | |
| 4119 | |
| 4120 bool readOnly; | |
| 4121 | |
| 4122 bool required; | |
| 4123 | |
| 4124 int rows; | |
| 4125 | |
| 4126 String selectionDirection; | |
| 4127 | |
| 4128 int selectionEnd; | |
| 4129 | |
| 4130 int selectionStart; | |
| 4131 | |
| 4132 final int textLength; | |
| 4133 | |
| 4134 final String type; | |
| 4135 | |
| 4136 final String validationMessage; | |
| 4137 | |
| 4138 final _ValidityStateJs validity; | |
| 4139 | |
| 4140 String value; | |
| 4141 | |
| 4142 final bool willValidate; | |
| 4143 | |
| 4144 String wrap; | |
| 4145 | |
| 4146 bool checkValidity() native; | |
| 4147 | |
| 4148 void select() native; | |
| 4149 | |
| 4150 void setCustomValidity(String error) native; | |
| 4151 | |
| 4152 void setSelectionRange(int start, int end, [String direction]) native; | |
| 4153 } | |
| 4154 | |
| 4155 class _HTMLTitleElementJs extends _HTMLElementJs implements HTMLTitleElement nat
ive "*HTMLTitleElement" { | |
| 4156 | |
| 4157 String text; | |
| 4158 } | |
| 4159 | |
| 4160 class _HTMLTrackElementJs extends _HTMLElementJs implements HTMLTrackElement nat
ive "*HTMLTrackElement" { | |
| 4161 | |
| 4162 static final int ERROR = 3; | |
| 4163 | |
| 4164 static final int LOADED = 2; | |
| 4165 | |
| 4166 static final int LOADING = 1; | |
| 4167 | |
| 4168 static final int NONE = 0; | |
| 4169 | |
| 4170 bool get defaultValue() native "return this.default;"; | |
| 4171 void set defaultValue(bool value) native "this.default = value;"; | |
| 4172 | |
| 4173 String kind; | |
| 4174 | |
| 4175 String label; | |
| 4176 | |
| 4177 final int readyState; | |
| 4178 | |
| 4179 String src; | |
| 4180 | |
| 4181 String srclang; | |
| 4182 | |
| 4183 final _TextTrackJs track; | |
| 4184 } | |
| 4185 | |
| 4186 class _HTMLUListElementJs extends _HTMLElementJs implements HTMLUListElement nat
ive "*HTMLUListElement" { | |
| 4187 | |
| 4188 bool compact; | |
| 4189 | |
| 4190 String type; | |
| 4191 } | |
| 4192 | |
| 4193 class _HTMLUnknownElementJs extends _HTMLElementJs implements HTMLUnknownElement
native "*HTMLUnknownElement" { | |
| 4194 } | |
| 4195 | |
| 4196 class _HTMLVideoElementJs extends _HTMLMediaElementJs implements HTMLVideoElemen
t native "*HTMLVideoElement" { | |
| 4197 | |
| 4198 int height; | |
| 4199 | |
| 4200 String poster; | |
| 4201 | |
| 4202 final int videoHeight; | |
| 4203 | |
| 4204 final int videoWidth; | |
| 4205 | |
| 4206 final int webkitDecodedFrameCount; | |
| 4207 | |
| 4208 final bool webkitDisplayingFullscreen; | |
| 4209 | |
| 4210 final int webkitDroppedFrameCount; | |
| 4211 | |
| 4212 final bool webkitSupportsFullscreen; | |
| 4213 | |
| 4214 int width; | |
| 4215 | |
| 4216 void webkitEnterFullScreen() native; | |
| 4217 | |
| 4218 void webkitEnterFullscreen() native; | |
| 4219 | |
| 4220 void webkitExitFullScreen() native; | |
| 4221 | |
| 4222 void webkitExitFullscreen() native; | |
| 4223 } | |
| 4224 | |
| 4225 class _HashChangeEventJs extends _EventJs implements HashChangeEvent native "*Ha
shChangeEvent" { | |
| 4226 | |
| 4227 final String newURL; | |
| 4228 | |
| 4229 final String oldURL; | |
| 4230 | |
| 4231 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL) native; | |
| 4232 } | |
| 4233 | |
| 4234 class _HistoryJs extends _DOMTypeJs implements History native "*History" { | |
| 4235 | |
| 4236 final int length; | |
| 4237 | |
| 4238 final state; | |
| 4239 | |
| 4240 void back() native; | |
| 4241 | |
| 4242 void forward() native; | |
| 4243 | |
| 4244 void go(int distance) native; | |
| 4245 | |
| 4246 void pushState(Object data, String title, [String url]) native; | |
| 4247 | |
| 4248 void replaceState(Object data, String title, [String url]) native; | |
| 4249 } | |
| 4250 | |
| 4251 class _IDBAnyJs extends _DOMTypeJs implements IDBAny native "*IDBAny" { | |
| 4252 } | |
| 4253 | |
| 4254 class _IDBCursorJs extends _DOMTypeJs implements IDBCursor native "*IDBCursor" { | |
| 4255 | |
| 4256 static final int NEXT = 0; | |
| 4257 | |
| 4258 static final int NEXT_NO_DUPLICATE = 1; | |
| 4259 | |
| 4260 static final int PREV = 2; | |
| 4261 | |
| 4262 static final int PREV_NO_DUPLICATE = 3; | |
| 4263 | |
| 4264 final String direction; | |
| 4265 | |
| 4266 final key; | |
| 4267 | |
| 4268 final primaryKey; | |
| 4269 | |
| 4270 final source; | |
| 4271 | |
| 4272 void advance(int count) native; | |
| 4273 | |
| 4274 void continueFunction([key]) native ''' | |
| 4275 if (key == null) return this['continue'](); | |
| 4276 return this['continue'](key); | |
| 4277 '''; | |
| 4278 | |
| 4279 _IDBRequestJs delete() native; | |
| 4280 | |
| 4281 _IDBRequestJs update(value) native; | |
| 4282 } | |
| 4283 | |
| 4284 class _IDBCursorWithValueJs extends _IDBCursorJs implements IDBCursorWithValue n
ative "*IDBCursorWithValue" { | |
| 4285 | |
| 4286 final value; | |
| 4287 } | |
| 4288 | |
| 4289 class _IDBDatabaseJs extends _EventTargetJs implements IDBDatabase native "*IDBD
atabase" { | |
| 4290 | |
| 4291 final String name; | |
| 4292 | |
| 4293 final List<String> objectStoreNames; | |
| 4294 | |
| 4295 final String version; | |
| 4296 | |
| 4297 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 4298 | |
| 4299 void close() native; | |
| 4300 | |
| 4301 _IDBObjectStoreJs createObjectStore(String name, [Map options]) native; | |
| 4302 | |
| 4303 void deleteObjectStore(String name) native; | |
| 4304 | |
| 4305 bool dispatchEvent(_EventJs evt) native; | |
| 4306 | |
| 4307 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 4308 | |
| 4309 _IDBVersionChangeRequestJs setVersion(String version) native; | |
| 4310 | |
| 4311 _IDBTransactionJs transaction(storeName_OR_storeNames, String mode) native; | |
| 4312 } | |
| 4313 | |
| 4314 class _IDBDatabaseExceptionJs extends _DOMTypeJs implements IDBDatabaseException
native "*IDBDatabaseException" { | |
| 4315 | |
| 4316 static final int ABORT_ERR = 20; | |
| 4317 | |
| 4318 static final int CONSTRAINT_ERR = 4; | |
| 4319 | |
| 4320 static final int DATA_ERR = 5; | |
| 4321 | |
| 4322 static final int NON_TRANSIENT_ERR = 2; | |
| 4323 | |
| 4324 static final int NOT_ALLOWED_ERR = 6; | |
| 4325 | |
| 4326 static final int NOT_FOUND_ERR = 8; | |
| 4327 | |
| 4328 static final int NO_ERR = 0; | |
| 4329 | |
| 4330 static final int QUOTA_ERR = 22; | |
| 4331 | |
| 4332 static final int READ_ONLY_ERR = 9; | |
| 4333 | |
| 4334 static final int TIMEOUT_ERR = 23; | |
| 4335 | |
| 4336 static final int TRANSACTION_INACTIVE_ERR = 7; | |
| 4337 | |
| 4338 static final int UNKNOWN_ERR = 1; | |
| 4339 | |
| 4340 static final int VER_ERR = 12; | |
| 4341 | |
| 4342 final int code; | |
| 4343 | |
| 4344 final String message; | |
| 4345 | |
| 4346 final String name; | |
| 4347 | |
| 4348 String toString() native; | |
| 4349 } | |
| 4350 | |
| 4351 class _IDBFactoryJs extends _DOMTypeJs implements IDBFactory native "*IDBFactory
" { | |
| 4352 | |
| 4353 int cmp(first, second) native; | |
| 4354 | |
| 4355 _IDBVersionChangeRequestJs deleteDatabase(String name) native; | |
| 4356 | |
| 4357 _IDBRequestJs open(String name) native; | |
| 4358 | |
| 4359 _IDBRequestJs webkitGetDatabaseNames() native; | |
| 4360 } | |
| 4361 | |
| 4362 class _IDBIndexJs extends _DOMTypeJs implements IDBIndex native "*IDBIndex" { | |
| 4363 | |
| 4364 final keyPath; | |
| 4365 | |
| 4366 final bool multiEntry; | |
| 4367 | |
| 4368 final String name; | |
| 4369 | |
| 4370 final _IDBObjectStoreJs objectStore; | |
| 4371 | |
| 4372 final bool unique; | |
| 4373 | |
| 4374 _IDBRequestJs count([key_OR_range]) native; | |
| 4375 | |
| 4376 _IDBRequestJs get(key) native; | |
| 4377 | |
| 4378 _IDBRequestJs getKey(key) native; | |
| 4379 | |
| 4380 _IDBRequestJs openCursor([key_OR_range, direction]) native; | |
| 4381 | |
| 4382 _IDBRequestJs openKeyCursor([key_OR_range, direction]) native; | |
| 4383 } | |
| 4384 | |
| 4385 class _IDBKeyJs extends _DOMTypeJs implements IDBKey native "*IDBKey" { | |
| 4386 } | |
| 4387 | |
| 4388 class _IDBKeyRangeJs extends _DOMTypeJs implements IDBKeyRange native "*IDBKeyRa
nge" { | |
| 4389 | |
| 4390 final lower; | |
| 4391 | |
| 4392 final bool lowerOpen; | |
| 4393 | |
| 4394 final upper; | |
| 4395 | |
| 4396 final bool upperOpen; | |
| 4397 } | |
| 4398 | |
| 4399 class _IDBObjectStoreJs extends _DOMTypeJs implements IDBObjectStore native "*ID
BObjectStore" { | |
| 4400 | |
| 4401 final bool autoIncrement; | |
| 4402 | |
| 4403 final List<String> indexNames; | |
| 4404 | |
| 4405 final keyPath; | |
| 4406 | |
| 4407 final String name; | |
| 4408 | |
| 4409 final _IDBTransactionJs transaction; | |
| 4410 | |
| 4411 _IDBRequestJs add(value, [key]) native; | |
| 4412 | |
| 4413 _IDBRequestJs clear() native; | |
| 4414 | |
| 4415 _IDBRequestJs count([key_OR_range]) native; | |
| 4416 | |
| 4417 _IDBIndexJs createIndex(String name, keyPath, [Map options]) native; | |
| 4418 | |
| 4419 _IDBRequestJs delete(key_OR_keyRange) native; | |
| 4420 | |
| 4421 void deleteIndex(String name) native; | |
| 4422 | |
| 4423 _IDBRequestJs getObject(key) native 'get'; | |
| 4424 | |
| 4425 _IDBIndexJs index(String name) native; | |
| 4426 | |
| 4427 _IDBRequestJs openCursor([key_OR_range, direction]) native; | |
| 4428 | |
| 4429 _IDBRequestJs put(value, [key]) native; | |
| 4430 } | |
| 4431 | |
| 4432 class _IDBRequestJs extends _EventTargetJs implements IDBRequest native "*IDBReq
uest" { | |
| 4433 | |
| 4434 final _DOMErrorJs error; | |
| 4435 | |
| 4436 final int errorCode; | |
| 4437 | |
| 4438 final String readyState; | |
| 4439 | |
| 4440 final result; | |
| 4441 | |
| 4442 final source; | |
| 4443 | |
| 4444 final _IDBTransactionJs transaction; | |
| 4445 | |
| 4446 final String webkitErrorMessage; | |
| 4447 | |
| 4448 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 4449 | |
| 4450 bool dispatchEvent(_EventJs evt) native; | |
| 4451 | |
| 4452 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 4453 } | |
| 4454 | |
| 4455 class _IDBTransactionJs extends _EventTargetJs implements IDBTransaction native
"*IDBTransaction" { | |
| 4456 | |
| 4457 static final int READ_ONLY = 0; | |
| 4458 | |
| 4459 static final int READ_WRITE = 1; | |
| 4460 | |
| 4461 static final int VERSION_CHANGE = 2; | |
| 4462 | |
| 4463 final _IDBDatabaseJs db; | |
| 4464 | |
| 4465 final _DOMErrorJs error; | |
| 4466 | |
| 4467 final String mode; | |
| 4468 | |
| 4469 void abort() native; | |
| 4470 | |
| 4471 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 4472 | |
| 4473 bool dispatchEvent(_EventJs evt) native; | |
| 4474 | |
| 4475 _IDBObjectStoreJs objectStore(String name) native; | |
| 4476 | |
| 4477 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 4478 } | |
| 4479 | |
| 4480 class _IDBVersionChangeEventJs extends _EventJs implements IDBVersionChangeEvent
native "*IDBVersionChangeEvent" { | |
| 4481 | |
| 4482 final String version; | |
| 4483 } | |
| 4484 | |
| 4485 class _IDBVersionChangeRequestJs extends _IDBRequestJs implements IDBVersionChan
geRequest native "*IDBVersionChangeRequest" { | |
| 4486 | |
| 4487 // From EventTarget | |
| 4488 | |
| 4489 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 4490 | |
| 4491 bool dispatchEvent(_EventJs event) native; | |
| 4492 | |
| 4493 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 4494 } | |
| 4495 | |
| 4496 class _IceCandidateJs extends _DOMTypeJs implements IceCandidate native "*IceCan
didate" { | |
| 4497 | |
| 4498 final String label; | |
| 4499 | |
| 4500 String toSdp() native; | |
| 4501 } | |
| 4502 | |
| 4503 class _ImageDataJs extends _DOMTypeJs implements ImageData native "*ImageData" { | |
| 4504 | |
| 4505 final _Uint8ClampedArrayJs data; | |
| 4506 | |
| 4507 final int height; | |
| 4508 | |
| 4509 final int width; | |
| 4510 } | |
| 4511 | |
| 4512 class _Int16ArrayJs extends _ArrayBufferViewJs implements Int16Array, List<int>
native "*Int16Array" { | |
| 4513 | |
| 4514 static final int BYTES_PER_ELEMENT = 2; | |
| 4515 | |
| 4516 final int length; | |
| 4517 | |
| 4518 int operator[](int index) native "return this[index];"; | |
| 4519 | |
| 4520 void operator[]=(int index, int value) native "this[index] = value"; | |
| 4521 // -- start List<int> mixins. | |
| 4522 // int is the element type. | |
| 4523 | |
| 4524 // From Iterable<int>: | |
| 4525 | |
| 4526 Iterator<int> iterator() { | |
| 4527 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 4528 // be cached in both iterator _and_ forEach method. For now caching it | |
| 4529 // for consistency. | |
| 4530 return new _FixedSizeListIterator<int>(this); | |
| 4531 } | |
| 4532 | |
| 4533 // From Collection<int>: | |
| 4534 | |
| 4535 void add(int value) { | |
| 4536 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 4537 } | |
| 4538 | |
| 4539 void addLast(int value) { | |
| 4540 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 4541 } | |
| 4542 | |
| 4543 void addAll(Collection<int> collection) { | |
| 4544 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 4545 } | |
| 4546 | |
| 4547 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
| 4548 | |
| 4549 Collection map(f(int element)) => _Collections.map(this, [], f); | |
| 4550 | |
| 4551 Collection<int> filter(bool f(int element)) => | |
| 4552 _Collections.filter(this, <int>[], f); | |
| 4553 | |
| 4554 bool every(bool f(int element)) => _Collections.every(this, f); | |
| 4555 | |
| 4556 bool some(bool f(int element)) => _Collections.some(this, f); | |
| 4557 | |
| 4558 bool isEmpty() => this.length == 0; | |
| 4559 | |
| 4560 // From List<int>: | |
| 4561 | |
| 4562 void sort(int compare(int a, int b)) { | |
| 4563 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 4564 } | |
| 4565 | |
| 4566 int indexOf(int element, [int start = 0]) => | |
| 4567 _Lists.indexOf(this, element, start, this.length); | |
| 4568 | |
| 4569 int lastIndexOf(int element, [int start]) { | |
| 4570 if (start === null) start = length - 1; | |
| 4571 return _Lists.lastIndexOf(this, element, start); | |
| 4572 } | |
| 4573 | |
| 4574 int last() => this[length - 1]; | |
| 4575 | |
| 4576 int removeLast() { | |
| 4577 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 4578 } | |
| 4579 | |
| 4580 // FIXME: implement these. | |
| 4581 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
| 4582 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 4583 } | |
| 4584 | |
| 4585 void removeRange(int start, int rangeLength) { | |
| 4586 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 4587 } | |
| 4588 | |
| 4589 void insertRange(int start, int rangeLength, [int initialValue]) { | |
| 4590 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 4591 } | |
| 4592 | |
| 4593 List<int> getRange(int start, int rangeLength) => | |
| 4594 _Lists.getRange(this, start, rangeLength, <int>[]); | |
| 4595 | |
| 4596 // -- end List<int> mixins. | |
| 4597 | |
| 4598 void setElements(Object array, [int offset]) native 'set'; | |
| 4599 | |
| 4600 _Int16ArrayJs subarray(int start, [int end]) native; | |
| 4601 } | |
| 4602 | |
| 4603 class _Int32ArrayJs extends _ArrayBufferViewJs implements Int32Array, List<int>
native "*Int32Array" { | |
| 4604 | |
| 4605 static final int BYTES_PER_ELEMENT = 4; | |
| 4606 | |
| 4607 final int length; | |
| 4608 | |
| 4609 int operator[](int index) native "return this[index];"; | |
| 4610 | |
| 4611 void operator[]=(int index, int value) native "this[index] = value"; | |
| 4612 // -- start List<int> mixins. | |
| 4613 // int is the element type. | |
| 4614 | |
| 4615 // From Iterable<int>: | |
| 4616 | |
| 4617 Iterator<int> iterator() { | |
| 4618 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 4619 // be cached in both iterator _and_ forEach method. For now caching it | |
| 4620 // for consistency. | |
| 4621 return new _FixedSizeListIterator<int>(this); | |
| 4622 } | |
| 4623 | |
| 4624 // From Collection<int>: | |
| 4625 | |
| 4626 void add(int value) { | |
| 4627 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 4628 } | |
| 4629 | |
| 4630 void addLast(int value) { | |
| 4631 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 4632 } | |
| 4633 | |
| 4634 void addAll(Collection<int> collection) { | |
| 4635 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 4636 } | |
| 4637 | |
| 4638 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
| 4639 | |
| 4640 Collection map(f(int element)) => _Collections.map(this, [], f); | |
| 4641 | |
| 4642 Collection<int> filter(bool f(int element)) => | |
| 4643 _Collections.filter(this, <int>[], f); | |
| 4644 | |
| 4645 bool every(bool f(int element)) => _Collections.every(this, f); | |
| 4646 | |
| 4647 bool some(bool f(int element)) => _Collections.some(this, f); | |
| 4648 | |
| 4649 bool isEmpty() => this.length == 0; | |
| 4650 | |
| 4651 // From List<int>: | |
| 4652 | |
| 4653 void sort(int compare(int a, int b)) { | |
| 4654 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 4655 } | |
| 4656 | |
| 4657 int indexOf(int element, [int start = 0]) => | |
| 4658 _Lists.indexOf(this, element, start, this.length); | |
| 4659 | |
| 4660 int lastIndexOf(int element, [int start]) { | |
| 4661 if (start === null) start = length - 1; | |
| 4662 return _Lists.lastIndexOf(this, element, start); | |
| 4663 } | |
| 4664 | |
| 4665 int last() => this[length - 1]; | |
| 4666 | |
| 4667 int removeLast() { | |
| 4668 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 4669 } | |
| 4670 | |
| 4671 // FIXME: implement these. | |
| 4672 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
| 4673 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 4674 } | |
| 4675 | |
| 4676 void removeRange(int start, int rangeLength) { | |
| 4677 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 4678 } | |
| 4679 | |
| 4680 void insertRange(int start, int rangeLength, [int initialValue]) { | |
| 4681 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 4682 } | |
| 4683 | |
| 4684 List<int> getRange(int start, int rangeLength) => | |
| 4685 _Lists.getRange(this, start, rangeLength, <int>[]); | |
| 4686 | |
| 4687 // -- end List<int> mixins. | |
| 4688 | |
| 4689 void setElements(Object array, [int offset]) native 'set'; | |
| 4690 | |
| 4691 _Int32ArrayJs subarray(int start, [int end]) native; | |
| 4692 } | |
| 4693 | |
| 4694 class _Int8ArrayJs extends _ArrayBufferViewJs implements Int8Array, List<int> na
tive "*Int8Array" { | |
| 4695 | |
| 4696 static final int BYTES_PER_ELEMENT = 1; | |
| 4697 | |
| 4698 final int length; | |
| 4699 | |
| 4700 int operator[](int index) native "return this[index];"; | |
| 4701 | |
| 4702 void operator[]=(int index, int value) native "this[index] = value"; | |
| 4703 // -- start List<int> mixins. | |
| 4704 // int is the element type. | |
| 4705 | |
| 4706 // From Iterable<int>: | |
| 4707 | |
| 4708 Iterator<int> iterator() { | |
| 4709 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 4710 // be cached in both iterator _and_ forEach method. For now caching it | |
| 4711 // for consistency. | |
| 4712 return new _FixedSizeListIterator<int>(this); | |
| 4713 } | |
| 4714 | |
| 4715 // From Collection<int>: | |
| 4716 | |
| 4717 void add(int value) { | |
| 4718 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 4719 } | |
| 4720 | |
| 4721 void addLast(int value) { | |
| 4722 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 4723 } | |
| 4724 | |
| 4725 void addAll(Collection<int> collection) { | |
| 4726 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 4727 } | |
| 4728 | |
| 4729 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
| 4730 | |
| 4731 Collection map(f(int element)) => _Collections.map(this, [], f); | |
| 4732 | |
| 4733 Collection<int> filter(bool f(int element)) => | |
| 4734 _Collections.filter(this, <int>[], f); | |
| 4735 | |
| 4736 bool every(bool f(int element)) => _Collections.every(this, f); | |
| 4737 | |
| 4738 bool some(bool f(int element)) => _Collections.some(this, f); | |
| 4739 | |
| 4740 bool isEmpty() => this.length == 0; | |
| 4741 | |
| 4742 // From List<int>: | |
| 4743 | |
| 4744 void sort(int compare(int a, int b)) { | |
| 4745 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 4746 } | |
| 4747 | |
| 4748 int indexOf(int element, [int start = 0]) => | |
| 4749 _Lists.indexOf(this, element, start, this.length); | |
| 4750 | |
| 4751 int lastIndexOf(int element, [int start]) { | |
| 4752 if (start === null) start = length - 1; | |
| 4753 return _Lists.lastIndexOf(this, element, start); | |
| 4754 } | |
| 4755 | |
| 4756 int last() => this[length - 1]; | |
| 4757 | |
| 4758 int removeLast() { | |
| 4759 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 4760 } | |
| 4761 | |
| 4762 // FIXME: implement these. | |
| 4763 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
| 4764 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 4765 } | |
| 4766 | |
| 4767 void removeRange(int start, int rangeLength) { | |
| 4768 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 4769 } | |
| 4770 | |
| 4771 void insertRange(int start, int rangeLength, [int initialValue]) { | |
| 4772 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 4773 } | |
| 4774 | |
| 4775 List<int> getRange(int start, int rangeLength) => | |
| 4776 _Lists.getRange(this, start, rangeLength, <int>[]); | |
| 4777 | |
| 4778 // -- end List<int> mixins. | |
| 4779 | |
| 4780 void setElements(Object array, [int offset]) native 'set'; | |
| 4781 | |
| 4782 _Int8ArrayJs subarray(int start, [int end]) native; | |
| 4783 } | |
| 4784 | |
| 4785 class _JavaScriptAudioNodeJs extends _AudioNodeJs implements JavaScriptAudioNode
native "*JavaScriptAudioNode" { | |
| 4786 | |
| 4787 final int bufferSize; | |
| 4788 | |
| 4789 // From EventTarget | |
| 4790 | |
| 4791 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 4792 | |
| 4793 bool dispatchEvent(_EventJs event) native; | |
| 4794 | |
| 4795 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 4796 } | |
| 4797 | |
| 4798 class _JavaScriptCallFrameJs extends _DOMTypeJs implements JavaScriptCallFrame n
ative "*JavaScriptCallFrame" { | |
| 4799 | |
| 4800 static final int CATCH_SCOPE = 4; | |
| 4801 | |
| 4802 static final int CLOSURE_SCOPE = 3; | |
| 4803 | |
| 4804 static final int GLOBAL_SCOPE = 0; | |
| 4805 | |
| 4806 static final int LOCAL_SCOPE = 1; | |
| 4807 | |
| 4808 static final int WITH_SCOPE = 2; | |
| 4809 | |
| 4810 final _JavaScriptCallFrameJs caller; | |
| 4811 | |
| 4812 final int column; | |
| 4813 | |
| 4814 final String functionName; | |
| 4815 | |
| 4816 final int line; | |
| 4817 | |
| 4818 final List scopeChain; | |
| 4819 | |
| 4820 final int sourceID; | |
| 4821 | |
| 4822 final Object thisObject; | |
| 4823 | |
| 4824 final String type; | |
| 4825 | |
| 4826 void evaluate(String script) native; | |
| 4827 | |
| 4828 Object restart() native; | |
| 4829 | |
| 4830 int scopeType(int scopeIndex) native; | |
| 4831 } | |
| 4832 | |
| 4833 class _KeyboardEventJs extends _UIEventJs implements KeyboardEvent native "*Keyb
oardEvent" { | |
| 4834 | |
| 4835 final bool altGraphKey; | |
| 4836 | |
| 4837 final bool altKey; | |
| 4838 | |
| 4839 final bool ctrlKey; | |
| 4840 | |
| 4841 final String keyIdentifier; | |
| 4842 | |
| 4843 final int keyLocation; | |
| 4844 | |
| 4845 final bool metaKey; | |
| 4846 | |
| 4847 final bool shiftKey; | |
| 4848 | |
| 4849 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; | |
| 4850 } | |
| 4851 | |
| 4852 class _LocalMediaStreamJs extends _MediaStreamJs implements LocalMediaStream nat
ive "*LocalMediaStream" { | |
| 4853 | |
| 4854 void stop() native; | |
| 4855 | |
| 4856 // From EventTarget | |
| 4857 | |
| 4858 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 4859 | |
| 4860 bool dispatchEvent(_EventJs event) native; | |
| 4861 | |
| 4862 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 4863 } | |
| 4864 | |
| 4865 class _LocationJs extends _DOMTypeJs implements Location native "*Location" { | |
| 4866 | |
| 4867 final List<String> ancestorOrigins; | |
| 4868 | |
| 4869 String hash; | |
| 4870 | |
| 4871 String host; | |
| 4872 | |
| 4873 String hostname; | |
| 4874 | |
| 4875 String href; | |
| 4876 | |
| 4877 final String origin; | |
| 4878 | |
| 4879 String pathname; | |
| 4880 | |
| 4881 String port; | |
| 4882 | |
| 4883 String protocol; | |
| 4884 | |
| 4885 String search; | |
| 4886 | |
| 4887 void assign(String url) native; | |
| 4888 | |
| 4889 void reload() native; | |
| 4890 | |
| 4891 void replace(String url) native; | |
| 4892 | |
| 4893 String toString() native; | |
| 4894 } | |
| 4895 | |
| 4896 class _MediaControllerJs extends _EventTargetJs implements MediaController nativ
e "*MediaController" { | |
| 4897 | |
| 4898 final _TimeRangesJs buffered; | |
| 4899 | |
| 4900 num currentTime; | |
| 4901 | |
| 4902 num defaultPlaybackRate; | |
| 4903 | |
| 4904 final num duration; | |
| 4905 | |
| 4906 bool muted; | |
| 4907 | |
| 4908 final bool paused; | |
| 4909 | |
| 4910 num playbackRate; | |
| 4911 | |
| 4912 final _TimeRangesJs played; | |
| 4913 | |
| 4914 final _TimeRangesJs seekable; | |
| 4915 | |
| 4916 num volume; | |
| 4917 | |
| 4918 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 4919 | |
| 4920 bool dispatchEvent(_EventJs evt) native; | |
| 4921 | |
| 4922 void pause() native; | |
| 4923 | |
| 4924 void play() native; | |
| 4925 | |
| 4926 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 4927 } | |
| 4928 | |
| 4929 class _MediaElementAudioSourceNodeJs extends _AudioSourceNodeJs implements Media
ElementAudioSourceNode native "*MediaElementAudioSourceNode" { | |
| 4930 | |
| 4931 final _HTMLMediaElementJs mediaElement; | |
| 4932 } | |
| 4933 | |
| 4934 class _MediaErrorJs extends _DOMTypeJs implements MediaError native "*MediaError
" { | |
| 4935 | |
| 4936 static final int MEDIA_ERR_ABORTED = 1; | |
| 4937 | |
| 4938 static final int MEDIA_ERR_DECODE = 3; | |
| 4939 | |
| 4940 static final int MEDIA_ERR_ENCRYPTED = 5; | |
| 4941 | |
| 4942 static final int MEDIA_ERR_NETWORK = 2; | |
| 4943 | |
| 4944 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | |
| 4945 | |
| 4946 final int code; | |
| 4947 } | |
| 4948 | |
| 4949 class _MediaKeyErrorJs extends _DOMTypeJs implements MediaKeyError native "*Medi
aKeyError" { | |
| 4950 | |
| 4951 static final int MEDIA_KEYERR_CLIENT = 2; | |
| 4952 | |
| 4953 static final int MEDIA_KEYERR_DOMAIN = 6; | |
| 4954 | |
| 4955 static final int MEDIA_KEYERR_HARDWARECHANGE = 5; | |
| 4956 | |
| 4957 static final int MEDIA_KEYERR_OUTPUT = 4; | |
| 4958 | |
| 4959 static final int MEDIA_KEYERR_SERVICE = 3; | |
| 4960 | |
| 4961 static final int MEDIA_KEYERR_UNKNOWN = 1; | |
| 4962 | |
| 4963 final int code; | |
| 4964 } | |
| 4965 | |
| 4966 class _MediaKeyEventJs extends _EventJs implements MediaKeyEvent native "*MediaK
eyEvent" { | |
| 4967 | |
| 4968 final String defaultURL; | |
| 4969 | |
| 4970 final _MediaKeyErrorJs errorCode; | |
| 4971 | |
| 4972 final _Uint8ArrayJs initData; | |
| 4973 | |
| 4974 final String keySystem; | |
| 4975 | |
| 4976 final _Uint8ArrayJs message; | |
| 4977 | |
| 4978 final String sessionId; | |
| 4979 | |
| 4980 final int systemCode; | |
| 4981 } | |
| 4982 | |
| 4983 class _MediaListJs extends _DOMTypeJs implements MediaList native "*MediaList" { | |
| 4984 | |
| 4985 final int length; | |
| 4986 | |
| 4987 String mediaText; | |
| 4988 | |
| 4989 String operator[](int index) native "return this[index];"; | |
| 4990 | |
| 4991 void operator[]=(int index, String value) { | |
| 4992 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 4993 } | |
| 4994 // -- start List<String> mixins. | |
| 4995 // String is the element type. | |
| 4996 | |
| 4997 // From Iterable<String>: | |
| 4998 | |
| 4999 Iterator<String> iterator() { | |
| 5000 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 5001 // be cached in both iterator _and_ forEach method. For now caching it | |
| 5002 // for consistency. | |
| 5003 return new _FixedSizeListIterator<String>(this); | |
| 5004 } | |
| 5005 | |
| 5006 // From Collection<String>: | |
| 5007 | |
| 5008 void add(String value) { | |
| 5009 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 5010 } | |
| 5011 | |
| 5012 void addLast(String value) { | |
| 5013 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 5014 } | |
| 5015 | |
| 5016 void addAll(Collection<String> collection) { | |
| 5017 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 5018 } | |
| 5019 | |
| 5020 void forEach(void f(String element)) => _Collections.forEach(this, f); | |
| 5021 | |
| 5022 Collection map(f(String element)) => _Collections.map(this, [], f); | |
| 5023 | |
| 5024 Collection<String> filter(bool f(String element)) => | |
| 5025 _Collections.filter(this, <String>[], f); | |
| 5026 | |
| 5027 bool every(bool f(String element)) => _Collections.every(this, f); | |
| 5028 | |
| 5029 bool some(bool f(String element)) => _Collections.some(this, f); | |
| 5030 | |
| 5031 bool isEmpty() => this.length == 0; | |
| 5032 | |
| 5033 // From List<String>: | |
| 5034 | |
| 5035 void sort(int compare(String a, String b)) { | |
| 5036 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 5037 } | |
| 5038 | |
| 5039 int indexOf(String element, [int start = 0]) => | |
| 5040 _Lists.indexOf(this, element, start, this.length); | |
| 5041 | |
| 5042 int lastIndexOf(String element, [int start]) { | |
| 5043 if (start === null) start = length - 1; | |
| 5044 return _Lists.lastIndexOf(this, element, start); | |
| 5045 } | |
| 5046 | |
| 5047 String last() => this[length - 1]; | |
| 5048 | |
| 5049 String removeLast() { | |
| 5050 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 5051 } | |
| 5052 | |
| 5053 // FIXME: implement these. | |
| 5054 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ | |
| 5055 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 5056 } | |
| 5057 | |
| 5058 void removeRange(int start, int rangeLength) { | |
| 5059 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 5060 } | |
| 5061 | |
| 5062 void insertRange(int start, int rangeLength, [String initialValue]) { | |
| 5063 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 5064 } | |
| 5065 | |
| 5066 List<String> getRange(int start, int rangeLength) => | |
| 5067 _Lists.getRange(this, start, rangeLength, <String>[]); | |
| 5068 | |
| 5069 // -- end List<String> mixins. | |
| 5070 | |
| 5071 void appendMedium(String newMedium) native; | |
| 5072 | |
| 5073 void deleteMedium(String oldMedium) native; | |
| 5074 | |
| 5075 String item(int index) native; | |
| 5076 } | |
| 5077 | |
| 5078 class _MediaQueryListJs extends _DOMTypeJs implements MediaQueryList native "*Me
diaQueryList" { | |
| 5079 | |
| 5080 final bool matches; | |
| 5081 | |
| 5082 final String media; | |
| 5083 | |
| 5084 void addListener(MediaQueryListListener listener) native; | |
| 5085 | |
| 5086 void removeListener(MediaQueryListListener listener) native; | |
| 5087 } | |
| 5088 | |
| 5089 class _MediaStreamJs extends _EventTargetJs implements MediaStream native "*Medi
aStream" { | |
| 5090 | |
| 5091 static final int ENDED = 2; | |
| 5092 | |
| 5093 static final int LIVE = 1; | |
| 5094 | |
| 5095 final _MediaStreamTrackListJs audioTracks; | |
| 5096 | |
| 5097 final String label; | |
| 5098 | |
| 5099 final int readyState; | |
| 5100 | |
| 5101 final _MediaStreamTrackListJs videoTracks; | |
| 5102 | |
| 5103 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 5104 | |
| 5105 bool dispatchEvent(_EventJs event) native; | |
| 5106 | |
| 5107 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 5108 } | |
| 5109 | |
| 5110 class _MediaStreamEventJs extends _EventJs implements MediaStreamEvent native "*
MediaStreamEvent" { | |
| 5111 | |
| 5112 final _MediaStreamJs stream; | |
| 5113 } | |
| 5114 | |
| 5115 class _MediaStreamListJs extends _DOMTypeJs implements MediaStreamList native "*
MediaStreamList" { | |
| 5116 | |
| 5117 final int length; | |
| 5118 | |
| 5119 _MediaStreamJs item(int index) native; | |
| 5120 } | |
| 5121 | |
| 5122 class _MediaStreamTrackJs extends _DOMTypeJs implements MediaStreamTrack native
"*MediaStreamTrack" { | |
| 5123 | |
| 5124 bool enabled; | |
| 5125 | |
| 5126 final String kind; | |
| 5127 | |
| 5128 final String label; | |
| 5129 } | |
| 5130 | |
| 5131 class _MediaStreamTrackEventJs extends _EventJs implements MediaStreamTrackEvent
native "*MediaStreamTrackEvent" { | |
| 5132 | |
| 5133 final _MediaStreamTrackJs track; | |
| 5134 } | |
| 5135 | |
| 5136 class _MediaStreamTrackListJs extends _EventTargetJs implements MediaStreamTrack
List native "*MediaStreamTrackList" { | |
| 5137 | |
| 5138 final int length; | |
| 5139 | |
| 5140 void add(_MediaStreamTrackJs track) native; | |
| 5141 | |
| 5142 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 5143 | |
| 5144 bool dispatchEvent(_EventJs event) native; | |
| 5145 | |
| 5146 _MediaStreamTrackJs item(int index) native; | |
| 5147 | |
| 5148 void remove(_MediaStreamTrackJs track) native; | |
| 5149 | |
| 5150 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 5151 } | |
| 5152 | |
| 5153 class _MemoryInfoJs extends _DOMTypeJs implements MemoryInfo native "*MemoryInfo
" { | |
| 5154 | |
| 5155 final int jsHeapSizeLimit; | |
| 5156 | |
| 5157 final int totalJSHeapSize; | |
| 5158 | |
| 5159 final int usedJSHeapSize; | |
| 5160 } | |
| 5161 | |
| 5162 class _MessageChannelJs extends _DOMTypeJs implements MessageChannel native "*Me
ssageChannel" { | |
| 5163 | |
| 5164 final _MessagePortJs port1; | |
| 5165 | |
| 5166 final _MessagePortJs port2; | |
| 5167 } | |
| 5168 | |
| 5169 class _MessageEventJs extends _EventJs implements MessageEvent native "*MessageE
vent" { | |
| 5170 | |
| 5171 final Object data; | |
| 5172 | |
| 5173 final String lastEventId; | |
| 5174 | |
| 5175 final String origin; | |
| 5176 | |
| 5177 final List ports; | |
| 5178 | |
| 5179 final _DOMWindowJs source; | |
| 5180 | |
| 5181 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, _DOMWindowJs sourceArg,
List messagePorts) native; | |
| 5182 | |
| 5183 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, _DOMWindowJs sourc
eArg, List transferables) native; | |
| 5184 } | |
| 5185 | |
| 5186 class _MessagePortJs extends _EventTargetJs implements MessagePort native "*Mess
agePort" { | |
| 5187 | |
| 5188 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 5189 | |
| 5190 void close() native; | |
| 5191 | |
| 5192 bool dispatchEvent(_EventJs evt) native; | |
| 5193 | |
| 5194 void postMessage(String message, [List messagePorts]) native; | |
| 5195 | |
| 5196 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 5197 | |
| 5198 void start() native; | |
| 5199 | |
| 5200 void webkitPostMessage(String message, [List transfer]) native; | |
| 5201 } | |
| 5202 | |
| 5203 class _MetadataJs extends _DOMTypeJs implements Metadata native "*Metadata" { | |
| 5204 | |
| 5205 final Date modificationTime; | |
| 5206 | |
| 5207 final int size; | |
| 5208 } | |
| 5209 | |
| 5210 class _MouseEventJs extends _UIEventJs implements MouseEvent native "*MouseEvent
" { | |
| 5211 | |
| 5212 final bool altKey; | |
| 5213 | |
| 5214 final int button; | |
| 5215 | |
| 5216 final int clientX; | |
| 5217 | |
| 5218 final int clientY; | |
| 5219 | |
| 5220 final bool ctrlKey; | |
| 5221 | |
| 5222 final _ClipboardJs dataTransfer; | |
| 5223 | |
| 5224 final _NodeJs fromElement; | |
| 5225 | |
| 5226 final bool metaKey; | |
| 5227 | |
| 5228 final int offsetX; | |
| 5229 | |
| 5230 final int offsetY; | |
| 5231 | |
| 5232 final _EventTargetJs relatedTarget; | |
| 5233 | |
| 5234 final int screenX; | |
| 5235 | |
| 5236 final int screenY; | |
| 5237 | |
| 5238 final bool shiftKey; | |
| 5239 | |
| 5240 final _NodeJs toElement; | |
| 5241 | |
| 5242 final int webkitMovementX; | |
| 5243 | |
| 5244 final int webkitMovementY; | |
| 5245 | |
| 5246 final int x; | |
| 5247 | |
| 5248 final int y; | |
| 5249 | |
| 5250 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; | |
| 5251 } | |
| 5252 | |
| 5253 class _MutationEventJs extends _EventJs implements MutationEvent native "*Mutati
onEvent" { | |
| 5254 | |
| 5255 static final int ADDITION = 2; | |
| 5256 | |
| 5257 static final int MODIFICATION = 1; | |
| 5258 | |
| 5259 static final int REMOVAL = 3; | |
| 5260 | |
| 5261 final int attrChange; | |
| 5262 | |
| 5263 final String attrName; | |
| 5264 | |
| 5265 final String newValue; | |
| 5266 | |
| 5267 final String prevValue; | |
| 5268 | |
| 5269 final _NodeJs relatedNode; | |
| 5270 | |
| 5271 void initMutationEvent(String type, bool canBubble, bool cancelable, _NodeJs r
elatedNode, String prevValue, String newValue, String attrName, int attrChange)
native; | |
| 5272 } | |
| 5273 | |
| 5274 class _MutationObserverJs extends _DOMTypeJs implements MutationObserver native
"*MutationObserver" { | |
| 5275 | |
| 5276 void disconnect() native; | |
| 5277 | |
| 5278 void _observe(_NodeJs target, Map options) native 'observe'; | |
| 5279 | |
| 5280 List<MutationRecord> takeRecords() native; | |
| 5281 } | |
| 5282 | |
| 5283 class _MutationRecordJs extends _DOMTypeJs implements MutationRecord native "*Mu
tationRecord" { | |
| 5284 | |
| 5285 final _NodeListJs addedNodes; | |
| 5286 | |
| 5287 final String attributeName; | |
| 5288 | |
| 5289 final String attributeNamespace; | |
| 5290 | |
| 5291 final _NodeJs nextSibling; | |
| 5292 | |
| 5293 final String oldValue; | |
| 5294 | |
| 5295 final _NodeJs previousSibling; | |
| 5296 | |
| 5297 final _NodeListJs removedNodes; | |
| 5298 | |
| 5299 final _NodeJs target; | |
| 5300 | |
| 5301 final String type; | |
| 5302 } | |
| 5303 | |
| 5304 class _NamedNodeMapJs extends _DOMTypeJs implements NamedNodeMap native "*NamedN
odeMap" { | |
| 5305 | |
| 5306 final int length; | |
| 5307 | |
| 5308 _NodeJs operator[](int index) native "return this[index];"; | |
| 5309 | |
| 5310 void operator[]=(int index, _NodeJs value) { | |
| 5311 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 5312 } | |
| 5313 // -- start List<Node> mixins. | |
| 5314 // Node is the element type. | |
| 5315 | |
| 5316 // From Iterable<Node>: | |
| 5317 | |
| 5318 Iterator<Node> iterator() { | |
| 5319 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 5320 // be cached in both iterator _and_ forEach method. For now caching it | |
| 5321 // for consistency. | |
| 5322 return new _FixedSizeListIterator<Node>(this); | |
| 5323 } | |
| 5324 | |
| 5325 // From Collection<Node>: | |
| 5326 | |
| 5327 void add(Node value) { | |
| 5328 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 5329 } | |
| 5330 | |
| 5331 void addLast(Node value) { | |
| 5332 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 5333 } | |
| 5334 | |
| 5335 void addAll(Collection<Node> collection) { | |
| 5336 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 5337 } | |
| 5338 | |
| 5339 void forEach(void f(Node element)) => _Collections.forEach(this, f); | |
| 5340 | |
| 5341 Collection map(f(Node element)) => _Collections.map(this, [], f); | |
| 5342 | |
| 5343 Collection<Node> filter(bool f(Node element)) => | |
| 5344 _Collections.filter(this, <Node>[], f); | |
| 5345 | |
| 5346 bool every(bool f(Node element)) => _Collections.every(this, f); | |
| 5347 | |
| 5348 bool some(bool f(Node element)) => _Collections.some(this, f); | |
| 5349 | |
| 5350 bool isEmpty() => this.length == 0; | |
| 5351 | |
| 5352 // From List<Node>: | |
| 5353 | |
| 5354 void sort(int compare(Node a, Node b)) { | |
| 5355 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 5356 } | |
| 5357 | |
| 5358 int indexOf(Node element, [int start = 0]) => | |
| 5359 _Lists.indexOf(this, element, start, this.length); | |
| 5360 | |
| 5361 int lastIndexOf(Node element, [int start]) { | |
| 5362 if (start === null) start = length - 1; | |
| 5363 return _Lists.lastIndexOf(this, element, start); | |
| 5364 } | |
| 5365 | |
| 5366 Node last() => this[length - 1]; | |
| 5367 | |
| 5368 Node removeLast() { | |
| 5369 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 5370 } | |
| 5371 | |
| 5372 // FIXME: implement these. | |
| 5373 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | |
| 5374 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 5375 } | |
| 5376 | |
| 5377 void removeRange(int start, int rangeLength) { | |
| 5378 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 5379 } | |
| 5380 | |
| 5381 void insertRange(int start, int rangeLength, [Node initialValue]) { | |
| 5382 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 5383 } | |
| 5384 | |
| 5385 List<Node> getRange(int start, int rangeLength) => | |
| 5386 _Lists.getRange(this, start, rangeLength, <Node>[]); | |
| 5387 | |
| 5388 // -- end List<Node> mixins. | |
| 5389 | |
| 5390 _NodeJs getNamedItem(String name) native; | |
| 5391 | |
| 5392 _NodeJs getNamedItemNS(String namespaceURI, String localName) native; | |
| 5393 | |
| 5394 _NodeJs item(int index) native; | |
| 5395 | |
| 5396 _NodeJs removeNamedItem(String name) native; | |
| 5397 | |
| 5398 _NodeJs removeNamedItemNS(String namespaceURI, String localName) native; | |
| 5399 | |
| 5400 _NodeJs setNamedItem(_NodeJs node) native; | |
| 5401 | |
| 5402 _NodeJs setNamedItemNS(_NodeJs node) native; | |
| 5403 } | |
| 5404 | |
| 5405 class _NavigatorJs extends _DOMTypeJs implements Navigator native "*Navigator" { | |
| 5406 | |
| 5407 final String appCodeName; | |
| 5408 | |
| 5409 final String appName; | |
| 5410 | |
| 5411 final String appVersion; | |
| 5412 | |
| 5413 final bool cookieEnabled; | |
| 5414 | |
| 5415 final _GeolocationJs geolocation; | |
| 5416 | |
| 5417 final String language; | |
| 5418 | |
| 5419 final _DOMMimeTypeArrayJs mimeTypes; | |
| 5420 | |
| 5421 final bool onLine; | |
| 5422 | |
| 5423 final String platform; | |
| 5424 | |
| 5425 final _DOMPluginArrayJs plugins; | |
| 5426 | |
| 5427 final String product; | |
| 5428 | |
| 5429 final String productSub; | |
| 5430 | |
| 5431 final String userAgent; | |
| 5432 | |
| 5433 final String vendor; | |
| 5434 | |
| 5435 final String vendorSub; | |
| 5436 | |
| 5437 final _BatteryManagerJs webkitBattery; | |
| 5438 | |
| 5439 final _GamepadListJs webkitGamepads; | |
| 5440 | |
| 5441 final _PointerLockJs webkitPointer; | |
| 5442 | |
| 5443 void getStorageUpdates() native; | |
| 5444 | |
| 5445 bool javaEnabled() native; | |
| 5446 | |
| 5447 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]) native; | |
| 5448 } | |
| 5449 | |
| 5450 class _NavigatorUserMediaErrorJs extends _DOMTypeJs implements NavigatorUserMedi
aError native "*NavigatorUserMediaError" { | |
| 5451 | |
| 5452 static final int PERMISSION_DENIED = 1; | |
| 5453 | |
| 5454 final int code; | |
| 5455 } | |
| 5456 | |
| 5457 class _NodeJs extends _EventTargetJs implements Node native "*Node" { | |
| 5458 | |
| 5459 static final int ATTRIBUTE_NODE = 2; | |
| 5460 | |
| 5461 static final int CDATA_SECTION_NODE = 4; | |
| 5462 | |
| 5463 static final int COMMENT_NODE = 8; | |
| 5464 | |
| 5465 static final int DOCUMENT_FRAGMENT_NODE = 11; | |
| 5466 | |
| 5467 static final int DOCUMENT_NODE = 9; | |
| 5468 | |
| 5469 static final int DOCUMENT_POSITION_CONTAINED_BY = 0x10; | |
| 5470 | |
| 5471 static final int DOCUMENT_POSITION_CONTAINS = 0x08; | |
| 5472 | |
| 5473 static final int DOCUMENT_POSITION_DISCONNECTED = 0x01; | |
| 5474 | |
| 5475 static final int DOCUMENT_POSITION_FOLLOWING = 0x04; | |
| 5476 | |
| 5477 static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | |
| 5478 | |
| 5479 static final int DOCUMENT_POSITION_PRECEDING = 0x02; | |
| 5480 | |
| 5481 static final int DOCUMENT_TYPE_NODE = 10; | |
| 5482 | |
| 5483 static final int ELEMENT_NODE = 1; | |
| 5484 | |
| 5485 static final int ENTITY_NODE = 6; | |
| 5486 | |
| 5487 static final int ENTITY_REFERENCE_NODE = 5; | |
| 5488 | |
| 5489 static final int NOTATION_NODE = 12; | |
| 5490 | |
| 5491 static final int PROCESSING_INSTRUCTION_NODE = 7; | |
| 5492 | |
| 5493 static final int TEXT_NODE = 3; | |
| 5494 | |
| 5495 final _NamedNodeMapJs attributes; | |
| 5496 | |
| 5497 final String baseURI; | |
| 5498 | |
| 5499 final _NodeListJs childNodes; | |
| 5500 | |
| 5501 final _NodeJs firstChild; | |
| 5502 | |
| 5503 final _NodeJs lastChild; | |
| 5504 | |
| 5505 final String localName; | |
| 5506 | |
| 5507 final String namespaceURI; | |
| 5508 | |
| 5509 final _NodeJs nextSibling; | |
| 5510 | |
| 5511 final String nodeName; | |
| 5512 | |
| 5513 final int nodeType; | |
| 5514 | |
| 5515 String nodeValue; | |
| 5516 | |
| 5517 final _DocumentJs ownerDocument; | |
| 5518 | |
| 5519 final _ElementJs parentElement; | |
| 5520 | |
| 5521 final _NodeJs parentNode; | |
| 5522 | |
| 5523 String prefix; | |
| 5524 | |
| 5525 final _NodeJs previousSibling; | |
| 5526 | |
| 5527 String textContent; | |
| 5528 | |
| 5529 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 5530 | |
| 5531 _NodeJs appendChild(_NodeJs newChild) native; | |
| 5532 | |
| 5533 _NodeJs cloneNode(bool deep) native; | |
| 5534 | |
| 5535 int compareDocumentPosition(_NodeJs other) native; | |
| 5536 | |
| 5537 bool contains(_NodeJs other) native; | |
| 5538 | |
| 5539 bool dispatchEvent(_EventJs event) native; | |
| 5540 | |
| 5541 bool hasAttributes() native; | |
| 5542 | |
| 5543 bool hasChildNodes() native; | |
| 5544 | |
| 5545 _NodeJs insertBefore(_NodeJs newChild, _NodeJs refChild) native; | |
| 5546 | |
| 5547 bool isDefaultNamespace(String namespaceURI) native; | |
| 5548 | |
| 5549 bool isEqualNode(_NodeJs other) native; | |
| 5550 | |
| 5551 bool isSameNode(_NodeJs other) native; | |
| 5552 | |
| 5553 bool isSupported(String feature, String version) native; | |
| 5554 | |
| 5555 String lookupNamespaceURI(String prefix) native; | |
| 5556 | |
| 5557 String lookupPrefix(String namespaceURI) native; | |
| 5558 | |
| 5559 void normalize() native; | |
| 5560 | |
| 5561 _NodeJs removeChild(_NodeJs oldChild) native; | |
| 5562 | |
| 5563 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 5564 | |
| 5565 _NodeJs replaceChild(_NodeJs newChild, _NodeJs oldChild) native; | |
| 5566 } | |
| 5567 | |
| 5568 class _NodeFilterJs extends _DOMTypeJs implements NodeFilter native "*NodeFilter
" { | |
| 5569 | |
| 5570 static final int FILTER_ACCEPT = 1; | |
| 5571 | |
| 5572 static final int FILTER_REJECT = 2; | |
| 5573 | |
| 5574 static final int FILTER_SKIP = 3; | |
| 5575 | |
| 5576 static final int SHOW_ALL = 0xFFFFFFFF; | |
| 5577 | |
| 5578 static final int SHOW_ATTRIBUTE = 0x00000002; | |
| 5579 | |
| 5580 static final int SHOW_CDATA_SECTION = 0x00000008; | |
| 5581 | |
| 5582 static final int SHOW_COMMENT = 0x00000080; | |
| 5583 | |
| 5584 static final int SHOW_DOCUMENT = 0x00000100; | |
| 5585 | |
| 5586 static final int SHOW_DOCUMENT_FRAGMENT = 0x00000400; | |
| 5587 | |
| 5588 static final int SHOW_DOCUMENT_TYPE = 0x00000200; | |
| 5589 | |
| 5590 static final int SHOW_ELEMENT = 0x00000001; | |
| 5591 | |
| 5592 static final int SHOW_ENTITY = 0x00000020; | |
| 5593 | |
| 5594 static final int SHOW_ENTITY_REFERENCE = 0x00000010; | |
| 5595 | |
| 5596 static final int SHOW_NOTATION = 0x00000800; | |
| 5597 | |
| 5598 static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | |
| 5599 | |
| 5600 static final int SHOW_TEXT = 0x00000004; | |
| 5601 | |
| 5602 int acceptNode(_NodeJs n) native; | |
| 5603 } | |
| 5604 | |
| 5605 class _NodeIteratorJs extends _DOMTypeJs implements NodeIterator native "*NodeIt
erator" { | |
| 5606 | |
| 5607 final bool expandEntityReferences; | |
| 5608 | |
| 5609 final _NodeFilterJs filter; | |
| 5610 | |
| 5611 final bool pointerBeforeReferenceNode; | |
| 5612 | |
| 5613 final _NodeJs referenceNode; | |
| 5614 | |
| 5615 final _NodeJs root; | |
| 5616 | |
| 5617 final int whatToShow; | |
| 5618 | |
| 5619 void detach() native; | |
| 5620 | |
| 5621 _NodeJs nextNode() native; | |
| 5622 | |
| 5623 _NodeJs previousNode() native; | |
| 5624 } | |
| 5625 | |
| 5626 class _NodeListJs extends _DOMTypeJs implements NodeList native "*NodeList" { | |
| 5627 | |
| 5628 final int length; | |
| 5629 | |
| 5630 _NodeJs operator[](int index) native "return this[index];"; | |
| 5631 | |
| 5632 void operator[]=(int index, _NodeJs value) { | |
| 5633 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 5634 } | |
| 5635 // -- start List<Node> mixins. | |
| 5636 // Node is the element type. | |
| 5637 | |
| 5638 // From Iterable<Node>: | |
| 5639 | |
| 5640 Iterator<Node> iterator() { | |
| 5641 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 5642 // be cached in both iterator _and_ forEach method. For now caching it | |
| 5643 // for consistency. | |
| 5644 return new _FixedSizeListIterator<Node>(this); | |
| 5645 } | |
| 5646 | |
| 5647 // From Collection<Node>: | |
| 5648 | |
| 5649 void add(Node value) { | |
| 5650 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 5651 } | |
| 5652 | |
| 5653 void addLast(Node value) { | |
| 5654 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 5655 } | |
| 5656 | |
| 5657 void addAll(Collection<Node> collection) { | |
| 5658 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 5659 } | |
| 5660 | |
| 5661 void forEach(void f(Node element)) => _Collections.forEach(this, f); | |
| 5662 | |
| 5663 Collection map(f(Node element)) => _Collections.map(this, [], f); | |
| 5664 | |
| 5665 Collection<Node> filter(bool f(Node element)) => | |
| 5666 _Collections.filter(this, <Node>[], f); | |
| 5667 | |
| 5668 bool every(bool f(Node element)) => _Collections.every(this, f); | |
| 5669 | |
| 5670 bool some(bool f(Node element)) => _Collections.some(this, f); | |
| 5671 | |
| 5672 bool isEmpty() => this.length == 0; | |
| 5673 | |
| 5674 // From List<Node>: | |
| 5675 | |
| 5676 void sort(int compare(Node a, Node b)) { | |
| 5677 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 5678 } | |
| 5679 | |
| 5680 int indexOf(Node element, [int start = 0]) => | |
| 5681 _Lists.indexOf(this, element, start, this.length); | |
| 5682 | |
| 5683 int lastIndexOf(Node element, [int start]) { | |
| 5684 if (start === null) start = length - 1; | |
| 5685 return _Lists.lastIndexOf(this, element, start); | |
| 5686 } | |
| 5687 | |
| 5688 Node last() => this[length - 1]; | |
| 5689 | |
| 5690 Node removeLast() { | |
| 5691 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 5692 } | |
| 5693 | |
| 5694 // FIXME: implement these. | |
| 5695 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { | |
| 5696 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 5697 } | |
| 5698 | |
| 5699 void removeRange(int start, int rangeLength) { | |
| 5700 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 5701 } | |
| 5702 | |
| 5703 void insertRange(int start, int rangeLength, [Node initialValue]) { | |
| 5704 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 5705 } | |
| 5706 | |
| 5707 List<Node> getRange(int start, int rangeLength) => | |
| 5708 _Lists.getRange(this, start, rangeLength, <Node>[]); | |
| 5709 | |
| 5710 // -- end List<Node> mixins. | |
| 5711 | |
| 5712 _NodeJs item(int index) native; | |
| 5713 } | |
| 5714 | |
| 5715 class _NotationJs extends _NodeJs implements Notation native "*Notation" { | |
| 5716 | |
| 5717 final String publicId; | |
| 5718 | |
| 5719 final String systemId; | |
| 5720 } | |
| 5721 | |
| 5722 class _NotificationJs extends _EventTargetJs implements Notification native "*No
tification" { | |
| 5723 | |
| 5724 String dir; | |
| 5725 | |
| 5726 String replaceId; | |
| 5727 | |
| 5728 String tag; | |
| 5729 | |
| 5730 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 5731 | |
| 5732 void cancel() native; | |
| 5733 | |
| 5734 void close() native; | |
| 5735 | |
| 5736 bool dispatchEvent(_EventJs evt) native; | |
| 5737 | |
| 5738 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 5739 | |
| 5740 void show() native; | |
| 5741 } | |
| 5742 | |
| 5743 class _NotificationCenterJs extends _DOMTypeJs implements NotificationCenter nat
ive "*NotificationCenter" { | |
| 5744 | |
| 5745 int checkPermission() native; | |
| 5746 | |
| 5747 _NotificationJs createHTMLNotification(String url) native; | |
| 5748 | |
| 5749 _NotificationJs createNotification(String iconUrl, String title, String body)
native; | |
| 5750 | |
| 5751 void requestPermission(VoidCallback callback) native; | |
| 5752 } | |
| 5753 | |
| 5754 class _OESStandardDerivativesJs extends _DOMTypeJs implements OESStandardDerivat
ives native "*OESStandardDerivatives" { | |
| 5755 | |
| 5756 static final int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | |
| 5757 } | |
| 5758 | |
| 5759 class _OESTextureFloatJs extends _DOMTypeJs implements OESTextureFloat native "*
OESTextureFloat" { | |
| 5760 } | |
| 5761 | |
| 5762 class _OESVertexArrayObjectJs extends _DOMTypeJs implements OESVertexArrayObject
native "*OESVertexArrayObject" { | |
| 5763 | |
| 5764 static final int VERTEX_ARRAY_BINDING_OES = 0x85B5; | |
| 5765 | |
| 5766 void bindVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | |
| 5767 | |
| 5768 _WebGLVertexArrayObjectOESJs createVertexArrayOES() native; | |
| 5769 | |
| 5770 void deleteVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | |
| 5771 | |
| 5772 bool isVertexArrayOES(_WebGLVertexArrayObjectOESJs arrayObject) native; | |
| 5773 } | |
| 5774 | |
| 5775 class _OfflineAudioCompletionEventJs extends _EventJs implements OfflineAudioCom
pletionEvent native "*OfflineAudioCompletionEvent" { | |
| 5776 | |
| 5777 final _AudioBufferJs renderedBuffer; | |
| 5778 } | |
| 5779 | |
| 5780 class _OscillatorJs extends _AudioSourceNodeJs implements Oscillator native "*Os
cillator" { | |
| 5781 | |
| 5782 static final int CUSTOM = 4; | |
| 5783 | |
| 5784 static final int FINISHED_STATE = 3; | |
| 5785 | |
| 5786 static final int PLAYING_STATE = 2; | |
| 5787 | |
| 5788 static final int SAWTOOTH = 2; | |
| 5789 | |
| 5790 static final int SCHEDULED_STATE = 1; | |
| 5791 | |
| 5792 static final int SINE = 0; | |
| 5793 | |
| 5794 static final int SQUARE = 1; | |
| 5795 | |
| 5796 static final int TRIANGLE = 3; | |
| 5797 | |
| 5798 static final int UNSCHEDULED_STATE = 0; | |
| 5799 | |
| 5800 final _AudioParamJs detune; | |
| 5801 | |
| 5802 final _AudioParamJs frequency; | |
| 5803 | |
| 5804 final int playbackState; | |
| 5805 | |
| 5806 int type; | |
| 5807 | |
| 5808 void noteOff(num when) native; | |
| 5809 | |
| 5810 void noteOn(num when) native; | |
| 5811 | |
| 5812 void setWaveTable(_WaveTableJs waveTable) native; | |
| 5813 } | |
| 5814 | |
| 5815 class _OverflowEventJs extends _EventJs implements OverflowEvent native "*Overfl
owEvent" { | |
| 5816 | |
| 5817 static final int BOTH = 2; | |
| 5818 | |
| 5819 static final int HORIZONTAL = 0; | |
| 5820 | |
| 5821 static final int VERTICAL = 1; | |
| 5822 | |
| 5823 final bool horizontalOverflow; | |
| 5824 | |
| 5825 final int orient; | |
| 5826 | |
| 5827 final bool verticalOverflow; | |
| 5828 } | |
| 5829 | |
| 5830 class _PagePopupControllerJs extends _DOMTypeJs implements PagePopupController n
ative "*PagePopupController" { | |
| 5831 | |
| 5832 void setValueAndClosePopup(int numberValue, String stringValue) native; | |
| 5833 } | |
| 5834 | |
| 5835 class _PageTransitionEventJs extends _EventJs implements PageTransitionEvent nat
ive "*PageTransitionEvent" { | |
| 5836 | |
| 5837 final bool persisted; | |
| 5838 } | |
| 5839 | |
| 5840 class _PeerConnection00Js extends _EventTargetJs implements PeerConnection00 nat
ive "*PeerConnection00" { | |
| 5841 | |
| 5842 static final int ACTIVE = 2; | |
| 5843 | |
| 5844 static final int CLOSED = 3; | |
| 5845 | |
| 5846 static final int ICE_CHECKING = 0x300; | |
| 5847 | |
| 5848 static final int ICE_CLOSED = 0x700; | |
| 5849 | |
| 5850 static final int ICE_COMPLETED = 0x500; | |
| 5851 | |
| 5852 static final int ICE_CONNECTED = 0x400; | |
| 5853 | |
| 5854 static final int ICE_FAILED = 0x600; | |
| 5855 | |
| 5856 static final int ICE_GATHERING = 0x100; | |
| 5857 | |
| 5858 static final int ICE_WAITING = 0x200; | |
| 5859 | |
| 5860 static final int NEW = 0; | |
| 5861 | |
| 5862 static final int OPENING = 1; | |
| 5863 | |
| 5864 static final int SDP_ANSWER = 0x300; | |
| 5865 | |
| 5866 static final int SDP_OFFER = 0x100; | |
| 5867 | |
| 5868 static final int SDP_PRANSWER = 0x200; | |
| 5869 | |
| 5870 final int iceState; | |
| 5871 | |
| 5872 final _SessionDescriptionJs localDescription; | |
| 5873 | |
| 5874 final _MediaStreamListJs localStreams; | |
| 5875 | |
| 5876 final int readyState; | |
| 5877 | |
| 5878 final _SessionDescriptionJs remoteDescription; | |
| 5879 | |
| 5880 final _MediaStreamListJs remoteStreams; | |
| 5881 | |
| 5882 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 5883 | |
| 5884 void addStream(_MediaStreamJs stream, [Map mediaStreamHints]) native; | |
| 5885 | |
| 5886 void close() native; | |
| 5887 | |
| 5888 _SessionDescriptionJs createAnswer(String offer, [Map mediaHints]) native; | |
| 5889 | |
| 5890 _SessionDescriptionJs createOffer([Map mediaHints]) native; | |
| 5891 | |
| 5892 bool dispatchEvent(_EventJs event) native; | |
| 5893 | |
| 5894 void processIceMessage(_IceCandidateJs candidate) native; | |
| 5895 | |
| 5896 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 5897 | |
| 5898 void removeStream(_MediaStreamJs stream) native; | |
| 5899 | |
| 5900 void setLocalDescription(int action, _SessionDescriptionJs desc) native; | |
| 5901 | |
| 5902 void setRemoteDescription(int action, _SessionDescriptionJs desc) native; | |
| 5903 | |
| 5904 void startIce([Map iceOptions]) native; | |
| 5905 } | |
| 5906 | |
| 5907 class _PerformanceJs extends _EventTargetJs implements Performance native "*Perf
ormance" { | |
| 5908 | |
| 5909 final _MemoryInfoJs memory; | |
| 5910 | |
| 5911 final _PerformanceNavigationJs navigation; | |
| 5912 | |
| 5913 final _PerformanceTimingJs timing; | |
| 5914 | |
| 5915 num webkitNow() native; | |
| 5916 } | |
| 5917 | |
| 5918 class _PerformanceNavigationJs extends _DOMTypeJs implements PerformanceNavigati
on native "*PerformanceNavigation" { | |
| 5919 | |
| 5920 static final int TYPE_BACK_FORWARD = 2; | |
| 5921 | |
| 5922 static final int TYPE_NAVIGATE = 0; | |
| 5923 | |
| 5924 static final int TYPE_RELOAD = 1; | |
| 5925 | |
| 5926 static final int TYPE_RESERVED = 255; | |
| 5927 | |
| 5928 final int redirectCount; | |
| 5929 | |
| 5930 final int type; | |
| 5931 } | |
| 5932 | |
| 5933 class _PerformanceTimingJs extends _DOMTypeJs implements PerformanceTiming nativ
e "*PerformanceTiming" { | |
| 5934 | |
| 5935 final int connectEnd; | |
| 5936 | |
| 5937 final int connectStart; | |
| 5938 | |
| 5939 final int domComplete; | |
| 5940 | |
| 5941 final int domContentLoadedEventEnd; | |
| 5942 | |
| 5943 final int domContentLoadedEventStart; | |
| 5944 | |
| 5945 final int domInteractive; | |
| 5946 | |
| 5947 final int domLoading; | |
| 5948 | |
| 5949 final int domainLookupEnd; | |
| 5950 | |
| 5951 final int domainLookupStart; | |
| 5952 | |
| 5953 final int fetchStart; | |
| 5954 | |
| 5955 final int loadEventEnd; | |
| 5956 | |
| 5957 final int loadEventStart; | |
| 5958 | |
| 5959 final int navigationStart; | |
| 5960 | |
| 5961 final int redirectEnd; | |
| 5962 | |
| 5963 final int redirectStart; | |
| 5964 | |
| 5965 final int requestStart; | |
| 5966 | |
| 5967 final int responseEnd; | |
| 5968 | |
| 5969 final int responseStart; | |
| 5970 | |
| 5971 final int secureConnectionStart; | |
| 5972 | |
| 5973 final int unloadEventEnd; | |
| 5974 | |
| 5975 final int unloadEventStart; | |
| 5976 } | |
| 5977 | |
| 5978 class _PointerLockJs extends _DOMTypeJs implements PointerLock native "*PointerL
ock" { | |
| 5979 | |
| 5980 final bool isLocked; | |
| 5981 | |
| 5982 void lock(_ElementJs target, [VoidCallback successCallback, VoidCallback failu
reCallback]) native; | |
| 5983 | |
| 5984 void unlock() native; | |
| 5985 } | |
| 5986 | |
| 5987 class _PopStateEventJs extends _EventJs implements PopStateEvent native "*PopSta
teEvent" { | |
| 5988 | |
| 5989 final Object state; | |
| 5990 } | |
| 5991 | |
| 5992 class _PositionErrorJs extends _DOMTypeJs implements PositionError native "*Posi
tionError" { | |
| 5993 | |
| 5994 static final int PERMISSION_DENIED = 1; | |
| 5995 | |
| 5996 static final int POSITION_UNAVAILABLE = 2; | |
| 5997 | |
| 5998 static final int TIMEOUT = 3; | |
| 5999 | |
| 6000 final int code; | |
| 6001 | |
| 6002 final String message; | |
| 6003 } | |
| 6004 | |
| 6005 class _ProcessingInstructionJs extends _NodeJs implements ProcessingInstruction
native "*ProcessingInstruction" { | |
| 6006 | |
| 6007 String data; | |
| 6008 | |
| 6009 final _StyleSheetJs sheet; | |
| 6010 | |
| 6011 final String target; | |
| 6012 } | |
| 6013 | |
| 6014 class _ProgressEventJs extends _EventJs implements ProgressEvent native "*Progre
ssEvent" { | |
| 6015 | |
| 6016 final bool lengthComputable; | |
| 6017 | |
| 6018 final int loaded; | |
| 6019 | |
| 6020 final int total; | |
| 6021 } | |
| 6022 | |
| 6023 class _RGBColorJs extends _DOMTypeJs implements RGBColor native "*RGBColor" { | |
| 6024 | |
| 6025 final _CSSPrimitiveValueJs blue; | |
| 6026 | |
| 6027 final _CSSPrimitiveValueJs green; | |
| 6028 | |
| 6029 final _CSSPrimitiveValueJs red; | |
| 6030 } | |
| 6031 | |
| 6032 class _RadioNodeListJs extends _NodeListJs implements RadioNodeList native "*Rad
ioNodeList" { | |
| 6033 | |
| 6034 String value; | |
| 6035 } | |
| 6036 | |
| 6037 class _RangeJs extends _DOMTypeJs implements Range native "*Range" { | |
| 6038 | |
| 6039 static final int END_TO_END = 2; | |
| 6040 | |
| 6041 static final int END_TO_START = 3; | |
| 6042 | |
| 6043 static final int NODE_AFTER = 1; | |
| 6044 | |
| 6045 static final int NODE_BEFORE = 0; | |
| 6046 | |
| 6047 static final int NODE_BEFORE_AND_AFTER = 2; | |
| 6048 | |
| 6049 static final int NODE_INSIDE = 3; | |
| 6050 | |
| 6051 static final int START_TO_END = 1; | |
| 6052 | |
| 6053 static final int START_TO_START = 0; | |
| 6054 | |
| 6055 final bool collapsed; | |
| 6056 | |
| 6057 final _NodeJs commonAncestorContainer; | |
| 6058 | |
| 6059 final _NodeJs endContainer; | |
| 6060 | |
| 6061 final int endOffset; | |
| 6062 | |
| 6063 final _NodeJs startContainer; | |
| 6064 | |
| 6065 final int startOffset; | |
| 6066 | |
| 6067 _DocumentFragmentJs cloneContents() native; | |
| 6068 | |
| 6069 _RangeJs cloneRange() native; | |
| 6070 | |
| 6071 void collapse(bool toStart) native; | |
| 6072 | |
| 6073 int compareNode(_NodeJs refNode) native; | |
| 6074 | |
| 6075 int comparePoint(_NodeJs refNode, int offset) native; | |
| 6076 | |
| 6077 _DocumentFragmentJs createContextualFragment(String html) native; | |
| 6078 | |
| 6079 void deleteContents() native; | |
| 6080 | |
| 6081 void detach() native; | |
| 6082 | |
| 6083 void expand(String unit) native; | |
| 6084 | |
| 6085 _DocumentFragmentJs extractContents() native; | |
| 6086 | |
| 6087 _ClientRectJs getBoundingClientRect() native; | |
| 6088 | |
| 6089 _ClientRectListJs getClientRects() native; | |
| 6090 | |
| 6091 void insertNode(_NodeJs newNode) native; | |
| 6092 | |
| 6093 bool intersectsNode(_NodeJs refNode) native; | |
| 6094 | |
| 6095 bool isPointInRange(_NodeJs refNode, int offset) native; | |
| 6096 | |
| 6097 void selectNode(_NodeJs refNode) native; | |
| 6098 | |
| 6099 void selectNodeContents(_NodeJs refNode) native; | |
| 6100 | |
| 6101 void setEnd(_NodeJs refNode, int offset) native; | |
| 6102 | |
| 6103 void setEndAfter(_NodeJs refNode) native; | |
| 6104 | |
| 6105 void setEndBefore(_NodeJs refNode) native; | |
| 6106 | |
| 6107 void setStart(_NodeJs refNode, int offset) native; | |
| 6108 | |
| 6109 void setStartAfter(_NodeJs refNode) native; | |
| 6110 | |
| 6111 void setStartBefore(_NodeJs refNode) native; | |
| 6112 | |
| 6113 void surroundContents(_NodeJs newParent) native; | |
| 6114 | |
| 6115 String toString() native; | |
| 6116 } | |
| 6117 | |
| 6118 class _RangeExceptionJs extends _DOMTypeJs implements RangeException native "*Ra
ngeException" { | |
| 6119 | |
| 6120 static final int BAD_BOUNDARYPOINTS_ERR = 1; | |
| 6121 | |
| 6122 static final int INVALID_NODE_TYPE_ERR = 2; | |
| 6123 | |
| 6124 final int code; | |
| 6125 | |
| 6126 final String message; | |
| 6127 | |
| 6128 final String name; | |
| 6129 | |
| 6130 String toString() native; | |
| 6131 } | |
| 6132 | |
| 6133 class _RealtimeAnalyserNodeJs extends _AudioNodeJs implements RealtimeAnalyserNo
de native "*RealtimeAnalyserNode" { | |
| 6134 | |
| 6135 int fftSize; | |
| 6136 | |
| 6137 final int frequencyBinCount; | |
| 6138 | |
| 6139 num maxDecibels; | |
| 6140 | |
| 6141 num minDecibels; | |
| 6142 | |
| 6143 num smoothingTimeConstant; | |
| 6144 | |
| 6145 void getByteFrequencyData(_Uint8ArrayJs array) native; | |
| 6146 | |
| 6147 void getByteTimeDomainData(_Uint8ArrayJs array) native; | |
| 6148 | |
| 6149 void getFloatFrequencyData(_Float32ArrayJs array) native; | |
| 6150 } | |
| 6151 | |
| 6152 class _RectJs extends _DOMTypeJs implements Rect native "*Rect" { | |
| 6153 | |
| 6154 final _CSSPrimitiveValueJs bottom; | |
| 6155 | |
| 6156 final _CSSPrimitiveValueJs left; | |
| 6157 | |
| 6158 final _CSSPrimitiveValueJs right; | |
| 6159 | |
| 6160 final _CSSPrimitiveValueJs top; | |
| 6161 } | |
| 6162 | |
| 6163 class _SQLErrorJs extends _DOMTypeJs implements SQLError native "*SQLError" { | |
| 6164 | |
| 6165 static final int CONSTRAINT_ERR = 6; | |
| 6166 | |
| 6167 static final int DATABASE_ERR = 1; | |
| 6168 | |
| 6169 static final int QUOTA_ERR = 4; | |
| 6170 | |
| 6171 static final int SYNTAX_ERR = 5; | |
| 6172 | |
| 6173 static final int TIMEOUT_ERR = 7; | |
| 6174 | |
| 6175 static final int TOO_LARGE_ERR = 3; | |
| 6176 | |
| 6177 static final int UNKNOWN_ERR = 0; | |
| 6178 | |
| 6179 static final int VERSION_ERR = 2; | |
| 6180 | |
| 6181 final int code; | |
| 6182 | |
| 6183 final String message; | |
| 6184 } | |
| 6185 | |
| 6186 class _SQLExceptionJs extends _DOMTypeJs implements SQLException native "*SQLExc
eption" { | |
| 6187 | |
| 6188 static final int CONSTRAINT_ERR = 6; | |
| 6189 | |
| 6190 static final int DATABASE_ERR = 1; | |
| 6191 | |
| 6192 static final int QUOTA_ERR = 4; | |
| 6193 | |
| 6194 static final int SYNTAX_ERR = 5; | |
| 6195 | |
| 6196 static final int TIMEOUT_ERR = 7; | |
| 6197 | |
| 6198 static final int TOO_LARGE_ERR = 3; | |
| 6199 | |
| 6200 static final int UNKNOWN_ERR = 0; | |
| 6201 | |
| 6202 static final int VERSION_ERR = 2; | |
| 6203 | |
| 6204 final int code; | |
| 6205 | |
| 6206 final String message; | |
| 6207 } | |
| 6208 | |
| 6209 class _SQLResultSetJs extends _DOMTypeJs implements SQLResultSet native "*SQLRes
ultSet" { | |
| 6210 | |
| 6211 final int insertId; | |
| 6212 | |
| 6213 final _SQLResultSetRowListJs rows; | |
| 6214 | |
| 6215 final int rowsAffected; | |
| 6216 } | |
| 6217 | |
| 6218 class _SQLResultSetRowListJs extends _DOMTypeJs implements SQLResultSetRowList n
ative "*SQLResultSetRowList" { | |
| 6219 | |
| 6220 final int length; | |
| 6221 | |
| 6222 Object item(int index) native; | |
| 6223 } | |
| 6224 | |
| 6225 class _SQLTransactionJs extends _DOMTypeJs implements SQLTransaction native "*SQ
LTransaction" { | |
| 6226 } | |
| 6227 | |
| 6228 class _SQLTransactionSyncJs extends _DOMTypeJs implements SQLTransactionSync nat
ive "*SQLTransactionSync" { | |
| 6229 } | |
| 6230 | |
| 6231 class _SVGAElementJs extends _SVGElementJs implements SVGAElement native "*SVGAE
lement" { | |
| 6232 | |
| 6233 final _SVGAnimatedStringJs target; | |
| 6234 | |
| 6235 // From SVGURIReference | |
| 6236 | |
| 6237 final _SVGAnimatedStringJs href; | |
| 6238 | |
| 6239 // From SVGTests | |
| 6240 | |
| 6241 final _SVGStringListJs requiredExtensions; | |
| 6242 | |
| 6243 final _SVGStringListJs requiredFeatures; | |
| 6244 | |
| 6245 final _SVGStringListJs systemLanguage; | |
| 6246 | |
| 6247 bool hasExtension(String extension) native; | |
| 6248 | |
| 6249 // From SVGLangSpace | |
| 6250 | |
| 6251 String xmllang; | |
| 6252 | |
| 6253 String xmlspace; | |
| 6254 | |
| 6255 // From SVGExternalResourcesRequired | |
| 6256 | |
| 6257 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 6258 | |
| 6259 // From SVGStylable | |
| 6260 | |
| 6261 final _SVGAnimatedStringJs className; | |
| 6262 | |
| 6263 // Use implementation from Element. | |
| 6264 // final _CSSStyleDeclarationJs style; | |
| 6265 | |
| 6266 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6267 | |
| 6268 // From SVGTransformable | |
| 6269 | |
| 6270 final _SVGAnimatedTransformListJs transform; | |
| 6271 | |
| 6272 // From SVGLocatable | |
| 6273 | |
| 6274 final _SVGElementJs farthestViewportElement; | |
| 6275 | |
| 6276 final _SVGElementJs nearestViewportElement; | |
| 6277 | |
| 6278 _SVGRectJs getBBox() native; | |
| 6279 | |
| 6280 _SVGMatrixJs getCTM() native; | |
| 6281 | |
| 6282 _SVGMatrixJs getScreenCTM() native; | |
| 6283 | |
| 6284 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 6285 } | |
| 6286 | |
| 6287 class _SVGAltGlyphDefElementJs extends _SVGElementJs implements SVGAltGlyphDefEl
ement native "*SVGAltGlyphDefElement" { | |
| 6288 } | |
| 6289 | |
| 6290 class _SVGAltGlyphElementJs extends _SVGTextPositioningElementJs implements SVGA
ltGlyphElement native "*SVGAltGlyphElement" { | |
| 6291 | |
| 6292 String format; | |
| 6293 | |
| 6294 String glyphRef; | |
| 6295 | |
| 6296 // From SVGURIReference | |
| 6297 | |
| 6298 final _SVGAnimatedStringJs href; | |
| 6299 } | |
| 6300 | |
| 6301 class _SVGAltGlyphItemElementJs extends _SVGElementJs implements SVGAltGlyphItem
Element native "*SVGAltGlyphItemElement" { | |
| 6302 } | |
| 6303 | |
| 6304 class _SVGAngleJs extends _DOMTypeJs implements SVGAngle native "*SVGAngle" { | |
| 6305 | |
| 6306 static final int SVG_ANGLETYPE_DEG = 2; | |
| 6307 | |
| 6308 static final int SVG_ANGLETYPE_GRAD = 4; | |
| 6309 | |
| 6310 static final int SVG_ANGLETYPE_RAD = 3; | |
| 6311 | |
| 6312 static final int SVG_ANGLETYPE_UNKNOWN = 0; | |
| 6313 | |
| 6314 static final int SVG_ANGLETYPE_UNSPECIFIED = 1; | |
| 6315 | |
| 6316 final int unitType; | |
| 6317 | |
| 6318 num value; | |
| 6319 | |
| 6320 String valueAsString; | |
| 6321 | |
| 6322 num valueInSpecifiedUnits; | |
| 6323 | |
| 6324 void convertToSpecifiedUnits(int unitType) native; | |
| 6325 | |
| 6326 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | |
| 6327 } | |
| 6328 | |
| 6329 class _SVGAnimateColorElementJs extends _SVGAnimationElementJs implements SVGAni
mateColorElement native "*SVGAnimateColorElement" { | |
| 6330 } | |
| 6331 | |
| 6332 class _SVGAnimateElementJs extends _SVGAnimationElementJs implements SVGAnimateE
lement native "*SVGAnimateElement" { | |
| 6333 } | |
| 6334 | |
| 6335 class _SVGAnimateMotionElementJs extends _SVGAnimationElementJs implements SVGAn
imateMotionElement native "*SVGAnimateMotionElement" { | |
| 6336 } | |
| 6337 | |
| 6338 class _SVGAnimateTransformElementJs extends _SVGAnimationElementJs implements SV
GAnimateTransformElement native "*SVGAnimateTransformElement" { | |
| 6339 } | |
| 6340 | |
| 6341 class _SVGAnimatedAngleJs extends _DOMTypeJs implements SVGAnimatedAngle native
"*SVGAnimatedAngle" { | |
| 6342 | |
| 6343 final _SVGAngleJs animVal; | |
| 6344 | |
| 6345 final _SVGAngleJs baseVal; | |
| 6346 } | |
| 6347 | |
| 6348 class _SVGAnimatedBooleanJs extends _DOMTypeJs implements SVGAnimatedBoolean nat
ive "*SVGAnimatedBoolean" { | |
| 6349 | |
| 6350 final bool animVal; | |
| 6351 | |
| 6352 bool baseVal; | |
| 6353 } | |
| 6354 | |
| 6355 class _SVGAnimatedEnumerationJs extends _DOMTypeJs implements SVGAnimatedEnumera
tion native "*SVGAnimatedEnumeration" { | |
| 6356 | |
| 6357 final int animVal; | |
| 6358 | |
| 6359 int baseVal; | |
| 6360 } | |
| 6361 | |
| 6362 class _SVGAnimatedIntegerJs extends _DOMTypeJs implements SVGAnimatedInteger nat
ive "*SVGAnimatedInteger" { | |
| 6363 | |
| 6364 final int animVal; | |
| 6365 | |
| 6366 int baseVal; | |
| 6367 } | |
| 6368 | |
| 6369 class _SVGAnimatedLengthJs extends _DOMTypeJs implements SVGAnimatedLength nativ
e "*SVGAnimatedLength" { | |
| 6370 | |
| 6371 final _SVGLengthJs animVal; | |
| 6372 | |
| 6373 final _SVGLengthJs baseVal; | |
| 6374 } | |
| 6375 | |
| 6376 class _SVGAnimatedLengthListJs extends _DOMTypeJs implements SVGAnimatedLengthLi
st native "*SVGAnimatedLengthList" { | |
| 6377 | |
| 6378 final _SVGLengthListJs animVal; | |
| 6379 | |
| 6380 final _SVGLengthListJs baseVal; | |
| 6381 } | |
| 6382 | |
| 6383 class _SVGAnimatedNumberJs extends _DOMTypeJs implements SVGAnimatedNumber nativ
e "*SVGAnimatedNumber" { | |
| 6384 | |
| 6385 final num animVal; | |
| 6386 | |
| 6387 num baseVal; | |
| 6388 } | |
| 6389 | |
| 6390 class _SVGAnimatedNumberListJs extends _DOMTypeJs implements SVGAnimatedNumberLi
st native "*SVGAnimatedNumberList" { | |
| 6391 | |
| 6392 final _SVGNumberListJs animVal; | |
| 6393 | |
| 6394 final _SVGNumberListJs baseVal; | |
| 6395 } | |
| 6396 | |
| 6397 class _SVGAnimatedPreserveAspectRatioJs extends _DOMTypeJs implements SVGAnimate
dPreserveAspectRatio native "*SVGAnimatedPreserveAspectRatio" { | |
| 6398 | |
| 6399 final _SVGPreserveAspectRatioJs animVal; | |
| 6400 | |
| 6401 final _SVGPreserveAspectRatioJs baseVal; | |
| 6402 } | |
| 6403 | |
| 6404 class _SVGAnimatedRectJs extends _DOMTypeJs implements SVGAnimatedRect native "*
SVGAnimatedRect" { | |
| 6405 | |
| 6406 final _SVGRectJs animVal; | |
| 6407 | |
| 6408 final _SVGRectJs baseVal; | |
| 6409 } | |
| 6410 | |
| 6411 class _SVGAnimatedStringJs extends _DOMTypeJs implements SVGAnimatedString nativ
e "*SVGAnimatedString" { | |
| 6412 | |
| 6413 final String animVal; | |
| 6414 | |
| 6415 String baseVal; | |
| 6416 } | |
| 6417 | |
| 6418 class _SVGAnimatedTransformListJs extends _DOMTypeJs implements SVGAnimatedTrans
formList native "*SVGAnimatedTransformList" { | |
| 6419 | |
| 6420 final _SVGTransformListJs animVal; | |
| 6421 | |
| 6422 final _SVGTransformListJs baseVal; | |
| 6423 } | |
| 6424 | |
| 6425 class _SVGAnimationElementJs extends _SVGElementJs implements SVGAnimationElemen
t native "*SVGAnimationElement" { | |
| 6426 | |
| 6427 final _SVGElementJs targetElement; | |
| 6428 | |
| 6429 num getCurrentTime() native; | |
| 6430 | |
| 6431 num getSimpleDuration() native; | |
| 6432 | |
| 6433 num getStartTime() native; | |
| 6434 | |
| 6435 // From SVGTests | |
| 6436 | |
| 6437 final _SVGStringListJs requiredExtensions; | |
| 6438 | |
| 6439 final _SVGStringListJs requiredFeatures; | |
| 6440 | |
| 6441 final _SVGStringListJs systemLanguage; | |
| 6442 | |
| 6443 bool hasExtension(String extension) native; | |
| 6444 | |
| 6445 // From SVGExternalResourcesRequired | |
| 6446 | |
| 6447 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 6448 | |
| 6449 // From ElementTimeControl | |
| 6450 | |
| 6451 void beginElement() native; | |
| 6452 | |
| 6453 void beginElementAt(num offset) native; | |
| 6454 | |
| 6455 void endElement() native; | |
| 6456 | |
| 6457 void endElementAt(num offset) native; | |
| 6458 } | |
| 6459 | |
| 6460 class _SVGCircleElementJs extends _SVGElementJs implements SVGCircleElement nati
ve "*SVGCircleElement" { | |
| 6461 | |
| 6462 final _SVGAnimatedLengthJs cx; | |
| 6463 | |
| 6464 final _SVGAnimatedLengthJs cy; | |
| 6465 | |
| 6466 final _SVGAnimatedLengthJs r; | |
| 6467 | |
| 6468 // From SVGTests | |
| 6469 | |
| 6470 final _SVGStringListJs requiredExtensions; | |
| 6471 | |
| 6472 final _SVGStringListJs requiredFeatures; | |
| 6473 | |
| 6474 final _SVGStringListJs systemLanguage; | |
| 6475 | |
| 6476 bool hasExtension(String extension) native; | |
| 6477 | |
| 6478 // From SVGLangSpace | |
| 6479 | |
| 6480 String xmllang; | |
| 6481 | |
| 6482 String xmlspace; | |
| 6483 | |
| 6484 // From SVGExternalResourcesRequired | |
| 6485 | |
| 6486 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 6487 | |
| 6488 // From SVGStylable | |
| 6489 | |
| 6490 final _SVGAnimatedStringJs className; | |
| 6491 | |
| 6492 // Use implementation from Element. | |
| 6493 // final _CSSStyleDeclarationJs style; | |
| 6494 | |
| 6495 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6496 | |
| 6497 // From SVGTransformable | |
| 6498 | |
| 6499 final _SVGAnimatedTransformListJs transform; | |
| 6500 | |
| 6501 // From SVGLocatable | |
| 6502 | |
| 6503 final _SVGElementJs farthestViewportElement; | |
| 6504 | |
| 6505 final _SVGElementJs nearestViewportElement; | |
| 6506 | |
| 6507 _SVGRectJs getBBox() native; | |
| 6508 | |
| 6509 _SVGMatrixJs getCTM() native; | |
| 6510 | |
| 6511 _SVGMatrixJs getScreenCTM() native; | |
| 6512 | |
| 6513 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 6514 } | |
| 6515 | |
| 6516 class _SVGClipPathElementJs extends _SVGElementJs implements SVGClipPathElement
native "*SVGClipPathElement" { | |
| 6517 | |
| 6518 final _SVGAnimatedEnumerationJs clipPathUnits; | |
| 6519 | |
| 6520 // From SVGTests | |
| 6521 | |
| 6522 final _SVGStringListJs requiredExtensions; | |
| 6523 | |
| 6524 final _SVGStringListJs requiredFeatures; | |
| 6525 | |
| 6526 final _SVGStringListJs systemLanguage; | |
| 6527 | |
| 6528 bool hasExtension(String extension) native; | |
| 6529 | |
| 6530 // From SVGLangSpace | |
| 6531 | |
| 6532 String xmllang; | |
| 6533 | |
| 6534 String xmlspace; | |
| 6535 | |
| 6536 // From SVGExternalResourcesRequired | |
| 6537 | |
| 6538 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 6539 | |
| 6540 // From SVGStylable | |
| 6541 | |
| 6542 final _SVGAnimatedStringJs className; | |
| 6543 | |
| 6544 // Use implementation from Element. | |
| 6545 // final _CSSStyleDeclarationJs style; | |
| 6546 | |
| 6547 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6548 | |
| 6549 // From SVGTransformable | |
| 6550 | |
| 6551 final _SVGAnimatedTransformListJs transform; | |
| 6552 | |
| 6553 // From SVGLocatable | |
| 6554 | |
| 6555 final _SVGElementJs farthestViewportElement; | |
| 6556 | |
| 6557 final _SVGElementJs nearestViewportElement; | |
| 6558 | |
| 6559 _SVGRectJs getBBox() native; | |
| 6560 | |
| 6561 _SVGMatrixJs getCTM() native; | |
| 6562 | |
| 6563 _SVGMatrixJs getScreenCTM() native; | |
| 6564 | |
| 6565 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 6566 } | |
| 6567 | |
| 6568 class _SVGColorJs extends _CSSValueJs implements SVGColor native "*SVGColor" { | |
| 6569 | |
| 6570 static final int SVG_COLORTYPE_CURRENTCOLOR = 3; | |
| 6571 | |
| 6572 static final int SVG_COLORTYPE_RGBCOLOR = 1; | |
| 6573 | |
| 6574 static final int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; | |
| 6575 | |
| 6576 static final int SVG_COLORTYPE_UNKNOWN = 0; | |
| 6577 | |
| 6578 final int colorType; | |
| 6579 | |
| 6580 final _RGBColorJs rgbColor; | |
| 6581 | |
| 6582 void setColor(int colorType, String rgbColor, String iccColor) native; | |
| 6583 | |
| 6584 void setRGBColor(String rgbColor) native; | |
| 6585 | |
| 6586 void setRGBColorICCColor(String rgbColor, String iccColor) native; | |
| 6587 } | |
| 6588 | |
| 6589 class _SVGComponentTransferFunctionElementJs extends _SVGElementJs implements SV
GComponentTransferFunctionElement native "*SVGComponentTransferFunctionElement"
{ | |
| 6590 | |
| 6591 static final int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; | |
| 6592 | |
| 6593 static final int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; | |
| 6594 | |
| 6595 static final int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; | |
| 6596 | |
| 6597 static final int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; | |
| 6598 | |
| 6599 static final int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; | |
| 6600 | |
| 6601 static final int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; | |
| 6602 | |
| 6603 final _SVGAnimatedNumberJs amplitude; | |
| 6604 | |
| 6605 final _SVGAnimatedNumberJs exponent; | |
| 6606 | |
| 6607 final _SVGAnimatedNumberJs intercept; | |
| 6608 | |
| 6609 final _SVGAnimatedNumberJs offset; | |
| 6610 | |
| 6611 final _SVGAnimatedNumberJs slope; | |
| 6612 | |
| 6613 final _SVGAnimatedNumberListJs tableValues; | |
| 6614 | |
| 6615 final _SVGAnimatedEnumerationJs type; | |
| 6616 } | |
| 6617 | |
| 6618 class _SVGCursorElementJs extends _SVGElementJs implements SVGCursorElement nati
ve "*SVGCursorElement" { | |
| 6619 | |
| 6620 final _SVGAnimatedLengthJs x; | |
| 6621 | |
| 6622 final _SVGAnimatedLengthJs y; | |
| 6623 | |
| 6624 // From SVGURIReference | |
| 6625 | |
| 6626 final _SVGAnimatedStringJs href; | |
| 6627 | |
| 6628 // From SVGTests | |
| 6629 | |
| 6630 final _SVGStringListJs requiredExtensions; | |
| 6631 | |
| 6632 final _SVGStringListJs requiredFeatures; | |
| 6633 | |
| 6634 final _SVGStringListJs systemLanguage; | |
| 6635 | |
| 6636 bool hasExtension(String extension) native; | |
| 6637 | |
| 6638 // From SVGExternalResourcesRequired | |
| 6639 | |
| 6640 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 6641 } | |
| 6642 | |
| 6643 class _SVGDefsElementJs extends _SVGElementJs implements SVGDefsElement native "
*SVGDefsElement" { | |
| 6644 | |
| 6645 // From SVGTests | |
| 6646 | |
| 6647 final _SVGStringListJs requiredExtensions; | |
| 6648 | |
| 6649 final _SVGStringListJs requiredFeatures; | |
| 6650 | |
| 6651 final _SVGStringListJs systemLanguage; | |
| 6652 | |
| 6653 bool hasExtension(String extension) native; | |
| 6654 | |
| 6655 // From SVGLangSpace | |
| 6656 | |
| 6657 String xmllang; | |
| 6658 | |
| 6659 String xmlspace; | |
| 6660 | |
| 6661 // From SVGExternalResourcesRequired | |
| 6662 | |
| 6663 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 6664 | |
| 6665 // From SVGStylable | |
| 6666 | |
| 6667 final _SVGAnimatedStringJs className; | |
| 6668 | |
| 6669 // Use implementation from Element. | |
| 6670 // final _CSSStyleDeclarationJs style; | |
| 6671 | |
| 6672 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6673 | |
| 6674 // From SVGTransformable | |
| 6675 | |
| 6676 final _SVGAnimatedTransformListJs transform; | |
| 6677 | |
| 6678 // From SVGLocatable | |
| 6679 | |
| 6680 final _SVGElementJs farthestViewportElement; | |
| 6681 | |
| 6682 final _SVGElementJs nearestViewportElement; | |
| 6683 | |
| 6684 _SVGRectJs getBBox() native; | |
| 6685 | |
| 6686 _SVGMatrixJs getCTM() native; | |
| 6687 | |
| 6688 _SVGMatrixJs getScreenCTM() native; | |
| 6689 | |
| 6690 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 6691 } | |
| 6692 | |
| 6693 class _SVGDescElementJs extends _SVGElementJs implements SVGDescElement native "
*SVGDescElement" { | |
| 6694 | |
| 6695 // From SVGLangSpace | |
| 6696 | |
| 6697 String xmllang; | |
| 6698 | |
| 6699 String xmlspace; | |
| 6700 | |
| 6701 // From SVGStylable | |
| 6702 | |
| 6703 final _SVGAnimatedStringJs className; | |
| 6704 | |
| 6705 // Use implementation from Element. | |
| 6706 // final _CSSStyleDeclarationJs style; | |
| 6707 | |
| 6708 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6709 } | |
| 6710 | |
| 6711 class _SVGDocumentJs extends _DocumentJs implements SVGDocument native "*SVGDocu
ment" { | |
| 6712 | |
| 6713 final _SVGSVGElementJs rootElement; | |
| 6714 | |
| 6715 _EventJs createEvent(String eventType) native; | |
| 6716 } | |
| 6717 | |
| 6718 class _SVGElementJs extends _ElementJs implements SVGElement native "*SVGElement
" { | |
| 6719 | |
| 6720 String id; | |
| 6721 | |
| 6722 final _SVGSVGElementJs ownerSVGElement; | |
| 6723 | |
| 6724 final _SVGElementJs viewportElement; | |
| 6725 | |
| 6726 String xmlbase; | |
| 6727 } | |
| 6728 | |
| 6729 class _SVGElementInstanceJs extends _DOMTypeJs implements SVGElementInstance nat
ive "*SVGElementInstance" { | |
| 6730 | |
| 6731 final _SVGElementInstanceListJs childNodes; | |
| 6732 | |
| 6733 final _SVGElementJs correspondingElement; | |
| 6734 | |
| 6735 final _SVGUseElementJs correspondingUseElement; | |
| 6736 | |
| 6737 final _SVGElementInstanceJs firstChild; | |
| 6738 | |
| 6739 final _SVGElementInstanceJs lastChild; | |
| 6740 | |
| 6741 final _SVGElementInstanceJs nextSibling; | |
| 6742 | |
| 6743 final _SVGElementInstanceJs parentNode; | |
| 6744 | |
| 6745 final _SVGElementInstanceJs previousSibling; | |
| 6746 | |
| 6747 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 6748 | |
| 6749 bool dispatchEvent(_EventJs event) native; | |
| 6750 | |
| 6751 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 6752 } | |
| 6753 | |
| 6754 class _SVGElementInstanceListJs extends _DOMTypeJs implements SVGElementInstance
List native "*SVGElementInstanceList" { | |
| 6755 | |
| 6756 final int length; | |
| 6757 | |
| 6758 _SVGElementInstanceJs item(int index) native; | |
| 6759 } | |
| 6760 | |
| 6761 class _SVGEllipseElementJs extends _SVGElementJs implements SVGEllipseElement na
tive "*SVGEllipseElement" { | |
| 6762 | |
| 6763 final _SVGAnimatedLengthJs cx; | |
| 6764 | |
| 6765 final _SVGAnimatedLengthJs cy; | |
| 6766 | |
| 6767 final _SVGAnimatedLengthJs rx; | |
| 6768 | |
| 6769 final _SVGAnimatedLengthJs ry; | |
| 6770 | |
| 6771 // From SVGTests | |
| 6772 | |
| 6773 final _SVGStringListJs requiredExtensions; | |
| 6774 | |
| 6775 final _SVGStringListJs requiredFeatures; | |
| 6776 | |
| 6777 final _SVGStringListJs systemLanguage; | |
| 6778 | |
| 6779 bool hasExtension(String extension) native; | |
| 6780 | |
| 6781 // From SVGLangSpace | |
| 6782 | |
| 6783 String xmllang; | |
| 6784 | |
| 6785 String xmlspace; | |
| 6786 | |
| 6787 // From SVGExternalResourcesRequired | |
| 6788 | |
| 6789 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 6790 | |
| 6791 // From SVGStylable | |
| 6792 | |
| 6793 final _SVGAnimatedStringJs className; | |
| 6794 | |
| 6795 // Use implementation from Element. | |
| 6796 // final _CSSStyleDeclarationJs style; | |
| 6797 | |
| 6798 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6799 | |
| 6800 // From SVGTransformable | |
| 6801 | |
| 6802 final _SVGAnimatedTransformListJs transform; | |
| 6803 | |
| 6804 // From SVGLocatable | |
| 6805 | |
| 6806 final _SVGElementJs farthestViewportElement; | |
| 6807 | |
| 6808 final _SVGElementJs nearestViewportElement; | |
| 6809 | |
| 6810 _SVGRectJs getBBox() native; | |
| 6811 | |
| 6812 _SVGMatrixJs getCTM() native; | |
| 6813 | |
| 6814 _SVGMatrixJs getScreenCTM() native; | |
| 6815 | |
| 6816 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 6817 } | |
| 6818 | |
| 6819 class _SVGExceptionJs extends _DOMTypeJs implements SVGException native "*SVGExc
eption" { | |
| 6820 | |
| 6821 static final int SVG_INVALID_VALUE_ERR = 1; | |
| 6822 | |
| 6823 static final int SVG_MATRIX_NOT_INVERTABLE = 2; | |
| 6824 | |
| 6825 static final int SVG_WRONG_TYPE_ERR = 0; | |
| 6826 | |
| 6827 final int code; | |
| 6828 | |
| 6829 final String message; | |
| 6830 | |
| 6831 final String name; | |
| 6832 | |
| 6833 String toString() native; | |
| 6834 } | |
| 6835 | |
| 6836 class _SVGFEBlendElementJs extends _SVGElementJs implements SVGFEBlendElement na
tive "*SVGFEBlendElement" { | |
| 6837 | |
| 6838 static final int SVG_FEBLEND_MODE_DARKEN = 4; | |
| 6839 | |
| 6840 static final int SVG_FEBLEND_MODE_LIGHTEN = 5; | |
| 6841 | |
| 6842 static final int SVG_FEBLEND_MODE_MULTIPLY = 2; | |
| 6843 | |
| 6844 static final int SVG_FEBLEND_MODE_NORMAL = 1; | |
| 6845 | |
| 6846 static final int SVG_FEBLEND_MODE_SCREEN = 3; | |
| 6847 | |
| 6848 static final int SVG_FEBLEND_MODE_UNKNOWN = 0; | |
| 6849 | |
| 6850 final _SVGAnimatedStringJs in1; | |
| 6851 | |
| 6852 final _SVGAnimatedStringJs in2; | |
| 6853 | |
| 6854 final _SVGAnimatedEnumerationJs mode; | |
| 6855 | |
| 6856 // From SVGFilterPrimitiveStandardAttributes | |
| 6857 | |
| 6858 final _SVGAnimatedLengthJs height; | |
| 6859 | |
| 6860 final _SVGAnimatedStringJs result; | |
| 6861 | |
| 6862 final _SVGAnimatedLengthJs width; | |
| 6863 | |
| 6864 final _SVGAnimatedLengthJs x; | |
| 6865 | |
| 6866 final _SVGAnimatedLengthJs y; | |
| 6867 | |
| 6868 // From SVGStylable | |
| 6869 | |
| 6870 final _SVGAnimatedStringJs className; | |
| 6871 | |
| 6872 // Use implementation from Element. | |
| 6873 // final _CSSStyleDeclarationJs style; | |
| 6874 | |
| 6875 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6876 } | |
| 6877 | |
| 6878 class _SVGFEColorMatrixElementJs extends _SVGElementJs implements SVGFEColorMatr
ixElement native "*SVGFEColorMatrixElement" { | |
| 6879 | |
| 6880 static final int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; | |
| 6881 | |
| 6882 static final int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; | |
| 6883 | |
| 6884 static final int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; | |
| 6885 | |
| 6886 static final int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; | |
| 6887 | |
| 6888 static final int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; | |
| 6889 | |
| 6890 final _SVGAnimatedStringJs in1; | |
| 6891 | |
| 6892 final _SVGAnimatedEnumerationJs type; | |
| 6893 | |
| 6894 final _SVGAnimatedNumberListJs values; | |
| 6895 | |
| 6896 // From SVGFilterPrimitiveStandardAttributes | |
| 6897 | |
| 6898 final _SVGAnimatedLengthJs height; | |
| 6899 | |
| 6900 final _SVGAnimatedStringJs result; | |
| 6901 | |
| 6902 final _SVGAnimatedLengthJs width; | |
| 6903 | |
| 6904 final _SVGAnimatedLengthJs x; | |
| 6905 | |
| 6906 final _SVGAnimatedLengthJs y; | |
| 6907 | |
| 6908 // From SVGStylable | |
| 6909 | |
| 6910 final _SVGAnimatedStringJs className; | |
| 6911 | |
| 6912 // Use implementation from Element. | |
| 6913 // final _CSSStyleDeclarationJs style; | |
| 6914 | |
| 6915 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6916 } | |
| 6917 | |
| 6918 class _SVGFEComponentTransferElementJs extends _SVGElementJs implements SVGFECom
ponentTransferElement native "*SVGFEComponentTransferElement" { | |
| 6919 | |
| 6920 final _SVGAnimatedStringJs in1; | |
| 6921 | |
| 6922 // From SVGFilterPrimitiveStandardAttributes | |
| 6923 | |
| 6924 final _SVGAnimatedLengthJs height; | |
| 6925 | |
| 6926 final _SVGAnimatedStringJs result; | |
| 6927 | |
| 6928 final _SVGAnimatedLengthJs width; | |
| 6929 | |
| 6930 final _SVGAnimatedLengthJs x; | |
| 6931 | |
| 6932 final _SVGAnimatedLengthJs y; | |
| 6933 | |
| 6934 // From SVGStylable | |
| 6935 | |
| 6936 final _SVGAnimatedStringJs className; | |
| 6937 | |
| 6938 // Use implementation from Element. | |
| 6939 // final _CSSStyleDeclarationJs style; | |
| 6940 | |
| 6941 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6942 } | |
| 6943 | |
| 6944 class _SVGFECompositeElementJs extends _SVGElementJs implements SVGFECompositeEl
ement native "*SVGFECompositeElement" { | |
| 6945 | |
| 6946 static final int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; | |
| 6947 | |
| 6948 static final int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; | |
| 6949 | |
| 6950 static final int SVG_FECOMPOSITE_OPERATOR_IN = 2; | |
| 6951 | |
| 6952 static final int SVG_FECOMPOSITE_OPERATOR_OUT = 3; | |
| 6953 | |
| 6954 static final int SVG_FECOMPOSITE_OPERATOR_OVER = 1; | |
| 6955 | |
| 6956 static final int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; | |
| 6957 | |
| 6958 static final int SVG_FECOMPOSITE_OPERATOR_XOR = 5; | |
| 6959 | |
| 6960 final _SVGAnimatedStringJs in1; | |
| 6961 | |
| 6962 final _SVGAnimatedStringJs in2; | |
| 6963 | |
| 6964 final _SVGAnimatedNumberJs k1; | |
| 6965 | |
| 6966 final _SVGAnimatedNumberJs k2; | |
| 6967 | |
| 6968 final _SVGAnimatedNumberJs k3; | |
| 6969 | |
| 6970 final _SVGAnimatedNumberJs k4; | |
| 6971 | |
| 6972 final _SVGAnimatedEnumerationJs operator; | |
| 6973 | |
| 6974 // From SVGFilterPrimitiveStandardAttributes | |
| 6975 | |
| 6976 final _SVGAnimatedLengthJs height; | |
| 6977 | |
| 6978 final _SVGAnimatedStringJs result; | |
| 6979 | |
| 6980 final _SVGAnimatedLengthJs width; | |
| 6981 | |
| 6982 final _SVGAnimatedLengthJs x; | |
| 6983 | |
| 6984 final _SVGAnimatedLengthJs y; | |
| 6985 | |
| 6986 // From SVGStylable | |
| 6987 | |
| 6988 final _SVGAnimatedStringJs className; | |
| 6989 | |
| 6990 // Use implementation from Element. | |
| 6991 // final _CSSStyleDeclarationJs style; | |
| 6992 | |
| 6993 _CSSValueJs getPresentationAttribute(String name) native; | |
| 6994 } | |
| 6995 | |
| 6996 class _SVGFEConvolveMatrixElementJs extends _SVGElementJs implements SVGFEConvol
veMatrixElement native "*SVGFEConvolveMatrixElement" { | |
| 6997 | |
| 6998 static final int SVG_EDGEMODE_DUPLICATE = 1; | |
| 6999 | |
| 7000 static final int SVG_EDGEMODE_NONE = 3; | |
| 7001 | |
| 7002 static final int SVG_EDGEMODE_UNKNOWN = 0; | |
| 7003 | |
| 7004 static final int SVG_EDGEMODE_WRAP = 2; | |
| 7005 | |
| 7006 final _SVGAnimatedNumberJs bias; | |
| 7007 | |
| 7008 final _SVGAnimatedNumberJs divisor; | |
| 7009 | |
| 7010 final _SVGAnimatedEnumerationJs edgeMode; | |
| 7011 | |
| 7012 final _SVGAnimatedStringJs in1; | |
| 7013 | |
| 7014 final _SVGAnimatedNumberListJs kernelMatrix; | |
| 7015 | |
| 7016 final _SVGAnimatedNumberJs kernelUnitLengthX; | |
| 7017 | |
| 7018 final _SVGAnimatedNumberJs kernelUnitLengthY; | |
| 7019 | |
| 7020 final _SVGAnimatedIntegerJs orderX; | |
| 7021 | |
| 7022 final _SVGAnimatedIntegerJs orderY; | |
| 7023 | |
| 7024 final _SVGAnimatedBooleanJs preserveAlpha; | |
| 7025 | |
| 7026 final _SVGAnimatedIntegerJs targetX; | |
| 7027 | |
| 7028 final _SVGAnimatedIntegerJs targetY; | |
| 7029 | |
| 7030 // From SVGFilterPrimitiveStandardAttributes | |
| 7031 | |
| 7032 final _SVGAnimatedLengthJs height; | |
| 7033 | |
| 7034 final _SVGAnimatedStringJs result; | |
| 7035 | |
| 7036 final _SVGAnimatedLengthJs width; | |
| 7037 | |
| 7038 final _SVGAnimatedLengthJs x; | |
| 7039 | |
| 7040 final _SVGAnimatedLengthJs y; | |
| 7041 | |
| 7042 // From SVGStylable | |
| 7043 | |
| 7044 final _SVGAnimatedStringJs className; | |
| 7045 | |
| 7046 // Use implementation from Element. | |
| 7047 // final _CSSStyleDeclarationJs style; | |
| 7048 | |
| 7049 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7050 } | |
| 7051 | |
| 7052 class _SVGFEDiffuseLightingElementJs extends _SVGElementJs implements SVGFEDiffu
seLightingElement native "*SVGFEDiffuseLightingElement" { | |
| 7053 | |
| 7054 final _SVGAnimatedNumberJs diffuseConstant; | |
| 7055 | |
| 7056 final _SVGAnimatedStringJs in1; | |
| 7057 | |
| 7058 final _SVGAnimatedNumberJs kernelUnitLengthX; | |
| 7059 | |
| 7060 final _SVGAnimatedNumberJs kernelUnitLengthY; | |
| 7061 | |
| 7062 final _SVGAnimatedNumberJs surfaceScale; | |
| 7063 | |
| 7064 // From SVGFilterPrimitiveStandardAttributes | |
| 7065 | |
| 7066 final _SVGAnimatedLengthJs height; | |
| 7067 | |
| 7068 final _SVGAnimatedStringJs result; | |
| 7069 | |
| 7070 final _SVGAnimatedLengthJs width; | |
| 7071 | |
| 7072 final _SVGAnimatedLengthJs x; | |
| 7073 | |
| 7074 final _SVGAnimatedLengthJs y; | |
| 7075 | |
| 7076 // From SVGStylable | |
| 7077 | |
| 7078 final _SVGAnimatedStringJs className; | |
| 7079 | |
| 7080 // Use implementation from Element. | |
| 7081 // final _CSSStyleDeclarationJs style; | |
| 7082 | |
| 7083 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7084 } | |
| 7085 | |
| 7086 class _SVGFEDisplacementMapElementJs extends _SVGElementJs implements SVGFEDispl
acementMapElement native "*SVGFEDisplacementMapElement" { | |
| 7087 | |
| 7088 static final int SVG_CHANNEL_A = 4; | |
| 7089 | |
| 7090 static final int SVG_CHANNEL_B = 3; | |
| 7091 | |
| 7092 static final int SVG_CHANNEL_G = 2; | |
| 7093 | |
| 7094 static final int SVG_CHANNEL_R = 1; | |
| 7095 | |
| 7096 static final int SVG_CHANNEL_UNKNOWN = 0; | |
| 7097 | |
| 7098 final _SVGAnimatedStringJs in1; | |
| 7099 | |
| 7100 final _SVGAnimatedStringJs in2; | |
| 7101 | |
| 7102 final _SVGAnimatedNumberJs scale; | |
| 7103 | |
| 7104 final _SVGAnimatedEnumerationJs xChannelSelector; | |
| 7105 | |
| 7106 final _SVGAnimatedEnumerationJs yChannelSelector; | |
| 7107 | |
| 7108 // From SVGFilterPrimitiveStandardAttributes | |
| 7109 | |
| 7110 final _SVGAnimatedLengthJs height; | |
| 7111 | |
| 7112 final _SVGAnimatedStringJs result; | |
| 7113 | |
| 7114 final _SVGAnimatedLengthJs width; | |
| 7115 | |
| 7116 final _SVGAnimatedLengthJs x; | |
| 7117 | |
| 7118 final _SVGAnimatedLengthJs y; | |
| 7119 | |
| 7120 // From SVGStylable | |
| 7121 | |
| 7122 final _SVGAnimatedStringJs className; | |
| 7123 | |
| 7124 // Use implementation from Element. | |
| 7125 // final _CSSStyleDeclarationJs style; | |
| 7126 | |
| 7127 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7128 } | |
| 7129 | |
| 7130 class _SVGFEDistantLightElementJs extends _SVGElementJs implements SVGFEDistantL
ightElement native "*SVGFEDistantLightElement" { | |
| 7131 | |
| 7132 final _SVGAnimatedNumberJs azimuth; | |
| 7133 | |
| 7134 final _SVGAnimatedNumberJs elevation; | |
| 7135 } | |
| 7136 | |
| 7137 class _SVGFEDropShadowElementJs extends _SVGElementJs implements SVGFEDropShadow
Element native "*SVGFEDropShadowElement" { | |
| 7138 | |
| 7139 final _SVGAnimatedNumberJs dx; | |
| 7140 | |
| 7141 final _SVGAnimatedNumberJs dy; | |
| 7142 | |
| 7143 final _SVGAnimatedStringJs in1; | |
| 7144 | |
| 7145 final _SVGAnimatedNumberJs stdDeviationX; | |
| 7146 | |
| 7147 final _SVGAnimatedNumberJs stdDeviationY; | |
| 7148 | |
| 7149 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; | |
| 7150 | |
| 7151 // From SVGFilterPrimitiveStandardAttributes | |
| 7152 | |
| 7153 final _SVGAnimatedLengthJs height; | |
| 7154 | |
| 7155 final _SVGAnimatedStringJs result; | |
| 7156 | |
| 7157 final _SVGAnimatedLengthJs width; | |
| 7158 | |
| 7159 final _SVGAnimatedLengthJs x; | |
| 7160 | |
| 7161 final _SVGAnimatedLengthJs y; | |
| 7162 | |
| 7163 // From SVGStylable | |
| 7164 | |
| 7165 final _SVGAnimatedStringJs className; | |
| 7166 | |
| 7167 // Use implementation from Element. | |
| 7168 // final _CSSStyleDeclarationJs style; | |
| 7169 | |
| 7170 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7171 } | |
| 7172 | |
| 7173 class _SVGFEFloodElementJs extends _SVGElementJs implements SVGFEFloodElement na
tive "*SVGFEFloodElement" { | |
| 7174 | |
| 7175 // From SVGFilterPrimitiveStandardAttributes | |
| 7176 | |
| 7177 final _SVGAnimatedLengthJs height; | |
| 7178 | |
| 7179 final _SVGAnimatedStringJs result; | |
| 7180 | |
| 7181 final _SVGAnimatedLengthJs width; | |
| 7182 | |
| 7183 final _SVGAnimatedLengthJs x; | |
| 7184 | |
| 7185 final _SVGAnimatedLengthJs y; | |
| 7186 | |
| 7187 // From SVGStylable | |
| 7188 | |
| 7189 final _SVGAnimatedStringJs className; | |
| 7190 | |
| 7191 // Use implementation from Element. | |
| 7192 // final _CSSStyleDeclarationJs style; | |
| 7193 | |
| 7194 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7195 } | |
| 7196 | |
| 7197 class _SVGFEFuncAElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncAElement native "*SVGFEFuncAElement" { | |
| 7198 } | |
| 7199 | |
| 7200 class _SVGFEFuncBElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncBElement native "*SVGFEFuncBElement" { | |
| 7201 } | |
| 7202 | |
| 7203 class _SVGFEFuncGElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncGElement native "*SVGFEFuncGElement" { | |
| 7204 } | |
| 7205 | |
| 7206 class _SVGFEFuncRElementJs extends _SVGComponentTransferFunctionElementJs implem
ents SVGFEFuncRElement native "*SVGFEFuncRElement" { | |
| 7207 } | |
| 7208 | |
| 7209 class _SVGFEGaussianBlurElementJs extends _SVGElementJs implements SVGFEGaussian
BlurElement native "*SVGFEGaussianBlurElement" { | |
| 7210 | |
| 7211 final _SVGAnimatedStringJs in1; | |
| 7212 | |
| 7213 final _SVGAnimatedNumberJs stdDeviationX; | |
| 7214 | |
| 7215 final _SVGAnimatedNumberJs stdDeviationY; | |
| 7216 | |
| 7217 void setStdDeviation(num stdDeviationX, num stdDeviationY) native; | |
| 7218 | |
| 7219 // From SVGFilterPrimitiveStandardAttributes | |
| 7220 | |
| 7221 final _SVGAnimatedLengthJs height; | |
| 7222 | |
| 7223 final _SVGAnimatedStringJs result; | |
| 7224 | |
| 7225 final _SVGAnimatedLengthJs width; | |
| 7226 | |
| 7227 final _SVGAnimatedLengthJs x; | |
| 7228 | |
| 7229 final _SVGAnimatedLengthJs y; | |
| 7230 | |
| 7231 // From SVGStylable | |
| 7232 | |
| 7233 final _SVGAnimatedStringJs className; | |
| 7234 | |
| 7235 // Use implementation from Element. | |
| 7236 // final _CSSStyleDeclarationJs style; | |
| 7237 | |
| 7238 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7239 } | |
| 7240 | |
| 7241 class _SVGFEImageElementJs extends _SVGElementJs implements SVGFEImageElement na
tive "*SVGFEImageElement" { | |
| 7242 | |
| 7243 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
| 7244 | |
| 7245 // From SVGURIReference | |
| 7246 | |
| 7247 final _SVGAnimatedStringJs href; | |
| 7248 | |
| 7249 // From SVGLangSpace | |
| 7250 | |
| 7251 String xmllang; | |
| 7252 | |
| 7253 String xmlspace; | |
| 7254 | |
| 7255 // From SVGExternalResourcesRequired | |
| 7256 | |
| 7257 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 7258 | |
| 7259 // From SVGFilterPrimitiveStandardAttributes | |
| 7260 | |
| 7261 final _SVGAnimatedLengthJs height; | |
| 7262 | |
| 7263 final _SVGAnimatedStringJs result; | |
| 7264 | |
| 7265 final _SVGAnimatedLengthJs width; | |
| 7266 | |
| 7267 final _SVGAnimatedLengthJs x; | |
| 7268 | |
| 7269 final _SVGAnimatedLengthJs y; | |
| 7270 | |
| 7271 // From SVGStylable | |
| 7272 | |
| 7273 final _SVGAnimatedStringJs className; | |
| 7274 | |
| 7275 // Use implementation from Element. | |
| 7276 // final _CSSStyleDeclarationJs style; | |
| 7277 | |
| 7278 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7279 } | |
| 7280 | |
| 7281 class _SVGFEMergeElementJs extends _SVGElementJs implements SVGFEMergeElement na
tive "*SVGFEMergeElement" { | |
| 7282 | |
| 7283 // From SVGFilterPrimitiveStandardAttributes | |
| 7284 | |
| 7285 final _SVGAnimatedLengthJs height; | |
| 7286 | |
| 7287 final _SVGAnimatedStringJs result; | |
| 7288 | |
| 7289 final _SVGAnimatedLengthJs width; | |
| 7290 | |
| 7291 final _SVGAnimatedLengthJs x; | |
| 7292 | |
| 7293 final _SVGAnimatedLengthJs y; | |
| 7294 | |
| 7295 // From SVGStylable | |
| 7296 | |
| 7297 final _SVGAnimatedStringJs className; | |
| 7298 | |
| 7299 // Use implementation from Element. | |
| 7300 // final _CSSStyleDeclarationJs style; | |
| 7301 | |
| 7302 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7303 } | |
| 7304 | |
| 7305 class _SVGFEMergeNodeElementJs extends _SVGElementJs implements SVGFEMergeNodeEl
ement native "*SVGFEMergeNodeElement" { | |
| 7306 | |
| 7307 final _SVGAnimatedStringJs in1; | |
| 7308 } | |
| 7309 | |
| 7310 class _SVGFEMorphologyElementJs extends _SVGElementJs implements SVGFEMorphology
Element native "*SVGFEMorphologyElement" { | |
| 7311 | |
| 7312 static final int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; | |
| 7313 | |
| 7314 static final int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; | |
| 7315 | |
| 7316 static final int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; | |
| 7317 | |
| 7318 final _SVGAnimatedStringJs in1; | |
| 7319 | |
| 7320 final _SVGAnimatedEnumerationJs operator; | |
| 7321 | |
| 7322 final _SVGAnimatedNumberJs radiusX; | |
| 7323 | |
| 7324 final _SVGAnimatedNumberJs radiusY; | |
| 7325 | |
| 7326 void setRadius(num radiusX, num radiusY) native; | |
| 7327 | |
| 7328 // From SVGFilterPrimitiveStandardAttributes | |
| 7329 | |
| 7330 final _SVGAnimatedLengthJs height; | |
| 7331 | |
| 7332 final _SVGAnimatedStringJs result; | |
| 7333 | |
| 7334 final _SVGAnimatedLengthJs width; | |
| 7335 | |
| 7336 final _SVGAnimatedLengthJs x; | |
| 7337 | |
| 7338 final _SVGAnimatedLengthJs y; | |
| 7339 | |
| 7340 // From SVGStylable | |
| 7341 | |
| 7342 final _SVGAnimatedStringJs className; | |
| 7343 | |
| 7344 // Use implementation from Element. | |
| 7345 // final _CSSStyleDeclarationJs style; | |
| 7346 | |
| 7347 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7348 } | |
| 7349 | |
| 7350 class _SVGFEOffsetElementJs extends _SVGElementJs implements SVGFEOffsetElement
native "*SVGFEOffsetElement" { | |
| 7351 | |
| 7352 final _SVGAnimatedNumberJs dx; | |
| 7353 | |
| 7354 final _SVGAnimatedNumberJs dy; | |
| 7355 | |
| 7356 final _SVGAnimatedStringJs in1; | |
| 7357 | |
| 7358 // From SVGFilterPrimitiveStandardAttributes | |
| 7359 | |
| 7360 final _SVGAnimatedLengthJs height; | |
| 7361 | |
| 7362 final _SVGAnimatedStringJs result; | |
| 7363 | |
| 7364 final _SVGAnimatedLengthJs width; | |
| 7365 | |
| 7366 final _SVGAnimatedLengthJs x; | |
| 7367 | |
| 7368 final _SVGAnimatedLengthJs y; | |
| 7369 | |
| 7370 // From SVGStylable | |
| 7371 | |
| 7372 final _SVGAnimatedStringJs className; | |
| 7373 | |
| 7374 // Use implementation from Element. | |
| 7375 // final _CSSStyleDeclarationJs style; | |
| 7376 | |
| 7377 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7378 } | |
| 7379 | |
| 7380 class _SVGFEPointLightElementJs extends _SVGElementJs implements SVGFEPointLight
Element native "*SVGFEPointLightElement" { | |
| 7381 | |
| 7382 final _SVGAnimatedNumberJs x; | |
| 7383 | |
| 7384 final _SVGAnimatedNumberJs y; | |
| 7385 | |
| 7386 final _SVGAnimatedNumberJs z; | |
| 7387 } | |
| 7388 | |
| 7389 class _SVGFESpecularLightingElementJs extends _SVGElementJs implements SVGFESpec
ularLightingElement native "*SVGFESpecularLightingElement" { | |
| 7390 | |
| 7391 final _SVGAnimatedStringJs in1; | |
| 7392 | |
| 7393 final _SVGAnimatedNumberJs specularConstant; | |
| 7394 | |
| 7395 final _SVGAnimatedNumberJs specularExponent; | |
| 7396 | |
| 7397 final _SVGAnimatedNumberJs surfaceScale; | |
| 7398 | |
| 7399 // From SVGFilterPrimitiveStandardAttributes | |
| 7400 | |
| 7401 final _SVGAnimatedLengthJs height; | |
| 7402 | |
| 7403 final _SVGAnimatedStringJs result; | |
| 7404 | |
| 7405 final _SVGAnimatedLengthJs width; | |
| 7406 | |
| 7407 final _SVGAnimatedLengthJs x; | |
| 7408 | |
| 7409 final _SVGAnimatedLengthJs y; | |
| 7410 | |
| 7411 // From SVGStylable | |
| 7412 | |
| 7413 final _SVGAnimatedStringJs className; | |
| 7414 | |
| 7415 // Use implementation from Element. | |
| 7416 // final _CSSStyleDeclarationJs style; | |
| 7417 | |
| 7418 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7419 } | |
| 7420 | |
| 7421 class _SVGFESpotLightElementJs extends _SVGElementJs implements SVGFESpotLightEl
ement native "*SVGFESpotLightElement" { | |
| 7422 | |
| 7423 final _SVGAnimatedNumberJs limitingConeAngle; | |
| 7424 | |
| 7425 final _SVGAnimatedNumberJs pointsAtX; | |
| 7426 | |
| 7427 final _SVGAnimatedNumberJs pointsAtY; | |
| 7428 | |
| 7429 final _SVGAnimatedNumberJs pointsAtZ; | |
| 7430 | |
| 7431 final _SVGAnimatedNumberJs specularExponent; | |
| 7432 | |
| 7433 final _SVGAnimatedNumberJs x; | |
| 7434 | |
| 7435 final _SVGAnimatedNumberJs y; | |
| 7436 | |
| 7437 final _SVGAnimatedNumberJs z; | |
| 7438 } | |
| 7439 | |
| 7440 class _SVGFETileElementJs extends _SVGElementJs implements SVGFETileElement nati
ve "*SVGFETileElement" { | |
| 7441 | |
| 7442 final _SVGAnimatedStringJs in1; | |
| 7443 | |
| 7444 // From SVGFilterPrimitiveStandardAttributes | |
| 7445 | |
| 7446 final _SVGAnimatedLengthJs height; | |
| 7447 | |
| 7448 final _SVGAnimatedStringJs result; | |
| 7449 | |
| 7450 final _SVGAnimatedLengthJs width; | |
| 7451 | |
| 7452 final _SVGAnimatedLengthJs x; | |
| 7453 | |
| 7454 final _SVGAnimatedLengthJs y; | |
| 7455 | |
| 7456 // From SVGStylable | |
| 7457 | |
| 7458 final _SVGAnimatedStringJs className; | |
| 7459 | |
| 7460 // Use implementation from Element. | |
| 7461 // final _CSSStyleDeclarationJs style; | |
| 7462 | |
| 7463 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7464 } | |
| 7465 | |
| 7466 class _SVGFETurbulenceElementJs extends _SVGElementJs implements SVGFETurbulence
Element native "*SVGFETurbulenceElement" { | |
| 7467 | |
| 7468 static final int SVG_STITCHTYPE_NOSTITCH = 2; | |
| 7469 | |
| 7470 static final int SVG_STITCHTYPE_STITCH = 1; | |
| 7471 | |
| 7472 static final int SVG_STITCHTYPE_UNKNOWN = 0; | |
| 7473 | |
| 7474 static final int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; | |
| 7475 | |
| 7476 static final int SVG_TURBULENCE_TYPE_TURBULENCE = 2; | |
| 7477 | |
| 7478 static final int SVG_TURBULENCE_TYPE_UNKNOWN = 0; | |
| 7479 | |
| 7480 final _SVGAnimatedNumberJs baseFrequencyX; | |
| 7481 | |
| 7482 final _SVGAnimatedNumberJs baseFrequencyY; | |
| 7483 | |
| 7484 final _SVGAnimatedIntegerJs numOctaves; | |
| 7485 | |
| 7486 final _SVGAnimatedNumberJs seed; | |
| 7487 | |
| 7488 final _SVGAnimatedEnumerationJs stitchTiles; | |
| 7489 | |
| 7490 final _SVGAnimatedEnumerationJs type; | |
| 7491 | |
| 7492 // From SVGFilterPrimitiveStandardAttributes | |
| 7493 | |
| 7494 final _SVGAnimatedLengthJs height; | |
| 7495 | |
| 7496 final _SVGAnimatedStringJs result; | |
| 7497 | |
| 7498 final _SVGAnimatedLengthJs width; | |
| 7499 | |
| 7500 final _SVGAnimatedLengthJs x; | |
| 7501 | |
| 7502 final _SVGAnimatedLengthJs y; | |
| 7503 | |
| 7504 // From SVGStylable | |
| 7505 | |
| 7506 final _SVGAnimatedStringJs className; | |
| 7507 | |
| 7508 // Use implementation from Element. | |
| 7509 // final _CSSStyleDeclarationJs style; | |
| 7510 | |
| 7511 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7512 } | |
| 7513 | |
| 7514 class _SVGFilterElementJs extends _SVGElementJs implements SVGFilterElement nati
ve "*SVGFilterElement" { | |
| 7515 | |
| 7516 final _SVGAnimatedIntegerJs filterResX; | |
| 7517 | |
| 7518 final _SVGAnimatedIntegerJs filterResY; | |
| 7519 | |
| 7520 final _SVGAnimatedEnumerationJs filterUnits; | |
| 7521 | |
| 7522 final _SVGAnimatedLengthJs height; | |
| 7523 | |
| 7524 final _SVGAnimatedEnumerationJs primitiveUnits; | |
| 7525 | |
| 7526 final _SVGAnimatedLengthJs width; | |
| 7527 | |
| 7528 final _SVGAnimatedLengthJs x; | |
| 7529 | |
| 7530 final _SVGAnimatedLengthJs y; | |
| 7531 | |
| 7532 void setFilterRes(int filterResX, int filterResY) native; | |
| 7533 | |
| 7534 // From SVGURIReference | |
| 7535 | |
| 7536 final _SVGAnimatedStringJs href; | |
| 7537 | |
| 7538 // From SVGLangSpace | |
| 7539 | |
| 7540 String xmllang; | |
| 7541 | |
| 7542 String xmlspace; | |
| 7543 | |
| 7544 // From SVGExternalResourcesRequired | |
| 7545 | |
| 7546 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 7547 | |
| 7548 // From SVGStylable | |
| 7549 | |
| 7550 final _SVGAnimatedStringJs className; | |
| 7551 | |
| 7552 // Use implementation from Element. | |
| 7553 // final _CSSStyleDeclarationJs style; | |
| 7554 | |
| 7555 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7556 } | |
| 7557 | |
| 7558 class _SVGFontElementJs extends _SVGElementJs implements SVGFontElement native "
*SVGFontElement" { | |
| 7559 } | |
| 7560 | |
| 7561 class _SVGFontFaceElementJs extends _SVGElementJs implements SVGFontFaceElement
native "*SVGFontFaceElement" { | |
| 7562 } | |
| 7563 | |
| 7564 class _SVGFontFaceFormatElementJs extends _SVGElementJs implements SVGFontFaceFo
rmatElement native "*SVGFontFaceFormatElement" { | |
| 7565 } | |
| 7566 | |
| 7567 class _SVGFontFaceNameElementJs extends _SVGElementJs implements SVGFontFaceName
Element native "*SVGFontFaceNameElement" { | |
| 7568 } | |
| 7569 | |
| 7570 class _SVGFontFaceSrcElementJs extends _SVGElementJs implements SVGFontFaceSrcEl
ement native "*SVGFontFaceSrcElement" { | |
| 7571 } | |
| 7572 | |
| 7573 class _SVGFontFaceUriElementJs extends _SVGElementJs implements SVGFontFaceUriEl
ement native "*SVGFontFaceUriElement" { | |
| 7574 } | |
| 7575 | |
| 7576 class _SVGForeignObjectElementJs extends _SVGElementJs implements SVGForeignObje
ctElement native "*SVGForeignObjectElement" { | |
| 7577 | |
| 7578 final _SVGAnimatedLengthJs height; | |
| 7579 | |
| 7580 final _SVGAnimatedLengthJs width; | |
| 7581 | |
| 7582 final _SVGAnimatedLengthJs x; | |
| 7583 | |
| 7584 final _SVGAnimatedLengthJs y; | |
| 7585 | |
| 7586 // From SVGTests | |
| 7587 | |
| 7588 final _SVGStringListJs requiredExtensions; | |
| 7589 | |
| 7590 final _SVGStringListJs requiredFeatures; | |
| 7591 | |
| 7592 final _SVGStringListJs systemLanguage; | |
| 7593 | |
| 7594 bool hasExtension(String extension) native; | |
| 7595 | |
| 7596 // From SVGLangSpace | |
| 7597 | |
| 7598 String xmllang; | |
| 7599 | |
| 7600 String xmlspace; | |
| 7601 | |
| 7602 // From SVGExternalResourcesRequired | |
| 7603 | |
| 7604 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 7605 | |
| 7606 // From SVGStylable | |
| 7607 | |
| 7608 final _SVGAnimatedStringJs className; | |
| 7609 | |
| 7610 // Use implementation from Element. | |
| 7611 // final _CSSStyleDeclarationJs style; | |
| 7612 | |
| 7613 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7614 | |
| 7615 // From SVGTransformable | |
| 7616 | |
| 7617 final _SVGAnimatedTransformListJs transform; | |
| 7618 | |
| 7619 // From SVGLocatable | |
| 7620 | |
| 7621 final _SVGElementJs farthestViewportElement; | |
| 7622 | |
| 7623 final _SVGElementJs nearestViewportElement; | |
| 7624 | |
| 7625 _SVGRectJs getBBox() native; | |
| 7626 | |
| 7627 _SVGMatrixJs getCTM() native; | |
| 7628 | |
| 7629 _SVGMatrixJs getScreenCTM() native; | |
| 7630 | |
| 7631 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 7632 } | |
| 7633 | |
| 7634 class _SVGGElementJs extends _SVGElementJs implements SVGGElement native "*SVGGE
lement" { | |
| 7635 | |
| 7636 // From SVGTests | |
| 7637 | |
| 7638 final _SVGStringListJs requiredExtensions; | |
| 7639 | |
| 7640 final _SVGStringListJs requiredFeatures; | |
| 7641 | |
| 7642 final _SVGStringListJs systemLanguage; | |
| 7643 | |
| 7644 bool hasExtension(String extension) native; | |
| 7645 | |
| 7646 // From SVGLangSpace | |
| 7647 | |
| 7648 String xmllang; | |
| 7649 | |
| 7650 String xmlspace; | |
| 7651 | |
| 7652 // From SVGExternalResourcesRequired | |
| 7653 | |
| 7654 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 7655 | |
| 7656 // From SVGStylable | |
| 7657 | |
| 7658 final _SVGAnimatedStringJs className; | |
| 7659 | |
| 7660 // Use implementation from Element. | |
| 7661 // final _CSSStyleDeclarationJs style; | |
| 7662 | |
| 7663 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7664 | |
| 7665 // From SVGTransformable | |
| 7666 | |
| 7667 final _SVGAnimatedTransformListJs transform; | |
| 7668 | |
| 7669 // From SVGLocatable | |
| 7670 | |
| 7671 final _SVGElementJs farthestViewportElement; | |
| 7672 | |
| 7673 final _SVGElementJs nearestViewportElement; | |
| 7674 | |
| 7675 _SVGRectJs getBBox() native; | |
| 7676 | |
| 7677 _SVGMatrixJs getCTM() native; | |
| 7678 | |
| 7679 _SVGMatrixJs getScreenCTM() native; | |
| 7680 | |
| 7681 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 7682 } | |
| 7683 | |
| 7684 class _SVGGlyphElementJs extends _SVGElementJs implements SVGGlyphElement native
"*SVGGlyphElement" { | |
| 7685 } | |
| 7686 | |
| 7687 class _SVGGlyphRefElementJs extends _SVGElementJs implements SVGGlyphRefElement
native "*SVGGlyphRefElement" { | |
| 7688 | |
| 7689 num dx; | |
| 7690 | |
| 7691 num dy; | |
| 7692 | |
| 7693 String format; | |
| 7694 | |
| 7695 String glyphRef; | |
| 7696 | |
| 7697 num x; | |
| 7698 | |
| 7699 num y; | |
| 7700 | |
| 7701 // From SVGURIReference | |
| 7702 | |
| 7703 final _SVGAnimatedStringJs href; | |
| 7704 | |
| 7705 // From SVGStylable | |
| 7706 | |
| 7707 final _SVGAnimatedStringJs className; | |
| 7708 | |
| 7709 // Use implementation from Element. | |
| 7710 // final _CSSStyleDeclarationJs style; | |
| 7711 | |
| 7712 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7713 } | |
| 7714 | |
| 7715 class _SVGGradientElementJs extends _SVGElementJs implements SVGGradientElement
native "*SVGGradientElement" { | |
| 7716 | |
| 7717 static final int SVG_SPREADMETHOD_PAD = 1; | |
| 7718 | |
| 7719 static final int SVG_SPREADMETHOD_REFLECT = 2; | |
| 7720 | |
| 7721 static final int SVG_SPREADMETHOD_REPEAT = 3; | |
| 7722 | |
| 7723 static final int SVG_SPREADMETHOD_UNKNOWN = 0; | |
| 7724 | |
| 7725 final _SVGAnimatedTransformListJs gradientTransform; | |
| 7726 | |
| 7727 final _SVGAnimatedEnumerationJs gradientUnits; | |
| 7728 | |
| 7729 final _SVGAnimatedEnumerationJs spreadMethod; | |
| 7730 | |
| 7731 // From SVGURIReference | |
| 7732 | |
| 7733 final _SVGAnimatedStringJs href; | |
| 7734 | |
| 7735 // From SVGExternalResourcesRequired | |
| 7736 | |
| 7737 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 7738 | |
| 7739 // From SVGStylable | |
| 7740 | |
| 7741 final _SVGAnimatedStringJs className; | |
| 7742 | |
| 7743 // Use implementation from Element. | |
| 7744 // final _CSSStyleDeclarationJs style; | |
| 7745 | |
| 7746 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7747 } | |
| 7748 | |
| 7749 class _SVGHKernElementJs extends _SVGElementJs implements SVGHKernElement native
"*SVGHKernElement" { | |
| 7750 } | |
| 7751 | |
| 7752 class _SVGImageElementJs extends _SVGElementJs implements SVGImageElement native
"*SVGImageElement" { | |
| 7753 | |
| 7754 final _SVGAnimatedLengthJs height; | |
| 7755 | |
| 7756 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
| 7757 | |
| 7758 final _SVGAnimatedLengthJs width; | |
| 7759 | |
| 7760 final _SVGAnimatedLengthJs x; | |
| 7761 | |
| 7762 final _SVGAnimatedLengthJs y; | |
| 7763 | |
| 7764 // From SVGURIReference | |
| 7765 | |
| 7766 final _SVGAnimatedStringJs href; | |
| 7767 | |
| 7768 // From SVGTests | |
| 7769 | |
| 7770 final _SVGStringListJs requiredExtensions; | |
| 7771 | |
| 7772 final _SVGStringListJs requiredFeatures; | |
| 7773 | |
| 7774 final _SVGStringListJs systemLanguage; | |
| 7775 | |
| 7776 bool hasExtension(String extension) native; | |
| 7777 | |
| 7778 // From SVGLangSpace | |
| 7779 | |
| 7780 String xmllang; | |
| 7781 | |
| 7782 String xmlspace; | |
| 7783 | |
| 7784 // From SVGExternalResourcesRequired | |
| 7785 | |
| 7786 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 7787 | |
| 7788 // From SVGStylable | |
| 7789 | |
| 7790 final _SVGAnimatedStringJs className; | |
| 7791 | |
| 7792 // Use implementation from Element. | |
| 7793 // final _CSSStyleDeclarationJs style; | |
| 7794 | |
| 7795 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7796 | |
| 7797 // From SVGTransformable | |
| 7798 | |
| 7799 final _SVGAnimatedTransformListJs transform; | |
| 7800 | |
| 7801 // From SVGLocatable | |
| 7802 | |
| 7803 final _SVGElementJs farthestViewportElement; | |
| 7804 | |
| 7805 final _SVGElementJs nearestViewportElement; | |
| 7806 | |
| 7807 _SVGRectJs getBBox() native; | |
| 7808 | |
| 7809 _SVGMatrixJs getCTM() native; | |
| 7810 | |
| 7811 _SVGMatrixJs getScreenCTM() native; | |
| 7812 | |
| 7813 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 7814 } | |
| 7815 | |
| 7816 class _SVGLengthJs extends _DOMTypeJs implements SVGLength native "*SVGLength" { | |
| 7817 | |
| 7818 static final int SVG_LENGTHTYPE_CM = 6; | |
| 7819 | |
| 7820 static final int SVG_LENGTHTYPE_EMS = 3; | |
| 7821 | |
| 7822 static final int SVG_LENGTHTYPE_EXS = 4; | |
| 7823 | |
| 7824 static final int SVG_LENGTHTYPE_IN = 8; | |
| 7825 | |
| 7826 static final int SVG_LENGTHTYPE_MM = 7; | |
| 7827 | |
| 7828 static final int SVG_LENGTHTYPE_NUMBER = 1; | |
| 7829 | |
| 7830 static final int SVG_LENGTHTYPE_PC = 10; | |
| 7831 | |
| 7832 static final int SVG_LENGTHTYPE_PERCENTAGE = 2; | |
| 7833 | |
| 7834 static final int SVG_LENGTHTYPE_PT = 9; | |
| 7835 | |
| 7836 static final int SVG_LENGTHTYPE_PX = 5; | |
| 7837 | |
| 7838 static final int SVG_LENGTHTYPE_UNKNOWN = 0; | |
| 7839 | |
| 7840 final int unitType; | |
| 7841 | |
| 7842 num value; | |
| 7843 | |
| 7844 String valueAsString; | |
| 7845 | |
| 7846 num valueInSpecifiedUnits; | |
| 7847 | |
| 7848 void convertToSpecifiedUnits(int unitType) native; | |
| 7849 | |
| 7850 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; | |
| 7851 } | |
| 7852 | |
| 7853 class _SVGLengthListJs extends _DOMTypeJs implements SVGLengthList native "*SVGL
engthList" { | |
| 7854 | |
| 7855 final int numberOfItems; | |
| 7856 | |
| 7857 _SVGLengthJs appendItem(_SVGLengthJs item) native; | |
| 7858 | |
| 7859 void clear() native; | |
| 7860 | |
| 7861 _SVGLengthJs getItem(int index) native; | |
| 7862 | |
| 7863 _SVGLengthJs initialize(_SVGLengthJs item) native; | |
| 7864 | |
| 7865 _SVGLengthJs insertItemBefore(_SVGLengthJs item, int index) native; | |
| 7866 | |
| 7867 _SVGLengthJs removeItem(int index) native; | |
| 7868 | |
| 7869 _SVGLengthJs replaceItem(_SVGLengthJs item, int index) native; | |
| 7870 } | |
| 7871 | |
| 7872 class _SVGLineElementJs extends _SVGElementJs implements SVGLineElement native "
*SVGLineElement" { | |
| 7873 | |
| 7874 final _SVGAnimatedLengthJs x1; | |
| 7875 | |
| 7876 final _SVGAnimatedLengthJs x2; | |
| 7877 | |
| 7878 final _SVGAnimatedLengthJs y1; | |
| 7879 | |
| 7880 final _SVGAnimatedLengthJs y2; | |
| 7881 | |
| 7882 // From SVGTests | |
| 7883 | |
| 7884 final _SVGStringListJs requiredExtensions; | |
| 7885 | |
| 7886 final _SVGStringListJs requiredFeatures; | |
| 7887 | |
| 7888 final _SVGStringListJs systemLanguage; | |
| 7889 | |
| 7890 bool hasExtension(String extension) native; | |
| 7891 | |
| 7892 // From SVGLangSpace | |
| 7893 | |
| 7894 String xmllang; | |
| 7895 | |
| 7896 String xmlspace; | |
| 7897 | |
| 7898 // From SVGExternalResourcesRequired | |
| 7899 | |
| 7900 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 7901 | |
| 7902 // From SVGStylable | |
| 7903 | |
| 7904 final _SVGAnimatedStringJs className; | |
| 7905 | |
| 7906 // Use implementation from Element. | |
| 7907 // final _CSSStyleDeclarationJs style; | |
| 7908 | |
| 7909 _CSSValueJs getPresentationAttribute(String name) native; | |
| 7910 | |
| 7911 // From SVGTransformable | |
| 7912 | |
| 7913 final _SVGAnimatedTransformListJs transform; | |
| 7914 | |
| 7915 // From SVGLocatable | |
| 7916 | |
| 7917 final _SVGElementJs farthestViewportElement; | |
| 7918 | |
| 7919 final _SVGElementJs nearestViewportElement; | |
| 7920 | |
| 7921 _SVGRectJs getBBox() native; | |
| 7922 | |
| 7923 _SVGMatrixJs getCTM() native; | |
| 7924 | |
| 7925 _SVGMatrixJs getScreenCTM() native; | |
| 7926 | |
| 7927 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 7928 } | |
| 7929 | |
| 7930 class _SVGLinearGradientElementJs extends _SVGGradientElementJs implements SVGLi
nearGradientElement native "*SVGLinearGradientElement" { | |
| 7931 | |
| 7932 final _SVGAnimatedLengthJs x1; | |
| 7933 | |
| 7934 final _SVGAnimatedLengthJs x2; | |
| 7935 | |
| 7936 final _SVGAnimatedLengthJs y1; | |
| 7937 | |
| 7938 final _SVGAnimatedLengthJs y2; | |
| 7939 } | |
| 7940 | |
| 7941 class _SVGMPathElementJs extends _SVGElementJs implements SVGMPathElement native
"*SVGMPathElement" { | |
| 7942 | |
| 7943 // From SVGURIReference | |
| 7944 | |
| 7945 final _SVGAnimatedStringJs href; | |
| 7946 | |
| 7947 // From SVGExternalResourcesRequired | |
| 7948 | |
| 7949 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 7950 } | |
| 7951 | |
| 7952 class _SVGMarkerElementJs extends _SVGElementJs implements SVGMarkerElement nati
ve "*SVGMarkerElement" { | |
| 7953 | |
| 7954 static final int SVG_MARKERUNITS_STROKEWIDTH = 2; | |
| 7955 | |
| 7956 static final int SVG_MARKERUNITS_UNKNOWN = 0; | |
| 7957 | |
| 7958 static final int SVG_MARKERUNITS_USERSPACEONUSE = 1; | |
| 7959 | |
| 7960 static final int SVG_MARKER_ORIENT_ANGLE = 2; | |
| 7961 | |
| 7962 static final int SVG_MARKER_ORIENT_AUTO = 1; | |
| 7963 | |
| 7964 static final int SVG_MARKER_ORIENT_UNKNOWN = 0; | |
| 7965 | |
| 7966 final _SVGAnimatedLengthJs markerHeight; | |
| 7967 | |
| 7968 final _SVGAnimatedEnumerationJs markerUnits; | |
| 7969 | |
| 7970 final _SVGAnimatedLengthJs markerWidth; | |
| 7971 | |
| 7972 final _SVGAnimatedAngleJs orientAngle; | |
| 7973 | |
| 7974 final _SVGAnimatedEnumerationJs orientType; | |
| 7975 | |
| 7976 final _SVGAnimatedLengthJs refX; | |
| 7977 | |
| 7978 final _SVGAnimatedLengthJs refY; | |
| 7979 | |
| 7980 void setOrientToAngle(_SVGAngleJs angle) native; | |
| 7981 | |
| 7982 void setOrientToAuto() native; | |
| 7983 | |
| 7984 // From SVGLangSpace | |
| 7985 | |
| 7986 String xmllang; | |
| 7987 | |
| 7988 String xmlspace; | |
| 7989 | |
| 7990 // From SVGExternalResourcesRequired | |
| 7991 | |
| 7992 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 7993 | |
| 7994 // From SVGStylable | |
| 7995 | |
| 7996 final _SVGAnimatedStringJs className; | |
| 7997 | |
| 7998 // Use implementation from Element. | |
| 7999 // final _CSSStyleDeclarationJs style; | |
| 8000 | |
| 8001 _CSSValueJs getPresentationAttribute(String name) native; | |
| 8002 | |
| 8003 // From SVGFitToViewBox | |
| 8004 | |
| 8005 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
| 8006 | |
| 8007 final _SVGAnimatedRectJs viewBox; | |
| 8008 } | |
| 8009 | |
| 8010 class _SVGMaskElementJs extends _SVGElementJs implements SVGMaskElement native "
*SVGMaskElement" { | |
| 8011 | |
| 8012 final _SVGAnimatedLengthJs height; | |
| 8013 | |
| 8014 final _SVGAnimatedEnumerationJs maskContentUnits; | |
| 8015 | |
| 8016 final _SVGAnimatedEnumerationJs maskUnits; | |
| 8017 | |
| 8018 final _SVGAnimatedLengthJs width; | |
| 8019 | |
| 8020 final _SVGAnimatedLengthJs x; | |
| 8021 | |
| 8022 final _SVGAnimatedLengthJs y; | |
| 8023 | |
| 8024 // From SVGTests | |
| 8025 | |
| 8026 final _SVGStringListJs requiredExtensions; | |
| 8027 | |
| 8028 final _SVGStringListJs requiredFeatures; | |
| 8029 | |
| 8030 final _SVGStringListJs systemLanguage; | |
| 8031 | |
| 8032 bool hasExtension(String extension) native; | |
| 8033 | |
| 8034 // From SVGLangSpace | |
| 8035 | |
| 8036 String xmllang; | |
| 8037 | |
| 8038 String xmlspace; | |
| 8039 | |
| 8040 // From SVGExternalResourcesRequired | |
| 8041 | |
| 8042 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 8043 | |
| 8044 // From SVGStylable | |
| 8045 | |
| 8046 final _SVGAnimatedStringJs className; | |
| 8047 | |
| 8048 // Use implementation from Element. | |
| 8049 // final _CSSStyleDeclarationJs style; | |
| 8050 | |
| 8051 _CSSValueJs getPresentationAttribute(String name) native; | |
| 8052 } | |
| 8053 | |
| 8054 class _SVGMatrixJs extends _DOMTypeJs implements SVGMatrix native "*SVGMatrix" { | |
| 8055 | |
| 8056 num a; | |
| 8057 | |
| 8058 num b; | |
| 8059 | |
| 8060 num c; | |
| 8061 | |
| 8062 num d; | |
| 8063 | |
| 8064 num e; | |
| 8065 | |
| 8066 num f; | |
| 8067 | |
| 8068 _SVGMatrixJs flipX() native; | |
| 8069 | |
| 8070 _SVGMatrixJs flipY() native; | |
| 8071 | |
| 8072 _SVGMatrixJs inverse() native; | |
| 8073 | |
| 8074 _SVGMatrixJs multiply(_SVGMatrixJs secondMatrix) native; | |
| 8075 | |
| 8076 _SVGMatrixJs rotate(num angle) native; | |
| 8077 | |
| 8078 _SVGMatrixJs rotateFromVector(num x, num y) native; | |
| 8079 | |
| 8080 _SVGMatrixJs scale(num scaleFactor) native; | |
| 8081 | |
| 8082 _SVGMatrixJs scaleNonUniform(num scaleFactorX, num scaleFactorY) native; | |
| 8083 | |
| 8084 _SVGMatrixJs skewX(num angle) native; | |
| 8085 | |
| 8086 _SVGMatrixJs skewY(num angle) native; | |
| 8087 | |
| 8088 _SVGMatrixJs translate(num x, num y) native; | |
| 8089 } | |
| 8090 | |
| 8091 class _SVGMetadataElementJs extends _SVGElementJs implements SVGMetadataElement
native "*SVGMetadataElement" { | |
| 8092 } | |
| 8093 | |
| 8094 class _SVGMissingGlyphElementJs extends _SVGElementJs implements SVGMissingGlyph
Element native "*SVGMissingGlyphElement" { | |
| 8095 } | |
| 8096 | |
| 8097 class _SVGNumberJs extends _DOMTypeJs implements SVGNumber native "*SVGNumber" { | |
| 8098 | |
| 8099 num value; | |
| 8100 } | |
| 8101 | |
| 8102 class _SVGNumberListJs extends _DOMTypeJs implements SVGNumberList native "*SVGN
umberList" { | |
| 8103 | |
| 8104 final int numberOfItems; | |
| 8105 | |
| 8106 _SVGNumberJs appendItem(_SVGNumberJs item) native; | |
| 8107 | |
| 8108 void clear() native; | |
| 8109 | |
| 8110 _SVGNumberJs getItem(int index) native; | |
| 8111 | |
| 8112 _SVGNumberJs initialize(_SVGNumberJs item) native; | |
| 8113 | |
| 8114 _SVGNumberJs insertItemBefore(_SVGNumberJs item, int index) native; | |
| 8115 | |
| 8116 _SVGNumberJs removeItem(int index) native; | |
| 8117 | |
| 8118 _SVGNumberJs replaceItem(_SVGNumberJs item, int index) native; | |
| 8119 } | |
| 8120 | |
| 8121 class _SVGPaintJs extends _SVGColorJs implements SVGPaint native "*SVGPaint" { | |
| 8122 | |
| 8123 static final int SVG_PAINTTYPE_CURRENTCOLOR = 102; | |
| 8124 | |
| 8125 static final int SVG_PAINTTYPE_NONE = 101; | |
| 8126 | |
| 8127 static final int SVG_PAINTTYPE_RGBCOLOR = 1; | |
| 8128 | |
| 8129 static final int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; | |
| 8130 | |
| 8131 static final int SVG_PAINTTYPE_UNKNOWN = 0; | |
| 8132 | |
| 8133 static final int SVG_PAINTTYPE_URI = 107; | |
| 8134 | |
| 8135 static final int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104; | |
| 8136 | |
| 8137 static final int SVG_PAINTTYPE_URI_NONE = 103; | |
| 8138 | |
| 8139 static final int SVG_PAINTTYPE_URI_RGBCOLOR = 105; | |
| 8140 | |
| 8141 static final int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106; | |
| 8142 | |
| 8143 final int paintType; | |
| 8144 | |
| 8145 final String uri; | |
| 8146 | |
| 8147 void setPaint(int paintType, String uri, String rgbColor, String iccColor) nat
ive; | |
| 8148 | |
| 8149 void setUri(String uri) native; | |
| 8150 } | |
| 8151 | |
| 8152 class _SVGPathElementJs extends _SVGElementJs implements SVGPathElement native "
*SVGPathElement" { | |
| 8153 | |
| 8154 final _SVGPathSegListJs animatedNormalizedPathSegList; | |
| 8155 | |
| 8156 final _SVGPathSegListJs animatedPathSegList; | |
| 8157 | |
| 8158 final _SVGPathSegListJs normalizedPathSegList; | |
| 8159 | |
| 8160 final _SVGAnimatedNumberJs pathLength; | |
| 8161 | |
| 8162 final _SVGPathSegListJs pathSegList; | |
| 8163 | |
| 8164 _SVGPathSegArcAbsJs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num a
ngle, bool largeArcFlag, bool sweepFlag) native; | |
| 8165 | |
| 8166 _SVGPathSegArcRelJs createSVGPathSegArcRel(num x, num y, num r1, num r2, num a
ngle, bool largeArcFlag, bool sweepFlag) native; | |
| 8167 | |
| 8168 _SVGPathSegClosePathJs createSVGPathSegClosePath() native; | |
| 8169 | |
| 8170 _SVGPathSegCurvetoCubicAbsJs createSVGPathSegCurvetoCubicAbs(num x, num y, num
x1, num y1, num x2, num y2) native; | |
| 8171 | |
| 8172 _SVGPathSegCurvetoCubicRelJs createSVGPathSegCurvetoCubicRel(num x, num y, num
x1, num y1, num x2, num y2) native; | |
| 8173 | |
| 8174 _SVGPathSegCurvetoCubicSmoothAbsJs createSVGPathSegCurvetoCubicSmoothAbs(num x
, num y, num x2, num y2) native; | |
| 8175 | |
| 8176 _SVGPathSegCurvetoCubicSmoothRelJs createSVGPathSegCurvetoCubicSmoothRel(num x
, num y, num x2, num y2) native; | |
| 8177 | |
| 8178 _SVGPathSegCurvetoQuadraticAbsJs createSVGPathSegCurvetoQuadraticAbs(num x, nu
m y, num x1, num y1) native; | |
| 8179 | |
| 8180 _SVGPathSegCurvetoQuadraticRelJs createSVGPathSegCurvetoQuadraticRel(num x, nu
m y, num x1, num y1) native; | |
| 8181 | |
| 8182 _SVGPathSegCurvetoQuadraticSmoothAbsJs createSVGPathSegCurvetoQuadraticSmoothA
bs(num x, num y) native; | |
| 8183 | |
| 8184 _SVGPathSegCurvetoQuadraticSmoothRelJs createSVGPathSegCurvetoQuadraticSmoothR
el(num x, num y) native; | |
| 8185 | |
| 8186 _SVGPathSegLinetoAbsJs createSVGPathSegLinetoAbs(num x, num y) native; | |
| 8187 | |
| 8188 _SVGPathSegLinetoHorizontalAbsJs createSVGPathSegLinetoHorizontalAbs(num x) na
tive; | |
| 8189 | |
| 8190 _SVGPathSegLinetoHorizontalRelJs createSVGPathSegLinetoHorizontalRel(num x) na
tive; | |
| 8191 | |
| 8192 _SVGPathSegLinetoRelJs createSVGPathSegLinetoRel(num x, num y) native; | |
| 8193 | |
| 8194 _SVGPathSegLinetoVerticalAbsJs createSVGPathSegLinetoVerticalAbs(num y) native
; | |
| 8195 | |
| 8196 _SVGPathSegLinetoVerticalRelJs createSVGPathSegLinetoVerticalRel(num y) native
; | |
| 8197 | |
| 8198 _SVGPathSegMovetoAbsJs createSVGPathSegMovetoAbs(num x, num y) native; | |
| 8199 | |
| 8200 _SVGPathSegMovetoRelJs createSVGPathSegMovetoRel(num x, num y) native; | |
| 8201 | |
| 8202 int getPathSegAtLength(num distance) native; | |
| 8203 | |
| 8204 _SVGPointJs getPointAtLength(num distance) native; | |
| 8205 | |
| 8206 num getTotalLength() native; | |
| 8207 | |
| 8208 // From SVGTests | |
| 8209 | |
| 8210 final _SVGStringListJs requiredExtensions; | |
| 8211 | |
| 8212 final _SVGStringListJs requiredFeatures; | |
| 8213 | |
| 8214 final _SVGStringListJs systemLanguage; | |
| 8215 | |
| 8216 bool hasExtension(String extension) native; | |
| 8217 | |
| 8218 // From SVGLangSpace | |
| 8219 | |
| 8220 String xmllang; | |
| 8221 | |
| 8222 String xmlspace; | |
| 8223 | |
| 8224 // From SVGExternalResourcesRequired | |
| 8225 | |
| 8226 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 8227 | |
| 8228 // From SVGStylable | |
| 8229 | |
| 8230 final _SVGAnimatedStringJs className; | |
| 8231 | |
| 8232 // Use implementation from Element. | |
| 8233 // final _CSSStyleDeclarationJs style; | |
| 8234 | |
| 8235 _CSSValueJs getPresentationAttribute(String name) native; | |
| 8236 | |
| 8237 // From SVGTransformable | |
| 8238 | |
| 8239 final _SVGAnimatedTransformListJs transform; | |
| 8240 | |
| 8241 // From SVGLocatable | |
| 8242 | |
| 8243 final _SVGElementJs farthestViewportElement; | |
| 8244 | |
| 8245 final _SVGElementJs nearestViewportElement; | |
| 8246 | |
| 8247 _SVGRectJs getBBox() native; | |
| 8248 | |
| 8249 _SVGMatrixJs getCTM() native; | |
| 8250 | |
| 8251 _SVGMatrixJs getScreenCTM() native; | |
| 8252 | |
| 8253 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 8254 } | |
| 8255 | |
| 8256 class _SVGPathSegJs extends _DOMTypeJs implements SVGPathSeg native "*SVGPathSeg
" { | |
| 8257 | |
| 8258 static final int PATHSEG_ARC_ABS = 10; | |
| 8259 | |
| 8260 static final int PATHSEG_ARC_REL = 11; | |
| 8261 | |
| 8262 static final int PATHSEG_CLOSEPATH = 1; | |
| 8263 | |
| 8264 static final int PATHSEG_CURVETO_CUBIC_ABS = 6; | |
| 8265 | |
| 8266 static final int PATHSEG_CURVETO_CUBIC_REL = 7; | |
| 8267 | |
| 8268 static final int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; | |
| 8269 | |
| 8270 static final int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; | |
| 8271 | |
| 8272 static final int PATHSEG_CURVETO_QUADRATIC_ABS = 8; | |
| 8273 | |
| 8274 static final int PATHSEG_CURVETO_QUADRATIC_REL = 9; | |
| 8275 | |
| 8276 static final int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; | |
| 8277 | |
| 8278 static final int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; | |
| 8279 | |
| 8280 static final int PATHSEG_LINETO_ABS = 4; | |
| 8281 | |
| 8282 static final int PATHSEG_LINETO_HORIZONTAL_ABS = 12; | |
| 8283 | |
| 8284 static final int PATHSEG_LINETO_HORIZONTAL_REL = 13; | |
| 8285 | |
| 8286 static final int PATHSEG_LINETO_REL = 5; | |
| 8287 | |
| 8288 static final int PATHSEG_LINETO_VERTICAL_ABS = 14; | |
| 8289 | |
| 8290 static final int PATHSEG_LINETO_VERTICAL_REL = 15; | |
| 8291 | |
| 8292 static final int PATHSEG_MOVETO_ABS = 2; | |
| 8293 | |
| 8294 static final int PATHSEG_MOVETO_REL = 3; | |
| 8295 | |
| 8296 static final int PATHSEG_UNKNOWN = 0; | |
| 8297 | |
| 8298 final int pathSegType; | |
| 8299 | |
| 8300 final String pathSegTypeAsLetter; | |
| 8301 } | |
| 8302 | |
| 8303 class _SVGPathSegArcAbsJs extends _SVGPathSegJs implements SVGPathSegArcAbs nati
ve "*SVGPathSegArcAbs" { | |
| 8304 | |
| 8305 num angle; | |
| 8306 | |
| 8307 bool largeArcFlag; | |
| 8308 | |
| 8309 num r1; | |
| 8310 | |
| 8311 num r2; | |
| 8312 | |
| 8313 bool sweepFlag; | |
| 8314 | |
| 8315 num x; | |
| 8316 | |
| 8317 num y; | |
| 8318 } | |
| 8319 | |
| 8320 class _SVGPathSegArcRelJs extends _SVGPathSegJs implements SVGPathSegArcRel nati
ve "*SVGPathSegArcRel" { | |
| 8321 | |
| 8322 num angle; | |
| 8323 | |
| 8324 bool largeArcFlag; | |
| 8325 | |
| 8326 num r1; | |
| 8327 | |
| 8328 num r2; | |
| 8329 | |
| 8330 bool sweepFlag; | |
| 8331 | |
| 8332 num x; | |
| 8333 | |
| 8334 num y; | |
| 8335 } | |
| 8336 | |
| 8337 class _SVGPathSegClosePathJs extends _SVGPathSegJs implements SVGPathSegClosePat
h native "*SVGPathSegClosePath" { | |
| 8338 } | |
| 8339 | |
| 8340 class _SVGPathSegCurvetoCubicAbsJs extends _SVGPathSegJs implements SVGPathSegCu
rvetoCubicAbs native "*SVGPathSegCurvetoCubicAbs" { | |
| 8341 | |
| 8342 num x; | |
| 8343 | |
| 8344 num x1; | |
| 8345 | |
| 8346 num x2; | |
| 8347 | |
| 8348 num y; | |
| 8349 | |
| 8350 num y1; | |
| 8351 | |
| 8352 num y2; | |
| 8353 } | |
| 8354 | |
| 8355 class _SVGPathSegCurvetoCubicRelJs extends _SVGPathSegJs implements SVGPathSegCu
rvetoCubicRel native "*SVGPathSegCurvetoCubicRel" { | |
| 8356 | |
| 8357 num x; | |
| 8358 | |
| 8359 num x1; | |
| 8360 | |
| 8361 num x2; | |
| 8362 | |
| 8363 num y; | |
| 8364 | |
| 8365 num y1; | |
| 8366 | |
| 8367 num y2; | |
| 8368 } | |
| 8369 | |
| 8370 class _SVGPathSegCurvetoCubicSmoothAbsJs extends _SVGPathSegJs implements SVGPat
hSegCurvetoCubicSmoothAbs native "*SVGPathSegCurvetoCubicSmoothAbs" { | |
| 8371 | |
| 8372 num x; | |
| 8373 | |
| 8374 num x2; | |
| 8375 | |
| 8376 num y; | |
| 8377 | |
| 8378 num y2; | |
| 8379 } | |
| 8380 | |
| 8381 class _SVGPathSegCurvetoCubicSmoothRelJs extends _SVGPathSegJs implements SVGPat
hSegCurvetoCubicSmoothRel native "*SVGPathSegCurvetoCubicSmoothRel" { | |
| 8382 | |
| 8383 num x; | |
| 8384 | |
| 8385 num x2; | |
| 8386 | |
| 8387 num y; | |
| 8388 | |
| 8389 num y2; | |
| 8390 } | |
| 8391 | |
| 8392 class _SVGPathSegCurvetoQuadraticAbsJs extends _SVGPathSegJs implements SVGPathS
egCurvetoQuadraticAbs native "*SVGPathSegCurvetoQuadraticAbs" { | |
| 8393 | |
| 8394 num x; | |
| 8395 | |
| 8396 num x1; | |
| 8397 | |
| 8398 num y; | |
| 8399 | |
| 8400 num y1; | |
| 8401 } | |
| 8402 | |
| 8403 class _SVGPathSegCurvetoQuadraticRelJs extends _SVGPathSegJs implements SVGPathS
egCurvetoQuadraticRel native "*SVGPathSegCurvetoQuadraticRel" { | |
| 8404 | |
| 8405 num x; | |
| 8406 | |
| 8407 num x1; | |
| 8408 | |
| 8409 num y; | |
| 8410 | |
| 8411 num y1; | |
| 8412 } | |
| 8413 | |
| 8414 class _SVGPathSegCurvetoQuadraticSmoothAbsJs extends _SVGPathSegJs implements SV
GPathSegCurvetoQuadraticSmoothAbs native "*SVGPathSegCurvetoQuadraticSmoothAbs"
{ | |
| 8415 | |
| 8416 num x; | |
| 8417 | |
| 8418 num y; | |
| 8419 } | |
| 8420 | |
| 8421 class _SVGPathSegCurvetoQuadraticSmoothRelJs extends _SVGPathSegJs implements SV
GPathSegCurvetoQuadraticSmoothRel native "*SVGPathSegCurvetoQuadraticSmoothRel"
{ | |
| 8422 | |
| 8423 num x; | |
| 8424 | |
| 8425 num y; | |
| 8426 } | |
| 8427 | |
| 8428 class _SVGPathSegLinetoAbsJs extends _SVGPathSegJs implements SVGPathSegLinetoAb
s native "*SVGPathSegLinetoAbs" { | |
| 8429 | |
| 8430 num x; | |
| 8431 | |
| 8432 num y; | |
| 8433 } | |
| 8434 | |
| 8435 class _SVGPathSegLinetoHorizontalAbsJs extends _SVGPathSegJs implements SVGPathS
egLinetoHorizontalAbs native "*SVGPathSegLinetoHorizontalAbs" { | |
| 8436 | |
| 8437 num x; | |
| 8438 } | |
| 8439 | |
| 8440 class _SVGPathSegLinetoHorizontalRelJs extends _SVGPathSegJs implements SVGPathS
egLinetoHorizontalRel native "*SVGPathSegLinetoHorizontalRel" { | |
| 8441 | |
| 8442 num x; | |
| 8443 } | |
| 8444 | |
| 8445 class _SVGPathSegLinetoRelJs extends _SVGPathSegJs implements SVGPathSegLinetoRe
l native "*SVGPathSegLinetoRel" { | |
| 8446 | |
| 8447 num x; | |
| 8448 | |
| 8449 num y; | |
| 8450 } | |
| 8451 | |
| 8452 class _SVGPathSegLinetoVerticalAbsJs extends _SVGPathSegJs implements SVGPathSeg
LinetoVerticalAbs native "*SVGPathSegLinetoVerticalAbs" { | |
| 8453 | |
| 8454 num y; | |
| 8455 } | |
| 8456 | |
| 8457 class _SVGPathSegLinetoVerticalRelJs extends _SVGPathSegJs implements SVGPathSeg
LinetoVerticalRel native "*SVGPathSegLinetoVerticalRel" { | |
| 8458 | |
| 8459 num y; | |
| 8460 } | |
| 8461 | |
| 8462 class _SVGPathSegListJs extends _DOMTypeJs implements SVGPathSegList native "*SV
GPathSegList" { | |
| 8463 | |
| 8464 final int numberOfItems; | |
| 8465 | |
| 8466 _SVGPathSegJs appendItem(_SVGPathSegJs newItem) native; | |
| 8467 | |
| 8468 void clear() native; | |
| 8469 | |
| 8470 _SVGPathSegJs getItem(int index) native; | |
| 8471 | |
| 8472 _SVGPathSegJs initialize(_SVGPathSegJs newItem) native; | |
| 8473 | |
| 8474 _SVGPathSegJs insertItemBefore(_SVGPathSegJs newItem, int index) native; | |
| 8475 | |
| 8476 _SVGPathSegJs removeItem(int index) native; | |
| 8477 | |
| 8478 _SVGPathSegJs replaceItem(_SVGPathSegJs newItem, int index) native; | |
| 8479 } | |
| 8480 | |
| 8481 class _SVGPathSegMovetoAbsJs extends _SVGPathSegJs implements SVGPathSegMovetoAb
s native "*SVGPathSegMovetoAbs" { | |
| 8482 | |
| 8483 num x; | |
| 8484 | |
| 8485 num y; | |
| 8486 } | |
| 8487 | |
| 8488 class _SVGPathSegMovetoRelJs extends _SVGPathSegJs implements SVGPathSegMovetoRe
l native "*SVGPathSegMovetoRel" { | |
| 8489 | |
| 8490 num x; | |
| 8491 | |
| 8492 num y; | |
| 8493 } | |
| 8494 | |
| 8495 class _SVGPatternElementJs extends _SVGElementJs implements SVGPatternElement na
tive "*SVGPatternElement" { | |
| 8496 | |
| 8497 final _SVGAnimatedLengthJs height; | |
| 8498 | |
| 8499 final _SVGAnimatedEnumerationJs patternContentUnits; | |
| 8500 | |
| 8501 final _SVGAnimatedTransformListJs patternTransform; | |
| 8502 | |
| 8503 final _SVGAnimatedEnumerationJs patternUnits; | |
| 8504 | |
| 8505 final _SVGAnimatedLengthJs width; | |
| 8506 | |
| 8507 final _SVGAnimatedLengthJs x; | |
| 8508 | |
| 8509 final _SVGAnimatedLengthJs y; | |
| 8510 | |
| 8511 // From SVGURIReference | |
| 8512 | |
| 8513 final _SVGAnimatedStringJs href; | |
| 8514 | |
| 8515 // From SVGTests | |
| 8516 | |
| 8517 final _SVGStringListJs requiredExtensions; | |
| 8518 | |
| 8519 final _SVGStringListJs requiredFeatures; | |
| 8520 | |
| 8521 final _SVGStringListJs systemLanguage; | |
| 8522 | |
| 8523 bool hasExtension(String extension) native; | |
| 8524 | |
| 8525 // From SVGLangSpace | |
| 8526 | |
| 8527 String xmllang; | |
| 8528 | |
| 8529 String xmlspace; | |
| 8530 | |
| 8531 // From SVGExternalResourcesRequired | |
| 8532 | |
| 8533 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 8534 | |
| 8535 // From SVGStylable | |
| 8536 | |
| 8537 final _SVGAnimatedStringJs className; | |
| 8538 | |
| 8539 // Use implementation from Element. | |
| 8540 // final _CSSStyleDeclarationJs style; | |
| 8541 | |
| 8542 _CSSValueJs getPresentationAttribute(String name) native; | |
| 8543 | |
| 8544 // From SVGFitToViewBox | |
| 8545 | |
| 8546 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
| 8547 | |
| 8548 final _SVGAnimatedRectJs viewBox; | |
| 8549 } | |
| 8550 | |
| 8551 class _SVGPointJs extends _DOMTypeJs implements SVGPoint native "*SVGPoint" { | |
| 8552 | |
| 8553 num x; | |
| 8554 | |
| 8555 num y; | |
| 8556 | |
| 8557 _SVGPointJs matrixTransform(_SVGMatrixJs matrix) native; | |
| 8558 } | |
| 8559 | |
| 8560 class _SVGPointListJs extends _DOMTypeJs implements SVGPointList native "*SVGPoi
ntList" { | |
| 8561 | |
| 8562 final int numberOfItems; | |
| 8563 | |
| 8564 _SVGPointJs appendItem(_SVGPointJs item) native; | |
| 8565 | |
| 8566 void clear() native; | |
| 8567 | |
| 8568 _SVGPointJs getItem(int index) native; | |
| 8569 | |
| 8570 _SVGPointJs initialize(_SVGPointJs item) native; | |
| 8571 | |
| 8572 _SVGPointJs insertItemBefore(_SVGPointJs item, int index) native; | |
| 8573 | |
| 8574 _SVGPointJs removeItem(int index) native; | |
| 8575 | |
| 8576 _SVGPointJs replaceItem(_SVGPointJs item, int index) native; | |
| 8577 } | |
| 8578 | |
| 8579 class _SVGPolygonElementJs extends _SVGElementJs implements SVGPolygonElement na
tive "*SVGPolygonElement" { | |
| 8580 | |
| 8581 final _SVGPointListJs animatedPoints; | |
| 8582 | |
| 8583 final _SVGPointListJs points; | |
| 8584 | |
| 8585 // From SVGTests | |
| 8586 | |
| 8587 final _SVGStringListJs requiredExtensions; | |
| 8588 | |
| 8589 final _SVGStringListJs requiredFeatures; | |
| 8590 | |
| 8591 final _SVGStringListJs systemLanguage; | |
| 8592 | |
| 8593 bool hasExtension(String extension) native; | |
| 8594 | |
| 8595 // From SVGLangSpace | |
| 8596 | |
| 8597 String xmllang; | |
| 8598 | |
| 8599 String xmlspace; | |
| 8600 | |
| 8601 // From SVGExternalResourcesRequired | |
| 8602 | |
| 8603 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 8604 | |
| 8605 // From SVGStylable | |
| 8606 | |
| 8607 final _SVGAnimatedStringJs className; | |
| 8608 | |
| 8609 // Use implementation from Element. | |
| 8610 // final _CSSStyleDeclarationJs style; | |
| 8611 | |
| 8612 _CSSValueJs getPresentationAttribute(String name) native; | |
| 8613 | |
| 8614 // From SVGTransformable | |
| 8615 | |
| 8616 final _SVGAnimatedTransformListJs transform; | |
| 8617 | |
| 8618 // From SVGLocatable | |
| 8619 | |
| 8620 final _SVGElementJs farthestViewportElement; | |
| 8621 | |
| 8622 final _SVGElementJs nearestViewportElement; | |
| 8623 | |
| 8624 _SVGRectJs getBBox() native; | |
| 8625 | |
| 8626 _SVGMatrixJs getCTM() native; | |
| 8627 | |
| 8628 _SVGMatrixJs getScreenCTM() native; | |
| 8629 | |
| 8630 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 8631 } | |
| 8632 | |
| 8633 class _SVGPolylineElementJs extends _SVGElementJs implements SVGPolylineElement
native "*SVGPolylineElement" { | |
| 8634 | |
| 8635 final _SVGPointListJs animatedPoints; | |
| 8636 | |
| 8637 final _SVGPointListJs points; | |
| 8638 | |
| 8639 // From SVGTests | |
| 8640 | |
| 8641 final _SVGStringListJs requiredExtensions; | |
| 8642 | |
| 8643 final _SVGStringListJs requiredFeatures; | |
| 8644 | |
| 8645 final _SVGStringListJs systemLanguage; | |
| 8646 | |
| 8647 bool hasExtension(String extension) native; | |
| 8648 | |
| 8649 // From SVGLangSpace | |
| 8650 | |
| 8651 String xmllang; | |
| 8652 | |
| 8653 String xmlspace; | |
| 8654 | |
| 8655 // From SVGExternalResourcesRequired | |
| 8656 | |
| 8657 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 8658 | |
| 8659 // From SVGStylable | |
| 8660 | |
| 8661 final _SVGAnimatedStringJs className; | |
| 8662 | |
| 8663 // Use implementation from Element. | |
| 8664 // final _CSSStyleDeclarationJs style; | |
| 8665 | |
| 8666 _CSSValueJs getPresentationAttribute(String name) native; | |
| 8667 | |
| 8668 // From SVGTransformable | |
| 8669 | |
| 8670 final _SVGAnimatedTransformListJs transform; | |
| 8671 | |
| 8672 // From SVGLocatable | |
| 8673 | |
| 8674 final _SVGElementJs farthestViewportElement; | |
| 8675 | |
| 8676 final _SVGElementJs nearestViewportElement; | |
| 8677 | |
| 8678 _SVGRectJs getBBox() native; | |
| 8679 | |
| 8680 _SVGMatrixJs getCTM() native; | |
| 8681 | |
| 8682 _SVGMatrixJs getScreenCTM() native; | |
| 8683 | |
| 8684 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 8685 } | |
| 8686 | |
| 8687 class _SVGPreserveAspectRatioJs extends _DOMTypeJs implements SVGPreserveAspectR
atio native "*SVGPreserveAspectRatio" { | |
| 8688 | |
| 8689 static final int SVG_MEETORSLICE_MEET = 1; | |
| 8690 | |
| 8691 static final int SVG_MEETORSLICE_SLICE = 2; | |
| 8692 | |
| 8693 static final int SVG_MEETORSLICE_UNKNOWN = 0; | |
| 8694 | |
| 8695 static final int SVG_PRESERVEASPECTRATIO_NONE = 1; | |
| 8696 | |
| 8697 static final int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; | |
| 8698 | |
| 8699 static final int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; | |
| 8700 | |
| 8701 static final int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; | |
| 8702 | |
| 8703 static final int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; | |
| 8704 | |
| 8705 static final int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; | |
| 8706 | |
| 8707 static final int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; | |
| 8708 | |
| 8709 static final int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; | |
| 8710 | |
| 8711 static final int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; | |
| 8712 | |
| 8713 static final int SVG_PRESERVEASPECTRATIO_XMINYMID = 5; | |
| 8714 | |
| 8715 static final int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; | |
| 8716 | |
| 8717 int align; | |
| 8718 | |
| 8719 int meetOrSlice; | |
| 8720 } | |
| 8721 | |
| 8722 class _SVGRadialGradientElementJs extends _SVGGradientElementJs implements SVGRa
dialGradientElement native "*SVGRadialGradientElement" { | |
| 8723 | |
| 8724 final _SVGAnimatedLengthJs cx; | |
| 8725 | |
| 8726 final _SVGAnimatedLengthJs cy; | |
| 8727 | |
| 8728 final _SVGAnimatedLengthJs fx; | |
| 8729 | |
| 8730 final _SVGAnimatedLengthJs fy; | |
| 8731 | |
| 8732 final _SVGAnimatedLengthJs r; | |
| 8733 } | |
| 8734 | |
| 8735 class _SVGRectJs extends _DOMTypeJs implements SVGRect native "*SVGRect" { | |
| 8736 | |
| 8737 num height; | |
| 8738 | |
| 8739 num width; | |
| 8740 | |
| 8741 num x; | |
| 8742 | |
| 8743 num y; | |
| 8744 } | |
| 8745 | |
| 8746 class _SVGRectElementJs extends _SVGElementJs implements SVGRectElement native "
*SVGRectElement" { | |
| 8747 | |
| 8748 final _SVGAnimatedLengthJs height; | |
| 8749 | |
| 8750 final _SVGAnimatedLengthJs rx; | |
| 8751 | |
| 8752 final _SVGAnimatedLengthJs ry; | |
| 8753 | |
| 8754 final _SVGAnimatedLengthJs width; | |
| 8755 | |
| 8756 final _SVGAnimatedLengthJs x; | |
| 8757 | |
| 8758 final _SVGAnimatedLengthJs y; | |
| 8759 | |
| 8760 // From SVGTests | |
| 8761 | |
| 8762 final _SVGStringListJs requiredExtensions; | |
| 8763 | |
| 8764 final _SVGStringListJs requiredFeatures; | |
| 8765 | |
| 8766 final _SVGStringListJs systemLanguage; | |
| 8767 | |
| 8768 bool hasExtension(String extension) native; | |
| 8769 | |
| 8770 // From SVGLangSpace | |
| 8771 | |
| 8772 String xmllang; | |
| 8773 | |
| 8774 String xmlspace; | |
| 8775 | |
| 8776 // From SVGExternalResourcesRequired | |
| 8777 | |
| 8778 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 8779 | |
| 8780 // From SVGStylable | |
| 8781 | |
| 8782 final _SVGAnimatedStringJs className; | |
| 8783 | |
| 8784 // Use implementation from Element. | |
| 8785 // final _CSSStyleDeclarationJs style; | |
| 8786 | |
| 8787 _CSSValueJs getPresentationAttribute(String name) native; | |
| 8788 | |
| 8789 // From SVGTransformable | |
| 8790 | |
| 8791 final _SVGAnimatedTransformListJs transform; | |
| 8792 | |
| 8793 // From SVGLocatable | |
| 8794 | |
| 8795 final _SVGElementJs farthestViewportElement; | |
| 8796 | |
| 8797 final _SVGElementJs nearestViewportElement; | |
| 8798 | |
| 8799 _SVGRectJs getBBox() native; | |
| 8800 | |
| 8801 _SVGMatrixJs getCTM() native; | |
| 8802 | |
| 8803 _SVGMatrixJs getScreenCTM() native; | |
| 8804 | |
| 8805 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 8806 } | |
| 8807 | |
| 8808 class _SVGRenderingIntentJs extends _DOMTypeJs implements SVGRenderingIntent nat
ive "*SVGRenderingIntent" { | |
| 8809 | |
| 8810 static final int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; | |
| 8811 | |
| 8812 static final int RENDERING_INTENT_AUTO = 1; | |
| 8813 | |
| 8814 static final int RENDERING_INTENT_PERCEPTUAL = 2; | |
| 8815 | |
| 8816 static final int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; | |
| 8817 | |
| 8818 static final int RENDERING_INTENT_SATURATION = 4; | |
| 8819 | |
| 8820 static final int RENDERING_INTENT_UNKNOWN = 0; | |
| 8821 } | |
| 8822 | |
| 8823 class _SVGSVGElementJs extends _SVGElementJs implements SVGSVGElement native "*S
VGSVGElement" { | |
| 8824 | |
| 8825 String contentScriptType; | |
| 8826 | |
| 8827 String contentStyleType; | |
| 8828 | |
| 8829 num currentScale; | |
| 8830 | |
| 8831 final _SVGPointJs currentTranslate; | |
| 8832 | |
| 8833 final _SVGViewSpecJs currentView; | |
| 8834 | |
| 8835 final _SVGAnimatedLengthJs height; | |
| 8836 | |
| 8837 final num pixelUnitToMillimeterX; | |
| 8838 | |
| 8839 final num pixelUnitToMillimeterY; | |
| 8840 | |
| 8841 final num screenPixelToMillimeterX; | |
| 8842 | |
| 8843 final num screenPixelToMillimeterY; | |
| 8844 | |
| 8845 final bool useCurrentView; | |
| 8846 | |
| 8847 final _SVGRectJs viewport; | |
| 8848 | |
| 8849 final _SVGAnimatedLengthJs width; | |
| 8850 | |
| 8851 final _SVGAnimatedLengthJs x; | |
| 8852 | |
| 8853 final _SVGAnimatedLengthJs y; | |
| 8854 | |
| 8855 bool animationsPaused() native; | |
| 8856 | |
| 8857 bool checkEnclosure(_SVGElementJs element, _SVGRectJs rect) native; | |
| 8858 | |
| 8859 bool checkIntersection(_SVGElementJs element, _SVGRectJs rect) native; | |
| 8860 | |
| 8861 _SVGAngleJs createSVGAngle() native; | |
| 8862 | |
| 8863 _SVGLengthJs createSVGLength() native; | |
| 8864 | |
| 8865 _SVGMatrixJs createSVGMatrix() native; | |
| 8866 | |
| 8867 _SVGNumberJs createSVGNumber() native; | |
| 8868 | |
| 8869 _SVGPointJs createSVGPoint() native; | |
| 8870 | |
| 8871 _SVGRectJs createSVGRect() native; | |
| 8872 | |
| 8873 _SVGTransformJs createSVGTransform() native; | |
| 8874 | |
| 8875 _SVGTransformJs createSVGTransformFromMatrix(_SVGMatrixJs matrix) native; | |
| 8876 | |
| 8877 void deselectAll() native; | |
| 8878 | |
| 8879 void forceRedraw() native; | |
| 8880 | |
| 8881 num getCurrentTime() native; | |
| 8882 | |
| 8883 _ElementJs getElementById(String elementId) native; | |
| 8884 | |
| 8885 _NodeListJs getEnclosureList(_SVGRectJs rect, _SVGElementJs referenceElement)
native; | |
| 8886 | |
| 8887 _NodeListJs getIntersectionList(_SVGRectJs rect, _SVGElementJs referenceElemen
t) native; | |
| 8888 | |
| 8889 void pauseAnimations() native; | |
| 8890 | |
| 8891 void setCurrentTime(num seconds) native; | |
| 8892 | |
| 8893 int suspendRedraw(int maxWaitMilliseconds) native; | |
| 8894 | |
| 8895 void unpauseAnimations() native; | |
| 8896 | |
| 8897 void unsuspendRedraw(int suspendHandleId) native; | |
| 8898 | |
| 8899 void unsuspendRedrawAll() native; | |
| 8900 | |
| 8901 // From SVGTests | |
| 8902 | |
| 8903 final _SVGStringListJs requiredExtensions; | |
| 8904 | |
| 8905 final _SVGStringListJs requiredFeatures; | |
| 8906 | |
| 8907 final _SVGStringListJs systemLanguage; | |
| 8908 | |
| 8909 bool hasExtension(String extension) native; | |
| 8910 | |
| 8911 // From SVGLangSpace | |
| 8912 | |
| 8913 String xmllang; | |
| 8914 | |
| 8915 String xmlspace; | |
| 8916 | |
| 8917 // From SVGExternalResourcesRequired | |
| 8918 | |
| 8919 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 8920 | |
| 8921 // From SVGStylable | |
| 8922 | |
| 8923 final _SVGAnimatedStringJs className; | |
| 8924 | |
| 8925 // Use implementation from Element. | |
| 8926 // final _CSSStyleDeclarationJs style; | |
| 8927 | |
| 8928 _CSSValueJs getPresentationAttribute(String name) native; | |
| 8929 | |
| 8930 // From SVGLocatable | |
| 8931 | |
| 8932 final _SVGElementJs farthestViewportElement; | |
| 8933 | |
| 8934 final _SVGElementJs nearestViewportElement; | |
| 8935 | |
| 8936 _SVGRectJs getBBox() native; | |
| 8937 | |
| 8938 _SVGMatrixJs getCTM() native; | |
| 8939 | |
| 8940 _SVGMatrixJs getScreenCTM() native; | |
| 8941 | |
| 8942 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 8943 | |
| 8944 // From SVGFitToViewBox | |
| 8945 | |
| 8946 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
| 8947 | |
| 8948 final _SVGAnimatedRectJs viewBox; | |
| 8949 | |
| 8950 // From SVGZoomAndPan | |
| 8951 | |
| 8952 int zoomAndPan; | |
| 8953 } | |
| 8954 | |
| 8955 class _SVGScriptElementJs extends _SVGElementJs implements SVGScriptElement nati
ve "*SVGScriptElement" { | |
| 8956 | |
| 8957 String type; | |
| 8958 | |
| 8959 // From SVGURIReference | |
| 8960 | |
| 8961 final _SVGAnimatedStringJs href; | |
| 8962 | |
| 8963 // From SVGExternalResourcesRequired | |
| 8964 | |
| 8965 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 8966 } | |
| 8967 | |
| 8968 class _SVGSetElementJs extends _SVGAnimationElementJs implements SVGSetElement n
ative "*SVGSetElement" { | |
| 8969 } | |
| 8970 | |
| 8971 class _SVGStopElementJs extends _SVGElementJs implements SVGStopElement native "
*SVGStopElement" { | |
| 8972 | |
| 8973 final _SVGAnimatedNumberJs offset; | |
| 8974 | |
| 8975 // From SVGStylable | |
| 8976 | |
| 8977 final _SVGAnimatedStringJs className; | |
| 8978 | |
| 8979 // Use implementation from Element. | |
| 8980 // final _CSSStyleDeclarationJs style; | |
| 8981 | |
| 8982 _CSSValueJs getPresentationAttribute(String name) native; | |
| 8983 } | |
| 8984 | |
| 8985 class _SVGStringListJs extends _DOMTypeJs implements SVGStringList native "*SVGS
tringList" { | |
| 8986 | |
| 8987 final int numberOfItems; | |
| 8988 | |
| 8989 String appendItem(String item) native; | |
| 8990 | |
| 8991 void clear() native; | |
| 8992 | |
| 8993 String getItem(int index) native; | |
| 8994 | |
| 8995 String initialize(String item) native; | |
| 8996 | |
| 8997 String insertItemBefore(String item, int index) native; | |
| 8998 | |
| 8999 String removeItem(int index) native; | |
| 9000 | |
| 9001 String replaceItem(String item, int index) native; | |
| 9002 } | |
| 9003 | |
| 9004 class _SVGStyleElementJs extends _SVGElementJs implements SVGStyleElement native
"*SVGStyleElement" { | |
| 9005 | |
| 9006 bool disabled; | |
| 9007 | |
| 9008 String media; | |
| 9009 | |
| 9010 String title; | |
| 9011 | |
| 9012 String type; | |
| 9013 | |
| 9014 // From SVGLangSpace | |
| 9015 | |
| 9016 String xmllang; | |
| 9017 | |
| 9018 String xmlspace; | |
| 9019 } | |
| 9020 | |
| 9021 class _SVGSwitchElementJs extends _SVGElementJs implements SVGSwitchElement nati
ve "*SVGSwitchElement" { | |
| 9022 | |
| 9023 // From SVGTests | |
| 9024 | |
| 9025 final _SVGStringListJs requiredExtensions; | |
| 9026 | |
| 9027 final _SVGStringListJs requiredFeatures; | |
| 9028 | |
| 9029 final _SVGStringListJs systemLanguage; | |
| 9030 | |
| 9031 bool hasExtension(String extension) native; | |
| 9032 | |
| 9033 // From SVGLangSpace | |
| 9034 | |
| 9035 String xmllang; | |
| 9036 | |
| 9037 String xmlspace; | |
| 9038 | |
| 9039 // From SVGExternalResourcesRequired | |
| 9040 | |
| 9041 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 9042 | |
| 9043 // From SVGStylable | |
| 9044 | |
| 9045 final _SVGAnimatedStringJs className; | |
| 9046 | |
| 9047 // Use implementation from Element. | |
| 9048 // final _CSSStyleDeclarationJs style; | |
| 9049 | |
| 9050 _CSSValueJs getPresentationAttribute(String name) native; | |
| 9051 | |
| 9052 // From SVGTransformable | |
| 9053 | |
| 9054 final _SVGAnimatedTransformListJs transform; | |
| 9055 | |
| 9056 // From SVGLocatable | |
| 9057 | |
| 9058 final _SVGElementJs farthestViewportElement; | |
| 9059 | |
| 9060 final _SVGElementJs nearestViewportElement; | |
| 9061 | |
| 9062 _SVGRectJs getBBox() native; | |
| 9063 | |
| 9064 _SVGMatrixJs getCTM() native; | |
| 9065 | |
| 9066 _SVGMatrixJs getScreenCTM() native; | |
| 9067 | |
| 9068 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 9069 } | |
| 9070 | |
| 9071 class _SVGSymbolElementJs extends _SVGElementJs implements SVGSymbolElement nati
ve "*SVGSymbolElement" { | |
| 9072 | |
| 9073 // From SVGLangSpace | |
| 9074 | |
| 9075 String xmllang; | |
| 9076 | |
| 9077 String xmlspace; | |
| 9078 | |
| 9079 // From SVGExternalResourcesRequired | |
| 9080 | |
| 9081 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 9082 | |
| 9083 // From SVGStylable | |
| 9084 | |
| 9085 final _SVGAnimatedStringJs className; | |
| 9086 | |
| 9087 // Use implementation from Element. | |
| 9088 // final _CSSStyleDeclarationJs style; | |
| 9089 | |
| 9090 _CSSValueJs getPresentationAttribute(String name) native; | |
| 9091 | |
| 9092 // From SVGFitToViewBox | |
| 9093 | |
| 9094 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
| 9095 | |
| 9096 final _SVGAnimatedRectJs viewBox; | |
| 9097 } | |
| 9098 | |
| 9099 class _SVGTRefElementJs extends _SVGTextPositioningElementJs implements SVGTRefE
lement native "*SVGTRefElement" { | |
| 9100 | |
| 9101 // From SVGURIReference | |
| 9102 | |
| 9103 final _SVGAnimatedStringJs href; | |
| 9104 } | |
| 9105 | |
| 9106 class _SVGTSpanElementJs extends _SVGTextPositioningElementJs implements SVGTSpa
nElement native "*SVGTSpanElement" { | |
| 9107 } | |
| 9108 | |
| 9109 class _SVGTextContentElementJs extends _SVGElementJs implements SVGTextContentEl
ement native "*SVGTextContentElement" { | |
| 9110 | |
| 9111 static final int LENGTHADJUST_SPACING = 1; | |
| 9112 | |
| 9113 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2; | |
| 9114 | |
| 9115 static final int LENGTHADJUST_UNKNOWN = 0; | |
| 9116 | |
| 9117 final _SVGAnimatedEnumerationJs lengthAdjust; | |
| 9118 | |
| 9119 final _SVGAnimatedLengthJs textLength; | |
| 9120 | |
| 9121 int getCharNumAtPosition(_SVGPointJs point) native; | |
| 9122 | |
| 9123 num getComputedTextLength() native; | |
| 9124 | |
| 9125 _SVGPointJs getEndPositionOfChar(int offset) native; | |
| 9126 | |
| 9127 _SVGRectJs getExtentOfChar(int offset) native; | |
| 9128 | |
| 9129 int getNumberOfChars() native; | |
| 9130 | |
| 9131 num getRotationOfChar(int offset) native; | |
| 9132 | |
| 9133 _SVGPointJs getStartPositionOfChar(int offset) native; | |
| 9134 | |
| 9135 num getSubStringLength(int offset, int length) native; | |
| 9136 | |
| 9137 void selectSubString(int offset, int length) native; | |
| 9138 | |
| 9139 // From SVGTests | |
| 9140 | |
| 9141 final _SVGStringListJs requiredExtensions; | |
| 9142 | |
| 9143 final _SVGStringListJs requiredFeatures; | |
| 9144 | |
| 9145 final _SVGStringListJs systemLanguage; | |
| 9146 | |
| 9147 bool hasExtension(String extension) native; | |
| 9148 | |
| 9149 // From SVGLangSpace | |
| 9150 | |
| 9151 String xmllang; | |
| 9152 | |
| 9153 String xmlspace; | |
| 9154 | |
| 9155 // From SVGExternalResourcesRequired | |
| 9156 | |
| 9157 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 9158 | |
| 9159 // From SVGStylable | |
| 9160 | |
| 9161 final _SVGAnimatedStringJs className; | |
| 9162 | |
| 9163 // Use implementation from Element. | |
| 9164 // final _CSSStyleDeclarationJs style; | |
| 9165 | |
| 9166 _CSSValueJs getPresentationAttribute(String name) native; | |
| 9167 } | |
| 9168 | |
| 9169 class _SVGTextElementJs extends _SVGTextPositioningElementJs implements SVGTextE
lement native "*SVGTextElement" { | |
| 9170 | |
| 9171 // From SVGTransformable | |
| 9172 | |
| 9173 final _SVGAnimatedTransformListJs transform; | |
| 9174 | |
| 9175 // From SVGLocatable | |
| 9176 | |
| 9177 final _SVGElementJs farthestViewportElement; | |
| 9178 | |
| 9179 final _SVGElementJs nearestViewportElement; | |
| 9180 | |
| 9181 _SVGRectJs getBBox() native; | |
| 9182 | |
| 9183 _SVGMatrixJs getCTM() native; | |
| 9184 | |
| 9185 _SVGMatrixJs getScreenCTM() native; | |
| 9186 | |
| 9187 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 9188 } | |
| 9189 | |
| 9190 class _SVGTextPathElementJs extends _SVGTextContentElementJs implements SVGTextP
athElement native "*SVGTextPathElement" { | |
| 9191 | |
| 9192 static final int TEXTPATH_METHODTYPE_ALIGN = 1; | |
| 9193 | |
| 9194 static final int TEXTPATH_METHODTYPE_STRETCH = 2; | |
| 9195 | |
| 9196 static final int TEXTPATH_METHODTYPE_UNKNOWN = 0; | |
| 9197 | |
| 9198 static final int TEXTPATH_SPACINGTYPE_AUTO = 1; | |
| 9199 | |
| 9200 static final int TEXTPATH_SPACINGTYPE_EXACT = 2; | |
| 9201 | |
| 9202 static final int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; | |
| 9203 | |
| 9204 final _SVGAnimatedEnumerationJs method; | |
| 9205 | |
| 9206 final _SVGAnimatedEnumerationJs spacing; | |
| 9207 | |
| 9208 final _SVGAnimatedLengthJs startOffset; | |
| 9209 | |
| 9210 // From SVGURIReference | |
| 9211 | |
| 9212 final _SVGAnimatedStringJs href; | |
| 9213 } | |
| 9214 | |
| 9215 class _SVGTextPositioningElementJs extends _SVGTextContentElementJs implements S
VGTextPositioningElement native "*SVGTextPositioningElement" { | |
| 9216 | |
| 9217 final _SVGAnimatedLengthListJs dx; | |
| 9218 | |
| 9219 final _SVGAnimatedLengthListJs dy; | |
| 9220 | |
| 9221 final _SVGAnimatedNumberListJs rotate; | |
| 9222 | |
| 9223 final _SVGAnimatedLengthListJs x; | |
| 9224 | |
| 9225 final _SVGAnimatedLengthListJs y; | |
| 9226 } | |
| 9227 | |
| 9228 class _SVGTitleElementJs extends _SVGElementJs implements SVGTitleElement native
"*SVGTitleElement" { | |
| 9229 | |
| 9230 // From SVGLangSpace | |
| 9231 | |
| 9232 String xmllang; | |
| 9233 | |
| 9234 String xmlspace; | |
| 9235 | |
| 9236 // From SVGStylable | |
| 9237 | |
| 9238 final _SVGAnimatedStringJs className; | |
| 9239 | |
| 9240 // Use implementation from Element. | |
| 9241 // final _CSSStyleDeclarationJs style; | |
| 9242 | |
| 9243 _CSSValueJs getPresentationAttribute(String name) native; | |
| 9244 } | |
| 9245 | |
| 9246 class _SVGTransformJs extends _DOMTypeJs implements SVGTransform native "*SVGTra
nsform" { | |
| 9247 | |
| 9248 static final int SVG_TRANSFORM_MATRIX = 1; | |
| 9249 | |
| 9250 static final int SVG_TRANSFORM_ROTATE = 4; | |
| 9251 | |
| 9252 static final int SVG_TRANSFORM_SCALE = 3; | |
| 9253 | |
| 9254 static final int SVG_TRANSFORM_SKEWX = 5; | |
| 9255 | |
| 9256 static final int SVG_TRANSFORM_SKEWY = 6; | |
| 9257 | |
| 9258 static final int SVG_TRANSFORM_TRANSLATE = 2; | |
| 9259 | |
| 9260 static final int SVG_TRANSFORM_UNKNOWN = 0; | |
| 9261 | |
| 9262 final num angle; | |
| 9263 | |
| 9264 final _SVGMatrixJs matrix; | |
| 9265 | |
| 9266 final int type; | |
| 9267 | |
| 9268 void setMatrix(_SVGMatrixJs matrix) native; | |
| 9269 | |
| 9270 void setRotate(num angle, num cx, num cy) native; | |
| 9271 | |
| 9272 void setScale(num sx, num sy) native; | |
| 9273 | |
| 9274 void setSkewX(num angle) native; | |
| 9275 | |
| 9276 void setSkewY(num angle) native; | |
| 9277 | |
| 9278 void setTranslate(num tx, num ty) native; | |
| 9279 } | |
| 9280 | |
| 9281 class _SVGTransformListJs extends _DOMTypeJs implements SVGTransformList native
"*SVGTransformList" { | |
| 9282 | |
| 9283 final int numberOfItems; | |
| 9284 | |
| 9285 _SVGTransformJs appendItem(_SVGTransformJs item) native; | |
| 9286 | |
| 9287 void clear() native; | |
| 9288 | |
| 9289 _SVGTransformJs consolidate() native; | |
| 9290 | |
| 9291 _SVGTransformJs createSVGTransformFromMatrix(_SVGMatrixJs matrix) native; | |
| 9292 | |
| 9293 _SVGTransformJs getItem(int index) native; | |
| 9294 | |
| 9295 _SVGTransformJs initialize(_SVGTransformJs item) native; | |
| 9296 | |
| 9297 _SVGTransformJs insertItemBefore(_SVGTransformJs item, int index) native; | |
| 9298 | |
| 9299 _SVGTransformJs removeItem(int index) native; | |
| 9300 | |
| 9301 _SVGTransformJs replaceItem(_SVGTransformJs item, int index) native; | |
| 9302 } | |
| 9303 | |
| 9304 class _SVGUnitTypesJs extends _DOMTypeJs implements SVGUnitTypes native "*SVGUni
tTypes" { | |
| 9305 | |
| 9306 static final int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; | |
| 9307 | |
| 9308 static final int SVG_UNIT_TYPE_UNKNOWN = 0; | |
| 9309 | |
| 9310 static final int SVG_UNIT_TYPE_USERSPACEONUSE = 1; | |
| 9311 } | |
| 9312 | |
| 9313 class _SVGUseElementJs extends _SVGElementJs implements SVGUseElement native "*S
VGUseElement" { | |
| 9314 | |
| 9315 final _SVGElementInstanceJs animatedInstanceRoot; | |
| 9316 | |
| 9317 final _SVGAnimatedLengthJs height; | |
| 9318 | |
| 9319 final _SVGElementInstanceJs instanceRoot; | |
| 9320 | |
| 9321 final _SVGAnimatedLengthJs width; | |
| 9322 | |
| 9323 final _SVGAnimatedLengthJs x; | |
| 9324 | |
| 9325 final _SVGAnimatedLengthJs y; | |
| 9326 | |
| 9327 // From SVGURIReference | |
| 9328 | |
| 9329 final _SVGAnimatedStringJs href; | |
| 9330 | |
| 9331 // From SVGTests | |
| 9332 | |
| 9333 final _SVGStringListJs requiredExtensions; | |
| 9334 | |
| 9335 final _SVGStringListJs requiredFeatures; | |
| 9336 | |
| 9337 final _SVGStringListJs systemLanguage; | |
| 9338 | |
| 9339 bool hasExtension(String extension) native; | |
| 9340 | |
| 9341 // From SVGLangSpace | |
| 9342 | |
| 9343 String xmllang; | |
| 9344 | |
| 9345 String xmlspace; | |
| 9346 | |
| 9347 // From SVGExternalResourcesRequired | |
| 9348 | |
| 9349 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 9350 | |
| 9351 // From SVGStylable | |
| 9352 | |
| 9353 final _SVGAnimatedStringJs className; | |
| 9354 | |
| 9355 // Use implementation from Element. | |
| 9356 // final _CSSStyleDeclarationJs style; | |
| 9357 | |
| 9358 _CSSValueJs getPresentationAttribute(String name) native; | |
| 9359 | |
| 9360 // From SVGTransformable | |
| 9361 | |
| 9362 final _SVGAnimatedTransformListJs transform; | |
| 9363 | |
| 9364 // From SVGLocatable | |
| 9365 | |
| 9366 final _SVGElementJs farthestViewportElement; | |
| 9367 | |
| 9368 final _SVGElementJs nearestViewportElement; | |
| 9369 | |
| 9370 _SVGRectJs getBBox() native; | |
| 9371 | |
| 9372 _SVGMatrixJs getCTM() native; | |
| 9373 | |
| 9374 _SVGMatrixJs getScreenCTM() native; | |
| 9375 | |
| 9376 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; | |
| 9377 } | |
| 9378 | |
| 9379 class _SVGVKernElementJs extends _SVGElementJs implements SVGVKernElement native
"*SVGVKernElement" { | |
| 9380 } | |
| 9381 | |
| 9382 class _SVGViewElementJs extends _SVGElementJs implements SVGViewElement native "
*SVGViewElement" { | |
| 9383 | |
| 9384 final _SVGStringListJs viewTarget; | |
| 9385 | |
| 9386 // From SVGExternalResourcesRequired | |
| 9387 | |
| 9388 final _SVGAnimatedBooleanJs externalResourcesRequired; | |
| 9389 | |
| 9390 // From SVGFitToViewBox | |
| 9391 | |
| 9392 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
| 9393 | |
| 9394 final _SVGAnimatedRectJs viewBox; | |
| 9395 | |
| 9396 // From SVGZoomAndPan | |
| 9397 | |
| 9398 int zoomAndPan; | |
| 9399 } | |
| 9400 | |
| 9401 class _SVGViewSpecJs extends _DOMTypeJs implements SVGViewSpec native "*SVGViewS
pec" { | |
| 9402 | |
| 9403 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio; | |
| 9404 | |
| 9405 final String preserveAspectRatioString; | |
| 9406 | |
| 9407 final _SVGTransformListJs transform; | |
| 9408 | |
| 9409 final String transformString; | |
| 9410 | |
| 9411 final _SVGAnimatedRectJs viewBox; | |
| 9412 | |
| 9413 final String viewBoxString; | |
| 9414 | |
| 9415 final _SVGElementJs viewTarget; | |
| 9416 | |
| 9417 final String viewTargetString; | |
| 9418 | |
| 9419 int zoomAndPan; | |
| 9420 } | |
| 9421 | |
| 9422 class _SVGZoomEventJs extends _UIEventJs implements SVGZoomEvent native "*SVGZoo
mEvent" { | |
| 9423 | |
| 9424 final num newScale; | |
| 9425 | |
| 9426 final _SVGPointJs newTranslate; | |
| 9427 | |
| 9428 final num previousScale; | |
| 9429 | |
| 9430 final _SVGPointJs previousTranslate; | |
| 9431 | |
| 9432 final _SVGRectJs zoomRectScreen; | |
| 9433 } | |
| 9434 | |
| 9435 class _ScreenJs extends _DOMTypeJs implements Screen native "*Screen" { | |
| 9436 | |
| 9437 final int availHeight; | |
| 9438 | |
| 9439 final int availLeft; | |
| 9440 | |
| 9441 final int availTop; | |
| 9442 | |
| 9443 final int availWidth; | |
| 9444 | |
| 9445 final int colorDepth; | |
| 9446 | |
| 9447 final int height; | |
| 9448 | |
| 9449 final int pixelDepth; | |
| 9450 | |
| 9451 final int width; | |
| 9452 } | |
| 9453 | |
| 9454 class _ScriptProfileJs extends _DOMTypeJs implements ScriptProfile native "*Scri
ptProfile" { | |
| 9455 | |
| 9456 final _ScriptProfileNodeJs head; | |
| 9457 | |
| 9458 final String title; | |
| 9459 | |
| 9460 final int uid; | |
| 9461 } | |
| 9462 | |
| 9463 class _ScriptProfileNodeJs extends _DOMTypeJs implements ScriptProfileNode nativ
e "*ScriptProfileNode" { | |
| 9464 | |
| 9465 final int callUID; | |
| 9466 | |
| 9467 final String functionName; | |
| 9468 | |
| 9469 final int lineNumber; | |
| 9470 | |
| 9471 final int numberOfCalls; | |
| 9472 | |
| 9473 final num selfTime; | |
| 9474 | |
| 9475 final num totalTime; | |
| 9476 | |
| 9477 final String url; | |
| 9478 | |
| 9479 final bool visible; | |
| 9480 | |
| 9481 List<ScriptProfileNode> children() native; | |
| 9482 } | |
| 9483 | |
| 9484 class _SessionDescriptionJs extends _DOMTypeJs implements SessionDescription nat
ive "*SessionDescription" { | |
| 9485 | |
| 9486 void addCandidate(_IceCandidateJs candidate) native; | |
| 9487 | |
| 9488 String toSdp() native; | |
| 9489 } | |
| 9490 | |
| 9491 class _ShadowRootJs extends _DocumentFragmentJs implements ShadowRoot native "*S
hadowRoot" { | |
| 9492 | |
| 9493 final _ElementJs activeElement; | |
| 9494 | |
| 9495 bool applyAuthorStyles; | |
| 9496 | |
| 9497 String innerHTML; | |
| 9498 | |
| 9499 bool resetStyleInheritance; | |
| 9500 | |
| 9501 _ElementJs getElementById(String elementId) native; | |
| 9502 | |
| 9503 _NodeListJs getElementsByClassName(String className) native; | |
| 9504 | |
| 9505 _NodeListJs getElementsByTagName(String tagName) native; | |
| 9506 | |
| 9507 _NodeListJs getElementsByTagNameNS(String namespaceURI, String localName) nati
ve; | |
| 9508 | |
| 9509 _DOMSelectionJs getSelection() native; | |
| 9510 } | |
| 9511 | |
| 9512 class _SharedWorkerJs extends _AbstractWorkerJs implements SharedWorker native "
*SharedWorker" { | |
| 9513 | |
| 9514 final _MessagePortJs port; | |
| 9515 } | |
| 9516 | |
| 9517 class _SharedWorkerContextJs extends _WorkerContextJs implements SharedWorkerCon
text native "*SharedWorkerContext" { | |
| 9518 | |
| 9519 final String name; | |
| 9520 } | |
| 9521 | |
| 9522 class _SpeechGrammarJs extends _DOMTypeJs implements SpeechGrammar native "*Spee
chGrammar" { | |
| 9523 | |
| 9524 String src; | |
| 9525 | |
| 9526 num weight; | |
| 9527 } | |
| 9528 | |
| 9529 class _SpeechGrammarListJs extends _DOMTypeJs implements SpeechGrammarList nativ
e "*SpeechGrammarList" { | |
| 9530 | |
| 9531 final int length; | |
| 9532 | |
| 9533 void addFromString(String string, [num weight]) native; | |
| 9534 | |
| 9535 void addFromUri(String src, [num weight]) native; | |
| 9536 | |
| 9537 _SpeechGrammarJs item(int index) native; | |
| 9538 } | |
| 9539 | |
| 9540 class _SpeechInputEventJs extends _EventJs implements SpeechInputEvent native "*
SpeechInputEvent" { | |
| 9541 | |
| 9542 final _SpeechInputResultListJs results; | |
| 9543 } | |
| 9544 | |
| 9545 class _SpeechInputResultJs extends _DOMTypeJs implements SpeechInputResult nativ
e "*SpeechInputResult" { | |
| 9546 | |
| 9547 final num confidence; | |
| 9548 | |
| 9549 final String utterance; | |
| 9550 } | |
| 9551 | |
| 9552 class _SpeechInputResultListJs extends _DOMTypeJs implements SpeechInputResultLi
st native "*SpeechInputResultList" { | |
| 9553 | |
| 9554 final int length; | |
| 9555 | |
| 9556 _SpeechInputResultJs item(int index) native; | |
| 9557 } | |
| 9558 | |
| 9559 class _SpeechRecognitionJs extends _EventTargetJs implements SpeechRecognition n
ative "*SpeechRecognition" { | |
| 9560 | |
| 9561 bool continuous; | |
| 9562 | |
| 9563 _SpeechGrammarListJs grammars; | |
| 9564 | |
| 9565 String lang; | |
| 9566 | |
| 9567 int maxAlternatives; | |
| 9568 | |
| 9569 void abort() native; | |
| 9570 | |
| 9571 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 9572 | |
| 9573 bool dispatchEvent(_EventJs evt) native; | |
| 9574 | |
| 9575 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 9576 | |
| 9577 void start() native; | |
| 9578 | |
| 9579 void stop() native; | |
| 9580 } | |
| 9581 | |
| 9582 class _SpeechRecognitionAlternativeJs extends _DOMTypeJs implements SpeechRecogn
itionAlternative native "*SpeechRecognitionAlternative" { | |
| 9583 | |
| 9584 final num confidence; | |
| 9585 | |
| 9586 final String transcript; | |
| 9587 } | |
| 9588 | |
| 9589 class _SpeechRecognitionErrorJs extends _EventJs implements SpeechRecognitionErr
or native "*SpeechRecognitionError" { | |
| 9590 | |
| 9591 static final int ABORTED = 2; | |
| 9592 | |
| 9593 static final int AUDIO_CAPTURE = 3; | |
| 9594 | |
| 9595 static final int BAD_GRAMMAR = 7; | |
| 9596 | |
| 9597 static final int LANGUAGE_NOT_SUPPORTED = 8; | |
| 9598 | |
| 9599 static final int NETWORK = 4; | |
| 9600 | |
| 9601 static final int NOT_ALLOWED = 5; | |
| 9602 | |
| 9603 static final int NO_SPEECH = 1; | |
| 9604 | |
| 9605 static final int OTHER = 0; | |
| 9606 | |
| 9607 static final int SERVICE_NOT_ALLOWED = 6; | |
| 9608 | |
| 9609 final int code; | |
| 9610 | |
| 9611 final String message; | |
| 9612 } | |
| 9613 | |
| 9614 class _SpeechRecognitionEventJs extends _EventJs implements SpeechRecognitionEve
nt native "*SpeechRecognitionEvent" { | |
| 9615 | |
| 9616 final _SpeechRecognitionResultJs result; | |
| 9617 | |
| 9618 final _SpeechRecognitionResultListJs resultHistory; | |
| 9619 | |
| 9620 final int resultIndex; | |
| 9621 } | |
| 9622 | |
| 9623 class _SpeechRecognitionResultJs extends _DOMTypeJs implements SpeechRecognition
Result native "*SpeechRecognitionResult" { | |
| 9624 | |
| 9625 bool get finalValue() native "return this.final;"; | |
| 9626 | |
| 9627 final int length; | |
| 9628 | |
| 9629 _SpeechRecognitionAlternativeJs item(int index) native; | |
| 9630 } | |
| 9631 | |
| 9632 class _SpeechRecognitionResultListJs extends _DOMTypeJs implements SpeechRecogni
tionResultList native "*SpeechRecognitionResultList" { | |
| 9633 | |
| 9634 final int length; | |
| 9635 | |
| 9636 _SpeechRecognitionResultJs item(int index) native; | |
| 9637 } | |
| 9638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 9639 // for details. All rights reserved. Use of this source code is governed by a | |
| 9640 // BSD-style license that can be found in the LICENSE file. | |
| 9641 | |
| 9642 class _StorageJs extends _DOMTypeJs implements Storage native "*Storage" { | |
| 9643 | |
| 9644 final int length; | |
| 9645 | |
| 9646 void clear() native; | |
| 9647 | |
| 9648 String getItem(String key) native; | |
| 9649 | |
| 9650 String key(int index) native; | |
| 9651 | |
| 9652 void removeItem(String key) native; | |
| 9653 | |
| 9654 void setItem(String key, String data) native; | |
| 9655 | |
| 9656 | |
| 9657 // Storage needs a special implementation of dartObjectLocalStorage since it | |
| 9658 // captures what would normally be an expando and places property in the | |
| 9659 // storage, stringifying the assigned value. | |
| 9660 | |
| 9661 get dartObjectLocalStorage() native """ | |
| 9662 if (this === window.localStorage) | |
| 9663 return window._dartLocalStorageLocalStorage; | |
| 9664 else if (this === window.sessionStorage) | |
| 9665 return window._dartSessionStorageLocalStorage; | |
| 9666 else | |
| 9667 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for
unknown Storage object.'); | |
| 9668 """ { throw new UnsupportedOperationException(''); } | |
| 9669 | |
| 9670 void set dartObjectLocalStorage(var value) native """ | |
| 9671 if (this === window.localStorage) | |
| 9672 window._dartLocalStorageLocalStorage = value; | |
| 9673 else if (this === window.sessionStorage) | |
| 9674 window._dartSessionStorageLocalStorage = value; | |
| 9675 else | |
| 9676 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for
unknown Storage object.'); | |
| 9677 """ { throw new UnsupportedOperationException(''); } | |
| 9678 } | |
| 9679 | |
| 9680 class _StorageEventJs extends _EventJs implements StorageEvent native "*StorageE
vent" { | |
| 9681 | |
| 9682 final String key; | |
| 9683 | |
| 9684 final String newValue; | |
| 9685 | |
| 9686 final String oldValue; | |
| 9687 | |
| 9688 final _StorageJs storageArea; | |
| 9689 | |
| 9690 final String url; | |
| 9691 | |
| 9692 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, _StorageJs
storageAreaArg) native; | |
| 9693 } | |
| 9694 | |
| 9695 class _StorageInfoJs extends _DOMTypeJs implements StorageInfo native "*StorageI
nfo" { | |
| 9696 | |
| 9697 static final int PERSISTENT = 1; | |
| 9698 | |
| 9699 static final int TEMPORARY = 0; | |
| 9700 | |
| 9701 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]) native; | |
| 9702 | |
| 9703 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]) native; | |
| 9704 } | |
| 9705 | |
| 9706 class _StyleMediaJs extends _DOMTypeJs implements StyleMedia native "*StyleMedia
" { | |
| 9707 | |
| 9708 final String type; | |
| 9709 | |
| 9710 bool matchMedium(String mediaquery) native; | |
| 9711 } | |
| 9712 | |
| 9713 class _StyleSheetJs extends _DOMTypeJs implements StyleSheet native "*StyleSheet
" { | |
| 9714 | |
| 9715 bool disabled; | |
| 9716 | |
| 9717 final String href; | |
| 9718 | |
| 9719 final _MediaListJs media; | |
| 9720 | |
| 9721 final _NodeJs ownerNode; | |
| 9722 | |
| 9723 final _StyleSheetJs parentStyleSheet; | |
| 9724 | |
| 9725 final String title; | |
| 9726 | |
| 9727 final String type; | |
| 9728 } | |
| 9729 | |
| 9730 class _StyleSheetListJs extends _DOMTypeJs implements StyleSheetList native "*St
yleSheetList" { | |
| 9731 | |
| 9732 final int length; | |
| 9733 | |
| 9734 _StyleSheetJs operator[](int index) native "return this[index];"; | |
| 9735 | |
| 9736 void operator[]=(int index, _StyleSheetJs value) { | |
| 9737 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 9738 } | |
| 9739 // -- start List<StyleSheet> mixins. | |
| 9740 // StyleSheet is the element type. | |
| 9741 | |
| 9742 // From Iterable<StyleSheet>: | |
| 9743 | |
| 9744 Iterator<StyleSheet> iterator() { | |
| 9745 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 9746 // be cached in both iterator _and_ forEach method. For now caching it | |
| 9747 // for consistency. | |
| 9748 return new _FixedSizeListIterator<StyleSheet>(this); | |
| 9749 } | |
| 9750 | |
| 9751 // From Collection<StyleSheet>: | |
| 9752 | |
| 9753 void add(StyleSheet value) { | |
| 9754 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 9755 } | |
| 9756 | |
| 9757 void addLast(StyleSheet value) { | |
| 9758 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 9759 } | |
| 9760 | |
| 9761 void addAll(Collection<StyleSheet> collection) { | |
| 9762 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 9763 } | |
| 9764 | |
| 9765 void forEach(void f(StyleSheet element)) => _Collections.forEach(this, f); | |
| 9766 | |
| 9767 Collection map(f(StyleSheet element)) => _Collections.map(this, [], f); | |
| 9768 | |
| 9769 Collection<StyleSheet> filter(bool f(StyleSheet element)) => | |
| 9770 _Collections.filter(this, <StyleSheet>[], f); | |
| 9771 | |
| 9772 bool every(bool f(StyleSheet element)) => _Collections.every(this, f); | |
| 9773 | |
| 9774 bool some(bool f(StyleSheet element)) => _Collections.some(this, f); | |
| 9775 | |
| 9776 bool isEmpty() => this.length == 0; | |
| 9777 | |
| 9778 // From List<StyleSheet>: | |
| 9779 | |
| 9780 void sort(int compare(StyleSheet a, StyleSheet b)) { | |
| 9781 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 9782 } | |
| 9783 | |
| 9784 int indexOf(StyleSheet element, [int start = 0]) => | |
| 9785 _Lists.indexOf(this, element, start, this.length); | |
| 9786 | |
| 9787 int lastIndexOf(StyleSheet element, [int start]) { | |
| 9788 if (start === null) start = length - 1; | |
| 9789 return _Lists.lastIndexOf(this, element, start); | |
| 9790 } | |
| 9791 | |
| 9792 StyleSheet last() => this[length - 1]; | |
| 9793 | |
| 9794 StyleSheet removeLast() { | |
| 9795 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 9796 } | |
| 9797 | |
| 9798 // FIXME: implement these. | |
| 9799 void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFro
m]) { | |
| 9800 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 9801 } | |
| 9802 | |
| 9803 void removeRange(int start, int rangeLength) { | |
| 9804 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 9805 } | |
| 9806 | |
| 9807 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { | |
| 9808 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 9809 } | |
| 9810 | |
| 9811 List<StyleSheet> getRange(int start, int rangeLength) => | |
| 9812 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]); | |
| 9813 | |
| 9814 // -- end List<StyleSheet> mixins. | |
| 9815 | |
| 9816 _StyleSheetJs item(int index) native; | |
| 9817 } | |
| 9818 | |
| 9819 class _TextJs extends _CharacterDataJs implements Text native "*Text" { | |
| 9820 | |
| 9821 final String wholeText; | |
| 9822 | |
| 9823 _TextJs replaceWholeText(String content) native; | |
| 9824 | |
| 9825 _TextJs splitText(int offset) native; | |
| 9826 } | |
| 9827 | |
| 9828 class _TextEventJs extends _UIEventJs implements TextEvent native "*TextEvent" { | |
| 9829 | |
| 9830 final String data; | |
| 9831 | |
| 9832 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, _DOM
WindowJs viewArg, String dataArg) native; | |
| 9833 } | |
| 9834 | |
| 9835 class _TextMetricsJs extends _DOMTypeJs implements TextMetrics native "*TextMetr
ics" { | |
| 9836 | |
| 9837 final num width; | |
| 9838 } | |
| 9839 | |
| 9840 class _TextTrackJs extends _EventTargetJs implements TextTrack native "*TextTrac
k" { | |
| 9841 | |
| 9842 static final int DISABLED = 0; | |
| 9843 | |
| 9844 static final int HIDDEN = 1; | |
| 9845 | |
| 9846 static final int SHOWING = 2; | |
| 9847 | |
| 9848 final _TextTrackCueListJs activeCues; | |
| 9849 | |
| 9850 final _TextTrackCueListJs cues; | |
| 9851 | |
| 9852 final String kind; | |
| 9853 | |
| 9854 final String label; | |
| 9855 | |
| 9856 final String language; | |
| 9857 | |
| 9858 int mode; | |
| 9859 | |
| 9860 void addCue(_TextTrackCueJs cue) native; | |
| 9861 | |
| 9862 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 9863 | |
| 9864 bool dispatchEvent(_EventJs evt) native; | |
| 9865 | |
| 9866 void removeCue(_TextTrackCueJs cue) native; | |
| 9867 | |
| 9868 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 9869 } | |
| 9870 | |
| 9871 class _TextTrackCueJs extends _EventTargetJs implements TextTrackCue native "*Te
xtTrackCue" { | |
| 9872 | |
| 9873 String align; | |
| 9874 | |
| 9875 num endTime; | |
| 9876 | |
| 9877 String id; | |
| 9878 | |
| 9879 int line; | |
| 9880 | |
| 9881 bool pauseOnExit; | |
| 9882 | |
| 9883 int position; | |
| 9884 | |
| 9885 int size; | |
| 9886 | |
| 9887 bool snapToLines; | |
| 9888 | |
| 9889 num startTime; | |
| 9890 | |
| 9891 String text; | |
| 9892 | |
| 9893 final _TextTrackJs track; | |
| 9894 | |
| 9895 String vertical; | |
| 9896 | |
| 9897 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 9898 | |
| 9899 bool dispatchEvent(_EventJs evt) native; | |
| 9900 | |
| 9901 _DocumentFragmentJs getCueAsHTML() native; | |
| 9902 | |
| 9903 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 9904 } | |
| 9905 | |
| 9906 class _TextTrackCueListJs extends _DOMTypeJs implements TextTrackCueList native
"*TextTrackCueList" { | |
| 9907 | |
| 9908 final int length; | |
| 9909 | |
| 9910 _TextTrackCueJs getCueById(String id) native; | |
| 9911 | |
| 9912 _TextTrackCueJs item(int index) native; | |
| 9913 } | |
| 9914 | |
| 9915 class _TextTrackListJs extends _EventTargetJs implements TextTrackList native "*
TextTrackList" { | |
| 9916 | |
| 9917 final int length; | |
| 9918 | |
| 9919 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 9920 | |
| 9921 bool dispatchEvent(_EventJs evt) native; | |
| 9922 | |
| 9923 _TextTrackJs item(int index) native; | |
| 9924 | |
| 9925 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 9926 } | |
| 9927 | |
| 9928 class _TimeRangesJs extends _DOMTypeJs implements TimeRanges native "*TimeRanges
" { | |
| 9929 | |
| 9930 final int length; | |
| 9931 | |
| 9932 num end(int index) native; | |
| 9933 | |
| 9934 num start(int index) native; | |
| 9935 } | |
| 9936 | |
| 9937 class _TouchJs extends _DOMTypeJs implements Touch native "*Touch" { | |
| 9938 | |
| 9939 final int clientX; | |
| 9940 | |
| 9941 final int clientY; | |
| 9942 | |
| 9943 final int identifier; | |
| 9944 | |
| 9945 final int pageX; | |
| 9946 | |
| 9947 final int pageY; | |
| 9948 | |
| 9949 final int screenX; | |
| 9950 | |
| 9951 final int screenY; | |
| 9952 | |
| 9953 final _EventTargetJs target; | |
| 9954 | |
| 9955 final num webkitForce; | |
| 9956 | |
| 9957 final int webkitRadiusX; | |
| 9958 | |
| 9959 final int webkitRadiusY; | |
| 9960 | |
| 9961 final num webkitRotationAngle; | |
| 9962 } | |
| 9963 | |
| 9964 class _TouchEventJs extends _UIEventJs implements TouchEvent native "*TouchEvent
" { | |
| 9965 | |
| 9966 final bool altKey; | |
| 9967 | |
| 9968 final _TouchListJs changedTouches; | |
| 9969 | |
| 9970 final bool ctrlKey; | |
| 9971 | |
| 9972 final bool metaKey; | |
| 9973 | |
| 9974 final bool shiftKey; | |
| 9975 | |
| 9976 final _TouchListJs targetTouches; | |
| 9977 | |
| 9978 final _TouchListJs touches; | |
| 9979 | |
| 9980 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; | |
| 9981 } | |
| 9982 | |
| 9983 class _TouchListJs extends _DOMTypeJs implements TouchList native "*TouchList" { | |
| 9984 | |
| 9985 final int length; | |
| 9986 | |
| 9987 _TouchJs operator[](int index) native "return this[index];"; | |
| 9988 | |
| 9989 void operator[]=(int index, _TouchJs value) { | |
| 9990 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | |
| 9991 } | |
| 9992 // -- start List<Touch> mixins. | |
| 9993 // Touch is the element type. | |
| 9994 | |
| 9995 // From Iterable<Touch>: | |
| 9996 | |
| 9997 Iterator<Touch> iterator() { | |
| 9998 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 9999 // be cached in both iterator _and_ forEach method. For now caching it | |
| 10000 // for consistency. | |
| 10001 return new _FixedSizeListIterator<Touch>(this); | |
| 10002 } | |
| 10003 | |
| 10004 // From Collection<Touch>: | |
| 10005 | |
| 10006 void add(Touch value) { | |
| 10007 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10008 } | |
| 10009 | |
| 10010 void addLast(Touch value) { | |
| 10011 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10012 } | |
| 10013 | |
| 10014 void addAll(Collection<Touch> collection) { | |
| 10015 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10016 } | |
| 10017 | |
| 10018 void forEach(void f(Touch element)) => _Collections.forEach(this, f); | |
| 10019 | |
| 10020 Collection map(f(Touch element)) => _Collections.map(this, [], f); | |
| 10021 | |
| 10022 Collection<Touch> filter(bool f(Touch element)) => | |
| 10023 _Collections.filter(this, <Touch>[], f); | |
| 10024 | |
| 10025 bool every(bool f(Touch element)) => _Collections.every(this, f); | |
| 10026 | |
| 10027 bool some(bool f(Touch element)) => _Collections.some(this, f); | |
| 10028 | |
| 10029 bool isEmpty() => this.length == 0; | |
| 10030 | |
| 10031 // From List<Touch>: | |
| 10032 | |
| 10033 void sort(int compare(Touch a, Touch b)) { | |
| 10034 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 10035 } | |
| 10036 | |
| 10037 int indexOf(Touch element, [int start = 0]) => | |
| 10038 _Lists.indexOf(this, element, start, this.length); | |
| 10039 | |
| 10040 int lastIndexOf(Touch element, [int start]) { | |
| 10041 if (start === null) start = length - 1; | |
| 10042 return _Lists.lastIndexOf(this, element, start); | |
| 10043 } | |
| 10044 | |
| 10045 Touch last() => this[length - 1]; | |
| 10046 | |
| 10047 Touch removeLast() { | |
| 10048 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 10049 } | |
| 10050 | |
| 10051 // FIXME: implement these. | |
| 10052 void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) { | |
| 10053 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 10054 } | |
| 10055 | |
| 10056 void removeRange(int start, int rangeLength) { | |
| 10057 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 10058 } | |
| 10059 | |
| 10060 void insertRange(int start, int rangeLength, [Touch initialValue]) { | |
| 10061 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 10062 } | |
| 10063 | |
| 10064 List<Touch> getRange(int start, int rangeLength) => | |
| 10065 _Lists.getRange(this, start, rangeLength, <Touch>[]); | |
| 10066 | |
| 10067 // -- end List<Touch> mixins. | |
| 10068 | |
| 10069 _TouchJs item(int index) native; | |
| 10070 } | |
| 10071 | |
| 10072 class _TrackEventJs extends _EventJs implements TrackEvent native "*TrackEvent"
{ | |
| 10073 | |
| 10074 final Object track; | |
| 10075 } | |
| 10076 | |
| 10077 class _TreeWalkerJs extends _DOMTypeJs implements TreeWalker native "*TreeWalker
" { | |
| 10078 | |
| 10079 _NodeJs currentNode; | |
| 10080 | |
| 10081 final bool expandEntityReferences; | |
| 10082 | |
| 10083 final _NodeFilterJs filter; | |
| 10084 | |
| 10085 final _NodeJs root; | |
| 10086 | |
| 10087 final int whatToShow; | |
| 10088 | |
| 10089 _NodeJs firstChild() native; | |
| 10090 | |
| 10091 _NodeJs lastChild() native; | |
| 10092 | |
| 10093 _NodeJs nextNode() native; | |
| 10094 | |
| 10095 _NodeJs nextSibling() native; | |
| 10096 | |
| 10097 _NodeJs parentNode() native; | |
| 10098 | |
| 10099 _NodeJs previousNode() native; | |
| 10100 | |
| 10101 _NodeJs previousSibling() native; | |
| 10102 } | |
| 10103 | |
| 10104 class _UIEventJs extends _EventJs implements UIEvent native "*UIEvent" { | |
| 10105 | |
| 10106 final int charCode; | |
| 10107 | |
| 10108 final int detail; | |
| 10109 | |
| 10110 final int keyCode; | |
| 10111 | |
| 10112 final int layerX; | |
| 10113 | |
| 10114 final int layerY; | |
| 10115 | |
| 10116 final int pageX; | |
| 10117 | |
| 10118 final int pageY; | |
| 10119 | |
| 10120 final _DOMWindowJs view; | |
| 10121 | |
| 10122 final int which; | |
| 10123 | |
| 10124 void initUIEvent(String type, bool canBubble, bool cancelable, _DOMWindowJs vi
ew, int detail) native; | |
| 10125 } | |
| 10126 | |
| 10127 class _Uint16ArrayJs extends _ArrayBufferViewJs implements Uint16Array, List<int
> native "*Uint16Array" { | |
| 10128 | |
| 10129 static final int BYTES_PER_ELEMENT = 2; | |
| 10130 | |
| 10131 final int length; | |
| 10132 | |
| 10133 int operator[](int index) native "return this[index];"; | |
| 10134 | |
| 10135 void operator[]=(int index, int value) native "this[index] = value"; | |
| 10136 // -- start List<int> mixins. | |
| 10137 // int is the element type. | |
| 10138 | |
| 10139 // From Iterable<int>: | |
| 10140 | |
| 10141 Iterator<int> iterator() { | |
| 10142 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 10143 // be cached in both iterator _and_ forEach method. For now caching it | |
| 10144 // for consistency. | |
| 10145 return new _FixedSizeListIterator<int>(this); | |
| 10146 } | |
| 10147 | |
| 10148 // From Collection<int>: | |
| 10149 | |
| 10150 void add(int value) { | |
| 10151 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10152 } | |
| 10153 | |
| 10154 void addLast(int value) { | |
| 10155 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10156 } | |
| 10157 | |
| 10158 void addAll(Collection<int> collection) { | |
| 10159 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10160 } | |
| 10161 | |
| 10162 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
| 10163 | |
| 10164 Collection map(f(int element)) => _Collections.map(this, [], f); | |
| 10165 | |
| 10166 Collection<int> filter(bool f(int element)) => | |
| 10167 _Collections.filter(this, <int>[], f); | |
| 10168 | |
| 10169 bool every(bool f(int element)) => _Collections.every(this, f); | |
| 10170 | |
| 10171 bool some(bool f(int element)) => _Collections.some(this, f); | |
| 10172 | |
| 10173 bool isEmpty() => this.length == 0; | |
| 10174 | |
| 10175 // From List<int>: | |
| 10176 | |
| 10177 void sort(int compare(int a, int b)) { | |
| 10178 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 10179 } | |
| 10180 | |
| 10181 int indexOf(int element, [int start = 0]) => | |
| 10182 _Lists.indexOf(this, element, start, this.length); | |
| 10183 | |
| 10184 int lastIndexOf(int element, [int start]) { | |
| 10185 if (start === null) start = length - 1; | |
| 10186 return _Lists.lastIndexOf(this, element, start); | |
| 10187 } | |
| 10188 | |
| 10189 int last() => this[length - 1]; | |
| 10190 | |
| 10191 int removeLast() { | |
| 10192 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 10193 } | |
| 10194 | |
| 10195 // FIXME: implement these. | |
| 10196 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
| 10197 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 10198 } | |
| 10199 | |
| 10200 void removeRange(int start, int rangeLength) { | |
| 10201 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 10202 } | |
| 10203 | |
| 10204 void insertRange(int start, int rangeLength, [int initialValue]) { | |
| 10205 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 10206 } | |
| 10207 | |
| 10208 List<int> getRange(int start, int rangeLength) => | |
| 10209 _Lists.getRange(this, start, rangeLength, <int>[]); | |
| 10210 | |
| 10211 // -- end List<int> mixins. | |
| 10212 | |
| 10213 void setElements(Object array, [int offset]) native 'set'; | |
| 10214 | |
| 10215 _Uint16ArrayJs subarray(int start, [int end]) native; | |
| 10216 } | |
| 10217 | |
| 10218 class _Uint32ArrayJs extends _ArrayBufferViewJs implements Uint32Array, List<int
> native "*Uint32Array" { | |
| 10219 | |
| 10220 static final int BYTES_PER_ELEMENT = 4; | |
| 10221 | |
| 10222 final int length; | |
| 10223 | |
| 10224 int operator[](int index) native "return this[index];"; | |
| 10225 | |
| 10226 void operator[]=(int index, int value) native "this[index] = value"; | |
| 10227 // -- start List<int> mixins. | |
| 10228 // int is the element type. | |
| 10229 | |
| 10230 // From Iterable<int>: | |
| 10231 | |
| 10232 Iterator<int> iterator() { | |
| 10233 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 10234 // be cached in both iterator _and_ forEach method. For now caching it | |
| 10235 // for consistency. | |
| 10236 return new _FixedSizeListIterator<int>(this); | |
| 10237 } | |
| 10238 | |
| 10239 // From Collection<int>: | |
| 10240 | |
| 10241 void add(int value) { | |
| 10242 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10243 } | |
| 10244 | |
| 10245 void addLast(int value) { | |
| 10246 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10247 } | |
| 10248 | |
| 10249 void addAll(Collection<int> collection) { | |
| 10250 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10251 } | |
| 10252 | |
| 10253 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
| 10254 | |
| 10255 Collection map(f(int element)) => _Collections.map(this, [], f); | |
| 10256 | |
| 10257 Collection<int> filter(bool f(int element)) => | |
| 10258 _Collections.filter(this, <int>[], f); | |
| 10259 | |
| 10260 bool every(bool f(int element)) => _Collections.every(this, f); | |
| 10261 | |
| 10262 bool some(bool f(int element)) => _Collections.some(this, f); | |
| 10263 | |
| 10264 bool isEmpty() => this.length == 0; | |
| 10265 | |
| 10266 // From List<int>: | |
| 10267 | |
| 10268 void sort(int compare(int a, int b)) { | |
| 10269 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 10270 } | |
| 10271 | |
| 10272 int indexOf(int element, [int start = 0]) => | |
| 10273 _Lists.indexOf(this, element, start, this.length); | |
| 10274 | |
| 10275 int lastIndexOf(int element, [int start]) { | |
| 10276 if (start === null) start = length - 1; | |
| 10277 return _Lists.lastIndexOf(this, element, start); | |
| 10278 } | |
| 10279 | |
| 10280 int last() => this[length - 1]; | |
| 10281 | |
| 10282 int removeLast() { | |
| 10283 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 10284 } | |
| 10285 | |
| 10286 // FIXME: implement these. | |
| 10287 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
| 10288 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 10289 } | |
| 10290 | |
| 10291 void removeRange(int start, int rangeLength) { | |
| 10292 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 10293 } | |
| 10294 | |
| 10295 void insertRange(int start, int rangeLength, [int initialValue]) { | |
| 10296 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 10297 } | |
| 10298 | |
| 10299 List<int> getRange(int start, int rangeLength) => | |
| 10300 _Lists.getRange(this, start, rangeLength, <int>[]); | |
| 10301 | |
| 10302 // -- end List<int> mixins. | |
| 10303 | |
| 10304 void setElements(Object array, [int offset]) native 'set'; | |
| 10305 | |
| 10306 _Uint32ArrayJs subarray(int start, [int end]) native; | |
| 10307 } | |
| 10308 | |
| 10309 class _Uint8ArrayJs extends _ArrayBufferViewJs implements Uint8Array, List<int>
native "*Uint8Array" { | |
| 10310 | |
| 10311 static final int BYTES_PER_ELEMENT = 1; | |
| 10312 | |
| 10313 final int length; | |
| 10314 | |
| 10315 int operator[](int index) native "return this[index];"; | |
| 10316 | |
| 10317 void operator[]=(int index, int value) native "this[index] = value"; | |
| 10318 // -- start List<int> mixins. | |
| 10319 // int is the element type. | |
| 10320 | |
| 10321 // From Iterable<int>: | |
| 10322 | |
| 10323 Iterator<int> iterator() { | |
| 10324 // Note: NodeLists are not fixed size. And most probably length shouldn't | |
| 10325 // be cached in both iterator _and_ forEach method. For now caching it | |
| 10326 // for consistency. | |
| 10327 return new _FixedSizeListIterator<int>(this); | |
| 10328 } | |
| 10329 | |
| 10330 // From Collection<int>: | |
| 10331 | |
| 10332 void add(int value) { | |
| 10333 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10334 } | |
| 10335 | |
| 10336 void addLast(int value) { | |
| 10337 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10338 } | |
| 10339 | |
| 10340 void addAll(Collection<int> collection) { | |
| 10341 throw new UnsupportedOperationException("Cannot add to immutable List."); | |
| 10342 } | |
| 10343 | |
| 10344 void forEach(void f(int element)) => _Collections.forEach(this, f); | |
| 10345 | |
| 10346 Collection map(f(int element)) => _Collections.map(this, [], f); | |
| 10347 | |
| 10348 Collection<int> filter(bool f(int element)) => | |
| 10349 _Collections.filter(this, <int>[], f); | |
| 10350 | |
| 10351 bool every(bool f(int element)) => _Collections.every(this, f); | |
| 10352 | |
| 10353 bool some(bool f(int element)) => _Collections.some(this, f); | |
| 10354 | |
| 10355 bool isEmpty() => this.length == 0; | |
| 10356 | |
| 10357 // From List<int>: | |
| 10358 | |
| 10359 void sort(int compare(int a, int b)) { | |
| 10360 throw new UnsupportedOperationException("Cannot sort immutable List."); | |
| 10361 } | |
| 10362 | |
| 10363 int indexOf(int element, [int start = 0]) => | |
| 10364 _Lists.indexOf(this, element, start, this.length); | |
| 10365 | |
| 10366 int lastIndexOf(int element, [int start]) { | |
| 10367 if (start === null) start = length - 1; | |
| 10368 return _Lists.lastIndexOf(this, element, start); | |
| 10369 } | |
| 10370 | |
| 10371 int last() => this[length - 1]; | |
| 10372 | |
| 10373 int removeLast() { | |
| 10374 throw new UnsupportedOperationException("Cannot removeLast on immutable List
."); | |
| 10375 } | |
| 10376 | |
| 10377 // FIXME: implement these. | |
| 10378 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { | |
| 10379 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | |
| 10380 } | |
| 10381 | |
| 10382 void removeRange(int start, int rangeLength) { | |
| 10383 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | |
| 10384 } | |
| 10385 | |
| 10386 void insertRange(int start, int rangeLength, [int initialValue]) { | |
| 10387 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | |
| 10388 } | |
| 10389 | |
| 10390 List<int> getRange(int start, int rangeLength) => | |
| 10391 _Lists.getRange(this, start, rangeLength, <int>[]); | |
| 10392 | |
| 10393 // -- end List<int> mixins. | |
| 10394 | |
| 10395 void setElements(Object array, [int offset]) native 'set'; | |
| 10396 | |
| 10397 _Uint8ArrayJs subarray(int start, [int end]) native; | |
| 10398 } | |
| 10399 | |
| 10400 class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray na
tive "*Uint8ClampedArray" { | |
| 10401 | |
| 10402 // Use implementation from Uint8Array. | |
| 10403 // final int length; | |
| 10404 | |
| 10405 void setElements(Object array, [int offset]) native 'set'; | |
| 10406 | |
| 10407 _Uint8ClampedArrayJs subarray(int start, [int end]) native; | |
| 10408 } | |
| 10409 | |
| 10410 class _ValidityStateJs extends _DOMTypeJs implements ValidityState native "*Vali
dityState" { | |
| 10411 | |
| 10412 final bool customError; | |
| 10413 | |
| 10414 final bool patternMismatch; | |
| 10415 | |
| 10416 final bool rangeOverflow; | |
| 10417 | |
| 10418 final bool rangeUnderflow; | |
| 10419 | |
| 10420 final bool stepMismatch; | |
| 10421 | |
| 10422 final bool tooLong; | |
| 10423 | |
| 10424 final bool typeMismatch; | |
| 10425 | |
| 10426 final bool valid; | |
| 10427 | |
| 10428 final bool valueMissing; | |
| 10429 } | |
| 10430 | |
| 10431 class _WaveShaperNodeJs extends _AudioNodeJs implements WaveShaperNode native "*
WaveShaperNode" { | |
| 10432 | |
| 10433 _Float32ArrayJs curve; | |
| 10434 } | |
| 10435 | |
| 10436 class _WaveTableJs extends _DOMTypeJs implements WaveTable native "*WaveTable" { | |
| 10437 } | |
| 10438 | |
| 10439 class _WebGLActiveInfoJs extends _DOMTypeJs implements WebGLActiveInfo native "*
WebGLActiveInfo" { | |
| 10440 | |
| 10441 final String name; | |
| 10442 | |
| 10443 final int size; | |
| 10444 | |
| 10445 final int type; | |
| 10446 } | |
| 10447 | |
| 10448 class _WebGLBufferJs extends _DOMTypeJs implements WebGLBuffer native "*WebGLBuf
fer" { | |
| 10449 } | |
| 10450 | |
| 10451 class _WebGLCompressedTextureS3TCJs extends _DOMTypeJs implements WebGLCompresse
dTextureS3TC native "*WebGLCompressedTextureS3TC" { | |
| 10452 | |
| 10453 static final int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; | |
| 10454 | |
| 10455 static final int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; | |
| 10456 | |
| 10457 static final int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; | |
| 10458 | |
| 10459 static final int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; | |
| 10460 } | |
| 10461 | |
| 10462 class _WebGLContextAttributesJs extends _DOMTypeJs implements WebGLContextAttrib
utes native "*WebGLContextAttributes" { | |
| 10463 | |
| 10464 bool alpha; | |
| 10465 | |
| 10466 bool antialias; | |
| 10467 | |
| 10468 bool depth; | |
| 10469 | |
| 10470 bool premultipliedAlpha; | |
| 10471 | |
| 10472 bool preserveDrawingBuffer; | |
| 10473 | |
| 10474 bool stencil; | |
| 10475 } | |
| 10476 | |
| 10477 class _WebGLContextEventJs extends _EventJs implements WebGLContextEvent native
"*WebGLContextEvent" { | |
| 10478 | |
| 10479 final String statusMessage; | |
| 10480 } | |
| 10481 | |
| 10482 class _WebGLDebugRendererInfoJs extends _DOMTypeJs implements WebGLDebugRenderer
Info native "*WebGLDebugRendererInfo" { | |
| 10483 | |
| 10484 static final int UNMASKED_RENDERER_WEBGL = 0x9246; | |
| 10485 | |
| 10486 static final int UNMASKED_VENDOR_WEBGL = 0x9245; | |
| 10487 } | |
| 10488 | |
| 10489 class _WebGLDebugShadersJs extends _DOMTypeJs implements WebGLDebugShaders nativ
e "*WebGLDebugShaders" { | |
| 10490 | |
| 10491 String getTranslatedShaderSource(_WebGLShaderJs shader) native; | |
| 10492 } | |
| 10493 | |
| 10494 class _WebGLDepthTextureJs extends _DOMTypeJs implements WebGLDepthTexture nativ
e "*WebGLDepthTexture" { | |
| 10495 | |
| 10496 static final int UNSIGNED_INT_24_8_WEBGL = 0x84FA; | |
| 10497 } | |
| 10498 | |
| 10499 class _WebGLFramebufferJs extends _DOMTypeJs implements WebGLFramebuffer native
"*WebGLFramebuffer" { | |
| 10500 } | |
| 10501 | |
| 10502 class _WebGLLoseContextJs extends _DOMTypeJs implements WebGLLoseContext native
"*WebGLLoseContext" { | |
| 10503 | |
| 10504 void loseContext() native; | |
| 10505 | |
| 10506 void restoreContext() native; | |
| 10507 } | |
| 10508 | |
| 10509 class _WebGLProgramJs extends _DOMTypeJs implements WebGLProgram native "*WebGLP
rogram" { | |
| 10510 } | |
| 10511 | |
| 10512 class _WebGLRenderbufferJs extends _DOMTypeJs implements WebGLRenderbuffer nativ
e "*WebGLRenderbuffer" { | |
| 10513 } | |
| 10514 | |
| 10515 class _WebGLRenderingContextJs extends _CanvasRenderingContextJs implements WebG
LRenderingContext native "*WebGLRenderingContext" { | |
| 10516 | |
| 10517 static final int ACTIVE_ATTRIBUTES = 0x8B89; | |
| 10518 | |
| 10519 static final int ACTIVE_TEXTURE = 0x84E0; | |
| 10520 | |
| 10521 static final int ACTIVE_UNIFORMS = 0x8B86; | |
| 10522 | |
| 10523 static final int ALIASED_LINE_WIDTH_RANGE = 0x846E; | |
| 10524 | |
| 10525 static final int ALIASED_POINT_SIZE_RANGE = 0x846D; | |
| 10526 | |
| 10527 static final int ALPHA = 0x1906; | |
| 10528 | |
| 10529 static final int ALPHA_BITS = 0x0D55; | |
| 10530 | |
| 10531 static final int ALWAYS = 0x0207; | |
| 10532 | |
| 10533 static final int ARRAY_BUFFER = 0x8892; | |
| 10534 | |
| 10535 static final int ARRAY_BUFFER_BINDING = 0x8894; | |
| 10536 | |
| 10537 static final int ATTACHED_SHADERS = 0x8B85; | |
| 10538 | |
| 10539 static final int BACK = 0x0405; | |
| 10540 | |
| 10541 static final int BLEND = 0x0BE2; | |
| 10542 | |
| 10543 static final int BLEND_COLOR = 0x8005; | |
| 10544 | |
| 10545 static final int BLEND_DST_ALPHA = 0x80CA; | |
| 10546 | |
| 10547 static final int BLEND_DST_RGB = 0x80C8; | |
| 10548 | |
| 10549 static final int BLEND_EQUATION = 0x8009; | |
| 10550 | |
| 10551 static final int BLEND_EQUATION_ALPHA = 0x883D; | |
| 10552 | |
| 10553 static final int BLEND_EQUATION_RGB = 0x8009; | |
| 10554 | |
| 10555 static final int BLEND_SRC_ALPHA = 0x80CB; | |
| 10556 | |
| 10557 static final int BLEND_SRC_RGB = 0x80C9; | |
| 10558 | |
| 10559 static final int BLUE_BITS = 0x0D54; | |
| 10560 | |
| 10561 static final int BOOL = 0x8B56; | |
| 10562 | |
| 10563 static final int BOOL_VEC2 = 0x8B57; | |
| 10564 | |
| 10565 static final int BOOL_VEC3 = 0x8B58; | |
| 10566 | |
| 10567 static final int BOOL_VEC4 = 0x8B59; | |
| 10568 | |
| 10569 static final int BROWSER_DEFAULT_WEBGL = 0x9244; | |
| 10570 | |
| 10571 static final int BUFFER_SIZE = 0x8764; | |
| 10572 | |
| 10573 static final int BUFFER_USAGE = 0x8765; | |
| 10574 | |
| 10575 static final int BYTE = 0x1400; | |
| 10576 | |
| 10577 static final int CCW = 0x0901; | |
| 10578 | |
| 10579 static final int CLAMP_TO_EDGE = 0x812F; | |
| 10580 | |
| 10581 static final int COLOR_ATTACHMENT0 = 0x8CE0; | |
| 10582 | |
| 10583 static final int COLOR_BUFFER_BIT = 0x00004000; | |
| 10584 | |
| 10585 static final int COLOR_CLEAR_VALUE = 0x0C22; | |
| 10586 | |
| 10587 static final int COLOR_WRITEMASK = 0x0C23; | |
| 10588 | |
| 10589 static final int COMPILE_STATUS = 0x8B81; | |
| 10590 | |
| 10591 static final int COMPRESSED_TEXTURE_FORMATS = 0x86A3; | |
| 10592 | |
| 10593 static final int CONSTANT_ALPHA = 0x8003; | |
| 10594 | |
| 10595 static final int CONSTANT_COLOR = 0x8001; | |
| 10596 | |
| 10597 static final int CONTEXT_LOST_WEBGL = 0x9242; | |
| 10598 | |
| 10599 static final int CULL_FACE = 0x0B44; | |
| 10600 | |
| 10601 static final int CULL_FACE_MODE = 0x0B45; | |
| 10602 | |
| 10603 static final int CURRENT_PROGRAM = 0x8B8D; | |
| 10604 | |
| 10605 static final int CURRENT_VERTEX_ATTRIB = 0x8626; | |
| 10606 | |
| 10607 static final int CW = 0x0900; | |
| 10608 | |
| 10609 static final int DECR = 0x1E03; | |
| 10610 | |
| 10611 static final int DECR_WRAP = 0x8508; | |
| 10612 | |
| 10613 static final int DELETE_STATUS = 0x8B80; | |
| 10614 | |
| 10615 static final int DEPTH_ATTACHMENT = 0x8D00; | |
| 10616 | |
| 10617 static final int DEPTH_BITS = 0x0D56; | |
| 10618 | |
| 10619 static final int DEPTH_BUFFER_BIT = 0x00000100; | |
| 10620 | |
| 10621 static final int DEPTH_CLEAR_VALUE = 0x0B73; | |
| 10622 | |
| 10623 static final int DEPTH_COMPONENT = 0x1902; | |
| 10624 | |
| 10625 static final int DEPTH_COMPONENT16 = 0x81A5; | |
| 10626 | |
| 10627 static final int DEPTH_FUNC = 0x0B74; | |
| 10628 | |
| 10629 static final int DEPTH_RANGE = 0x0B70; | |
| 10630 | |
| 10631 static final int DEPTH_STENCIL = 0x84F9; | |
| 10632 | |
| 10633 static final int DEPTH_STENCIL_ATTACHMENT = 0x821A; | |
| 10634 | |
| 10635 static final int DEPTH_TEST = 0x0B71; | |
| 10636 | |
| 10637 static final int DEPTH_WRITEMASK = 0x0B72; | |
| 10638 | |
| 10639 static final int DITHER = 0x0BD0; | |
| 10640 | |
| 10641 static final int DONT_CARE = 0x1100; | |
| 10642 | |
| 10643 static final int DST_ALPHA = 0x0304; | |
| 10644 | |
| 10645 static final int DST_COLOR = 0x0306; | |
| 10646 | |
| 10647 static final int DYNAMIC_DRAW = 0x88E8; | |
| 10648 | |
| 10649 static final int ELEMENT_ARRAY_BUFFER = 0x8893; | |
| 10650 | |
| 10651 static final int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; | |
| 10652 | |
| 10653 static final int EQUAL = 0x0202; | |
| 10654 | |
| 10655 static final int FASTEST = 0x1101; | |
| 10656 | |
| 10657 static final int FLOAT = 0x1406; | |
| 10658 | |
| 10659 static final int FLOAT_MAT2 = 0x8B5A; | |
| 10660 | |
| 10661 static final int FLOAT_MAT3 = 0x8B5B; | |
| 10662 | |
| 10663 static final int FLOAT_MAT4 = 0x8B5C; | |
| 10664 | |
| 10665 static final int FLOAT_VEC2 = 0x8B50; | |
| 10666 | |
| 10667 static final int FLOAT_VEC3 = 0x8B51; | |
| 10668 | |
| 10669 static final int FLOAT_VEC4 = 0x8B52; | |
| 10670 | |
| 10671 static final int FRAGMENT_SHADER = 0x8B30; | |
| 10672 | |
| 10673 static final int FRAMEBUFFER = 0x8D40; | |
| 10674 | |
| 10675 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; | |
| 10676 | |
| 10677 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; | |
| 10678 | |
| 10679 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; | |
| 10680 | |
| 10681 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; | |
| 10682 | |
| 10683 static final int FRAMEBUFFER_BINDING = 0x8CA6; | |
| 10684 | |
| 10685 static final int FRAMEBUFFER_COMPLETE = 0x8CD5; | |
| 10686 | |
| 10687 static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; | |
| 10688 | |
| 10689 static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; | |
| 10690 | |
| 10691 static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; | |
| 10692 | |
| 10693 static final int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; | |
| 10694 | |
| 10695 static final int FRONT = 0x0404; | |
| 10696 | |
| 10697 static final int FRONT_AND_BACK = 0x0408; | |
| 10698 | |
| 10699 static final int FRONT_FACE = 0x0B46; | |
| 10700 | |
| 10701 static final int FUNC_ADD = 0x8006; | |
| 10702 | |
| 10703 static final int FUNC_REVERSE_SUBTRACT = 0x800B; | |
| 10704 | |
| 10705 static final int FUNC_SUBTRACT = 0x800A; | |
| 10706 | |
| 10707 static final int GENERATE_MIPMAP_HINT = 0x8192; | |
| 10708 | |
| 10709 static final int GEQUAL = 0x0206; | |
| 10710 | |
| 10711 static final int GREATER = 0x0204; | |
| 10712 | |
| 10713 static final int GREEN_BITS = 0x0D53; | |
| 10714 | |
| 10715 static final int HIGH_FLOAT = 0x8DF2; | |
| 10716 | |
| 10717 static final int HIGH_INT = 0x8DF5; | |
| 10718 | |
| 10719 static final int INCR = 0x1E02; | |
| 10720 | |
| 10721 static final int INCR_WRAP = 0x8507; | |
| 10722 | |
| 10723 static final int INT = 0x1404; | |
| 10724 | |
| 10725 static final int INT_VEC2 = 0x8B53; | |
| 10726 | |
| 10727 static final int INT_VEC3 = 0x8B54; | |
| 10728 | |
| 10729 static final int INT_VEC4 = 0x8B55; | |
| 10730 | |
| 10731 static final int INVALID_ENUM = 0x0500; | |
| 10732 | |
| 10733 static final int INVALID_FRAMEBUFFER_OPERATION = 0x0506; | |
| 10734 | |
| 10735 static final int INVALID_OPERATION = 0x0502; | |
| 10736 | |
| 10737 static final int INVALID_VALUE = 0x0501; | |
| 10738 | |
| 10739 static final int INVERT = 0x150A; | |
| 10740 | |
| 10741 static final int KEEP = 0x1E00; | |
| 10742 | |
| 10743 static final int LEQUAL = 0x0203; | |
| 10744 | |
| 10745 static final int LESS = 0x0201; | |
| 10746 | |
| 10747 static final int LINEAR = 0x2601; | |
| 10748 | |
| 10749 static final int LINEAR_MIPMAP_LINEAR = 0x2703; | |
| 10750 | |
| 10751 static final int LINEAR_MIPMAP_NEAREST = 0x2701; | |
| 10752 | |
| 10753 static final int LINES = 0x0001; | |
| 10754 | |
| 10755 static final int LINE_LOOP = 0x0002; | |
| 10756 | |
| 10757 static final int LINE_STRIP = 0x0003; | |
| 10758 | |
| 10759 static final int LINE_WIDTH = 0x0B21; | |
| 10760 | |
| 10761 static final int LINK_STATUS = 0x8B82; | |
| 10762 | |
| 10763 static final int LOW_FLOAT = 0x8DF0; | |
| 10764 | |
| 10765 static final int LOW_INT = 0x8DF3; | |
| 10766 | |
| 10767 static final int LUMINANCE = 0x1909; | |
| 10768 | |
| 10769 static final int LUMINANCE_ALPHA = 0x190A; | |
| 10770 | |
| 10771 static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; | |
| 10772 | |
| 10773 static final int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; | |
| 10774 | |
| 10775 static final int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; | |
| 10776 | |
| 10777 static final int MAX_RENDERBUFFER_SIZE = 0x84E8; | |
| 10778 | |
| 10779 static final int MAX_TEXTURE_IMAGE_UNITS = 0x8872; | |
| 10780 | |
| 10781 static final int MAX_TEXTURE_SIZE = 0x0D33; | |
| 10782 | |
| 10783 static final int MAX_VARYING_VECTORS = 0x8DFC; | |
| 10784 | |
| 10785 static final int MAX_VERTEX_ATTRIBS = 0x8869; | |
| 10786 | |
| 10787 static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; | |
| 10788 | |
| 10789 static final int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; | |
| 10790 | |
| 10791 static final int MAX_VIEWPORT_DIMS = 0x0D3A; | |
| 10792 | |
| 10793 static final int MEDIUM_FLOAT = 0x8DF1; | |
| 10794 | |
| 10795 static final int MEDIUM_INT = 0x8DF4; | |
| 10796 | |
| 10797 static final int MIRRORED_REPEAT = 0x8370; | |
| 10798 | |
| 10799 static final int NEAREST = 0x2600; | |
| 10800 | |
| 10801 static final int NEAREST_MIPMAP_LINEAR = 0x2702; | |
| 10802 | |
| 10803 static final int NEAREST_MIPMAP_NEAREST = 0x2700; | |
| 10804 | |
| 10805 static final int NEVER = 0x0200; | |
| 10806 | |
| 10807 static final int NICEST = 0x1102; | |
| 10808 | |
| 10809 static final int NONE = 0; | |
| 10810 | |
| 10811 static final int NOTEQUAL = 0x0205; | |
| 10812 | |
| 10813 static final int NO_ERROR = 0; | |
| 10814 | |
| 10815 static final int ONE = 1; | |
| 10816 | |
| 10817 static final int ONE_MINUS_CONSTANT_ALPHA = 0x8004; | |
| 10818 | |
| 10819 static final int ONE_MINUS_CONSTANT_COLOR = 0x8002; | |
| 10820 | |
| 10821 static final int ONE_MINUS_DST_ALPHA = 0x0305; | |
| 10822 | |
| 10823 static final int ONE_MINUS_DST_COLOR = 0x0307; | |
| 10824 | |
| 10825 static final int ONE_MINUS_SRC_ALPHA = 0x0303; | |
| 10826 | |
| 10827 static final int ONE_MINUS_SRC_COLOR = 0x0301; | |
| 10828 | |
| 10829 static final int OUT_OF_MEMORY = 0x0505; | |
| 10830 | |
| 10831 static final int PACK_ALIGNMENT = 0x0D05; | |
| 10832 | |
| 10833 static final int POINTS = 0x0000; | |
| 10834 | |
| 10835 static final int POLYGON_OFFSET_FACTOR = 0x8038; | |
| 10836 | |
| 10837 static final int POLYGON_OFFSET_FILL = 0x8037; | |
| 10838 | |
| 10839 static final int POLYGON_OFFSET_UNITS = 0x2A00; | |
| 10840 | |
| 10841 static final int RED_BITS = 0x0D52; | |
| 10842 | |
| 10843 static final int RENDERBUFFER = 0x8D41; | |
| 10844 | |
| 10845 static final int RENDERBUFFER_ALPHA_SIZE = 0x8D53; | |
| 10846 | |
| 10847 static final int RENDERBUFFER_BINDING = 0x8CA7; | |
| 10848 | |
| 10849 static final int RENDERBUFFER_BLUE_SIZE = 0x8D52; | |
| 10850 | |
| 10851 static final int RENDERBUFFER_DEPTH_SIZE = 0x8D54; | |
| 10852 | |
| 10853 static final int RENDERBUFFER_GREEN_SIZE = 0x8D51; | |
| 10854 | |
| 10855 static final int RENDERBUFFER_HEIGHT = 0x8D43; | |
| 10856 | |
| 10857 static final int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; | |
| 10858 | |
| 10859 static final int RENDERBUFFER_RED_SIZE = 0x8D50; | |
| 10860 | |
| 10861 static final int RENDERBUFFER_STENCIL_SIZE = 0x8D55; | |
| 10862 | |
| 10863 static final int RENDERBUFFER_WIDTH = 0x8D42; | |
| 10864 | |
| 10865 static final int RENDERER = 0x1F01; | |
| 10866 | |
| 10867 static final int REPEAT = 0x2901; | |
| 10868 | |
| 10869 static final int REPLACE = 0x1E01; | |
| 10870 | |
| 10871 static final int RGB = 0x1907; | |
| 10872 | |
| 10873 static final int RGB565 = 0x8D62; | |
| 10874 | |
| 10875 static final int RGB5_A1 = 0x8057; | |
| 10876 | |
| 10877 static final int RGBA = 0x1908; | |
| 10878 | |
| 10879 static final int RGBA4 = 0x8056; | |
| 10880 | |
| 10881 static final int SAMPLER_2D = 0x8B5E; | |
| 10882 | |
| 10883 static final int SAMPLER_CUBE = 0x8B60; | |
| 10884 | |
| 10885 static final int SAMPLES = 0x80A9; | |
| 10886 | |
| 10887 static final int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; | |
| 10888 | |
| 10889 static final int SAMPLE_BUFFERS = 0x80A8; | |
| 10890 | |
| 10891 static final int SAMPLE_COVERAGE = 0x80A0; | |
| 10892 | |
| 10893 static final int SAMPLE_COVERAGE_INVERT = 0x80AB; | |
| 10894 | |
| 10895 static final int SAMPLE_COVERAGE_VALUE = 0x80AA; | |
| 10896 | |
| 10897 static final int SCISSOR_BOX = 0x0C10; | |
| 10898 | |
| 10899 static final int SCISSOR_TEST = 0x0C11; | |
| 10900 | |
| 10901 static final int SHADER_TYPE = 0x8B4F; | |
| 10902 | |
| 10903 static final int SHADING_LANGUAGE_VERSION = 0x8B8C; | |
| 10904 | |
| 10905 static final int SHORT = 0x1402; | |
| 10906 | |
| 10907 static final int SRC_ALPHA = 0x0302; | |
| 10908 | |
| 10909 static final int SRC_ALPHA_SATURATE = 0x0308; | |
| 10910 | |
| 10911 static final int SRC_COLOR = 0x0300; | |
| 10912 | |
| 10913 static final int STATIC_DRAW = 0x88E4; | |
| 10914 | |
| 10915 static final int STENCIL_ATTACHMENT = 0x8D20; | |
| 10916 | |
| 10917 static final int STENCIL_BACK_FAIL = 0x8801; | |
| 10918 | |
| 10919 static final int STENCIL_BACK_FUNC = 0x8800; | |
| 10920 | |
| 10921 static final int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; | |
| 10922 | |
| 10923 static final int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; | |
| 10924 | |
| 10925 static final int STENCIL_BACK_REF = 0x8CA3; | |
| 10926 | |
| 10927 static final int STENCIL_BACK_VALUE_MASK = 0x8CA4; | |
| 10928 | |
| 10929 static final int STENCIL_BACK_WRITEMASK = 0x8CA5; | |
| 10930 | |
| 10931 static final int STENCIL_BITS = 0x0D57; | |
| 10932 | |
| 10933 static final int STENCIL_BUFFER_BIT = 0x00000400; | |
| 10934 | |
| 10935 static final int STENCIL_CLEAR_VALUE = 0x0B91; | |
| 10936 | |
| 10937 static final int STENCIL_FAIL = 0x0B94; | |
| 10938 | |
| 10939 static final int STENCIL_FUNC = 0x0B92; | |
| 10940 | |
| 10941 static final int STENCIL_INDEX = 0x1901; | |
| 10942 | |
| 10943 static final int STENCIL_INDEX8 = 0x8D48; | |
| 10944 | |
| 10945 static final int STENCIL_PASS_DEPTH_FAIL = 0x0B95; | |
| 10946 | |
| 10947 static final int STENCIL_PASS_DEPTH_PASS = 0x0B96; | |
| 10948 | |
| 10949 static final int STENCIL_REF = 0x0B97; | |
| 10950 | |
| 10951 static final int STENCIL_TEST = 0x0B90; | |
| 10952 | |
| 10953 static final int STENCIL_VALUE_MASK = 0x0B93; | |
| 10954 | |
| 10955 static final int STENCIL_WRITEMASK = 0x0B98; | |
| 10956 | |
| 10957 static final int STREAM_DRAW = 0x88E0; | |
| 10958 | |
| 10959 static final int SUBPIXEL_BITS = 0x0D50; | |
| 10960 | |
| 10961 static final int TEXTURE = 0x1702; | |
| 10962 | |
| 10963 static final int TEXTURE0 = 0x84C0; | |
| 10964 | |
| 10965 static final int TEXTURE1 = 0x84C1; | |
| 10966 | |
| 10967 static final int TEXTURE10 = 0x84CA; | |
| 10968 | |
| 10969 static final int TEXTURE11 = 0x84CB; | |
| 10970 | |
| 10971 static final int TEXTURE12 = 0x84CC; | |
| 10972 | |
| 10973 static final int TEXTURE13 = 0x84CD; | |
| 10974 | |
| 10975 static final int TEXTURE14 = 0x84CE; | |
| 10976 | |
| 10977 static final int TEXTURE15 = 0x84CF; | |
| 10978 | |
| 10979 static final int TEXTURE16 = 0x84D0; | |
| 10980 | |
| 10981 static final int TEXTURE17 = 0x84D1; | |
| 10982 | |
| 10983 static final int TEXTURE18 = 0x84D2; | |
| 10984 | |
| 10985 static final int TEXTURE19 = 0x84D3; | |
| 10986 | |
| 10987 static final int TEXTURE2 = 0x84C2; | |
| 10988 | |
| 10989 static final int TEXTURE20 = 0x84D4; | |
| 10990 | |
| 10991 static final int TEXTURE21 = 0x84D5; | |
| 10992 | |
| 10993 static final int TEXTURE22 = 0x84D6; | |
| 10994 | |
| 10995 static final int TEXTURE23 = 0x84D7; | |
| 10996 | |
| 10997 static final int TEXTURE24 = 0x84D8; | |
| 10998 | |
| 10999 static final int TEXTURE25 = 0x84D9; | |
| 11000 | |
| 11001 static final int TEXTURE26 = 0x84DA; | |
| 11002 | |
| 11003 static final int TEXTURE27 = 0x84DB; | |
| 11004 | |
| 11005 static final int TEXTURE28 = 0x84DC; | |
| 11006 | |
| 11007 static final int TEXTURE29 = 0x84DD; | |
| 11008 | |
| 11009 static final int TEXTURE3 = 0x84C3; | |
| 11010 | |
| 11011 static final int TEXTURE30 = 0x84DE; | |
| 11012 | |
| 11013 static final int TEXTURE31 = 0x84DF; | |
| 11014 | |
| 11015 static final int TEXTURE4 = 0x84C4; | |
| 11016 | |
| 11017 static final int TEXTURE5 = 0x84C5; | |
| 11018 | |
| 11019 static final int TEXTURE6 = 0x84C6; | |
| 11020 | |
| 11021 static final int TEXTURE7 = 0x84C7; | |
| 11022 | |
| 11023 static final int TEXTURE8 = 0x84C8; | |
| 11024 | |
| 11025 static final int TEXTURE9 = 0x84C9; | |
| 11026 | |
| 11027 static final int TEXTURE_2D = 0x0DE1; | |
| 11028 | |
| 11029 static final int TEXTURE_BINDING_2D = 0x8069; | |
| 11030 | |
| 11031 static final int TEXTURE_BINDING_CUBE_MAP = 0x8514; | |
| 11032 | |
| 11033 static final int TEXTURE_CUBE_MAP = 0x8513; | |
| 11034 | |
| 11035 static final int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; | |
| 11036 | |
| 11037 static final int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; | |
| 11038 | |
| 11039 static final int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; | |
| 11040 | |
| 11041 static final int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; | |
| 11042 | |
| 11043 static final int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; | |
| 11044 | |
| 11045 static final int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; | |
| 11046 | |
| 11047 static final int TEXTURE_MAG_FILTER = 0x2800; | |
| 11048 | |
| 11049 static final int TEXTURE_MIN_FILTER = 0x2801; | |
| 11050 | |
| 11051 static final int TEXTURE_WRAP_S = 0x2802; | |
| 11052 | |
| 11053 static final int TEXTURE_WRAP_T = 0x2803; | |
| 11054 | |
| 11055 static final int TRIANGLES = 0x0004; | |
| 11056 | |
| 11057 static final int TRIANGLE_FAN = 0x0006; | |
| 11058 | |
| 11059 static final int TRIANGLE_STRIP = 0x0005; | |
| 11060 | |
| 11061 static final int UNPACK_ALIGNMENT = 0x0CF5; | |
| 11062 | |
| 11063 static final int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | |
| 11064 | |
| 11065 static final int UNPACK_FLIP_Y_WEBGL = 0x9240; | |
| 11066 | |
| 11067 static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | |
| 11068 | |
| 11069 static final int UNSIGNED_BYTE = 0x1401; | |
| 11070 | |
| 11071 static final int UNSIGNED_INT = 0x1405; | |
| 11072 | |
| 11073 static final int UNSIGNED_SHORT = 0x1403; | |
| 11074 | |
| 11075 static final int UNSIGNED_SHORT_4_4_4_4 = 0x8033; | |
| 11076 | |
| 11077 static final int UNSIGNED_SHORT_5_5_5_1 = 0x8034; | |
| 11078 | |
| 11079 static final int UNSIGNED_SHORT_5_6_5 = 0x8363; | |
| 11080 | |
| 11081 static final int VALIDATE_STATUS = 0x8B83; | |
| 11082 | |
| 11083 static final int VENDOR = 0x1F00; | |
| 11084 | |
| 11085 static final int VERSION = 0x1F02; | |
| 11086 | |
| 11087 static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; | |
| 11088 | |
| 11089 static final int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; | |
| 11090 | |
| 11091 static final int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; | |
| 11092 | |
| 11093 static final int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; | |
| 11094 | |
| 11095 static final int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; | |
| 11096 | |
| 11097 static final int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; | |
| 11098 | |
| 11099 static final int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; | |
| 11100 | |
| 11101 static final int VERTEX_SHADER = 0x8B31; | |
| 11102 | |
| 11103 static final int VIEWPORT = 0x0BA2; | |
| 11104 | |
| 11105 static final int ZERO = 0; | |
| 11106 | |
| 11107 final int drawingBufferHeight; | |
| 11108 | |
| 11109 final int drawingBufferWidth; | |
| 11110 | |
| 11111 void activeTexture(int texture) native; | |
| 11112 | |
| 11113 void attachShader(_WebGLProgramJs program, _WebGLShaderJs shader) native; | |
| 11114 | |
| 11115 void bindAttribLocation(_WebGLProgramJs program, int index, String name) nativ
e; | |
| 11116 | |
| 11117 void bindBuffer(int target, _WebGLBufferJs buffer) native; | |
| 11118 | |
| 11119 void bindFramebuffer(int target, _WebGLFramebufferJs framebuffer) native; | |
| 11120 | |
| 11121 void bindRenderbuffer(int target, _WebGLRenderbufferJs renderbuffer) native; | |
| 11122 | |
| 11123 void bindTexture(int target, _WebGLTextureJs texture) native; | |
| 11124 | |
| 11125 void blendColor(num red, num green, num blue, num alpha) native; | |
| 11126 | |
| 11127 void blendEquation(int mode) native; | |
| 11128 | |
| 11129 void blendEquationSeparate(int modeRGB, int modeAlpha) native; | |
| 11130 | |
| 11131 void blendFunc(int sfactor, int dfactor) native; | |
| 11132 | |
| 11133 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; | |
| 11134 | |
| 11135 void bufferData(int target, data_OR_size, int usage) native; | |
| 11136 | |
| 11137 void bufferSubData(int target, int offset, data) native; | |
| 11138 | |
| 11139 int checkFramebufferStatus(int target) native; | |
| 11140 | |
| 11141 void clear(int mask) native; | |
| 11142 | |
| 11143 void clearColor(num red, num green, num blue, num alpha) native; | |
| 11144 | |
| 11145 void clearDepth(num depth) native; | |
| 11146 | |
| 11147 void clearStencil(int s) native; | |
| 11148 | |
| 11149 void colorMask(bool red, bool green, bool blue, bool alpha) native; | |
| 11150 | |
| 11151 void compileShader(_WebGLShaderJs shader) native; | |
| 11152 | |
| 11153 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, _ArrayBufferViewJs data) native; | |
| 11154 | |
| 11155 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, _ArrayBufferViewJs data) native; | |
| 11156 | |
| 11157 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) native; | |
| 11158 | |
| 11159 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) native; | |
| 11160 | |
| 11161 _WebGLBufferJs createBuffer() native; | |
| 11162 | |
| 11163 _WebGLFramebufferJs createFramebuffer() native; | |
| 11164 | |
| 11165 _WebGLProgramJs createProgram() native; | |
| 11166 | |
| 11167 _WebGLRenderbufferJs createRenderbuffer() native; | |
| 11168 | |
| 11169 _WebGLShaderJs createShader(int type) native; | |
| 11170 | |
| 11171 _WebGLTextureJs createTexture() native; | |
| 11172 | |
| 11173 void cullFace(int mode) native; | |
| 11174 | |
| 11175 void deleteBuffer(_WebGLBufferJs buffer) native; | |
| 11176 | |
| 11177 void deleteFramebuffer(_WebGLFramebufferJs framebuffer) native; | |
| 11178 | |
| 11179 void deleteProgram(_WebGLProgramJs program) native; | |
| 11180 | |
| 11181 void deleteRenderbuffer(_WebGLRenderbufferJs renderbuffer) native; | |
| 11182 | |
| 11183 void deleteShader(_WebGLShaderJs shader) native; | |
| 11184 | |
| 11185 void deleteTexture(_WebGLTextureJs texture) native; | |
| 11186 | |
| 11187 void depthFunc(int func) native; | |
| 11188 | |
| 11189 void depthMask(bool flag) native; | |
| 11190 | |
| 11191 void depthRange(num zNear, num zFar) native; | |
| 11192 | |
| 11193 void detachShader(_WebGLProgramJs program, _WebGLShaderJs shader) native; | |
| 11194 | |
| 11195 void disable(int cap) native; | |
| 11196 | |
| 11197 void disableVertexAttribArray(int index) native; | |
| 11198 | |
| 11199 void drawArrays(int mode, int first, int count) native; | |
| 11200 | |
| 11201 void drawElements(int mode, int count, int type, int offset) native; | |
| 11202 | |
| 11203 void enable(int cap) native; | |
| 11204 | |
| 11205 void enableVertexAttribArray(int index) native; | |
| 11206 | |
| 11207 void finish() native; | |
| 11208 | |
| 11209 void flush() native; | |
| 11210 | |
| 11211 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, _WebGLRenderbufferJs renderbuffer) native; | |
| 11212 | |
| 11213 void framebufferTexture2D(int target, int attachment, int textarget, _WebGLTex
tureJs texture, int level) native; | |
| 11214 | |
| 11215 void frontFace(int mode) native; | |
| 11216 | |
| 11217 void generateMipmap(int target) native; | |
| 11218 | |
| 11219 _WebGLActiveInfoJs getActiveAttrib(_WebGLProgramJs program, int index) native; | |
| 11220 | |
| 11221 _WebGLActiveInfoJs getActiveUniform(_WebGLProgramJs program, int index) native
; | |
| 11222 | |
| 11223 List<Object> getAttachedShaders(_WebGLProgramJs program) native; | |
| 11224 | |
| 11225 int getAttribLocation(_WebGLProgramJs program, String name) native; | |
| 11226 | |
| 11227 Object getBufferParameter(int target, int pname) native; | |
| 11228 | |
| 11229 _WebGLContextAttributesJs getContextAttributes() native; | |
| 11230 | |
| 11231 int getError() native; | |
| 11232 | |
| 11233 Object getExtension(String name) native; | |
| 11234 | |
| 11235 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) native; | |
| 11236 | |
| 11237 Object getParameter(int pname) native; | |
| 11238 | |
| 11239 String getProgramInfoLog(_WebGLProgramJs program) native; | |
| 11240 | |
| 11241 Object getProgramParameter(_WebGLProgramJs program, int pname) native; | |
| 11242 | |
| 11243 Object getRenderbufferParameter(int target, int pname) native; | |
| 11244 | |
| 11245 String getShaderInfoLog(_WebGLShaderJs shader) native; | |
| 11246 | |
| 11247 Object getShaderParameter(_WebGLShaderJs shader, int pname) native; | |
| 11248 | |
| 11249 _WebGLShaderPrecisionFormatJs getShaderPrecisionFormat(int shadertype, int pre
cisiontype) native; | |
| 11250 | |
| 11251 String getShaderSource(_WebGLShaderJs shader) native; | |
| 11252 | |
| 11253 List<String> getSupportedExtensions() native; | |
| 11254 | |
| 11255 Object getTexParameter(int target, int pname) native; | |
| 11256 | |
| 11257 Object getUniform(_WebGLProgramJs program, _WebGLUniformLocationJs location) n
ative; | |
| 11258 | |
| 11259 _WebGLUniformLocationJs getUniformLocation(_WebGLProgramJs program, String nam
e) native; | |
| 11260 | |
| 11261 Object getVertexAttrib(int index, int pname) native; | |
| 11262 | |
| 11263 int getVertexAttribOffset(int index, int pname) native; | |
| 11264 | |
| 11265 void hint(int target, int mode) native; | |
| 11266 | |
| 11267 bool isBuffer(_WebGLBufferJs buffer) native; | |
| 11268 | |
| 11269 bool isContextLost() native; | |
| 11270 | |
| 11271 bool isEnabled(int cap) native; | |
| 11272 | |
| 11273 bool isFramebuffer(_WebGLFramebufferJs framebuffer) native; | |
| 11274 | |
| 11275 bool isProgram(_WebGLProgramJs program) native; | |
| 11276 | |
| 11277 bool isRenderbuffer(_WebGLRenderbufferJs renderbuffer) native; | |
| 11278 | |
| 11279 bool isShader(_WebGLShaderJs shader) native; | |
| 11280 | |
| 11281 bool isTexture(_WebGLTextureJs texture) native; | |
| 11282 | |
| 11283 void lineWidth(num width) native; | |
| 11284 | |
| 11285 void linkProgram(_WebGLProgramJs program) native; | |
| 11286 | |
| 11287 void pixelStorei(int pname, int param) native; | |
| 11288 | |
| 11289 void polygonOffset(num factor, num units) native; | |
| 11290 | |
| 11291 void readPixels(int x, int y, int width, int height, int format, int type, _Ar
rayBufferViewJs pixels) native; | |
| 11292 | |
| 11293 void releaseShaderCompiler() native; | |
| 11294 | |
| 11295 void renderbufferStorage(int target, int internalformat, int width, int height
) native; | |
| 11296 | |
| 11297 void sampleCoverage(num value, bool invert) native; | |
| 11298 | |
| 11299 void scissor(int x, int y, int width, int height) native; | |
| 11300 | |
| 11301 void shaderSource(_WebGLShaderJs shader, String string) native; | |
| 11302 | |
| 11303 void stencilFunc(int func, int ref, int mask) native; | |
| 11304 | |
| 11305 void stencilFuncSeparate(int face, int func, int ref, int mask) native; | |
| 11306 | |
| 11307 void stencilMask(int mask) native; | |
| 11308 | |
| 11309 void stencilMaskSeparate(int face, int mask) native; | |
| 11310 | |
| 11311 void stencilOp(int fail, int zfail, int zpass) native; | |
| 11312 | |
| 11313 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | |
| 11314 | |
| 11315 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; | |
| 11316 | |
| 11317 void texParameterf(int target, int pname, num param) native; | |
| 11318 | |
| 11319 void texParameteri(int target, int pname, int param) native; | |
| 11320 | |
| 11321 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; | |
| 11322 | |
| 11323 void uniform1f(_WebGLUniformLocationJs location, num x) native; | |
| 11324 | |
| 11325 void uniform1fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | |
| 11326 | |
| 11327 void uniform1i(_WebGLUniformLocationJs location, int x) native; | |
| 11328 | |
| 11329 void uniform1iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | |
| 11330 | |
| 11331 void uniform2f(_WebGLUniformLocationJs location, num x, num y) native; | |
| 11332 | |
| 11333 void uniform2fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | |
| 11334 | |
| 11335 void uniform2i(_WebGLUniformLocationJs location, int x, int y) native; | |
| 11336 | |
| 11337 void uniform2iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | |
| 11338 | |
| 11339 void uniform3f(_WebGLUniformLocationJs location, num x, num y, num z) native; | |
| 11340 | |
| 11341 void uniform3fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | |
| 11342 | |
| 11343 void uniform3i(_WebGLUniformLocationJs location, int x, int y, int z) native; | |
| 11344 | |
| 11345 void uniform3iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | |
| 11346 | |
| 11347 void uniform4f(_WebGLUniformLocationJs location, num x, num y, num z, num w) n
ative; | |
| 11348 | |
| 11349 void uniform4fv(_WebGLUniformLocationJs location, _Float32ArrayJs v) native; | |
| 11350 | |
| 11351 void uniform4i(_WebGLUniformLocationJs location, int x, int y, int z, int w) n
ative; | |
| 11352 | |
| 11353 void uniform4iv(_WebGLUniformLocationJs location, _Int32ArrayJs v) native; | |
| 11354 | |
| 11355 void uniformMatrix2fv(_WebGLUniformLocationJs location, bool transpose, _Float
32ArrayJs array) native; | |
| 11356 | |
| 11357 void uniformMatrix3fv(_WebGLUniformLocationJs location, bool transpose, _Float
32ArrayJs array) native; | |
| 11358 | |
| 11359 void uniformMatrix4fv(_WebGLUniformLocationJs location, bool transpose, _Float
32ArrayJs array) native; | |
| 11360 | |
| 11361 void useProgram(_WebGLProgramJs program) native; | |
| 11362 | |
| 11363 void validateProgram(_WebGLProgramJs program) native; | |
| 11364 | |
| 11365 void vertexAttrib1f(int indx, num x) native; | |
| 11366 | |
| 11367 void vertexAttrib1fv(int indx, _Float32ArrayJs values) native; | |
| 11368 | |
| 11369 void vertexAttrib2f(int indx, num x, num y) native; | |
| 11370 | |
| 11371 void vertexAttrib2fv(int indx, _Float32ArrayJs values) native; | |
| 11372 | |
| 11373 void vertexAttrib3f(int indx, num x, num y, num z) native; | |
| 11374 | |
| 11375 void vertexAttrib3fv(int indx, _Float32ArrayJs values) native; | |
| 11376 | |
| 11377 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; | |
| 11378 | |
| 11379 void vertexAttrib4fv(int indx, _Float32ArrayJs values) native; | |
| 11380 | |
| 11381 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) native; | |
| 11382 | |
| 11383 void viewport(int x, int y, int width, int height) native; | |
| 11384 } | |
| 11385 | |
| 11386 class _WebGLShaderJs extends _DOMTypeJs implements WebGLShader native "*WebGLSha
der" { | |
| 11387 } | |
| 11388 | |
| 11389 class _WebGLShaderPrecisionFormatJs extends _DOMTypeJs implements WebGLShaderPre
cisionFormat native "*WebGLShaderPrecisionFormat" { | |
| 11390 | |
| 11391 final int precision; | |
| 11392 | |
| 11393 final int rangeMax; | |
| 11394 | |
| 11395 final int rangeMin; | |
| 11396 } | |
| 11397 | |
| 11398 class _WebGLTextureJs extends _DOMTypeJs implements WebGLTexture native "*WebGLT
exture" { | |
| 11399 } | |
| 11400 | |
| 11401 class _WebGLUniformLocationJs extends _DOMTypeJs implements WebGLUniformLocation
native "*WebGLUniformLocation" { | |
| 11402 } | |
| 11403 | |
| 11404 class _WebGLVertexArrayObjectOESJs extends _DOMTypeJs implements WebGLVertexArra
yObjectOES native "*WebGLVertexArrayObjectOES" { | |
| 11405 } | |
| 11406 | |
| 11407 class _WebKitAnimationJs extends _DOMTypeJs implements WebKitAnimation native "*
WebKitAnimation" { | |
| 11408 | |
| 11409 static final int DIRECTION_ALTERNATE = 1; | |
| 11410 | |
| 11411 static final int DIRECTION_NORMAL = 0; | |
| 11412 | |
| 11413 static final int FILL_BACKWARDS = 1; | |
| 11414 | |
| 11415 static final int FILL_BOTH = 3; | |
| 11416 | |
| 11417 static final int FILL_FORWARDS = 2; | |
| 11418 | |
| 11419 static final int FILL_NONE = 0; | |
| 11420 | |
| 11421 final num delay; | |
| 11422 | |
| 11423 final int direction; | |
| 11424 | |
| 11425 final num duration; | |
| 11426 | |
| 11427 num elapsedTime; | |
| 11428 | |
| 11429 final bool ended; | |
| 11430 | |
| 11431 final int fillMode; | |
| 11432 | |
| 11433 final int iterationCount; | |
| 11434 | |
| 11435 final String name; | |
| 11436 | |
| 11437 final bool paused; | |
| 11438 | |
| 11439 void pause() native; | |
| 11440 | |
| 11441 void play() native; | |
| 11442 } | |
| 11443 | |
| 11444 class _WebKitAnimationEventJs extends _EventJs implements WebKitAnimationEvent n
ative "*WebKitAnimationEvent" { | |
| 11445 | |
| 11446 final String animationName; | |
| 11447 | |
| 11448 final num elapsedTime; | |
| 11449 } | |
| 11450 | |
| 11451 class _WebKitAnimationListJs extends _DOMTypeJs implements WebKitAnimationList n
ative "*WebKitAnimationList" { | |
| 11452 | |
| 11453 final int length; | |
| 11454 | |
| 11455 _WebKitAnimationJs item(int index) native; | |
| 11456 } | |
| 11457 | |
| 11458 class _WebKitCSSFilterValueJs extends _CSSValueListJs implements WebKitCSSFilter
Value native "*WebKitCSSFilterValue" { | |
| 11459 | |
| 11460 static final int CSS_FILTER_BLUR = 10; | |
| 11461 | |
| 11462 static final int CSS_FILTER_BRIGHTNESS = 8; | |
| 11463 | |
| 11464 static final int CSS_FILTER_CONTRAST = 9; | |
| 11465 | |
| 11466 static final int CSS_FILTER_CUSTOM = 12; | |
| 11467 | |
| 11468 static final int CSS_FILTER_DROP_SHADOW = 11; | |
| 11469 | |
| 11470 static final int CSS_FILTER_GRAYSCALE = 2; | |
| 11471 | |
| 11472 static final int CSS_FILTER_HUE_ROTATE = 5; | |
| 11473 | |
| 11474 static final int CSS_FILTER_INVERT = 6; | |
| 11475 | |
| 11476 static final int CSS_FILTER_OPACITY = 7; | |
| 11477 | |
| 11478 static final int CSS_FILTER_REFERENCE = 1; | |
| 11479 | |
| 11480 static final int CSS_FILTER_SATURATE = 4; | |
| 11481 | |
| 11482 static final int CSS_FILTER_SEPIA = 3; | |
| 11483 | |
| 11484 final int operationType; | |
| 11485 } | |
| 11486 | |
| 11487 class _WebKitCSSKeyframeRuleJs extends _CSSRuleJs implements WebKitCSSKeyframeRu
le native "*WebKitCSSKeyframeRule" { | |
| 11488 | |
| 11489 String keyText; | |
| 11490 | |
| 11491 final _CSSStyleDeclarationJs style; | |
| 11492 } | |
| 11493 | |
| 11494 class _WebKitCSSKeyframesRuleJs extends _CSSRuleJs implements WebKitCSSKeyframes
Rule native "*WebKitCSSKeyframesRule" { | |
| 11495 | |
| 11496 final _CSSRuleListJs cssRules; | |
| 11497 | |
| 11498 String name; | |
| 11499 | |
| 11500 void deleteRule(String key) native; | |
| 11501 | |
| 11502 _WebKitCSSKeyframeRuleJs findRule(String key) native; | |
| 11503 | |
| 11504 void insertRule(String rule) native; | |
| 11505 } | |
| 11506 | |
| 11507 class _WebKitCSSMatrixJs extends _DOMTypeJs implements WebKitCSSMatrix native "*
WebKitCSSMatrix" { | |
| 11508 | |
| 11509 num a; | |
| 11510 | |
| 11511 num b; | |
| 11512 | |
| 11513 num c; | |
| 11514 | |
| 11515 num d; | |
| 11516 | |
| 11517 num e; | |
| 11518 | |
| 11519 num f; | |
| 11520 | |
| 11521 num m11; | |
| 11522 | |
| 11523 num m12; | |
| 11524 | |
| 11525 num m13; | |
| 11526 | |
| 11527 num m14; | |
| 11528 | |
| 11529 num m21; | |
| 11530 | |
| 11531 num m22; | |
| 11532 | |
| 11533 num m23; | |
| 11534 | |
| 11535 num m24; | |
| 11536 | |
| 11537 num m31; | |
| 11538 | |
| 11539 num m32; | |
| 11540 | |
| 11541 num m33; | |
| 11542 | |
| 11543 num m34; | |
| 11544 | |
| 11545 num m41; | |
| 11546 | |
| 11547 num m42; | |
| 11548 | |
| 11549 num m43; | |
| 11550 | |
| 11551 num m44; | |
| 11552 | |
| 11553 _WebKitCSSMatrixJs inverse() native; | |
| 11554 | |
| 11555 _WebKitCSSMatrixJs multiply(_WebKitCSSMatrixJs secondMatrix) native; | |
| 11556 | |
| 11557 _WebKitCSSMatrixJs rotate(num rotX, num rotY, num rotZ) native; | |
| 11558 | |
| 11559 _WebKitCSSMatrixJs rotateAxisAngle(num x, num y, num z, num angle) native; | |
| 11560 | |
| 11561 _WebKitCSSMatrixJs scale(num scaleX, num scaleY, num scaleZ) native; | |
| 11562 | |
| 11563 void setMatrixValue(String string) native; | |
| 11564 | |
| 11565 _WebKitCSSMatrixJs skewX(num angle) native; | |
| 11566 | |
| 11567 _WebKitCSSMatrixJs skewY(num angle) native; | |
| 11568 | |
| 11569 String toString() native; | |
| 11570 | |
| 11571 _WebKitCSSMatrixJs translate(num x, num y, num z) native; | |
| 11572 } | |
| 11573 | |
| 11574 class _WebKitCSSTransformValueJs extends _CSSValueListJs implements WebKitCSSTra
nsformValue native "*WebKitCSSTransformValue" { | |
| 11575 | |
| 11576 static final int CSS_MATRIX = 11; | |
| 11577 | |
| 11578 static final int CSS_MATRIX3D = 21; | |
| 11579 | |
| 11580 static final int CSS_PERSPECTIVE = 20; | |
| 11581 | |
| 11582 static final int CSS_ROTATE = 4; | |
| 11583 | |
| 11584 static final int CSS_ROTATE3D = 17; | |
| 11585 | |
| 11586 static final int CSS_ROTATEX = 14; | |
| 11587 | |
| 11588 static final int CSS_ROTATEY = 15; | |
| 11589 | |
| 11590 static final int CSS_ROTATEZ = 16; | |
| 11591 | |
| 11592 static final int CSS_SCALE = 5; | |
| 11593 | |
| 11594 static final int CSS_SCALE3D = 19; | |
| 11595 | |
| 11596 static final int CSS_SCALEX = 6; | |
| 11597 | |
| 11598 static final int CSS_SCALEY = 7; | |
| 11599 | |
| 11600 static final int CSS_SCALEZ = 18; | |
| 11601 | |
| 11602 static final int CSS_SKEW = 8; | |
| 11603 | |
| 11604 static final int CSS_SKEWX = 9; | |
| 11605 | |
| 11606 static final int CSS_SKEWY = 10; | |
| 11607 | |
| 11608 static final int CSS_TRANSLATE = 1; | |
| 11609 | |
| 11610 static final int CSS_TRANSLATE3D = 13; | |
| 11611 | |
| 11612 static final int CSS_TRANSLATEX = 2; | |
| 11613 | |
| 11614 static final int CSS_TRANSLATEY = 3; | |
| 11615 | |
| 11616 static final int CSS_TRANSLATEZ = 12; | |
| 11617 | |
| 11618 final int operationType; | |
| 11619 } | |
| 11620 | |
| 11621 class _WebKitNamedFlowJs extends _DOMTypeJs implements WebKitNamedFlow native "*
WebKitNamedFlow" { | |
| 11622 | |
| 11623 final int firstEmptyRegionIndex; | |
| 11624 | |
| 11625 final String name; | |
| 11626 | |
| 11627 final bool overset; | |
| 11628 | |
| 11629 _NodeListJs getContent() native; | |
| 11630 | |
| 11631 _NodeListJs getRegionsByContent(_NodeJs contentNode) native; | |
| 11632 } | |
| 11633 | |
| 11634 class _WebKitPointJs extends _DOMTypeJs implements WebKitPoint native "*WebKitPo
int" { | |
| 11635 | |
| 11636 num x; | |
| 11637 | |
| 11638 num y; | |
| 11639 } | |
| 11640 | |
| 11641 class _WebKitTransitionEventJs extends _EventJs implements WebKitTransitionEvent
native "*WebKitTransitionEvent" { | |
| 11642 | |
| 11643 final num elapsedTime; | |
| 11644 | |
| 11645 final String propertyName; | |
| 11646 } | |
| 11647 | |
| 11648 class _WebSocketJs extends _EventTargetJs implements WebSocket native "*WebSocke
t" { | |
| 11649 | |
| 11650 static final int CLOSED = 3; | |
| 11651 | |
| 11652 static final int CLOSING = 2; | |
| 11653 | |
| 11654 static final int CONNECTING = 0; | |
| 11655 | |
| 11656 static final int OPEN = 1; | |
| 11657 | |
| 11658 final String URL; | |
| 11659 | |
| 11660 String binaryType; | |
| 11661 | |
| 11662 final int bufferedAmount; | |
| 11663 | |
| 11664 final String extensions; | |
| 11665 | |
| 11666 final String protocol; | |
| 11667 | |
| 11668 final int readyState; | |
| 11669 | |
| 11670 final String url; | |
| 11671 | |
| 11672 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 11673 | |
| 11674 void close([int code, String reason]) native; | |
| 11675 | |
| 11676 bool dispatchEvent(_EventJs evt) native; | |
| 11677 | |
| 11678 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 11679 | |
| 11680 bool send(String data) native; | |
| 11681 } | |
| 11682 | |
| 11683 class _WheelEventJs extends _MouseEventJs implements WheelEvent native "*WheelEv
ent" { | |
| 11684 | |
| 11685 final bool webkitDirectionInvertedFromDevice; | |
| 11686 | |
| 11687 final int wheelDelta; | |
| 11688 | |
| 11689 final int wheelDeltaX; | |
| 11690 | |
| 11691 final int wheelDeltaY; | |
| 11692 | |
| 11693 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; | |
| 11694 } | |
| 11695 | |
| 11696 class _WorkerJs extends _AbstractWorkerJs implements Worker native "*Worker" { | |
| 11697 | |
| 11698 void postMessage(message, [List messagePorts]) native; | |
| 11699 | |
| 11700 void terminate() native; | |
| 11701 | |
| 11702 void webkitPostMessage(message, [List messagePorts]) native; | |
| 11703 } | |
| 11704 | |
| 11705 class _WorkerContextJs extends _EventTargetJs implements WorkerContext native "*
WorkerContext" { | |
| 11706 | |
| 11707 static final int PERSISTENT = 1; | |
| 11708 | |
| 11709 static final int TEMPORARY = 0; | |
| 11710 | |
| 11711 final _WorkerLocationJs location; | |
| 11712 | |
| 11713 final _WorkerNavigatorJs navigator; | |
| 11714 | |
| 11715 final _WorkerContextJs self; | |
| 11716 | |
| 11717 final _IDBFactoryJs webkitIndexedDB; | |
| 11718 | |
| 11719 final _NotificationCenterJs webkitNotifications; | |
| 11720 | |
| 11721 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 11722 | |
| 11723 void clearInterval(int handle) native; | |
| 11724 | |
| 11725 void clearTimeout(int handle) native; | |
| 11726 | |
| 11727 void close() native; | |
| 11728 | |
| 11729 bool dispatchEvent(_EventJs evt) native; | |
| 11730 | |
| 11731 void importScripts() native; | |
| 11732 | |
| 11733 _DatabaseJs openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback]) native; | |
| 11734 | |
| 11735 _DatabaseSyncJs openDatabaseSync(String name, String version, String displayNa
me, int estimatedSize, [DatabaseCallback creationCallback]) native; | |
| 11736 | |
| 11737 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 11738 | |
| 11739 int setInterval(TimeoutHandler handler, int timeout) native; | |
| 11740 | |
| 11741 int setTimeout(TimeoutHandler handler, int timeout) native; | |
| 11742 | |
| 11743 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]) native; | |
| 11744 | |
| 11745 _DOMFileSystemSyncJs webkitRequestFileSystemSync(int type, int size) native; | |
| 11746 | |
| 11747 _EntrySyncJs webkitResolveLocalFileSystemSyncURL(String url) native; | |
| 11748 | |
| 11749 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]) native; | |
| 11750 } | |
| 11751 | |
| 11752 class _WorkerLocationJs extends _DOMTypeJs implements WorkerLocation native "*Wo
rkerLocation" { | |
| 11753 | |
| 11754 final String hash; | |
| 11755 | |
| 11756 final String host; | |
| 11757 | |
| 11758 final String hostname; | |
| 11759 | |
| 11760 final String href; | |
| 11761 | |
| 11762 final String pathname; | |
| 11763 | |
| 11764 final String port; | |
| 11765 | |
| 11766 final String protocol; | |
| 11767 | |
| 11768 final String search; | |
| 11769 | |
| 11770 String toString() native; | |
| 11771 } | |
| 11772 | |
| 11773 class _WorkerNavigatorJs extends _DOMTypeJs implements WorkerNavigator native "*
WorkerNavigator" { | |
| 11774 | |
| 11775 final String appName; | |
| 11776 | |
| 11777 final String appVersion; | |
| 11778 | |
| 11779 final bool onLine; | |
| 11780 | |
| 11781 final String platform; | |
| 11782 | |
| 11783 final String userAgent; | |
| 11784 } | |
| 11785 | |
| 11786 class _XMLHttpRequestJs extends _EventTargetJs implements XMLHttpRequest native
"*XMLHttpRequest" { | |
| 11787 | |
| 11788 static final int DONE = 4; | |
| 11789 | |
| 11790 static final int HEADERS_RECEIVED = 2; | |
| 11791 | |
| 11792 static final int LOADING = 3; | |
| 11793 | |
| 11794 static final int OPENED = 1; | |
| 11795 | |
| 11796 static final int UNSENT = 0; | |
| 11797 | |
| 11798 final int readyState; | |
| 11799 | |
| 11800 final Object response; | |
| 11801 | |
| 11802 final String responseText; | |
| 11803 | |
| 11804 String responseType; | |
| 11805 | |
| 11806 final _DocumentJs responseXML; | |
| 11807 | |
| 11808 final int status; | |
| 11809 | |
| 11810 final String statusText; | |
| 11811 | |
| 11812 final _XMLHttpRequestUploadJs upload; | |
| 11813 | |
| 11814 bool withCredentials; | |
| 11815 | |
| 11816 void abort() native; | |
| 11817 | |
| 11818 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 11819 | |
| 11820 bool dispatchEvent(_EventJs evt) native; | |
| 11821 | |
| 11822 String getAllResponseHeaders() native; | |
| 11823 | |
| 11824 String getResponseHeader(String header) native; | |
| 11825 | |
| 11826 void open(String method, String url, [bool async, String user, String password
]) native; | |
| 11827 | |
| 11828 void overrideMimeType(String override) native; | |
| 11829 | |
| 11830 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 11831 | |
| 11832 void send([data]) native; | |
| 11833 | |
| 11834 void setRequestHeader(String header, String value) native; | |
| 11835 } | |
| 11836 | |
| 11837 class _XMLHttpRequestExceptionJs extends _DOMTypeJs implements XMLHttpRequestExc
eption native "*XMLHttpRequestException" { | |
| 11838 | |
| 11839 static final int ABORT_ERR = 102; | |
| 11840 | |
| 11841 static final int NETWORK_ERR = 101; | |
| 11842 | |
| 11843 final int code; | |
| 11844 | |
| 11845 final String message; | |
| 11846 | |
| 11847 final String name; | |
| 11848 | |
| 11849 String toString() native; | |
| 11850 } | |
| 11851 | |
| 11852 class _XMLHttpRequestProgressEventJs extends _ProgressEventJs implements XMLHttp
RequestProgressEvent native "*XMLHttpRequestProgressEvent" { | |
| 11853 | |
| 11854 final int position; | |
| 11855 | |
| 11856 final int totalSize; | |
| 11857 } | |
| 11858 | |
| 11859 class _XMLHttpRequestUploadJs extends _EventTargetJs implements XMLHttpRequestUp
load native "*XMLHttpRequestUpload" { | |
| 11860 | |
| 11861 void addEventListener(String type, EventListener listener, [bool useCapture])
native; | |
| 11862 | |
| 11863 bool dispatchEvent(_EventJs evt) native; | |
| 11864 | |
| 11865 void removeEventListener(String type, EventListener listener, [bool useCapture
]) native; | |
| 11866 } | |
| 11867 | |
| 11868 class _XMLSerializerJs extends _DOMTypeJs implements XMLSerializer native "*XMLS
erializer" { | |
| 11869 | |
| 11870 String serializeToString(_NodeJs node) native; | |
| 11871 } | |
| 11872 | |
| 11873 class _XPathEvaluatorJs extends _DOMTypeJs implements XPathEvaluator native "*XP
athEvaluator" { | |
| 11874 | |
| 11875 _XPathExpressionJs createExpression(String expression, _XPathNSResolverJs reso
lver) native; | |
| 11876 | |
| 11877 _XPathNSResolverJs createNSResolver(_NodeJs nodeResolver) native; | |
| 11878 | |
| 11879 _XPathResultJs evaluate(String expression, _NodeJs contextNode, _XPathNSResolv
erJs resolver, int type, _XPathResultJs inResult) native; | |
| 11880 } | |
| 11881 | |
| 11882 class _XPathExceptionJs extends _DOMTypeJs implements XPathException native "*XP
athException" { | |
| 11883 | |
| 11884 static final int INVALID_EXPRESSION_ERR = 51; | |
| 11885 | |
| 11886 static final int TYPE_ERR = 52; | |
| 11887 | |
| 11888 final int code; | |
| 11889 | |
| 11890 final String message; | |
| 11891 | |
| 11892 final String name; | |
| 11893 | |
| 11894 String toString() native; | |
| 11895 } | |
| 11896 | |
| 11897 class _XPathExpressionJs extends _DOMTypeJs implements XPathExpression native "*
XPathExpression" { | |
| 11898 | |
| 11899 _XPathResultJs evaluate(_NodeJs contextNode, int type, _XPathResultJs inResult
) native; | |
| 11900 } | |
| 11901 | |
| 11902 class _XPathNSResolverJs extends _DOMTypeJs implements XPathNSResolver native "*
XPathNSResolver" { | |
| 11903 | |
| 11904 String lookupNamespaceURI(String prefix) native; | |
| 11905 } | |
| 11906 | |
| 11907 class _XPathResultJs extends _DOMTypeJs implements XPathResult native "*XPathRes
ult" { | |
| 11908 | |
| 11909 static final int ANY_TYPE = 0; | |
| 11910 | |
| 11911 static final int ANY_UNORDERED_NODE_TYPE = 8; | |
| 11912 | |
| 11913 static final int BOOLEAN_TYPE = 3; | |
| 11914 | |
| 11915 static final int FIRST_ORDERED_NODE_TYPE = 9; | |
| 11916 | |
| 11917 static final int NUMBER_TYPE = 1; | |
| 11918 | |
| 11919 static final int ORDERED_NODE_ITERATOR_TYPE = 5; | |
| 11920 | |
| 11921 static final int ORDERED_NODE_SNAPSHOT_TYPE = 7; | |
| 11922 | |
| 11923 static final int STRING_TYPE = 2; | |
| 11924 | |
| 11925 static final int UNORDERED_NODE_ITERATOR_TYPE = 4; | |
| 11926 | |
| 11927 static final int UNORDERED_NODE_SNAPSHOT_TYPE = 6; | |
| 11928 | |
| 11929 final bool booleanValue; | |
| 11930 | |
| 11931 final bool invalidIteratorState; | |
| 11932 | |
| 11933 final num numberValue; | |
| 11934 | |
| 11935 final int resultType; | |
| 11936 | |
| 11937 final _NodeJs singleNodeValue; | |
| 11938 | |
| 11939 final int snapshotLength; | |
| 11940 | |
| 11941 final String stringValue; | |
| 11942 | |
| 11943 _NodeJs iterateNext() native; | |
| 11944 | |
| 11945 _NodeJs snapshotItem(int index) native; | |
| 11946 } | |
| 11947 | |
| 11948 class _XSLTProcessorJs extends _DOMTypeJs implements XSLTProcessor native "*XSLT
Processor" { | |
| 11949 | |
| 11950 void clearParameters() native; | |
| 11951 | |
| 11952 String getParameter(String namespaceURI, String localName) native; | |
| 11953 | |
| 11954 void importStylesheet(_NodeJs stylesheet) native; | |
| 11955 | |
| 11956 void removeParameter(String namespaceURI, String localName) native; | |
| 11957 | |
| 11958 void reset() native; | |
| 11959 | |
| 11960 void setParameter(String namespaceURI, String localName, String value) native; | |
| 11961 | |
| 11962 _DocumentJs transformToDocument(_NodeJs source) native; | |
| 11963 | |
| 11964 _DocumentFragmentJs transformToFragment(_NodeJs source, _DocumentJs docVal) na
tive; | |
| 11965 } | |
| 11966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 11967 // for details. All rights reserved. Use of this source code is governed by a | |
| 11968 // BSD-style license that can be found in the LICENSE file. | |
| 11969 | |
| 11970 class _ArrayBufferFactoryProvider { | |
| 11971 factory ArrayBuffer(int length) native | |
| 11972 '''return new ArrayBuffer(length);'''; | |
| 11973 } | |
| 11974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 11975 // for details. All rights reserved. Use of this source code is governed by a | |
| 11976 // BSD-style license that can be found in the LICENSE file. | |
| 11977 | |
| 11978 class _BlobFactoryProvider { | |
| 11979 factory Blob(List blobParts, [String type, String endings]) native | |
| 11980 '''return new Blob(blobParts, type, endings);'''; | |
| 11981 } | |
| 11982 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 11983 // for details. All rights reserved. Use of this source code is governed by a | |
| 11984 // BSD-style license that can be found in the LICENSE file. | |
| 11985 | |
| 11986 class _DOMParserFactoryProvider { | |
| 11987 factory DOMParser() native | |
| 11988 '''return new DOMParser();'''; | |
| 11989 } | |
| 11990 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 11991 // for details. All rights reserved. Use of this source code is governed by a | |
| 11992 // BSD-style license that can be found in the LICENSE file. | |
| 11993 | |
| 11994 class _DOMURLFactoryProvider { | |
| 11995 factory DOMURL() native | |
| 11996 '''return new DOMURL();'''; | |
| 11997 } | |
| 11998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 11999 // for details. All rights reserved. Use of this source code is governed by a | |
| 12000 // BSD-style license that can be found in the LICENSE file. | |
| 12001 | |
| 12002 class _DataViewFactoryProvider { | |
| 12003 factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) native | |
| 12004 '''return new DataView(buffer, byteOffset, byteLength);'''; | |
| 12005 } | |
| 12006 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12007 // for details. All rights reserved. Use of this source code is governed by a | |
| 12008 // BSD-style license that can be found in the LICENSE file. | |
| 12009 | |
| 12010 class _DeprecatedPeerConnectionFactoryProvider { | |
| 12011 factory DeprecatedPeerConnection(String serverConfiguration, SignalingCallback
signalingCallback) native | |
| 12012 '''return new DeprecatedPeerConnection(serverConfiguration, signalingCallb
ack);'''; | |
| 12013 } | |
| 12014 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12015 // for details. All rights reserved. Use of this source code is governed by a | |
| 12016 // BSD-style license that can be found in the LICENSE file. | |
| 12017 | |
| 12018 class _EventSourceFactoryProvider { | |
| 12019 factory EventSource(String scriptUrl) native | |
| 12020 '''return new EventSource(scriptUrl);'''; | |
| 12021 } | |
| 12022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12023 // for details. All rights reserved. Use of this source code is governed by a | |
| 12024 // BSD-style license that can be found in the LICENSE file. | |
| 12025 | |
| 12026 class _FileReaderFactoryProvider { | |
| 12027 factory FileReader() native | |
| 12028 '''return new FileReader();'''; | |
| 12029 } | |
| 12030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12031 // for details. All rights reserved. Use of this source code is governed by a | |
| 12032 // BSD-style license that can be found in the LICENSE file. | |
| 12033 | |
| 12034 class _FileReaderSyncFactoryProvider { | |
| 12035 factory FileReaderSync() native | |
| 12036 '''return new FileReaderSync();'''; | |
| 12037 } | |
| 12038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12039 // for details. All rights reserved. Use of this source code is governed by a | |
| 12040 // BSD-style license that can be found in the LICENSE file. | |
| 12041 | |
| 12042 class _HTMLAudioElementFactoryProvider { | |
| 12043 factory HTMLAudioElement([String src = null]) native | |
| 12044 ''' | |
| 12045 if (src == null) return new Audio(); | |
| 12046 return new Audio(src); | |
| 12047 '''; | |
| 12048 } | |
| 12049 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12050 // for details. All rights reserved. Use of this source code is governed by a | |
| 12051 // BSD-style license that can be found in the LICENSE file. | |
| 12052 | |
| 12053 class _HTMLOptionElementFactoryProvider { | |
| 12054 factory HTMLOptionElement([String data = null, String value = null, | |
| 12055 bool defaultSelected = null, bool selected = null]) | |
| 12056 native | |
| 12057 ''' | |
| 12058 if (data == null) return new Option(); | |
| 12059 if (value == null) return new Option(data); | |
| 12060 if (defaultSelected == null) return new Option(data, value); | |
| 12061 if (selected == null) return new Option(data, value, defaultSelected); | |
| 12062 return new Option(data, value, defaultSelected, selected); | |
| 12063 '''; | |
| 12064 } | |
| 12065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12066 // for details. All rights reserved. Use of this source code is governed by a | |
| 12067 // BSD-style license that can be found in the LICENSE file. | |
| 12068 | |
| 12069 class _IceCandidateFactoryProvider { | |
| 12070 factory IceCandidate(String label, String candidateLine) native | |
| 12071 '''return new IceCandidate(label, candidateLine);'''; | |
| 12072 } | |
| 12073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12074 // for details. All rights reserved. Use of this source code is governed by a | |
| 12075 // BSD-style license that can be found in the LICENSE file. | |
| 12076 | |
| 12077 class _MediaControllerFactoryProvider { | |
| 12078 factory MediaController() native | |
| 12079 '''return new MediaController();'''; | |
| 12080 } | |
| 12081 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12082 // for details. All rights reserved. Use of this source code is governed by a | |
| 12083 // BSD-style license that can be found in the LICENSE file. | |
| 12084 | |
| 12085 class _MediaStreamFactoryProvider { | |
| 12086 factory MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList vid
eoTracks) native | |
| 12087 '''return new MediaStream(audioTracks, videoTracks);'''; | |
| 12088 } | |
| 12089 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12090 // for details. All rights reserved. Use of this source code is governed by a | |
| 12091 // BSD-style license that can be found in the LICENSE file. | |
| 12092 | |
| 12093 class _MessageChannelFactoryProvider { | |
| 12094 factory MessageChannel() native | |
| 12095 '''return new MessageChannel();'''; | |
| 12096 } | |
| 12097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12098 // for details. All rights reserved. Use of this source code is governed by a | |
| 12099 // BSD-style license that can be found in the LICENSE file. | |
| 12100 | |
| 12101 class _MutationObserverFactoryProvider { | |
| 12102 factory MutationObserver(MutationCallback callback) native | |
| 12103 '''return new MutationObserver(callback);'''; | |
| 12104 } | |
| 12105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12106 // for details. All rights reserved. Use of this source code is governed by a | |
| 12107 // BSD-style license that can be found in the LICENSE file. | |
| 12108 | |
| 12109 class _NotificationFactoryProvider { | |
| 12110 factory Notification(String title, [Map options]) native | |
| 12111 '''return new Notification(title, options);'''; | |
| 12112 } | |
| 12113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12114 // for details. All rights reserved. Use of this source code is governed by a | |
| 12115 // BSD-style license that can be found in the LICENSE file. | |
| 12116 | |
| 12117 class _PeerConnection00FactoryProvider { | |
| 12118 factory PeerConnection00(String serverConfiguration, IceCallback iceCallback)
native | |
| 12119 '''return new PeerConnection00(serverConfiguration, iceCallback);'''; | |
| 12120 } | |
| 12121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12122 // for details. All rights reserved. Use of this source code is governed by a | |
| 12123 // BSD-style license that can be found in the LICENSE file. | |
| 12124 | |
| 12125 class _SessionDescriptionFactoryProvider { | |
| 12126 factory SessionDescription(String sdp) native | |
| 12127 '''return new SessionDescription(sdp);'''; | |
| 12128 } | |
| 12129 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12130 // for details. All rights reserved. Use of this source code is governed by a | |
| 12131 // BSD-style license that can be found in the LICENSE file. | |
| 12132 | |
| 12133 class _ShadowRootFactoryProvider { | |
| 12134 factory ShadowRoot(Element host) native | |
| 12135 '''return new ShadowRoot(host);'''; | |
| 12136 } | |
| 12137 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12138 // for details. All rights reserved. Use of this source code is governed by a | |
| 12139 // BSD-style license that can be found in the LICENSE file. | |
| 12140 | |
| 12141 class _SharedWorkerFactoryProvider { | |
| 12142 factory SharedWorker(String scriptURL, [String name]) native | |
| 12143 ''' | |
| 12144 if (name == null) return new SharedWorker(scriptURL); | |
| 12145 return new SharedWorker(scriptURL, name); | |
| 12146 '''; | |
| 12147 } | |
| 12148 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12149 // for details. All rights reserved. Use of this source code is governed by a | |
| 12150 // BSD-style license that can be found in the LICENSE file. | |
| 12151 | |
| 12152 class _SpeechGrammarFactoryProvider { | |
| 12153 factory SpeechGrammar() native | |
| 12154 '''return new SpeechGrammar();'''; | |
| 12155 } | |
| 12156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12157 // for details. All rights reserved. Use of this source code is governed by a | |
| 12158 // BSD-style license that can be found in the LICENSE file. | |
| 12159 | |
| 12160 class _SpeechGrammarListFactoryProvider { | |
| 12161 factory SpeechGrammarList() native | |
| 12162 '''return new SpeechGrammarList();'''; | |
| 12163 } | |
| 12164 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12165 // for details. All rights reserved. Use of this source code is governed by a | |
| 12166 // BSD-style license that can be found in the LICENSE file. | |
| 12167 | |
| 12168 class _SpeechRecognitionFactoryProvider { | |
| 12169 factory SpeechRecognition() native | |
| 12170 '''return new SpeechRecognition();'''; | |
| 12171 } | |
| 12172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12173 // for details. All rights reserved. Use of this source code is governed by a | |
| 12174 // BSD-style license that can be found in the LICENSE file. | |
| 12175 | |
| 12176 class _TextTrackCueFactoryProvider { | |
| 12177 factory TextTrackCue(String id, num startTime, num endTime, String text, | |
| 12178 [String settings, bool pauseOnExit]) native | |
| 12179 ''' | |
| 12180 if (settings == null) | |
| 12181 return new TextTrackCue(id, startTime, endTime, text); | |
| 12182 if (pauseOnExit == null) | |
| 12183 return new TextTrackCue(id, startTime, endTime, text, settings); | |
| 12184 return new TextTrackCue(id, startTime, endTime, text, settings, pauseOnExit); | |
| 12185 '''; | |
| 12186 } | |
| 12187 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12188 // for details. All rights reserved. Use of this source code is governed by a | |
| 12189 // BSD-style license that can be found in the LICENSE file. | |
| 12190 | |
| 12191 class _WebKitCSSMatrixFactoryProvider { | |
| 12192 factory WebKitCSSMatrix([String cssValue = null]) native | |
| 12193 ''' | |
| 12194 if (cssValue == null) return new WebKitCSSMatrix(); | |
| 12195 return new WebKitCSSMatrix(cssValue); | |
| 12196 '''; | |
| 12197 } | |
| 12198 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12199 // for details. All rights reserved. Use of this source code is governed by a | |
| 12200 // BSD-style license that can be found in the LICENSE file. | |
| 12201 | |
| 12202 class _WorkerFactoryProvider { | |
| 12203 factory Worker(String scriptUrl) native | |
| 12204 '''return new Worker(scriptUrl);'''; | |
| 12205 } | |
| 12206 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12207 // for details. All rights reserved. Use of this source code is governed by a | |
| 12208 // BSD-style license that can be found in the LICENSE file. | |
| 12209 | |
| 12210 class _XMLHttpRequestFactoryProvider { | |
| 12211 factory XMLHttpRequest() native | |
| 12212 '''return new XMLHttpRequest();'''; | |
| 12213 } | |
| 12214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12215 // for details. All rights reserved. Use of this source code is governed by a | |
| 12216 // BSD-style license that can be found in the LICENSE file. | |
| 12217 | |
| 12218 class _XMLSerializerFactoryProvider { | |
| 12219 factory XMLSerializer() native | |
| 12220 '''return new XMLSerializer();'''; | |
| 12221 } | |
| 12222 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12223 // for details. All rights reserved. Use of this source code is governed by a | |
| 12224 // BSD-style license that can be found in the LICENSE file. | |
| 12225 | |
| 12226 class _XPathEvaluatorFactoryProvider { | |
| 12227 factory XPathEvaluator() native | |
| 12228 '''return new XPathEvaluator();'''; | |
| 12229 } | |
| 12230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12231 // for details. All rights reserved. Use of this source code is governed by a | |
| 12232 // BSD-style license that can be found in the LICENSE file. | |
| 12233 | |
| 12234 class _XSLTProcessorFactoryProvider { | |
| 12235 factory XSLTProcessor() native | |
| 12236 '''return new XSLTProcessor();'''; | |
| 12237 } | |
| 12238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12239 // for details. All rights reserved. Use of this source code is governed by a | |
| 12240 // BSD-style license that can be found in the LICENSE file. | |
| 12241 | |
| 12242 // WARNING: Do not edit - generated code. | |
| 12243 | |
| 12244 interface AbstractWorker extends EventTarget { | |
| 12245 | |
| 12246 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 12247 | |
| 12248 bool dispatchEvent(Event evt); | |
| 12249 | |
| 12250 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 12251 } | |
| 12252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12253 // for details. All rights reserved. Use of this source code is governed by a | |
| 12254 // BSD-style license that can be found in the LICENSE file. | |
| 12255 | |
| 12256 // WARNING: Do not edit - generated code. | |
| 12257 | |
| 12258 interface ArrayBuffer default _ArrayBufferFactoryProvider { | |
| 12259 | |
| 12260 ArrayBuffer(int length); | |
| 12261 | |
| 12262 final int byteLength; | |
| 12263 | |
| 12264 ArrayBuffer slice(int begin, [int end]); | |
| 12265 } | |
| 12266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12267 // for details. All rights reserved. Use of this source code is governed by a | |
| 12268 // BSD-style license that can be found in the LICENSE file. | |
| 12269 | |
| 12270 // WARNING: Do not edit - generated code. | |
| 12271 | |
| 12272 interface ArrayBufferView { | |
| 12273 | |
| 12274 final ArrayBuffer buffer; | |
| 12275 | |
| 12276 final int byteLength; | |
| 12277 | |
| 12278 final int byteOffset; | |
| 12279 } | |
| 12280 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12281 // for details. All rights reserved. Use of this source code is governed by a | |
| 12282 // BSD-style license that can be found in the LICENSE file. | |
| 12283 | |
| 12284 // WARNING: Do not edit - generated code. | |
| 12285 | |
| 12286 interface Attr extends Node { | |
| 12287 | |
| 12288 final bool isId; | |
| 12289 | |
| 12290 final String name; | |
| 12291 | |
| 12292 final Element ownerElement; | |
| 12293 | |
| 12294 final bool specified; | |
| 12295 | |
| 12296 String value; | |
| 12297 } | |
| 12298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12299 // for details. All rights reserved. Use of this source code is governed by a | |
| 12300 // BSD-style license that can be found in the LICENSE file. | |
| 12301 | |
| 12302 // WARNING: Do not edit - generated code. | |
| 12303 | |
| 12304 interface AudioBuffer { | |
| 12305 | |
| 12306 final num duration; | |
| 12307 | |
| 12308 num gain; | |
| 12309 | |
| 12310 final int length; | |
| 12311 | |
| 12312 final int numberOfChannels; | |
| 12313 | |
| 12314 final num sampleRate; | |
| 12315 | |
| 12316 Float32Array getChannelData(int channelIndex); | |
| 12317 } | |
| 12318 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12319 // for details. All rights reserved. Use of this source code is governed by a | |
| 12320 // BSD-style license that can be found in the LICENSE file. | |
| 12321 | |
| 12322 // WARNING: Do not edit - generated code. | |
| 12323 | |
| 12324 typedef bool AudioBufferCallback(AudioBuffer audioBuffer); | |
| 12325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12326 // for details. All rights reserved. Use of this source code is governed by a | |
| 12327 // BSD-style license that can be found in the LICENSE file. | |
| 12328 | |
| 12329 // WARNING: Do not edit - generated code. | |
| 12330 | |
| 12331 interface AudioBufferSourceNode extends AudioSourceNode { | |
| 12332 | |
| 12333 static final int FINISHED_STATE = 3; | |
| 12334 | |
| 12335 static final int PLAYING_STATE = 2; | |
| 12336 | |
| 12337 static final int SCHEDULED_STATE = 1; | |
| 12338 | |
| 12339 static final int UNSCHEDULED_STATE = 0; | |
| 12340 | |
| 12341 AudioBuffer buffer; | |
| 12342 | |
| 12343 final AudioGain gain; | |
| 12344 | |
| 12345 bool loop; | |
| 12346 | |
| 12347 bool looping; | |
| 12348 | |
| 12349 final AudioParam playbackRate; | |
| 12350 | |
| 12351 final int playbackState; | |
| 12352 | |
| 12353 void noteGrainOn(num when, num grainOffset, num grainDuration); | |
| 12354 | |
| 12355 void noteOff(num when); | |
| 12356 | |
| 12357 void noteOn(num when); | |
| 12358 } | |
| 12359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12360 // for details. All rights reserved. Use of this source code is governed by a | |
| 12361 // BSD-style license that can be found in the LICENSE file. | |
| 12362 | |
| 12363 // WARNING: Do not edit - generated code. | |
| 12364 | |
| 12365 interface AudioChannelMerger extends AudioNode { | |
| 12366 } | |
| 12367 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12368 // for details. All rights reserved. Use of this source code is governed by a | |
| 12369 // BSD-style license that can be found in the LICENSE file. | |
| 12370 | |
| 12371 // WARNING: Do not edit - generated code. | |
| 12372 | |
| 12373 interface AudioChannelSplitter extends AudioNode { | |
| 12374 } | |
| 12375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12376 // for details. All rights reserved. Use of this source code is governed by a | |
| 12377 // BSD-style license that can be found in the LICENSE file. | |
| 12378 | |
| 12379 // WARNING: Do not edit - generated code. | |
| 12380 | |
| 12381 interface AudioContext extends EventTarget default _AudioContextFactoryProvider
{ | |
| 12382 | |
| 12383 AudioContext(); | |
| 12384 | |
| 12385 final int activeSourceCount; | |
| 12386 | |
| 12387 final num currentTime; | |
| 12388 | |
| 12389 final AudioDestinationNode destination; | |
| 12390 | |
| 12391 final AudioListener listener; | |
| 12392 | |
| 12393 final num sampleRate; | |
| 12394 | |
| 12395 RealtimeAnalyserNode createAnalyser(); | |
| 12396 | |
| 12397 BiquadFilterNode createBiquadFilter(); | |
| 12398 | |
| 12399 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]); | |
| 12400 | |
| 12401 AudioBufferSourceNode createBufferSource(); | |
| 12402 | |
| 12403 AudioChannelMerger createChannelMerger([int numberOfInputs]); | |
| 12404 | |
| 12405 AudioChannelSplitter createChannelSplitter([int numberOfOutputs]); | |
| 12406 | |
| 12407 ConvolverNode createConvolver(); | |
| 12408 | |
| 12409 DelayNode createDelayNode([num maxDelayTime]); | |
| 12410 | |
| 12411 DynamicsCompressorNode createDynamicsCompressor(); | |
| 12412 | |
| 12413 AudioGainNode createGainNode(); | |
| 12414 | |
| 12415 JavaScriptAudioNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]); | |
| 12416 | |
| 12417 MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaEle
ment); | |
| 12418 | |
| 12419 Oscillator createOscillator(); | |
| 12420 | |
| 12421 AudioPannerNode createPanner(); | |
| 12422 | |
| 12423 WaveShaperNode createWaveShaper(); | |
| 12424 | |
| 12425 WaveTable createWaveTable(Float32Array real, Float32Array imag); | |
| 12426 | |
| 12427 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]); | |
| 12428 | |
| 12429 void startRendering(); | |
| 12430 } | |
| 12431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12432 // for details. All rights reserved. Use of this source code is governed by a | |
| 12433 // BSD-style license that can be found in the LICENSE file. | |
| 12434 | |
| 12435 // WARNING: Do not edit - generated code. | |
| 12436 | |
| 12437 interface AudioDestinationNode extends AudioNode { | |
| 12438 | |
| 12439 final int numberOfChannels; | |
| 12440 } | |
| 12441 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12442 // for details. All rights reserved. Use of this source code is governed by a | |
| 12443 // BSD-style license that can be found in the LICENSE file. | |
| 12444 | |
| 12445 // WARNING: Do not edit - generated code. | |
| 12446 | |
| 12447 interface AudioGain extends AudioParam { | |
| 12448 } | |
| 12449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12450 // for details. All rights reserved. Use of this source code is governed by a | |
| 12451 // BSD-style license that can be found in the LICENSE file. | |
| 12452 | |
| 12453 // WARNING: Do not edit - generated code. | |
| 12454 | |
| 12455 interface AudioGainNode extends AudioNode { | |
| 12456 | |
| 12457 final AudioGain gain; | |
| 12458 } | |
| 12459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12460 // for details. All rights reserved. Use of this source code is governed by a | |
| 12461 // BSD-style license that can be found in the LICENSE file. | |
| 12462 | |
| 12463 // WARNING: Do not edit - generated code. | |
| 12464 | |
| 12465 interface AudioListener { | |
| 12466 | |
| 12467 num dopplerFactor; | |
| 12468 | |
| 12469 num speedOfSound; | |
| 12470 | |
| 12471 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp); | |
| 12472 | |
| 12473 void setPosition(num x, num y, num z); | |
| 12474 | |
| 12475 void setVelocity(num x, num y, num z); | |
| 12476 } | |
| 12477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12478 // for details. All rights reserved. Use of this source code is governed by a | |
| 12479 // BSD-style license that can be found in the LICENSE file. | |
| 12480 | |
| 12481 // WARNING: Do not edit - generated code. | |
| 12482 | |
| 12483 interface AudioNode { | |
| 12484 | |
| 12485 final AudioContext context; | |
| 12486 | |
| 12487 final int numberOfInputs; | |
| 12488 | |
| 12489 final int numberOfOutputs; | |
| 12490 | |
| 12491 void connect(destination, int output, [int input]); | |
| 12492 | |
| 12493 void disconnect(int output); | |
| 12494 } | |
| 12495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12496 // for details. All rights reserved. Use of this source code is governed by a | |
| 12497 // BSD-style license that can be found in the LICENSE file. | |
| 12498 | |
| 12499 // WARNING: Do not edit - generated code. | |
| 12500 | |
| 12501 interface AudioPannerNode extends AudioNode { | |
| 12502 | |
| 12503 static final int EQUALPOWER = 0; | |
| 12504 | |
| 12505 static final int EXPONENTIAL_DISTANCE = 2; | |
| 12506 | |
| 12507 static final int HRTF = 1; | |
| 12508 | |
| 12509 static final int INVERSE_DISTANCE = 1; | |
| 12510 | |
| 12511 static final int LINEAR_DISTANCE = 0; | |
| 12512 | |
| 12513 static final int SOUNDFIELD = 2; | |
| 12514 | |
| 12515 final AudioGain coneGain; | |
| 12516 | |
| 12517 num coneInnerAngle; | |
| 12518 | |
| 12519 num coneOuterAngle; | |
| 12520 | |
| 12521 num coneOuterGain; | |
| 12522 | |
| 12523 final AudioGain distanceGain; | |
| 12524 | |
| 12525 int distanceModel; | |
| 12526 | |
| 12527 num maxDistance; | |
| 12528 | |
| 12529 int panningModel; | |
| 12530 | |
| 12531 num refDistance; | |
| 12532 | |
| 12533 num rolloffFactor; | |
| 12534 | |
| 12535 void setOrientation(num x, num y, num z); | |
| 12536 | |
| 12537 void setPosition(num x, num y, num z); | |
| 12538 | |
| 12539 void setVelocity(num x, num y, num z); | |
| 12540 } | |
| 12541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12542 // for details. All rights reserved. Use of this source code is governed by a | |
| 12543 // BSD-style license that can be found in the LICENSE file. | |
| 12544 | |
| 12545 // WARNING: Do not edit - generated code. | |
| 12546 | |
| 12547 interface AudioParam { | |
| 12548 | |
| 12549 final num defaultValue; | |
| 12550 | |
| 12551 final num maxValue; | |
| 12552 | |
| 12553 final num minValue; | |
| 12554 | |
| 12555 final String name; | |
| 12556 | |
| 12557 final int units; | |
| 12558 | |
| 12559 num value; | |
| 12560 | |
| 12561 void cancelScheduledValues(num startTime); | |
| 12562 | |
| 12563 void exponentialRampToValueAtTime(num value, num time); | |
| 12564 | |
| 12565 void linearRampToValueAtTime(num value, num time); | |
| 12566 | |
| 12567 void setTargetValueAtTime(num targetValue, num time, num timeConstant); | |
| 12568 | |
| 12569 void setValueAtTime(num value, num time); | |
| 12570 | |
| 12571 void setValueCurveAtTime(Float32Array values, num time, num duration); | |
| 12572 } | |
| 12573 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12574 // for details. All rights reserved. Use of this source code is governed by a | |
| 12575 // BSD-style license that can be found in the LICENSE file. | |
| 12576 | |
| 12577 // WARNING: Do not edit - generated code. | |
| 12578 | |
| 12579 interface AudioProcessingEvent extends Event { | |
| 12580 | |
| 12581 final AudioBuffer inputBuffer; | |
| 12582 | |
| 12583 final AudioBuffer outputBuffer; | |
| 12584 } | |
| 12585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12586 // for details. All rights reserved. Use of this source code is governed by a | |
| 12587 // BSD-style license that can be found in the LICENSE file. | |
| 12588 | |
| 12589 // WARNING: Do not edit - generated code. | |
| 12590 | |
| 12591 interface AudioSourceNode extends AudioNode { | |
| 12592 } | |
| 12593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12594 // for details. All rights reserved. Use of this source code is governed by a | |
| 12595 // BSD-style license that can be found in the LICENSE file. | |
| 12596 | |
| 12597 // WARNING: Do not edit - generated code. | |
| 12598 | |
| 12599 interface BarProp { | |
| 12600 | |
| 12601 final bool visible; | |
| 12602 } | |
| 12603 | |
| 12604 interface BarInfo extends BarProp { | |
| 12605 } | |
| 12606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12607 // for details. All rights reserved. Use of this source code is governed by a | |
| 12608 // BSD-style license that can be found in the LICENSE file. | |
| 12609 | |
| 12610 // WARNING: Do not edit - generated code. | |
| 12611 | |
| 12612 interface BatteryManager extends EventTarget { | |
| 12613 | |
| 12614 final bool charging; | |
| 12615 | |
| 12616 final num chargingTime; | |
| 12617 | |
| 12618 final num dischargingTime; | |
| 12619 | |
| 12620 final num level; | |
| 12621 | |
| 12622 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 12623 | |
| 12624 bool dispatchEvent(Event evt); | |
| 12625 | |
| 12626 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 12627 } | |
| 12628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12629 // for details. All rights reserved. Use of this source code is governed by a | |
| 12630 // BSD-style license that can be found in the LICENSE file. | |
| 12631 | |
| 12632 // WARNING: Do not edit - generated code. | |
| 12633 | |
| 12634 interface BeforeLoadEvent extends Event { | |
| 12635 | |
| 12636 final String url; | |
| 12637 } | |
| 12638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12639 // for details. All rights reserved. Use of this source code is governed by a | |
| 12640 // BSD-style license that can be found in the LICENSE file. | |
| 12641 | |
| 12642 // WARNING: Do not edit - generated code. | |
| 12643 | |
| 12644 interface BiquadFilterNode extends AudioNode { | |
| 12645 | |
| 12646 static final int ALLPASS = 7; | |
| 12647 | |
| 12648 static final int BANDPASS = 2; | |
| 12649 | |
| 12650 static final int HIGHPASS = 1; | |
| 12651 | |
| 12652 static final int HIGHSHELF = 4; | |
| 12653 | |
| 12654 static final int LOWPASS = 0; | |
| 12655 | |
| 12656 static final int LOWSHELF = 3; | |
| 12657 | |
| 12658 static final int NOTCH = 6; | |
| 12659 | |
| 12660 static final int PEAKING = 5; | |
| 12661 | |
| 12662 final AudioParam Q; | |
| 12663 | |
| 12664 final AudioParam frequency; | |
| 12665 | |
| 12666 final AudioParam gain; | |
| 12667 | |
| 12668 int type; | |
| 12669 | |
| 12670 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse,
Float32Array phaseResponse); | |
| 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 Blob default _BlobFactoryProvider { | |
| 12679 | |
| 12680 Blob(List blobParts, [String type, String endings]); | |
| 12681 | |
| 12682 final int size; | |
| 12683 | |
| 12684 final String type; | |
| 12685 | |
| 12686 Blob slice([int start, int end, String contentType]); | |
| 12687 | |
| 12688 Blob webkitSlice([int start, int end, String contentType]); | |
| 12689 } | |
| 12690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12691 // for details. All rights reserved. Use of this source code is governed by a | |
| 12692 // BSD-style license that can be found in the LICENSE file. | |
| 12693 | |
| 12694 // WARNING: Do not edit - generated code. | |
| 12695 | |
| 12696 interface CDATASection extends Text { | |
| 12697 } | |
| 12698 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12699 // for details. All rights reserved. Use of this source code is governed by a | |
| 12700 // BSD-style license that can be found in the LICENSE file. | |
| 12701 | |
| 12702 // WARNING: Do not edit - generated code. | |
| 12703 | |
| 12704 interface CSSCharsetRule extends CSSRule { | |
| 12705 | |
| 12706 String encoding; | |
| 12707 } | |
| 12708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12709 // for details. All rights reserved. Use of this source code is governed by a | |
| 12710 // BSD-style license that can be found in the LICENSE file. | |
| 12711 | |
| 12712 // WARNING: Do not edit - generated code. | |
| 12713 | |
| 12714 interface CSSFontFaceRule extends CSSRule { | |
| 12715 | |
| 12716 final CSSStyleDeclaration style; | |
| 12717 } | |
| 12718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12719 // for details. All rights reserved. Use of this source code is governed by a | |
| 12720 // BSD-style license that can be found in the LICENSE file. | |
| 12721 | |
| 12722 // WARNING: Do not edit - generated code. | |
| 12723 | |
| 12724 interface CSSImportRule extends CSSRule { | |
| 12725 | |
| 12726 final String href; | |
| 12727 | |
| 12728 final MediaList media; | |
| 12729 | |
| 12730 final CSSStyleSheet styleSheet; | |
| 12731 } | |
| 12732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12733 // for details. All rights reserved. Use of this source code is governed by a | |
| 12734 // BSD-style license that can be found in the LICENSE file. | |
| 12735 | |
| 12736 // WARNING: Do not edit - generated code. | |
| 12737 | |
| 12738 interface CSSMediaRule extends CSSRule { | |
| 12739 | |
| 12740 final CSSRuleList cssRules; | |
| 12741 | |
| 12742 final MediaList media; | |
| 12743 | |
| 12744 void deleteRule(int index); | |
| 12745 | |
| 12746 int insertRule(String rule, int index); | |
| 12747 } | |
| 12748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12749 // for details. All rights reserved. Use of this source code is governed by a | |
| 12750 // BSD-style license that can be found in the LICENSE file. | |
| 12751 | |
| 12752 // WARNING: Do not edit - generated code. | |
| 12753 | |
| 12754 interface CSSPageRule extends CSSRule { | |
| 12755 | |
| 12756 String selectorText; | |
| 12757 | |
| 12758 final CSSStyleDeclaration style; | |
| 12759 } | |
| 12760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12761 // for details. All rights reserved. Use of this source code is governed by a | |
| 12762 // BSD-style license that can be found in the LICENSE file. | |
| 12763 | |
| 12764 // WARNING: Do not edit - generated code. | |
| 12765 | |
| 12766 interface CSSPrimitiveValue extends CSSValue { | |
| 12767 | |
| 12768 static final int CSS_ATTR = 22; | |
| 12769 | |
| 12770 static final int CSS_CM = 6; | |
| 12771 | |
| 12772 static final int CSS_COUNTER = 23; | |
| 12773 | |
| 12774 static final int CSS_DEG = 11; | |
| 12775 | |
| 12776 static final int CSS_DIMENSION = 18; | |
| 12777 | |
| 12778 static final int CSS_EMS = 3; | |
| 12779 | |
| 12780 static final int CSS_EXS = 4; | |
| 12781 | |
| 12782 static final int CSS_GRAD = 13; | |
| 12783 | |
| 12784 static final int CSS_HZ = 16; | |
| 12785 | |
| 12786 static final int CSS_IDENT = 21; | |
| 12787 | |
| 12788 static final int CSS_IN = 8; | |
| 12789 | |
| 12790 static final int CSS_KHZ = 17; | |
| 12791 | |
| 12792 static final int CSS_MM = 7; | |
| 12793 | |
| 12794 static final int CSS_MS = 14; | |
| 12795 | |
| 12796 static final int CSS_NUMBER = 1; | |
| 12797 | |
| 12798 static final int CSS_PC = 10; | |
| 12799 | |
| 12800 static final int CSS_PERCENTAGE = 2; | |
| 12801 | |
| 12802 static final int CSS_PT = 9; | |
| 12803 | |
| 12804 static final int CSS_PX = 5; | |
| 12805 | |
| 12806 static final int CSS_RAD = 12; | |
| 12807 | |
| 12808 static final int CSS_RECT = 24; | |
| 12809 | |
| 12810 static final int CSS_RGBCOLOR = 25; | |
| 12811 | |
| 12812 static final int CSS_S = 15; | |
| 12813 | |
| 12814 static final int CSS_STRING = 19; | |
| 12815 | |
| 12816 static final int CSS_UNKNOWN = 0; | |
| 12817 | |
| 12818 static final int CSS_URI = 20; | |
| 12819 | |
| 12820 static final int CSS_VH = 27; | |
| 12821 | |
| 12822 static final int CSS_VMIN = 28; | |
| 12823 | |
| 12824 static final int CSS_VW = 26; | |
| 12825 | |
| 12826 final int primitiveType; | |
| 12827 | |
| 12828 Counter getCounterValue(); | |
| 12829 | |
| 12830 num getFloatValue(int unitType); | |
| 12831 | |
| 12832 RGBColor getRGBColorValue(); | |
| 12833 | |
| 12834 Rect getRectValue(); | |
| 12835 | |
| 12836 String getStringValue(); | |
| 12837 | |
| 12838 void setFloatValue(int unitType, num floatValue); | |
| 12839 | |
| 12840 void setStringValue(int stringType, String stringValue); | |
| 12841 } | |
| 12842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12843 // for details. All rights reserved. Use of this source code is governed by a | |
| 12844 // BSD-style license that can be found in the LICENSE file. | |
| 12845 | |
| 12846 // WARNING: Do not edit - generated code. | |
| 12847 | |
| 12848 interface CSSRule { | |
| 12849 | |
| 12850 static final int CHARSET_RULE = 2; | |
| 12851 | |
| 12852 static final int FONT_FACE_RULE = 5; | |
| 12853 | |
| 12854 static final int IMPORT_RULE = 3; | |
| 12855 | |
| 12856 static final int MEDIA_RULE = 4; | |
| 12857 | |
| 12858 static final int PAGE_RULE = 6; | |
| 12859 | |
| 12860 static final int STYLE_RULE = 1; | |
| 12861 | |
| 12862 static final int UNKNOWN_RULE = 0; | |
| 12863 | |
| 12864 static final int WEBKIT_KEYFRAMES_RULE = 7; | |
| 12865 | |
| 12866 static final int WEBKIT_KEYFRAME_RULE = 8; | |
| 12867 | |
| 12868 String cssText; | |
| 12869 | |
| 12870 final CSSRule parentRule; | |
| 12871 | |
| 12872 final CSSStyleSheet parentStyleSheet; | |
| 12873 | |
| 12874 final int type; | |
| 12875 } | |
| 12876 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12877 // for details. All rights reserved. Use of this source code is governed by a | |
| 12878 // BSD-style license that can be found in the LICENSE file. | |
| 12879 | |
| 12880 // WARNING: Do not edit - generated code. | |
| 12881 | |
| 12882 interface CSSRuleList { | |
| 12883 | |
| 12884 final int length; | |
| 12885 | |
| 12886 CSSRule item(int index); | |
| 12887 } | |
| 12888 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12889 // for details. All rights reserved. Use of this source code is governed by a | |
| 12890 // BSD-style license that can be found in the LICENSE file. | |
| 12891 | |
| 12892 // WARNING: Do not edit - generated code. | |
| 12893 | |
| 12894 interface CSSStyleDeclaration { | |
| 12895 | |
| 12896 String cssText; | |
| 12897 | |
| 12898 final int length; | |
| 12899 | |
| 12900 final CSSRule parentRule; | |
| 12901 | |
| 12902 CSSValue getPropertyCSSValue(String propertyName); | |
| 12903 | |
| 12904 String getPropertyPriority(String propertyName); | |
| 12905 | |
| 12906 String getPropertyShorthand(String propertyName); | |
| 12907 | |
| 12908 String getPropertyValue(String propertyName); | |
| 12909 | |
| 12910 bool isPropertyImplicit(String propertyName); | |
| 12911 | |
| 12912 String item(int index); | |
| 12913 | |
| 12914 String removeProperty(String propertyName); | |
| 12915 | |
| 12916 void setProperty(String propertyName, String value, [String priority]); | |
| 12917 } | |
| 12918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12919 // for details. All rights reserved. Use of this source code is governed by a | |
| 12920 // BSD-style license that can be found in the LICENSE file. | |
| 12921 | |
| 12922 // WARNING: Do not edit - generated code. | |
| 12923 | |
| 12924 interface CSSStyleRule extends CSSRule { | |
| 12925 | |
| 12926 String selectorText; | |
| 12927 | |
| 12928 final CSSStyleDeclaration style; | |
| 12929 } | |
| 12930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12931 // for details. All rights reserved. Use of this source code is governed by a | |
| 12932 // BSD-style license that can be found in the LICENSE file. | |
| 12933 | |
| 12934 // WARNING: Do not edit - generated code. | |
| 12935 | |
| 12936 interface CSSStyleSheet extends StyleSheet { | |
| 12937 | |
| 12938 final CSSRuleList cssRules; | |
| 12939 | |
| 12940 final CSSRule ownerRule; | |
| 12941 | |
| 12942 final CSSRuleList rules; | |
| 12943 | |
| 12944 int addRule(String selector, String style, [int index]); | |
| 12945 | |
| 12946 void deleteRule(int index); | |
| 12947 | |
| 12948 int insertRule(String rule, int index); | |
| 12949 | |
| 12950 void removeRule(int index); | |
| 12951 } | |
| 12952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12953 // for details. All rights reserved. Use of this source code is governed by a | |
| 12954 // BSD-style license that can be found in the LICENSE file. | |
| 12955 | |
| 12956 // WARNING: Do not edit - generated code. | |
| 12957 | |
| 12958 interface CSSUnknownRule extends CSSRule { | |
| 12959 } | |
| 12960 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12961 // for details. All rights reserved. Use of this source code is governed by a | |
| 12962 // BSD-style license that can be found in the LICENSE file. | |
| 12963 | |
| 12964 // WARNING: Do not edit - generated code. | |
| 12965 | |
| 12966 interface CSSValue { | |
| 12967 | |
| 12968 static final int CSS_CUSTOM = 3; | |
| 12969 | |
| 12970 static final int CSS_INHERIT = 0; | |
| 12971 | |
| 12972 static final int CSS_PRIMITIVE_VALUE = 1; | |
| 12973 | |
| 12974 static final int CSS_VALUE_LIST = 2; | |
| 12975 | |
| 12976 String cssText; | |
| 12977 | |
| 12978 final int cssValueType; | |
| 12979 } | |
| 12980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12981 // for details. All rights reserved. Use of this source code is governed by a | |
| 12982 // BSD-style license that can be found in the LICENSE file. | |
| 12983 | |
| 12984 // WARNING: Do not edit - generated code. | |
| 12985 | |
| 12986 interface CSSValueList extends CSSValue { | |
| 12987 | |
| 12988 final int length; | |
| 12989 | |
| 12990 CSSValue item(int index); | |
| 12991 } | |
| 12992 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12993 // for details. All rights reserved. Use of this source code is governed by a | |
| 12994 // BSD-style license that can be found in the LICENSE file. | |
| 12995 | |
| 12996 // WARNING: Do not edit - generated code. | |
| 12997 | |
| 12998 interface CanvasGradient { | |
| 12999 | |
| 13000 void addColorStop(num offset, String color); | |
| 13001 } | |
| 13002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13003 // for details. All rights reserved. Use of this source code is governed by a | |
| 13004 // BSD-style license that can be found in the LICENSE file. | |
| 13005 | |
| 13006 // WARNING: Do not edit - generated code. | |
| 13007 | |
| 13008 interface CanvasPattern { | |
| 13009 } | |
| 13010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13011 // for details. All rights reserved. Use of this source code is governed by a | |
| 13012 // BSD-style license that can be found in the LICENSE file. | |
| 13013 | |
| 13014 // WARNING: Do not edit - generated code. | |
| 13015 | |
| 13016 interface CanvasRenderingContext { | |
| 13017 | |
| 13018 final HTMLCanvasElement canvas; | |
| 13019 } | |
| 13020 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13021 // for details. All rights reserved. Use of this source code is governed by a | |
| 13022 // BSD-style license that can be found in the LICENSE file. | |
| 13023 | |
| 13024 // WARNING: Do not edit - generated code. | |
| 13025 | |
| 13026 interface CanvasRenderingContext2D extends CanvasRenderingContext { | |
| 13027 | |
| 13028 var /*custom*/ fillStyle; | |
| 13029 | |
| 13030 String font; | |
| 13031 | |
| 13032 num globalAlpha; | |
| 13033 | |
| 13034 String globalCompositeOperation; | |
| 13035 | |
| 13036 String lineCap; | |
| 13037 | |
| 13038 String lineJoin; | |
| 13039 | |
| 13040 num lineWidth; | |
| 13041 | |
| 13042 num miterLimit; | |
| 13043 | |
| 13044 num shadowBlur; | |
| 13045 | |
| 13046 String shadowColor; | |
| 13047 | |
| 13048 num shadowOffsetX; | |
| 13049 | |
| 13050 num shadowOffsetY; | |
| 13051 | |
| 13052 var /*custom*/ strokeStyle; | |
| 13053 | |
| 13054 String textAlign; | |
| 13055 | |
| 13056 String textBaseline; | |
| 13057 | |
| 13058 final num webkitBackingStorePixelRatio; | |
| 13059 | |
| 13060 bool webkitImageSmoothingEnabled; | |
| 13061 | |
| 13062 List webkitLineDash; | |
| 13063 | |
| 13064 num webkitLineDashOffset; | |
| 13065 | |
| 13066 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise); | |
| 13067 | |
| 13068 void arcTo(num x1, num y1, num x2, num y2, num radius); | |
| 13069 | |
| 13070 void beginPath(); | |
| 13071 | |
| 13072 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y); | |
| 13073 | |
| 13074 void clearRect(num x, num y, num width, num height); | |
| 13075 | |
| 13076 void clearShadow(); | |
| 13077 | |
| 13078 void clip(); | |
| 13079 | |
| 13080 void closePath(); | |
| 13081 | |
| 13082 ImageData createImageData(imagedata_OR_sw, [num sh]); | |
| 13083 | |
| 13084 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1); | |
| 13085 | |
| 13086 CanvasPattern createPattern(canvas_OR_image, String repetitionType); | |
| 13087 | |
| 13088 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1); | |
| 13089 | |
| 13090 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]); | |
| 13091 | |
| 13092 void drawImageFromRect(HTMLImageElement image, [num sx, num sy, num sw, num sh
, num dx, num dy, num dw, num dh, String compositeOperation]); | |
| 13093 | |
| 13094 void fill(); | |
| 13095 | |
| 13096 void fillRect(num x, num y, num width, num height); | |
| 13097 | |
| 13098 void fillText(String text, num x, num y, [num maxWidth]); | |
| 13099 | |
| 13100 ImageData getImageData(num sx, num sy, num sw, num sh); | |
| 13101 | |
| 13102 bool isPointInPath(num x, num y); | |
| 13103 | |
| 13104 void lineTo(num x, num y); | |
| 13105 | |
| 13106 TextMetrics measureText(String text); | |
| 13107 | |
| 13108 void moveTo(num x, num y); | |
| 13109 | |
| 13110 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]); | |
| 13111 | |
| 13112 void quadraticCurveTo(num cpx, num cpy, num x, num y); | |
| 13113 | |
| 13114 void rect(num x, num y, num width, num height); | |
| 13115 | |
| 13116 void restore(); | |
| 13117 | |
| 13118 void rotate(num angle); | |
| 13119 | |
| 13120 void save(); | |
| 13121 | |
| 13122 void scale(num sx, num sy); | |
| 13123 | |
| 13124 void setAlpha(num alpha); | |
| 13125 | |
| 13126 void setCompositeOperation(String compositeOperation); | |
| 13127 | |
| 13128 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]); | |
| 13129 | |
| 13130 void setLineCap(String cap); | |
| 13131 | |
| 13132 void setLineJoin(String join); | |
| 13133 | |
| 13134 void setLineWidth(num width); | |
| 13135 | |
| 13136 void setMiterLimit(num limit); | |
| 13137 | |
| 13138 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]); | |
| 13139 | |
| 13140 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]); | |
| 13141 | |
| 13142 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy); | |
| 13143 | |
| 13144 void stroke(); | |
| 13145 | |
| 13146 void strokeRect(num x, num y, num width, num height, [num lineWidth]); | |
| 13147 | |
| 13148 void strokeText(String text, num x, num y, [num maxWidth]); | |
| 13149 | |
| 13150 void transform(num m11, num m12, num m21, num m22, num dx, num dy); | |
| 13151 | |
| 13152 void translate(num tx, num ty); | |
| 13153 | |
| 13154 ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh); | |
| 13155 | |
| 13156 void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, nu
m dirtyY, num dirtyWidth, num dirtyHeight]); | |
| 13157 } | |
| 13158 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13159 // for details. All rights reserved. Use of this source code is governed by a | |
| 13160 // BSD-style license that can be found in the LICENSE file. | |
| 13161 | |
| 13162 // WARNING: Do not edit - generated code. | |
| 13163 | |
| 13164 interface CharacterData extends Node { | |
| 13165 | |
| 13166 String data; | |
| 13167 | |
| 13168 final int length; | |
| 13169 | |
| 13170 void appendData(String data); | |
| 13171 | |
| 13172 void deleteData(int offset, int length); | |
| 13173 | |
| 13174 void insertData(int offset, String data); | |
| 13175 | |
| 13176 void replaceData(int offset, int length, String data); | |
| 13177 | |
| 13178 String substringData(int offset, int length); | |
| 13179 } | |
| 13180 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13181 // for details. All rights reserved. Use of this source code is governed by a | |
| 13182 // BSD-style license that can be found in the LICENSE file. | |
| 13183 | |
| 13184 // WARNING: Do not edit - generated code. | |
| 13185 | |
| 13186 interface ClientRect { | |
| 13187 | |
| 13188 final num bottom; | |
| 13189 | |
| 13190 final num height; | |
| 13191 | |
| 13192 final num left; | |
| 13193 | |
| 13194 final num right; | |
| 13195 | |
| 13196 final num top; | |
| 13197 | |
| 13198 final num width; | |
| 13199 } | |
| 13200 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13201 // for details. All rights reserved. Use of this source code is governed by a | |
| 13202 // BSD-style license that can be found in the LICENSE file. | |
| 13203 | |
| 13204 // WARNING: Do not edit - generated code. | |
| 13205 | |
| 13206 interface ClientRectList { | |
| 13207 | |
| 13208 final int length; | |
| 13209 | |
| 13210 ClientRect item(int index); | |
| 13211 } | |
| 13212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13213 // for details. All rights reserved. Use of this source code is governed by a | |
| 13214 // BSD-style license that can be found in the LICENSE file. | |
| 13215 | |
| 13216 // WARNING: Do not edit - generated code. | |
| 13217 | |
| 13218 interface Clipboard { | |
| 13219 | |
| 13220 String dropEffect; | |
| 13221 | |
| 13222 String effectAllowed; | |
| 13223 | |
| 13224 final FileList files; | |
| 13225 | |
| 13226 final DataTransferItemList items; | |
| 13227 | |
| 13228 final List types; | |
| 13229 | |
| 13230 void clearData([String type]); | |
| 13231 | |
| 13232 String getData(String type); | |
| 13233 | |
| 13234 bool setData(String type, String data); | |
| 13235 | |
| 13236 void setDragImage(HTMLImageElement image, int x, int y); | |
| 13237 } | |
| 13238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13239 // for details. All rights reserved. Use of this source code is governed by a | |
| 13240 // BSD-style license that can be found in the LICENSE file. | |
| 13241 | |
| 13242 // WARNING: Do not edit - generated code. | |
| 13243 | |
| 13244 interface CloseEvent extends Event { | |
| 13245 | |
| 13246 final int code; | |
| 13247 | |
| 13248 final String reason; | |
| 13249 | |
| 13250 final bool wasClean; | |
| 13251 } | |
| 13252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13253 // for details. All rights reserved. Use of this source code is governed by a | |
| 13254 // BSD-style license that can be found in the LICENSE file. | |
| 13255 | |
| 13256 // WARNING: Do not edit - generated code. | |
| 13257 | |
| 13258 interface Comment extends CharacterData { | |
| 13259 } | |
| 13260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13261 // for details. All rights reserved. Use of this source code is governed by a | |
| 13262 // BSD-style license that can be found in the LICENSE file. | |
| 13263 | |
| 13264 // WARNING: Do not edit - generated code. | |
| 13265 | |
| 13266 interface CompositionEvent extends UIEvent { | |
| 13267 | |
| 13268 final String data; | |
| 13269 | |
| 13270 void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, DOMWindow viewArg, String dataArg); | |
| 13271 } | |
| 13272 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13273 // for details. All rights reserved. Use of this source code is governed by a | |
| 13274 // BSD-style license that can be found in the LICENSE file. | |
| 13275 | |
| 13276 // WARNING: Do not edit - generated code. | |
| 13277 | |
| 13278 interface Console { | |
| 13279 | |
| 13280 final MemoryInfo memory; | |
| 13281 | |
| 13282 final List<ScriptProfile> profiles; | |
| 13283 | |
| 13284 void assertCondition(bool condition, Object arg); | |
| 13285 | |
| 13286 void count(); | |
| 13287 | |
| 13288 void debug(Object arg); | |
| 13289 | |
| 13290 void dir(); | |
| 13291 | |
| 13292 void dirxml(); | |
| 13293 | |
| 13294 void error(Object arg); | |
| 13295 | |
| 13296 void group(Object arg); | |
| 13297 | |
| 13298 void groupCollapsed(Object arg); | |
| 13299 | |
| 13300 void groupEnd(); | |
| 13301 | |
| 13302 void info(Object arg); | |
| 13303 | |
| 13304 void log(Object arg); | |
| 13305 | |
| 13306 void markTimeline(); | |
| 13307 | |
| 13308 void profile(String title); | |
| 13309 | |
| 13310 void profileEnd(String title); | |
| 13311 | |
| 13312 void time(String title); | |
| 13313 | |
| 13314 void timeEnd(String title, Object arg); | |
| 13315 | |
| 13316 void timeStamp(Object arg); | |
| 13317 | |
| 13318 void trace(Object arg); | |
| 13319 | |
| 13320 void warn(Object arg); | |
| 13321 } | |
| 13322 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13323 // for details. All rights reserved. Use of this source code is governed by a | |
| 13324 // BSD-style license that can be found in the LICENSE file. | |
| 13325 | |
| 13326 // WARNING: Do not edit - generated code. | |
| 13327 | |
| 13328 interface ConvolverNode extends AudioNode { | |
| 13329 | |
| 13330 AudioBuffer buffer; | |
| 13331 | |
| 13332 bool normalize; | |
| 13333 } | |
| 13334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13335 // for details. All rights reserved. Use of this source code is governed by a | |
| 13336 // BSD-style license that can be found in the LICENSE file. | |
| 13337 | |
| 13338 // WARNING: Do not edit - generated code. | |
| 13339 | |
| 13340 interface Coordinates { | |
| 13341 | |
| 13342 final num accuracy; | |
| 13343 | |
| 13344 final num altitude; | |
| 13345 | |
| 13346 final num altitudeAccuracy; | |
| 13347 | |
| 13348 final num heading; | |
| 13349 | |
| 13350 final num latitude; | |
| 13351 | |
| 13352 final num longitude; | |
| 13353 | |
| 13354 final num speed; | |
| 13355 } | |
| 13356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13357 // for details. All rights reserved. Use of this source code is governed by a | |
| 13358 // BSD-style license that can be found in the LICENSE file. | |
| 13359 | |
| 13360 // WARNING: Do not edit - generated code. | |
| 13361 | |
| 13362 interface Counter { | |
| 13363 | |
| 13364 final String identifier; | |
| 13365 | |
| 13366 final String listStyle; | |
| 13367 | |
| 13368 final String separator; | |
| 13369 } | |
| 13370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13371 // for details. All rights reserved. Use of this source code is governed by a | |
| 13372 // BSD-style license that can be found in the LICENSE file. | |
| 13373 | |
| 13374 // WARNING: Do not edit - generated code. | |
| 13375 | |
| 13376 interface Crypto { | |
| 13377 | |
| 13378 void getRandomValues(ArrayBufferView array); | |
| 13379 } | |
| 13380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13381 // for details. All rights reserved. Use of this source code is governed by a | |
| 13382 // BSD-style license that can be found in the LICENSE file. | |
| 13383 | |
| 13384 // WARNING: Do not edit - generated code. | |
| 13385 | |
| 13386 interface CustomEvent extends Event { | |
| 13387 | |
| 13388 final Object detail; | |
| 13389 | |
| 13390 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob
ject detailArg); | |
| 13391 } | |
| 13392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13393 // for details. All rights reserved. Use of this source code is governed by a | |
| 13394 // BSD-style license that can be found in the LICENSE file. | |
| 13395 | |
| 13396 // WARNING: Do not edit - generated code. | |
| 13397 | |
| 13398 interface ApplicationCache extends EventTarget { | |
| 13399 | |
| 13400 final int status; | |
| 13401 | |
| 13402 void abort(); | |
| 13403 | |
| 13404 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 13405 | |
| 13406 bool dispatchEvent(Event evt); | |
| 13407 | |
| 13408 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 13409 | |
| 13410 void swapCache(); | |
| 13411 | |
| 13412 void update(); | |
| 13413 } | |
| 13414 | |
| 13415 interface DOMApplicationCache extends ApplicationCache { | |
| 13416 | |
| 13417 static final int CHECKING = 2; | |
| 13418 | |
| 13419 static final int DOWNLOADING = 3; | |
| 13420 | |
| 13421 static final int IDLE = 1; | |
| 13422 | |
| 13423 static final int OBSOLETE = 5; | |
| 13424 | |
| 13425 static final int UNCACHED = 0; | |
| 13426 | |
| 13427 static final int UPDATEREADY = 4; | |
| 13428 } | |
| 13429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13430 // for details. All rights reserved. Use of this source code is governed by a | |
| 13431 // BSD-style license that can be found in the LICENSE file. | |
| 13432 | |
| 13433 // WARNING: Do not edit - generated code. | |
| 13434 | |
| 13435 interface DOMError { | |
| 13436 | |
| 13437 final String name; | |
| 13438 } | |
| 13439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13440 // for details. All rights reserved. Use of this source code is governed by a | |
| 13441 // BSD-style license that can be found in the LICENSE file. | |
| 13442 | |
| 13443 // WARNING: Do not edit - generated code. | |
| 13444 | |
| 13445 interface DOMException { | |
| 13446 | |
| 13447 static final int ABORT_ERR = 20; | |
| 13448 | |
| 13449 static final int DATA_CLONE_ERR = 25; | |
| 13450 | |
| 13451 static final int DOMSTRING_SIZE_ERR = 2; | |
| 13452 | |
| 13453 static final int HIERARCHY_REQUEST_ERR = 3; | |
| 13454 | |
| 13455 static final int INDEX_SIZE_ERR = 1; | |
| 13456 | |
| 13457 static final int INUSE_ATTRIBUTE_ERR = 10; | |
| 13458 | |
| 13459 static final int INVALID_ACCESS_ERR = 15; | |
| 13460 | |
| 13461 static final int INVALID_CHARACTER_ERR = 5; | |
| 13462 | |
| 13463 static final int INVALID_MODIFICATION_ERR = 13; | |
| 13464 | |
| 13465 static final int INVALID_NODE_TYPE_ERR = 24; | |
| 13466 | |
| 13467 static final int INVALID_STATE_ERR = 11; | |
| 13468 | |
| 13469 static final int NAMESPACE_ERR = 14; | |
| 13470 | |
| 13471 static final int NETWORK_ERR = 19; | |
| 13472 | |
| 13473 static final int NOT_FOUND_ERR = 8; | |
| 13474 | |
| 13475 static final int NOT_SUPPORTED_ERR = 9; | |
| 13476 | |
| 13477 static final int NO_DATA_ALLOWED_ERR = 6; | |
| 13478 | |
| 13479 static final int NO_MODIFICATION_ALLOWED_ERR = 7; | |
| 13480 | |
| 13481 static final int QUOTA_EXCEEDED_ERR = 22; | |
| 13482 | |
| 13483 static final int SECURITY_ERR = 18; | |
| 13484 | |
| 13485 static final int SYNTAX_ERR = 12; | |
| 13486 | |
| 13487 static final int TIMEOUT_ERR = 23; | |
| 13488 | |
| 13489 static final int TYPE_MISMATCH_ERR = 17; | |
| 13490 | |
| 13491 static final int URL_MISMATCH_ERR = 21; | |
| 13492 | |
| 13493 static final int VALIDATION_ERR = 16; | |
| 13494 | |
| 13495 static final int WRONG_DOCUMENT_ERR = 4; | |
| 13496 | |
| 13497 final int code; | |
| 13498 | |
| 13499 final String message; | |
| 13500 | |
| 13501 final String name; | |
| 13502 | |
| 13503 String toString(); | |
| 13504 } | |
| 13505 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13506 // for details. All rights reserved. Use of this source code is governed by a | |
| 13507 // BSD-style license that can be found in the LICENSE file. | |
| 13508 | |
| 13509 // WARNING: Do not edit - generated code. | |
| 13510 | |
| 13511 interface DOMFileSystem { | |
| 13512 | |
| 13513 final String name; | |
| 13514 | |
| 13515 final DirectoryEntry root; | |
| 13516 } | |
| 13517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13518 // for details. All rights reserved. Use of this source code is governed by a | |
| 13519 // BSD-style license that can be found in the LICENSE file. | |
| 13520 | |
| 13521 // WARNING: Do not edit - generated code. | |
| 13522 | |
| 13523 interface DOMFileSystemSync { | |
| 13524 | |
| 13525 final String name; | |
| 13526 | |
| 13527 final DirectoryEntrySync root; | |
| 13528 } | |
| 13529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13530 // for details. All rights reserved. Use of this source code is governed by a | |
| 13531 // BSD-style license that can be found in the LICENSE file. | |
| 13532 | |
| 13533 // WARNING: Do not edit - generated code. | |
| 13534 | |
| 13535 interface FormData { | |
| 13536 | |
| 13537 void append(String name, String value, String filename); | |
| 13538 } | |
| 13539 | |
| 13540 interface DOMFormData extends FormData { | |
| 13541 } | |
| 13542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13543 // for details. All rights reserved. Use of this source code is governed by a | |
| 13544 // BSD-style license that can be found in the LICENSE file. | |
| 13545 | |
| 13546 // WARNING: Do not edit - generated code. | |
| 13547 | |
| 13548 interface DOMImplementation { | |
| 13549 | |
| 13550 CSSStyleSheet createCSSStyleSheet(String title, String media); | |
| 13551 | |
| 13552 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype); | |
| 13553 | |
| 13554 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId); | |
| 13555 | |
| 13556 HTMLDocument createHTMLDocument(String title); | |
| 13557 | |
| 13558 bool hasFeature(String feature, String version); | |
| 13559 } | |
| 13560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13561 // for details. All rights reserved. Use of this source code is governed by a | |
| 13562 // BSD-style license that can be found in the LICENSE file. | |
| 13563 | |
| 13564 // WARNING: Do not edit - generated code. | |
| 13565 | |
| 13566 interface DOMMimeType { | |
| 13567 | |
| 13568 final String description; | |
| 13569 | |
| 13570 final DOMPlugin enabledPlugin; | |
| 13571 | |
| 13572 final String suffixes; | |
| 13573 | |
| 13574 final String type; | |
| 13575 } | |
| 13576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13577 // for details. All rights reserved. Use of this source code is governed by a | |
| 13578 // BSD-style license that can be found in the LICENSE file. | |
| 13579 | |
| 13580 // WARNING: Do not edit - generated code. | |
| 13581 | |
| 13582 interface DOMMimeTypeArray { | |
| 13583 | |
| 13584 final int length; | |
| 13585 | |
| 13586 DOMMimeType item(int index); | |
| 13587 | |
| 13588 DOMMimeType namedItem(String name); | |
| 13589 } | |
| 13590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13591 // for details. All rights reserved. Use of this source code is governed by a | |
| 13592 // BSD-style license that can be found in the LICENSE file. | |
| 13593 | |
| 13594 // WARNING: Do not edit - generated code. | |
| 13595 | |
| 13596 interface DOMParser default _DOMParserFactoryProvider { | |
| 13597 | |
| 13598 DOMParser(); | |
| 13599 | |
| 13600 Document parseFromString(String str, String contentType); | |
| 13601 } | |
| 13602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13603 // for details. All rights reserved. Use of this source code is governed by a | |
| 13604 // BSD-style license that can be found in the LICENSE file. | |
| 13605 | |
| 13606 // WARNING: Do not edit - generated code. | |
| 13607 | |
| 13608 interface DOMPlugin { | |
| 13609 | |
| 13610 final String description; | |
| 13611 | |
| 13612 final String filename; | |
| 13613 | |
| 13614 final int length; | |
| 13615 | |
| 13616 final String name; | |
| 13617 | |
| 13618 DOMMimeType item(int index); | |
| 13619 | |
| 13620 DOMMimeType namedItem(String name); | |
| 13621 } | |
| 13622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13623 // for details. All rights reserved. Use of this source code is governed by a | |
| 13624 // BSD-style license that can be found in the LICENSE file. | |
| 13625 | |
| 13626 // WARNING: Do not edit - generated code. | |
| 13627 | |
| 13628 interface DOMPluginArray { | |
| 13629 | |
| 13630 final int length; | |
| 13631 | |
| 13632 DOMPlugin item(int index); | |
| 13633 | |
| 13634 DOMPlugin namedItem(String name); | |
| 13635 | |
| 13636 void refresh(bool reload); | |
| 13637 } | |
| 13638 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13639 // for details. All rights reserved. Use of this source code is governed by a | |
| 13640 // BSD-style license that can be found in the LICENSE file. | |
| 13641 | |
| 13642 // WARNING: Do not edit - generated code. | |
| 13643 | |
| 13644 interface Selection { | |
| 13645 | |
| 13646 final Node anchorNode; | |
| 13647 | |
| 13648 final int anchorOffset; | |
| 13649 | |
| 13650 final Node baseNode; | |
| 13651 | |
| 13652 final int baseOffset; | |
| 13653 | |
| 13654 final Node extentNode; | |
| 13655 | |
| 13656 final int extentOffset; | |
| 13657 | |
| 13658 final Node focusNode; | |
| 13659 | |
| 13660 final int focusOffset; | |
| 13661 | |
| 13662 final bool isCollapsed; | |
| 13663 | |
| 13664 final int rangeCount; | |
| 13665 | |
| 13666 final String type; | |
| 13667 | |
| 13668 void addRange(Range range); | |
| 13669 | |
| 13670 void collapse(Node node, int index); | |
| 13671 | |
| 13672 void collapseToEnd(); | |
| 13673 | |
| 13674 void collapseToStart(); | |
| 13675 | |
| 13676 bool containsNode(Node node, bool allowPartial); | |
| 13677 | |
| 13678 void deleteFromDocument(); | |
| 13679 | |
| 13680 void empty(); | |
| 13681 | |
| 13682 void extend(Node node, int offset); | |
| 13683 | |
| 13684 Range getRangeAt(int index); | |
| 13685 | |
| 13686 void modify(String alter, String direction, String granularity); | |
| 13687 | |
| 13688 void removeAllRanges(); | |
| 13689 | |
| 13690 void selectAllChildren(Node node); | |
| 13691 | |
| 13692 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset); | |
| 13693 | |
| 13694 void setPosition(Node node, int offset); | |
| 13695 | |
| 13696 String toString(); | |
| 13697 } | |
| 13698 | |
| 13699 interface DOMSelection extends Selection { | |
| 13700 } | |
| 13701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13702 // for details. All rights reserved. Use of this source code is governed by a | |
| 13703 // BSD-style license that can be found in the LICENSE file. | |
| 13704 | |
| 13705 // WARNING: Do not edit - generated code. | |
| 13706 | |
| 13707 interface DOMSettableTokenList extends DOMTokenList { | |
| 13708 | |
| 13709 String value; | |
| 13710 } | |
| 13711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13712 // for details. All rights reserved. Use of this source code is governed by a | |
| 13713 // BSD-style license that can be found in the LICENSE file. | |
| 13714 | |
| 13715 // WARNING: Do not edit - generated code. | |
| 13716 | |
| 13717 interface DOMStringList extends List<String> { | |
| 13718 | |
| 13719 final int length; | |
| 13720 | |
| 13721 bool contains(String string); | |
| 13722 | |
| 13723 String item(int index); | |
| 13724 } | |
| 13725 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13726 // for details. All rights reserved. Use of this source code is governed by a | |
| 13727 // BSD-style license that can be found in the LICENSE file. | |
| 13728 | |
| 13729 // WARNING: Do not edit - generated code. | |
| 13730 | |
| 13731 interface DOMStringMap { | |
| 13732 } | |
| 13733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13734 // for details. All rights reserved. Use of this source code is governed by a | |
| 13735 // BSD-style license that can be found in the LICENSE file. | |
| 13736 | |
| 13737 // WARNING: Do not edit - generated code. | |
| 13738 | |
| 13739 interface DOMTokenList { | |
| 13740 | |
| 13741 final int length; | |
| 13742 | |
| 13743 void add(String token); | |
| 13744 | |
| 13745 bool contains(String token); | |
| 13746 | |
| 13747 String item(int index); | |
| 13748 | |
| 13749 void remove(String token); | |
| 13750 | |
| 13751 String toString(); | |
| 13752 | |
| 13753 bool toggle(String token); | |
| 13754 } | |
| 13755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13756 // for details. All rights reserved. Use of this source code is governed by a | |
| 13757 // BSD-style license that can be found in the LICENSE file. | |
| 13758 | |
| 13759 // WARNING: Do not edit - generated code. | |
| 13760 | |
| 13761 interface DOMURL default _DOMURLFactoryProvider { | |
| 13762 | |
| 13763 DOMURL(); | |
| 13764 } | |
| 13765 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13766 // for details. All rights reserved. Use of this source code is governed by a | |
| 13767 // BSD-style license that can be found in the LICENSE file. | |
| 13768 | |
| 13769 // WARNING: Do not edit - generated code. | |
| 13770 | |
| 13771 interface Window extends EventTarget { | |
| 13772 | |
| 13773 final DOMApplicationCache applicationCache; | |
| 13774 | |
| 13775 final Navigator clientInformation; | |
| 13776 | |
| 13777 final bool closed; | |
| 13778 | |
| 13779 final Console console; | |
| 13780 | |
| 13781 final Crypto crypto; | |
| 13782 | |
| 13783 String defaultStatus; | |
| 13784 | |
| 13785 String defaultstatus; | |
| 13786 | |
| 13787 final num devicePixelRatio; | |
| 13788 | |
| 13789 final Document document; | |
| 13790 | |
| 13791 final Event event; | |
| 13792 | |
| 13793 final Element frameElement; | |
| 13794 | |
| 13795 final DOMWindow frames; | |
| 13796 | |
| 13797 final History history; | |
| 13798 | |
| 13799 final int innerHeight; | |
| 13800 | |
| 13801 final int innerWidth; | |
| 13802 | |
| 13803 final int length; | |
| 13804 | |
| 13805 final Storage localStorage; | |
| 13806 | |
| 13807 Location location; | |
| 13808 | |
| 13809 final BarInfo locationbar; | |
| 13810 | |
| 13811 final BarInfo menubar; | |
| 13812 | |
| 13813 String name; | |
| 13814 | |
| 13815 final Navigator navigator; | |
| 13816 | |
| 13817 final bool offscreenBuffering; | |
| 13818 | |
| 13819 final DOMWindow opener; | |
| 13820 | |
| 13821 final int outerHeight; | |
| 13822 | |
| 13823 final int outerWidth; | |
| 13824 | |
| 13825 final PagePopupController pagePopupController; | |
| 13826 | |
| 13827 final int pageXOffset; | |
| 13828 | |
| 13829 final int pageYOffset; | |
| 13830 | |
| 13831 final DOMWindow parent; | |
| 13832 | |
| 13833 final Performance performance; | |
| 13834 | |
| 13835 final BarInfo personalbar; | |
| 13836 | |
| 13837 final Screen screen; | |
| 13838 | |
| 13839 final int screenLeft; | |
| 13840 | |
| 13841 final int screenTop; | |
| 13842 | |
| 13843 final int screenX; | |
| 13844 | |
| 13845 final int screenY; | |
| 13846 | |
| 13847 final int scrollX; | |
| 13848 | |
| 13849 final int scrollY; | |
| 13850 | |
| 13851 final BarInfo scrollbars; | |
| 13852 | |
| 13853 final DOMWindow self; | |
| 13854 | |
| 13855 final Storage sessionStorage; | |
| 13856 | |
| 13857 String status; | |
| 13858 | |
| 13859 final BarInfo statusbar; | |
| 13860 | |
| 13861 final StyleMedia styleMedia; | |
| 13862 | |
| 13863 final BarInfo toolbar; | |
| 13864 | |
| 13865 final DOMWindow top; | |
| 13866 | |
| 13867 final IDBFactory webkitIndexedDB; | |
| 13868 | |
| 13869 final NotificationCenter webkitNotifications; | |
| 13870 | |
| 13871 final StorageInfo webkitStorageInfo; | |
| 13872 | |
| 13873 final DOMWindow window; | |
| 13874 | |
| 13875 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 13876 | |
| 13877 void alert(String message); | |
| 13878 | |
| 13879 String atob(String string); | |
| 13880 | |
| 13881 void blur(); | |
| 13882 | |
| 13883 String btoa(String string); | |
| 13884 | |
| 13885 void captureEvents(); | |
| 13886 | |
| 13887 void clearInterval(int handle); | |
| 13888 | |
| 13889 void clearTimeout(int handle); | |
| 13890 | |
| 13891 void close(); | |
| 13892 | |
| 13893 bool confirm(String message); | |
| 13894 | |
| 13895 bool dispatchEvent(Event evt); | |
| 13896 | |
| 13897 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog); | |
| 13898 | |
| 13899 void focus(); | |
| 13900 | |
| 13901 CSSStyleDeclaration getComputedStyle(Element element, String pseudoElement); | |
| 13902 | |
| 13903 CSSRuleList getMatchedCSSRules(Element element, String pseudoElement); | |
| 13904 | |
| 13905 DOMSelection getSelection(); | |
| 13906 | |
| 13907 MediaQueryList matchMedia(String query); | |
| 13908 | |
| 13909 void moveBy(num x, num y); | |
| 13910 | |
| 13911 void moveTo(num x, num y); | |
| 13912 | |
| 13913 DOMWindow open(String url, String name, [String options]); | |
| 13914 | |
| 13915 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); | |
| 13916 | |
| 13917 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]); | |
| 13918 | |
| 13919 void print(); | |
| 13920 | |
| 13921 String prompt(String message, String defaultValue); | |
| 13922 | |
| 13923 void releaseEvents(); | |
| 13924 | |
| 13925 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 13926 | |
| 13927 void resizeBy(num x, num y); | |
| 13928 | |
| 13929 void resizeTo(num width, num height); | |
| 13930 | |
| 13931 void scroll(int x, int y); | |
| 13932 | |
| 13933 void scrollBy(int x, int y); | |
| 13934 | |
| 13935 void scrollTo(int x, int y); | |
| 13936 | |
| 13937 int setInterval(TimeoutHandler handler, int timeout); | |
| 13938 | |
| 13939 int setTimeout(TimeoutHandler handler, int timeout); | |
| 13940 | |
| 13941 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]); | |
| 13942 | |
| 13943 void stop(); | |
| 13944 | |
| 13945 void webkitCancelAnimationFrame(int id); | |
| 13946 | |
| 13947 void webkitCancelRequestAnimationFrame(int id); | |
| 13948 | |
| 13949 WebKitPoint webkitConvertPointFromNodeToPage(Node node, WebKitPoint p); | |
| 13950 | |
| 13951 WebKitPoint webkitConvertPointFromPageToNode(Node node, WebKitPoint p); | |
| 13952 | |
| 13953 void webkitPostMessage(/*SerializedScriptValue*/ message, String targetOrigin,
[List transferList]); | |
| 13954 | |
| 13955 int webkitRequestAnimationFrame(RequestAnimationFrameCallback callback); | |
| 13956 | |
| 13957 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]); | |
| 13958 | |
| 13959 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]); | |
| 13960 } | |
| 13961 | |
| 13962 interface DOMWindow extends Window { | |
| 13963 | |
| 13964 static final int PERSISTENT = 1; | |
| 13965 | |
| 13966 static final int TEMPORARY = 0; | |
| 13967 } | |
| 13968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13969 // for details. All rights reserved. Use of this source code is governed by a | |
| 13970 // BSD-style license that can be found in the LICENSE file. | |
| 13971 | |
| 13972 // WARNING: Do not edit - generated code. | |
| 13973 | |
| 13974 interface DataTransferItem { | |
| 13975 | |
| 13976 final String kind; | |
| 13977 | |
| 13978 final String type; | |
| 13979 | |
| 13980 Blob getAsFile(); | |
| 13981 | |
| 13982 void getAsString([StringCallback callback]); | |
| 13983 | |
| 13984 Entry webkitGetAsEntry(); | |
| 13985 } | |
| 13986 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13987 // for details. All rights reserved. Use of this source code is governed by a | |
| 13988 // BSD-style license that can be found in the LICENSE file. | |
| 13989 | |
| 13990 // WARNING: Do not edit - generated code. | |
| 13991 | |
| 13992 interface DataTransferItemList { | |
| 13993 | |
| 13994 final int length; | |
| 13995 | |
| 13996 void add(data_OR_file, [String type]); | |
| 13997 | |
| 13998 void clear(); | |
| 13999 | |
| 14000 DataTransferItem item(int index); | |
| 14001 } | |
| 14002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14003 // for details. All rights reserved. Use of this source code is governed by a | |
| 14004 // BSD-style license that can be found in the LICENSE file. | |
| 14005 | |
| 14006 // WARNING: Do not edit - generated code. | |
| 14007 | |
| 14008 interface DataView extends ArrayBufferView default _DataViewFactoryProvider { | |
| 14009 | |
| 14010 DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]); | |
| 14011 | |
| 14012 num getFloat32(int byteOffset, [bool littleEndian]); | |
| 14013 | |
| 14014 num getFloat64(int byteOffset, [bool littleEndian]); | |
| 14015 | |
| 14016 int getInt16(int byteOffset, [bool littleEndian]); | |
| 14017 | |
| 14018 int getInt32(int byteOffset, [bool littleEndian]); | |
| 14019 | |
| 14020 int getInt8(int byteOffset); | |
| 14021 | |
| 14022 int getUint16(int byteOffset, [bool littleEndian]); | |
| 14023 | |
| 14024 int getUint32(int byteOffset, [bool littleEndian]); | |
| 14025 | |
| 14026 int getUint8(int byteOffset); | |
| 14027 | |
| 14028 void setFloat32(int byteOffset, num value, [bool littleEndian]); | |
| 14029 | |
| 14030 void setFloat64(int byteOffset, num value, [bool littleEndian]); | |
| 14031 | |
| 14032 void setInt16(int byteOffset, int value, [bool littleEndian]); | |
| 14033 | |
| 14034 void setInt32(int byteOffset, int value, [bool littleEndian]); | |
| 14035 | |
| 14036 void setInt8(int byteOffset, int value); | |
| 14037 | |
| 14038 void setUint16(int byteOffset, int value, [bool littleEndian]); | |
| 14039 | |
| 14040 void setUint32(int byteOffset, int value, [bool littleEndian]); | |
| 14041 | |
| 14042 void setUint8(int byteOffset, int value); | |
| 14043 } | |
| 14044 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14045 // for details. All rights reserved. Use of this source code is governed by a | |
| 14046 // BSD-style license that can be found in the LICENSE file. | |
| 14047 | |
| 14048 // WARNING: Do not edit - generated code. | |
| 14049 | |
| 14050 interface Database { | |
| 14051 | |
| 14052 final String version; | |
| 14053 | |
| 14054 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCall
back]); | |
| 14055 | |
| 14056 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback, VoidCallback successCallback]); | |
| 14057 | |
| 14058 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback, VoidCallback successCallback]); | |
| 14059 } | |
| 14060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14061 // for details. All rights reserved. Use of this source code is governed by a | |
| 14062 // BSD-style license that can be found in the LICENSE file. | |
| 14063 | |
| 14064 // WARNING: Do not edit - generated code. | |
| 14065 | |
| 14066 typedef bool DatabaseCallback(database); | |
| 14067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14068 // for details. All rights reserved. Use of this source code is governed by a | |
| 14069 // BSD-style license that can be found in the LICENSE file. | |
| 14070 | |
| 14071 // WARNING: Do not edit - generated code. | |
| 14072 | |
| 14073 interface DatabaseSync { | |
| 14074 | |
| 14075 final String lastErrorMessage; | |
| 14076 | |
| 14077 final String version; | |
| 14078 | |
| 14079 void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCa
llback callback]); | |
| 14080 | |
| 14081 void readTransaction(SQLTransactionSyncCallback callback); | |
| 14082 | |
| 14083 void transaction(SQLTransactionSyncCallback callback); | |
| 14084 } | |
| 14085 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14086 // for details. All rights reserved. Use of this source code is governed by a | |
| 14087 // BSD-style license that can be found in the LICENSE file. | |
| 14088 | |
| 14089 // WARNING: Do not edit - generated code. | |
| 14090 | |
| 14091 interface DedicatedWorkerGlobalScope extends WorkerContext { | |
| 14092 | |
| 14093 void postMessage(Object message, [List messagePorts]); | |
| 14094 | |
| 14095 void webkitPostMessage(Object message, [List transferList]); | |
| 14096 } | |
| 14097 | |
| 14098 interface DedicatedWorkerContext extends DedicatedWorkerGlobalScope { | |
| 14099 } | |
| 14100 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14101 // for details. All rights reserved. Use of this source code is governed by a | |
| 14102 // BSD-style license that can be found in the LICENSE file. | |
| 14103 | |
| 14104 // WARNING: Do not edit - generated code. | |
| 14105 | |
| 14106 interface DelayNode extends AudioNode { | |
| 14107 | |
| 14108 final AudioParam delayTime; | |
| 14109 } | |
| 14110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14111 // for details. All rights reserved. Use of this source code is governed by a | |
| 14112 // BSD-style license that can be found in the LICENSE file. | |
| 14113 | |
| 14114 // WARNING: Do not edit - generated code. | |
| 14115 | |
| 14116 interface DeprecatedPeerConnection extends EventTarget default _DeprecatedPeerCo
nnectionFactoryProvider { | |
| 14117 | |
| 14118 DeprecatedPeerConnection(String serverConfiguration, SignalingCallback signali
ngCallback); | |
| 14119 | |
| 14120 static final int ACTIVE = 2; | |
| 14121 | |
| 14122 static final int CLOSED = 3; | |
| 14123 | |
| 14124 static final int NEGOTIATING = 1; | |
| 14125 | |
| 14126 static final int NEW = 0; | |
| 14127 | |
| 14128 final MediaStreamList localStreams; | |
| 14129 | |
| 14130 final int readyState; | |
| 14131 | |
| 14132 final MediaStreamList remoteStreams; | |
| 14133 | |
| 14134 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 14135 | |
| 14136 void addStream(MediaStream stream); | |
| 14137 | |
| 14138 void close(); | |
| 14139 | |
| 14140 bool dispatchEvent(Event event); | |
| 14141 | |
| 14142 void processSignalingMessage(String message); | |
| 14143 | |
| 14144 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 14145 | |
| 14146 void removeStream(MediaStream stream); | |
| 14147 | |
| 14148 void send(String text); | |
| 14149 } | |
| 14150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14151 // for details. All rights reserved. Use of this source code is governed by a | |
| 14152 // BSD-style license that can be found in the LICENSE file. | |
| 14153 | |
| 14154 // WARNING: Do not edit - generated code. | |
| 14155 | |
| 14156 interface DeviceMotionEvent extends Event { | |
| 14157 | |
| 14158 final num interval; | |
| 14159 } | |
| 14160 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14161 // for details. All rights reserved. Use of this source code is governed by a | |
| 14162 // BSD-style license that can be found in the LICENSE file. | |
| 14163 | |
| 14164 // WARNING: Do not edit - generated code. | |
| 14165 | |
| 14166 interface DeviceOrientationEvent extends Event { | |
| 14167 | |
| 14168 final bool absolute; | |
| 14169 | |
| 14170 final num alpha; | |
| 14171 | |
| 14172 final num beta; | |
| 14173 | |
| 14174 final num gamma; | |
| 14175 | |
| 14176 void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, nu
m alpha, num beta, num gamma, bool absolute); | |
| 14177 } | |
| 14178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14179 // for details. All rights reserved. Use of this source code is governed by a | |
| 14180 // BSD-style license that can be found in the LICENSE file. | |
| 14181 | |
| 14182 // WARNING: Do not edit - generated code. | |
| 14183 | |
| 14184 interface DirectoryEntry extends Entry { | |
| 14185 | |
| 14186 DirectoryReader createReader(); | |
| 14187 | |
| 14188 void getDirectory(String path, [Object flags, EntryCallback successCallback, E
rrorCallback errorCallback]); | |
| 14189 | |
| 14190 void getFile(String path, [Object flags, EntryCallback successCallback, ErrorC
allback errorCallback]); | |
| 14191 | |
| 14192 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack]); | |
| 14193 } | |
| 14194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14195 // for details. All rights reserved. Use of this source code is governed by a | |
| 14196 // BSD-style license that can be found in the LICENSE file. | |
| 14197 | |
| 14198 // WARNING: Do not edit - generated code. | |
| 14199 | |
| 14200 interface DirectoryEntrySync extends EntrySync { | |
| 14201 | |
| 14202 DirectoryReaderSync createReader(); | |
| 14203 | |
| 14204 DirectoryEntrySync getDirectory(String path, Object flags); | |
| 14205 | |
| 14206 FileEntrySync getFile(String path, Object flags); | |
| 14207 | |
| 14208 void removeRecursively(); | |
| 14209 } | |
| 14210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14211 // for details. All rights reserved. Use of this source code is governed by a | |
| 14212 // BSD-style license that can be found in the LICENSE file. | |
| 14213 | |
| 14214 // WARNING: Do not edit - generated code. | |
| 14215 | |
| 14216 interface DirectoryReader { | |
| 14217 | |
| 14218 void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback
]); | |
| 14219 } | |
| 14220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14221 // for details. All rights reserved. Use of this source code is governed by a | |
| 14222 // BSD-style license that can be found in the LICENSE file. | |
| 14223 | |
| 14224 // WARNING: Do not edit - generated code. | |
| 14225 | |
| 14226 interface DirectoryReaderSync { | |
| 14227 | |
| 14228 EntryArraySync readEntries(); | |
| 14229 } | |
| 14230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14231 // for details. All rights reserved. Use of this source code is governed by a | |
| 14232 // BSD-style license that can be found in the LICENSE file. | |
| 14233 | |
| 14234 // WARNING: Do not edit - generated code. | |
| 14235 | |
| 14236 interface Document extends Node { | |
| 14237 | |
| 14238 final String URL; | |
| 14239 | |
| 14240 final HTMLCollection anchors; | |
| 14241 | |
| 14242 final HTMLCollection applets; | |
| 14243 | |
| 14244 HTMLElement body; | |
| 14245 | |
| 14246 final String characterSet; | |
| 14247 | |
| 14248 String charset; | |
| 14249 | |
| 14250 final String compatMode; | |
| 14251 | |
| 14252 String cookie; | |
| 14253 | |
| 14254 final String defaultCharset; | |
| 14255 | |
| 14256 final DOMWindow defaultView; | |
| 14257 | |
| 14258 final DocumentType doctype; | |
| 14259 | |
| 14260 final Element documentElement; | |
| 14261 | |
| 14262 final String documentURI; | |
| 14263 | |
| 14264 String domain; | |
| 14265 | |
| 14266 final HTMLCollection forms; | |
| 14267 | |
| 14268 final HTMLHeadElement head; | |
| 14269 | |
| 14270 final HTMLCollection images; | |
| 14271 | |
| 14272 final DOMImplementation implementation; | |
| 14273 | |
| 14274 final String inputEncoding; | |
| 14275 | |
| 14276 final String lastModified; | |
| 14277 | |
| 14278 final HTMLCollection links; | |
| 14279 | |
| 14280 Location location; | |
| 14281 | |
| 14282 final String preferredStylesheetSet; | |
| 14283 | |
| 14284 final String readyState; | |
| 14285 | |
| 14286 final String referrer; | |
| 14287 | |
| 14288 String selectedStylesheetSet; | |
| 14289 | |
| 14290 final StyleSheetList styleSheets; | |
| 14291 | |
| 14292 String title; | |
| 14293 | |
| 14294 final Element webkitCurrentFullScreenElement; | |
| 14295 | |
| 14296 final bool webkitFullScreenKeyboardInputAllowed; | |
| 14297 | |
| 14298 final Element webkitFullscreenElement; | |
| 14299 | |
| 14300 final bool webkitFullscreenEnabled; | |
| 14301 | |
| 14302 final bool webkitHidden; | |
| 14303 | |
| 14304 final bool webkitIsFullScreen; | |
| 14305 | |
| 14306 final Element webkitPointerLockElement; | |
| 14307 | |
| 14308 final String webkitVisibilityState; | |
| 14309 | |
| 14310 final String xmlEncoding; | |
| 14311 | |
| 14312 bool xmlStandalone; | |
| 14313 | |
| 14314 String xmlVersion; | |
| 14315 | |
| 14316 Node adoptNode(Node source); | |
| 14317 | |
| 14318 Range caretRangeFromPoint(int x, int y); | |
| 14319 | |
| 14320 Attr createAttribute(String name); | |
| 14321 | |
| 14322 Attr createAttributeNS(String namespaceURI, String qualifiedName); | |
| 14323 | |
| 14324 CDATASection createCDATASection(String data); | |
| 14325 | |
| 14326 Comment createComment(String data); | |
| 14327 | |
| 14328 DocumentFragment createDocumentFragment(); | |
| 14329 | |
| 14330 Element createElement(String tagName); | |
| 14331 | |
| 14332 Element createElementNS(String namespaceURI, String qualifiedName); | |
| 14333 | |
| 14334 EntityReference createEntityReference(String name); | |
| 14335 | |
| 14336 Event createEvent(String eventType); | |
| 14337 | |
| 14338 XPathExpression createExpression(String expression, XPathNSResolver resolver); | |
| 14339 | |
| 14340 XPathNSResolver createNSResolver(Node nodeResolver); | |
| 14341 | |
| 14342 NodeIterator createNodeIterator(Node root, int whatToShow, NodeFilter filter,
bool expandEntityReferences); | |
| 14343 | |
| 14344 ProcessingInstruction createProcessingInstruction(String target, String data); | |
| 14345 | |
| 14346 Range createRange(); | |
| 14347 | |
| 14348 Text createTextNode(String data); | |
| 14349 | |
| 14350 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); | |
| 14351 | |
| 14352 TouchList createTouchList(); | |
| 14353 | |
| 14354 TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter, bool
expandEntityReferences); | |
| 14355 | |
| 14356 Element elementFromPoint(int x, int y); | |
| 14357 | |
| 14358 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult); | |
| 14359 | |
| 14360 bool execCommand(String command, bool userInterface, String value); | |
| 14361 | |
| 14362 CanvasRenderingContext getCSSCanvasContext(String contextId, String name, int
width, int height); | |
| 14363 | |
| 14364 Element getElementById(String elementId); | |
| 14365 | |
| 14366 NodeList getElementsByClassName(String tagname); | |
| 14367 | |
| 14368 NodeList getElementsByName(String elementName); | |
| 14369 | |
| 14370 NodeList getElementsByTagName(String tagname); | |
| 14371 | |
| 14372 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | |
| 14373 | |
| 14374 CSSStyleDeclaration getOverrideStyle(Element element, String pseudoElement); | |
| 14375 | |
| 14376 DOMSelection getSelection(); | |
| 14377 | |
| 14378 Node importNode(Node importedNode, [bool deep]); | |
| 14379 | |
| 14380 bool queryCommandEnabled(String command); | |
| 14381 | |
| 14382 bool queryCommandIndeterm(String command); | |
| 14383 | |
| 14384 bool queryCommandState(String command); | |
| 14385 | |
| 14386 bool queryCommandSupported(String command); | |
| 14387 | |
| 14388 String queryCommandValue(String command); | |
| 14389 | |
| 14390 Element querySelector(String selectors); | |
| 14391 | |
| 14392 NodeList querySelectorAll(String selectors); | |
| 14393 | |
| 14394 void webkitCancelFullScreen(); | |
| 14395 | |
| 14396 void webkitExitFullscreen(); | |
| 14397 | |
| 14398 void webkitExitPointerLock(); | |
| 14399 } | |
| 14400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14401 // for details. All rights reserved. Use of this source code is governed by a | |
| 14402 // BSD-style license that can be found in the LICENSE file. | |
| 14403 | |
| 14404 // WARNING: Do not edit - generated code. | |
| 14405 | |
| 14406 interface DocumentFragment extends Node { | |
| 14407 | |
| 14408 Element querySelector(String selectors); | |
| 14409 | |
| 14410 NodeList querySelectorAll(String selectors); | |
| 14411 } | |
| 14412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14413 // for details. All rights reserved. Use of this source code is governed by a | |
| 14414 // BSD-style license that can be found in the LICENSE file. | |
| 14415 | |
| 14416 // WARNING: Do not edit - generated code. | |
| 14417 | |
| 14418 interface DocumentType extends Node { | |
| 14419 | |
| 14420 final NamedNodeMap entities; | |
| 14421 | |
| 14422 final String internalSubset; | |
| 14423 | |
| 14424 final String name; | |
| 14425 | |
| 14426 final NamedNodeMap notations; | |
| 14427 | |
| 14428 final String publicId; | |
| 14429 | |
| 14430 final String systemId; | |
| 14431 } | |
| 14432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14433 // for details. All rights reserved. Use of this source code is governed by a | |
| 14434 // BSD-style license that can be found in the LICENSE file. | |
| 14435 | |
| 14436 // WARNING: Do not edit - generated code. | |
| 14437 | |
| 14438 interface DynamicsCompressorNode extends AudioNode { | |
| 14439 | |
| 14440 final AudioParam attack; | |
| 14441 | |
| 14442 final AudioParam knee; | |
| 14443 | |
| 14444 final AudioParam ratio; | |
| 14445 | |
| 14446 final AudioParam reduction; | |
| 14447 | |
| 14448 final AudioParam release; | |
| 14449 | |
| 14450 final AudioParam threshold; | |
| 14451 } | |
| 14452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14453 // for details. All rights reserved. Use of this source code is governed by a | |
| 14454 // BSD-style license that can be found in the LICENSE file. | |
| 14455 | |
| 14456 // WARNING: Do not edit - generated code. | |
| 14457 | |
| 14458 interface EXTTextureFilterAnisotropic { | |
| 14459 | |
| 14460 static final int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; | |
| 14461 | |
| 14462 static final int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; | |
| 14463 } | |
| 14464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14465 // for details. All rights reserved. Use of this source code is governed by a | |
| 14466 // BSD-style license that can be found in the LICENSE file. | |
| 14467 | |
| 14468 // WARNING: Do not edit - generated code. | |
| 14469 | |
| 14470 interface Element extends Node, ElementTraversal { | |
| 14471 | |
| 14472 static final int ALLOW_KEYBOARD_INPUT = 1; | |
| 14473 | |
| 14474 final int childElementCount; | |
| 14475 | |
| 14476 final int clientHeight; | |
| 14477 | |
| 14478 final int clientLeft; | |
| 14479 | |
| 14480 final int clientTop; | |
| 14481 | |
| 14482 final int clientWidth; | |
| 14483 | |
| 14484 final Map<String, String> dataset; | |
| 14485 | |
| 14486 final Element firstElementChild; | |
| 14487 | |
| 14488 final Element lastElementChild; | |
| 14489 | |
| 14490 final Element nextElementSibling; | |
| 14491 | |
| 14492 final int offsetHeight; | |
| 14493 | |
| 14494 final int offsetLeft; | |
| 14495 | |
| 14496 final Element offsetParent; | |
| 14497 | |
| 14498 final int offsetTop; | |
| 14499 | |
| 14500 final int offsetWidth; | |
| 14501 | |
| 14502 final Element previousElementSibling; | |
| 14503 | |
| 14504 final int scrollHeight; | |
| 14505 | |
| 14506 int scrollLeft; | |
| 14507 | |
| 14508 int scrollTop; | |
| 14509 | |
| 14510 final int scrollWidth; | |
| 14511 | |
| 14512 final CSSStyleDeclaration style; | |
| 14513 | |
| 14514 final String tagName; | |
| 14515 | |
| 14516 final String webkitRegionOverflow; | |
| 14517 | |
| 14518 void blur(); | |
| 14519 | |
| 14520 void focus(); | |
| 14521 | |
| 14522 String getAttribute(String name); | |
| 14523 | |
| 14524 String getAttributeNS(String namespaceURI, String localName); | |
| 14525 | |
| 14526 Attr getAttributeNode(String name); | |
| 14527 | |
| 14528 Attr getAttributeNodeNS(String namespaceURI, String localName); | |
| 14529 | |
| 14530 ClientRect getBoundingClientRect(); | |
| 14531 | |
| 14532 ClientRectList getClientRects(); | |
| 14533 | |
| 14534 NodeList getElementsByClassName(String name); | |
| 14535 | |
| 14536 NodeList getElementsByTagName(String name); | |
| 14537 | |
| 14538 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | |
| 14539 | |
| 14540 bool hasAttribute(String name); | |
| 14541 | |
| 14542 bool hasAttributeNS(String namespaceURI, String localName); | |
| 14543 | |
| 14544 Element querySelector(String selectors); | |
| 14545 | |
| 14546 NodeList querySelectorAll(String selectors); | |
| 14547 | |
| 14548 void removeAttribute(String name); | |
| 14549 | |
| 14550 void removeAttributeNS(String namespaceURI, String localName); | |
| 14551 | |
| 14552 Attr removeAttributeNode(Attr oldAttr); | |
| 14553 | |
| 14554 void scrollByLines(int lines); | |
| 14555 | |
| 14556 void scrollByPages(int pages); | |
| 14557 | |
| 14558 void scrollIntoView([bool alignWithTop]); | |
| 14559 | |
| 14560 void scrollIntoViewIfNeeded([bool centerIfNeeded]); | |
| 14561 | |
| 14562 void setAttribute(String name, String value); | |
| 14563 | |
| 14564 void setAttributeNS(String namespaceURI, String qualifiedName, String value); | |
| 14565 | |
| 14566 Attr setAttributeNode(Attr newAttr); | |
| 14567 | |
| 14568 Attr setAttributeNodeNS(Attr newAttr); | |
| 14569 | |
| 14570 bool webkitMatchesSelector(String selectors); | |
| 14571 | |
| 14572 void webkitRequestFullScreen(int flags); | |
| 14573 | |
| 14574 void webkitRequestFullscreen(); | |
| 14575 | |
| 14576 void webkitRequestPointerLock(); | |
| 14577 } | |
| 14578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14579 // for details. All rights reserved. Use of this source code is governed by a | |
| 14580 // BSD-style license that can be found in the LICENSE file. | |
| 14581 | |
| 14582 // WARNING: Do not edit - generated code. | |
| 14583 | |
| 14584 interface ElementTimeControl { | |
| 14585 | |
| 14586 void beginElement(); | |
| 14587 | |
| 14588 void beginElementAt(num offset); | |
| 14589 | |
| 14590 void endElement(); | |
| 14591 | |
| 14592 void endElementAt(num offset); | |
| 14593 } | |
| 14594 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14595 // for details. All rights reserved. Use of this source code is governed by a | |
| 14596 // BSD-style license that can be found in the LICENSE file. | |
| 14597 | |
| 14598 // WARNING: Do not edit - generated code. | |
| 14599 | |
| 14600 interface ElementTraversal { | |
| 14601 | |
| 14602 final int childElementCount; | |
| 14603 | |
| 14604 final Element firstElementChild; | |
| 14605 | |
| 14606 final Element lastElementChild; | |
| 14607 | |
| 14608 final Element nextElementSibling; | |
| 14609 | |
| 14610 final Element previousElementSibling; | |
| 14611 } | |
| 14612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14613 // for details. All rights reserved. Use of this source code is governed by a | |
| 14614 // BSD-style license that can be found in the LICENSE file. | |
| 14615 | |
| 14616 // WARNING: Do not edit - generated code. | |
| 14617 | |
| 14618 interface Entity extends Node { | |
| 14619 | |
| 14620 final String notationName; | |
| 14621 | |
| 14622 final String publicId; | |
| 14623 | |
| 14624 final String systemId; | |
| 14625 } | |
| 14626 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14627 // for details. All rights reserved. Use of this source code is governed by a | |
| 14628 // BSD-style license that can be found in the LICENSE file. | |
| 14629 | |
| 14630 // WARNING: Do not edit - generated code. | |
| 14631 | |
| 14632 interface EntityReference extends Node { | |
| 14633 } | |
| 14634 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14635 // for details. All rights reserved. Use of this source code is governed by a | |
| 14636 // BSD-style license that can be found in the LICENSE file. | |
| 14637 | |
| 14638 // WARNING: Do not edit - generated code. | |
| 14639 | |
| 14640 typedef bool EntriesCallback(EntryArray entries); | |
| 14641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14642 // for details. All rights reserved. Use of this source code is governed by a | |
| 14643 // BSD-style license that can be found in the LICENSE file. | |
| 14644 | |
| 14645 // WARNING: Do not edit - generated code. | |
| 14646 | |
| 14647 interface Entry { | |
| 14648 | |
| 14649 final DOMFileSystem filesystem; | |
| 14650 | |
| 14651 final String fullPath; | |
| 14652 | |
| 14653 final bool isDirectory; | |
| 14654 | |
| 14655 final bool isFile; | |
| 14656 | |
| 14657 final String name; | |
| 14658 | |
| 14659 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]); | |
| 14660 | |
| 14661 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k]); | |
| 14662 | |
| 14663 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]); | |
| 14664 | |
| 14665 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]); | |
| 14666 | |
| 14667 void remove(VoidCallback successCallback, [ErrorCallback errorCallback]); | |
| 14668 | |
| 14669 String toURL(); | |
| 14670 } | |
| 14671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14672 // for details. All rights reserved. Use of this source code is governed by a | |
| 14673 // BSD-style license that can be found in the LICENSE file. | |
| 14674 | |
| 14675 // WARNING: Do not edit - generated code. | |
| 14676 | |
| 14677 interface EntryArray { | |
| 14678 | |
| 14679 final int length; | |
| 14680 | |
| 14681 Entry item(int index); | |
| 14682 } | |
| 14683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14684 // for details. All rights reserved. Use of this source code is governed by a | |
| 14685 // BSD-style license that can be found in the LICENSE file. | |
| 14686 | |
| 14687 // WARNING: Do not edit - generated code. | |
| 14688 | |
| 14689 interface EntryArraySync { | |
| 14690 | |
| 14691 final int length; | |
| 14692 | |
| 14693 EntrySync item(int index); | |
| 14694 } | |
| 14695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14696 // for details. All rights reserved. Use of this source code is governed by a | |
| 14697 // BSD-style license that can be found in the LICENSE file. | |
| 14698 | |
| 14699 // WARNING: Do not edit - generated code. | |
| 14700 | |
| 14701 typedef bool EntryCallback(Entry entry); | |
| 14702 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14703 // for details. All rights reserved. Use of this source code is governed by a | |
| 14704 // BSD-style license that can be found in the LICENSE file. | |
| 14705 | |
| 14706 // WARNING: Do not edit - generated code. | |
| 14707 | |
| 14708 interface EntrySync { | |
| 14709 | |
| 14710 final DOMFileSystemSync filesystem; | |
| 14711 | |
| 14712 final String fullPath; | |
| 14713 | |
| 14714 final bool isDirectory; | |
| 14715 | |
| 14716 final bool isFile; | |
| 14717 | |
| 14718 final String name; | |
| 14719 | |
| 14720 EntrySync copyTo(DirectoryEntrySync parent, String name); | |
| 14721 | |
| 14722 Metadata getMetadata(); | |
| 14723 | |
| 14724 EntrySync getParent(); | |
| 14725 | |
| 14726 EntrySync moveTo(DirectoryEntrySync parent, String name); | |
| 14727 | |
| 14728 void remove(); | |
| 14729 | |
| 14730 String toURL(); | |
| 14731 } | |
| 14732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14733 // for details. All rights reserved. Use of this source code is governed by a | |
| 14734 // BSD-style license that can be found in the LICENSE file. | |
| 14735 | |
| 14736 // WARNING: Do not edit - generated code. | |
| 14737 | |
| 14738 typedef bool ErrorCallback(FileError error); | |
| 14739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14740 // for details. All rights reserved. Use of this source code is governed by a | |
| 14741 // BSD-style license that can be found in the LICENSE file. | |
| 14742 | |
| 14743 // WARNING: Do not edit - generated code. | |
| 14744 | |
| 14745 interface ErrorEvent extends Event { | |
| 14746 | |
| 14747 final String filename; | |
| 14748 | |
| 14749 final int lineno; | |
| 14750 | |
| 14751 final String message; | |
| 14752 } | |
| 14753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14754 // for details. All rights reserved. Use of this source code is governed by a | |
| 14755 // BSD-style license that can be found in the LICENSE file. | |
| 14756 | |
| 14757 // WARNING: Do not edit - generated code. | |
| 14758 | |
| 14759 interface Event { | |
| 14760 | |
| 14761 static final int AT_TARGET = 2; | |
| 14762 | |
| 14763 static final int BLUR = 8192; | |
| 14764 | |
| 14765 static final int BUBBLING_PHASE = 3; | |
| 14766 | |
| 14767 static final int CAPTURING_PHASE = 1; | |
| 14768 | |
| 14769 static final int CHANGE = 32768; | |
| 14770 | |
| 14771 static final int CLICK = 64; | |
| 14772 | |
| 14773 static final int DBLCLICK = 128; | |
| 14774 | |
| 14775 static final int DRAGDROP = 2048; | |
| 14776 | |
| 14777 static final int FOCUS = 4096; | |
| 14778 | |
| 14779 static final int KEYDOWN = 256; | |
| 14780 | |
| 14781 static final int KEYPRESS = 1024; | |
| 14782 | |
| 14783 static final int KEYUP = 512; | |
| 14784 | |
| 14785 static final int MOUSEDOWN = 1; | |
| 14786 | |
| 14787 static final int MOUSEDRAG = 32; | |
| 14788 | |
| 14789 static final int MOUSEMOVE = 16; | |
| 14790 | |
| 14791 static final int MOUSEOUT = 8; | |
| 14792 | |
| 14793 static final int MOUSEOVER = 4; | |
| 14794 | |
| 14795 static final int MOUSEUP = 2; | |
| 14796 | |
| 14797 static final int NONE = 0; | |
| 14798 | |
| 14799 static final int SELECT = 16384; | |
| 14800 | |
| 14801 final bool bubbles; | |
| 14802 | |
| 14803 bool cancelBubble; | |
| 14804 | |
| 14805 final bool cancelable; | |
| 14806 | |
| 14807 final Clipboard clipboardData; | |
| 14808 | |
| 14809 final EventTarget currentTarget; | |
| 14810 | |
| 14811 final bool defaultPrevented; | |
| 14812 | |
| 14813 final int eventPhase; | |
| 14814 | |
| 14815 bool returnValue; | |
| 14816 | |
| 14817 final EventTarget srcElement; | |
| 14818 | |
| 14819 final EventTarget target; | |
| 14820 | |
| 14821 final int timeStamp; | |
| 14822 | |
| 14823 final String type; | |
| 14824 | |
| 14825 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg); | |
| 14826 | |
| 14827 void preventDefault(); | |
| 14828 | |
| 14829 void stopImmediatePropagation(); | |
| 14830 | |
| 14831 void stopPropagation(); | |
| 14832 } | |
| 14833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14834 // for details. All rights reserved. Use of this source code is governed by a | |
| 14835 // BSD-style license that can be found in the LICENSE file. | |
| 14836 | |
| 14837 // WARNING: Do not edit - generated code. | |
| 14838 | |
| 14839 interface EventException { | |
| 14840 | |
| 14841 static final int DISPATCH_REQUEST_ERR = 1; | |
| 14842 | |
| 14843 static final int UNSPECIFIED_EVENT_TYPE_ERR = 0; | |
| 14844 | |
| 14845 final int code; | |
| 14846 | |
| 14847 final String message; | |
| 14848 | |
| 14849 final String name; | |
| 14850 | |
| 14851 String toString(); | |
| 14852 } | |
| 14853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14854 // for details. All rights reserved. Use of this source code is governed by a | |
| 14855 // BSD-style license that can be found in the LICENSE file. | |
| 14856 | |
| 14857 // WARNING: Do not edit - generated code. | |
| 14858 | |
| 14859 interface EventSource extends EventTarget default _EventSourceFactoryProvider { | |
| 14860 | |
| 14861 EventSource(String scriptUrl); | |
| 14862 | |
| 14863 static final int CLOSED = 2; | |
| 14864 | |
| 14865 static final int CONNECTING = 0; | |
| 14866 | |
| 14867 static final int OPEN = 1; | |
| 14868 | |
| 14869 final String URL; | |
| 14870 | |
| 14871 final int readyState; | |
| 14872 | |
| 14873 final String url; | |
| 14874 | |
| 14875 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 14876 | |
| 14877 void close(); | |
| 14878 | |
| 14879 bool dispatchEvent(Event evt); | |
| 14880 | |
| 14881 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 14882 } | |
| 14883 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14884 // for details. All rights reserved. Use of this source code is governed by a | |
| 14885 // BSD-style license that can be found in the LICENSE file. | |
| 14886 | |
| 14887 // WARNING: Do not edit - generated code. | |
| 14888 | |
| 14889 interface EventTarget { | |
| 14890 | |
| 14891 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 14892 | |
| 14893 bool dispatchEvent(Event event); | |
| 14894 | |
| 14895 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 14896 } | |
| 14897 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14898 // for details. All rights reserved. Use of this source code is governed by a | |
| 14899 // BSD-style license that can be found in the LICENSE file. | |
| 14900 | |
| 14901 // WARNING: Do not edit - generated code. | |
| 14902 | |
| 14903 interface File extends Blob { | |
| 14904 | |
| 14905 final Date lastModifiedDate; | |
| 14906 | |
| 14907 final String name; | |
| 14908 | |
| 14909 final String webkitRelativePath; | |
| 14910 } | |
| 14911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14912 // for details. All rights reserved. Use of this source code is governed by a | |
| 14913 // BSD-style license that can be found in the LICENSE file. | |
| 14914 | |
| 14915 // WARNING: Do not edit - generated code. | |
| 14916 | |
| 14917 typedef bool FileCallback(File file); | |
| 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 FileEntry extends Entry { | |
| 14925 | |
| 14926 void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCall
back]); | |
| 14927 | |
| 14928 void file(FileCallback successCallback, [ErrorCallback errorCallback]); | |
| 14929 } | |
| 14930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14931 // for details. All rights reserved. Use of this source code is governed by a | |
| 14932 // BSD-style license that can be found in the LICENSE file. | |
| 14933 | |
| 14934 // WARNING: Do not edit - generated code. | |
| 14935 | |
| 14936 interface FileEntrySync extends EntrySync { | |
| 14937 | |
| 14938 FileWriterSync createWriter(); | |
| 14939 | |
| 14940 File file(); | |
| 14941 } | |
| 14942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14943 // for details. All rights reserved. Use of this source code is governed by a | |
| 14944 // BSD-style license that can be found in the LICENSE file. | |
| 14945 | |
| 14946 // WARNING: Do not edit - generated code. | |
| 14947 | |
| 14948 interface FileError { | |
| 14949 | |
| 14950 static final int ABORT_ERR = 3; | |
| 14951 | |
| 14952 static final int ENCODING_ERR = 5; | |
| 14953 | |
| 14954 static final int INVALID_MODIFICATION_ERR = 9; | |
| 14955 | |
| 14956 static final int INVALID_STATE_ERR = 7; | |
| 14957 | |
| 14958 static final int NOT_FOUND_ERR = 1; | |
| 14959 | |
| 14960 static final int NOT_READABLE_ERR = 4; | |
| 14961 | |
| 14962 static final int NO_MODIFICATION_ALLOWED_ERR = 6; | |
| 14963 | |
| 14964 static final int PATH_EXISTS_ERR = 12; | |
| 14965 | |
| 14966 static final int QUOTA_EXCEEDED_ERR = 10; | |
| 14967 | |
| 14968 static final int SECURITY_ERR = 2; | |
| 14969 | |
| 14970 static final int SYNTAX_ERR = 8; | |
| 14971 | |
| 14972 static final int TYPE_MISMATCH_ERR = 11; | |
| 14973 | |
| 14974 final int code; | |
| 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 interface FileException { | |
| 14983 | |
| 14984 static final int ABORT_ERR = 3; | |
| 14985 | |
| 14986 static final int ENCODING_ERR = 5; | |
| 14987 | |
| 14988 static final int INVALID_MODIFICATION_ERR = 9; | |
| 14989 | |
| 14990 static final int INVALID_STATE_ERR = 7; | |
| 14991 | |
| 14992 static final int NOT_FOUND_ERR = 1; | |
| 14993 | |
| 14994 static final int NOT_READABLE_ERR = 4; | |
| 14995 | |
| 14996 static final int NO_MODIFICATION_ALLOWED_ERR = 6; | |
| 14997 | |
| 14998 static final int PATH_EXISTS_ERR = 12; | |
| 14999 | |
| 15000 static final int QUOTA_EXCEEDED_ERR = 10; | |
| 15001 | |
| 15002 static final int SECURITY_ERR = 2; | |
| 15003 | |
| 15004 static final int SYNTAX_ERR = 8; | |
| 15005 | |
| 15006 static final int TYPE_MISMATCH_ERR = 11; | |
| 15007 | |
| 15008 final int code; | |
| 15009 | |
| 15010 final String message; | |
| 15011 | |
| 15012 final String name; | |
| 15013 | |
| 15014 String toString(); | |
| 15015 } | |
| 15016 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15017 // for details. All rights reserved. Use of this source code is governed by a | |
| 15018 // BSD-style license that can be found in the LICENSE file. | |
| 15019 | |
| 15020 // WARNING: Do not edit - generated code. | |
| 15021 | |
| 15022 interface FileList extends List<File> { | |
| 15023 | |
| 15024 final int length; | |
| 15025 | |
| 15026 File item(int index); | |
| 15027 } | |
| 15028 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15029 // for details. All rights reserved. Use of this source code is governed by a | |
| 15030 // BSD-style license that can be found in the LICENSE file. | |
| 15031 | |
| 15032 // WARNING: Do not edit - generated code. | |
| 15033 | |
| 15034 interface FileReader extends EventTarget default _FileReaderFactoryProvider { | |
| 15035 | |
| 15036 FileReader(); | |
| 15037 | |
| 15038 static final int DONE = 2; | |
| 15039 | |
| 15040 static final int EMPTY = 0; | |
| 15041 | |
| 15042 static final int LOADING = 1; | |
| 15043 | |
| 15044 final FileError error; | |
| 15045 | |
| 15046 final int readyState; | |
| 15047 | |
| 15048 final Object result; | |
| 15049 | |
| 15050 void abort(); | |
| 15051 | |
| 15052 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 15053 | |
| 15054 bool dispatchEvent(Event evt); | |
| 15055 | |
| 15056 void readAsArrayBuffer(Blob blob); | |
| 15057 | |
| 15058 void readAsBinaryString(Blob blob); | |
| 15059 | |
| 15060 void readAsDataURL(Blob blob); | |
| 15061 | |
| 15062 void readAsText(Blob blob, [String encoding]); | |
| 15063 | |
| 15064 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 15065 } | |
| 15066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15067 // for details. All rights reserved. Use of this source code is governed by a | |
| 15068 // BSD-style license that can be found in the LICENSE file. | |
| 15069 | |
| 15070 // WARNING: Do not edit - generated code. | |
| 15071 | |
| 15072 interface FileReaderSync default _FileReaderSyncFactoryProvider { | |
| 15073 | |
| 15074 FileReaderSync(); | |
| 15075 | |
| 15076 ArrayBuffer readAsArrayBuffer(Blob blob); | |
| 15077 | |
| 15078 String readAsBinaryString(Blob blob); | |
| 15079 | |
| 15080 String readAsDataURL(Blob blob); | |
| 15081 | |
| 15082 String readAsText(Blob blob, [String encoding]); | |
| 15083 } | |
| 15084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15085 // for details. All rights reserved. Use of this source code is governed by a | |
| 15086 // BSD-style license that can be found in the LICENSE file. | |
| 15087 | |
| 15088 // WARNING: Do not edit - generated code. | |
| 15089 | |
| 15090 typedef bool FileSystemCallback(DOMFileSystem fileSystem); | |
| 15091 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15092 // for details. All rights reserved. Use of this source code is governed by a | |
| 15093 // BSD-style license that can be found in the LICENSE file. | |
| 15094 | |
| 15095 // WARNING: Do not edit - generated code. | |
| 15096 | |
| 15097 interface FileWriter extends EventTarget { | |
| 15098 | |
| 15099 static final int DONE = 2; | |
| 15100 | |
| 15101 static final int INIT = 0; | |
| 15102 | |
| 15103 static final int WRITING = 1; | |
| 15104 | |
| 15105 final FileError error; | |
| 15106 | |
| 15107 final int length; | |
| 15108 | |
| 15109 final int position; | |
| 15110 | |
| 15111 final int readyState; | |
| 15112 | |
| 15113 void abort(); | |
| 15114 | |
| 15115 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 15116 | |
| 15117 bool dispatchEvent(Event evt); | |
| 15118 | |
| 15119 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 15120 | |
| 15121 void seek(int position); | |
| 15122 | |
| 15123 void truncate(int size); | |
| 15124 | |
| 15125 void write(Blob data); | |
| 15126 } | |
| 15127 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15128 // for details. All rights reserved. Use of this source code is governed by a | |
| 15129 // BSD-style license that can be found in the LICENSE file. | |
| 15130 | |
| 15131 // WARNING: Do not edit - generated code. | |
| 15132 | |
| 15133 typedef bool FileWriterCallback(FileWriter fileWriter); | |
| 15134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15135 // for details. All rights reserved. Use of this source code is governed by a | |
| 15136 // BSD-style license that can be found in the LICENSE file. | |
| 15137 | |
| 15138 // WARNING: Do not edit - generated code. | |
| 15139 | |
| 15140 interface FileWriterSync { | |
| 15141 | |
| 15142 final int length; | |
| 15143 | |
| 15144 final int position; | |
| 15145 | |
| 15146 void seek(int position); | |
| 15147 | |
| 15148 void truncate(int size); | |
| 15149 | |
| 15150 void write(Blob data); | |
| 15151 } | |
| 15152 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15153 // for details. All rights reserved. Use of this source code is governed by a | |
| 15154 // BSD-style license that can be found in the LICENSE file. | |
| 15155 | |
| 15156 // WARNING: Do not edit - generated code. | |
| 15157 | |
| 15158 interface Float32Array extends ArrayBufferView, List<num> default _TypedArrayFac
toryProvider { | |
| 15159 | |
| 15160 Float32Array(int length); | |
| 15161 | |
| 15162 Float32Array.fromList(List<num> list); | |
| 15163 | |
| 15164 Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
| 15165 | |
| 15166 static final int BYTES_PER_ELEMENT = 4; | |
| 15167 | |
| 15168 final int length; | |
| 15169 | |
| 15170 void setElements(Object array, [int offset]); | |
| 15171 | |
| 15172 Float32Array subarray(int start, [int end]); | |
| 15173 } | |
| 15174 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15175 // for details. All rights reserved. Use of this source code is governed by a | |
| 15176 // BSD-style license that can be found in the LICENSE file. | |
| 15177 | |
| 15178 // WARNING: Do not edit - generated code. | |
| 15179 | |
| 15180 interface Float64Array extends ArrayBufferView, List<num> default _TypedArrayFac
toryProvider { | |
| 15181 | |
| 15182 Float64Array(int length); | |
| 15183 | |
| 15184 Float64Array.fromList(List<num> list); | |
| 15185 | |
| 15186 Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
| 15187 | |
| 15188 static final int BYTES_PER_ELEMENT = 8; | |
| 15189 | |
| 15190 final int length; | |
| 15191 | |
| 15192 void setElements(Object array, [int offset]); | |
| 15193 | |
| 15194 Float64Array subarray(int start, [int end]); | |
| 15195 } | |
| 15196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15197 // for details. All rights reserved. Use of this source code is governed by a | |
| 15198 // BSD-style license that can be found in the LICENSE file. | |
| 15199 | |
| 15200 // WARNING: Do not edit - generated code. | |
| 15201 | |
| 15202 interface Gamepad { | |
| 15203 | |
| 15204 final List<num> axes; | |
| 15205 | |
| 15206 final List<num> buttons; | |
| 15207 | |
| 15208 final String id; | |
| 15209 | |
| 15210 final int index; | |
| 15211 | |
| 15212 final int timestamp; | |
| 15213 } | |
| 15214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15215 // for details. All rights reserved. Use of this source code is governed by a | |
| 15216 // BSD-style license that can be found in the LICENSE file. | |
| 15217 | |
| 15218 // WARNING: Do not edit - generated code. | |
| 15219 | |
| 15220 interface GamepadList { | |
| 15221 | |
| 15222 final int length; | |
| 15223 | |
| 15224 Gamepad item(int index); | |
| 15225 } | |
| 15226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15227 // for details. All rights reserved. Use of this source code is governed by a | |
| 15228 // BSD-style license that can be found in the LICENSE file. | |
| 15229 | |
| 15230 // WARNING: Do not edit - generated code. | |
| 15231 | |
| 15232 interface Geolocation { | |
| 15233 | |
| 15234 void clearWatch(int watchId); | |
| 15235 | |
| 15236 void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallba
ck errorCallback, Object options]); | |
| 15237 | |
| 15238 int watchPosition(PositionCallback successCallback, [PositionErrorCallback err
orCallback, Object options]); | |
| 15239 } | |
| 15240 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15241 // for details. All rights reserved. Use of this source code is governed by a | |
| 15242 // BSD-style license that can be found in the LICENSE file. | |
| 15243 | |
| 15244 // WARNING: Do not edit - generated code. | |
| 15245 | |
| 15246 interface Geoposition { | |
| 15247 | |
| 15248 final Coordinates coords; | |
| 15249 | |
| 15250 final int timestamp; | |
| 15251 } | |
| 15252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15253 // for details. All rights reserved. Use of this source code is governed by a | |
| 15254 // BSD-style license that can be found in the LICENSE file. | |
| 15255 | |
| 15256 // WARNING: Do not edit - generated code. | |
| 15257 | |
| 15258 interface HTMLAllCollection { | |
| 15259 | |
| 15260 final int length; | |
| 15261 | |
| 15262 Node item(int index); | |
| 15263 | |
| 15264 Node namedItem(String name); | |
| 15265 | |
| 15266 NodeList tags(String name); | |
| 15267 } | |
| 15268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15269 // for details. All rights reserved. Use of this source code is governed by a | |
| 15270 // BSD-style license that can be found in the LICENSE file. | |
| 15271 | |
| 15272 // WARNING: Do not edit - generated code. | |
| 15273 | |
| 15274 interface HTMLAnchorElement extends HTMLElement { | |
| 15275 | |
| 15276 String charset; | |
| 15277 | |
| 15278 String coords; | |
| 15279 | |
| 15280 String download; | |
| 15281 | |
| 15282 String hash; | |
| 15283 | |
| 15284 String host; | |
| 15285 | |
| 15286 String hostname; | |
| 15287 | |
| 15288 String href; | |
| 15289 | |
| 15290 String hreflang; | |
| 15291 | |
| 15292 String name; | |
| 15293 | |
| 15294 final String origin; | |
| 15295 | |
| 15296 String pathname; | |
| 15297 | |
| 15298 String ping; | |
| 15299 | |
| 15300 String port; | |
| 15301 | |
| 15302 String protocol; | |
| 15303 | |
| 15304 String rel; | |
| 15305 | |
| 15306 String rev; | |
| 15307 | |
| 15308 String search; | |
| 15309 | |
| 15310 String shape; | |
| 15311 | |
| 15312 String target; | |
| 15313 | |
| 15314 final String text; | |
| 15315 | |
| 15316 String type; | |
| 15317 | |
| 15318 String toString(); | |
| 15319 } | |
| 15320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15321 // for details. All rights reserved. Use of this source code is governed by a | |
| 15322 // BSD-style license that can be found in the LICENSE file. | |
| 15323 | |
| 15324 // WARNING: Do not edit - generated code. | |
| 15325 | |
| 15326 interface HTMLAppletElement extends HTMLElement { | |
| 15327 | |
| 15328 String align; | |
| 15329 | |
| 15330 String alt; | |
| 15331 | |
| 15332 String archive; | |
| 15333 | |
| 15334 String code; | |
| 15335 | |
| 15336 String codeBase; | |
| 15337 | |
| 15338 String height; | |
| 15339 | |
| 15340 String hspace; | |
| 15341 | |
| 15342 String name; | |
| 15343 | |
| 15344 String object; | |
| 15345 | |
| 15346 String vspace; | |
| 15347 | |
| 15348 String width; | |
| 15349 } | |
| 15350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15351 // for details. All rights reserved. Use of this source code is governed by a | |
| 15352 // BSD-style license that can be found in the LICENSE file. | |
| 15353 | |
| 15354 // WARNING: Do not edit - generated code. | |
| 15355 | |
| 15356 interface HTMLAreaElement extends HTMLElement { | |
| 15357 | |
| 15358 String alt; | |
| 15359 | |
| 15360 String coords; | |
| 15361 | |
| 15362 final String hash; | |
| 15363 | |
| 15364 final String host; | |
| 15365 | |
| 15366 final String hostname; | |
| 15367 | |
| 15368 String href; | |
| 15369 | |
| 15370 bool noHref; | |
| 15371 | |
| 15372 final String pathname; | |
| 15373 | |
| 15374 String ping; | |
| 15375 | |
| 15376 final String port; | |
| 15377 | |
| 15378 final String protocol; | |
| 15379 | |
| 15380 final String search; | |
| 15381 | |
| 15382 String shape; | |
| 15383 | |
| 15384 String target; | |
| 15385 } | |
| 15386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15387 // for details. All rights reserved. Use of this source code is governed by a | |
| 15388 // BSD-style license that can be found in the LICENSE file. | |
| 15389 | |
| 15390 // WARNING: Do not edit - generated code. | |
| 15391 | |
| 15392 interface HTMLAudioElement extends HTMLMediaElement default _HTMLAudioElementFac
toryProvider { | |
| 15393 | |
| 15394 HTMLAudioElement([String src]); | |
| 15395 } | |
| 15396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15397 // for details. All rights reserved. Use of this source code is governed by a | |
| 15398 // BSD-style license that can be found in the LICENSE file. | |
| 15399 | |
| 15400 // WARNING: Do not edit - generated code. | |
| 15401 | |
| 15402 interface HTMLBRElement extends HTMLElement { | |
| 15403 | |
| 15404 String clear; | |
| 15405 } | |
| 15406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15407 // for details. All rights reserved. Use of this source code is governed by a | |
| 15408 // BSD-style license that can be found in the LICENSE file. | |
| 15409 | |
| 15410 // WARNING: Do not edit - generated code. | |
| 15411 | |
| 15412 interface HTMLBaseElement extends HTMLElement { | |
| 15413 | |
| 15414 String href; | |
| 15415 | |
| 15416 String target; | |
| 15417 } | |
| 15418 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15419 // for details. All rights reserved. Use of this source code is governed by a | |
| 15420 // BSD-style license that can be found in the LICENSE file. | |
| 15421 | |
| 15422 // WARNING: Do not edit - generated code. | |
| 15423 | |
| 15424 interface HTMLBaseFontElement extends HTMLElement { | |
| 15425 | |
| 15426 String color; | |
| 15427 | |
| 15428 String face; | |
| 15429 | |
| 15430 int size; | |
| 15431 } | |
| 15432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15433 // for details. All rights reserved. Use of this source code is governed by a | |
| 15434 // BSD-style license that can be found in the LICENSE file. | |
| 15435 | |
| 15436 // WARNING: Do not edit - generated code. | |
| 15437 | |
| 15438 interface HTMLBodyElement extends HTMLElement { | |
| 15439 | |
| 15440 String aLink; | |
| 15441 | |
| 15442 String background; | |
| 15443 | |
| 15444 String bgColor; | |
| 15445 | |
| 15446 String link; | |
| 15447 | |
| 15448 String text; | |
| 15449 | |
| 15450 String vLink; | |
| 15451 } | |
| 15452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15453 // for details. All rights reserved. Use of this source code is governed by a | |
| 15454 // BSD-style license that can be found in the LICENSE file. | |
| 15455 | |
| 15456 // WARNING: Do not edit - generated code. | |
| 15457 | |
| 15458 interface HTMLButtonElement extends HTMLElement { | |
| 15459 | |
| 15460 bool autofocus; | |
| 15461 | |
| 15462 bool disabled; | |
| 15463 | |
| 15464 final HTMLFormElement form; | |
| 15465 | |
| 15466 String formAction; | |
| 15467 | |
| 15468 String formEnctype; | |
| 15469 | |
| 15470 String formMethod; | |
| 15471 | |
| 15472 bool formNoValidate; | |
| 15473 | |
| 15474 String formTarget; | |
| 15475 | |
| 15476 final NodeList labels; | |
| 15477 | |
| 15478 String name; | |
| 15479 | |
| 15480 String type; | |
| 15481 | |
| 15482 final String validationMessage; | |
| 15483 | |
| 15484 final ValidityState validity; | |
| 15485 | |
| 15486 String value; | |
| 15487 | |
| 15488 final bool willValidate; | |
| 15489 | |
| 15490 bool checkValidity(); | |
| 15491 | |
| 15492 void setCustomValidity(String error); | |
| 15493 } | |
| 15494 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15495 // for details. All rights reserved. Use of this source code is governed by a | |
| 15496 // BSD-style license that can be found in the LICENSE file. | |
| 15497 | |
| 15498 // WARNING: Do not edit - generated code. | |
| 15499 | |
| 15500 interface HTMLCanvasElement extends HTMLElement { | |
| 15501 | |
| 15502 int height; | |
| 15503 | |
| 15504 int width; | |
| 15505 | |
| 15506 Object getContext(String contextId); | |
| 15507 | |
| 15508 String toDataURL(String type); | |
| 15509 } | |
| 15510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15511 // for details. All rights reserved. Use of this source code is governed by a | |
| 15512 // BSD-style license that can be found in the LICENSE file. | |
| 15513 | |
| 15514 // WARNING: Do not edit - generated code. | |
| 15515 | |
| 15516 interface HTMLCollection extends List<Node> { | |
| 15517 | |
| 15518 final int length; | |
| 15519 | |
| 15520 Node item(int index); | |
| 15521 | |
| 15522 Node namedItem(String name); | |
| 15523 } | |
| 15524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15525 // for details. All rights reserved. Use of this source code is governed by a | |
| 15526 // BSD-style license that can be found in the LICENSE file. | |
| 15527 | |
| 15528 // WARNING: Do not edit - generated code. | |
| 15529 | |
| 15530 interface HTMLContentElement extends HTMLElement { | |
| 15531 | |
| 15532 String select; | |
| 15533 } | |
| 15534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15535 // for details. All rights reserved. Use of this source code is governed by a | |
| 15536 // BSD-style license that can be found in the LICENSE file. | |
| 15537 | |
| 15538 // WARNING: Do not edit - generated code. | |
| 15539 | |
| 15540 interface HTMLDListElement extends HTMLElement { | |
| 15541 | |
| 15542 bool compact; | |
| 15543 } | |
| 15544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15545 // for details. All rights reserved. Use of this source code is governed by a | |
| 15546 // BSD-style license that can be found in the LICENSE file. | |
| 15547 | |
| 15548 // WARNING: Do not edit - generated code. | |
| 15549 | |
| 15550 interface HTMLDetailsElement extends HTMLElement { | |
| 15551 | |
| 15552 bool open; | |
| 15553 } | |
| 15554 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15555 // for details. All rights reserved. Use of this source code is governed by a | |
| 15556 // BSD-style license that can be found in the LICENSE file. | |
| 15557 | |
| 15558 // WARNING: Do not edit - generated code. | |
| 15559 | |
| 15560 interface HTMLDirectoryElement extends HTMLElement { | |
| 15561 | |
| 15562 bool compact; | |
| 15563 } | |
| 15564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15565 // for details. All rights reserved. Use of this source code is governed by a | |
| 15566 // BSD-style license that can be found in the LICENSE file. | |
| 15567 | |
| 15568 // WARNING: Do not edit - generated code. | |
| 15569 | |
| 15570 interface HTMLDivElement extends HTMLElement { | |
| 15571 | |
| 15572 String align; | |
| 15573 } | |
| 15574 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15575 // for details. All rights reserved. Use of this source code is governed by a | |
| 15576 // BSD-style license that can be found in the LICENSE file. | |
| 15577 | |
| 15578 // WARNING: Do not edit - generated code. | |
| 15579 | |
| 15580 interface HTMLDocument extends Document { | |
| 15581 | |
| 15582 final Element activeElement; | |
| 15583 | |
| 15584 String alinkColor; | |
| 15585 | |
| 15586 HTMLAllCollection all; | |
| 15587 | |
| 15588 String bgColor; | |
| 15589 | |
| 15590 final String compatMode; | |
| 15591 | |
| 15592 String designMode; | |
| 15593 | |
| 15594 String dir; | |
| 15595 | |
| 15596 final HTMLCollection embeds; | |
| 15597 | |
| 15598 String fgColor; | |
| 15599 | |
| 15600 final int height; | |
| 15601 | |
| 15602 String linkColor; | |
| 15603 | |
| 15604 final HTMLCollection plugins; | |
| 15605 | |
| 15606 final HTMLCollection scripts; | |
| 15607 | |
| 15608 String vlinkColor; | |
| 15609 | |
| 15610 final int width; | |
| 15611 | |
| 15612 void captureEvents(); | |
| 15613 | |
| 15614 void clear(); | |
| 15615 | |
| 15616 void close(); | |
| 15617 | |
| 15618 bool hasFocus(); | |
| 15619 | |
| 15620 void open(); | |
| 15621 | |
| 15622 void releaseEvents(); | |
| 15623 | |
| 15624 void write(String text); | |
| 15625 | |
| 15626 void writeln(String text); | |
| 15627 } | |
| 15628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15629 // for details. All rights reserved. Use of this source code is governed by a | |
| 15630 // BSD-style license that can be found in the LICENSE file. | |
| 15631 | |
| 15632 // WARNING: Do not edit - generated code. | |
| 15633 | |
| 15634 interface HTMLElement extends Element { | |
| 15635 | |
| 15636 String accessKey; | |
| 15637 | |
| 15638 final HTMLCollection children; | |
| 15639 | |
| 15640 final DOMTokenList classList; | |
| 15641 | |
| 15642 String className; | |
| 15643 | |
| 15644 String contentEditable; | |
| 15645 | |
| 15646 String dir; | |
| 15647 | |
| 15648 bool draggable; | |
| 15649 | |
| 15650 bool hidden; | |
| 15651 | |
| 15652 String id; | |
| 15653 | |
| 15654 String innerHTML; | |
| 15655 | |
| 15656 String innerText; | |
| 15657 | |
| 15658 final bool isContentEditable; | |
| 15659 | |
| 15660 String lang; | |
| 15661 | |
| 15662 String outerHTML; | |
| 15663 | |
| 15664 String outerText; | |
| 15665 | |
| 15666 bool spellcheck; | |
| 15667 | |
| 15668 int tabIndex; | |
| 15669 | |
| 15670 String title; | |
| 15671 | |
| 15672 bool translate; | |
| 15673 | |
| 15674 String webkitdropzone; | |
| 15675 | |
| 15676 void click(); | |
| 15677 | |
| 15678 Element insertAdjacentElement(String where, Element element); | |
| 15679 | |
| 15680 void insertAdjacentHTML(String where, String html); | |
| 15681 | |
| 15682 void insertAdjacentText(String where, String text); | |
| 15683 } | |
| 15684 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15685 // for details. All rights reserved. Use of this source code is governed by a | |
| 15686 // BSD-style license that can be found in the LICENSE file. | |
| 15687 | |
| 15688 // WARNING: Do not edit - generated code. | |
| 15689 | |
| 15690 interface HTMLEmbedElement extends HTMLElement { | |
| 15691 | |
| 15692 String align; | |
| 15693 | |
| 15694 String height; | |
| 15695 | |
| 15696 String name; | |
| 15697 | |
| 15698 String src; | |
| 15699 | |
| 15700 String type; | |
| 15701 | |
| 15702 String width; | |
| 15703 | |
| 15704 SVGDocument getSVGDocument(); | |
| 15705 } | |
| 15706 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15707 // for details. All rights reserved. Use of this source code is governed by a | |
| 15708 // BSD-style license that can be found in the LICENSE file. | |
| 15709 | |
| 15710 // WARNING: Do not edit - generated code. | |
| 15711 | |
| 15712 interface HTMLFieldSetElement extends HTMLElement { | |
| 15713 | |
| 15714 bool disabled; | |
| 15715 | |
| 15716 final HTMLCollection elements; | |
| 15717 | |
| 15718 final HTMLFormElement form; | |
| 15719 | |
| 15720 String name; | |
| 15721 | |
| 15722 final String type; | |
| 15723 | |
| 15724 final String validationMessage; | |
| 15725 | |
| 15726 final ValidityState validity; | |
| 15727 | |
| 15728 final bool willValidate; | |
| 15729 | |
| 15730 bool checkValidity(); | |
| 15731 | |
| 15732 void setCustomValidity(String error); | |
| 15733 } | |
| 15734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15735 // for details. All rights reserved. Use of this source code is governed by a | |
| 15736 // BSD-style license that can be found in the LICENSE file. | |
| 15737 | |
| 15738 // WARNING: Do not edit - generated code. | |
| 15739 | |
| 15740 interface HTMLFontElement extends HTMLElement { | |
| 15741 | |
| 15742 String color; | |
| 15743 | |
| 15744 String face; | |
| 15745 | |
| 15746 String size; | |
| 15747 } | |
| 15748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15749 // for details. All rights reserved. Use of this source code is governed by a | |
| 15750 // BSD-style license that can be found in the LICENSE file. | |
| 15751 | |
| 15752 // WARNING: Do not edit - generated code. | |
| 15753 | |
| 15754 interface HTMLFormElement extends HTMLElement { | |
| 15755 | |
| 15756 String acceptCharset; | |
| 15757 | |
| 15758 String action; | |
| 15759 | |
| 15760 String autocomplete; | |
| 15761 | |
| 15762 final HTMLCollection elements; | |
| 15763 | |
| 15764 String encoding; | |
| 15765 | |
| 15766 String enctype; | |
| 15767 | |
| 15768 final int length; | |
| 15769 | |
| 15770 String method; | |
| 15771 | |
| 15772 String name; | |
| 15773 | |
| 15774 bool noValidate; | |
| 15775 | |
| 15776 String target; | |
| 15777 | |
| 15778 bool checkValidity(); | |
| 15779 | |
| 15780 void reset(); | |
| 15781 | |
| 15782 void submit(); | |
| 15783 } | |
| 15784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15785 // for details. All rights reserved. Use of this source code is governed by a | |
| 15786 // BSD-style license that can be found in the LICENSE file. | |
| 15787 | |
| 15788 // WARNING: Do not edit - generated code. | |
| 15789 | |
| 15790 interface HTMLFrameElement extends HTMLElement { | |
| 15791 | |
| 15792 final Document contentDocument; | |
| 15793 | |
| 15794 final DOMWindow contentWindow; | |
| 15795 | |
| 15796 String frameBorder; | |
| 15797 | |
| 15798 final int height; | |
| 15799 | |
| 15800 String location; | |
| 15801 | |
| 15802 String longDesc; | |
| 15803 | |
| 15804 String marginHeight; | |
| 15805 | |
| 15806 String marginWidth; | |
| 15807 | |
| 15808 String name; | |
| 15809 | |
| 15810 bool noResize; | |
| 15811 | |
| 15812 String scrolling; | |
| 15813 | |
| 15814 String src; | |
| 15815 | |
| 15816 final int width; | |
| 15817 | |
| 15818 SVGDocument getSVGDocument(); | |
| 15819 } | |
| 15820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15821 // for details. All rights reserved. Use of this source code is governed by a | |
| 15822 // BSD-style license that can be found in the LICENSE file. | |
| 15823 | |
| 15824 // WARNING: Do not edit - generated code. | |
| 15825 | |
| 15826 interface HTMLFrameSetElement extends HTMLElement { | |
| 15827 | |
| 15828 String cols; | |
| 15829 | |
| 15830 String rows; | |
| 15831 } | |
| 15832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15833 // for details. All rights reserved. Use of this source code is governed by a | |
| 15834 // BSD-style license that can be found in the LICENSE file. | |
| 15835 | |
| 15836 // WARNING: Do not edit - generated code. | |
| 15837 | |
| 15838 interface HTMLHRElement extends HTMLElement { | |
| 15839 | |
| 15840 String align; | |
| 15841 | |
| 15842 bool noShade; | |
| 15843 | |
| 15844 String size; | |
| 15845 | |
| 15846 String width; | |
| 15847 } | |
| 15848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15849 // for details. All rights reserved. Use of this source code is governed by a | |
| 15850 // BSD-style license that can be found in the LICENSE file. | |
| 15851 | |
| 15852 // WARNING: Do not edit - generated code. | |
| 15853 | |
| 15854 interface HTMLHeadElement extends HTMLElement { | |
| 15855 | |
| 15856 String profile; | |
| 15857 } | |
| 15858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15859 // for details. All rights reserved. Use of this source code is governed by a | |
| 15860 // BSD-style license that can be found in the LICENSE file. | |
| 15861 | |
| 15862 // WARNING: Do not edit - generated code. | |
| 15863 | |
| 15864 interface HTMLHeadingElement extends HTMLElement { | |
| 15865 | |
| 15866 String align; | |
| 15867 } | |
| 15868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15869 // for details. All rights reserved. Use of this source code is governed by a | |
| 15870 // BSD-style license that can be found in the LICENSE file. | |
| 15871 | |
| 15872 // WARNING: Do not edit - generated code. | |
| 15873 | |
| 15874 interface HTMLHtmlElement extends HTMLElement { | |
| 15875 | |
| 15876 String manifest; | |
| 15877 | |
| 15878 String version; | |
| 15879 } | |
| 15880 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15881 // for details. All rights reserved. Use of this source code is governed by a | |
| 15882 // BSD-style license that can be found in the LICENSE file. | |
| 15883 | |
| 15884 // WARNING: Do not edit - generated code. | |
| 15885 | |
| 15886 interface HTMLIFrameElement extends HTMLElement { | |
| 15887 | |
| 15888 String align; | |
| 15889 | |
| 15890 final Document contentDocument; | |
| 15891 | |
| 15892 final DOMWindow contentWindow; | |
| 15893 | |
| 15894 String frameBorder; | |
| 15895 | |
| 15896 String height; | |
| 15897 | |
| 15898 String longDesc; | |
| 15899 | |
| 15900 String marginHeight; | |
| 15901 | |
| 15902 String marginWidth; | |
| 15903 | |
| 15904 String name; | |
| 15905 | |
| 15906 String sandbox; | |
| 15907 | |
| 15908 String scrolling; | |
| 15909 | |
| 15910 String src; | |
| 15911 | |
| 15912 String srcdoc; | |
| 15913 | |
| 15914 String width; | |
| 15915 | |
| 15916 SVGDocument getSVGDocument(); | |
| 15917 } | |
| 15918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15919 // for details. All rights reserved. Use of this source code is governed by a | |
| 15920 // BSD-style license that can be found in the LICENSE file. | |
| 15921 | |
| 15922 // WARNING: Do not edit - generated code. | |
| 15923 | |
| 15924 interface HTMLImageElement extends HTMLElement { | |
| 15925 | |
| 15926 String align; | |
| 15927 | |
| 15928 String alt; | |
| 15929 | |
| 15930 String border; | |
| 15931 | |
| 15932 final bool complete; | |
| 15933 | |
| 15934 String crossOrigin; | |
| 15935 | |
| 15936 int height; | |
| 15937 | |
| 15938 int hspace; | |
| 15939 | |
| 15940 bool isMap; | |
| 15941 | |
| 15942 String longDesc; | |
| 15943 | |
| 15944 String lowsrc; | |
| 15945 | |
| 15946 String name; | |
| 15947 | |
| 15948 final int naturalHeight; | |
| 15949 | |
| 15950 final int naturalWidth; | |
| 15951 | |
| 15952 String src; | |
| 15953 | |
| 15954 String useMap; | |
| 15955 | |
| 15956 int vspace; | |
| 15957 | |
| 15958 int width; | |
| 15959 | |
| 15960 final int x; | |
| 15961 | |
| 15962 final int y; | |
| 15963 } | |
| 15964 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15965 // for details. All rights reserved. Use of this source code is governed by a | |
| 15966 // BSD-style license that can be found in the LICENSE file. | |
| 15967 | |
| 15968 // WARNING: Do not edit - generated code. | |
| 15969 | |
| 15970 interface HTMLInputElement extends HTMLElement { | |
| 15971 | |
| 15972 String accept; | |
| 15973 | |
| 15974 String align; | |
| 15975 | |
| 15976 String alt; | |
| 15977 | |
| 15978 String autocomplete; | |
| 15979 | |
| 15980 bool autofocus; | |
| 15981 | |
| 15982 bool checked; | |
| 15983 | |
| 15984 bool defaultChecked; | |
| 15985 | |
| 15986 String defaultValue; | |
| 15987 | |
| 15988 String dirName; | |
| 15989 | |
| 15990 bool disabled; | |
| 15991 | |
| 15992 FileList files; | |
| 15993 | |
| 15994 final HTMLFormElement form; | |
| 15995 | |
| 15996 String formAction; | |
| 15997 | |
| 15998 String formEnctype; | |
| 15999 | |
| 16000 String formMethod; | |
| 16001 | |
| 16002 bool formNoValidate; | |
| 16003 | |
| 16004 String formTarget; | |
| 16005 | |
| 16006 int height; | |
| 16007 | |
| 16008 bool incremental; | |
| 16009 | |
| 16010 bool indeterminate; | |
| 16011 | |
| 16012 final NodeList labels; | |
| 16013 | |
| 16014 String max; | |
| 16015 | |
| 16016 int maxLength; | |
| 16017 | |
| 16018 String min; | |
| 16019 | |
| 16020 bool multiple; | |
| 16021 | |
| 16022 String name; | |
| 16023 | |
| 16024 String pattern; | |
| 16025 | |
| 16026 String placeholder; | |
| 16027 | |
| 16028 bool readOnly; | |
| 16029 | |
| 16030 bool required; | |
| 16031 | |
| 16032 String selectionDirection; | |
| 16033 | |
| 16034 int selectionEnd; | |
| 16035 | |
| 16036 int selectionStart; | |
| 16037 | |
| 16038 int size; | |
| 16039 | |
| 16040 String src; | |
| 16041 | |
| 16042 String step; | |
| 16043 | |
| 16044 String type; | |
| 16045 | |
| 16046 String useMap; | |
| 16047 | |
| 16048 final String validationMessage; | |
| 16049 | |
| 16050 final ValidityState validity; | |
| 16051 | |
| 16052 String value; | |
| 16053 | |
| 16054 Date valueAsDate; | |
| 16055 | |
| 16056 num valueAsNumber; | |
| 16057 | |
| 16058 final EntryArray webkitEntries; | |
| 16059 | |
| 16060 bool webkitGrammar; | |
| 16061 | |
| 16062 bool webkitSpeech; | |
| 16063 | |
| 16064 bool webkitdirectory; | |
| 16065 | |
| 16066 int width; | |
| 16067 | |
| 16068 final bool willValidate; | |
| 16069 | |
| 16070 bool checkValidity(); | |
| 16071 | |
| 16072 void select(); | |
| 16073 | |
| 16074 void setCustomValidity(String error); | |
| 16075 | |
| 16076 void setSelectionRange(int start, int end, [String direction]); | |
| 16077 | |
| 16078 void stepDown([int n]); | |
| 16079 | |
| 16080 void stepUp([int n]); | |
| 16081 } | |
| 16082 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16083 // for details. All rights reserved. Use of this source code is governed by a | |
| 16084 // BSD-style license that can be found in the LICENSE file. | |
| 16085 | |
| 16086 // WARNING: Do not edit - generated code. | |
| 16087 | |
| 16088 interface HTMLKeygenElement extends HTMLElement { | |
| 16089 | |
| 16090 bool autofocus; | |
| 16091 | |
| 16092 String challenge; | |
| 16093 | |
| 16094 bool disabled; | |
| 16095 | |
| 16096 final HTMLFormElement form; | |
| 16097 | |
| 16098 String keytype; | |
| 16099 | |
| 16100 final NodeList labels; | |
| 16101 | |
| 16102 String name; | |
| 16103 | |
| 16104 final String type; | |
| 16105 | |
| 16106 final String validationMessage; | |
| 16107 | |
| 16108 final ValidityState validity; | |
| 16109 | |
| 16110 final bool willValidate; | |
| 16111 | |
| 16112 bool checkValidity(); | |
| 16113 | |
| 16114 void setCustomValidity(String error); | |
| 16115 } | |
| 16116 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16117 // for details. All rights reserved. Use of this source code is governed by a | |
| 16118 // BSD-style license that can be found in the LICENSE file. | |
| 16119 | |
| 16120 // WARNING: Do not edit - generated code. | |
| 16121 | |
| 16122 interface HTMLLIElement extends HTMLElement { | |
| 16123 | |
| 16124 String type; | |
| 16125 | |
| 16126 int value; | |
| 16127 } | |
| 16128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16129 // for details. All rights reserved. Use of this source code is governed by a | |
| 16130 // BSD-style license that can be found in the LICENSE file. | |
| 16131 | |
| 16132 // WARNING: Do not edit - generated code. | |
| 16133 | |
| 16134 interface HTMLLabelElement extends HTMLElement { | |
| 16135 | |
| 16136 final HTMLElement control; | |
| 16137 | |
| 16138 final HTMLFormElement form; | |
| 16139 | |
| 16140 String htmlFor; | |
| 16141 } | |
| 16142 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16143 // for details. All rights reserved. Use of this source code is governed by a | |
| 16144 // BSD-style license that can be found in the LICENSE file. | |
| 16145 | |
| 16146 // WARNING: Do not edit - generated code. | |
| 16147 | |
| 16148 interface HTMLLegendElement extends HTMLElement { | |
| 16149 | |
| 16150 String align; | |
| 16151 | |
| 16152 final HTMLFormElement form; | |
| 16153 } | |
| 16154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16155 // for details. All rights reserved. Use of this source code is governed by a | |
| 16156 // BSD-style license that can be found in the LICENSE file. | |
| 16157 | |
| 16158 // WARNING: Do not edit - generated code. | |
| 16159 | |
| 16160 interface HTMLLinkElement extends HTMLElement { | |
| 16161 | |
| 16162 String charset; | |
| 16163 | |
| 16164 bool disabled; | |
| 16165 | |
| 16166 String href; | |
| 16167 | |
| 16168 String hreflang; | |
| 16169 | |
| 16170 String media; | |
| 16171 | |
| 16172 String rel; | |
| 16173 | |
| 16174 String rev; | |
| 16175 | |
| 16176 final StyleSheet sheet; | |
| 16177 | |
| 16178 DOMSettableTokenList sizes; | |
| 16179 | |
| 16180 String target; | |
| 16181 | |
| 16182 String type; | |
| 16183 } | |
| 16184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16185 // for details. All rights reserved. Use of this source code is governed by a | |
| 16186 // BSD-style license that can be found in the LICENSE file. | |
| 16187 | |
| 16188 // WARNING: Do not edit - generated code. | |
| 16189 | |
| 16190 interface HTMLMapElement extends HTMLElement { | |
| 16191 | |
| 16192 final HTMLCollection areas; | |
| 16193 | |
| 16194 String name; | |
| 16195 } | |
| 16196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16197 // for details. All rights reserved. Use of this source code is governed by a | |
| 16198 // BSD-style license that can be found in the LICENSE file. | |
| 16199 | |
| 16200 // WARNING: Do not edit - generated code. | |
| 16201 | |
| 16202 interface HTMLMarqueeElement extends HTMLElement { | |
| 16203 | |
| 16204 String behavior; | |
| 16205 | |
| 16206 String bgColor; | |
| 16207 | |
| 16208 String direction; | |
| 16209 | |
| 16210 String height; | |
| 16211 | |
| 16212 int hspace; | |
| 16213 | |
| 16214 int loop; | |
| 16215 | |
| 16216 int scrollAmount; | |
| 16217 | |
| 16218 int scrollDelay; | |
| 16219 | |
| 16220 bool trueSpeed; | |
| 16221 | |
| 16222 int vspace; | |
| 16223 | |
| 16224 String width; | |
| 16225 | |
| 16226 void start(); | |
| 16227 | |
| 16228 void stop(); | |
| 16229 } | |
| 16230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16231 // for details. All rights reserved. Use of this source code is governed by a | |
| 16232 // BSD-style license that can be found in the LICENSE file. | |
| 16233 | |
| 16234 // WARNING: Do not edit - generated code. | |
| 16235 | |
| 16236 interface HTMLMediaElement extends HTMLElement { | |
| 16237 | |
| 16238 static final int EOS_DECODE_ERR = 2; | |
| 16239 | |
| 16240 static final int EOS_NETWORK_ERR = 1; | |
| 16241 | |
| 16242 static final int EOS_NO_ERROR = 0; | |
| 16243 | |
| 16244 static final int HAVE_CURRENT_DATA = 2; | |
| 16245 | |
| 16246 static final int HAVE_ENOUGH_DATA = 4; | |
| 16247 | |
| 16248 static final int HAVE_FUTURE_DATA = 3; | |
| 16249 | |
| 16250 static final int HAVE_METADATA = 1; | |
| 16251 | |
| 16252 static final int HAVE_NOTHING = 0; | |
| 16253 | |
| 16254 static final int NETWORK_EMPTY = 0; | |
| 16255 | |
| 16256 static final int NETWORK_IDLE = 1; | |
| 16257 | |
| 16258 static final int NETWORK_LOADING = 2; | |
| 16259 | |
| 16260 static final int NETWORK_NO_SOURCE = 3; | |
| 16261 | |
| 16262 static final int SOURCE_CLOSED = 0; | |
| 16263 | |
| 16264 static final int SOURCE_ENDED = 2; | |
| 16265 | |
| 16266 static final int SOURCE_OPEN = 1; | |
| 16267 | |
| 16268 bool autoplay; | |
| 16269 | |
| 16270 final TimeRanges buffered; | |
| 16271 | |
| 16272 MediaController controller; | |
| 16273 | |
| 16274 bool controls; | |
| 16275 | |
| 16276 final String currentSrc; | |
| 16277 | |
| 16278 num currentTime; | |
| 16279 | |
| 16280 bool defaultMuted; | |
| 16281 | |
| 16282 num defaultPlaybackRate; | |
| 16283 | |
| 16284 final num duration; | |
| 16285 | |
| 16286 final bool ended; | |
| 16287 | |
| 16288 final MediaError error; | |
| 16289 | |
| 16290 final num initialTime; | |
| 16291 | |
| 16292 bool loop; | |
| 16293 | |
| 16294 String mediaGroup; | |
| 16295 | |
| 16296 bool muted; | |
| 16297 | |
| 16298 final int networkState; | |
| 16299 | |
| 16300 final bool paused; | |
| 16301 | |
| 16302 num playbackRate; | |
| 16303 | |
| 16304 final TimeRanges played; | |
| 16305 | |
| 16306 String preload; | |
| 16307 | |
| 16308 final int readyState; | |
| 16309 | |
| 16310 final TimeRanges seekable; | |
| 16311 | |
| 16312 final bool seeking; | |
| 16313 | |
| 16314 String src; | |
| 16315 | |
| 16316 final num startTime; | |
| 16317 | |
| 16318 final TextTrackList textTracks; | |
| 16319 | |
| 16320 num volume; | |
| 16321 | |
| 16322 final int webkitAudioDecodedByteCount; | |
| 16323 | |
| 16324 bool webkitClosedCaptionsVisible; | |
| 16325 | |
| 16326 final bool webkitHasClosedCaptions; | |
| 16327 | |
| 16328 final String webkitMediaSourceURL; | |
| 16329 | |
| 16330 bool webkitPreservesPitch; | |
| 16331 | |
| 16332 final int webkitSourceState; | |
| 16333 | |
| 16334 final int webkitVideoDecodedByteCount; | |
| 16335 | |
| 16336 TextTrack addTextTrack(String kind, [String label, String language]); | |
| 16337 | |
| 16338 String canPlayType(String type, String keySystem); | |
| 16339 | |
| 16340 void load(); | |
| 16341 | |
| 16342 void pause(); | |
| 16343 | |
| 16344 void play(); | |
| 16345 | |
| 16346 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri
ng sessionId]); | |
| 16347 | |
| 16348 void webkitCancelKeyRequest(String keySystem, String sessionId); | |
| 16349 | |
| 16350 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]); | |
| 16351 | |
| 16352 void webkitSourceAbort(String id); | |
| 16353 | |
| 16354 void webkitSourceAddId(String id, String type); | |
| 16355 | |
| 16356 void webkitSourceAppend(String id, Uint8Array data); | |
| 16357 | |
| 16358 TimeRanges webkitSourceBuffered(String id); | |
| 16359 | |
| 16360 void webkitSourceEndOfStream(int status); | |
| 16361 | |
| 16362 void webkitSourceRemoveId(String id); | |
| 16363 } | |
| 16364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16365 // for details. All rights reserved. Use of this source code is governed by a | |
| 16366 // BSD-style license that can be found in the LICENSE file. | |
| 16367 | |
| 16368 // WARNING: Do not edit - generated code. | |
| 16369 | |
| 16370 interface HTMLMenuElement extends HTMLElement { | |
| 16371 | |
| 16372 bool compact; | |
| 16373 } | |
| 16374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16375 // for details. All rights reserved. Use of this source code is governed by a | |
| 16376 // BSD-style license that can be found in the LICENSE file. | |
| 16377 | |
| 16378 // WARNING: Do not edit - generated code. | |
| 16379 | |
| 16380 interface HTMLMetaElement extends HTMLElement { | |
| 16381 | |
| 16382 String content; | |
| 16383 | |
| 16384 String httpEquiv; | |
| 16385 | |
| 16386 String name; | |
| 16387 | |
| 16388 String scheme; | |
| 16389 } | |
| 16390 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16391 // for details. All rights reserved. Use of this source code is governed by a | |
| 16392 // BSD-style license that can be found in the LICENSE file. | |
| 16393 | |
| 16394 // WARNING: Do not edit - generated code. | |
| 16395 | |
| 16396 interface HTMLMeterElement extends HTMLElement { | |
| 16397 | |
| 16398 num high; | |
| 16399 | |
| 16400 final NodeList labels; | |
| 16401 | |
| 16402 num low; | |
| 16403 | |
| 16404 num max; | |
| 16405 | |
| 16406 num min; | |
| 16407 | |
| 16408 num optimum; | |
| 16409 | |
| 16410 num value; | |
| 16411 } | |
| 16412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16413 // for details. All rights reserved. Use of this source code is governed by a | |
| 16414 // BSD-style license that can be found in the LICENSE file. | |
| 16415 | |
| 16416 // WARNING: Do not edit - generated code. | |
| 16417 | |
| 16418 interface HTMLModElement extends HTMLElement { | |
| 16419 | |
| 16420 String cite; | |
| 16421 | |
| 16422 String dateTime; | |
| 16423 } | |
| 16424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16425 // for details. All rights reserved. Use of this source code is governed by a | |
| 16426 // BSD-style license that can be found in the LICENSE file. | |
| 16427 | |
| 16428 // WARNING: Do not edit - generated code. | |
| 16429 | |
| 16430 interface HTMLOListElement extends HTMLElement { | |
| 16431 | |
| 16432 bool compact; | |
| 16433 | |
| 16434 bool reversed; | |
| 16435 | |
| 16436 int start; | |
| 16437 | |
| 16438 String type; | |
| 16439 } | |
| 16440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16441 // for details. All rights reserved. Use of this source code is governed by a | |
| 16442 // BSD-style license that can be found in the LICENSE file. | |
| 16443 | |
| 16444 // WARNING: Do not edit - generated code. | |
| 16445 | |
| 16446 interface HTMLObjectElement extends HTMLElement { | |
| 16447 | |
| 16448 String align; | |
| 16449 | |
| 16450 String archive; | |
| 16451 | |
| 16452 String border; | |
| 16453 | |
| 16454 String code; | |
| 16455 | |
| 16456 String codeBase; | |
| 16457 | |
| 16458 String codeType; | |
| 16459 | |
| 16460 final Document contentDocument; | |
| 16461 | |
| 16462 String data; | |
| 16463 | |
| 16464 bool declare; | |
| 16465 | |
| 16466 final HTMLFormElement form; | |
| 16467 | |
| 16468 String height; | |
| 16469 | |
| 16470 int hspace; | |
| 16471 | |
| 16472 String name; | |
| 16473 | |
| 16474 String standby; | |
| 16475 | |
| 16476 String type; | |
| 16477 | |
| 16478 String useMap; | |
| 16479 | |
| 16480 final String validationMessage; | |
| 16481 | |
| 16482 final ValidityState validity; | |
| 16483 | |
| 16484 int vspace; | |
| 16485 | |
| 16486 String width; | |
| 16487 | |
| 16488 final bool willValidate; | |
| 16489 | |
| 16490 bool checkValidity(); | |
| 16491 | |
| 16492 SVGDocument getSVGDocument(); | |
| 16493 | |
| 16494 void setCustomValidity(String error); | |
| 16495 } | |
| 16496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16497 // for details. All rights reserved. Use of this source code is governed by a | |
| 16498 // BSD-style license that can be found in the LICENSE file. | |
| 16499 | |
| 16500 // WARNING: Do not edit - generated code. | |
| 16501 | |
| 16502 interface HTMLOptGroupElement extends HTMLElement { | |
| 16503 | |
| 16504 bool disabled; | |
| 16505 | |
| 16506 String label; | |
| 16507 } | |
| 16508 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16509 // for details. All rights reserved. Use of this source code is governed by a | |
| 16510 // BSD-style license that can be found in the LICENSE file. | |
| 16511 | |
| 16512 // WARNING: Do not edit - generated code. | |
| 16513 | |
| 16514 interface HTMLOptionElement extends HTMLElement default _HTMLOptionElementFactor
yProvider { | |
| 16515 | |
| 16516 HTMLOptionElement([String data, String value, bool defaultSelected, bool selec
ted]); | |
| 16517 | |
| 16518 bool defaultSelected; | |
| 16519 | |
| 16520 bool disabled; | |
| 16521 | |
| 16522 final HTMLFormElement form; | |
| 16523 | |
| 16524 final int index; | |
| 16525 | |
| 16526 String label; | |
| 16527 | |
| 16528 bool selected; | |
| 16529 | |
| 16530 String text; | |
| 16531 | |
| 16532 String value; | |
| 16533 } | |
| 16534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16535 // for details. All rights reserved. Use of this source code is governed by a | |
| 16536 // BSD-style license that can be found in the LICENSE file. | |
| 16537 | |
| 16538 // WARNING: Do not edit - generated code. | |
| 16539 | |
| 16540 interface HTMLOptionsCollection extends HTMLCollection { | |
| 16541 | |
| 16542 int length; | |
| 16543 | |
| 16544 int selectedIndex; | |
| 16545 | |
| 16546 void remove(int index); | |
| 16547 } | |
| 16548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16549 // for details. All rights reserved. Use of this source code is governed by a | |
| 16550 // BSD-style license that can be found in the LICENSE file. | |
| 16551 | |
| 16552 // WARNING: Do not edit - generated code. | |
| 16553 | |
| 16554 interface HTMLOutputElement extends HTMLElement { | |
| 16555 | |
| 16556 String defaultValue; | |
| 16557 | |
| 16558 final HTMLFormElement form; | |
| 16559 | |
| 16560 DOMSettableTokenList htmlFor; | |
| 16561 | |
| 16562 final NodeList labels; | |
| 16563 | |
| 16564 String name; | |
| 16565 | |
| 16566 final String type; | |
| 16567 | |
| 16568 final String validationMessage; | |
| 16569 | |
| 16570 final ValidityState validity; | |
| 16571 | |
| 16572 String value; | |
| 16573 | |
| 16574 final bool willValidate; | |
| 16575 | |
| 16576 bool checkValidity(); | |
| 16577 | |
| 16578 void setCustomValidity(String error); | |
| 16579 } | |
| 16580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16581 // for details. All rights reserved. Use of this source code is governed by a | |
| 16582 // BSD-style license that can be found in the LICENSE file. | |
| 16583 | |
| 16584 // WARNING: Do not edit - generated code. | |
| 16585 | |
| 16586 interface HTMLParagraphElement extends HTMLElement { | |
| 16587 | |
| 16588 String align; | |
| 16589 } | |
| 16590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16591 // for details. All rights reserved. Use of this source code is governed by a | |
| 16592 // BSD-style license that can be found in the LICENSE file. | |
| 16593 | |
| 16594 // WARNING: Do not edit - generated code. | |
| 16595 | |
| 16596 interface HTMLParamElement extends HTMLElement { | |
| 16597 | |
| 16598 String name; | |
| 16599 | |
| 16600 String type; | |
| 16601 | |
| 16602 String value; | |
| 16603 | |
| 16604 String valueType; | |
| 16605 } | |
| 16606 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16607 // for details. All rights reserved. Use of this source code is governed by a | |
| 16608 // BSD-style license that can be found in the LICENSE file. | |
| 16609 | |
| 16610 // WARNING: Do not edit - generated code. | |
| 16611 | |
| 16612 interface HTMLPreElement extends HTMLElement { | |
| 16613 | |
| 16614 int width; | |
| 16615 | |
| 16616 bool wrap; | |
| 16617 } | |
| 16618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16619 // for details. All rights reserved. Use of this source code is governed by a | |
| 16620 // BSD-style license that can be found in the LICENSE file. | |
| 16621 | |
| 16622 // WARNING: Do not edit - generated code. | |
| 16623 | |
| 16624 interface HTMLProgressElement extends HTMLElement { | |
| 16625 | |
| 16626 final NodeList labels; | |
| 16627 | |
| 16628 num max; | |
| 16629 | |
| 16630 final num position; | |
| 16631 | |
| 16632 num value; | |
| 16633 } | |
| 16634 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16635 // for details. All rights reserved. Use of this source code is governed by a | |
| 16636 // BSD-style license that can be found in the LICENSE file. | |
| 16637 | |
| 16638 // WARNING: Do not edit - generated code. | |
| 16639 | |
| 16640 interface HTMLQuoteElement extends HTMLElement { | |
| 16641 | |
| 16642 String cite; | |
| 16643 } | |
| 16644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16645 // for details. All rights reserved. Use of this source code is governed by a | |
| 16646 // BSD-style license that can be found in the LICENSE file. | |
| 16647 | |
| 16648 // WARNING: Do not edit - generated code. | |
| 16649 | |
| 16650 interface HTMLScriptElement extends HTMLElement { | |
| 16651 | |
| 16652 bool async; | |
| 16653 | |
| 16654 String charset; | |
| 16655 | |
| 16656 String crossOrigin; | |
| 16657 | |
| 16658 bool defer; | |
| 16659 | |
| 16660 String event; | |
| 16661 | |
| 16662 String htmlFor; | |
| 16663 | |
| 16664 String src; | |
| 16665 | |
| 16666 String text; | |
| 16667 | |
| 16668 String type; | |
| 16669 } | |
| 16670 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16671 // for details. All rights reserved. Use of this source code is governed by a | |
| 16672 // BSD-style license that can be found in the LICENSE file. | |
| 16673 | |
| 16674 // WARNING: Do not edit - generated code. | |
| 16675 | |
| 16676 interface HTMLSelectElement extends HTMLElement { | |
| 16677 | |
| 16678 bool autofocus; | |
| 16679 | |
| 16680 bool disabled; | |
| 16681 | |
| 16682 final HTMLFormElement form; | |
| 16683 | |
| 16684 final NodeList labels; | |
| 16685 | |
| 16686 int length; | |
| 16687 | |
| 16688 bool multiple; | |
| 16689 | |
| 16690 String name; | |
| 16691 | |
| 16692 final HTMLOptionsCollection options; | |
| 16693 | |
| 16694 bool required; | |
| 16695 | |
| 16696 int selectedIndex; | |
| 16697 | |
| 16698 final HTMLCollection selectedOptions; | |
| 16699 | |
| 16700 int size; | |
| 16701 | |
| 16702 final String type; | |
| 16703 | |
| 16704 final String validationMessage; | |
| 16705 | |
| 16706 final ValidityState validity; | |
| 16707 | |
| 16708 String value; | |
| 16709 | |
| 16710 final bool willValidate; | |
| 16711 | |
| 16712 void add(HTMLElement element, HTMLElement before); | |
| 16713 | |
| 16714 bool checkValidity(); | |
| 16715 | |
| 16716 Node item(int index); | |
| 16717 | |
| 16718 Node namedItem(String name); | |
| 16719 | |
| 16720 void remove(index_OR_option); | |
| 16721 | |
| 16722 void setCustomValidity(String error); | |
| 16723 } | |
| 16724 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16725 // for details. All rights reserved. Use of this source code is governed by a | |
| 16726 // BSD-style license that can be found in the LICENSE file. | |
| 16727 | |
| 16728 // WARNING: Do not edit - generated code. | |
| 16729 | |
| 16730 interface HTMLShadowElement extends HTMLElement { | |
| 16731 } | |
| 16732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16733 // for details. All rights reserved. Use of this source code is governed by a | |
| 16734 // BSD-style license that can be found in the LICENSE file. | |
| 16735 | |
| 16736 // WARNING: Do not edit - generated code. | |
| 16737 | |
| 16738 interface HTMLSourceElement extends HTMLElement { | |
| 16739 | |
| 16740 String media; | |
| 16741 | |
| 16742 String src; | |
| 16743 | |
| 16744 String type; | |
| 16745 } | |
| 16746 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16747 // for details. All rights reserved. Use of this source code is governed by a | |
| 16748 // BSD-style license that can be found in the LICENSE file. | |
| 16749 | |
| 16750 // WARNING: Do not edit - generated code. | |
| 16751 | |
| 16752 interface HTMLSpanElement extends HTMLElement { | |
| 16753 } | |
| 16754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16755 // for details. All rights reserved. Use of this source code is governed by a | |
| 16756 // BSD-style license that can be found in the LICENSE file. | |
| 16757 | |
| 16758 // WARNING: Do not edit - generated code. | |
| 16759 | |
| 16760 interface HTMLStyleElement extends HTMLElement { | |
| 16761 | |
| 16762 bool disabled; | |
| 16763 | |
| 16764 String media; | |
| 16765 | |
| 16766 bool scoped; | |
| 16767 | |
| 16768 final StyleSheet sheet; | |
| 16769 | |
| 16770 String type; | |
| 16771 } | |
| 16772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16773 // for details. All rights reserved. Use of this source code is governed by a | |
| 16774 // BSD-style license that can be found in the LICENSE file. | |
| 16775 | |
| 16776 // WARNING: Do not edit - generated code. | |
| 16777 | |
| 16778 interface HTMLTableCaptionElement extends HTMLElement { | |
| 16779 | |
| 16780 String align; | |
| 16781 } | |
| 16782 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16783 // for details. All rights reserved. Use of this source code is governed by a | |
| 16784 // BSD-style license that can be found in the LICENSE file. | |
| 16785 | |
| 16786 // WARNING: Do not edit - generated code. | |
| 16787 | |
| 16788 interface HTMLTableCellElement extends HTMLElement { | |
| 16789 | |
| 16790 String abbr; | |
| 16791 | |
| 16792 String align; | |
| 16793 | |
| 16794 String axis; | |
| 16795 | |
| 16796 String bgColor; | |
| 16797 | |
| 16798 final int cellIndex; | |
| 16799 | |
| 16800 String ch; | |
| 16801 | |
| 16802 String chOff; | |
| 16803 | |
| 16804 int colSpan; | |
| 16805 | |
| 16806 String headers; | |
| 16807 | |
| 16808 String height; | |
| 16809 | |
| 16810 bool noWrap; | |
| 16811 | |
| 16812 int rowSpan; | |
| 16813 | |
| 16814 String scope; | |
| 16815 | |
| 16816 String vAlign; | |
| 16817 | |
| 16818 String width; | |
| 16819 } | |
| 16820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16821 // for details. All rights reserved. Use of this source code is governed by a | |
| 16822 // BSD-style license that can be found in the LICENSE file. | |
| 16823 | |
| 16824 // WARNING: Do not edit - generated code. | |
| 16825 | |
| 16826 interface HTMLTableColElement extends HTMLElement { | |
| 16827 | |
| 16828 String align; | |
| 16829 | |
| 16830 String ch; | |
| 16831 | |
| 16832 String chOff; | |
| 16833 | |
| 16834 int span; | |
| 16835 | |
| 16836 String vAlign; | |
| 16837 | |
| 16838 String width; | |
| 16839 } | |
| 16840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16841 // for details. All rights reserved. Use of this source code is governed by a | |
| 16842 // BSD-style license that can be found in the LICENSE file. | |
| 16843 | |
| 16844 // WARNING: Do not edit - generated code. | |
| 16845 | |
| 16846 interface HTMLTableElement extends HTMLElement { | |
| 16847 | |
| 16848 String align; | |
| 16849 | |
| 16850 String bgColor; | |
| 16851 | |
| 16852 String border; | |
| 16853 | |
| 16854 HTMLTableCaptionElement caption; | |
| 16855 | |
| 16856 String cellPadding; | |
| 16857 | |
| 16858 String cellSpacing; | |
| 16859 | |
| 16860 String frame; | |
| 16861 | |
| 16862 final HTMLCollection rows; | |
| 16863 | |
| 16864 String rules; | |
| 16865 | |
| 16866 String summary; | |
| 16867 | |
| 16868 final HTMLCollection tBodies; | |
| 16869 | |
| 16870 HTMLTableSectionElement tFoot; | |
| 16871 | |
| 16872 HTMLTableSectionElement tHead; | |
| 16873 | |
| 16874 String width; | |
| 16875 | |
| 16876 HTMLElement createCaption(); | |
| 16877 | |
| 16878 HTMLElement createTBody(); | |
| 16879 | |
| 16880 HTMLElement createTFoot(); | |
| 16881 | |
| 16882 HTMLElement createTHead(); | |
| 16883 | |
| 16884 void deleteCaption(); | |
| 16885 | |
| 16886 void deleteRow(int index); | |
| 16887 | |
| 16888 void deleteTFoot(); | |
| 16889 | |
| 16890 void deleteTHead(); | |
| 16891 | |
| 16892 HTMLElement insertRow(int index); | |
| 16893 } | |
| 16894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16895 // for details. All rights reserved. Use of this source code is governed by a | |
| 16896 // BSD-style license that can be found in the LICENSE file. | |
| 16897 | |
| 16898 // WARNING: Do not edit - generated code. | |
| 16899 | |
| 16900 interface HTMLTableRowElement extends HTMLElement { | |
| 16901 | |
| 16902 String align; | |
| 16903 | |
| 16904 String bgColor; | |
| 16905 | |
| 16906 final HTMLCollection cells; | |
| 16907 | |
| 16908 String ch; | |
| 16909 | |
| 16910 String chOff; | |
| 16911 | |
| 16912 final int rowIndex; | |
| 16913 | |
| 16914 final int sectionRowIndex; | |
| 16915 | |
| 16916 String vAlign; | |
| 16917 | |
| 16918 void deleteCell(int index); | |
| 16919 | |
| 16920 HTMLElement insertCell(int index); | |
| 16921 } | |
| 16922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16923 // for details. All rights reserved. Use of this source code is governed by a | |
| 16924 // BSD-style license that can be found in the LICENSE file. | |
| 16925 | |
| 16926 // WARNING: Do not edit - generated code. | |
| 16927 | |
| 16928 interface HTMLTableSectionElement extends HTMLElement { | |
| 16929 | |
| 16930 String align; | |
| 16931 | |
| 16932 String ch; | |
| 16933 | |
| 16934 String chOff; | |
| 16935 | |
| 16936 final HTMLCollection rows; | |
| 16937 | |
| 16938 String vAlign; | |
| 16939 | |
| 16940 void deleteRow(int index); | |
| 16941 | |
| 16942 HTMLElement insertRow(int index); | |
| 16943 } | |
| 16944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 16945 // for details. All rights reserved. Use of this source code is governed by a | |
| 16946 // BSD-style license that can be found in the LICENSE file. | |
| 16947 | |
| 16948 // WARNING: Do not edit - generated code. | |
| 16949 | |
| 16950 interface HTMLTextAreaElement extends HTMLElement { | |
| 16951 | |
| 16952 bool autofocus; | |
| 16953 | |
| 16954 int cols; | |
| 16955 | |
| 16956 String defaultValue; | |
| 16957 | |
| 16958 String dirName; | |
| 16959 | |
| 16960 bool disabled; | |
| 16961 | |
| 16962 final HTMLFormElement form; | |
| 16963 | |
| 16964 final NodeList labels; | |
| 16965 | |
| 16966 int maxLength; | |
| 16967 | |
| 16968 String name; | |
| 16969 | |
| 16970 String placeholder; | |
| 16971 | |
| 16972 bool readOnly; | |
| 16973 | |
| 16974 bool required; | |
| 16975 | |
| 16976 int rows; | |
| 16977 | |
| 16978 String selectionDirection; | |
| 16979 | |
| 16980 int selectionEnd; | |
| 16981 | |
| 16982 int selectionStart; | |
| 16983 | |
| 16984 final int textLength; | |
| 16985 | |
| 16986 final String type; | |
| 16987 | |
| 16988 final String validationMessage; | |
| 16989 | |
| 16990 final ValidityState validity; | |
| 16991 | |
| 16992 String value; | |
| 16993 | |
| 16994 final bool willValidate; | |
| 16995 | |
| 16996 String wrap; | |
| 16997 | |
| 16998 bool checkValidity(); | |
| 16999 | |
| 17000 void select(); | |
| 17001 | |
| 17002 void setCustomValidity(String error); | |
| 17003 | |
| 17004 void setSelectionRange(int start, int end, [String direction]); | |
| 17005 } | |
| 17006 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17007 // for details. All rights reserved. Use of this source code is governed by a | |
| 17008 // BSD-style license that can be found in the LICENSE file. | |
| 17009 | |
| 17010 // WARNING: Do not edit - generated code. | |
| 17011 | |
| 17012 interface HTMLTitleElement extends HTMLElement { | |
| 17013 | |
| 17014 String text; | |
| 17015 } | |
| 17016 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17017 // for details. All rights reserved. Use of this source code is governed by a | |
| 17018 // BSD-style license that can be found in the LICENSE file. | |
| 17019 | |
| 17020 // WARNING: Do not edit - generated code. | |
| 17021 | |
| 17022 interface HTMLTrackElement extends HTMLElement { | |
| 17023 | |
| 17024 static final int ERROR = 3; | |
| 17025 | |
| 17026 static final int LOADED = 2; | |
| 17027 | |
| 17028 static final int LOADING = 1; | |
| 17029 | |
| 17030 static final int NONE = 0; | |
| 17031 | |
| 17032 bool defaultValue; | |
| 17033 | |
| 17034 String kind; | |
| 17035 | |
| 17036 String label; | |
| 17037 | |
| 17038 final int readyState; | |
| 17039 | |
| 17040 String src; | |
| 17041 | |
| 17042 String srclang; | |
| 17043 | |
| 17044 final TextTrack track; | |
| 17045 } | |
| 17046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17047 // for details. All rights reserved. Use of this source code is governed by a | |
| 17048 // BSD-style license that can be found in the LICENSE file. | |
| 17049 | |
| 17050 // WARNING: Do not edit - generated code. | |
| 17051 | |
| 17052 interface HTMLUListElement extends HTMLElement { | |
| 17053 | |
| 17054 bool compact; | |
| 17055 | |
| 17056 String type; | |
| 17057 } | |
| 17058 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17059 // for details. All rights reserved. Use of this source code is governed by a | |
| 17060 // BSD-style license that can be found in the LICENSE file. | |
| 17061 | |
| 17062 // WARNING: Do not edit - generated code. | |
| 17063 | |
| 17064 interface HTMLUnknownElement extends HTMLElement { | |
| 17065 } | |
| 17066 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17067 // for details. All rights reserved. Use of this source code is governed by a | |
| 17068 // BSD-style license that can be found in the LICENSE file. | |
| 17069 | |
| 17070 // WARNING: Do not edit - generated code. | |
| 17071 | |
| 17072 interface HTMLVideoElement extends HTMLMediaElement { | |
| 17073 | |
| 17074 int height; | |
| 17075 | |
| 17076 String poster; | |
| 17077 | |
| 17078 final int videoHeight; | |
| 17079 | |
| 17080 final int videoWidth; | |
| 17081 | |
| 17082 final int webkitDecodedFrameCount; | |
| 17083 | |
| 17084 final bool webkitDisplayingFullscreen; | |
| 17085 | |
| 17086 final int webkitDroppedFrameCount; | |
| 17087 | |
| 17088 final bool webkitSupportsFullscreen; | |
| 17089 | |
| 17090 int width; | |
| 17091 | |
| 17092 void webkitEnterFullScreen(); | |
| 17093 | |
| 17094 void webkitEnterFullscreen(); | |
| 17095 | |
| 17096 void webkitExitFullScreen(); | |
| 17097 | |
| 17098 void webkitExitFullscreen(); | |
| 17099 } | |
| 17100 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17101 // for details. All rights reserved. Use of this source code is governed by a | |
| 17102 // BSD-style license that can be found in the LICENSE file. | |
| 17103 | |
| 17104 // WARNING: Do not edit - generated code. | |
| 17105 | |
| 17106 interface HashChangeEvent extends Event { | |
| 17107 | |
| 17108 final String newURL; | |
| 17109 | |
| 17110 final String oldURL; | |
| 17111 | |
| 17112 void initHashChangeEvent(String type, bool canBubble, bool cancelable, String
oldURL, String newURL); | |
| 17113 } | |
| 17114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17115 // for details. All rights reserved. Use of this source code is governed by a | |
| 17116 // BSD-style license that can be found in the LICENSE file. | |
| 17117 | |
| 17118 // WARNING: Do not edit - generated code. | |
| 17119 | |
| 17120 interface History { | |
| 17121 | |
| 17122 final int length; | |
| 17123 | |
| 17124 final /*SerializedScriptValue*/ state; | |
| 17125 | |
| 17126 void back(); | |
| 17127 | |
| 17128 void forward(); | |
| 17129 | |
| 17130 void go(int distance); | |
| 17131 | |
| 17132 void pushState(Object data, String title, [String url]); | |
| 17133 | |
| 17134 void replaceState(Object data, String title, [String url]); | |
| 17135 } | |
| 17136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17137 // for details. All rights reserved. Use of this source code is governed by a | |
| 17138 // BSD-style license that can be found in the LICENSE file. | |
| 17139 | |
| 17140 // WARNING: Do not edit - generated code. | |
| 17141 | |
| 17142 interface IDBAny { | |
| 17143 } | |
| 17144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17145 // for details. All rights reserved. Use of this source code is governed by a | |
| 17146 // BSD-style license that can be found in the LICENSE file. | |
| 17147 | |
| 17148 // WARNING: Do not edit - generated code. | |
| 17149 | |
| 17150 interface IDBCursor { | |
| 17151 | |
| 17152 static final int NEXT = 0; | |
| 17153 | |
| 17154 static final int NEXT_NO_DUPLICATE = 1; | |
| 17155 | |
| 17156 static final int PREV = 2; | |
| 17157 | |
| 17158 static final int PREV_NO_DUPLICATE = 3; | |
| 17159 | |
| 17160 final String direction; | |
| 17161 | |
| 17162 final /*IDBKey*/ key; | |
| 17163 | |
| 17164 final /*IDBKey*/ primaryKey; | |
| 17165 | |
| 17166 final /*IDBAny*/ source; | |
| 17167 | |
| 17168 void advance(int count); | |
| 17169 | |
| 17170 void continueFunction([/*IDBKey*/ key]); | |
| 17171 | |
| 17172 IDBRequest delete(); | |
| 17173 | |
| 17174 IDBRequest update(/*SerializedScriptValue*/ value); | |
| 17175 } | |
| 17176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17177 // for details. All rights reserved. Use of this source code is governed by a | |
| 17178 // BSD-style license that can be found in the LICENSE file. | |
| 17179 | |
| 17180 // WARNING: Do not edit - generated code. | |
| 17181 | |
| 17182 interface IDBCursorWithValue extends IDBCursor { | |
| 17183 | |
| 17184 final /*IDBAny*/ value; | |
| 17185 } | |
| 17186 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17187 // for details. All rights reserved. Use of this source code is governed by a | |
| 17188 // BSD-style license that can be found in the LICENSE file. | |
| 17189 | |
| 17190 // WARNING: Do not edit - generated code. | |
| 17191 | |
| 17192 interface IDBDatabase extends EventTarget { | |
| 17193 | |
| 17194 final String name; | |
| 17195 | |
| 17196 final List<String> objectStoreNames; | |
| 17197 | |
| 17198 final String version; | |
| 17199 | |
| 17200 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 17201 | |
| 17202 void close(); | |
| 17203 | |
| 17204 IDBObjectStore createObjectStore(String name, [Map options]); | |
| 17205 | |
| 17206 void deleteObjectStore(String name); | |
| 17207 | |
| 17208 bool dispatchEvent(Event evt); | |
| 17209 | |
| 17210 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 17211 | |
| 17212 IDBVersionChangeRequest setVersion(String version); | |
| 17213 | |
| 17214 IDBTransaction transaction(storeName_OR_storeNames, String mode); | |
| 17215 } | |
| 17216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17217 // for details. All rights reserved. Use of this source code is governed by a | |
| 17218 // BSD-style license that can be found in the LICENSE file. | |
| 17219 | |
| 17220 // WARNING: Do not edit - generated code. | |
| 17221 | |
| 17222 interface IDBDatabaseException { | |
| 17223 | |
| 17224 static final int ABORT_ERR = 20; | |
| 17225 | |
| 17226 static final int CONSTRAINT_ERR = 4; | |
| 17227 | |
| 17228 static final int DATA_ERR = 5; | |
| 17229 | |
| 17230 static final int NON_TRANSIENT_ERR = 2; | |
| 17231 | |
| 17232 static final int NOT_ALLOWED_ERR = 6; | |
| 17233 | |
| 17234 static final int NOT_FOUND_ERR = 8; | |
| 17235 | |
| 17236 static final int NO_ERR = 0; | |
| 17237 | |
| 17238 static final int QUOTA_ERR = 22; | |
| 17239 | |
| 17240 static final int READ_ONLY_ERR = 9; | |
| 17241 | |
| 17242 static final int TIMEOUT_ERR = 23; | |
| 17243 | |
| 17244 static final int TRANSACTION_INACTIVE_ERR = 7; | |
| 17245 | |
| 17246 static final int UNKNOWN_ERR = 1; | |
| 17247 | |
| 17248 static final int VER_ERR = 12; | |
| 17249 | |
| 17250 final int code; | |
| 17251 | |
| 17252 final String message; | |
| 17253 | |
| 17254 final String name; | |
| 17255 | |
| 17256 String toString(); | |
| 17257 } | |
| 17258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17259 // for details. All rights reserved. Use of this source code is governed by a | |
| 17260 // BSD-style license that can be found in the LICENSE file. | |
| 17261 | |
| 17262 // WARNING: Do not edit - generated code. | |
| 17263 | |
| 17264 interface IDBFactory { | |
| 17265 | |
| 17266 int cmp(/*IDBKey*/ first, /*IDBKey*/ second); | |
| 17267 | |
| 17268 IDBVersionChangeRequest deleteDatabase(String name); | |
| 17269 | |
| 17270 IDBRequest open(String name); | |
| 17271 | |
| 17272 IDBRequest webkitGetDatabaseNames(); | |
| 17273 } | |
| 17274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17275 // for details. All rights reserved. Use of this source code is governed by a | |
| 17276 // BSD-style license that can be found in the LICENSE file. | |
| 17277 | |
| 17278 // WARNING: Do not edit - generated code. | |
| 17279 | |
| 17280 interface IDBIndex { | |
| 17281 | |
| 17282 final /*IDBAny*/ keyPath; | |
| 17283 | |
| 17284 final bool multiEntry; | |
| 17285 | |
| 17286 final String name; | |
| 17287 | |
| 17288 final IDBObjectStore objectStore; | |
| 17289 | |
| 17290 final bool unique; | |
| 17291 | |
| 17292 IDBRequest count([key_OR_range]); | |
| 17293 | |
| 17294 IDBRequest get(key); | |
| 17295 | |
| 17296 IDBRequest getKey(key); | |
| 17297 | |
| 17298 IDBRequest openCursor([key_OR_range, direction]); | |
| 17299 | |
| 17300 IDBRequest openKeyCursor([key_OR_range, direction]); | |
| 17301 } | |
| 17302 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17303 // for details. All rights reserved. Use of this source code is governed by a | |
| 17304 // BSD-style license that can be found in the LICENSE file. | |
| 17305 | |
| 17306 // WARNING: Do not edit - generated code. | |
| 17307 | |
| 17308 interface IDBKey { | |
| 17309 } | |
| 17310 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17311 // for details. All rights reserved. Use of this source code is governed by a | |
| 17312 // BSD-style license that can be found in the LICENSE file. | |
| 17313 | |
| 17314 // WARNING: Do not edit - generated code. | |
| 17315 | |
| 17316 interface IDBKeyRange default _IDBKeyRangeFactoryProvider { | |
| 17317 | |
| 17318 IDBKeyRange.only(/*IDBKey*/ value); | |
| 17319 | |
| 17320 IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open]); | |
| 17321 | |
| 17322 IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open]); | |
| 17323 | |
| 17324 IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, | |
| 17325 [bool lowerOpen, bool upperOpen]); | |
| 17326 | |
| 17327 | |
| 17328 final /*IDBKey*/ lower; | |
| 17329 | |
| 17330 final bool lowerOpen; | |
| 17331 | |
| 17332 final /*IDBKey*/ upper; | |
| 17333 | |
| 17334 final bool upperOpen; | |
| 17335 } | |
| 17336 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17337 // for details. All rights reserved. Use of this source code is governed by a | |
| 17338 // BSD-style license that can be found in the LICENSE file. | |
| 17339 | |
| 17340 // WARNING: Do not edit - generated code. | |
| 17341 | |
| 17342 interface IDBObjectStore { | |
| 17343 | |
| 17344 final bool autoIncrement; | |
| 17345 | |
| 17346 final List<String> indexNames; | |
| 17347 | |
| 17348 final /*IDBAny*/ keyPath; | |
| 17349 | |
| 17350 final String name; | |
| 17351 | |
| 17352 final IDBTransaction transaction; | |
| 17353 | |
| 17354 IDBRequest add(/*SerializedScriptValue*/ value, [/*IDBKey*/ key]); | |
| 17355 | |
| 17356 IDBRequest clear(); | |
| 17357 | |
| 17358 IDBRequest count([key_OR_range]); | |
| 17359 | |
| 17360 IDBIndex createIndex(String name, keyPath, [Map options]); | |
| 17361 | |
| 17362 IDBRequest delete(key_OR_keyRange); | |
| 17363 | |
| 17364 void deleteIndex(String name); | |
| 17365 | |
| 17366 IDBRequest getObject(key); | |
| 17367 | |
| 17368 IDBIndex index(String name); | |
| 17369 | |
| 17370 IDBRequest openCursor([key_OR_range, direction]); | |
| 17371 | |
| 17372 IDBRequest put(/*SerializedScriptValue*/ value, [/*IDBKey*/ key]); | |
| 17373 } | |
| 17374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17375 // for details. All rights reserved. Use of this source code is governed by a | |
| 17376 // BSD-style license that can be found in the LICENSE file. | |
| 17377 | |
| 17378 // WARNING: Do not edit - generated code. | |
| 17379 | |
| 17380 interface IDBRequest extends EventTarget { | |
| 17381 | |
| 17382 final DOMError error; | |
| 17383 | |
| 17384 final int errorCode; | |
| 17385 | |
| 17386 final String readyState; | |
| 17387 | |
| 17388 final /*IDBAny*/ result; | |
| 17389 | |
| 17390 final /*IDBAny*/ source; | |
| 17391 | |
| 17392 final IDBTransaction transaction; | |
| 17393 | |
| 17394 final String webkitErrorMessage; | |
| 17395 | |
| 17396 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 17397 | |
| 17398 bool dispatchEvent(Event evt); | |
| 17399 | |
| 17400 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 17401 } | |
| 17402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17403 // for details. All rights reserved. Use of this source code is governed by a | |
| 17404 // BSD-style license that can be found in the LICENSE file. | |
| 17405 | |
| 17406 // WARNING: Do not edit - generated code. | |
| 17407 | |
| 17408 interface IDBTransaction extends EventTarget { | |
| 17409 | |
| 17410 static final int READ_ONLY = 0; | |
| 17411 | |
| 17412 static final int READ_WRITE = 1; | |
| 17413 | |
| 17414 static final int VERSION_CHANGE = 2; | |
| 17415 | |
| 17416 final IDBDatabase db; | |
| 17417 | |
| 17418 final DOMError error; | |
| 17419 | |
| 17420 final String mode; | |
| 17421 | |
| 17422 void abort(); | |
| 17423 | |
| 17424 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 17425 | |
| 17426 bool dispatchEvent(Event evt); | |
| 17427 | |
| 17428 IDBObjectStore objectStore(String name); | |
| 17429 | |
| 17430 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 17431 } | |
| 17432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17433 // for details. All rights reserved. Use of this source code is governed by a | |
| 17434 // BSD-style license that can be found in the LICENSE file. | |
| 17435 | |
| 17436 // WARNING: Do not edit - generated code. | |
| 17437 | |
| 17438 interface IDBVersionChangeEvent extends Event { | |
| 17439 | |
| 17440 final String version; | |
| 17441 } | |
| 17442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17443 // for details. All rights reserved. Use of this source code is governed by a | |
| 17444 // BSD-style license that can be found in the LICENSE file. | |
| 17445 | |
| 17446 // WARNING: Do not edit - generated code. | |
| 17447 | |
| 17448 interface IDBVersionChangeRequest extends IDBRequest, EventTarget { | |
| 17449 } | |
| 17450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17451 // for details. All rights reserved. Use of this source code is governed by a | |
| 17452 // BSD-style license that can be found in the LICENSE file. | |
| 17453 | |
| 17454 // WARNING: Do not edit - generated code. | |
| 17455 | |
| 17456 typedef bool IceCallback(IceCandidate candidate, bool moreToFollow, PeerConnecti
on00 source); | |
| 17457 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17458 // for details. All rights reserved. Use of this source code is governed by a | |
| 17459 // BSD-style license that can be found in the LICENSE file. | |
| 17460 | |
| 17461 // WARNING: Do not edit - generated code. | |
| 17462 | |
| 17463 interface IceCandidate default _IceCandidateFactoryProvider { | |
| 17464 | |
| 17465 IceCandidate(String label, String candidateLine); | |
| 17466 | |
| 17467 final String label; | |
| 17468 | |
| 17469 String toSdp(); | |
| 17470 } | |
| 17471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17472 // for details. All rights reserved. Use of this source code is governed by a | |
| 17473 // BSD-style license that can be found in the LICENSE file. | |
| 17474 | |
| 17475 // WARNING: Do not edit - generated code. | |
| 17476 | |
| 17477 interface ImageData { | |
| 17478 | |
| 17479 final Uint8ClampedArray data; | |
| 17480 | |
| 17481 final int height; | |
| 17482 | |
| 17483 final int width; | |
| 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 Int16Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { | |
| 17492 | |
| 17493 Int16Array(int length); | |
| 17494 | |
| 17495 Int16Array.fromList(List<int> list); | |
| 17496 | |
| 17497 Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
| 17498 | |
| 17499 static final int BYTES_PER_ELEMENT = 2; | |
| 17500 | |
| 17501 final int length; | |
| 17502 | |
| 17503 void setElements(Object array, [int offset]); | |
| 17504 | |
| 17505 Int16Array subarray(int start, [int end]); | |
| 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 Int32Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { | |
| 17514 | |
| 17515 Int32Array(int length); | |
| 17516 | |
| 17517 Int32Array.fromList(List<int> list); | |
| 17518 | |
| 17519 Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
| 17520 | |
| 17521 static final int BYTES_PER_ELEMENT = 4; | |
| 17522 | |
| 17523 final int length; | |
| 17524 | |
| 17525 void setElements(Object array, [int offset]); | |
| 17526 | |
| 17527 Int32Array subarray(int start, [int end]); | |
| 17528 } | |
| 17529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17530 // for details. All rights reserved. Use of this source code is governed by a | |
| 17531 // BSD-style license that can be found in the LICENSE file. | |
| 17532 | |
| 17533 // WARNING: Do not edit - generated code. | |
| 17534 | |
| 17535 interface Int8Array extends ArrayBufferView, List<int> default _TypedArrayFactor
yProvider { | |
| 17536 | |
| 17537 Int8Array(int length); | |
| 17538 | |
| 17539 Int8Array.fromList(List<int> list); | |
| 17540 | |
| 17541 Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
| 17542 | |
| 17543 static final int BYTES_PER_ELEMENT = 1; | |
| 17544 | |
| 17545 final int length; | |
| 17546 | |
| 17547 void setElements(Object array, [int offset]); | |
| 17548 | |
| 17549 Int8Array subarray(int start, [int end]); | |
| 17550 } | |
| 17551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17552 // for details. All rights reserved. Use of this source code is governed by a | |
| 17553 // BSD-style license that can be found in the LICENSE file. | |
| 17554 | |
| 17555 // WARNING: Do not edit - generated code. | |
| 17556 | |
| 17557 interface JavaScriptAudioNode extends AudioNode, EventTarget { | |
| 17558 | |
| 17559 final int bufferSize; | |
| 17560 } | |
| 17561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17562 // for details. All rights reserved. Use of this source code is governed by a | |
| 17563 // BSD-style license that can be found in the LICENSE file. | |
| 17564 | |
| 17565 // WARNING: Do not edit - generated code. | |
| 17566 | |
| 17567 interface JavaScriptCallFrame { | |
| 17568 | |
| 17569 static final int CATCH_SCOPE = 4; | |
| 17570 | |
| 17571 static final int CLOSURE_SCOPE = 3; | |
| 17572 | |
| 17573 static final int GLOBAL_SCOPE = 0; | |
| 17574 | |
| 17575 static final int LOCAL_SCOPE = 1; | |
| 17576 | |
| 17577 static final int WITH_SCOPE = 2; | |
| 17578 | |
| 17579 final JavaScriptCallFrame caller; | |
| 17580 | |
| 17581 final int column; | |
| 17582 | |
| 17583 final String functionName; | |
| 17584 | |
| 17585 final int line; | |
| 17586 | |
| 17587 final List scopeChain; | |
| 17588 | |
| 17589 final int sourceID; | |
| 17590 | |
| 17591 final Object thisObject; | |
| 17592 | |
| 17593 final String type; | |
| 17594 | |
| 17595 void evaluate(String script); | |
| 17596 | |
| 17597 Object restart(); | |
| 17598 | |
| 17599 int scopeType(int scopeIndex); | |
| 17600 } | |
| 17601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17602 // for details. All rights reserved. Use of this source code is governed by a | |
| 17603 // BSD-style license that can be found in the LICENSE file. | |
| 17604 | |
| 17605 // WARNING: Do not edit - generated code. | |
| 17606 | |
| 17607 interface KeyboardEvent extends UIEvent { | |
| 17608 | |
| 17609 final bool altGraphKey; | |
| 17610 | |
| 17611 final bool altKey; | |
| 17612 | |
| 17613 final bool ctrlKey; | |
| 17614 | |
| 17615 final String keyIdentifier; | |
| 17616 | |
| 17617 final int keyLocation; | |
| 17618 | |
| 17619 final bool metaKey; | |
| 17620 | |
| 17621 final bool shiftKey; | |
| 17622 | |
| 17623 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); | |
| 17624 } | |
| 17625 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17626 // for details. All rights reserved. Use of this source code is governed by a | |
| 17627 // BSD-style license that can be found in the LICENSE file. | |
| 17628 | |
| 17629 // WARNING: Do not edit - generated code. | |
| 17630 | |
| 17631 interface LocalMediaStream extends MediaStream, EventTarget { | |
| 17632 | |
| 17633 void stop(); | |
| 17634 } | |
| 17635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17636 // for details. All rights reserved. Use of this source code is governed by a | |
| 17637 // BSD-style license that can be found in the LICENSE file. | |
| 17638 | |
| 17639 // WARNING: Do not edit - generated code. | |
| 17640 | |
| 17641 interface Location { | |
| 17642 | |
| 17643 final List<String> ancestorOrigins; | |
| 17644 | |
| 17645 String hash; | |
| 17646 | |
| 17647 String host; | |
| 17648 | |
| 17649 String hostname; | |
| 17650 | |
| 17651 String href; | |
| 17652 | |
| 17653 final String origin; | |
| 17654 | |
| 17655 String pathname; | |
| 17656 | |
| 17657 String port; | |
| 17658 | |
| 17659 String protocol; | |
| 17660 | |
| 17661 String search; | |
| 17662 | |
| 17663 void assign(String url); | |
| 17664 | |
| 17665 void reload(); | |
| 17666 | |
| 17667 void replace(String url); | |
| 17668 | |
| 17669 String toString(); | |
| 17670 } | |
| 17671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17672 // for details. All rights reserved. Use of this source code is governed by a | |
| 17673 // BSD-style license that can be found in the LICENSE file. | |
| 17674 | |
| 17675 // WARNING: Do not edit - generated code. | |
| 17676 | |
| 17677 interface MediaController extends EventTarget default _MediaControllerFactoryPro
vider { | |
| 17678 | |
| 17679 MediaController(); | |
| 17680 | |
| 17681 final TimeRanges buffered; | |
| 17682 | |
| 17683 num currentTime; | |
| 17684 | |
| 17685 num defaultPlaybackRate; | |
| 17686 | |
| 17687 final num duration; | |
| 17688 | |
| 17689 bool muted; | |
| 17690 | |
| 17691 final bool paused; | |
| 17692 | |
| 17693 num playbackRate; | |
| 17694 | |
| 17695 final TimeRanges played; | |
| 17696 | |
| 17697 final TimeRanges seekable; | |
| 17698 | |
| 17699 num volume; | |
| 17700 | |
| 17701 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 17702 | |
| 17703 bool dispatchEvent(Event evt); | |
| 17704 | |
| 17705 void pause(); | |
| 17706 | |
| 17707 void play(); | |
| 17708 | |
| 17709 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 17710 } | |
| 17711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17712 // for details. All rights reserved. Use of this source code is governed by a | |
| 17713 // BSD-style license that can be found in the LICENSE file. | |
| 17714 | |
| 17715 // WARNING: Do not edit - generated code. | |
| 17716 | |
| 17717 interface MediaElementAudioSourceNode extends AudioSourceNode { | |
| 17718 | |
| 17719 final HTMLMediaElement mediaElement; | |
| 17720 } | |
| 17721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17722 // for details. All rights reserved. Use of this source code is governed by a | |
| 17723 // BSD-style license that can be found in the LICENSE file. | |
| 17724 | |
| 17725 // WARNING: Do not edit - generated code. | |
| 17726 | |
| 17727 interface MediaError { | |
| 17728 | |
| 17729 static final int MEDIA_ERR_ABORTED = 1; | |
| 17730 | |
| 17731 static final int MEDIA_ERR_DECODE = 3; | |
| 17732 | |
| 17733 static final int MEDIA_ERR_ENCRYPTED = 5; | |
| 17734 | |
| 17735 static final int MEDIA_ERR_NETWORK = 2; | |
| 17736 | |
| 17737 static final int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | |
| 17738 | |
| 17739 final int code; | |
| 17740 } | |
| 17741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17742 // for details. All rights reserved. Use of this source code is governed by a | |
| 17743 // BSD-style license that can be found in the LICENSE file. | |
| 17744 | |
| 17745 // WARNING: Do not edit - generated code. | |
| 17746 | |
| 17747 interface MediaKeyError { | |
| 17748 | |
| 17749 static final int MEDIA_KEYERR_CLIENT = 2; | |
| 17750 | |
| 17751 static final int MEDIA_KEYERR_DOMAIN = 6; | |
| 17752 | |
| 17753 static final int MEDIA_KEYERR_HARDWARECHANGE = 5; | |
| 17754 | |
| 17755 static final int MEDIA_KEYERR_OUTPUT = 4; | |
| 17756 | |
| 17757 static final int MEDIA_KEYERR_SERVICE = 3; | |
| 17758 | |
| 17759 static final int MEDIA_KEYERR_UNKNOWN = 1; | |
| 17760 | |
| 17761 final int code; | |
| 17762 } | |
| 17763 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17764 // for details. All rights reserved. Use of this source code is governed by a | |
| 17765 // BSD-style license that can be found in the LICENSE file. | |
| 17766 | |
| 17767 // WARNING: Do not edit - generated code. | |
| 17768 | |
| 17769 interface MediaKeyEvent extends Event { | |
| 17770 | |
| 17771 final String defaultURL; | |
| 17772 | |
| 17773 final MediaKeyError errorCode; | |
| 17774 | |
| 17775 final Uint8Array initData; | |
| 17776 | |
| 17777 final String keySystem; | |
| 17778 | |
| 17779 final Uint8Array message; | |
| 17780 | |
| 17781 final String sessionId; | |
| 17782 | |
| 17783 final int systemCode; | |
| 17784 } | |
| 17785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17786 // for details. All rights reserved. Use of this source code is governed by a | |
| 17787 // BSD-style license that can be found in the LICENSE file. | |
| 17788 | |
| 17789 // WARNING: Do not edit - generated code. | |
| 17790 | |
| 17791 interface MediaList extends List<String> { | |
| 17792 | |
| 17793 final int length; | |
| 17794 | |
| 17795 String mediaText; | |
| 17796 | |
| 17797 void appendMedium(String newMedium); | |
| 17798 | |
| 17799 void deleteMedium(String oldMedium); | |
| 17800 | |
| 17801 String item(int index); | |
| 17802 } | |
| 17803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17804 // for details. All rights reserved. Use of this source code is governed by a | |
| 17805 // BSD-style license that can be found in the LICENSE file. | |
| 17806 | |
| 17807 // WARNING: Do not edit - generated code. | |
| 17808 | |
| 17809 interface MediaQueryList { | |
| 17810 | |
| 17811 final bool matches; | |
| 17812 | |
| 17813 final String media; | |
| 17814 | |
| 17815 void addListener(MediaQueryListListener listener); | |
| 17816 | |
| 17817 void removeListener(MediaQueryListListener listener); | |
| 17818 } | |
| 17819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17820 // for details. All rights reserved. Use of this source code is governed by a | |
| 17821 // BSD-style license that can be found in the LICENSE file. | |
| 17822 | |
| 17823 // WARNING: Do not edit - generated code. | |
| 17824 | |
| 17825 interface MediaQueryListListener { | |
| 17826 | |
| 17827 void queryChanged(MediaQueryList list); | |
| 17828 } | |
| 17829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17830 // for details. All rights reserved. Use of this source code is governed by a | |
| 17831 // BSD-style license that can be found in the LICENSE file. | |
| 17832 | |
| 17833 // WARNING: Do not edit - generated code. | |
| 17834 | |
| 17835 interface MediaStream extends EventTarget default _MediaStreamFactoryProvider { | |
| 17836 | |
| 17837 MediaStream(MediaStreamTrackList audioTracks, MediaStreamTrackList videoTracks
); | |
| 17838 | |
| 17839 static final int ENDED = 2; | |
| 17840 | |
| 17841 static final int LIVE = 1; | |
| 17842 | |
| 17843 final MediaStreamTrackList audioTracks; | |
| 17844 | |
| 17845 final String label; | |
| 17846 | |
| 17847 final int readyState; | |
| 17848 | |
| 17849 final MediaStreamTrackList videoTracks; | |
| 17850 | |
| 17851 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 17852 | |
| 17853 bool dispatchEvent(Event event); | |
| 17854 | |
| 17855 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 17856 } | |
| 17857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17858 // for details. All rights reserved. Use of this source code is governed by a | |
| 17859 // BSD-style license that can be found in the LICENSE file. | |
| 17860 | |
| 17861 // WARNING: Do not edit - generated code. | |
| 17862 | |
| 17863 interface MediaStreamEvent extends Event { | |
| 17864 | |
| 17865 final MediaStream stream; | |
| 17866 } | |
| 17867 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17868 // for details. All rights reserved. Use of this source code is governed by a | |
| 17869 // BSD-style license that can be found in the LICENSE file. | |
| 17870 | |
| 17871 // WARNING: Do not edit - generated code. | |
| 17872 | |
| 17873 interface MediaStreamList { | |
| 17874 | |
| 17875 final int length; | |
| 17876 | |
| 17877 MediaStream item(int index); | |
| 17878 } | |
| 17879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17880 // for details. All rights reserved. Use of this source code is governed by a | |
| 17881 // BSD-style license that can be found in the LICENSE file. | |
| 17882 | |
| 17883 // WARNING: Do not edit - generated code. | |
| 17884 | |
| 17885 interface MediaStreamTrack { | |
| 17886 | |
| 17887 bool enabled; | |
| 17888 | |
| 17889 final String kind; | |
| 17890 | |
| 17891 final String label; | |
| 17892 } | |
| 17893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17894 // for details. All rights reserved. Use of this source code is governed by a | |
| 17895 // BSD-style license that can be found in the LICENSE file. | |
| 17896 | |
| 17897 // WARNING: Do not edit - generated code. | |
| 17898 | |
| 17899 interface MediaStreamTrackEvent extends Event { | |
| 17900 | |
| 17901 final MediaStreamTrack track; | |
| 17902 } | |
| 17903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17904 // for details. All rights reserved. Use of this source code is governed by a | |
| 17905 // BSD-style license that can be found in the LICENSE file. | |
| 17906 | |
| 17907 // WARNING: Do not edit - generated code. | |
| 17908 | |
| 17909 interface MediaStreamTrackList extends EventTarget { | |
| 17910 | |
| 17911 final int length; | |
| 17912 | |
| 17913 void add(MediaStreamTrack track); | |
| 17914 | |
| 17915 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 17916 | |
| 17917 bool dispatchEvent(Event event); | |
| 17918 | |
| 17919 MediaStreamTrack item(int index); | |
| 17920 | |
| 17921 void remove(MediaStreamTrack track); | |
| 17922 | |
| 17923 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 17924 } | |
| 17925 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17926 // for details. All rights reserved. Use of this source code is governed by a | |
| 17927 // BSD-style license that can be found in the LICENSE file. | |
| 17928 | |
| 17929 // WARNING: Do not edit - generated code. | |
| 17930 | |
| 17931 interface MemoryInfo { | |
| 17932 | |
| 17933 final int jsHeapSizeLimit; | |
| 17934 | |
| 17935 final int totalJSHeapSize; | |
| 17936 | |
| 17937 final int usedJSHeapSize; | |
| 17938 } | |
| 17939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17940 // for details. All rights reserved. Use of this source code is governed by a | |
| 17941 // BSD-style license that can be found in the LICENSE file. | |
| 17942 | |
| 17943 // WARNING: Do not edit - generated code. | |
| 17944 | |
| 17945 interface MessageChannel default _MessageChannelFactoryProvider { | |
| 17946 | |
| 17947 MessageChannel(); | |
| 17948 | |
| 17949 final MessagePort port1; | |
| 17950 | |
| 17951 final MessagePort port2; | |
| 17952 } | |
| 17953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17954 // for details. All rights reserved. Use of this source code is governed by a | |
| 17955 // BSD-style license that can be found in the LICENSE file. | |
| 17956 | |
| 17957 // WARNING: Do not edit - generated code. | |
| 17958 | |
| 17959 interface MessageEvent extends Event { | |
| 17960 | |
| 17961 final Object data; | |
| 17962 | |
| 17963 final String lastEventId; | |
| 17964 | |
| 17965 final String origin; | |
| 17966 | |
| 17967 final List ports; | |
| 17968 | |
| 17969 final DOMWindow source; | |
| 17970 | |
| 17971 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O
bject dataArg, String originArg, String lastEventIdArg, DOMWindow sourceArg, Lis
t messagePorts); | |
| 17972 | |
| 17973 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable
Arg, Object dataArg, String originArg, String lastEventIdArg, DOMWindow sourceAr
g, List transferables); | |
| 17974 } | |
| 17975 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17976 // for details. All rights reserved. Use of this source code is governed by a | |
| 17977 // BSD-style license that can be found in the LICENSE file. | |
| 17978 | |
| 17979 // WARNING: Do not edit - generated code. | |
| 17980 | |
| 17981 interface MessagePort extends EventTarget { | |
| 17982 | |
| 17983 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 17984 | |
| 17985 void close(); | |
| 17986 | |
| 17987 bool dispatchEvent(Event evt); | |
| 17988 | |
| 17989 void postMessage(String message, [List messagePorts]); | |
| 17990 | |
| 17991 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 17992 | |
| 17993 void start(); | |
| 17994 | |
| 17995 void webkitPostMessage(String message, [List transfer]); | |
| 17996 } | |
| 17997 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 17998 // for details. All rights reserved. Use of this source code is governed by a | |
| 17999 // BSD-style license that can be found in the LICENSE file. | |
| 18000 | |
| 18001 // WARNING: Do not edit - generated code. | |
| 18002 | |
| 18003 interface Metadata { | |
| 18004 | |
| 18005 final Date modificationTime; | |
| 18006 | |
| 18007 final int size; | |
| 18008 } | |
| 18009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18010 // for details. All rights reserved. Use of this source code is governed by a | |
| 18011 // BSD-style license that can be found in the LICENSE file. | |
| 18012 | |
| 18013 // WARNING: Do not edit - generated code. | |
| 18014 | |
| 18015 typedef bool MetadataCallback(Metadata metadata); | |
| 18016 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18017 // for details. All rights reserved. Use of this source code is governed by a | |
| 18018 // BSD-style license that can be found in the LICENSE file. | |
| 18019 | |
| 18020 // WARNING: Do not edit - generated code. | |
| 18021 | |
| 18022 interface MouseEvent extends UIEvent { | |
| 18023 | |
| 18024 final bool altKey; | |
| 18025 | |
| 18026 final int button; | |
| 18027 | |
| 18028 final int clientX; | |
| 18029 | |
| 18030 final int clientY; | |
| 18031 | |
| 18032 final bool ctrlKey; | |
| 18033 | |
| 18034 final Clipboard dataTransfer; | |
| 18035 | |
| 18036 final Node fromElement; | |
| 18037 | |
| 18038 final bool metaKey; | |
| 18039 | |
| 18040 final int offsetX; | |
| 18041 | |
| 18042 final int offsetY; | |
| 18043 | |
| 18044 final EventTarget relatedTarget; | |
| 18045 | |
| 18046 final int screenX; | |
| 18047 | |
| 18048 final int screenY; | |
| 18049 | |
| 18050 final bool shiftKey; | |
| 18051 | |
| 18052 final Node toElement; | |
| 18053 | |
| 18054 final int webkitMovementX; | |
| 18055 | |
| 18056 final int webkitMovementY; | |
| 18057 | |
| 18058 final int x; | |
| 18059 | |
| 18060 final int y; | |
| 18061 | |
| 18062 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); | |
| 18063 } | |
| 18064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18065 // for details. All rights reserved. Use of this source code is governed by a | |
| 18066 // BSD-style license that can be found in the LICENSE file. | |
| 18067 | |
| 18068 // WARNING: Do not edit - generated code. | |
| 18069 | |
| 18070 typedef bool MutationCallback(List<MutationRecord> mutations, MutationObserver o
bserver); | |
| 18071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18072 // for details. All rights reserved. Use of this source code is governed by a | |
| 18073 // BSD-style license that can be found in the LICENSE file. | |
| 18074 | |
| 18075 // WARNING: Do not edit - generated code. | |
| 18076 | |
| 18077 interface MutationEvent extends Event { | |
| 18078 | |
| 18079 static final int ADDITION = 2; | |
| 18080 | |
| 18081 static final int MODIFICATION = 1; | |
| 18082 | |
| 18083 static final int REMOVAL = 3; | |
| 18084 | |
| 18085 final int attrChange; | |
| 18086 | |
| 18087 final String attrName; | |
| 18088 | |
| 18089 final String newValue; | |
| 18090 | |
| 18091 final String prevValue; | |
| 18092 | |
| 18093 final Node relatedNode; | |
| 18094 | |
| 18095 void initMutationEvent(String type, bool canBubble, bool cancelable, Node rela
tedNode, String prevValue, String newValue, String attrName, int attrChange); | |
| 18096 } | |
| 18097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18098 // for details. All rights reserved. Use of this source code is governed by a | |
| 18099 // BSD-style license that can be found in the LICENSE file. | |
| 18100 | |
| 18101 // WARNING: Do not edit - generated code. | |
| 18102 | |
| 18103 interface MutationObserver default _MutationObserverFactoryProvider { | |
| 18104 | |
| 18105 MutationObserver(MutationCallback callback); | |
| 18106 | |
| 18107 void disconnect(); | |
| 18108 | |
| 18109 void _observe(Node target, Map options); | |
| 18110 | |
| 18111 List<MutationRecord> takeRecords(); | |
| 18112 } | |
| 18113 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18114 // for details. All rights reserved. Use of this source code is governed by a | |
| 18115 // BSD-style license that can be found in the LICENSE file. | |
| 18116 | |
| 18117 // WARNING: Do not edit - generated code. | |
| 18118 | |
| 18119 interface MutationRecord { | |
| 18120 | |
| 18121 final NodeList addedNodes; | |
| 18122 | |
| 18123 final String attributeName; | |
| 18124 | |
| 18125 final String attributeNamespace; | |
| 18126 | |
| 18127 final Node nextSibling; | |
| 18128 | |
| 18129 final String oldValue; | |
| 18130 | |
| 18131 final Node previousSibling; | |
| 18132 | |
| 18133 final NodeList removedNodes; | |
| 18134 | |
| 18135 final Node target; | |
| 18136 | |
| 18137 final String type; | |
| 18138 } | |
| 18139 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18140 // for details. All rights reserved. Use of this source code is governed by a | |
| 18141 // BSD-style license that can be found in the LICENSE file. | |
| 18142 | |
| 18143 // WARNING: Do not edit - generated code. | |
| 18144 | |
| 18145 interface NamedNodeMap extends List<Node> { | |
| 18146 | |
| 18147 final int length; | |
| 18148 | |
| 18149 Node getNamedItem(String name); | |
| 18150 | |
| 18151 Node getNamedItemNS(String namespaceURI, String localName); | |
| 18152 | |
| 18153 Node item(int index); | |
| 18154 | |
| 18155 Node removeNamedItem(String name); | |
| 18156 | |
| 18157 Node removeNamedItemNS(String namespaceURI, String localName); | |
| 18158 | |
| 18159 Node setNamedItem(Node node); | |
| 18160 | |
| 18161 Node setNamedItemNS(Node node); | |
| 18162 } | |
| 18163 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18164 // for details. All rights reserved. Use of this source code is governed by a | |
| 18165 // BSD-style license that can be found in the LICENSE file. | |
| 18166 | |
| 18167 // WARNING: Do not edit - generated code. | |
| 18168 | |
| 18169 interface Navigator { | |
| 18170 | |
| 18171 final String appCodeName; | |
| 18172 | |
| 18173 final String appName; | |
| 18174 | |
| 18175 final String appVersion; | |
| 18176 | |
| 18177 final bool cookieEnabled; | |
| 18178 | |
| 18179 final Geolocation geolocation; | |
| 18180 | |
| 18181 final String language; | |
| 18182 | |
| 18183 final DOMMimeTypeArray mimeTypes; | |
| 18184 | |
| 18185 final bool onLine; | |
| 18186 | |
| 18187 final String platform; | |
| 18188 | |
| 18189 final DOMPluginArray plugins; | |
| 18190 | |
| 18191 final String product; | |
| 18192 | |
| 18193 final String productSub; | |
| 18194 | |
| 18195 final String userAgent; | |
| 18196 | |
| 18197 final String vendor; | |
| 18198 | |
| 18199 final String vendorSub; | |
| 18200 | |
| 18201 final BatteryManager webkitBattery; | |
| 18202 | |
| 18203 final GamepadList webkitGamepads; | |
| 18204 | |
| 18205 final PointerLock webkitPointer; | |
| 18206 | |
| 18207 void getStorageUpdates(); | |
| 18208 | |
| 18209 bool javaEnabled(); | |
| 18210 | |
| 18211 void webkitGetUserMedia(Map options, NavigatorUserMediaSuccessCallback success
Callback, [NavigatorUserMediaErrorCallback errorCallback]); | |
| 18212 } | |
| 18213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18214 // for details. All rights reserved. Use of this source code is governed by a | |
| 18215 // BSD-style license that can be found in the LICENSE file. | |
| 18216 | |
| 18217 // WARNING: Do not edit - generated code. | |
| 18218 | |
| 18219 interface NavigatorUserMediaError { | |
| 18220 | |
| 18221 static final int PERMISSION_DENIED = 1; | |
| 18222 | |
| 18223 final int code; | |
| 18224 } | |
| 18225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18226 // for details. All rights reserved. Use of this source code is governed by a | |
| 18227 // BSD-style license that can be found in the LICENSE file. | |
| 18228 | |
| 18229 // WARNING: Do not edit - generated code. | |
| 18230 | |
| 18231 typedef bool NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); | |
| 18232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18233 // for details. All rights reserved. Use of this source code is governed by a | |
| 18234 // BSD-style license that can be found in the LICENSE file. | |
| 18235 | |
| 18236 // WARNING: Do not edit - generated code. | |
| 18237 | |
| 18238 typedef bool NavigatorUserMediaSuccessCallback(LocalMediaStream stream); | |
| 18239 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18240 // for details. All rights reserved. Use of this source code is governed by a | |
| 18241 // BSD-style license that can be found in the LICENSE file. | |
| 18242 | |
| 18243 // WARNING: Do not edit - generated code. | |
| 18244 | |
| 18245 interface Node extends EventTarget { | |
| 18246 | |
| 18247 static final int ATTRIBUTE_NODE = 2; | |
| 18248 | |
| 18249 static final int CDATA_SECTION_NODE = 4; | |
| 18250 | |
| 18251 static final int COMMENT_NODE = 8; | |
| 18252 | |
| 18253 static final int DOCUMENT_FRAGMENT_NODE = 11; | |
| 18254 | |
| 18255 static final int DOCUMENT_NODE = 9; | |
| 18256 | |
| 18257 static final int DOCUMENT_POSITION_CONTAINED_BY = 0x10; | |
| 18258 | |
| 18259 static final int DOCUMENT_POSITION_CONTAINS = 0x08; | |
| 18260 | |
| 18261 static final int DOCUMENT_POSITION_DISCONNECTED = 0x01; | |
| 18262 | |
| 18263 static final int DOCUMENT_POSITION_FOLLOWING = 0x04; | |
| 18264 | |
| 18265 static final int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; | |
| 18266 | |
| 18267 static final int DOCUMENT_POSITION_PRECEDING = 0x02; | |
| 18268 | |
| 18269 static final int DOCUMENT_TYPE_NODE = 10; | |
| 18270 | |
| 18271 static final int ELEMENT_NODE = 1; | |
| 18272 | |
| 18273 static final int ENTITY_NODE = 6; | |
| 18274 | |
| 18275 static final int ENTITY_REFERENCE_NODE = 5; | |
| 18276 | |
| 18277 static final int NOTATION_NODE = 12; | |
| 18278 | |
| 18279 static final int PROCESSING_INSTRUCTION_NODE = 7; | |
| 18280 | |
| 18281 static final int TEXT_NODE = 3; | |
| 18282 | |
| 18283 final NamedNodeMap attributes; | |
| 18284 | |
| 18285 final String baseURI; | |
| 18286 | |
| 18287 final NodeList childNodes; | |
| 18288 | |
| 18289 final Node firstChild; | |
| 18290 | |
| 18291 final Node lastChild; | |
| 18292 | |
| 18293 final String localName; | |
| 18294 | |
| 18295 final String namespaceURI; | |
| 18296 | |
| 18297 final Node nextSibling; | |
| 18298 | |
| 18299 final String nodeName; | |
| 18300 | |
| 18301 final int nodeType; | |
| 18302 | |
| 18303 String nodeValue; | |
| 18304 | |
| 18305 final Document ownerDocument; | |
| 18306 | |
| 18307 final Element parentElement; | |
| 18308 | |
| 18309 final Node parentNode; | |
| 18310 | |
| 18311 String prefix; | |
| 18312 | |
| 18313 final Node previousSibling; | |
| 18314 | |
| 18315 String textContent; | |
| 18316 | |
| 18317 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 18318 | |
| 18319 Node appendChild(Node newChild); | |
| 18320 | |
| 18321 Node cloneNode(bool deep); | |
| 18322 | |
| 18323 int compareDocumentPosition(Node other); | |
| 18324 | |
| 18325 bool contains(Node other); | |
| 18326 | |
| 18327 bool dispatchEvent(Event event); | |
| 18328 | |
| 18329 bool hasAttributes(); | |
| 18330 | |
| 18331 bool hasChildNodes(); | |
| 18332 | |
| 18333 Node insertBefore(Node newChild, Node refChild); | |
| 18334 | |
| 18335 bool isDefaultNamespace(String namespaceURI); | |
| 18336 | |
| 18337 bool isEqualNode(Node other); | |
| 18338 | |
| 18339 bool isSameNode(Node other); | |
| 18340 | |
| 18341 bool isSupported(String feature, String version); | |
| 18342 | |
| 18343 String lookupNamespaceURI(String prefix); | |
| 18344 | |
| 18345 String lookupPrefix(String namespaceURI); | |
| 18346 | |
| 18347 void normalize(); | |
| 18348 | |
| 18349 Node removeChild(Node oldChild); | |
| 18350 | |
| 18351 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 18352 | |
| 18353 Node replaceChild(Node newChild, Node oldChild); | |
| 18354 } | |
| 18355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18356 // for details. All rights reserved. Use of this source code is governed by a | |
| 18357 // BSD-style license that can be found in the LICENSE file. | |
| 18358 | |
| 18359 // WARNING: Do not edit - generated code. | |
| 18360 | |
| 18361 interface NodeFilter { | |
| 18362 | |
| 18363 static final int FILTER_ACCEPT = 1; | |
| 18364 | |
| 18365 static final int FILTER_REJECT = 2; | |
| 18366 | |
| 18367 static final int FILTER_SKIP = 3; | |
| 18368 | |
| 18369 static final int SHOW_ALL = 0xFFFFFFFF; | |
| 18370 | |
| 18371 static final int SHOW_ATTRIBUTE = 0x00000002; | |
| 18372 | |
| 18373 static final int SHOW_CDATA_SECTION = 0x00000008; | |
| 18374 | |
| 18375 static final int SHOW_COMMENT = 0x00000080; | |
| 18376 | |
| 18377 static final int SHOW_DOCUMENT = 0x00000100; | |
| 18378 | |
| 18379 static final int SHOW_DOCUMENT_FRAGMENT = 0x00000400; | |
| 18380 | |
| 18381 static final int SHOW_DOCUMENT_TYPE = 0x00000200; | |
| 18382 | |
| 18383 static final int SHOW_ELEMENT = 0x00000001; | |
| 18384 | |
| 18385 static final int SHOW_ENTITY = 0x00000020; | |
| 18386 | |
| 18387 static final int SHOW_ENTITY_REFERENCE = 0x00000010; | |
| 18388 | |
| 18389 static final int SHOW_NOTATION = 0x00000800; | |
| 18390 | |
| 18391 static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | |
| 18392 | |
| 18393 static final int SHOW_TEXT = 0x00000004; | |
| 18394 | |
| 18395 int acceptNode(Node n); | |
| 18396 } | |
| 18397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18398 // for details. All rights reserved. Use of this source code is governed by a | |
| 18399 // BSD-style license that can be found in the LICENSE file. | |
| 18400 | |
| 18401 // WARNING: Do not edit - generated code. | |
| 18402 | |
| 18403 interface NodeIterator { | |
| 18404 | |
| 18405 final bool expandEntityReferences; | |
| 18406 | |
| 18407 final NodeFilter filter; | |
| 18408 | |
| 18409 final bool pointerBeforeReferenceNode; | |
| 18410 | |
| 18411 final Node referenceNode; | |
| 18412 | |
| 18413 final Node root; | |
| 18414 | |
| 18415 final int whatToShow; | |
| 18416 | |
| 18417 void detach(); | |
| 18418 | |
| 18419 Node nextNode(); | |
| 18420 | |
| 18421 Node previousNode(); | |
| 18422 } | |
| 18423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18424 // for details. All rights reserved. Use of this source code is governed by a | |
| 18425 // BSD-style license that can be found in the LICENSE file. | |
| 18426 | |
| 18427 // WARNING: Do not edit - generated code. | |
| 18428 | |
| 18429 interface NodeList extends List<Node> { | |
| 18430 | |
| 18431 final int length; | |
| 18432 | |
| 18433 Node item(int index); | |
| 18434 } | |
| 18435 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18436 // for details. All rights reserved. Use of this source code is governed by a | |
| 18437 // BSD-style license that can be found in the LICENSE file. | |
| 18438 | |
| 18439 // WARNING: Do not edit - generated code. | |
| 18440 | |
| 18441 interface Notation extends Node { | |
| 18442 | |
| 18443 final String publicId; | |
| 18444 | |
| 18445 final String systemId; | |
| 18446 } | |
| 18447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18448 // for details. All rights reserved. Use of this source code is governed by a | |
| 18449 // BSD-style license that can be found in the LICENSE file. | |
| 18450 | |
| 18451 // WARNING: Do not edit - generated code. | |
| 18452 | |
| 18453 interface Notification extends EventTarget default _NotificationFactoryProvider
{ | |
| 18454 | |
| 18455 Notification(String title, [Map options]); | |
| 18456 | |
| 18457 String dir; | |
| 18458 | |
| 18459 String replaceId; | |
| 18460 | |
| 18461 String tag; | |
| 18462 | |
| 18463 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 18464 | |
| 18465 void cancel(); | |
| 18466 | |
| 18467 void close(); | |
| 18468 | |
| 18469 bool dispatchEvent(Event evt); | |
| 18470 | |
| 18471 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 18472 | |
| 18473 void show(); | |
| 18474 } | |
| 18475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18476 // for details. All rights reserved. Use of this source code is governed by a | |
| 18477 // BSD-style license that can be found in the LICENSE file. | |
| 18478 | |
| 18479 // WARNING: Do not edit - generated code. | |
| 18480 | |
| 18481 interface NotificationCenter { | |
| 18482 | |
| 18483 int checkPermission(); | |
| 18484 | |
| 18485 Notification createHTMLNotification(String url); | |
| 18486 | |
| 18487 Notification createNotification(String iconUrl, String title, String body); | |
| 18488 | |
| 18489 void requestPermission(VoidCallback callback); | |
| 18490 } | |
| 18491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18492 // for details. All rights reserved. Use of this source code is governed by a | |
| 18493 // BSD-style license that can be found in the LICENSE file. | |
| 18494 | |
| 18495 // WARNING: Do not edit - generated code. | |
| 18496 | |
| 18497 typedef bool NotificationPermissionCallback(String permission); | |
| 18498 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18499 // for details. All rights reserved. Use of this source code is governed by a | |
| 18500 // BSD-style license that can be found in the LICENSE file. | |
| 18501 | |
| 18502 // WARNING: Do not edit - generated code. | |
| 18503 | |
| 18504 interface OESStandardDerivatives { | |
| 18505 | |
| 18506 static final int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | |
| 18507 } | |
| 18508 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18509 // for details. All rights reserved. Use of this source code is governed by a | |
| 18510 // BSD-style license that can be found in the LICENSE file. | |
| 18511 | |
| 18512 // WARNING: Do not edit - generated code. | |
| 18513 | |
| 18514 interface OESTextureFloat { | |
| 18515 } | |
| 18516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18517 // for details. All rights reserved. Use of this source code is governed by a | |
| 18518 // BSD-style license that can be found in the LICENSE file. | |
| 18519 | |
| 18520 // WARNING: Do not edit - generated code. | |
| 18521 | |
| 18522 interface OESVertexArrayObject { | |
| 18523 | |
| 18524 static final int VERTEX_ARRAY_BINDING_OES = 0x85B5; | |
| 18525 | |
| 18526 void bindVertexArrayOES(WebGLVertexArrayObjectOES arrayObject); | |
| 18527 | |
| 18528 WebGLVertexArrayObjectOES createVertexArrayOES(); | |
| 18529 | |
| 18530 void deleteVertexArrayOES(WebGLVertexArrayObjectOES arrayObject); | |
| 18531 | |
| 18532 bool isVertexArrayOES(WebGLVertexArrayObjectOES arrayObject); | |
| 18533 } | |
| 18534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18535 // for details. All rights reserved. Use of this source code is governed by a | |
| 18536 // BSD-style license that can be found in the LICENSE file. | |
| 18537 | |
| 18538 // WARNING: Do not edit - generated code. | |
| 18539 | |
| 18540 interface OfflineAudioCompletionEvent extends Event { | |
| 18541 | |
| 18542 final AudioBuffer renderedBuffer; | |
| 18543 } | |
| 18544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18545 // for details. All rights reserved. Use of this source code is governed by a | |
| 18546 // BSD-style license that can be found in the LICENSE file. | |
| 18547 | |
| 18548 // WARNING: Do not edit - generated code. | |
| 18549 | |
| 18550 interface Oscillator extends AudioSourceNode { | |
| 18551 | |
| 18552 static final int CUSTOM = 4; | |
| 18553 | |
| 18554 static final int FINISHED_STATE = 3; | |
| 18555 | |
| 18556 static final int PLAYING_STATE = 2; | |
| 18557 | |
| 18558 static final int SAWTOOTH = 2; | |
| 18559 | |
| 18560 static final int SCHEDULED_STATE = 1; | |
| 18561 | |
| 18562 static final int SINE = 0; | |
| 18563 | |
| 18564 static final int SQUARE = 1; | |
| 18565 | |
| 18566 static final int TRIANGLE = 3; | |
| 18567 | |
| 18568 static final int UNSCHEDULED_STATE = 0; | |
| 18569 | |
| 18570 final AudioParam detune; | |
| 18571 | |
| 18572 final AudioParam frequency; | |
| 18573 | |
| 18574 final int playbackState; | |
| 18575 | |
| 18576 int type; | |
| 18577 | |
| 18578 void noteOff(num when); | |
| 18579 | |
| 18580 void noteOn(num when); | |
| 18581 | |
| 18582 void setWaveTable(WaveTable waveTable); | |
| 18583 } | |
| 18584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18585 // for details. All rights reserved. Use of this source code is governed by a | |
| 18586 // BSD-style license that can be found in the LICENSE file. | |
| 18587 | |
| 18588 // WARNING: Do not edit - generated code. | |
| 18589 | |
| 18590 interface OverflowEvent extends Event { | |
| 18591 | |
| 18592 static final int BOTH = 2; | |
| 18593 | |
| 18594 static final int HORIZONTAL = 0; | |
| 18595 | |
| 18596 static final int VERTICAL = 1; | |
| 18597 | |
| 18598 final bool horizontalOverflow; | |
| 18599 | |
| 18600 final int orient; | |
| 18601 | |
| 18602 final bool verticalOverflow; | |
| 18603 } | |
| 18604 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18605 // for details. All rights reserved. Use of this source code is governed by a | |
| 18606 // BSD-style license that can be found in the LICENSE file. | |
| 18607 | |
| 18608 // WARNING: Do not edit - generated code. | |
| 18609 | |
| 18610 interface PagePopupController { | |
| 18611 | |
| 18612 void setValueAndClosePopup(int numberValue, String stringValue); | |
| 18613 } | |
| 18614 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18615 // for details. All rights reserved. Use of this source code is governed by a | |
| 18616 // BSD-style license that can be found in the LICENSE file. | |
| 18617 | |
| 18618 // WARNING: Do not edit - generated code. | |
| 18619 | |
| 18620 interface PageTransitionEvent extends Event { | |
| 18621 | |
| 18622 final bool persisted; | |
| 18623 } | |
| 18624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18625 // for details. All rights reserved. Use of this source code is governed by a | |
| 18626 // BSD-style license that can be found in the LICENSE file. | |
| 18627 | |
| 18628 // WARNING: Do not edit - generated code. | |
| 18629 | |
| 18630 interface PeerConnection00 extends EventTarget default _PeerConnection00FactoryP
rovider { | |
| 18631 | |
| 18632 PeerConnection00(String serverConfiguration, IceCallback iceCallback); | |
| 18633 | |
| 18634 static final int ACTIVE = 2; | |
| 18635 | |
| 18636 static final int CLOSED = 3; | |
| 18637 | |
| 18638 static final int ICE_CHECKING = 0x300; | |
| 18639 | |
| 18640 static final int ICE_CLOSED = 0x700; | |
| 18641 | |
| 18642 static final int ICE_COMPLETED = 0x500; | |
| 18643 | |
| 18644 static final int ICE_CONNECTED = 0x400; | |
| 18645 | |
| 18646 static final int ICE_FAILED = 0x600; | |
| 18647 | |
| 18648 static final int ICE_GATHERING = 0x100; | |
| 18649 | |
| 18650 static final int ICE_WAITING = 0x200; | |
| 18651 | |
| 18652 static final int NEW = 0; | |
| 18653 | |
| 18654 static final int OPENING = 1; | |
| 18655 | |
| 18656 static final int SDP_ANSWER = 0x300; | |
| 18657 | |
| 18658 static final int SDP_OFFER = 0x100; | |
| 18659 | |
| 18660 static final int SDP_PRANSWER = 0x200; | |
| 18661 | |
| 18662 final int iceState; | |
| 18663 | |
| 18664 final SessionDescription localDescription; | |
| 18665 | |
| 18666 final MediaStreamList localStreams; | |
| 18667 | |
| 18668 final int readyState; | |
| 18669 | |
| 18670 final SessionDescription remoteDescription; | |
| 18671 | |
| 18672 final MediaStreamList remoteStreams; | |
| 18673 | |
| 18674 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 18675 | |
| 18676 void addStream(MediaStream stream, [Map mediaStreamHints]); | |
| 18677 | |
| 18678 void close(); | |
| 18679 | |
| 18680 SessionDescription createAnswer(String offer, [Map mediaHints]); | |
| 18681 | |
| 18682 SessionDescription createOffer([Map mediaHints]); | |
| 18683 | |
| 18684 bool dispatchEvent(Event event); | |
| 18685 | |
| 18686 void processIceMessage(IceCandidate candidate); | |
| 18687 | |
| 18688 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 18689 | |
| 18690 void removeStream(MediaStream stream); | |
| 18691 | |
| 18692 void setLocalDescription(int action, SessionDescription desc); | |
| 18693 | |
| 18694 void setRemoteDescription(int action, SessionDescription desc); | |
| 18695 | |
| 18696 void startIce([Map iceOptions]); | |
| 18697 } | |
| 18698 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18699 // for details. All rights reserved. Use of this source code is governed by a | |
| 18700 // BSD-style license that can be found in the LICENSE file. | |
| 18701 | |
| 18702 // WARNING: Do not edit - generated code. | |
| 18703 | |
| 18704 interface Performance extends EventTarget { | |
| 18705 | |
| 18706 final MemoryInfo memory; | |
| 18707 | |
| 18708 final PerformanceNavigation navigation; | |
| 18709 | |
| 18710 final PerformanceTiming timing; | |
| 18711 | |
| 18712 num webkitNow(); | |
| 18713 } | |
| 18714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18715 // for details. All rights reserved. Use of this source code is governed by a | |
| 18716 // BSD-style license that can be found in the LICENSE file. | |
| 18717 | |
| 18718 // WARNING: Do not edit - generated code. | |
| 18719 | |
| 18720 interface PerformanceNavigation { | |
| 18721 | |
| 18722 static final int TYPE_BACK_FORWARD = 2; | |
| 18723 | |
| 18724 static final int TYPE_NAVIGATE = 0; | |
| 18725 | |
| 18726 static final int TYPE_RELOAD = 1; | |
| 18727 | |
| 18728 static final int TYPE_RESERVED = 255; | |
| 18729 | |
| 18730 final int redirectCount; | |
| 18731 | |
| 18732 final int type; | |
| 18733 } | |
| 18734 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18735 // for details. All rights reserved. Use of this source code is governed by a | |
| 18736 // BSD-style license that can be found in the LICENSE file. | |
| 18737 | |
| 18738 // WARNING: Do not edit - generated code. | |
| 18739 | |
| 18740 interface PerformanceTiming { | |
| 18741 | |
| 18742 final int connectEnd; | |
| 18743 | |
| 18744 final int connectStart; | |
| 18745 | |
| 18746 final int domComplete; | |
| 18747 | |
| 18748 final int domContentLoadedEventEnd; | |
| 18749 | |
| 18750 final int domContentLoadedEventStart; | |
| 18751 | |
| 18752 final int domInteractive; | |
| 18753 | |
| 18754 final int domLoading; | |
| 18755 | |
| 18756 final int domainLookupEnd; | |
| 18757 | |
| 18758 final int domainLookupStart; | |
| 18759 | |
| 18760 final int fetchStart; | |
| 18761 | |
| 18762 final int loadEventEnd; | |
| 18763 | |
| 18764 final int loadEventStart; | |
| 18765 | |
| 18766 final int navigationStart; | |
| 18767 | |
| 18768 final int redirectEnd; | |
| 18769 | |
| 18770 final int redirectStart; | |
| 18771 | |
| 18772 final int requestStart; | |
| 18773 | |
| 18774 final int responseEnd; | |
| 18775 | |
| 18776 final int responseStart; | |
| 18777 | |
| 18778 final int secureConnectionStart; | |
| 18779 | |
| 18780 final int unloadEventEnd; | |
| 18781 | |
| 18782 final int unloadEventStart; | |
| 18783 } | |
| 18784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18785 // for details. All rights reserved. Use of this source code is governed by a | |
| 18786 // BSD-style license that can be found in the LICENSE file. | |
| 18787 | |
| 18788 // WARNING: Do not edit - generated code. | |
| 18789 | |
| 18790 interface PointerLock { | |
| 18791 | |
| 18792 final bool isLocked; | |
| 18793 | |
| 18794 void lock(Element target, [VoidCallback successCallback, VoidCallback failureC
allback]); | |
| 18795 | |
| 18796 void unlock(); | |
| 18797 } | |
| 18798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18799 // for details. All rights reserved. Use of this source code is governed by a | |
| 18800 // BSD-style license that can be found in the LICENSE file. | |
| 18801 | |
| 18802 // WARNING: Do not edit - generated code. | |
| 18803 | |
| 18804 interface PopStateEvent extends Event { | |
| 18805 | |
| 18806 final Object state; | |
| 18807 } | |
| 18808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18809 // for details. All rights reserved. Use of this source code is governed by a | |
| 18810 // BSD-style license that can be found in the LICENSE file. | |
| 18811 | |
| 18812 // WARNING: Do not edit - generated code. | |
| 18813 | |
| 18814 typedef bool PositionCallback(Geoposition position); | |
| 18815 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18816 // for details. All rights reserved. Use of this source code is governed by a | |
| 18817 // BSD-style license that can be found in the LICENSE file. | |
| 18818 | |
| 18819 // WARNING: Do not edit - generated code. | |
| 18820 | |
| 18821 interface PositionError { | |
| 18822 | |
| 18823 static final int PERMISSION_DENIED = 1; | |
| 18824 | |
| 18825 static final int POSITION_UNAVAILABLE = 2; | |
| 18826 | |
| 18827 static final int TIMEOUT = 3; | |
| 18828 | |
| 18829 final int code; | |
| 18830 | |
| 18831 final String message; | |
| 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 typedef bool PositionErrorCallback(PositionError error); | |
| 18840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18841 // for details. All rights reserved. Use of this source code is governed by a | |
| 18842 // BSD-style license that can be found in the LICENSE file. | |
| 18843 | |
| 18844 // WARNING: Do not edit - generated code. | |
| 18845 | |
| 18846 interface ProcessingInstruction extends Node { | |
| 18847 | |
| 18848 String data; | |
| 18849 | |
| 18850 final StyleSheet sheet; | |
| 18851 | |
| 18852 final String target; | |
| 18853 } | |
| 18854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18855 // for details. All rights reserved. Use of this source code is governed by a | |
| 18856 // BSD-style license that can be found in the LICENSE file. | |
| 18857 | |
| 18858 // WARNING: Do not edit - generated code. | |
| 18859 | |
| 18860 interface ProgressEvent extends Event { | |
| 18861 | |
| 18862 final bool lengthComputable; | |
| 18863 | |
| 18864 final int loaded; | |
| 18865 | |
| 18866 final int total; | |
| 18867 } | |
| 18868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18869 // for details. All rights reserved. Use of this source code is governed by a | |
| 18870 // BSD-style license that can be found in the LICENSE file. | |
| 18871 | |
| 18872 // WARNING: Do not edit - generated code. | |
| 18873 | |
| 18874 interface RGBColor { | |
| 18875 | |
| 18876 final CSSPrimitiveValue blue; | |
| 18877 | |
| 18878 final CSSPrimitiveValue green; | |
| 18879 | |
| 18880 final CSSPrimitiveValue red; | |
| 18881 } | |
| 18882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18883 // for details. All rights reserved. Use of this source code is governed by a | |
| 18884 // BSD-style license that can be found in the LICENSE file. | |
| 18885 | |
| 18886 // WARNING: Do not edit - generated code. | |
| 18887 | |
| 18888 interface RadioNodeList extends NodeList { | |
| 18889 | |
| 18890 String value; | |
| 18891 } | |
| 18892 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18893 // for details. All rights reserved. Use of this source code is governed by a | |
| 18894 // BSD-style license that can be found in the LICENSE file. | |
| 18895 | |
| 18896 // WARNING: Do not edit - generated code. | |
| 18897 | |
| 18898 interface Range { | |
| 18899 | |
| 18900 static final int END_TO_END = 2; | |
| 18901 | |
| 18902 static final int END_TO_START = 3; | |
| 18903 | |
| 18904 static final int NODE_AFTER = 1; | |
| 18905 | |
| 18906 static final int NODE_BEFORE = 0; | |
| 18907 | |
| 18908 static final int NODE_BEFORE_AND_AFTER = 2; | |
| 18909 | |
| 18910 static final int NODE_INSIDE = 3; | |
| 18911 | |
| 18912 static final int START_TO_END = 1; | |
| 18913 | |
| 18914 static final int START_TO_START = 0; | |
| 18915 | |
| 18916 final bool collapsed; | |
| 18917 | |
| 18918 final Node commonAncestorContainer; | |
| 18919 | |
| 18920 final Node endContainer; | |
| 18921 | |
| 18922 final int endOffset; | |
| 18923 | |
| 18924 final Node startContainer; | |
| 18925 | |
| 18926 final int startOffset; | |
| 18927 | |
| 18928 DocumentFragment cloneContents(); | |
| 18929 | |
| 18930 Range cloneRange(); | |
| 18931 | |
| 18932 void collapse(bool toStart); | |
| 18933 | |
| 18934 int compareNode(Node refNode); | |
| 18935 | |
| 18936 int comparePoint(Node refNode, int offset); | |
| 18937 | |
| 18938 DocumentFragment createContextualFragment(String html); | |
| 18939 | |
| 18940 void deleteContents(); | |
| 18941 | |
| 18942 void detach(); | |
| 18943 | |
| 18944 void expand(String unit); | |
| 18945 | |
| 18946 DocumentFragment extractContents(); | |
| 18947 | |
| 18948 ClientRect getBoundingClientRect(); | |
| 18949 | |
| 18950 ClientRectList getClientRects(); | |
| 18951 | |
| 18952 void insertNode(Node newNode); | |
| 18953 | |
| 18954 bool intersectsNode(Node refNode); | |
| 18955 | |
| 18956 bool isPointInRange(Node refNode, int offset); | |
| 18957 | |
| 18958 void selectNode(Node refNode); | |
| 18959 | |
| 18960 void selectNodeContents(Node refNode); | |
| 18961 | |
| 18962 void setEnd(Node refNode, int offset); | |
| 18963 | |
| 18964 void setEndAfter(Node refNode); | |
| 18965 | |
| 18966 void setEndBefore(Node refNode); | |
| 18967 | |
| 18968 void setStart(Node refNode, int offset); | |
| 18969 | |
| 18970 void setStartAfter(Node refNode); | |
| 18971 | |
| 18972 void setStartBefore(Node refNode); | |
| 18973 | |
| 18974 void surroundContents(Node newParent); | |
| 18975 | |
| 18976 String toString(); | |
| 18977 } | |
| 18978 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18979 // for details. All rights reserved. Use of this source code is governed by a | |
| 18980 // BSD-style license that can be found in the LICENSE file. | |
| 18981 | |
| 18982 // WARNING: Do not edit - generated code. | |
| 18983 | |
| 18984 interface RangeException { | |
| 18985 | |
| 18986 static final int BAD_BOUNDARYPOINTS_ERR = 1; | |
| 18987 | |
| 18988 static final int INVALID_NODE_TYPE_ERR = 2; | |
| 18989 | |
| 18990 final int code; | |
| 18991 | |
| 18992 final String message; | |
| 18993 | |
| 18994 final String name; | |
| 18995 | |
| 18996 String toString(); | |
| 18997 } | |
| 18998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18999 // for details. All rights reserved. Use of this source code is governed by a | |
| 19000 // BSD-style license that can be found in the LICENSE file. | |
| 19001 | |
| 19002 // WARNING: Do not edit - generated code. | |
| 19003 | |
| 19004 interface RealtimeAnalyserNode extends AudioNode { | |
| 19005 | |
| 19006 int fftSize; | |
| 19007 | |
| 19008 final int frequencyBinCount; | |
| 19009 | |
| 19010 num maxDecibels; | |
| 19011 | |
| 19012 num minDecibels; | |
| 19013 | |
| 19014 num smoothingTimeConstant; | |
| 19015 | |
| 19016 void getByteFrequencyData(Uint8Array array); | |
| 19017 | |
| 19018 void getByteTimeDomainData(Uint8Array array); | |
| 19019 | |
| 19020 void getFloatFrequencyData(Float32Array array); | |
| 19021 } | |
| 19022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19023 // for details. All rights reserved. Use of this source code is governed by a | |
| 19024 // BSD-style license that can be found in the LICENSE file. | |
| 19025 | |
| 19026 // WARNING: Do not edit - generated code. | |
| 19027 | |
| 19028 interface Rect { | |
| 19029 | |
| 19030 final CSSPrimitiveValue bottom; | |
| 19031 | |
| 19032 final CSSPrimitiveValue left; | |
| 19033 | |
| 19034 final CSSPrimitiveValue right; | |
| 19035 | |
| 19036 final CSSPrimitiveValue top; | |
| 19037 } | |
| 19038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19039 // for details. All rights reserved. Use of this source code is governed by a | |
| 19040 // BSD-style license that can be found in the LICENSE file. | |
| 19041 | |
| 19042 // WARNING: Do not edit - generated code. | |
| 19043 | |
| 19044 typedef bool RequestAnimationFrameCallback(int time); | |
| 19045 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19046 // for details. All rights reserved. Use of this source code is governed by a | |
| 19047 // BSD-style license that can be found in the LICENSE file. | |
| 19048 | |
| 19049 // WARNING: Do not edit - generated code. | |
| 19050 | |
| 19051 interface SQLError { | |
| 19052 | |
| 19053 static final int CONSTRAINT_ERR = 6; | |
| 19054 | |
| 19055 static final int DATABASE_ERR = 1; | |
| 19056 | |
| 19057 static final int QUOTA_ERR = 4; | |
| 19058 | |
| 19059 static final int SYNTAX_ERR = 5; | |
| 19060 | |
| 19061 static final int TIMEOUT_ERR = 7; | |
| 19062 | |
| 19063 static final int TOO_LARGE_ERR = 3; | |
| 19064 | |
| 19065 static final int UNKNOWN_ERR = 0; | |
| 19066 | |
| 19067 static final int VERSION_ERR = 2; | |
| 19068 | |
| 19069 final int code; | |
| 19070 | |
| 19071 final String message; | |
| 19072 } | |
| 19073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19074 // for details. All rights reserved. Use of this source code is governed by a | |
| 19075 // BSD-style license that can be found in the LICENSE file. | |
| 19076 | |
| 19077 // WARNING: Do not edit - generated code. | |
| 19078 | |
| 19079 interface SQLException { | |
| 19080 | |
| 19081 static final int CONSTRAINT_ERR = 6; | |
| 19082 | |
| 19083 static final int DATABASE_ERR = 1; | |
| 19084 | |
| 19085 static final int QUOTA_ERR = 4; | |
| 19086 | |
| 19087 static final int SYNTAX_ERR = 5; | |
| 19088 | |
| 19089 static final int TIMEOUT_ERR = 7; | |
| 19090 | |
| 19091 static final int TOO_LARGE_ERR = 3; | |
| 19092 | |
| 19093 static final int UNKNOWN_ERR = 0; | |
| 19094 | |
| 19095 static final int VERSION_ERR = 2; | |
| 19096 | |
| 19097 final int code; | |
| 19098 | |
| 19099 final String message; | |
| 19100 } | |
| 19101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19102 // for details. All rights reserved. Use of this source code is governed by a | |
| 19103 // BSD-style license that can be found in the LICENSE file. | |
| 19104 | |
| 19105 // WARNING: Do not edit - generated code. | |
| 19106 | |
| 19107 interface SQLResultSet { | |
| 19108 | |
| 19109 final int insertId; | |
| 19110 | |
| 19111 final SQLResultSetRowList rows; | |
| 19112 | |
| 19113 final int rowsAffected; | |
| 19114 } | |
| 19115 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19116 // for details. All rights reserved. Use of this source code is governed by a | |
| 19117 // BSD-style license that can be found in the LICENSE file. | |
| 19118 | |
| 19119 // WARNING: Do not edit - generated code. | |
| 19120 | |
| 19121 interface SQLResultSetRowList { | |
| 19122 | |
| 19123 final int length; | |
| 19124 | |
| 19125 Object item(int index); | |
| 19126 } | |
| 19127 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19128 // for details. All rights reserved. Use of this source code is governed by a | |
| 19129 // BSD-style license that can be found in the LICENSE file. | |
| 19130 | |
| 19131 // WARNING: Do not edit - generated code. | |
| 19132 | |
| 19133 typedef bool SQLStatementCallback(SQLTransaction transaction, SQLResultSet resul
tSet); | |
| 19134 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19135 // for details. All rights reserved. Use of this source code is governed by a | |
| 19136 // BSD-style license that can be found in the LICENSE file. | |
| 19137 | |
| 19138 // WARNING: Do not edit - generated code. | |
| 19139 | |
| 19140 typedef bool SQLStatementErrorCallback(SQLTransaction transaction, SQLError erro
r); | |
| 19141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19142 // for details. All rights reserved. Use of this source code is governed by a | |
| 19143 // BSD-style license that can be found in the LICENSE file. | |
| 19144 | |
| 19145 // WARNING: Do not edit - generated code. | |
| 19146 | |
| 19147 interface SQLTransaction { | |
| 19148 } | |
| 19149 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19150 // for details. All rights reserved. Use of this source code is governed by a | |
| 19151 // BSD-style license that can be found in the LICENSE file. | |
| 19152 | |
| 19153 // WARNING: Do not edit - generated code. | |
| 19154 | |
| 19155 typedef bool SQLTransactionCallback(SQLTransaction transaction); | |
| 19156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19157 // for details. All rights reserved. Use of this source code is governed by a | |
| 19158 // BSD-style license that can be found in the LICENSE file. | |
| 19159 | |
| 19160 // WARNING: Do not edit - generated code. | |
| 19161 | |
| 19162 typedef bool SQLTransactionErrorCallback(SQLError error); | |
| 19163 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19164 // for details. All rights reserved. Use of this source code is governed by a | |
| 19165 // BSD-style license that can be found in the LICENSE file. | |
| 19166 | |
| 19167 // WARNING: Do not edit - generated code. | |
| 19168 | |
| 19169 interface SQLTransactionSync { | |
| 19170 } | |
| 19171 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19172 // for details. All rights reserved. Use of this source code is governed by a | |
| 19173 // BSD-style license that can be found in the LICENSE file. | |
| 19174 | |
| 19175 // WARNING: Do not edit - generated code. | |
| 19176 | |
| 19177 typedef bool SQLTransactionSyncCallback(SQLTransactionSync transaction); | |
| 19178 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19179 // for details. All rights reserved. Use of this source code is governed by a | |
| 19180 // BSD-style license that can be found in the LICENSE file. | |
| 19181 | |
| 19182 // WARNING: Do not edit - generated code. | |
| 19183 | |
| 19184 interface SVGAElement extends SVGElement, SVGURIReference, SVGTests, SVGLangSpac
e, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { | |
| 19185 | |
| 19186 final SVGAnimatedString target; | |
| 19187 } | |
| 19188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19189 // for details. All rights reserved. Use of this source code is governed by a | |
| 19190 // BSD-style license that can be found in the LICENSE file. | |
| 19191 | |
| 19192 // WARNING: Do not edit - generated code. | |
| 19193 | |
| 19194 interface SVGAltGlyphDefElement extends SVGElement { | |
| 19195 } | |
| 19196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19197 // for details. All rights reserved. Use of this source code is governed by a | |
| 19198 // BSD-style license that can be found in the LICENSE file. | |
| 19199 | |
| 19200 // WARNING: Do not edit - generated code. | |
| 19201 | |
| 19202 interface SVGAltGlyphElement extends SVGTextPositioningElement, SVGURIReference
{ | |
| 19203 | |
| 19204 String format; | |
| 19205 | |
| 19206 String glyphRef; | |
| 19207 } | |
| 19208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19209 // for details. All rights reserved. Use of this source code is governed by a | |
| 19210 // BSD-style license that can be found in the LICENSE file. | |
| 19211 | |
| 19212 // WARNING: Do not edit - generated code. | |
| 19213 | |
| 19214 interface SVGAltGlyphItemElement extends SVGElement { | |
| 19215 } | |
| 19216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19217 // for details. All rights reserved. Use of this source code is governed by a | |
| 19218 // BSD-style license that can be found in the LICENSE file. | |
| 19219 | |
| 19220 // WARNING: Do not edit - generated code. | |
| 19221 | |
| 19222 interface SVGAngle { | |
| 19223 | |
| 19224 static final int SVG_ANGLETYPE_DEG = 2; | |
| 19225 | |
| 19226 static final int SVG_ANGLETYPE_GRAD = 4; | |
| 19227 | |
| 19228 static final int SVG_ANGLETYPE_RAD = 3; | |
| 19229 | |
| 19230 static final int SVG_ANGLETYPE_UNKNOWN = 0; | |
| 19231 | |
| 19232 static final int SVG_ANGLETYPE_UNSPECIFIED = 1; | |
| 19233 | |
| 19234 final int unitType; | |
| 19235 | |
| 19236 num value; | |
| 19237 | |
| 19238 String valueAsString; | |
| 19239 | |
| 19240 num valueInSpecifiedUnits; | |
| 19241 | |
| 19242 void convertToSpecifiedUnits(int unitType); | |
| 19243 | |
| 19244 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits); | |
| 19245 } | |
| 19246 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19247 // for details. All rights reserved. Use of this source code is governed by a | |
| 19248 // BSD-style license that can be found in the LICENSE file. | |
| 19249 | |
| 19250 // WARNING: Do not edit - generated code. | |
| 19251 | |
| 19252 interface SVGAnimateColorElement extends SVGAnimationElement { | |
| 19253 } | |
| 19254 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19255 // for details. All rights reserved. Use of this source code is governed by a | |
| 19256 // BSD-style license that can be found in the LICENSE file. | |
| 19257 | |
| 19258 // WARNING: Do not edit - generated code. | |
| 19259 | |
| 19260 interface SVGAnimateElement extends SVGAnimationElement { | |
| 19261 } | |
| 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 SVGAnimateMotionElement extends SVGAnimationElement { | |
| 19269 } | |
| 19270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19271 // for details. All rights reserved. Use of this source code is governed by a | |
| 19272 // BSD-style license that can be found in the LICENSE file. | |
| 19273 | |
| 19274 // WARNING: Do not edit - generated code. | |
| 19275 | |
| 19276 interface SVGAnimateTransformElement extends SVGAnimationElement { | |
| 19277 } | |
| 19278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19279 // for details. All rights reserved. Use of this source code is governed by a | |
| 19280 // BSD-style license that can be found in the LICENSE file. | |
| 19281 | |
| 19282 // WARNING: Do not edit - generated code. | |
| 19283 | |
| 19284 interface SVGAnimatedAngle { | |
| 19285 | |
| 19286 final SVGAngle animVal; | |
| 19287 | |
| 19288 final SVGAngle baseVal; | |
| 19289 } | |
| 19290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19291 // for details. All rights reserved. Use of this source code is governed by a | |
| 19292 // BSD-style license that can be found in the LICENSE file. | |
| 19293 | |
| 19294 // WARNING: Do not edit - generated code. | |
| 19295 | |
| 19296 interface SVGAnimatedBoolean { | |
| 19297 | |
| 19298 final bool animVal; | |
| 19299 | |
| 19300 bool baseVal; | |
| 19301 } | |
| 19302 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19303 // for details. All rights reserved. Use of this source code is governed by a | |
| 19304 // BSD-style license that can be found in the LICENSE file. | |
| 19305 | |
| 19306 // WARNING: Do not edit - generated code. | |
| 19307 | |
| 19308 interface SVGAnimatedEnumeration { | |
| 19309 | |
| 19310 final int animVal; | |
| 19311 | |
| 19312 int baseVal; | |
| 19313 } | |
| 19314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19315 // for details. All rights reserved. Use of this source code is governed by a | |
| 19316 // BSD-style license that can be found in the LICENSE file. | |
| 19317 | |
| 19318 // WARNING: Do not edit - generated code. | |
| 19319 | |
| 19320 interface SVGAnimatedInteger { | |
| 19321 | |
| 19322 final int animVal; | |
| 19323 | |
| 19324 int baseVal; | |
| 19325 } | |
| 19326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19327 // for details. All rights reserved. Use of this source code is governed by a | |
| 19328 // BSD-style license that can be found in the LICENSE file. | |
| 19329 | |
| 19330 // WARNING: Do not edit - generated code. | |
| 19331 | |
| 19332 interface SVGAnimatedLength { | |
| 19333 | |
| 19334 final SVGLength animVal; | |
| 19335 | |
| 19336 final SVGLength baseVal; | |
| 19337 } | |
| 19338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19339 // for details. All rights reserved. Use of this source code is governed by a | |
| 19340 // BSD-style license that can be found in the LICENSE file. | |
| 19341 | |
| 19342 // WARNING: Do not edit - generated code. | |
| 19343 | |
| 19344 interface SVGAnimatedLengthList { | |
| 19345 | |
| 19346 final SVGLengthList animVal; | |
| 19347 | |
| 19348 final SVGLengthList baseVal; | |
| 19349 } | |
| 19350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19351 // for details. All rights reserved. Use of this source code is governed by a | |
| 19352 // BSD-style license that can be found in the LICENSE file. | |
| 19353 | |
| 19354 // WARNING: Do not edit - generated code. | |
| 19355 | |
| 19356 interface SVGAnimatedNumber { | |
| 19357 | |
| 19358 final num animVal; | |
| 19359 | |
| 19360 num baseVal; | |
| 19361 } | |
| 19362 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19363 // for details. All rights reserved. Use of this source code is governed by a | |
| 19364 // BSD-style license that can be found in the LICENSE file. | |
| 19365 | |
| 19366 // WARNING: Do not edit - generated code. | |
| 19367 | |
| 19368 interface SVGAnimatedNumberList { | |
| 19369 | |
| 19370 final SVGNumberList animVal; | |
| 19371 | |
| 19372 final SVGNumberList baseVal; | |
| 19373 } | |
| 19374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19375 // for details. All rights reserved. Use of this source code is governed by a | |
| 19376 // BSD-style license that can be found in the LICENSE file. | |
| 19377 | |
| 19378 // WARNING: Do not edit - generated code. | |
| 19379 | |
| 19380 interface SVGAnimatedPreserveAspectRatio { | |
| 19381 | |
| 19382 final SVGPreserveAspectRatio animVal; | |
| 19383 | |
| 19384 final SVGPreserveAspectRatio baseVal; | |
| 19385 } | |
| 19386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19387 // for details. All rights reserved. Use of this source code is governed by a | |
| 19388 // BSD-style license that can be found in the LICENSE file. | |
| 19389 | |
| 19390 // WARNING: Do not edit - generated code. | |
| 19391 | |
| 19392 interface SVGAnimatedRect { | |
| 19393 | |
| 19394 final SVGRect animVal; | |
| 19395 | |
| 19396 final SVGRect baseVal; | |
| 19397 } | |
| 19398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19399 // for details. All rights reserved. Use of this source code is governed by a | |
| 19400 // BSD-style license that can be found in the LICENSE file. | |
| 19401 | |
| 19402 // WARNING: Do not edit - generated code. | |
| 19403 | |
| 19404 interface SVGAnimatedString { | |
| 19405 | |
| 19406 final String animVal; | |
| 19407 | |
| 19408 String baseVal; | |
| 19409 } | |
| 19410 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19411 // for details. All rights reserved. Use of this source code is governed by a | |
| 19412 // BSD-style license that can be found in the LICENSE file. | |
| 19413 | |
| 19414 // WARNING: Do not edit - generated code. | |
| 19415 | |
| 19416 interface SVGAnimatedTransformList { | |
| 19417 | |
| 19418 final SVGTransformList animVal; | |
| 19419 | |
| 19420 final SVGTransformList baseVal; | |
| 19421 } | |
| 19422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19423 // for details. All rights reserved. Use of this source code is governed by a | |
| 19424 // BSD-style license that can be found in the LICENSE file. | |
| 19425 | |
| 19426 // WARNING: Do not edit - generated code. | |
| 19427 | |
| 19428 interface SVGAnimationElement extends SVGElement, SVGTests, SVGExternalResources
Required, ElementTimeControl { | |
| 19429 | |
| 19430 final SVGElement targetElement; | |
| 19431 | |
| 19432 num getCurrentTime(); | |
| 19433 | |
| 19434 num getSimpleDuration(); | |
| 19435 | |
| 19436 num getStartTime(); | |
| 19437 } | |
| 19438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19439 // for details. All rights reserved. Use of this source code is governed by a | |
| 19440 // BSD-style license that can be found in the LICENSE file. | |
| 19441 | |
| 19442 // WARNING: Do not edit - generated code. | |
| 19443 | |
| 19444 interface SVGCircleElement extends SVGElement, SVGTests, SVGLangSpace, SVGExtern
alResourcesRequired, SVGStylable, SVGTransformable { | |
| 19445 | |
| 19446 final SVGAnimatedLength cx; | |
| 19447 | |
| 19448 final SVGAnimatedLength cy; | |
| 19449 | |
| 19450 final SVGAnimatedLength r; | |
| 19451 } | |
| 19452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19453 // for details. All rights reserved. Use of this source code is governed by a | |
| 19454 // BSD-style license that can be found in the LICENSE file. | |
| 19455 | |
| 19456 // WARNING: Do not edit - generated code. | |
| 19457 | |
| 19458 interface SVGClipPathElement extends SVGElement, SVGTests, SVGLangSpace, SVGExte
rnalResourcesRequired, SVGStylable, SVGTransformable { | |
| 19459 | |
| 19460 final SVGAnimatedEnumeration clipPathUnits; | |
| 19461 } | |
| 19462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19463 // for details. All rights reserved. Use of this source code is governed by a | |
| 19464 // BSD-style license that can be found in the LICENSE file. | |
| 19465 | |
| 19466 // WARNING: Do not edit - generated code. | |
| 19467 | |
| 19468 interface SVGColor extends CSSValue { | |
| 19469 | |
| 19470 static final int SVG_COLORTYPE_CURRENTCOLOR = 3; | |
| 19471 | |
| 19472 static final int SVG_COLORTYPE_RGBCOLOR = 1; | |
| 19473 | |
| 19474 static final int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2; | |
| 19475 | |
| 19476 static final int SVG_COLORTYPE_UNKNOWN = 0; | |
| 19477 | |
| 19478 final int colorType; | |
| 19479 | |
| 19480 final RGBColor rgbColor; | |
| 19481 | |
| 19482 void setColor(int colorType, String rgbColor, String iccColor); | |
| 19483 | |
| 19484 void setRGBColor(String rgbColor); | |
| 19485 | |
| 19486 void setRGBColorICCColor(String rgbColor, String iccColor); | |
| 19487 } | |
| 19488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19489 // for details. All rights reserved. Use of this source code is governed by a | |
| 19490 // BSD-style license that can be found in the LICENSE file. | |
| 19491 | |
| 19492 // WARNING: Do not edit - generated code. | |
| 19493 | |
| 19494 interface SVGComponentTransferFunctionElement extends SVGElement { | |
| 19495 | |
| 19496 static final int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; | |
| 19497 | |
| 19498 static final int SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5; | |
| 19499 | |
| 19500 static final int SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1; | |
| 19501 | |
| 19502 static final int SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4; | |
| 19503 | |
| 19504 static final int SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2; | |
| 19505 | |
| 19506 static final int SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0; | |
| 19507 | |
| 19508 final SVGAnimatedNumber amplitude; | |
| 19509 | |
| 19510 final SVGAnimatedNumber exponent; | |
| 19511 | |
| 19512 final SVGAnimatedNumber intercept; | |
| 19513 | |
| 19514 final SVGAnimatedNumber offset; | |
| 19515 | |
| 19516 final SVGAnimatedNumber slope; | |
| 19517 | |
| 19518 final SVGAnimatedNumberList tableValues; | |
| 19519 | |
| 19520 final SVGAnimatedEnumeration type; | |
| 19521 } | |
| 19522 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19523 // for details. All rights reserved. Use of this source code is governed by a | |
| 19524 // BSD-style license that can be found in the LICENSE file. | |
| 19525 | |
| 19526 // WARNING: Do not edit - generated code. | |
| 19527 | |
| 19528 interface SVGCursorElement extends SVGElement, SVGURIReference, SVGTests, SVGExt
ernalResourcesRequired { | |
| 19529 | |
| 19530 final SVGAnimatedLength x; | |
| 19531 | |
| 19532 final SVGAnimatedLength y; | |
| 19533 } | |
| 19534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19535 // for details. All rights reserved. Use of this source code is governed by a | |
| 19536 // BSD-style license that can be found in the LICENSE file. | |
| 19537 | |
| 19538 // WARNING: Do not edit - generated code. | |
| 19539 | |
| 19540 interface SVGDefsElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable, SVGTransformable { | |
| 19541 } | |
| 19542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19543 // for details. All rights reserved. Use of this source code is governed by a | |
| 19544 // BSD-style license that can be found in the LICENSE file. | |
| 19545 | |
| 19546 // WARNING: Do not edit - generated code. | |
| 19547 | |
| 19548 interface SVGDescElement extends SVGElement, SVGLangSpace, SVGStylable { | |
| 19549 } | |
| 19550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19551 // for details. All rights reserved. Use of this source code is governed by a | |
| 19552 // BSD-style license that can be found in the LICENSE file. | |
| 19553 | |
| 19554 // WARNING: Do not edit - generated code. | |
| 19555 | |
| 19556 interface SVGDocument extends Document { | |
| 19557 | |
| 19558 final SVGSVGElement rootElement; | |
| 19559 | |
| 19560 Event createEvent(String eventType); | |
| 19561 } | |
| 19562 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19563 // for details. All rights reserved. Use of this source code is governed by a | |
| 19564 // BSD-style license that can be found in the LICENSE file. | |
| 19565 | |
| 19566 // WARNING: Do not edit - generated code. | |
| 19567 | |
| 19568 interface SVGElement extends Element { | |
| 19569 | |
| 19570 String id; | |
| 19571 | |
| 19572 final SVGSVGElement ownerSVGElement; | |
| 19573 | |
| 19574 final SVGElement viewportElement; | |
| 19575 | |
| 19576 String xmlbase; | |
| 19577 } | |
| 19578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19579 // for details. All rights reserved. Use of this source code is governed by a | |
| 19580 // BSD-style license that can be found in the LICENSE file. | |
| 19581 | |
| 19582 // WARNING: Do not edit - generated code. | |
| 19583 | |
| 19584 interface SVGElementInstance { | |
| 19585 | |
| 19586 final SVGElementInstanceList childNodes; | |
| 19587 | |
| 19588 final SVGElement correspondingElement; | |
| 19589 | |
| 19590 final SVGUseElement correspondingUseElement; | |
| 19591 | |
| 19592 final SVGElementInstance firstChild; | |
| 19593 | |
| 19594 final SVGElementInstance lastChild; | |
| 19595 | |
| 19596 final SVGElementInstance nextSibling; | |
| 19597 | |
| 19598 final SVGElementInstance parentNode; | |
| 19599 | |
| 19600 final SVGElementInstance previousSibling; | |
| 19601 | |
| 19602 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 19603 | |
| 19604 bool dispatchEvent(Event event); | |
| 19605 | |
| 19606 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 19607 } | |
| 19608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19609 // for details. All rights reserved. Use of this source code is governed by a | |
| 19610 // BSD-style license that can be found in the LICENSE file. | |
| 19611 | |
| 19612 // WARNING: Do not edit - generated code. | |
| 19613 | |
| 19614 interface SVGElementInstanceList { | |
| 19615 | |
| 19616 final int length; | |
| 19617 | |
| 19618 SVGElementInstance item(int index); | |
| 19619 } | |
| 19620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19621 // for details. All rights reserved. Use of this source code is governed by a | |
| 19622 // BSD-style license that can be found in the LICENSE file. | |
| 19623 | |
| 19624 // WARNING: Do not edit - generated code. | |
| 19625 | |
| 19626 interface SVGEllipseElement extends SVGElement, SVGTests, SVGLangSpace, SVGExter
nalResourcesRequired, SVGStylable, SVGTransformable { | |
| 19627 | |
| 19628 final SVGAnimatedLength cx; | |
| 19629 | |
| 19630 final SVGAnimatedLength cy; | |
| 19631 | |
| 19632 final SVGAnimatedLength rx; | |
| 19633 | |
| 19634 final SVGAnimatedLength ry; | |
| 19635 } | |
| 19636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19637 // for details. All rights reserved. Use of this source code is governed by a | |
| 19638 // BSD-style license that can be found in the LICENSE file. | |
| 19639 | |
| 19640 // WARNING: Do not edit - generated code. | |
| 19641 | |
| 19642 interface SVGException { | |
| 19643 | |
| 19644 static final int SVG_INVALID_VALUE_ERR = 1; | |
| 19645 | |
| 19646 static final int SVG_MATRIX_NOT_INVERTABLE = 2; | |
| 19647 | |
| 19648 static final int SVG_WRONG_TYPE_ERR = 0; | |
| 19649 | |
| 19650 final int code; | |
| 19651 | |
| 19652 final String message; | |
| 19653 | |
| 19654 final String name; | |
| 19655 | |
| 19656 String toString(); | |
| 19657 } | |
| 19658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19659 // for details. All rights reserved. Use of this source code is governed by a | |
| 19660 // BSD-style license that can be found in the LICENSE file. | |
| 19661 | |
| 19662 // WARNING: Do not edit - generated code. | |
| 19663 | |
| 19664 interface SVGExternalResourcesRequired { | |
| 19665 | |
| 19666 final SVGAnimatedBoolean externalResourcesRequired; | |
| 19667 } | |
| 19668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19669 // for details. All rights reserved. Use of this source code is governed by a | |
| 19670 // BSD-style license that can be found in the LICENSE file. | |
| 19671 | |
| 19672 // WARNING: Do not edit - generated code. | |
| 19673 | |
| 19674 interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttrib
utes { | |
| 19675 | |
| 19676 static final int SVG_FEBLEND_MODE_DARKEN = 4; | |
| 19677 | |
| 19678 static final int SVG_FEBLEND_MODE_LIGHTEN = 5; | |
| 19679 | |
| 19680 static final int SVG_FEBLEND_MODE_MULTIPLY = 2; | |
| 19681 | |
| 19682 static final int SVG_FEBLEND_MODE_NORMAL = 1; | |
| 19683 | |
| 19684 static final int SVG_FEBLEND_MODE_SCREEN = 3; | |
| 19685 | |
| 19686 static final int SVG_FEBLEND_MODE_UNKNOWN = 0; | |
| 19687 | |
| 19688 final SVGAnimatedString in1; | |
| 19689 | |
| 19690 final SVGAnimatedString in2; | |
| 19691 | |
| 19692 final SVGAnimatedEnumeration mode; | |
| 19693 } | |
| 19694 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19695 // for details. All rights reserved. Use of this source code is governed by a | |
| 19696 // BSD-style license that can be found in the LICENSE file. | |
| 19697 | |
| 19698 // WARNING: Do not edit - generated code. | |
| 19699 | |
| 19700 interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandard
Attributes { | |
| 19701 | |
| 19702 static final int SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3; | |
| 19703 | |
| 19704 static final int SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4; | |
| 19705 | |
| 19706 static final int SVG_FECOLORMATRIX_TYPE_MATRIX = 1; | |
| 19707 | |
| 19708 static final int SVG_FECOLORMATRIX_TYPE_SATURATE = 2; | |
| 19709 | |
| 19710 static final int SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0; | |
| 19711 | |
| 19712 final SVGAnimatedString in1; | |
| 19713 | |
| 19714 final SVGAnimatedEnumeration type; | |
| 19715 | |
| 19716 final SVGAnimatedNumberList values; | |
| 19717 } | |
| 19718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19719 // for details. All rights reserved. Use of this source code is governed by a | |
| 19720 // BSD-style license that can be found in the LICENSE file. | |
| 19721 | |
| 19722 // WARNING: Do not edit - generated code. | |
| 19723 | |
| 19724 interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveSt
andardAttributes { | |
| 19725 | |
| 19726 final SVGAnimatedString in1; | |
| 19727 } | |
| 19728 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19729 // for details. All rights reserved. Use of this source code is governed by a | |
| 19730 // BSD-style license that can be found in the LICENSE file. | |
| 19731 | |
| 19732 // WARNING: Do not edit - generated code. | |
| 19733 | |
| 19734 interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAt
tributes { | |
| 19735 | |
| 19736 static final int SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6; | |
| 19737 | |
| 19738 static final int SVG_FECOMPOSITE_OPERATOR_ATOP = 4; | |
| 19739 | |
| 19740 static final int SVG_FECOMPOSITE_OPERATOR_IN = 2; | |
| 19741 | |
| 19742 static final int SVG_FECOMPOSITE_OPERATOR_OUT = 3; | |
| 19743 | |
| 19744 static final int SVG_FECOMPOSITE_OPERATOR_OVER = 1; | |
| 19745 | |
| 19746 static final int SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0; | |
| 19747 | |
| 19748 static final int SVG_FECOMPOSITE_OPERATOR_XOR = 5; | |
| 19749 | |
| 19750 final SVGAnimatedString in1; | |
| 19751 | |
| 19752 final SVGAnimatedString in2; | |
| 19753 | |
| 19754 final SVGAnimatedNumber k1; | |
| 19755 | |
| 19756 final SVGAnimatedNumber k2; | |
| 19757 | |
| 19758 final SVGAnimatedNumber k3; | |
| 19759 | |
| 19760 final SVGAnimatedNumber k4; | |
| 19761 | |
| 19762 final SVGAnimatedEnumeration operator; | |
| 19763 } | |
| 19764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19765 // for details. All rights reserved. Use of this source code is governed by a | |
| 19766 // BSD-style license that can be found in the LICENSE file. | |
| 19767 | |
| 19768 // WARNING: Do not edit - generated code. | |
| 19769 | |
| 19770 interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStand
ardAttributes { | |
| 19771 | |
| 19772 static final int SVG_EDGEMODE_DUPLICATE = 1; | |
| 19773 | |
| 19774 static final int SVG_EDGEMODE_NONE = 3; | |
| 19775 | |
| 19776 static final int SVG_EDGEMODE_UNKNOWN = 0; | |
| 19777 | |
| 19778 static final int SVG_EDGEMODE_WRAP = 2; | |
| 19779 | |
| 19780 final SVGAnimatedNumber bias; | |
| 19781 | |
| 19782 final SVGAnimatedNumber divisor; | |
| 19783 | |
| 19784 final SVGAnimatedEnumeration edgeMode; | |
| 19785 | |
| 19786 final SVGAnimatedString in1; | |
| 19787 | |
| 19788 final SVGAnimatedNumberList kernelMatrix; | |
| 19789 | |
| 19790 final SVGAnimatedNumber kernelUnitLengthX; | |
| 19791 | |
| 19792 final SVGAnimatedNumber kernelUnitLengthY; | |
| 19793 | |
| 19794 final SVGAnimatedInteger orderX; | |
| 19795 | |
| 19796 final SVGAnimatedInteger orderY; | |
| 19797 | |
| 19798 final SVGAnimatedBoolean preserveAlpha; | |
| 19799 | |
| 19800 final SVGAnimatedInteger targetX; | |
| 19801 | |
| 19802 final SVGAnimatedInteger targetY; | |
| 19803 } | |
| 19804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19805 // for details. All rights reserved. Use of this source code is governed by a | |
| 19806 // BSD-style license that can be found in the LICENSE file. | |
| 19807 | |
| 19808 // WARNING: Do not edit - generated code. | |
| 19809 | |
| 19810 interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStan
dardAttributes { | |
| 19811 | |
| 19812 final SVGAnimatedNumber diffuseConstant; | |
| 19813 | |
| 19814 final SVGAnimatedString in1; | |
| 19815 | |
| 19816 final SVGAnimatedNumber kernelUnitLengthX; | |
| 19817 | |
| 19818 final SVGAnimatedNumber kernelUnitLengthY; | |
| 19819 | |
| 19820 final SVGAnimatedNumber surfaceScale; | |
| 19821 } | |
| 19822 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19823 // for details. All rights reserved. Use of this source code is governed by a | |
| 19824 // BSD-style license that can be found in the LICENSE file. | |
| 19825 | |
| 19826 // WARNING: Do not edit - generated code. | |
| 19827 | |
| 19828 interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStan
dardAttributes { | |
| 19829 | |
| 19830 static final int SVG_CHANNEL_A = 4; | |
| 19831 | |
| 19832 static final int SVG_CHANNEL_B = 3; | |
| 19833 | |
| 19834 static final int SVG_CHANNEL_G = 2; | |
| 19835 | |
| 19836 static final int SVG_CHANNEL_R = 1; | |
| 19837 | |
| 19838 static final int SVG_CHANNEL_UNKNOWN = 0; | |
| 19839 | |
| 19840 final SVGAnimatedString in1; | |
| 19841 | |
| 19842 final SVGAnimatedString in2; | |
| 19843 | |
| 19844 final SVGAnimatedNumber scale; | |
| 19845 | |
| 19846 final SVGAnimatedEnumeration xChannelSelector; | |
| 19847 | |
| 19848 final SVGAnimatedEnumeration yChannelSelector; | |
| 19849 } | |
| 19850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19851 // for details. All rights reserved. Use of this source code is governed by a | |
| 19852 // BSD-style license that can be found in the LICENSE file. | |
| 19853 | |
| 19854 // WARNING: Do not edit - generated code. | |
| 19855 | |
| 19856 interface SVGFEDistantLightElement extends SVGElement { | |
| 19857 | |
| 19858 final SVGAnimatedNumber azimuth; | |
| 19859 | |
| 19860 final SVGAnimatedNumber elevation; | |
| 19861 } | |
| 19862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19863 // for details. All rights reserved. Use of this source code is governed by a | |
| 19864 // BSD-style license that can be found in the LICENSE file. | |
| 19865 | |
| 19866 // WARNING: Do not edit - generated code. | |
| 19867 | |
| 19868 interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardA
ttributes { | |
| 19869 | |
| 19870 final SVGAnimatedNumber dx; | |
| 19871 | |
| 19872 final SVGAnimatedNumber dy; | |
| 19873 | |
| 19874 final SVGAnimatedString in1; | |
| 19875 | |
| 19876 final SVGAnimatedNumber stdDeviationX; | |
| 19877 | |
| 19878 final SVGAnimatedNumber stdDeviationY; | |
| 19879 | |
| 19880 void setStdDeviation(num stdDeviationX, num stdDeviationY); | |
| 19881 } | |
| 19882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19883 // for details. All rights reserved. Use of this source code is governed by a | |
| 19884 // BSD-style license that can be found in the LICENSE file. | |
| 19885 | |
| 19886 // WARNING: Do not edit - generated code. | |
| 19887 | |
| 19888 interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttrib
utes { | |
| 19889 } | |
| 19890 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19891 // for details. All rights reserved. Use of this source code is governed by a | |
| 19892 // BSD-style license that can be found in the LICENSE file. | |
| 19893 | |
| 19894 // WARNING: Do not edit - generated code. | |
| 19895 | |
| 19896 interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement { | |
| 19897 } | |
| 19898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19899 // for details. All rights reserved. Use of this source code is governed by a | |
| 19900 // BSD-style license that can be found in the LICENSE file. | |
| 19901 | |
| 19902 // WARNING: Do not edit - generated code. | |
| 19903 | |
| 19904 interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement { | |
| 19905 } | |
| 19906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19907 // for details. All rights reserved. Use of this source code is governed by a | |
| 19908 // BSD-style license that can be found in the LICENSE file. | |
| 19909 | |
| 19910 // WARNING: Do not edit - generated code. | |
| 19911 | |
| 19912 interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement { | |
| 19913 } | |
| 19914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19915 // for details. All rights reserved. Use of this source code is governed by a | |
| 19916 // BSD-style license that can be found in the LICENSE file. | |
| 19917 | |
| 19918 // WARNING: Do not edit - generated code. | |
| 19919 | |
| 19920 interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement { | |
| 19921 } | |
| 19922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19923 // for details. All rights reserved. Use of this source code is governed by a | |
| 19924 // BSD-style license that can be found in the LICENSE file. | |
| 19925 | |
| 19926 // WARNING: Do not edit - generated code. | |
| 19927 | |
| 19928 interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandar
dAttributes { | |
| 19929 | |
| 19930 final SVGAnimatedString in1; | |
| 19931 | |
| 19932 final SVGAnimatedNumber stdDeviationX; | |
| 19933 | |
| 19934 final SVGAnimatedNumber stdDeviationY; | |
| 19935 | |
| 19936 void setStdDeviation(num stdDeviationX, num stdDeviationY); | |
| 19937 } | |
| 19938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19939 // for details. All rights reserved. Use of this source code is governed by a | |
| 19940 // BSD-style license that can be found in the LICENSE file. | |
| 19941 | |
| 19942 // WARNING: Do not edit - generated code. | |
| 19943 | |
| 19944 interface SVGFEImageElement extends SVGElement, SVGURIReference, SVGLangSpace, S
VGExternalResourcesRequired, SVGFilterPrimitiveStandardAttributes { | |
| 19945 | |
| 19946 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | |
| 19947 } | |
| 19948 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19949 // for details. All rights reserved. Use of this source code is governed by a | |
| 19950 // BSD-style license that can be found in the LICENSE file. | |
| 19951 | |
| 19952 // WARNING: Do not edit - generated code. | |
| 19953 | |
| 19954 interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttrib
utes { | |
| 19955 } | |
| 19956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19957 // for details. All rights reserved. Use of this source code is governed by a | |
| 19958 // BSD-style license that can be found in the LICENSE file. | |
| 19959 | |
| 19960 // WARNING: Do not edit - generated code. | |
| 19961 | |
| 19962 interface SVGFEMergeNodeElement extends SVGElement { | |
| 19963 | |
| 19964 final SVGAnimatedString in1; | |
| 19965 } | |
| 19966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19967 // for details. All rights reserved. Use of this source code is governed by a | |
| 19968 // BSD-style license that can be found in the LICENSE file. | |
| 19969 | |
| 19970 // WARNING: Do not edit - generated code. | |
| 19971 | |
| 19972 interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardA
ttributes { | |
| 19973 | |
| 19974 static final int SVG_MORPHOLOGY_OPERATOR_DILATE = 2; | |
| 19975 | |
| 19976 static final int SVG_MORPHOLOGY_OPERATOR_ERODE = 1; | |
| 19977 | |
| 19978 static final int SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0; | |
| 19979 | |
| 19980 final SVGAnimatedString in1; | |
| 19981 | |
| 19982 final SVGAnimatedEnumeration operator; | |
| 19983 | |
| 19984 final SVGAnimatedNumber radiusX; | |
| 19985 | |
| 19986 final SVGAnimatedNumber radiusY; | |
| 19987 | |
| 19988 void setRadius(num radiusX, num radiusY); | |
| 19989 } | |
| 19990 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 19991 // for details. All rights reserved. Use of this source code is governed by a | |
| 19992 // BSD-style license that can be found in the LICENSE file. | |
| 19993 | |
| 19994 // WARNING: Do not edit - generated code. | |
| 19995 | |
| 19996 interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttri
butes { | |
| 19997 | |
| 19998 final SVGAnimatedNumber dx; | |
| 19999 | |
| 20000 final SVGAnimatedNumber dy; | |
| 20001 | |
| 20002 final SVGAnimatedString in1; | |
| 20003 } | |
| 20004 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20005 // for details. All rights reserved. Use of this source code is governed by a | |
| 20006 // BSD-style license that can be found in the LICENSE file. | |
| 20007 | |
| 20008 // WARNING: Do not edit - generated code. | |
| 20009 | |
| 20010 interface SVGFEPointLightElement extends SVGElement { | |
| 20011 | |
| 20012 final SVGAnimatedNumber x; | |
| 20013 | |
| 20014 final SVGAnimatedNumber y; | |
| 20015 | |
| 20016 final SVGAnimatedNumber z; | |
| 20017 } | |
| 20018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20019 // for details. All rights reserved. Use of this source code is governed by a | |
| 20020 // BSD-style license that can be found in the LICENSE file. | |
| 20021 | |
| 20022 // WARNING: Do not edit - generated code. | |
| 20023 | |
| 20024 interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveSta
ndardAttributes { | |
| 20025 | |
| 20026 final SVGAnimatedString in1; | |
| 20027 | |
| 20028 final SVGAnimatedNumber specularConstant; | |
| 20029 | |
| 20030 final SVGAnimatedNumber specularExponent; | |
| 20031 | |
| 20032 final SVGAnimatedNumber surfaceScale; | |
| 20033 } | |
| 20034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20035 // for details. All rights reserved. Use of this source code is governed by a | |
| 20036 // BSD-style license that can be found in the LICENSE file. | |
| 20037 | |
| 20038 // WARNING: Do not edit - generated code. | |
| 20039 | |
| 20040 interface SVGFESpotLightElement extends SVGElement { | |
| 20041 | |
| 20042 final SVGAnimatedNumber limitingConeAngle; | |
| 20043 | |
| 20044 final SVGAnimatedNumber pointsAtX; | |
| 20045 | |
| 20046 final SVGAnimatedNumber pointsAtY; | |
| 20047 | |
| 20048 final SVGAnimatedNumber pointsAtZ; | |
| 20049 | |
| 20050 final SVGAnimatedNumber specularExponent; | |
| 20051 | |
| 20052 final SVGAnimatedNumber x; | |
| 20053 | |
| 20054 final SVGAnimatedNumber y; | |
| 20055 | |
| 20056 final SVGAnimatedNumber z; | |
| 20057 } | |
| 20058 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20059 // for details. All rights reserved. Use of this source code is governed by a | |
| 20060 // BSD-style license that can be found in the LICENSE file. | |
| 20061 | |
| 20062 // WARNING: Do not edit - generated code. | |
| 20063 | |
| 20064 interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttribu
tes { | |
| 20065 | |
| 20066 final SVGAnimatedString in1; | |
| 20067 } | |
| 20068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20069 // for details. All rights reserved. Use of this source code is governed by a | |
| 20070 // BSD-style license that can be found in the LICENSE file. | |
| 20071 | |
| 20072 // WARNING: Do not edit - generated code. | |
| 20073 | |
| 20074 interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardA
ttributes { | |
| 20075 | |
| 20076 static final int SVG_STITCHTYPE_NOSTITCH = 2; | |
| 20077 | |
| 20078 static final int SVG_STITCHTYPE_STITCH = 1; | |
| 20079 | |
| 20080 static final int SVG_STITCHTYPE_UNKNOWN = 0; | |
| 20081 | |
| 20082 static final int SVG_TURBULENCE_TYPE_FRACTALNOISE = 1; | |
| 20083 | |
| 20084 static final int SVG_TURBULENCE_TYPE_TURBULENCE = 2; | |
| 20085 | |
| 20086 static final int SVG_TURBULENCE_TYPE_UNKNOWN = 0; | |
| 20087 | |
| 20088 final SVGAnimatedNumber baseFrequencyX; | |
| 20089 | |
| 20090 final SVGAnimatedNumber baseFrequencyY; | |
| 20091 | |
| 20092 final SVGAnimatedInteger numOctaves; | |
| 20093 | |
| 20094 final SVGAnimatedNumber seed; | |
| 20095 | |
| 20096 final SVGAnimatedEnumeration stitchTiles; | |
| 20097 | |
| 20098 final SVGAnimatedEnumeration type; | |
| 20099 } | |
| 20100 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20101 // for details. All rights reserved. Use of this source code is governed by a | |
| 20102 // BSD-style license that can be found in the LICENSE file. | |
| 20103 | |
| 20104 // WARNING: Do not edit - generated code. | |
| 20105 | |
| 20106 interface SVGFilterElement extends SVGElement, SVGURIReference, SVGLangSpace, SV
GExternalResourcesRequired, SVGStylable { | |
| 20107 | |
| 20108 final SVGAnimatedInteger filterResX; | |
| 20109 | |
| 20110 final SVGAnimatedInteger filterResY; | |
| 20111 | |
| 20112 final SVGAnimatedEnumeration filterUnits; | |
| 20113 | |
| 20114 final SVGAnimatedLength height; | |
| 20115 | |
| 20116 final SVGAnimatedEnumeration primitiveUnits; | |
| 20117 | |
| 20118 final SVGAnimatedLength width; | |
| 20119 | |
| 20120 final SVGAnimatedLength x; | |
| 20121 | |
| 20122 final SVGAnimatedLength y; | |
| 20123 | |
| 20124 void setFilterRes(int filterResX, int filterResY); | |
| 20125 } | |
| 20126 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20127 // for details. All rights reserved. Use of this source code is governed by a | |
| 20128 // BSD-style license that can be found in the LICENSE file. | |
| 20129 | |
| 20130 // WARNING: Do not edit - generated code. | |
| 20131 | |
| 20132 interface SVGFilterPrimitiveStandardAttributes extends SVGStylable { | |
| 20133 | |
| 20134 final SVGAnimatedLength height; | |
| 20135 | |
| 20136 final SVGAnimatedString result; | |
| 20137 | |
| 20138 final SVGAnimatedLength width; | |
| 20139 | |
| 20140 final SVGAnimatedLength x; | |
| 20141 | |
| 20142 final SVGAnimatedLength y; | |
| 20143 } | |
| 20144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20145 // for details. All rights reserved. Use of this source code is governed by a | |
| 20146 // BSD-style license that can be found in the LICENSE file. | |
| 20147 | |
| 20148 // WARNING: Do not edit - generated code. | |
| 20149 | |
| 20150 interface SVGFitToViewBox { | |
| 20151 | |
| 20152 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | |
| 20153 | |
| 20154 final SVGAnimatedRect viewBox; | |
| 20155 } | |
| 20156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20157 // for details. All rights reserved. Use of this source code is governed by a | |
| 20158 // BSD-style license that can be found in the LICENSE file. | |
| 20159 | |
| 20160 // WARNING: Do not edit - generated code. | |
| 20161 | |
| 20162 interface SVGFontElement extends SVGElement { | |
| 20163 } | |
| 20164 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20165 // for details. All rights reserved. Use of this source code is governed by a | |
| 20166 // BSD-style license that can be found in the LICENSE file. | |
| 20167 | |
| 20168 // WARNING: Do not edit - generated code. | |
| 20169 | |
| 20170 interface SVGFontFaceElement extends SVGElement { | |
| 20171 } | |
| 20172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20173 // for details. All rights reserved. Use of this source code is governed by a | |
| 20174 // BSD-style license that can be found in the LICENSE file. | |
| 20175 | |
| 20176 // WARNING: Do not edit - generated code. | |
| 20177 | |
| 20178 interface SVGFontFaceFormatElement extends SVGElement { | |
| 20179 } | |
| 20180 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20181 // for details. All rights reserved. Use of this source code is governed by a | |
| 20182 // BSD-style license that can be found in the LICENSE file. | |
| 20183 | |
| 20184 // WARNING: Do not edit - generated code. | |
| 20185 | |
| 20186 interface SVGFontFaceNameElement extends SVGElement { | |
| 20187 } | |
| 20188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20189 // for details. All rights reserved. Use of this source code is governed by a | |
| 20190 // BSD-style license that can be found in the LICENSE file. | |
| 20191 | |
| 20192 // WARNING: Do not edit - generated code. | |
| 20193 | |
| 20194 interface SVGFontFaceSrcElement extends SVGElement { | |
| 20195 } | |
| 20196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20197 // for details. All rights reserved. Use of this source code is governed by a | |
| 20198 // BSD-style license that can be found in the LICENSE file. | |
| 20199 | |
| 20200 // WARNING: Do not edit - generated code. | |
| 20201 | |
| 20202 interface SVGFontFaceUriElement extends SVGElement { | |
| 20203 } | |
| 20204 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20205 // for details. All rights reserved. Use of this source code is governed by a | |
| 20206 // BSD-style license that can be found in the LICENSE file. | |
| 20207 | |
| 20208 // WARNING: Do not edit - generated code. | |
| 20209 | |
| 20210 interface SVGForeignObjectElement extends SVGElement, SVGTests, SVGLangSpace, SV
GExternalResourcesRequired, SVGStylable, SVGTransformable { | |
| 20211 | |
| 20212 final SVGAnimatedLength height; | |
| 20213 | |
| 20214 final SVGAnimatedLength width; | |
| 20215 | |
| 20216 final SVGAnimatedLength x; | |
| 20217 | |
| 20218 final SVGAnimatedLength y; | |
| 20219 } | |
| 20220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20221 // for details. All rights reserved. Use of this source code is governed by a | |
| 20222 // BSD-style license that can be found in the LICENSE file. | |
| 20223 | |
| 20224 // WARNING: Do not edit - generated code. | |
| 20225 | |
| 20226 interface SVGGElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternalRes
ourcesRequired, SVGStylable, SVGTransformable { | |
| 20227 } | |
| 20228 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20229 // for details. All rights reserved. Use of this source code is governed by a | |
| 20230 // BSD-style license that can be found in the LICENSE file. | |
| 20231 | |
| 20232 // WARNING: Do not edit - generated code. | |
| 20233 | |
| 20234 interface SVGGlyphElement extends SVGElement { | |
| 20235 } | |
| 20236 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20237 // for details. All rights reserved. Use of this source code is governed by a | |
| 20238 // BSD-style license that can be found in the LICENSE file. | |
| 20239 | |
| 20240 // WARNING: Do not edit - generated code. | |
| 20241 | |
| 20242 interface SVGGlyphRefElement extends SVGElement, SVGURIReference, SVGStylable { | |
| 20243 | |
| 20244 num dx; | |
| 20245 | |
| 20246 num dy; | |
| 20247 | |
| 20248 String format; | |
| 20249 | |
| 20250 String glyphRef; | |
| 20251 | |
| 20252 num x; | |
| 20253 | |
| 20254 num y; | |
| 20255 } | |
| 20256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20257 // for details. All rights reserved. Use of this source code is governed by a | |
| 20258 // BSD-style license that can be found in the LICENSE file. | |
| 20259 | |
| 20260 // WARNING: Do not edit - generated code. | |
| 20261 | |
| 20262 interface SVGGradientElement extends SVGElement, SVGURIReference, SVGExternalRes
ourcesRequired, SVGStylable { | |
| 20263 | |
| 20264 static final int SVG_SPREADMETHOD_PAD = 1; | |
| 20265 | |
| 20266 static final int SVG_SPREADMETHOD_REFLECT = 2; | |
| 20267 | |
| 20268 static final int SVG_SPREADMETHOD_REPEAT = 3; | |
| 20269 | |
| 20270 static final int SVG_SPREADMETHOD_UNKNOWN = 0; | |
| 20271 | |
| 20272 final SVGAnimatedTransformList gradientTransform; | |
| 20273 | |
| 20274 final SVGAnimatedEnumeration gradientUnits; | |
| 20275 | |
| 20276 final SVGAnimatedEnumeration spreadMethod; | |
| 20277 } | |
| 20278 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20279 // for details. All rights reserved. Use of this source code is governed by a | |
| 20280 // BSD-style license that can be found in the LICENSE file. | |
| 20281 | |
| 20282 // WARNING: Do not edit - generated code. | |
| 20283 | |
| 20284 interface SVGHKernElement extends SVGElement { | |
| 20285 } | |
| 20286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20287 // for details. All rights reserved. Use of this source code is governed by a | |
| 20288 // BSD-style license that can be found in the LICENSE file. | |
| 20289 | |
| 20290 // WARNING: Do not edit - generated code. | |
| 20291 | |
| 20292 interface SVGImageElement extends SVGElement, SVGURIReference, SVGTests, SVGLang
Space, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { | |
| 20293 | |
| 20294 final SVGAnimatedLength height; | |
| 20295 | |
| 20296 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | |
| 20297 | |
| 20298 final SVGAnimatedLength width; | |
| 20299 | |
| 20300 final SVGAnimatedLength x; | |
| 20301 | |
| 20302 final SVGAnimatedLength y; | |
| 20303 } | |
| 20304 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20305 // for details. All rights reserved. Use of this source code is governed by a | |
| 20306 // BSD-style license that can be found in the LICENSE file. | |
| 20307 | |
| 20308 // WARNING: Do not edit - generated code. | |
| 20309 | |
| 20310 interface SVGLangSpace { | |
| 20311 | |
| 20312 String xmllang; | |
| 20313 | |
| 20314 String xmlspace; | |
| 20315 } | |
| 20316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20317 // for details. All rights reserved. Use of this source code is governed by a | |
| 20318 // BSD-style license that can be found in the LICENSE file. | |
| 20319 | |
| 20320 // WARNING: Do not edit - generated code. | |
| 20321 | |
| 20322 interface SVGLength { | |
| 20323 | |
| 20324 static final int SVG_LENGTHTYPE_CM = 6; | |
| 20325 | |
| 20326 static final int SVG_LENGTHTYPE_EMS = 3; | |
| 20327 | |
| 20328 static final int SVG_LENGTHTYPE_EXS = 4; | |
| 20329 | |
| 20330 static final int SVG_LENGTHTYPE_IN = 8; | |
| 20331 | |
| 20332 static final int SVG_LENGTHTYPE_MM = 7; | |
| 20333 | |
| 20334 static final int SVG_LENGTHTYPE_NUMBER = 1; | |
| 20335 | |
| 20336 static final int SVG_LENGTHTYPE_PC = 10; | |
| 20337 | |
| 20338 static final int SVG_LENGTHTYPE_PERCENTAGE = 2; | |
| 20339 | |
| 20340 static final int SVG_LENGTHTYPE_PT = 9; | |
| 20341 | |
| 20342 static final int SVG_LENGTHTYPE_PX = 5; | |
| 20343 | |
| 20344 static final int SVG_LENGTHTYPE_UNKNOWN = 0; | |
| 20345 | |
| 20346 final int unitType; | |
| 20347 | |
| 20348 num value; | |
| 20349 | |
| 20350 String valueAsString; | |
| 20351 | |
| 20352 num valueInSpecifiedUnits; | |
| 20353 | |
| 20354 void convertToSpecifiedUnits(int unitType); | |
| 20355 | |
| 20356 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits); | |
| 20357 } | |
| 20358 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20359 // for details. All rights reserved. Use of this source code is governed by a | |
| 20360 // BSD-style license that can be found in the LICENSE file. | |
| 20361 | |
| 20362 // WARNING: Do not edit - generated code. | |
| 20363 | |
| 20364 interface SVGLengthList { | |
| 20365 | |
| 20366 final int numberOfItems; | |
| 20367 | |
| 20368 SVGLength appendItem(SVGLength item); | |
| 20369 | |
| 20370 void clear(); | |
| 20371 | |
| 20372 SVGLength getItem(int index); | |
| 20373 | |
| 20374 SVGLength initialize(SVGLength item); | |
| 20375 | |
| 20376 SVGLength insertItemBefore(SVGLength item, int index); | |
| 20377 | |
| 20378 SVGLength removeItem(int index); | |
| 20379 | |
| 20380 SVGLength replaceItem(SVGLength item, int index); | |
| 20381 } | |
| 20382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20383 // for details. All rights reserved. Use of this source code is governed by a | |
| 20384 // BSD-style license that can be found in the LICENSE file. | |
| 20385 | |
| 20386 // WARNING: Do not edit - generated code. | |
| 20387 | |
| 20388 interface SVGLineElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable, SVGTransformable { | |
| 20389 | |
| 20390 final SVGAnimatedLength x1; | |
| 20391 | |
| 20392 final SVGAnimatedLength x2; | |
| 20393 | |
| 20394 final SVGAnimatedLength y1; | |
| 20395 | |
| 20396 final SVGAnimatedLength y2; | |
| 20397 } | |
| 20398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20399 // for details. All rights reserved. Use of this source code is governed by a | |
| 20400 // BSD-style license that can be found in the LICENSE file. | |
| 20401 | |
| 20402 // WARNING: Do not edit - generated code. | |
| 20403 | |
| 20404 interface SVGLinearGradientElement extends SVGGradientElement { | |
| 20405 | |
| 20406 final SVGAnimatedLength x1; | |
| 20407 | |
| 20408 final SVGAnimatedLength x2; | |
| 20409 | |
| 20410 final SVGAnimatedLength y1; | |
| 20411 | |
| 20412 final SVGAnimatedLength y2; | |
| 20413 } | |
| 20414 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20415 // for details. All rights reserved. Use of this source code is governed by a | |
| 20416 // BSD-style license that can be found in the LICENSE file. | |
| 20417 | |
| 20418 // WARNING: Do not edit - generated code. | |
| 20419 | |
| 20420 interface SVGLocatable { | |
| 20421 | |
| 20422 final SVGElement farthestViewportElement; | |
| 20423 | |
| 20424 final SVGElement nearestViewportElement; | |
| 20425 | |
| 20426 SVGRect getBBox(); | |
| 20427 | |
| 20428 SVGMatrix getCTM(); | |
| 20429 | |
| 20430 SVGMatrix getScreenCTM(); | |
| 20431 | |
| 20432 SVGMatrix getTransformToElement(SVGElement element); | |
| 20433 } | |
| 20434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20435 // for details. All rights reserved. Use of this source code is governed by a | |
| 20436 // BSD-style license that can be found in the LICENSE file. | |
| 20437 | |
| 20438 // WARNING: Do not edit - generated code. | |
| 20439 | |
| 20440 interface SVGMPathElement extends SVGElement, SVGURIReference, SVGExternalResour
cesRequired { | |
| 20441 } | |
| 20442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20443 // for details. All rights reserved. Use of this source code is governed by a | |
| 20444 // BSD-style license that can be found in the LICENSE file. | |
| 20445 | |
| 20446 // WARNING: Do not edit - generated code. | |
| 20447 | |
| 20448 interface SVGMarkerElement extends SVGElement, SVGLangSpace, SVGExternalResource
sRequired, SVGStylable, SVGFitToViewBox { | |
| 20449 | |
| 20450 static final int SVG_MARKERUNITS_STROKEWIDTH = 2; | |
| 20451 | |
| 20452 static final int SVG_MARKERUNITS_UNKNOWN = 0; | |
| 20453 | |
| 20454 static final int SVG_MARKERUNITS_USERSPACEONUSE = 1; | |
| 20455 | |
| 20456 static final int SVG_MARKER_ORIENT_ANGLE = 2; | |
| 20457 | |
| 20458 static final int SVG_MARKER_ORIENT_AUTO = 1; | |
| 20459 | |
| 20460 static final int SVG_MARKER_ORIENT_UNKNOWN = 0; | |
| 20461 | |
| 20462 final SVGAnimatedLength markerHeight; | |
| 20463 | |
| 20464 final SVGAnimatedEnumeration markerUnits; | |
| 20465 | |
| 20466 final SVGAnimatedLength markerWidth; | |
| 20467 | |
| 20468 final SVGAnimatedAngle orientAngle; | |
| 20469 | |
| 20470 final SVGAnimatedEnumeration orientType; | |
| 20471 | |
| 20472 final SVGAnimatedLength refX; | |
| 20473 | |
| 20474 final SVGAnimatedLength refY; | |
| 20475 | |
| 20476 void setOrientToAngle(SVGAngle angle); | |
| 20477 | |
| 20478 void setOrientToAuto(); | |
| 20479 } | |
| 20480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20481 // for details. All rights reserved. Use of this source code is governed by a | |
| 20482 // BSD-style license that can be found in the LICENSE file. | |
| 20483 | |
| 20484 // WARNING: Do not edit - generated code. | |
| 20485 | |
| 20486 interface SVGMaskElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable { | |
| 20487 | |
| 20488 final SVGAnimatedLength height; | |
| 20489 | |
| 20490 final SVGAnimatedEnumeration maskContentUnits; | |
| 20491 | |
| 20492 final SVGAnimatedEnumeration maskUnits; | |
| 20493 | |
| 20494 final SVGAnimatedLength width; | |
| 20495 | |
| 20496 final SVGAnimatedLength x; | |
| 20497 | |
| 20498 final SVGAnimatedLength y; | |
| 20499 } | |
| 20500 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20501 // for details. All rights reserved. Use of this source code is governed by a | |
| 20502 // BSD-style license that can be found in the LICENSE file. | |
| 20503 | |
| 20504 // WARNING: Do not edit - generated code. | |
| 20505 | |
| 20506 interface SVGMatrix { | |
| 20507 | |
| 20508 num a; | |
| 20509 | |
| 20510 num b; | |
| 20511 | |
| 20512 num c; | |
| 20513 | |
| 20514 num d; | |
| 20515 | |
| 20516 num e; | |
| 20517 | |
| 20518 num f; | |
| 20519 | |
| 20520 SVGMatrix flipX(); | |
| 20521 | |
| 20522 SVGMatrix flipY(); | |
| 20523 | |
| 20524 SVGMatrix inverse(); | |
| 20525 | |
| 20526 SVGMatrix multiply(SVGMatrix secondMatrix); | |
| 20527 | |
| 20528 SVGMatrix rotate(num angle); | |
| 20529 | |
| 20530 SVGMatrix rotateFromVector(num x, num y); | |
| 20531 | |
| 20532 SVGMatrix scale(num scaleFactor); | |
| 20533 | |
| 20534 SVGMatrix scaleNonUniform(num scaleFactorX, num scaleFactorY); | |
| 20535 | |
| 20536 SVGMatrix skewX(num angle); | |
| 20537 | |
| 20538 SVGMatrix skewY(num angle); | |
| 20539 | |
| 20540 SVGMatrix translate(num x, num y); | |
| 20541 } | |
| 20542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20543 // for details. All rights reserved. Use of this source code is governed by a | |
| 20544 // BSD-style license that can be found in the LICENSE file. | |
| 20545 | |
| 20546 // WARNING: Do not edit - generated code. | |
| 20547 | |
| 20548 interface SVGMetadataElement extends SVGElement { | |
| 20549 } | |
| 20550 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20551 // for details. All rights reserved. Use of this source code is governed by a | |
| 20552 // BSD-style license that can be found in the LICENSE file. | |
| 20553 | |
| 20554 // WARNING: Do not edit - generated code. | |
| 20555 | |
| 20556 interface SVGMissingGlyphElement extends SVGElement { | |
| 20557 } | |
| 20558 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20559 // for details. All rights reserved. Use of this source code is governed by a | |
| 20560 // BSD-style license that can be found in the LICENSE file. | |
| 20561 | |
| 20562 // WARNING: Do not edit - generated code. | |
| 20563 | |
| 20564 interface SVGNumber { | |
| 20565 | |
| 20566 num value; | |
| 20567 } | |
| 20568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20569 // for details. All rights reserved. Use of this source code is governed by a | |
| 20570 // BSD-style license that can be found in the LICENSE file. | |
| 20571 | |
| 20572 // WARNING: Do not edit - generated code. | |
| 20573 | |
| 20574 interface SVGNumberList { | |
| 20575 | |
| 20576 final int numberOfItems; | |
| 20577 | |
| 20578 SVGNumber appendItem(SVGNumber item); | |
| 20579 | |
| 20580 void clear(); | |
| 20581 | |
| 20582 SVGNumber getItem(int index); | |
| 20583 | |
| 20584 SVGNumber initialize(SVGNumber item); | |
| 20585 | |
| 20586 SVGNumber insertItemBefore(SVGNumber item, int index); | |
| 20587 | |
| 20588 SVGNumber removeItem(int index); | |
| 20589 | |
| 20590 SVGNumber replaceItem(SVGNumber item, int index); | |
| 20591 } | |
| 20592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20593 // for details. All rights reserved. Use of this source code is governed by a | |
| 20594 // BSD-style license that can be found in the LICENSE file. | |
| 20595 | |
| 20596 // WARNING: Do not edit - generated code. | |
| 20597 | |
| 20598 interface SVGPaint extends SVGColor { | |
| 20599 | |
| 20600 static final int SVG_PAINTTYPE_CURRENTCOLOR = 102; | |
| 20601 | |
| 20602 static final int SVG_PAINTTYPE_NONE = 101; | |
| 20603 | |
| 20604 static final int SVG_PAINTTYPE_RGBCOLOR = 1; | |
| 20605 | |
| 20606 static final int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2; | |
| 20607 | |
| 20608 static final int SVG_PAINTTYPE_UNKNOWN = 0; | |
| 20609 | |
| 20610 static final int SVG_PAINTTYPE_URI = 107; | |
| 20611 | |
| 20612 static final int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104; | |
| 20613 | |
| 20614 static final int SVG_PAINTTYPE_URI_NONE = 103; | |
| 20615 | |
| 20616 static final int SVG_PAINTTYPE_URI_RGBCOLOR = 105; | |
| 20617 | |
| 20618 static final int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106; | |
| 20619 | |
| 20620 final int paintType; | |
| 20621 | |
| 20622 final String uri; | |
| 20623 | |
| 20624 void setPaint(int paintType, String uri, String rgbColor, String iccColor); | |
| 20625 | |
| 20626 void setUri(String uri); | |
| 20627 } | |
| 20628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20629 // for details. All rights reserved. Use of this source code is governed by a | |
| 20630 // BSD-style license that can be found in the LICENSE file. | |
| 20631 | |
| 20632 // WARNING: Do not edit - generated code. | |
| 20633 | |
| 20634 interface SVGPathElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable, SVGTransformable { | |
| 20635 | |
| 20636 final SVGPathSegList animatedNormalizedPathSegList; | |
| 20637 | |
| 20638 final SVGPathSegList animatedPathSegList; | |
| 20639 | |
| 20640 final SVGPathSegList normalizedPathSegList; | |
| 20641 | |
| 20642 final SVGAnimatedNumber pathLength; | |
| 20643 | |
| 20644 final SVGPathSegList pathSegList; | |
| 20645 | |
| 20646 SVGPathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angl
e, bool largeArcFlag, bool sweepFlag); | |
| 20647 | |
| 20648 SVGPathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angl
e, bool largeArcFlag, bool sweepFlag); | |
| 20649 | |
| 20650 SVGPathSegClosePath createSVGPathSegClosePath(); | |
| 20651 | |
| 20652 SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1
, num y1, num x2, num y2); | |
| 20653 | |
| 20654 SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1
, num y1, num x2, num y2); | |
| 20655 | |
| 20656 SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, n
um y, num x2, num y2); | |
| 20657 | |
| 20658 SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, n
um y, num x2, num y2); | |
| 20659 | |
| 20660 SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y
, num x1, num y1); | |
| 20661 | |
| 20662 SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y
, num x1, num y1); | |
| 20663 | |
| 20664 SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(
num x, num y); | |
| 20665 | |
| 20666 SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(
num x, num y); | |
| 20667 | |
| 20668 SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y); | |
| 20669 | |
| 20670 SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x); | |
| 20671 | |
| 20672 SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x); | |
| 20673 | |
| 20674 SVGPathSegLinetoRel createSVGPathSegLinetoRel(num x, num y); | |
| 20675 | |
| 20676 SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y); | |
| 20677 | |
| 20678 SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y); | |
| 20679 | |
| 20680 SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y); | |
| 20681 | |
| 20682 SVGPathSegMovetoRel createSVGPathSegMovetoRel(num x, num y); | |
| 20683 | |
| 20684 int getPathSegAtLength(num distance); | |
| 20685 | |
| 20686 SVGPoint getPointAtLength(num distance); | |
| 20687 | |
| 20688 num getTotalLength(); | |
| 20689 } | |
| 20690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20691 // for details. All rights reserved. Use of this source code is governed by a | |
| 20692 // BSD-style license that can be found in the LICENSE file. | |
| 20693 | |
| 20694 // WARNING: Do not edit - generated code. | |
| 20695 | |
| 20696 interface SVGPathSeg { | |
| 20697 | |
| 20698 static final int PATHSEG_ARC_ABS = 10; | |
| 20699 | |
| 20700 static final int PATHSEG_ARC_REL = 11; | |
| 20701 | |
| 20702 static final int PATHSEG_CLOSEPATH = 1; | |
| 20703 | |
| 20704 static final int PATHSEG_CURVETO_CUBIC_ABS = 6; | |
| 20705 | |
| 20706 static final int PATHSEG_CURVETO_CUBIC_REL = 7; | |
| 20707 | |
| 20708 static final int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16; | |
| 20709 | |
| 20710 static final int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17; | |
| 20711 | |
| 20712 static final int PATHSEG_CURVETO_QUADRATIC_ABS = 8; | |
| 20713 | |
| 20714 static final int PATHSEG_CURVETO_QUADRATIC_REL = 9; | |
| 20715 | |
| 20716 static final int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18; | |
| 20717 | |
| 20718 static final int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19; | |
| 20719 | |
| 20720 static final int PATHSEG_LINETO_ABS = 4; | |
| 20721 | |
| 20722 static final int PATHSEG_LINETO_HORIZONTAL_ABS = 12; | |
| 20723 | |
| 20724 static final int PATHSEG_LINETO_HORIZONTAL_REL = 13; | |
| 20725 | |
| 20726 static final int PATHSEG_LINETO_REL = 5; | |
| 20727 | |
| 20728 static final int PATHSEG_LINETO_VERTICAL_ABS = 14; | |
| 20729 | |
| 20730 static final int PATHSEG_LINETO_VERTICAL_REL = 15; | |
| 20731 | |
| 20732 static final int PATHSEG_MOVETO_ABS = 2; | |
| 20733 | |
| 20734 static final int PATHSEG_MOVETO_REL = 3; | |
| 20735 | |
| 20736 static final int PATHSEG_UNKNOWN = 0; | |
| 20737 | |
| 20738 final int pathSegType; | |
| 20739 | |
| 20740 final String pathSegTypeAsLetter; | |
| 20741 } | |
| 20742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20743 // for details. All rights reserved. Use of this source code is governed by a | |
| 20744 // BSD-style license that can be found in the LICENSE file. | |
| 20745 | |
| 20746 // WARNING: Do not edit - generated code. | |
| 20747 | |
| 20748 interface SVGPathSegArcAbs extends SVGPathSeg { | |
| 20749 | |
| 20750 num angle; | |
| 20751 | |
| 20752 bool largeArcFlag; | |
| 20753 | |
| 20754 num r1; | |
| 20755 | |
| 20756 num r2; | |
| 20757 | |
| 20758 bool sweepFlag; | |
| 20759 | |
| 20760 num x; | |
| 20761 | |
| 20762 num y; | |
| 20763 } | |
| 20764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20765 // for details. All rights reserved. Use of this source code is governed by a | |
| 20766 // BSD-style license that can be found in the LICENSE file. | |
| 20767 | |
| 20768 // WARNING: Do not edit - generated code. | |
| 20769 | |
| 20770 interface SVGPathSegArcRel extends SVGPathSeg { | |
| 20771 | |
| 20772 num angle; | |
| 20773 | |
| 20774 bool largeArcFlag; | |
| 20775 | |
| 20776 num r1; | |
| 20777 | |
| 20778 num r2; | |
| 20779 | |
| 20780 bool sweepFlag; | |
| 20781 | |
| 20782 num x; | |
| 20783 | |
| 20784 num y; | |
| 20785 } | |
| 20786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20787 // for details. All rights reserved. Use of this source code is governed by a | |
| 20788 // BSD-style license that can be found in the LICENSE file. | |
| 20789 | |
| 20790 // WARNING: Do not edit - generated code. | |
| 20791 | |
| 20792 interface SVGPathSegClosePath extends SVGPathSeg { | |
| 20793 } | |
| 20794 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20795 // for details. All rights reserved. Use of this source code is governed by a | |
| 20796 // BSD-style license that can be found in the LICENSE file. | |
| 20797 | |
| 20798 // WARNING: Do not edit - generated code. | |
| 20799 | |
| 20800 interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg { | |
| 20801 | |
| 20802 num x; | |
| 20803 | |
| 20804 num x1; | |
| 20805 | |
| 20806 num x2; | |
| 20807 | |
| 20808 num y; | |
| 20809 | |
| 20810 num y1; | |
| 20811 | |
| 20812 num y2; | |
| 20813 } | |
| 20814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20815 // for details. All rights reserved. Use of this source code is governed by a | |
| 20816 // BSD-style license that can be found in the LICENSE file. | |
| 20817 | |
| 20818 // WARNING: Do not edit - generated code. | |
| 20819 | |
| 20820 interface SVGPathSegCurvetoCubicRel extends SVGPathSeg { | |
| 20821 | |
| 20822 num x; | |
| 20823 | |
| 20824 num x1; | |
| 20825 | |
| 20826 num x2; | |
| 20827 | |
| 20828 num y; | |
| 20829 | |
| 20830 num y1; | |
| 20831 | |
| 20832 num y2; | |
| 20833 } | |
| 20834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20835 // for details. All rights reserved. Use of this source code is governed by a | |
| 20836 // BSD-style license that can be found in the LICENSE file. | |
| 20837 | |
| 20838 // WARNING: Do not edit - generated code. | |
| 20839 | |
| 20840 interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg { | |
| 20841 | |
| 20842 num x; | |
| 20843 | |
| 20844 num x2; | |
| 20845 | |
| 20846 num y; | |
| 20847 | |
| 20848 num y2; | |
| 20849 } | |
| 20850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20851 // for details. All rights reserved. Use of this source code is governed by a | |
| 20852 // BSD-style license that can be found in the LICENSE file. | |
| 20853 | |
| 20854 // WARNING: Do not edit - generated code. | |
| 20855 | |
| 20856 interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg { | |
| 20857 | |
| 20858 num x; | |
| 20859 | |
| 20860 num x2; | |
| 20861 | |
| 20862 num y; | |
| 20863 | |
| 20864 num y2; | |
| 20865 } | |
| 20866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20867 // for details. All rights reserved. Use of this source code is governed by a | |
| 20868 // BSD-style license that can be found in the LICENSE file. | |
| 20869 | |
| 20870 // WARNING: Do not edit - generated code. | |
| 20871 | |
| 20872 interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg { | |
| 20873 | |
| 20874 num x; | |
| 20875 | |
| 20876 num x1; | |
| 20877 | |
| 20878 num y; | |
| 20879 | |
| 20880 num y1; | |
| 20881 } | |
| 20882 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20883 // for details. All rights reserved. Use of this source code is governed by a | |
| 20884 // BSD-style license that can be found in the LICENSE file. | |
| 20885 | |
| 20886 // WARNING: Do not edit - generated code. | |
| 20887 | |
| 20888 interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg { | |
| 20889 | |
| 20890 num x; | |
| 20891 | |
| 20892 num x1; | |
| 20893 | |
| 20894 num y; | |
| 20895 | |
| 20896 num y1; | |
| 20897 } | |
| 20898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20899 // for details. All rights reserved. Use of this source code is governed by a | |
| 20900 // BSD-style license that can be found in the LICENSE file. | |
| 20901 | |
| 20902 // WARNING: Do not edit - generated code. | |
| 20903 | |
| 20904 interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg { | |
| 20905 | |
| 20906 num x; | |
| 20907 | |
| 20908 num y; | |
| 20909 } | |
| 20910 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20911 // for details. All rights reserved. Use of this source code is governed by a | |
| 20912 // BSD-style license that can be found in the LICENSE file. | |
| 20913 | |
| 20914 // WARNING: Do not edit - generated code. | |
| 20915 | |
| 20916 interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg { | |
| 20917 | |
| 20918 num x; | |
| 20919 | |
| 20920 num y; | |
| 20921 } | |
| 20922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20923 // for details. All rights reserved. Use of this source code is governed by a | |
| 20924 // BSD-style license that can be found in the LICENSE file. | |
| 20925 | |
| 20926 // WARNING: Do not edit - generated code. | |
| 20927 | |
| 20928 interface SVGPathSegLinetoAbs extends SVGPathSeg { | |
| 20929 | |
| 20930 num x; | |
| 20931 | |
| 20932 num y; | |
| 20933 } | |
| 20934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20935 // for details. All rights reserved. Use of this source code is governed by a | |
| 20936 // BSD-style license that can be found in the LICENSE file. | |
| 20937 | |
| 20938 // WARNING: Do not edit - generated code. | |
| 20939 | |
| 20940 interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg { | |
| 20941 | |
| 20942 num x; | |
| 20943 } | |
| 20944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20945 // for details. All rights reserved. Use of this source code is governed by a | |
| 20946 // BSD-style license that can be found in the LICENSE file. | |
| 20947 | |
| 20948 // WARNING: Do not edit - generated code. | |
| 20949 | |
| 20950 interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg { | |
| 20951 | |
| 20952 num x; | |
| 20953 } | |
| 20954 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20955 // for details. All rights reserved. Use of this source code is governed by a | |
| 20956 // BSD-style license that can be found in the LICENSE file. | |
| 20957 | |
| 20958 // WARNING: Do not edit - generated code. | |
| 20959 | |
| 20960 interface SVGPathSegLinetoRel extends SVGPathSeg { | |
| 20961 | |
| 20962 num x; | |
| 20963 | |
| 20964 num y; | |
| 20965 } | |
| 20966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20967 // for details. All rights reserved. Use of this source code is governed by a | |
| 20968 // BSD-style license that can be found in the LICENSE file. | |
| 20969 | |
| 20970 // WARNING: Do not edit - generated code. | |
| 20971 | |
| 20972 interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg { | |
| 20973 | |
| 20974 num y; | |
| 20975 } | |
| 20976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20977 // for details. All rights reserved. Use of this source code is governed by a | |
| 20978 // BSD-style license that can be found in the LICENSE file. | |
| 20979 | |
| 20980 // WARNING: Do not edit - generated code. | |
| 20981 | |
| 20982 interface SVGPathSegLinetoVerticalRel extends SVGPathSeg { | |
| 20983 | |
| 20984 num y; | |
| 20985 } | |
| 20986 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20987 // for details. All rights reserved. Use of this source code is governed by a | |
| 20988 // BSD-style license that can be found in the LICENSE file. | |
| 20989 | |
| 20990 // WARNING: Do not edit - generated code. | |
| 20991 | |
| 20992 interface SVGPathSegList { | |
| 20993 | |
| 20994 final int numberOfItems; | |
| 20995 | |
| 20996 SVGPathSeg appendItem(SVGPathSeg newItem); | |
| 20997 | |
| 20998 void clear(); | |
| 20999 | |
| 21000 SVGPathSeg getItem(int index); | |
| 21001 | |
| 21002 SVGPathSeg initialize(SVGPathSeg newItem); | |
| 21003 | |
| 21004 SVGPathSeg insertItemBefore(SVGPathSeg newItem, int index); | |
| 21005 | |
| 21006 SVGPathSeg removeItem(int index); | |
| 21007 | |
| 21008 SVGPathSeg replaceItem(SVGPathSeg newItem, int index); | |
| 21009 } | |
| 21010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21011 // for details. All rights reserved. Use of this source code is governed by a | |
| 21012 // BSD-style license that can be found in the LICENSE file. | |
| 21013 | |
| 21014 // WARNING: Do not edit - generated code. | |
| 21015 | |
| 21016 interface SVGPathSegMovetoAbs extends SVGPathSeg { | |
| 21017 | |
| 21018 num x; | |
| 21019 | |
| 21020 num y; | |
| 21021 } | |
| 21022 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21023 // for details. All rights reserved. Use of this source code is governed by a | |
| 21024 // BSD-style license that can be found in the LICENSE file. | |
| 21025 | |
| 21026 // WARNING: Do not edit - generated code. | |
| 21027 | |
| 21028 interface SVGPathSegMovetoRel extends SVGPathSeg { | |
| 21029 | |
| 21030 num x; | |
| 21031 | |
| 21032 num y; | |
| 21033 } | |
| 21034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21035 // for details. All rights reserved. Use of this source code is governed by a | |
| 21036 // BSD-style license that can be found in the LICENSE file. | |
| 21037 | |
| 21038 // WARNING: Do not edit - generated code. | |
| 21039 | |
| 21040 interface SVGPatternElement extends SVGElement, SVGURIReference, SVGTests, SVGLa
ngSpace, SVGExternalResourcesRequired, SVGStylable, SVGFitToViewBox { | |
| 21041 | |
| 21042 final SVGAnimatedLength height; | |
| 21043 | |
| 21044 final SVGAnimatedEnumeration patternContentUnits; | |
| 21045 | |
| 21046 final SVGAnimatedTransformList patternTransform; | |
| 21047 | |
| 21048 final SVGAnimatedEnumeration patternUnits; | |
| 21049 | |
| 21050 final SVGAnimatedLength width; | |
| 21051 | |
| 21052 final SVGAnimatedLength x; | |
| 21053 | |
| 21054 final SVGAnimatedLength y; | |
| 21055 } | |
| 21056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21057 // for details. All rights reserved. Use of this source code is governed by a | |
| 21058 // BSD-style license that can be found in the LICENSE file. | |
| 21059 | |
| 21060 // WARNING: Do not edit - generated code. | |
| 21061 | |
| 21062 interface SVGPoint { | |
| 21063 | |
| 21064 num x; | |
| 21065 | |
| 21066 num y; | |
| 21067 | |
| 21068 SVGPoint matrixTransform(SVGMatrix matrix); | |
| 21069 } | |
| 21070 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21071 // for details. All rights reserved. Use of this source code is governed by a | |
| 21072 // BSD-style license that can be found in the LICENSE file. | |
| 21073 | |
| 21074 // WARNING: Do not edit - generated code. | |
| 21075 | |
| 21076 interface SVGPointList { | |
| 21077 | |
| 21078 final int numberOfItems; | |
| 21079 | |
| 21080 SVGPoint appendItem(SVGPoint item); | |
| 21081 | |
| 21082 void clear(); | |
| 21083 | |
| 21084 SVGPoint getItem(int index); | |
| 21085 | |
| 21086 SVGPoint initialize(SVGPoint item); | |
| 21087 | |
| 21088 SVGPoint insertItemBefore(SVGPoint item, int index); | |
| 21089 | |
| 21090 SVGPoint removeItem(int index); | |
| 21091 | |
| 21092 SVGPoint replaceItem(SVGPoint item, int index); | |
| 21093 } | |
| 21094 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21095 // for details. All rights reserved. Use of this source code is governed by a | |
| 21096 // BSD-style license that can be found in the LICENSE file. | |
| 21097 | |
| 21098 // WARNING: Do not edit - generated code. | |
| 21099 | |
| 21100 interface SVGPolygonElement extends SVGElement, SVGTests, SVGLangSpace, SVGExter
nalResourcesRequired, SVGStylable, SVGTransformable { | |
| 21101 | |
| 21102 final SVGPointList animatedPoints; | |
| 21103 | |
| 21104 final SVGPointList points; | |
| 21105 } | |
| 21106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21107 // for details. All rights reserved. Use of this source code is governed by a | |
| 21108 // BSD-style license that can be found in the LICENSE file. | |
| 21109 | |
| 21110 // WARNING: Do not edit - generated code. | |
| 21111 | |
| 21112 interface SVGPolylineElement extends SVGElement, SVGTests, SVGLangSpace, SVGExte
rnalResourcesRequired, SVGStylable, SVGTransformable { | |
| 21113 | |
| 21114 final SVGPointList animatedPoints; | |
| 21115 | |
| 21116 final SVGPointList points; | |
| 21117 } | |
| 21118 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21119 // for details. All rights reserved. Use of this source code is governed by a | |
| 21120 // BSD-style license that can be found in the LICENSE file. | |
| 21121 | |
| 21122 // WARNING: Do not edit - generated code. | |
| 21123 | |
| 21124 interface SVGPreserveAspectRatio { | |
| 21125 | |
| 21126 static final int SVG_MEETORSLICE_MEET = 1; | |
| 21127 | |
| 21128 static final int SVG_MEETORSLICE_SLICE = 2; | |
| 21129 | |
| 21130 static final int SVG_MEETORSLICE_UNKNOWN = 0; | |
| 21131 | |
| 21132 static final int SVG_PRESERVEASPECTRATIO_NONE = 1; | |
| 21133 | |
| 21134 static final int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0; | |
| 21135 | |
| 21136 static final int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10; | |
| 21137 | |
| 21138 static final int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7; | |
| 21139 | |
| 21140 static final int SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4; | |
| 21141 | |
| 21142 static final int SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9; | |
| 21143 | |
| 21144 static final int SVG_PRESERVEASPECTRATIO_XMIDYMID = 6; | |
| 21145 | |
| 21146 static final int SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3; | |
| 21147 | |
| 21148 static final int SVG_PRESERVEASPECTRATIO_XMINYMAX = 8; | |
| 21149 | |
| 21150 static final int SVG_PRESERVEASPECTRATIO_XMINYMID = 5; | |
| 21151 | |
| 21152 static final int SVG_PRESERVEASPECTRATIO_XMINYMIN = 2; | |
| 21153 | |
| 21154 int align; | |
| 21155 | |
| 21156 int meetOrSlice; | |
| 21157 } | |
| 21158 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21159 // for details. All rights reserved. Use of this source code is governed by a | |
| 21160 // BSD-style license that can be found in the LICENSE file. | |
| 21161 | |
| 21162 // WARNING: Do not edit - generated code. | |
| 21163 | |
| 21164 interface SVGRadialGradientElement extends SVGGradientElement { | |
| 21165 | |
| 21166 final SVGAnimatedLength cx; | |
| 21167 | |
| 21168 final SVGAnimatedLength cy; | |
| 21169 | |
| 21170 final SVGAnimatedLength fx; | |
| 21171 | |
| 21172 final SVGAnimatedLength fy; | |
| 21173 | |
| 21174 final SVGAnimatedLength r; | |
| 21175 } | |
| 21176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21177 // for details. All rights reserved. Use of this source code is governed by a | |
| 21178 // BSD-style license that can be found in the LICENSE file. | |
| 21179 | |
| 21180 // WARNING: Do not edit - generated code. | |
| 21181 | |
| 21182 interface SVGRect { | |
| 21183 | |
| 21184 num height; | |
| 21185 | |
| 21186 num width; | |
| 21187 | |
| 21188 num x; | |
| 21189 | |
| 21190 num y; | |
| 21191 } | |
| 21192 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21193 // for details. All rights reserved. Use of this source code is governed by a | |
| 21194 // BSD-style license that can be found in the LICENSE file. | |
| 21195 | |
| 21196 // WARNING: Do not edit - generated code. | |
| 21197 | |
| 21198 interface SVGRectElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternal
ResourcesRequired, SVGStylable, SVGTransformable { | |
| 21199 | |
| 21200 final SVGAnimatedLength height; | |
| 21201 | |
| 21202 final SVGAnimatedLength rx; | |
| 21203 | |
| 21204 final SVGAnimatedLength ry; | |
| 21205 | |
| 21206 final SVGAnimatedLength width; | |
| 21207 | |
| 21208 final SVGAnimatedLength x; | |
| 21209 | |
| 21210 final SVGAnimatedLength y; | |
| 21211 } | |
| 21212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21213 // for details. All rights reserved. Use of this source code is governed by a | |
| 21214 // BSD-style license that can be found in the LICENSE file. | |
| 21215 | |
| 21216 // WARNING: Do not edit - generated code. | |
| 21217 | |
| 21218 interface SVGRenderingIntent { | |
| 21219 | |
| 21220 static final int RENDERING_INTENT_ABSOLUTE_COLORIMETRIC = 5; | |
| 21221 | |
| 21222 static final int RENDERING_INTENT_AUTO = 1; | |
| 21223 | |
| 21224 static final int RENDERING_INTENT_PERCEPTUAL = 2; | |
| 21225 | |
| 21226 static final int RENDERING_INTENT_RELATIVE_COLORIMETRIC = 3; | |
| 21227 | |
| 21228 static final int RENDERING_INTENT_SATURATION = 4; | |
| 21229 | |
| 21230 static final int RENDERING_INTENT_UNKNOWN = 0; | |
| 21231 } | |
| 21232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21233 // for details. All rights reserved. Use of this source code is governed by a | |
| 21234 // BSD-style license that can be found in the LICENSE file. | |
| 21235 | |
| 21236 // WARNING: Do not edit - generated code. | |
| 21237 | |
| 21238 interface SVGSVGElement extends SVGElement, SVGTests, SVGLangSpace, SVGExternalR
esourcesRequired, SVGStylable, SVGLocatable, SVGFitToViewBox, SVGZoomAndPan { | |
| 21239 | |
| 21240 String contentScriptType; | |
| 21241 | |
| 21242 String contentStyleType; | |
| 21243 | |
| 21244 num currentScale; | |
| 21245 | |
| 21246 final SVGPoint currentTranslate; | |
| 21247 | |
| 21248 final SVGViewSpec currentView; | |
| 21249 | |
| 21250 final SVGAnimatedLength height; | |
| 21251 | |
| 21252 final num pixelUnitToMillimeterX; | |
| 21253 | |
| 21254 final num pixelUnitToMillimeterY; | |
| 21255 | |
| 21256 final num screenPixelToMillimeterX; | |
| 21257 | |
| 21258 final num screenPixelToMillimeterY; | |
| 21259 | |
| 21260 final bool useCurrentView; | |
| 21261 | |
| 21262 final SVGRect viewport; | |
| 21263 | |
| 21264 final SVGAnimatedLength width; | |
| 21265 | |
| 21266 final SVGAnimatedLength x; | |
| 21267 | |
| 21268 final SVGAnimatedLength y; | |
| 21269 | |
| 21270 bool animationsPaused(); | |
| 21271 | |
| 21272 bool checkEnclosure(SVGElement element, SVGRect rect); | |
| 21273 | |
| 21274 bool checkIntersection(SVGElement element, SVGRect rect); | |
| 21275 | |
| 21276 SVGAngle createSVGAngle(); | |
| 21277 | |
| 21278 SVGLength createSVGLength(); | |
| 21279 | |
| 21280 SVGMatrix createSVGMatrix(); | |
| 21281 | |
| 21282 SVGNumber createSVGNumber(); | |
| 21283 | |
| 21284 SVGPoint createSVGPoint(); | |
| 21285 | |
| 21286 SVGRect createSVGRect(); | |
| 21287 | |
| 21288 SVGTransform createSVGTransform(); | |
| 21289 | |
| 21290 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); | |
| 21291 | |
| 21292 void deselectAll(); | |
| 21293 | |
| 21294 void forceRedraw(); | |
| 21295 | |
| 21296 num getCurrentTime(); | |
| 21297 | |
| 21298 Element getElementById(String elementId); | |
| 21299 | |
| 21300 NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement); | |
| 21301 | |
| 21302 NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement); | |
| 21303 | |
| 21304 void pauseAnimations(); | |
| 21305 | |
| 21306 void setCurrentTime(num seconds); | |
| 21307 | |
| 21308 int suspendRedraw(int maxWaitMilliseconds); | |
| 21309 | |
| 21310 void unpauseAnimations(); | |
| 21311 | |
| 21312 void unsuspendRedraw(int suspendHandleId); | |
| 21313 | |
| 21314 void unsuspendRedrawAll(); | |
| 21315 } | |
| 21316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21317 // for details. All rights reserved. Use of this source code is governed by a | |
| 21318 // BSD-style license that can be found in the LICENSE file. | |
| 21319 | |
| 21320 // WARNING: Do not edit - generated code. | |
| 21321 | |
| 21322 interface SVGScriptElement extends SVGElement, SVGURIReference, SVGExternalResou
rcesRequired { | |
| 21323 | |
| 21324 String type; | |
| 21325 } | |
| 21326 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21327 // for details. All rights reserved. Use of this source code is governed by a | |
| 21328 // BSD-style license that can be found in the LICENSE file. | |
| 21329 | |
| 21330 // WARNING: Do not edit - generated code. | |
| 21331 | |
| 21332 interface SVGSetElement extends SVGAnimationElement { | |
| 21333 } | |
| 21334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21335 // for details. All rights reserved. Use of this source code is governed by a | |
| 21336 // BSD-style license that can be found in the LICENSE file. | |
| 21337 | |
| 21338 // WARNING: Do not edit - generated code. | |
| 21339 | |
| 21340 interface SVGStopElement extends SVGElement, SVGStylable { | |
| 21341 | |
| 21342 final SVGAnimatedNumber offset; | |
| 21343 } | |
| 21344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21345 // for details. All rights reserved. Use of this source code is governed by a | |
| 21346 // BSD-style license that can be found in the LICENSE file. | |
| 21347 | |
| 21348 // WARNING: Do not edit - generated code. | |
| 21349 | |
| 21350 interface SVGStringList { | |
| 21351 | |
| 21352 final int numberOfItems; | |
| 21353 | |
| 21354 String appendItem(String item); | |
| 21355 | |
| 21356 void clear(); | |
| 21357 | |
| 21358 String getItem(int index); | |
| 21359 | |
| 21360 String initialize(String item); | |
| 21361 | |
| 21362 String insertItemBefore(String item, int index); | |
| 21363 | |
| 21364 String removeItem(int index); | |
| 21365 | |
| 21366 String replaceItem(String item, int index); | |
| 21367 } | |
| 21368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21369 // for details. All rights reserved. Use of this source code is governed by a | |
| 21370 // BSD-style license that can be found in the LICENSE file. | |
| 21371 | |
| 21372 // WARNING: Do not edit - generated code. | |
| 21373 | |
| 21374 interface SVGStylable { | |
| 21375 | |
| 21376 final SVGAnimatedString className; | |
| 21377 | |
| 21378 final CSSStyleDeclaration style; | |
| 21379 | |
| 21380 CSSValue getPresentationAttribute(String name); | |
| 21381 } | |
| 21382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21383 // for details. All rights reserved. Use of this source code is governed by a | |
| 21384 // BSD-style license that can be found in the LICENSE file. | |
| 21385 | |
| 21386 // WARNING: Do not edit - generated code. | |
| 21387 | |
| 21388 interface SVGStyleElement extends SVGElement, SVGLangSpace { | |
| 21389 | |
| 21390 bool disabled; | |
| 21391 | |
| 21392 String media; | |
| 21393 | |
| 21394 String title; | |
| 21395 | |
| 21396 String type; | |
| 21397 } | |
| 21398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21399 // for details. All rights reserved. Use of this source code is governed by a | |
| 21400 // BSD-style license that can be found in the LICENSE file. | |
| 21401 | |
| 21402 // WARNING: Do not edit - generated code. | |
| 21403 | |
| 21404 interface SVGSwitchElement extends SVGElement, SVGTests, SVGLangSpace, SVGExtern
alResourcesRequired, SVGStylable, SVGTransformable { | |
| 21405 } | |
| 21406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21407 // for details. All rights reserved. Use of this source code is governed by a | |
| 21408 // BSD-style license that can be found in the LICENSE file. | |
| 21409 | |
| 21410 // WARNING: Do not edit - generated code. | |
| 21411 | |
| 21412 interface SVGSymbolElement extends SVGElement, SVGLangSpace, SVGExternalResource
sRequired, SVGStylable, SVGFitToViewBox { | |
| 21413 } | |
| 21414 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21415 // for details. All rights reserved. Use of this source code is governed by a | |
| 21416 // BSD-style license that can be found in the LICENSE file. | |
| 21417 | |
| 21418 // WARNING: Do not edit - generated code. | |
| 21419 | |
| 21420 interface SVGTRefElement extends SVGTextPositioningElement, SVGURIReference { | |
| 21421 } | |
| 21422 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21423 // for details. All rights reserved. Use of this source code is governed by a | |
| 21424 // BSD-style license that can be found in the LICENSE file. | |
| 21425 | |
| 21426 // WARNING: Do not edit - generated code. | |
| 21427 | |
| 21428 interface SVGTSpanElement extends SVGTextPositioningElement { | |
| 21429 } | |
| 21430 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21431 // for details. All rights reserved. Use of this source code is governed by a | |
| 21432 // BSD-style license that can be found in the LICENSE file. | |
| 21433 | |
| 21434 // WARNING: Do not edit - generated code. | |
| 21435 | |
| 21436 interface SVGTests { | |
| 21437 | |
| 21438 final SVGStringList requiredExtensions; | |
| 21439 | |
| 21440 final SVGStringList requiredFeatures; | |
| 21441 | |
| 21442 final SVGStringList systemLanguage; | |
| 21443 | |
| 21444 bool hasExtension(String extension); | |
| 21445 } | |
| 21446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21447 // for details. All rights reserved. Use of this source code is governed by a | |
| 21448 // BSD-style license that can be found in the LICENSE file. | |
| 21449 | |
| 21450 // WARNING: Do not edit - generated code. | |
| 21451 | |
| 21452 interface SVGTextContentElement extends SVGElement, SVGTests, SVGLangSpace, SVGE
xternalResourcesRequired, SVGStylable { | |
| 21453 | |
| 21454 static final int LENGTHADJUST_SPACING = 1; | |
| 21455 | |
| 21456 static final int LENGTHADJUST_SPACINGANDGLYPHS = 2; | |
| 21457 | |
| 21458 static final int LENGTHADJUST_UNKNOWN = 0; | |
| 21459 | |
| 21460 final SVGAnimatedEnumeration lengthAdjust; | |
| 21461 | |
| 21462 final SVGAnimatedLength textLength; | |
| 21463 | |
| 21464 int getCharNumAtPosition(SVGPoint point); | |
| 21465 | |
| 21466 num getComputedTextLength(); | |
| 21467 | |
| 21468 SVGPoint getEndPositionOfChar(int offset); | |
| 21469 | |
| 21470 SVGRect getExtentOfChar(int offset); | |
| 21471 | |
| 21472 int getNumberOfChars(); | |
| 21473 | |
| 21474 num getRotationOfChar(int offset); | |
| 21475 | |
| 21476 SVGPoint getStartPositionOfChar(int offset); | |
| 21477 | |
| 21478 num getSubStringLength(int offset, int length); | |
| 21479 | |
| 21480 void selectSubString(int offset, int length); | |
| 21481 } | |
| 21482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21483 // for details. All rights reserved. Use of this source code is governed by a | |
| 21484 // BSD-style license that can be found in the LICENSE file. | |
| 21485 | |
| 21486 // WARNING: Do not edit - generated code. | |
| 21487 | |
| 21488 interface SVGTextElement extends SVGTextPositioningElement, SVGTransformable { | |
| 21489 } | |
| 21490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21491 // for details. All rights reserved. Use of this source code is governed by a | |
| 21492 // BSD-style license that can be found in the LICENSE file. | |
| 21493 | |
| 21494 // WARNING: Do not edit - generated code. | |
| 21495 | |
| 21496 interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference { | |
| 21497 | |
| 21498 static final int TEXTPATH_METHODTYPE_ALIGN = 1; | |
| 21499 | |
| 21500 static final int TEXTPATH_METHODTYPE_STRETCH = 2; | |
| 21501 | |
| 21502 static final int TEXTPATH_METHODTYPE_UNKNOWN = 0; | |
| 21503 | |
| 21504 static final int TEXTPATH_SPACINGTYPE_AUTO = 1; | |
| 21505 | |
| 21506 static final int TEXTPATH_SPACINGTYPE_EXACT = 2; | |
| 21507 | |
| 21508 static final int TEXTPATH_SPACINGTYPE_UNKNOWN = 0; | |
| 21509 | |
| 21510 final SVGAnimatedEnumeration method; | |
| 21511 | |
| 21512 final SVGAnimatedEnumeration spacing; | |
| 21513 | |
| 21514 final SVGAnimatedLength startOffset; | |
| 21515 } | |
| 21516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21517 // for details. All rights reserved. Use of this source code is governed by a | |
| 21518 // BSD-style license that can be found in the LICENSE file. | |
| 21519 | |
| 21520 // WARNING: Do not edit - generated code. | |
| 21521 | |
| 21522 interface SVGTextPositioningElement extends SVGTextContentElement { | |
| 21523 | |
| 21524 final SVGAnimatedLengthList dx; | |
| 21525 | |
| 21526 final SVGAnimatedLengthList dy; | |
| 21527 | |
| 21528 final SVGAnimatedNumberList rotate; | |
| 21529 | |
| 21530 final SVGAnimatedLengthList x; | |
| 21531 | |
| 21532 final SVGAnimatedLengthList y; | |
| 21533 } | |
| 21534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21535 // for details. All rights reserved. Use of this source code is governed by a | |
| 21536 // BSD-style license that can be found in the LICENSE file. | |
| 21537 | |
| 21538 // WARNING: Do not edit - generated code. | |
| 21539 | |
| 21540 interface SVGTitleElement extends SVGElement, SVGLangSpace, SVGStylable { | |
| 21541 } | |
| 21542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21543 // for details. All rights reserved. Use of this source code is governed by a | |
| 21544 // BSD-style license that can be found in the LICENSE file. | |
| 21545 | |
| 21546 // WARNING: Do not edit - generated code. | |
| 21547 | |
| 21548 interface SVGTransform { | |
| 21549 | |
| 21550 static final int SVG_TRANSFORM_MATRIX = 1; | |
| 21551 | |
| 21552 static final int SVG_TRANSFORM_ROTATE = 4; | |
| 21553 | |
| 21554 static final int SVG_TRANSFORM_SCALE = 3; | |
| 21555 | |
| 21556 static final int SVG_TRANSFORM_SKEWX = 5; | |
| 21557 | |
| 21558 static final int SVG_TRANSFORM_SKEWY = 6; | |
| 21559 | |
| 21560 static final int SVG_TRANSFORM_TRANSLATE = 2; | |
| 21561 | |
| 21562 static final int SVG_TRANSFORM_UNKNOWN = 0; | |
| 21563 | |
| 21564 final num angle; | |
| 21565 | |
| 21566 final SVGMatrix matrix; | |
| 21567 | |
| 21568 final int type; | |
| 21569 | |
| 21570 void setMatrix(SVGMatrix matrix); | |
| 21571 | |
| 21572 void setRotate(num angle, num cx, num cy); | |
| 21573 | |
| 21574 void setScale(num sx, num sy); | |
| 21575 | |
| 21576 void setSkewX(num angle); | |
| 21577 | |
| 21578 void setSkewY(num angle); | |
| 21579 | |
| 21580 void setTranslate(num tx, num ty); | |
| 21581 } | |
| 21582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21583 // for details. All rights reserved. Use of this source code is governed by a | |
| 21584 // BSD-style license that can be found in the LICENSE file. | |
| 21585 | |
| 21586 // WARNING: Do not edit - generated code. | |
| 21587 | |
| 21588 interface SVGTransformList { | |
| 21589 | |
| 21590 final int numberOfItems; | |
| 21591 | |
| 21592 SVGTransform appendItem(SVGTransform item); | |
| 21593 | |
| 21594 void clear(); | |
| 21595 | |
| 21596 SVGTransform consolidate(); | |
| 21597 | |
| 21598 SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix); | |
| 21599 | |
| 21600 SVGTransform getItem(int index); | |
| 21601 | |
| 21602 SVGTransform initialize(SVGTransform item); | |
| 21603 | |
| 21604 SVGTransform insertItemBefore(SVGTransform item, int index); | |
| 21605 | |
| 21606 SVGTransform removeItem(int index); | |
| 21607 | |
| 21608 SVGTransform replaceItem(SVGTransform item, int index); | |
| 21609 } | |
| 21610 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21611 // for details. All rights reserved. Use of this source code is governed by a | |
| 21612 // BSD-style license that can be found in the LICENSE file. | |
| 21613 | |
| 21614 // WARNING: Do not edit - generated code. | |
| 21615 | |
| 21616 interface SVGTransformable extends SVGLocatable { | |
| 21617 | |
| 21618 final SVGAnimatedTransformList transform; | |
| 21619 } | |
| 21620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21621 // for details. All rights reserved. Use of this source code is governed by a | |
| 21622 // BSD-style license that can be found in the LICENSE file. | |
| 21623 | |
| 21624 // WARNING: Do not edit - generated code. | |
| 21625 | |
| 21626 interface SVGURIReference { | |
| 21627 | |
| 21628 final SVGAnimatedString href; | |
| 21629 } | |
| 21630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21631 // for details. All rights reserved. Use of this source code is governed by a | |
| 21632 // BSD-style license that can be found in the LICENSE file. | |
| 21633 | |
| 21634 // WARNING: Do not edit - generated code. | |
| 21635 | |
| 21636 interface SVGUnitTypes { | |
| 21637 | |
| 21638 static final int SVG_UNIT_TYPE_OBJECTBOUNDINGBOX = 2; | |
| 21639 | |
| 21640 static final int SVG_UNIT_TYPE_UNKNOWN = 0; | |
| 21641 | |
| 21642 static final int SVG_UNIT_TYPE_USERSPACEONUSE = 1; | |
| 21643 } | |
| 21644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21645 // for details. All rights reserved. Use of this source code is governed by a | |
| 21646 // BSD-style license that can be found in the LICENSE file. | |
| 21647 | |
| 21648 // WARNING: Do not edit - generated code. | |
| 21649 | |
| 21650 interface SVGUseElement extends SVGElement, SVGURIReference, SVGTests, SVGLangSp
ace, SVGExternalResourcesRequired, SVGStylable, SVGTransformable { | |
| 21651 | |
| 21652 final SVGElementInstance animatedInstanceRoot; | |
| 21653 | |
| 21654 final SVGAnimatedLength height; | |
| 21655 | |
| 21656 final SVGElementInstance instanceRoot; | |
| 21657 | |
| 21658 final SVGAnimatedLength width; | |
| 21659 | |
| 21660 final SVGAnimatedLength x; | |
| 21661 | |
| 21662 final SVGAnimatedLength y; | |
| 21663 } | |
| 21664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21665 // for details. All rights reserved. Use of this source code is governed by a | |
| 21666 // BSD-style license that can be found in the LICENSE file. | |
| 21667 | |
| 21668 // WARNING: Do not edit - generated code. | |
| 21669 | |
| 21670 interface SVGVKernElement extends SVGElement { | |
| 21671 } | |
| 21672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21673 // for details. All rights reserved. Use of this source code is governed by a | |
| 21674 // BSD-style license that can be found in the LICENSE file. | |
| 21675 | |
| 21676 // WARNING: Do not edit - generated code. | |
| 21677 | |
| 21678 interface SVGViewElement extends SVGElement, SVGExternalResourcesRequired, SVGFi
tToViewBox, SVGZoomAndPan { | |
| 21679 | |
| 21680 final SVGStringList viewTarget; | |
| 21681 } | |
| 21682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21683 // for details. All rights reserved. Use of this source code is governed by a | |
| 21684 // BSD-style license that can be found in the LICENSE file. | |
| 21685 | |
| 21686 // WARNING: Do not edit - generated code. | |
| 21687 | |
| 21688 interface SVGViewSpec { | |
| 21689 | |
| 21690 final SVGAnimatedPreserveAspectRatio preserveAspectRatio; | |
| 21691 | |
| 21692 final String preserveAspectRatioString; | |
| 21693 | |
| 21694 final SVGTransformList transform; | |
| 21695 | |
| 21696 final String transformString; | |
| 21697 | |
| 21698 final SVGAnimatedRect viewBox; | |
| 21699 | |
| 21700 final String viewBoxString; | |
| 21701 | |
| 21702 final SVGElement viewTarget; | |
| 21703 | |
| 21704 final String viewTargetString; | |
| 21705 | |
| 21706 int zoomAndPan; | |
| 21707 } | |
| 21708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21709 // for details. All rights reserved. Use of this source code is governed by a | |
| 21710 // BSD-style license that can be found in the LICENSE file. | |
| 21711 | |
| 21712 // WARNING: Do not edit - generated code. | |
| 21713 | |
| 21714 interface SVGZoomAndPan { | |
| 21715 | |
| 21716 static final int SVG_ZOOMANDPAN_DISABLE = 1; | |
| 21717 | |
| 21718 static final int SVG_ZOOMANDPAN_MAGNIFY = 2; | |
| 21719 | |
| 21720 static final int SVG_ZOOMANDPAN_UNKNOWN = 0; | |
| 21721 | |
| 21722 int zoomAndPan; | |
| 21723 } | |
| 21724 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21725 // for details. All rights reserved. Use of this source code is governed by a | |
| 21726 // BSD-style license that can be found in the LICENSE file. | |
| 21727 | |
| 21728 // WARNING: Do not edit - generated code. | |
| 21729 | |
| 21730 interface SVGZoomEvent extends UIEvent { | |
| 21731 | |
| 21732 final num newScale; | |
| 21733 | |
| 21734 final SVGPoint newTranslate; | |
| 21735 | |
| 21736 final num previousScale; | |
| 21737 | |
| 21738 final SVGPoint previousTranslate; | |
| 21739 | |
| 21740 final SVGRect zoomRectScreen; | |
| 21741 } | |
| 21742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21743 // for details. All rights reserved. Use of this source code is governed by a | |
| 21744 // BSD-style license that can be found in the LICENSE file. | |
| 21745 | |
| 21746 // WARNING: Do not edit - generated code. | |
| 21747 | |
| 21748 interface Screen { | |
| 21749 | |
| 21750 final int availHeight; | |
| 21751 | |
| 21752 final int availLeft; | |
| 21753 | |
| 21754 final int availTop; | |
| 21755 | |
| 21756 final int availWidth; | |
| 21757 | |
| 21758 final int colorDepth; | |
| 21759 | |
| 21760 final int height; | |
| 21761 | |
| 21762 final int pixelDepth; | |
| 21763 | |
| 21764 final int width; | |
| 21765 } | |
| 21766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21767 // for details. All rights reserved. Use of this source code is governed by a | |
| 21768 // BSD-style license that can be found in the LICENSE file. | |
| 21769 | |
| 21770 // WARNING: Do not edit - generated code. | |
| 21771 | |
| 21772 interface ScriptProfile { | |
| 21773 | |
| 21774 final ScriptProfileNode head; | |
| 21775 | |
| 21776 final String title; | |
| 21777 | |
| 21778 final int uid; | |
| 21779 } | |
| 21780 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21781 // for details. All rights reserved. Use of this source code is governed by a | |
| 21782 // BSD-style license that can be found in the LICENSE file. | |
| 21783 | |
| 21784 // WARNING: Do not edit - generated code. | |
| 21785 | |
| 21786 interface ScriptProfileNode { | |
| 21787 | |
| 21788 final int callUID; | |
| 21789 | |
| 21790 final String functionName; | |
| 21791 | |
| 21792 final int lineNumber; | |
| 21793 | |
| 21794 final int numberOfCalls; | |
| 21795 | |
| 21796 final num selfTime; | |
| 21797 | |
| 21798 final num totalTime; | |
| 21799 | |
| 21800 final String url; | |
| 21801 | |
| 21802 final bool visible; | |
| 21803 | |
| 21804 List<ScriptProfileNode> children(); | |
| 21805 } | |
| 21806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21807 // for details. All rights reserved. Use of this source code is governed by a | |
| 21808 // BSD-style license that can be found in the LICENSE file. | |
| 21809 | |
| 21810 // WARNING: Do not edit - generated code. | |
| 21811 | |
| 21812 interface SessionDescription default _SessionDescriptionFactoryProvider { | |
| 21813 | |
| 21814 SessionDescription(String sdp); | |
| 21815 | |
| 21816 void addCandidate(IceCandidate candidate); | |
| 21817 | |
| 21818 String toSdp(); | |
| 21819 } | |
| 21820 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21821 // for details. All rights reserved. Use of this source code is governed by a | |
| 21822 // BSD-style license that can be found in the LICENSE file. | |
| 21823 | |
| 21824 // WARNING: Do not edit - generated code. | |
| 21825 | |
| 21826 interface ShadowRoot extends DocumentFragment default _ShadowRootFactoryProvider
{ | |
| 21827 | |
| 21828 ShadowRoot(Element host); | |
| 21829 | |
| 21830 final Element activeElement; | |
| 21831 | |
| 21832 bool applyAuthorStyles; | |
| 21833 | |
| 21834 String innerHTML; | |
| 21835 | |
| 21836 bool resetStyleInheritance; | |
| 21837 | |
| 21838 Element getElementById(String elementId); | |
| 21839 | |
| 21840 NodeList getElementsByClassName(String className); | |
| 21841 | |
| 21842 NodeList getElementsByTagName(String tagName); | |
| 21843 | |
| 21844 NodeList getElementsByTagNameNS(String namespaceURI, String localName); | |
| 21845 | |
| 21846 DOMSelection getSelection(); | |
| 21847 } | |
| 21848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21849 // for details. All rights reserved. Use of this source code is governed by a | |
| 21850 // BSD-style license that can be found in the LICENSE file. | |
| 21851 | |
| 21852 // WARNING: Do not edit - generated code. | |
| 21853 | |
| 21854 interface SharedWorker extends AbstractWorker default _SharedWorkerFactoryProvid
er { | |
| 21855 | |
| 21856 SharedWorker(String scriptURL, [String name]); | |
| 21857 | |
| 21858 final MessagePort port; | |
| 21859 } | |
| 21860 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21861 // for details. All rights reserved. Use of this source code is governed by a | |
| 21862 // BSD-style license that can be found in the LICENSE file. | |
| 21863 | |
| 21864 // WARNING: Do not edit - generated code. | |
| 21865 | |
| 21866 interface SharedWorkerGlobalScope extends WorkerContext { | |
| 21867 | |
| 21868 final String name; | |
| 21869 } | |
| 21870 | |
| 21871 interface SharedWorkerContext extends SharedWorkerGlobalScope { | |
| 21872 } | |
| 21873 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21874 // for details. All rights reserved. Use of this source code is governed by a | |
| 21875 // BSD-style license that can be found in the LICENSE file. | |
| 21876 | |
| 21877 // WARNING: Do not edit - generated code. | |
| 21878 | |
| 21879 typedef bool SignalingCallback(String message, DeprecatedPeerConnection source); | |
| 21880 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21881 // for details. All rights reserved. Use of this source code is governed by a | |
| 21882 // BSD-style license that can be found in the LICENSE file. | |
| 21883 | |
| 21884 // WARNING: Do not edit - generated code. | |
| 21885 | |
| 21886 interface SpeechGrammar default _SpeechGrammarFactoryProvider { | |
| 21887 | |
| 21888 SpeechGrammar(); | |
| 21889 | |
| 21890 String src; | |
| 21891 | |
| 21892 num weight; | |
| 21893 } | |
| 21894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21895 // for details. All rights reserved. Use of this source code is governed by a | |
| 21896 // BSD-style license that can be found in the LICENSE file. | |
| 21897 | |
| 21898 // WARNING: Do not edit - generated code. | |
| 21899 | |
| 21900 interface SpeechGrammarList default _SpeechGrammarListFactoryProvider { | |
| 21901 | |
| 21902 SpeechGrammarList(); | |
| 21903 | |
| 21904 final int length; | |
| 21905 | |
| 21906 void addFromString(String string, [num weight]); | |
| 21907 | |
| 21908 void addFromUri(String src, [num weight]); | |
| 21909 | |
| 21910 SpeechGrammar item(int index); | |
| 21911 } | |
| 21912 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21913 // for details. All rights reserved. Use of this source code is governed by a | |
| 21914 // BSD-style license that can be found in the LICENSE file. | |
| 21915 | |
| 21916 // WARNING: Do not edit - generated code. | |
| 21917 | |
| 21918 interface SpeechInputEvent extends Event { | |
| 21919 | |
| 21920 final SpeechInputResultList results; | |
| 21921 } | |
| 21922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21923 // for details. All rights reserved. Use of this source code is governed by a | |
| 21924 // BSD-style license that can be found in the LICENSE file. | |
| 21925 | |
| 21926 // WARNING: Do not edit - generated code. | |
| 21927 | |
| 21928 interface SpeechInputResult { | |
| 21929 | |
| 21930 final num confidence; | |
| 21931 | |
| 21932 final String utterance; | |
| 21933 } | |
| 21934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21935 // for details. All rights reserved. Use of this source code is governed by a | |
| 21936 // BSD-style license that can be found in the LICENSE file. | |
| 21937 | |
| 21938 // WARNING: Do not edit - generated code. | |
| 21939 | |
| 21940 interface SpeechInputResultList { | |
| 21941 | |
| 21942 final int length; | |
| 21943 | |
| 21944 SpeechInputResult item(int index); | |
| 21945 } | |
| 21946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21947 // for details. All rights reserved. Use of this source code is governed by a | |
| 21948 // BSD-style license that can be found in the LICENSE file. | |
| 21949 | |
| 21950 // WARNING: Do not edit - generated code. | |
| 21951 | |
| 21952 interface SpeechRecognition extends EventTarget default _SpeechRecognitionFactor
yProvider { | |
| 21953 | |
| 21954 SpeechRecognition(); | |
| 21955 | |
| 21956 bool continuous; | |
| 21957 | |
| 21958 SpeechGrammarList grammars; | |
| 21959 | |
| 21960 String lang; | |
| 21961 | |
| 21962 int maxAlternatives; | |
| 21963 | |
| 21964 void abort(); | |
| 21965 | |
| 21966 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 21967 | |
| 21968 bool dispatchEvent(Event evt); | |
| 21969 | |
| 21970 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 21971 | |
| 21972 void start(); | |
| 21973 | |
| 21974 void stop(); | |
| 21975 } | |
| 21976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21977 // for details. All rights reserved. Use of this source code is governed by a | |
| 21978 // BSD-style license that can be found in the LICENSE file. | |
| 21979 | |
| 21980 // WARNING: Do not edit - generated code. | |
| 21981 | |
| 21982 interface SpeechRecognitionAlternative { | |
| 21983 | |
| 21984 final num confidence; | |
| 21985 | |
| 21986 final String transcript; | |
| 21987 } | |
| 21988 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 21989 // for details. All rights reserved. Use of this source code is governed by a | |
| 21990 // BSD-style license that can be found in the LICENSE file. | |
| 21991 | |
| 21992 // WARNING: Do not edit - generated code. | |
| 21993 | |
| 21994 interface SpeechRecognitionError extends Event { | |
| 21995 | |
| 21996 static final int ABORTED = 2; | |
| 21997 | |
| 21998 static final int AUDIO_CAPTURE = 3; | |
| 21999 | |
| 22000 static final int BAD_GRAMMAR = 7; | |
| 22001 | |
| 22002 static final int LANGUAGE_NOT_SUPPORTED = 8; | |
| 22003 | |
| 22004 static final int NETWORK = 4; | |
| 22005 | |
| 22006 static final int NOT_ALLOWED = 5; | |
| 22007 | |
| 22008 static final int NO_SPEECH = 1; | |
| 22009 | |
| 22010 static final int OTHER = 0; | |
| 22011 | |
| 22012 static final int SERVICE_NOT_ALLOWED = 6; | |
| 22013 | |
| 22014 final int code; | |
| 22015 | |
| 22016 final String message; | |
| 22017 } | |
| 22018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22019 // for details. All rights reserved. Use of this source code is governed by a | |
| 22020 // BSD-style license that can be found in the LICENSE file. | |
| 22021 | |
| 22022 // WARNING: Do not edit - generated code. | |
| 22023 | |
| 22024 interface SpeechRecognitionEvent extends Event { | |
| 22025 | |
| 22026 final SpeechRecognitionResult result; | |
| 22027 | |
| 22028 final SpeechRecognitionResultList resultHistory; | |
| 22029 | |
| 22030 final int resultIndex; | |
| 22031 } | |
| 22032 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22033 // for details. All rights reserved. Use of this source code is governed by a | |
| 22034 // BSD-style license that can be found in the LICENSE file. | |
| 22035 | |
| 22036 // WARNING: Do not edit - generated code. | |
| 22037 | |
| 22038 interface SpeechRecognitionResult { | |
| 22039 | |
| 22040 final bool finalValue; | |
| 22041 | |
| 22042 final int length; | |
| 22043 | |
| 22044 SpeechRecognitionAlternative item(int index); | |
| 22045 } | |
| 22046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22047 // for details. All rights reserved. Use of this source code is governed by a | |
| 22048 // BSD-style license that can be found in the LICENSE file. | |
| 22049 | |
| 22050 // WARNING: Do not edit - generated code. | |
| 22051 | |
| 22052 interface SpeechRecognitionResultList { | |
| 22053 | |
| 22054 final int length; | |
| 22055 | |
| 22056 SpeechRecognitionResult 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 Storage { | |
| 22065 | |
| 22066 final int length; | |
| 22067 | |
| 22068 void clear(); | |
| 22069 | |
| 22070 String getItem(String key); | |
| 22071 | |
| 22072 String key(int index); | |
| 22073 | |
| 22074 void removeItem(String key); | |
| 22075 | |
| 22076 void setItem(String key, String data); | |
| 22077 } | |
| 22078 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22079 // for details. All rights reserved. Use of this source code is governed by a | |
| 22080 // BSD-style license that can be found in the LICENSE file. | |
| 22081 | |
| 22082 // WARNING: Do not edit - generated code. | |
| 22083 | |
| 22084 interface StorageEvent extends Event { | |
| 22085 | |
| 22086 final String key; | |
| 22087 | |
| 22088 final String newValue; | |
| 22089 | |
| 22090 final String oldValue; | |
| 22091 | |
| 22092 final Storage storageArea; | |
| 22093 | |
| 22094 final String url; | |
| 22095 | |
| 22096 void initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, S
tring keyArg, String oldValueArg, String newValueArg, String urlArg, Storage sto
rageAreaArg); | |
| 22097 } | |
| 22098 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22099 // for details. All rights reserved. Use of this source code is governed by a | |
| 22100 // BSD-style license that can be found in the LICENSE file. | |
| 22101 | |
| 22102 // WARNING: Do not edit - generated code. | |
| 22103 | |
| 22104 interface StorageInfo { | |
| 22105 | |
| 22106 static final int PERSISTENT = 1; | |
| 22107 | |
| 22108 static final int TEMPORARY = 0; | |
| 22109 | |
| 22110 void queryUsageAndQuota(int storageType, [StorageInfoUsageCallback usageCallba
ck, StorageInfoErrorCallback errorCallback]); | |
| 22111 | |
| 22112 void requestQuota(int storageType, int newQuotaInBytes, [StorageInfoQuotaCallb
ack quotaCallback, StorageInfoErrorCallback errorCallback]); | |
| 22113 } | |
| 22114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22115 // for details. All rights reserved. Use of this source code is governed by a | |
| 22116 // BSD-style license that can be found in the LICENSE file. | |
| 22117 | |
| 22118 // WARNING: Do not edit - generated code. | |
| 22119 | |
| 22120 typedef bool StorageInfoErrorCallback(DOMException error); | |
| 22121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22122 // for details. All rights reserved. Use of this source code is governed by a | |
| 22123 // BSD-style license that can be found in the LICENSE file. | |
| 22124 | |
| 22125 // WARNING: Do not edit - generated code. | |
| 22126 | |
| 22127 typedef bool StorageInfoQuotaCallback(int grantedQuotaInBytes); | |
| 22128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22129 // for details. All rights reserved. Use of this source code is governed by a | |
| 22130 // BSD-style license that can be found in the LICENSE file. | |
| 22131 | |
| 22132 // WARNING: Do not edit - generated code. | |
| 22133 | |
| 22134 typedef bool StorageInfoUsageCallback(int currentUsageInBytes, int currentQuotaI
nBytes); | |
| 22135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22136 // for details. All rights reserved. Use of this source code is governed by a | |
| 22137 // BSD-style license that can be found in the LICENSE file. | |
| 22138 | |
| 22139 // WARNING: Do not edit - generated code. | |
| 22140 | |
| 22141 typedef bool StringCallback(String data); | |
| 22142 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22143 // for details. All rights reserved. Use of this source code is governed by a | |
| 22144 // BSD-style license that can be found in the LICENSE file. | |
| 22145 | |
| 22146 // WARNING: Do not edit - generated code. | |
| 22147 | |
| 22148 interface StyleMedia { | |
| 22149 | |
| 22150 final String type; | |
| 22151 | |
| 22152 bool matchMedium(String mediaquery); | |
| 22153 } | |
| 22154 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22155 // for details. All rights reserved. Use of this source code is governed by a | |
| 22156 // BSD-style license that can be found in the LICENSE file. | |
| 22157 | |
| 22158 // WARNING: Do not edit - generated code. | |
| 22159 | |
| 22160 interface StyleSheet { | |
| 22161 | |
| 22162 bool disabled; | |
| 22163 | |
| 22164 final String href; | |
| 22165 | |
| 22166 final MediaList media; | |
| 22167 | |
| 22168 final Node ownerNode; | |
| 22169 | |
| 22170 final StyleSheet parentStyleSheet; | |
| 22171 | |
| 22172 final String title; | |
| 22173 | |
| 22174 final String type; | |
| 22175 } | |
| 22176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22177 // for details. All rights reserved. Use of this source code is governed by a | |
| 22178 // BSD-style license that can be found in the LICENSE file. | |
| 22179 | |
| 22180 // WARNING: Do not edit - generated code. | |
| 22181 | |
| 22182 interface StyleSheetList extends List<StyleSheet> { | |
| 22183 | |
| 22184 final int length; | |
| 22185 | |
| 22186 StyleSheet item(int index); | |
| 22187 } | |
| 22188 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22189 // for details. All rights reserved. Use of this source code is governed by a | |
| 22190 // BSD-style license that can be found in the LICENSE file. | |
| 22191 | |
| 22192 // WARNING: Do not edit - generated code. | |
| 22193 | |
| 22194 interface Text extends CharacterData { | |
| 22195 | |
| 22196 final String wholeText; | |
| 22197 | |
| 22198 Text replaceWholeText(String content); | |
| 22199 | |
| 22200 Text splitText(int offset); | |
| 22201 } | |
| 22202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22203 // for details. All rights reserved. Use of this source code is governed by a | |
| 22204 // BSD-style license that can be found in the LICENSE file. | |
| 22205 | |
| 22206 // WARNING: Do not edit - generated code. | |
| 22207 | |
| 22208 interface TextEvent extends UIEvent { | |
| 22209 | |
| 22210 final String data; | |
| 22211 | |
| 22212 void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, DOMW
indow viewArg, String dataArg); | |
| 22213 } | |
| 22214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22215 // for details. All rights reserved. Use of this source code is governed by a | |
| 22216 // BSD-style license that can be found in the LICENSE file. | |
| 22217 | |
| 22218 // WARNING: Do not edit - generated code. | |
| 22219 | |
| 22220 interface TextMetrics { | |
| 22221 | |
| 22222 final num width; | |
| 22223 } | |
| 22224 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22225 // for details. All rights reserved. Use of this source code is governed by a | |
| 22226 // BSD-style license that can be found in the LICENSE file. | |
| 22227 | |
| 22228 // WARNING: Do not edit - generated code. | |
| 22229 | |
| 22230 interface TextTrack extends EventTarget { | |
| 22231 | |
| 22232 static final int DISABLED = 0; | |
| 22233 | |
| 22234 static final int HIDDEN = 1; | |
| 22235 | |
| 22236 static final int SHOWING = 2; | |
| 22237 | |
| 22238 final TextTrackCueList activeCues; | |
| 22239 | |
| 22240 final TextTrackCueList cues; | |
| 22241 | |
| 22242 final String kind; | |
| 22243 | |
| 22244 final String label; | |
| 22245 | |
| 22246 final String language; | |
| 22247 | |
| 22248 int mode; | |
| 22249 | |
| 22250 void addCue(TextTrackCue cue); | |
| 22251 | |
| 22252 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 22253 | |
| 22254 bool dispatchEvent(Event evt); | |
| 22255 | |
| 22256 void removeCue(TextTrackCue cue); | |
| 22257 | |
| 22258 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 22259 } | |
| 22260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22261 // for details. All rights reserved. Use of this source code is governed by a | |
| 22262 // BSD-style license that can be found in the LICENSE file. | |
| 22263 | |
| 22264 // WARNING: Do not edit - generated code. | |
| 22265 | |
| 22266 interface TextTrackCue extends EventTarget default _TextTrackCueFactoryProvider
{ | |
| 22267 | |
| 22268 TextTrackCue(String id, num startTime, num endTime, String text, [String setti
ngs, bool pauseOnExit]); | |
| 22269 | |
| 22270 String align; | |
| 22271 | |
| 22272 num endTime; | |
| 22273 | |
| 22274 String id; | |
| 22275 | |
| 22276 int line; | |
| 22277 | |
| 22278 bool pauseOnExit; | |
| 22279 | |
| 22280 int position; | |
| 22281 | |
| 22282 int size; | |
| 22283 | |
| 22284 bool snapToLines; | |
| 22285 | |
| 22286 num startTime; | |
| 22287 | |
| 22288 String text; | |
| 22289 | |
| 22290 final TextTrack track; | |
| 22291 | |
| 22292 String vertical; | |
| 22293 | |
| 22294 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 22295 | |
| 22296 bool dispatchEvent(Event evt); | |
| 22297 | |
| 22298 DocumentFragment getCueAsHTML(); | |
| 22299 | |
| 22300 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 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 TextTrackCueList { | |
| 22309 | |
| 22310 final int length; | |
| 22311 | |
| 22312 TextTrackCue getCueById(String id); | |
| 22313 | |
| 22314 TextTrackCue item(int index); | |
| 22315 } | |
| 22316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22317 // for details. All rights reserved. Use of this source code is governed by a | |
| 22318 // BSD-style license that can be found in the LICENSE file. | |
| 22319 | |
| 22320 // WARNING: Do not edit - generated code. | |
| 22321 | |
| 22322 interface TextTrackList extends EventTarget { | |
| 22323 | |
| 22324 final int length; | |
| 22325 | |
| 22326 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 22327 | |
| 22328 bool dispatchEvent(Event evt); | |
| 22329 | |
| 22330 TextTrack item(int index); | |
| 22331 | |
| 22332 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 22333 } | |
| 22334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22335 // for details. All rights reserved. Use of this source code is governed by a | |
| 22336 // BSD-style license that can be found in the LICENSE file. | |
| 22337 | |
| 22338 // WARNING: Do not edit - generated code. | |
| 22339 | |
| 22340 interface TimeRanges { | |
| 22341 | |
| 22342 final int length; | |
| 22343 | |
| 22344 num end(int index); | |
| 22345 | |
| 22346 num start(int index); | |
| 22347 } | |
| 22348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22349 // for details. All rights reserved. Use of this source code is governed by a | |
| 22350 // BSD-style license that can be found in the LICENSE file. | |
| 22351 | |
| 22352 // WARNING: Do not edit - generated code. | |
| 22353 | |
| 22354 typedef void TimeoutHandler(); | |
| 22355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22356 // for details. All rights reserved. Use of this source code is governed by a | |
| 22357 // BSD-style license that can be found in the LICENSE file. | |
| 22358 | |
| 22359 // WARNING: Do not edit - generated code. | |
| 22360 | |
| 22361 interface Touch { | |
| 22362 | |
| 22363 final int clientX; | |
| 22364 | |
| 22365 final int clientY; | |
| 22366 | |
| 22367 final int identifier; | |
| 22368 | |
| 22369 final int pageX; | |
| 22370 | |
| 22371 final int pageY; | |
| 22372 | |
| 22373 final int screenX; | |
| 22374 | |
| 22375 final int screenY; | |
| 22376 | |
| 22377 final EventTarget target; | |
| 22378 | |
| 22379 final num webkitForce; | |
| 22380 | |
| 22381 final int webkitRadiusX; | |
| 22382 | |
| 22383 final int webkitRadiusY; | |
| 22384 | |
| 22385 final num webkitRotationAngle; | |
| 22386 } | |
| 22387 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22388 // for details. All rights reserved. Use of this source code is governed by a | |
| 22389 // BSD-style license that can be found in the LICENSE file. | |
| 22390 | |
| 22391 // WARNING: Do not edit - generated code. | |
| 22392 | |
| 22393 interface TouchEvent extends UIEvent { | |
| 22394 | |
| 22395 final bool altKey; | |
| 22396 | |
| 22397 final TouchList changedTouches; | |
| 22398 | |
| 22399 final bool ctrlKey; | |
| 22400 | |
| 22401 final bool metaKey; | |
| 22402 | |
| 22403 final bool shiftKey; | |
| 22404 | |
| 22405 final TouchList targetTouches; | |
| 22406 | |
| 22407 final TouchList touches; | |
| 22408 | |
| 22409 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); | |
| 22410 } | |
| 22411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22412 // for details. All rights reserved. Use of this source code is governed by a | |
| 22413 // BSD-style license that can be found in the LICENSE file. | |
| 22414 | |
| 22415 // WARNING: Do not edit - generated code. | |
| 22416 | |
| 22417 interface TouchList extends List<Touch> { | |
| 22418 | |
| 22419 final int length; | |
| 22420 | |
| 22421 Touch item(int index); | |
| 22422 } | |
| 22423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22424 // for details. All rights reserved. Use of this source code is governed by a | |
| 22425 // BSD-style license that can be found in the LICENSE file. | |
| 22426 | |
| 22427 // WARNING: Do not edit - generated code. | |
| 22428 | |
| 22429 interface TrackEvent extends Event { | |
| 22430 | |
| 22431 final Object track; | |
| 22432 } | |
| 22433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22434 // for details. All rights reserved. Use of this source code is governed by a | |
| 22435 // BSD-style license that can be found in the LICENSE file. | |
| 22436 | |
| 22437 // WARNING: Do not edit - generated code. | |
| 22438 | |
| 22439 interface TreeWalker { | |
| 22440 | |
| 22441 Node currentNode; | |
| 22442 | |
| 22443 final bool expandEntityReferences; | |
| 22444 | |
| 22445 final NodeFilter filter; | |
| 22446 | |
| 22447 final Node root; | |
| 22448 | |
| 22449 final int whatToShow; | |
| 22450 | |
| 22451 Node firstChild(); | |
| 22452 | |
| 22453 Node lastChild(); | |
| 22454 | |
| 22455 Node nextNode(); | |
| 22456 | |
| 22457 Node nextSibling(); | |
| 22458 | |
| 22459 Node parentNode(); | |
| 22460 | |
| 22461 Node previousNode(); | |
| 22462 | |
| 22463 Node previousSibling(); | |
| 22464 } | |
| 22465 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22466 // for details. All rights reserved. Use of this source code is governed by a | |
| 22467 // BSD-style license that can be found in the LICENSE file. | |
| 22468 | |
| 22469 // WARNING: Do not edit - generated code. | |
| 22470 | |
| 22471 interface UIEvent extends Event { | |
| 22472 | |
| 22473 final int charCode; | |
| 22474 | |
| 22475 final int detail; | |
| 22476 | |
| 22477 final int keyCode; | |
| 22478 | |
| 22479 final int layerX; | |
| 22480 | |
| 22481 final int layerY; | |
| 22482 | |
| 22483 final int pageX; | |
| 22484 | |
| 22485 final int pageY; | |
| 22486 | |
| 22487 final DOMWindow view; | |
| 22488 | |
| 22489 final int which; | |
| 22490 | |
| 22491 void initUIEvent(String type, bool canBubble, bool cancelable, DOMWindow view,
int detail); | |
| 22492 } | |
| 22493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22494 // for details. All rights reserved. Use of this source code is governed by a | |
| 22495 // BSD-style license that can be found in the LICENSE file. | |
| 22496 | |
| 22497 // WARNING: Do not edit - generated code. | |
| 22498 | |
| 22499 interface Uint16Array extends ArrayBufferView, List<int> default _TypedArrayFact
oryProvider { | |
| 22500 | |
| 22501 Uint16Array(int length); | |
| 22502 | |
| 22503 Uint16Array.fromList(List<int> list); | |
| 22504 | |
| 22505 Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
| 22506 | |
| 22507 static final int BYTES_PER_ELEMENT = 2; | |
| 22508 | |
| 22509 final int length; | |
| 22510 | |
| 22511 void setElements(Object array, [int offset]); | |
| 22512 | |
| 22513 Uint16Array subarray(int start, [int end]); | |
| 22514 } | |
| 22515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22516 // for details. All rights reserved. Use of this source code is governed by a | |
| 22517 // BSD-style license that can be found in the LICENSE file. | |
| 22518 | |
| 22519 // WARNING: Do not edit - generated code. | |
| 22520 | |
| 22521 interface Uint32Array extends ArrayBufferView, List<int> default _TypedArrayFact
oryProvider { | |
| 22522 | |
| 22523 Uint32Array(int length); | |
| 22524 | |
| 22525 Uint32Array.fromList(List<int> list); | |
| 22526 | |
| 22527 Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
| 22528 | |
| 22529 static final int BYTES_PER_ELEMENT = 4; | |
| 22530 | |
| 22531 final int length; | |
| 22532 | |
| 22533 void setElements(Object array, [int offset]); | |
| 22534 | |
| 22535 Uint32Array subarray(int start, [int end]); | |
| 22536 } | |
| 22537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22538 // for details. All rights reserved. Use of this source code is governed by a | |
| 22539 // BSD-style license that can be found in the LICENSE file. | |
| 22540 | |
| 22541 // WARNING: Do not edit - generated code. | |
| 22542 | |
| 22543 interface Uint8Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { | |
| 22544 | |
| 22545 Uint8Array(int length); | |
| 22546 | |
| 22547 Uint8Array.fromList(List<int> list); | |
| 22548 | |
| 22549 Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]); | |
| 22550 | |
| 22551 static final int BYTES_PER_ELEMENT = 1; | |
| 22552 | |
| 22553 final int length; | |
| 22554 | |
| 22555 void setElements(Object array, [int offset]); | |
| 22556 | |
| 22557 Uint8Array subarray(int start, [int end]); | |
| 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 Uint8ClampedArray extends Uint8Array default _TypedArrayFactoryProvide
r { | |
| 22566 | |
| 22567 Uint8ClampedArray(int length); | |
| 22568 | |
| 22569 Uint8ClampedArray.fromList(List<int> list); | |
| 22570 | |
| 22571 Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length])
; | |
| 22572 | |
| 22573 final int length; | |
| 22574 | |
| 22575 void setElements(Object array, [int offset]); | |
| 22576 | |
| 22577 Uint8ClampedArray subarray(int start, [int end]); | |
| 22578 } | |
| 22579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22580 // for details. All rights reserved. Use of this source code is governed by a | |
| 22581 // BSD-style license that can be found in the LICENSE file. | |
| 22582 | |
| 22583 // WARNING: Do not edit - generated code. | |
| 22584 | |
| 22585 interface ValidityState { | |
| 22586 | |
| 22587 final bool customError; | |
| 22588 | |
| 22589 final bool patternMismatch; | |
| 22590 | |
| 22591 final bool rangeOverflow; | |
| 22592 | |
| 22593 final bool rangeUnderflow; | |
| 22594 | |
| 22595 final bool stepMismatch; | |
| 22596 | |
| 22597 final bool tooLong; | |
| 22598 | |
| 22599 final bool typeMismatch; | |
| 22600 | |
| 22601 final bool valid; | |
| 22602 | |
| 22603 final bool valueMissing; | |
| 22604 } | |
| 22605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22606 // for details. All rights reserved. Use of this source code is governed by a | |
| 22607 // BSD-style license that can be found in the LICENSE file. | |
| 22608 | |
| 22609 // WARNING: Do not edit - generated code. | |
| 22610 | |
| 22611 typedef void VoidCallback(); | |
| 22612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22613 // for details. All rights reserved. Use of this source code is governed by a | |
| 22614 // BSD-style license that can be found in the LICENSE file. | |
| 22615 | |
| 22616 // WARNING: Do not edit - generated code. | |
| 22617 | |
| 22618 interface WaveShaperNode extends AudioNode { | |
| 22619 | |
| 22620 Float32Array curve; | |
| 22621 } | |
| 22622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22623 // for details. All rights reserved. Use of this source code is governed by a | |
| 22624 // BSD-style license that can be found in the LICENSE file. | |
| 22625 | |
| 22626 // WARNING: Do not edit - generated code. | |
| 22627 | |
| 22628 interface WaveTable { | |
| 22629 } | |
| 22630 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22631 // for details. All rights reserved. Use of this source code is governed by a | |
| 22632 // BSD-style license that can be found in the LICENSE file. | |
| 22633 | |
| 22634 // WARNING: Do not edit - generated code. | |
| 22635 | |
| 22636 interface WebGLActiveInfo { | |
| 22637 | |
| 22638 final String name; | |
| 22639 | |
| 22640 final int size; | |
| 22641 | |
| 22642 final int type; | |
| 22643 } | |
| 22644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22645 // for details. All rights reserved. Use of this source code is governed by a | |
| 22646 // BSD-style license that can be found in the LICENSE file. | |
| 22647 | |
| 22648 // WARNING: Do not edit - generated code. | |
| 22649 | |
| 22650 interface WebGLBuffer { | |
| 22651 } | |
| 22652 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22653 // for details. All rights reserved. Use of this source code is governed by a | |
| 22654 // BSD-style license that can be found in the LICENSE file. | |
| 22655 | |
| 22656 // WARNING: Do not edit - generated code. | |
| 22657 | |
| 22658 interface WebGLCompressedTextureS3TC { | |
| 22659 | |
| 22660 static final int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; | |
| 22661 | |
| 22662 static final int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; | |
| 22663 | |
| 22664 static final int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; | |
| 22665 | |
| 22666 static final int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; | |
| 22667 } | |
| 22668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22669 // for details. All rights reserved. Use of this source code is governed by a | |
| 22670 // BSD-style license that can be found in the LICENSE file. | |
| 22671 | |
| 22672 // WARNING: Do not edit - generated code. | |
| 22673 | |
| 22674 interface WebGLContextAttributes { | |
| 22675 | |
| 22676 bool alpha; | |
| 22677 | |
| 22678 bool antialias; | |
| 22679 | |
| 22680 bool depth; | |
| 22681 | |
| 22682 bool premultipliedAlpha; | |
| 22683 | |
| 22684 bool preserveDrawingBuffer; | |
| 22685 | |
| 22686 bool stencil; | |
| 22687 } | |
| 22688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22689 // for details. All rights reserved. Use of this source code is governed by a | |
| 22690 // BSD-style license that can be found in the LICENSE file. | |
| 22691 | |
| 22692 // WARNING: Do not edit - generated code. | |
| 22693 | |
| 22694 interface WebGLContextEvent extends Event { | |
| 22695 | |
| 22696 final String statusMessage; | |
| 22697 } | |
| 22698 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22699 // for details. All rights reserved. Use of this source code is governed by a | |
| 22700 // BSD-style license that can be found in the LICENSE file. | |
| 22701 | |
| 22702 // WARNING: Do not edit - generated code. | |
| 22703 | |
| 22704 interface WebGLDebugRendererInfo { | |
| 22705 | |
| 22706 static final int UNMASKED_RENDERER_WEBGL = 0x9246; | |
| 22707 | |
| 22708 static final int UNMASKED_VENDOR_WEBGL = 0x9245; | |
| 22709 } | |
| 22710 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22711 // for details. All rights reserved. Use of this source code is governed by a | |
| 22712 // BSD-style license that can be found in the LICENSE file. | |
| 22713 | |
| 22714 // WARNING: Do not edit - generated code. | |
| 22715 | |
| 22716 interface WebGLDebugShaders { | |
| 22717 | |
| 22718 String getTranslatedShaderSource(WebGLShader shader); | |
| 22719 } | |
| 22720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22721 // for details. All rights reserved. Use of this source code is governed by a | |
| 22722 // BSD-style license that can be found in the LICENSE file. | |
| 22723 | |
| 22724 // WARNING: Do not edit - generated code. | |
| 22725 | |
| 22726 interface WebGLDepthTexture { | |
| 22727 | |
| 22728 static final int UNSIGNED_INT_24_8_WEBGL = 0x84FA; | |
| 22729 } | |
| 22730 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22731 // for details. All rights reserved. Use of this source code is governed by a | |
| 22732 // BSD-style license that can be found in the LICENSE file. | |
| 22733 | |
| 22734 // WARNING: Do not edit - generated code. | |
| 22735 | |
| 22736 interface WebGLFramebuffer { | |
| 22737 } | |
| 22738 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22739 // for details. All rights reserved. Use of this source code is governed by a | |
| 22740 // BSD-style license that can be found in the LICENSE file. | |
| 22741 | |
| 22742 // WARNING: Do not edit - generated code. | |
| 22743 | |
| 22744 interface WebGLLoseContext { | |
| 22745 | |
| 22746 void loseContext(); | |
| 22747 | |
| 22748 void restoreContext(); | |
| 22749 } | |
| 22750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22751 // for details. All rights reserved. Use of this source code is governed by a | |
| 22752 // BSD-style license that can be found in the LICENSE file. | |
| 22753 | |
| 22754 // WARNING: Do not edit - generated code. | |
| 22755 | |
| 22756 interface WebGLProgram { | |
| 22757 } | |
| 22758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22759 // for details. All rights reserved. Use of this source code is governed by a | |
| 22760 // BSD-style license that can be found in the LICENSE file. | |
| 22761 | |
| 22762 // WARNING: Do not edit - generated code. | |
| 22763 | |
| 22764 interface WebGLRenderbuffer { | |
| 22765 } | |
| 22766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 22767 // for details. All rights reserved. Use of this source code is governed by a | |
| 22768 // BSD-style license that can be found in the LICENSE file. | |
| 22769 | |
| 22770 // WARNING: Do not edit - generated code. | |
| 22771 | |
| 22772 interface WebGLRenderingContext extends CanvasRenderingContext { | |
| 22773 | |
| 22774 static final int ACTIVE_ATTRIBUTES = 0x8B89; | |
| 22775 | |
| 22776 static final int ACTIVE_TEXTURE = 0x84E0; | |
| 22777 | |
| 22778 static final int ACTIVE_UNIFORMS = 0x8B86; | |
| 22779 | |
| 22780 static final int ALIASED_LINE_WIDTH_RANGE = 0x846E; | |
| 22781 | |
| 22782 static final int ALIASED_POINT_SIZE_RANGE = 0x846D; | |
| 22783 | |
| 22784 static final int ALPHA = 0x1906; | |
| 22785 | |
| 22786 static final int ALPHA_BITS = 0x0D55; | |
| 22787 | |
| 22788 static final int ALWAYS = 0x0207; | |
| 22789 | |
| 22790 static final int ARRAY_BUFFER = 0x8892; | |
| 22791 | |
| 22792 static final int ARRAY_BUFFER_BINDING = 0x8894; | |
| 22793 | |
| 22794 static final int ATTACHED_SHADERS = 0x8B85; | |
| 22795 | |
| 22796 static final int BACK = 0x0405; | |
| 22797 | |
| 22798 static final int BLEND = 0x0BE2; | |
| 22799 | |
| 22800 static final int BLEND_COLOR = 0x8005; | |
| 22801 | |
| 22802 static final int BLEND_DST_ALPHA = 0x80CA; | |
| 22803 | |
| 22804 static final int BLEND_DST_RGB = 0x80C8; | |
| 22805 | |
| 22806 static final int BLEND_EQUATION = 0x8009; | |
| 22807 | |
| 22808 static final int BLEND_EQUATION_ALPHA = 0x883D; | |
| 22809 | |
| 22810 static final int BLEND_EQUATION_RGB = 0x8009; | |
| 22811 | |
| 22812 static final int BLEND_SRC_ALPHA = 0x80CB; | |
| 22813 | |
| 22814 static final int BLEND_SRC_RGB = 0x80C9; | |
| 22815 | |
| 22816 static final int BLUE_BITS = 0x0D54; | |
| 22817 | |
| 22818 static final int BOOL = 0x8B56; | |
| 22819 | |
| 22820 static final int BOOL_VEC2 = 0x8B57; | |
| 22821 | |
| 22822 static final int BOOL_VEC3 = 0x8B58; | |
| 22823 | |
| 22824 static final int BOOL_VEC4 = 0x8B59; | |
| 22825 | |
| 22826 static final int BROWSER_DEFAULT_WEBGL = 0x9244; | |
| 22827 | |
| 22828 static final int BUFFER_SIZE = 0x8764; | |
| 22829 | |
| 22830 static final int BUFFER_USAGE = 0x8765; | |
| 22831 | |
| 22832 static final int BYTE = 0x1400; | |
| 22833 | |
| 22834 static final int CCW = 0x0901; | |
| 22835 | |
| 22836 static final int CLAMP_TO_EDGE = 0x812F; | |
| 22837 | |
| 22838 static final int COLOR_ATTACHMENT0 = 0x8CE0; | |
| 22839 | |
| 22840 static final int COLOR_BUFFER_BIT = 0x00004000; | |
| 22841 | |
| 22842 static final int COLOR_CLEAR_VALUE = 0x0C22; | |
| 22843 | |
| 22844 static final int COLOR_WRITEMASK = 0x0C23; | |
| 22845 | |
| 22846 static final int COMPILE_STATUS = 0x8B81; | |
| 22847 | |
| 22848 static final int COMPRESSED_TEXTURE_FORMATS = 0x86A3; | |
| 22849 | |
| 22850 static final int CONSTANT_ALPHA = 0x8003; | |
| 22851 | |
| 22852 static final int CONSTANT_COLOR = 0x8001; | |
| 22853 | |
| 22854 static final int CONTEXT_LOST_WEBGL = 0x9242; | |
| 22855 | |
| 22856 static final int CULL_FACE = 0x0B44; | |
| 22857 | |
| 22858 static final int CULL_FACE_MODE = 0x0B45; | |
| 22859 | |
| 22860 static final int CURRENT_PROGRAM = 0x8B8D; | |
| 22861 | |
| 22862 static final int CURRENT_VERTEX_ATTRIB = 0x8626; | |
| 22863 | |
| 22864 static final int CW = 0x0900; | |
| 22865 | |
| 22866 static final int DECR = 0x1E03; | |
| 22867 | |
| 22868 static final int DECR_WRAP = 0x8508; | |
| 22869 | |
| 22870 static final int DELETE_STATUS = 0x8B80; | |
| 22871 | |
| 22872 static final int DEPTH_ATTACHMENT = 0x8D00; | |
| 22873 | |
| 22874 static final int DEPTH_BITS = 0x0D56; | |
| 22875 | |
| 22876 static final int DEPTH_BUFFER_BIT = 0x00000100; | |
| 22877 | |
| 22878 static final int DEPTH_CLEAR_VALUE = 0x0B73; | |
| 22879 | |
| 22880 static final int DEPTH_COMPONENT = 0x1902; | |
| 22881 | |
| 22882 static final int DEPTH_COMPONENT16 = 0x81A5; | |
| 22883 | |
| 22884 static final int DEPTH_FUNC = 0x0B74; | |
| 22885 | |
| 22886 static final int DEPTH_RANGE = 0x0B70; | |
| 22887 | |
| 22888 static final int DEPTH_STENCIL = 0x84F9; | |
| 22889 | |
| 22890 static final int DEPTH_STENCIL_ATTACHMENT = 0x821A; | |
| 22891 | |
| 22892 static final int DEPTH_TEST = 0x0B71; | |
| 22893 | |
| 22894 static final int DEPTH_WRITEMASK = 0x0B72; | |
| 22895 | |
| 22896 static final int DITHER = 0x0BD0; | |
| 22897 | |
| 22898 static final int DONT_CARE = 0x1100; | |
| 22899 | |
| 22900 static final int DST_ALPHA = 0x0304; | |
| 22901 | |
| 22902 static final int DST_COLOR = 0x0306; | |
| 22903 | |
| 22904 static final int DYNAMIC_DRAW = 0x88E8; | |
| 22905 | |
| 22906 static final int ELEMENT_ARRAY_BUFFER = 0x8893; | |
| 22907 | |
| 22908 static final int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; | |
| 22909 | |
| 22910 static final int EQUAL = 0x0202; | |
| 22911 | |
| 22912 static final int FASTEST = 0x1101; | |
| 22913 | |
| 22914 static final int FLOAT = 0x1406; | |
| 22915 | |
| 22916 static final int FLOAT_MAT2 = 0x8B5A; | |
| 22917 | |
| 22918 static final int FLOAT_MAT3 = 0x8B5B; | |
| 22919 | |
| 22920 static final int FLOAT_MAT4 = 0x8B5C; | |
| 22921 | |
| 22922 static final int FLOAT_VEC2 = 0x8B50; | |
| 22923 | |
| 22924 static final int FLOAT_VEC3 = 0x8B51; | |
| 22925 | |
| 22926 static final int FLOAT_VEC4 = 0x8B52; | |
| 22927 | |
| 22928 static final int FRAGMENT_SHADER = 0x8B30; | |
| 22929 | |
| 22930 static final int FRAMEBUFFER = 0x8D40; | |
| 22931 | |
| 22932 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; | |
| 22933 | |
| 22934 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; | |
| 22935 | |
| 22936 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; | |
| 22937 | |
| 22938 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; | |
| 22939 | |
| 22940 static final int FRAMEBUFFER_BINDING = 0x8CA6; | |
| 22941 | |
| 22942 static final int FRAMEBUFFER_COMPLETE = 0x8CD5; | |
| 22943 | |
| 22944 static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; | |
| 22945 | |
| 22946 static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; | |
| 22947 | |
| 22948 static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; | |
| 22949 | |
| 22950 static final int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; | |
| 22951 | |
| 22952 static final int FRONT = 0x0404; | |
| 22953 | |
| 22954 static final int FRONT_AND_BACK = 0x0408; | |
| 22955 | |
| 22956 static final int FRONT_FACE = 0x0B46; | |
| 22957 | |
| 22958 static final int FUNC_ADD = 0x8006; | |
| 22959 | |
| 22960 static final int FUNC_REVERSE_SUBTRACT = 0x800B; | |
| 22961 | |
| 22962 static final int FUNC_SUBTRACT = 0x800A; | |
| 22963 | |
| 22964 static final int GENERATE_MIPMAP_HINT = 0x8192; | |
| 22965 | |
| 22966 static final int GEQUAL = 0x0206; | |
| 22967 | |
| 22968 static final int GREATER = 0x0204; | |
| 22969 | |
| 22970 static final int GREEN_BITS = 0x0D53; | |
| 22971 | |
| 22972 static final int HIGH_FLOAT = 0x8DF2; | |
| 22973 | |
| 22974 static final int HIGH_INT = 0x8DF5; | |
| 22975 | |
| 22976 static final int INCR = 0x1E02; | |
| 22977 | |
| 22978 static final int INCR_WRAP = 0x8507; | |
| 22979 | |
| 22980 static final int INT = 0x1404; | |
| 22981 | |
| 22982 static final int INT_VEC2 = 0x8B53; | |
| 22983 | |
| 22984 static final int INT_VEC3 = 0x8B54; | |
| 22985 | |
| 22986 static final int INT_VEC4 = 0x8B55; | |
| 22987 | |
| 22988 static final int INVALID_ENUM = 0x0500; | |
| 22989 | |
| 22990 static final int INVALID_FRAMEBUFFER_OPERATION = 0x0506; | |
| 22991 | |
| 22992 static final int INVALID_OPERATION = 0x0502; | |
| 22993 | |
| 22994 static final int INVALID_VALUE = 0x0501; | |
| 22995 | |
| 22996 static final int INVERT = 0x150A; | |
| 22997 | |
| 22998 static final int KEEP = 0x1E00; | |
| 22999 | |
| 23000 static final int LEQUAL = 0x0203; | |
| 23001 | |
| 23002 static final int LESS = 0x0201; | |
| 23003 | |
| 23004 static final int LINEAR = 0x2601; | |
| 23005 | |
| 23006 static final int LINEAR_MIPMAP_LINEAR = 0x2703; | |
| 23007 | |
| 23008 static final int LINEAR_MIPMAP_NEAREST = 0x2701; | |
| 23009 | |
| 23010 static final int LINES = 0x0001; | |
| 23011 | |
| 23012 static final int LINE_LOOP = 0x0002; | |
| 23013 | |
| 23014 static final int LINE_STRIP = 0x0003; | |
| 23015 | |
| 23016 static final int LINE_WIDTH = 0x0B21; | |
| 23017 | |
| 23018 static final int LINK_STATUS = 0x8B82; | |
| 23019 | |
| 23020 static final int LOW_FLOAT = 0x8DF0; | |
| 23021 | |
| 23022 static final int LOW_INT = 0x8DF3; | |
| 23023 | |
| 23024 static final int LUMINANCE = 0x1909; | |
| 23025 | |
| 23026 static final int LUMINANCE_ALPHA = 0x190A; | |
| 23027 | |
| 23028 static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; | |
| 23029 | |
| 23030 static final int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; | |
| 23031 | |
| 23032 static final int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; | |
| 23033 | |
| 23034 static final int MAX_RENDERBUFFER_SIZE = 0x84E8; | |
| 23035 | |
| 23036 static final int MAX_TEXTURE_IMAGE_UNITS = 0x8872; | |
| 23037 | |
| 23038 static final int MAX_TEXTURE_SIZE = 0x0D33; | |
| 23039 | |
| 23040 static final int MAX_VARYING_VECTORS = 0x8DFC; | |
| 23041 | |
| 23042 static final int MAX_VERTEX_ATTRIBS = 0x8869; | |
| 23043 | |
| 23044 static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; | |
| 23045 | |
| 23046 static final int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; | |
| 23047 | |
| 23048 static final int MAX_VIEWPORT_DIMS = 0x0D3A; | |
| 23049 | |
| 23050 static final int MEDIUM_FLOAT = 0x8DF1; | |
| 23051 | |
| 23052 static final int MEDIUM_INT = 0x8DF4; | |
| 23053 | |
| 23054 static final int MIRRORED_REPEAT = 0x8370; | |
| 23055 | |
| 23056 static final int NEAREST = 0x2600; | |
| 23057 | |
| 23058 static final int NEAREST_MIPMAP_LINEAR = 0x2702; | |
| 23059 | |
| 23060 static final int NEAREST_MIPMAP_NEAREST = 0x2700; | |
| 23061 | |
| 23062 static final int NEVER = 0x0200; | |
| 23063 | |
| 23064 static final int NICEST = 0x1102; | |
| 23065 | |
| 23066 static final int NONE = 0; | |
| 23067 | |
| 23068 static final int NOTEQUAL = 0x0205; | |
| 23069 | |
| 23070 static final int NO_ERROR = 0; | |
| 23071 | |
| 23072 static final int ONE = 1; | |
| 23073 | |
| 23074 static final int ONE_MINUS_CONSTANT_ALPHA = 0x8004; | |
| 23075 | |
| 23076 static final int ONE_MINUS_CONSTANT_COLOR = 0x8002; | |
| 23077 | |
| 23078 static final int ONE_MINUS_DST_ALPHA = 0x0305; | |
| 23079 | |
| 23080 static final int ONE_MINUS_DST_COLOR = 0x0307; | |
| 23081 | |
| 23082 static final int ONE_MINUS_SRC_ALPHA = 0x0303; | |
| 23083 | |
| 23084 static final int ONE_MINUS_SRC_COLOR = 0x0301; | |
| 23085 | |
| 23086 static final int OUT_OF_MEMORY = 0x0505; | |
| 23087 | |
| 23088 static final int PACK_ALIGNMENT = 0x0D05; | |
| 23089 | |
| 23090 static final int POINTS = 0x0000; | |
| 23091 | |
| 23092 static final int POLYGON_OFFSET_FACTOR = 0x8038; | |
| 23093 | |
| 23094 static final int POLYGON_OFFSET_FILL = 0x8037; | |
| 23095 | |
| 23096 static final int POLYGON_OFFSET_UNITS = 0x2A00; | |
| 23097 | |
| 23098 static final int RED_BITS = 0x0D52; | |
| 23099 | |
| 23100 static final int RENDERBUFFER = 0x8D41; | |
| 23101 | |
| 23102 static final int RENDERBUFFER_ALPHA_SIZE = 0x8D53; | |
| 23103 | |
| 23104 static final int RENDERBUFFER_BINDING = 0x8CA7; | |
| 23105 | |
| 23106 static final int RENDERBUFFER_BLUE_SIZE = 0x8D52; | |
| 23107 | |
| 23108 static final int RENDERBUFFER_DEPTH_SIZE = 0x8D54; | |
| 23109 | |
| 23110 static final int RENDERBUFFER_GREEN_SIZE = 0x8D51; | |
| 23111 | |
| 23112 static final int RENDERBUFFER_HEIGHT = 0x8D43; | |
| 23113 | |
| 23114 static final int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; | |
| 23115 | |
| 23116 static final int RENDERBUFFER_RED_SIZE = 0x8D50; | |
| 23117 | |
| 23118 static final int RENDERBUFFER_STENCIL_SIZE = 0x8D55; | |
| 23119 | |
| 23120 static final int RENDERBUFFER_WIDTH = 0x8D42; | |
| 23121 | |
| 23122 static final int RENDERER = 0x1F01; | |
| 23123 | |
| 23124 static final int REPEAT = 0x2901; | |
| 23125 | |
| 23126 static final int REPLACE = 0x1E01; | |
| 23127 | |
| 23128 static final int RGB = 0x1907; | |
| 23129 | |
| 23130 static final int RGB565 = 0x8D62; | |
| 23131 | |
| 23132 static final int RGB5_A1 = 0x8057; | |
| 23133 | |
| 23134 static final int RGBA = 0x1908; | |
| 23135 | |
| 23136 static final int RGBA4 = 0x8056; | |
| 23137 | |
| 23138 static final int SAMPLER_2D = 0x8B5E; | |
| 23139 | |
| 23140 static final int SAMPLER_CUBE = 0x8B60; | |
| 23141 | |
| 23142 static final int SAMPLES = 0x80A9; | |
| 23143 | |
| 23144 static final int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; | |
| 23145 | |
| 23146 static final int SAMPLE_BUFFERS = 0x80A8; | |
| 23147 | |
| 23148 static final int SAMPLE_COVERAGE = 0x80A0; | |
| 23149 | |
| 23150 static final int SAMPLE_COVERAGE_INVERT = 0x80AB; | |
| 23151 | |
| 23152 static final int SAMPLE_COVERAGE_VALUE = 0x80AA; | |
| 23153 | |
| 23154 static final int SCISSOR_BOX = 0x0C10; | |
| 23155 | |
| 23156 static final int SCISSOR_TEST = 0x0C11; | |
| 23157 | |
| 23158 static final int SHADER_TYPE = 0x8B4F; | |
| 23159 | |
| 23160 static final int SHADING_LANGUAGE_VERSION = 0x8B8C; | |
| 23161 | |
| 23162 static final int SHORT = 0x1402; | |
| 23163 | |
| 23164 static final int SRC_ALPHA = 0x0302; | |
| 23165 | |
| 23166 static final int SRC_ALPHA_SATURATE = 0x0308; | |
| 23167 | |
| 23168 static final int SRC_COLOR = 0x0300; | |
| 23169 | |
| 23170 static final int STATIC_DRAW = 0x88E4; | |
| 23171 | |
| 23172 static final int STENCIL_ATTACHMENT = 0x8D20; | |
| 23173 | |
| 23174 static final int STENCIL_BACK_FAIL = 0x8801; | |
| 23175 | |
| 23176 static final int STENCIL_BACK_FUNC = 0x8800; | |
| 23177 | |
| 23178 static final int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; | |
| 23179 | |
| 23180 static final int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; | |
| 23181 | |
| 23182 static final int STENCIL_BACK_REF = 0x8CA3; | |
| 23183 | |
| 23184 static final int STENCIL_BACK_VALUE_MASK = 0x8CA4; | |
| 23185 | |
| 23186 static final int STENCIL_BACK_WRITEMASK = 0x8CA5; | |
| 23187 | |
| 23188 static final int STENCIL_BITS = 0x0D57; | |
| 23189 | |
| 23190 static final int STENCIL_BUFFER_BIT = 0x00000400; | |
| 23191 | |
| 23192 static final int STENCIL_CLEAR_VALUE = 0x0B91; | |
| 23193 | |
| 23194 static final int STENCIL_FAIL = 0x0B94; | |
| 23195 | |
| 23196 static final int STENCIL_FUNC = 0x0B92; | |
| 23197 | |
| 23198 static final int STENCIL_INDEX = 0x1901; | |
| 23199 | |
| 23200 static final int STENCIL_INDEX8 = 0x8D48; | |
| 23201 | |
| 23202 static final int STENCIL_PASS_DEPTH_FAIL = 0x0B95; | |
| 23203 | |
| 23204 static final int STENCIL_PASS_DEPTH_PASS = 0x0B96; | |
| 23205 | |
| 23206 static final int STENCIL_REF = 0x0B97; | |
| 23207 | |
| 23208 static final int STENCIL_TEST = 0x0B90; | |
| 23209 | |
| 23210 static final int STENCIL_VALUE_MASK = 0x0B93; | |
| 23211 | |
| 23212 static final int STENCIL_WRITEMASK = 0x0B98; | |
| 23213 | |
| 23214 static final int STREAM_DRAW = 0x88E0; | |
| 23215 | |
| 23216 static final int SUBPIXEL_BITS = 0x0D50; | |
| 23217 | |
| 23218 static final int TEXTURE = 0x1702; | |
| 23219 | |
| 23220 static final int TEXTURE0 = 0x84C0; | |
| 23221 | |
| 23222 static final int TEXTURE1 = 0x84C1; | |
| 23223 | |
| 23224 static final int TEXTURE10 = 0x84CA; | |
| 23225 | |
| 23226 static final int TEXTURE11 = 0x84CB; | |
| 23227 | |
| 23228 static final int TEXTURE12 = 0x84CC; | |
| 23229 | |
| 23230 static final int TEXTURE13 = 0x84CD; | |
| 23231 | |
| 23232 static final int TEXTURE14 = 0x84CE; | |
| 23233 | |
| 23234 static final int TEXTURE15 = 0x84CF; | |
| 23235 | |
| 23236 static final int TEXTURE16 = 0x84D0; | |
| 23237 | |
| 23238 static final int TEXTURE17 = 0x84D1; | |
| 23239 | |
| 23240 static final int TEXTURE18 = 0x84D2; | |
| 23241 | |
| 23242 static final int TEXTURE19 = 0x84D3; | |
| 23243 | |
| 23244 static final int TEXTURE2 = 0x84C2; | |
| 23245 | |
| 23246 static final int TEXTURE20 = 0x84D4; | |
| 23247 | |
| 23248 static final int TEXTURE21 = 0x84D5; | |
| 23249 | |
| 23250 static final int TEXTURE22 = 0x84D6; | |
| 23251 | |
| 23252 static final int TEXTURE23 = 0x84D7; | |
| 23253 | |
| 23254 static final int TEXTURE24 = 0x84D8; | |
| 23255 | |
| 23256 static final int TEXTURE25 = 0x84D9; | |
| 23257 | |
| 23258 static final int TEXTURE26 = 0x84DA; | |
| 23259 | |
| 23260 static final int TEXTURE27 = 0x84DB; | |
| 23261 | |
| 23262 static final int TEXTURE28 = 0x84DC; | |
| 23263 | |
| 23264 static final int TEXTURE29 = 0x84DD; | |
| 23265 | |
| 23266 static final int TEXTURE3 = 0x84C3; | |
| 23267 | |
| 23268 static final int TEXTURE30 = 0x84DE; | |
| 23269 | |
| 23270 static final int TEXTURE31 = 0x84DF; | |
| 23271 | |
| 23272 static final int TEXTURE4 = 0x84C4; | |
| 23273 | |
| 23274 static final int TEXTURE5 = 0x84C5; | |
| 23275 | |
| 23276 static final int TEXTURE6 = 0x84C6; | |
| 23277 | |
| 23278 static final int TEXTURE7 = 0x84C7; | |
| 23279 | |
| 23280 static final int TEXTURE8 = 0x84C8; | |
| 23281 | |
| 23282 static final int TEXTURE9 = 0x84C9; | |
| 23283 | |
| 23284 static final int TEXTURE_2D = 0x0DE1; | |
| 23285 | |
| 23286 static final int TEXTURE_BINDING_2D = 0x8069; | |
| 23287 | |
| 23288 static final int TEXTURE_BINDING_CUBE_MAP = 0x8514; | |
| 23289 | |
| 23290 static final int TEXTURE_CUBE_MAP = 0x8513; | |
| 23291 | |
| 23292 static final int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; | |
| 23293 | |
| 23294 static final int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; | |
| 23295 | |
| 23296 static final int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; | |
| 23297 | |
| 23298 static final int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; | |
| 23299 | |
| 23300 static final int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; | |
| 23301 | |
| 23302 static final int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; | |
| 23303 | |
| 23304 static final int TEXTURE_MAG_FILTER = 0x2800; | |
| 23305 | |
| 23306 static final int TEXTURE_MIN_FILTER = 0x2801; | |
| 23307 | |
| 23308 static final int TEXTURE_WRAP_S = 0x2802; | |
| 23309 | |
| 23310 static final int TEXTURE_WRAP_T = 0x2803; | |
| 23311 | |
| 23312 static final int TRIANGLES = 0x0004; | |
| 23313 | |
| 23314 static final int TRIANGLE_FAN = 0x0006; | |
| 23315 | |
| 23316 static final int TRIANGLE_STRIP = 0x0005; | |
| 23317 | |
| 23318 static final int UNPACK_ALIGNMENT = 0x0CF5; | |
| 23319 | |
| 23320 static final int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | |
| 23321 | |
| 23322 static final int UNPACK_FLIP_Y_WEBGL = 0x9240; | |
| 23323 | |
| 23324 static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | |
| 23325 | |
| 23326 static final int UNSIGNED_BYTE = 0x1401; | |
| 23327 | |
| 23328 static final int UNSIGNED_INT = 0x1405; | |
| 23329 | |
| 23330 static final int UNSIGNED_SHORT = 0x1403; | |
| 23331 | |
| 23332 static final int UNSIGNED_SHORT_4_4_4_4 = 0x8033; | |
| 23333 | |
| 23334 static final int UNSIGNED_SHORT_5_5_5_1 = 0x8034; | |
| 23335 | |
| 23336 static final int UNSIGNED_SHORT_5_6_5 = 0x8363; | |
| 23337 | |
| 23338 static final int VALIDATE_STATUS = 0x8B83; | |
| 23339 | |
| 23340 static final int VENDOR = 0x1F00; | |
| 23341 | |
| 23342 static final int VERSION = 0x1F02; | |
| 23343 | |
| 23344 static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; | |
| 23345 | |
| 23346 static final int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; | |
| 23347 | |
| 23348 static final int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; | |
| 23349 | |
| 23350 static final int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; | |
| 23351 | |
| 23352 static final int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; | |
| 23353 | |
| 23354 static final int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; | |
| 23355 | |
| 23356 static final int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; | |
| 23357 | |
| 23358 static final int VERTEX_SHADER = 0x8B31; | |
| 23359 | |
| 23360 static final int VIEWPORT = 0x0BA2; | |
| 23361 | |
| 23362 static final int ZERO = 0; | |
| 23363 | |
| 23364 final int drawingBufferHeight; | |
| 23365 | |
| 23366 final int drawingBufferWidth; | |
| 23367 | |
| 23368 void activeTexture(int texture); | |
| 23369 | |
| 23370 void attachShader(WebGLProgram program, WebGLShader shader); | |
| 23371 | |
| 23372 void bindAttribLocation(WebGLProgram program, int index, String name); | |
| 23373 | |
| 23374 void bindBuffer(int target, WebGLBuffer buffer); | |
| 23375 | |
| 23376 void bindFramebuffer(int target, WebGLFramebuffer framebuffer); | |
| 23377 | |
| 23378 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer); | |
| 23379 | |
| 23380 void bindTexture(int target, WebGLTexture texture); | |
| 23381 | |
| 23382 void blendColor(num red, num green, num blue, num alpha); | |
| 23383 | |
| 23384 void blendEquation(int mode); | |
| 23385 | |
| 23386 void blendEquationSeparate(int modeRGB, int modeAlpha); | |
| 23387 | |
| 23388 void blendFunc(int sfactor, int dfactor); | |
| 23389 | |
| 23390 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha); | |
| 23391 | |
| 23392 void bufferData(int target, data_OR_size, int usage); | |
| 23393 | |
| 23394 void bufferSubData(int target, int offset, data); | |
| 23395 | |
| 23396 int checkFramebufferStatus(int target); | |
| 23397 | |
| 23398 void clear(int mask); | |
| 23399 | |
| 23400 void clearColor(num red, num green, num blue, num alpha); | |
| 23401 | |
| 23402 void clearDepth(num depth); | |
| 23403 | |
| 23404 void clearStencil(int s); | |
| 23405 | |
| 23406 void colorMask(bool red, bool green, bool blue, bool alpha); | |
| 23407 | |
| 23408 void compileShader(WebGLShader shader); | |
| 23409 | |
| 23410 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, ArrayBufferView data); | |
| 23411 | |
| 23412 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, ArrayBufferView data); | |
| 23413 | |
| 23414 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border); | |
| 23415 | |
| 23416 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height); | |
| 23417 | |
| 23418 WebGLBuffer createBuffer(); | |
| 23419 | |
| 23420 WebGLFramebuffer createFramebuffer(); | |
| 23421 | |
| 23422 WebGLProgram createProgram(); | |
| 23423 | |
| 23424 WebGLRenderbuffer createRenderbuffer(); | |
| 23425 | |
| 23426 WebGLShader createShader(int type); | |
| 23427 | |
| 23428 WebGLTexture createTexture(); | |
| 23429 | |
| 23430 void cullFace(int mode); | |
| 23431 | |
| 23432 void deleteBuffer(WebGLBuffer buffer); | |
| 23433 | |
| 23434 void deleteFramebuffer(WebGLFramebuffer framebuffer); | |
| 23435 | |
| 23436 void deleteProgram(WebGLProgram program); | |
| 23437 | |
| 23438 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer); | |
| 23439 | |
| 23440 void deleteShader(WebGLShader shader); | |
| 23441 | |
| 23442 void deleteTexture(WebGLTexture texture); | |
| 23443 | |
| 23444 void depthFunc(int func); | |
| 23445 | |
| 23446 void depthMask(bool flag); | |
| 23447 | |
| 23448 void depthRange(num zNear, num zFar); | |
| 23449 | |
| 23450 void detachShader(WebGLProgram program, WebGLShader shader); | |
| 23451 | |
| 23452 void disable(int cap); | |
| 23453 | |
| 23454 void disableVertexAttribArray(int index); | |
| 23455 | |
| 23456 void drawArrays(int mode, int first, int count); | |
| 23457 | |
| 23458 void drawElements(int mode, int count, int type, int offset); | |
| 23459 | |
| 23460 void enable(int cap); | |
| 23461 | |
| 23462 void enableVertexAttribArray(int index); | |
| 23463 | |
| 23464 void finish(); | |
| 23465 | |
| 23466 void flush(); | |
| 23467 | |
| 23468 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, WebGLRenderbuffer renderbuffer); | |
| 23469 | |
| 23470 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText
ure texture, int level); | |
| 23471 | |
| 23472 void frontFace(int mode); | |
| 23473 | |
| 23474 void generateMipmap(int target); | |
| 23475 | |
| 23476 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index); | |
| 23477 | |
| 23478 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index); | |
| 23479 | |
| 23480 List<Object> getAttachedShaders(WebGLProgram program); | |
| 23481 | |
| 23482 int getAttribLocation(WebGLProgram program, String name); | |
| 23483 | |
| 23484 Object getBufferParameter(int target, int pname); | |
| 23485 | |
| 23486 WebGLContextAttributes getContextAttributes(); | |
| 23487 | |
| 23488 int getError(); | |
| 23489 | |
| 23490 Object getExtension(String name); | |
| 23491 | |
| 23492 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
); | |
| 23493 | |
| 23494 Object getParameter(int pname); | |
| 23495 | |
| 23496 String getProgramInfoLog(WebGLProgram program); | |
| 23497 | |
| 23498 Object getProgramParameter(WebGLProgram program, int pname); | |
| 23499 | |
| 23500 Object getRenderbufferParameter(int target, int pname); | |
| 23501 | |
| 23502 String getShaderInfoLog(WebGLShader shader); | |
| 23503 | |
| 23504 Object getShaderParameter(WebGLShader shader, int pname); | |
| 23505 | |
| 23506 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis
iontype); | |
| 23507 | |
| 23508 String getShaderSource(WebGLShader shader); | |
| 23509 | |
| 23510 List<String> getSupportedExtensions(); | |
| 23511 | |
| 23512 Object getTexParameter(int target, int pname); | |
| 23513 | |
| 23514 Object getUniform(WebGLProgram program, WebGLUniformLocation location); | |
| 23515 | |
| 23516 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name); | |
| 23517 | |
| 23518 Object getVertexAttrib(int index, int pname); | |
| 23519 | |
| 23520 int getVertexAttribOffset(int index, int pname); | |
| 23521 | |
| 23522 void hint(int target, int mode); | |
| 23523 | |
| 23524 bool isBuffer(WebGLBuffer buffer); | |
| 23525 | |
| 23526 bool isContextLost(); | |
| 23527 | |
| 23528 bool isEnabled(int cap); | |
| 23529 | |
| 23530 bool isFramebuffer(WebGLFramebuffer framebuffer); | |
| 23531 | |
| 23532 bool isProgram(WebGLProgram program); | |
| 23533 | |
| 23534 bool isRenderbuffer(WebGLRenderbuffer renderbuffer); | |
| 23535 | |
| 23536 bool isShader(WebGLShader shader); | |
| 23537 | |
| 23538 bool isTexture(WebGLTexture texture); | |
| 23539 | |
| 23540 void lineWidth(num width); | |
| 23541 | |
| 23542 void linkProgram(WebGLProgram program); | |
| 23543 | |
| 23544 void pixelStorei(int pname, int param); | |
| 23545 | |
| 23546 void polygonOffset(num factor, num units); | |
| 23547 | |
| 23548 void readPixels(int x, int y, int width, int height, int format, int type, Arr
ayBufferView pixels); | |
| 23549 | |
| 23550 void releaseShaderCompiler(); | |
| 23551 | |
| 23552 void renderbufferStorage(int target, int internalformat, int width, int height
); | |
| 23553 | |
| 23554 void sampleCoverage(num value, bool invert); | |
| 23555 | |
| 23556 void scissor(int x, int y, int width, int height); | |
| 23557 | |
| 23558 void shaderSource(WebGLShader shader, String string); | |
| 23559 | |
| 23560 void stencilFunc(int func, int ref, int mask); | |
| 23561 | |
| 23562 void stencilFuncSeparate(int face, int func, int ref, int mask); | |
| 23563 | |
| 23564 void stencilMask(int mask); | |
| 23565 | |
| 23566 void stencilMaskSeparate(int face, int mask); | |
| 23567 | |
| 23568 void stencilOp(int fail, int zfail, int zpass); | |
| 23569 | |
| 23570 void stencilOpSeparate(int face, int fail, int zfail, int zpass); | |
| 23571 | |
| 23572 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]); | |
| 23573 | |
| 23574 void texParameterf(int target, int pname, num param); | |
| 23575 | |
| 23576 void texParameteri(int target, int pname, int param); | |
| 23577 | |
| 23578 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]); | |
| 23579 | |
| 23580 void uniform1f(WebGLUniformLocation location, num x); | |
| 23581 | |
| 23582 void uniform1fv(WebGLUniformLocation location, Float32Array v); | |
| 23583 | |
| 23584 void uniform1i(WebGLUniformLocation location, int x); | |
| 23585 | |
| 23586 void uniform1iv(WebGLUniformLocation location, Int32Array v); | |
| 23587 | |
| 23588 void uniform2f(WebGLUniformLocation location, num x, num y); | |
| 23589 | |
| 23590 void uniform2fv(WebGLUniformLocation location, Float32Array v); | |
| 23591 | |
| 23592 void uniform2i(WebGLUniformLocation location, int x, int y); | |
| 23593 | |
| 23594 void uniform2iv(WebGLUniformLocation location, Int32Array v); | |
| 23595 | |
| 23596 void uniform3f(WebGLUniformLocation location, num x, num y, num z); | |
| 23597 | |
| 23598 void uniform3fv(WebGLUniformLocation location, Float32Array v); | |
| 23599 | |
| 23600 void uniform3i(WebGLUniformLocation location, int x, int y, int z); | |
| 23601 | |
| 23602 void uniform3iv(WebGLUniformLocation location, Int32Array v); | |
| 23603 | |
| 23604 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w); | |
| 23605 | |
| 23606 void uniform4fv(WebGLUniformLocation location, Float32Array v); | |
| 23607 | |
| 23608 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w); | |
| 23609 | |
| 23610 void uniform4iv(WebGLUniformLocation location, Int32Array v); | |
| 23611 | |
| 23612 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array); | |
| 23613 | |
| 23614 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array); | |
| 23615 | |
| 23616 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar
ray array); | |
| 23617 | |
| 23618 void useProgram(WebGLProgram program); | |
| 23619 | |
| 23620 void validateProgram(WebGLProgram program); | |
| 23621 | |
| 23622 void vertexAttrib1f(int indx, num x); | |
| 23623 | |
| 23624 void vertexAttrib1fv(int indx, Float32Array values); | |
| 23625 | |
| 23626 void vertexAttrib2f(int indx, num x, num y); | |
| 23627 | |
| 23628 void vertexAttrib2fv(int indx, Float32Array values); | |
| 23629 | |
| 23630 void vertexAttrib3f(int indx, num x, num y, num z); | |
| 23631 | |
| 23632 void vertexAttrib3fv(int indx, Float32Array values); | |
| 23633 | |
| 23634 void vertexAttrib4f(int indx, num x, num y, num z, num w); | |
| 23635 | |
| 23636 void vertexAttrib4fv(int indx, Float32Array values); | |
| 23637 | |
| 23638 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset); | |
| 23639 | |
| 23640 void viewport(int x, int y, int width, int height); | |
| 23641 } | |
| 23642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23643 // for details. All rights reserved. Use of this source code is governed by a | |
| 23644 // BSD-style license that can be found in the LICENSE file. | |
| 23645 | |
| 23646 // WARNING: Do not edit - generated code. | |
| 23647 | |
| 23648 interface WebGLShader { | |
| 23649 } | |
| 23650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23651 // for details. All rights reserved. Use of this source code is governed by a | |
| 23652 // BSD-style license that can be found in the LICENSE file. | |
| 23653 | |
| 23654 // WARNING: Do not edit - generated code. | |
| 23655 | |
| 23656 interface WebGLShaderPrecisionFormat { | |
| 23657 | |
| 23658 final int precision; | |
| 23659 | |
| 23660 final int rangeMax; | |
| 23661 | |
| 23662 final int rangeMin; | |
| 23663 } | |
| 23664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23665 // for details. All rights reserved. Use of this source code is governed by a | |
| 23666 // BSD-style license that can be found in the LICENSE file. | |
| 23667 | |
| 23668 // WARNING: Do not edit - generated code. | |
| 23669 | |
| 23670 interface WebGLTexture { | |
| 23671 } | |
| 23672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23673 // for details. All rights reserved. Use of this source code is governed by a | |
| 23674 // BSD-style license that can be found in the LICENSE file. | |
| 23675 | |
| 23676 // WARNING: Do not edit - generated code. | |
| 23677 | |
| 23678 interface WebGLUniformLocation { | |
| 23679 } | |
| 23680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23681 // for details. All rights reserved. Use of this source code is governed by a | |
| 23682 // BSD-style license that can be found in the LICENSE file. | |
| 23683 | |
| 23684 // WARNING: Do not edit - generated code. | |
| 23685 | |
| 23686 interface WebGLVertexArrayObjectOES { | |
| 23687 } | |
| 23688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23689 // for details. All rights reserved. Use of this source code is governed by a | |
| 23690 // BSD-style license that can be found in the LICENSE file. | |
| 23691 | |
| 23692 // WARNING: Do not edit - generated code. | |
| 23693 | |
| 23694 interface WebKitAnimation { | |
| 23695 | |
| 23696 static final int DIRECTION_ALTERNATE = 1; | |
| 23697 | |
| 23698 static final int DIRECTION_NORMAL = 0; | |
| 23699 | |
| 23700 static final int FILL_BACKWARDS = 1; | |
| 23701 | |
| 23702 static final int FILL_BOTH = 3; | |
| 23703 | |
| 23704 static final int FILL_FORWARDS = 2; | |
| 23705 | |
| 23706 static final int FILL_NONE = 0; | |
| 23707 | |
| 23708 final num delay; | |
| 23709 | |
| 23710 final int direction; | |
| 23711 | |
| 23712 final num duration; | |
| 23713 | |
| 23714 num elapsedTime; | |
| 23715 | |
| 23716 final bool ended; | |
| 23717 | |
| 23718 final int fillMode; | |
| 23719 | |
| 23720 final int iterationCount; | |
| 23721 | |
| 23722 final String name; | |
| 23723 | |
| 23724 final bool paused; | |
| 23725 | |
| 23726 void pause(); | |
| 23727 | |
| 23728 void play(); | |
| 23729 } | |
| 23730 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23731 // for details. All rights reserved. Use of this source code is governed by a | |
| 23732 // BSD-style license that can be found in the LICENSE file. | |
| 23733 | |
| 23734 // WARNING: Do not edit - generated code. | |
| 23735 | |
| 23736 interface WebKitAnimationEvent extends Event { | |
| 23737 | |
| 23738 final String animationName; | |
| 23739 | |
| 23740 final num elapsedTime; | |
| 23741 } | |
| 23742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23743 // for details. All rights reserved. Use of this source code is governed by a | |
| 23744 // BSD-style license that can be found in the LICENSE file. | |
| 23745 | |
| 23746 // WARNING: Do not edit - generated code. | |
| 23747 | |
| 23748 interface WebKitAnimationList { | |
| 23749 | |
| 23750 final int length; | |
| 23751 | |
| 23752 WebKitAnimation item(int index); | |
| 23753 } | |
| 23754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23755 // for details. All rights reserved. Use of this source code is governed by a | |
| 23756 // BSD-style license that can be found in the LICENSE file. | |
| 23757 | |
| 23758 // WARNING: Do not edit - generated code. | |
| 23759 | |
| 23760 interface WebKitCSSFilterValue extends CSSValueList { | |
| 23761 | |
| 23762 static final int CSS_FILTER_BLUR = 10; | |
| 23763 | |
| 23764 static final int CSS_FILTER_BRIGHTNESS = 8; | |
| 23765 | |
| 23766 static final int CSS_FILTER_CONTRAST = 9; | |
| 23767 | |
| 23768 static final int CSS_FILTER_CUSTOM = 12; | |
| 23769 | |
| 23770 static final int CSS_FILTER_DROP_SHADOW = 11; | |
| 23771 | |
| 23772 static final int CSS_FILTER_GRAYSCALE = 2; | |
| 23773 | |
| 23774 static final int CSS_FILTER_HUE_ROTATE = 5; | |
| 23775 | |
| 23776 static final int CSS_FILTER_INVERT = 6; | |
| 23777 | |
| 23778 static final int CSS_FILTER_OPACITY = 7; | |
| 23779 | |
| 23780 static final int CSS_FILTER_REFERENCE = 1; | |
| 23781 | |
| 23782 static final int CSS_FILTER_SATURATE = 4; | |
| 23783 | |
| 23784 static final int CSS_FILTER_SEPIA = 3; | |
| 23785 | |
| 23786 final int operationType; | |
| 23787 } | |
| 23788 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23789 // for details. All rights reserved. Use of this source code is governed by a | |
| 23790 // BSD-style license that can be found in the LICENSE file. | |
| 23791 | |
| 23792 // WARNING: Do not edit - generated code. | |
| 23793 | |
| 23794 interface WebKitCSSKeyframeRule extends CSSRule { | |
| 23795 | |
| 23796 String keyText; | |
| 23797 | |
| 23798 final CSSStyleDeclaration style; | |
| 23799 } | |
| 23800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23801 // for details. All rights reserved. Use of this source code is governed by a | |
| 23802 // BSD-style license that can be found in the LICENSE file. | |
| 23803 | |
| 23804 // WARNING: Do not edit - generated code. | |
| 23805 | |
| 23806 interface WebKitCSSKeyframesRule extends CSSRule { | |
| 23807 | |
| 23808 final CSSRuleList cssRules; | |
| 23809 | |
| 23810 String name; | |
| 23811 | |
| 23812 void deleteRule(String key); | |
| 23813 | |
| 23814 WebKitCSSKeyframeRule findRule(String key); | |
| 23815 | |
| 23816 void insertRule(String rule); | |
| 23817 } | |
| 23818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23819 // for details. All rights reserved. Use of this source code is governed by a | |
| 23820 // BSD-style license that can be found in the LICENSE file. | |
| 23821 | |
| 23822 // WARNING: Do not edit - generated code. | |
| 23823 | |
| 23824 interface WebKitCSSMatrix default _WebKitCSSMatrixFactoryProvider { | |
| 23825 | |
| 23826 WebKitCSSMatrix([String cssValue]); | |
| 23827 | |
| 23828 num a; | |
| 23829 | |
| 23830 num b; | |
| 23831 | |
| 23832 num c; | |
| 23833 | |
| 23834 num d; | |
| 23835 | |
| 23836 num e; | |
| 23837 | |
| 23838 num f; | |
| 23839 | |
| 23840 num m11; | |
| 23841 | |
| 23842 num m12; | |
| 23843 | |
| 23844 num m13; | |
| 23845 | |
| 23846 num m14; | |
| 23847 | |
| 23848 num m21; | |
| 23849 | |
| 23850 num m22; | |
| 23851 | |
| 23852 num m23; | |
| 23853 | |
| 23854 num m24; | |
| 23855 | |
| 23856 num m31; | |
| 23857 | |
| 23858 num m32; | |
| 23859 | |
| 23860 num m33; | |
| 23861 | |
| 23862 num m34; | |
| 23863 | |
| 23864 num m41; | |
| 23865 | |
| 23866 num m42; | |
| 23867 | |
| 23868 num m43; | |
| 23869 | |
| 23870 num m44; | |
| 23871 | |
| 23872 WebKitCSSMatrix inverse(); | |
| 23873 | |
| 23874 WebKitCSSMatrix multiply(WebKitCSSMatrix secondMatrix); | |
| 23875 | |
| 23876 WebKitCSSMatrix rotate(num rotX, num rotY, num rotZ); | |
| 23877 | |
| 23878 WebKitCSSMatrix rotateAxisAngle(num x, num y, num z, num angle); | |
| 23879 | |
| 23880 WebKitCSSMatrix scale(num scaleX, num scaleY, num scaleZ); | |
| 23881 | |
| 23882 void setMatrixValue(String string); | |
| 23883 | |
| 23884 WebKitCSSMatrix skewX(num angle); | |
| 23885 | |
| 23886 WebKitCSSMatrix skewY(num angle); | |
| 23887 | |
| 23888 String toString(); | |
| 23889 | |
| 23890 WebKitCSSMatrix translate(num x, num y, num z); | |
| 23891 } | |
| 23892 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23893 // for details. All rights reserved. Use of this source code is governed by a | |
| 23894 // BSD-style license that can be found in the LICENSE file. | |
| 23895 | |
| 23896 // WARNING: Do not edit - generated code. | |
| 23897 | |
| 23898 interface WebKitCSSTransformValue extends CSSValueList { | |
| 23899 | |
| 23900 static final int CSS_MATRIX = 11; | |
| 23901 | |
| 23902 static final int CSS_MATRIX3D = 21; | |
| 23903 | |
| 23904 static final int CSS_PERSPECTIVE = 20; | |
| 23905 | |
| 23906 static final int CSS_ROTATE = 4; | |
| 23907 | |
| 23908 static final int CSS_ROTATE3D = 17; | |
| 23909 | |
| 23910 static final int CSS_ROTATEX = 14; | |
| 23911 | |
| 23912 static final int CSS_ROTATEY = 15; | |
| 23913 | |
| 23914 static final int CSS_ROTATEZ = 16; | |
| 23915 | |
| 23916 static final int CSS_SCALE = 5; | |
| 23917 | |
| 23918 static final int CSS_SCALE3D = 19; | |
| 23919 | |
| 23920 static final int CSS_SCALEX = 6; | |
| 23921 | |
| 23922 static final int CSS_SCALEY = 7; | |
| 23923 | |
| 23924 static final int CSS_SCALEZ = 18; | |
| 23925 | |
| 23926 static final int CSS_SKEW = 8; | |
| 23927 | |
| 23928 static final int CSS_SKEWX = 9; | |
| 23929 | |
| 23930 static final int CSS_SKEWY = 10; | |
| 23931 | |
| 23932 static final int CSS_TRANSLATE = 1; | |
| 23933 | |
| 23934 static final int CSS_TRANSLATE3D = 13; | |
| 23935 | |
| 23936 static final int CSS_TRANSLATEX = 2; | |
| 23937 | |
| 23938 static final int CSS_TRANSLATEY = 3; | |
| 23939 | |
| 23940 static final int CSS_TRANSLATEZ = 12; | |
| 23941 | |
| 23942 final int operationType; | |
| 23943 } | |
| 23944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23945 // for details. All rights reserved. Use of this source code is governed by a | |
| 23946 // BSD-style license that can be found in the LICENSE file. | |
| 23947 | |
| 23948 // WARNING: Do not edit - generated code. | |
| 23949 | |
| 23950 interface WebKitNamedFlow { | |
| 23951 | |
| 23952 final int firstEmptyRegionIndex; | |
| 23953 | |
| 23954 final String name; | |
| 23955 | |
| 23956 final bool overset; | |
| 23957 | |
| 23958 NodeList getContent(); | |
| 23959 | |
| 23960 NodeList getRegionsByContent(Node contentNode); | |
| 23961 } | |
| 23962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23963 // for details. All rights reserved. Use of this source code is governed by a | |
| 23964 // BSD-style license that can be found in the LICENSE file. | |
| 23965 | |
| 23966 // WARNING: Do not edit - generated code. | |
| 23967 | |
| 23968 interface WebKitPoint default _WebKitPointFactoryProvider { | |
| 23969 | |
| 23970 WebKitPoint(num x, num y); | |
| 23971 | |
| 23972 num x; | |
| 23973 | |
| 23974 num y; | |
| 23975 } | |
| 23976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23977 // for details. All rights reserved. Use of this source code is governed by a | |
| 23978 // BSD-style license that can be found in the LICENSE file. | |
| 23979 | |
| 23980 // WARNING: Do not edit - generated code. | |
| 23981 | |
| 23982 interface WebKitTransitionEvent extends Event { | |
| 23983 | |
| 23984 final num elapsedTime; | |
| 23985 | |
| 23986 final String propertyName; | |
| 23987 } | |
| 23988 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 23989 // for details. All rights reserved. Use of this source code is governed by a | |
| 23990 // BSD-style license that can be found in the LICENSE file. | |
| 23991 | |
| 23992 // WARNING: Do not edit - generated code. | |
| 23993 | |
| 23994 interface WebSocket extends EventTarget default _WebSocketFactoryProvider { | |
| 23995 | |
| 23996 WebSocket(String url); | |
| 23997 | |
| 23998 static final int CLOSED = 3; | |
| 23999 | |
| 24000 static final int CLOSING = 2; | |
| 24001 | |
| 24002 static final int CONNECTING = 0; | |
| 24003 | |
| 24004 static final int OPEN = 1; | |
| 24005 | |
| 24006 final String URL; | |
| 24007 | |
| 24008 String binaryType; | |
| 24009 | |
| 24010 final int bufferedAmount; | |
| 24011 | |
| 24012 final String extensions; | |
| 24013 | |
| 24014 final String protocol; | |
| 24015 | |
| 24016 final int readyState; | |
| 24017 | |
| 24018 final String url; | |
| 24019 | |
| 24020 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 24021 | |
| 24022 void close([int code, String reason]); | |
| 24023 | |
| 24024 bool dispatchEvent(Event evt); | |
| 24025 | |
| 24026 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 24027 | |
| 24028 bool send(String data); | |
| 24029 } | |
| 24030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24031 // for details. All rights reserved. Use of this source code is governed by a | |
| 24032 // BSD-style license that can be found in the LICENSE file. | |
| 24033 | |
| 24034 // WARNING: Do not edit - generated code. | |
| 24035 | |
| 24036 interface WheelEvent extends MouseEvent { | |
| 24037 | |
| 24038 final bool webkitDirectionInvertedFromDevice; | |
| 24039 | |
| 24040 final int wheelDelta; | |
| 24041 | |
| 24042 final int wheelDeltaX; | |
| 24043 | |
| 24044 final int wheelDeltaY; | |
| 24045 | |
| 24046 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); | |
| 24047 } | |
| 24048 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24049 // for details. All rights reserved. Use of this source code is governed by a | |
| 24050 // BSD-style license that can be found in the LICENSE file. | |
| 24051 | |
| 24052 // WARNING: Do not edit - generated code. | |
| 24053 | |
| 24054 interface Worker extends AbstractWorker default _WorkerFactoryProvider { | |
| 24055 | |
| 24056 Worker(String scriptUrl); | |
| 24057 | |
| 24058 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]); | |
| 24059 | |
| 24060 void terminate(); | |
| 24061 | |
| 24062 void webkitPostMessage(/*SerializedScriptValue*/ message, [List messagePorts])
; | |
| 24063 } | |
| 24064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24065 // for details. All rights reserved. Use of this source code is governed by a | |
| 24066 // BSD-style license that can be found in the LICENSE file. | |
| 24067 | |
| 24068 // WARNING: Do not edit - generated code. | |
| 24069 | |
| 24070 interface WorkerGlobalScope extends EventTarget { | |
| 24071 | |
| 24072 final WorkerLocation location; | |
| 24073 | |
| 24074 final WorkerNavigator navigator; | |
| 24075 | |
| 24076 final WorkerContext self; | |
| 24077 | |
| 24078 final IDBFactory webkitIndexedDB; | |
| 24079 | |
| 24080 final NotificationCenter webkitNotifications; | |
| 24081 | |
| 24082 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 24083 | |
| 24084 void clearInterval(int handle); | |
| 24085 | |
| 24086 void clearTimeout(int handle); | |
| 24087 | |
| 24088 void close(); | |
| 24089 | |
| 24090 bool dispatchEvent(Event evt); | |
| 24091 | |
| 24092 void importScripts(); | |
| 24093 | |
| 24094 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback]); | |
| 24095 | |
| 24096 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback]); | |
| 24097 | |
| 24098 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 24099 | |
| 24100 int setInterval(TimeoutHandler handler, int timeout); | |
| 24101 | |
| 24102 int setTimeout(TimeoutHandler handler, int timeout); | |
| 24103 | |
| 24104 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]); | |
| 24105 | |
| 24106 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size); | |
| 24107 | |
| 24108 EntrySync webkitResolveLocalFileSystemSyncURL(String url); | |
| 24109 | |
| 24110 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k, ErrorCallback errorCallback]); | |
| 24111 } | |
| 24112 | |
| 24113 interface WorkerContext extends WorkerGlobalScope { | |
| 24114 | |
| 24115 static final int PERSISTENT = 1; | |
| 24116 | |
| 24117 static final int TEMPORARY = 0; | |
| 24118 } | |
| 24119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24120 // for details. All rights reserved. Use of this source code is governed by a | |
| 24121 // BSD-style license that can be found in the LICENSE file. | |
| 24122 | |
| 24123 // WARNING: Do not edit - generated code. | |
| 24124 | |
| 24125 interface WorkerLocation { | |
| 24126 | |
| 24127 final String hash; | |
| 24128 | |
| 24129 final String host; | |
| 24130 | |
| 24131 final String hostname; | |
| 24132 | |
| 24133 final String href; | |
| 24134 | |
| 24135 final String pathname; | |
| 24136 | |
| 24137 final String port; | |
| 24138 | |
| 24139 final String protocol; | |
| 24140 | |
| 24141 final String search; | |
| 24142 | |
| 24143 String toString(); | |
| 24144 } | |
| 24145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24146 // for details. All rights reserved. Use of this source code is governed by a | |
| 24147 // BSD-style license that can be found in the LICENSE file. | |
| 24148 | |
| 24149 // WARNING: Do not edit - generated code. | |
| 24150 | |
| 24151 interface WorkerNavigator { | |
| 24152 | |
| 24153 final String appName; | |
| 24154 | |
| 24155 final String appVersion; | |
| 24156 | |
| 24157 final bool onLine; | |
| 24158 | |
| 24159 final String platform; | |
| 24160 | |
| 24161 final String userAgent; | |
| 24162 } | |
| 24163 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24164 // for details. All rights reserved. Use of this source code is governed by a | |
| 24165 // BSD-style license that can be found in the LICENSE file. | |
| 24166 | |
| 24167 // WARNING: Do not edit - generated code. | |
| 24168 | |
| 24169 interface XMLHttpRequest extends EventTarget default _XMLHttpRequestFactoryProvi
der { | |
| 24170 | |
| 24171 XMLHttpRequest(); | |
| 24172 | |
| 24173 static final int DONE = 4; | |
| 24174 | |
| 24175 static final int HEADERS_RECEIVED = 2; | |
| 24176 | |
| 24177 static final int LOADING = 3; | |
| 24178 | |
| 24179 static final int OPENED = 1; | |
| 24180 | |
| 24181 static final int UNSENT = 0; | |
| 24182 | |
| 24183 final int readyState; | |
| 24184 | |
| 24185 final Object response; | |
| 24186 | |
| 24187 final String responseText; | |
| 24188 | |
| 24189 String responseType; | |
| 24190 | |
| 24191 final Document responseXML; | |
| 24192 | |
| 24193 final int status; | |
| 24194 | |
| 24195 final String statusText; | |
| 24196 | |
| 24197 final XMLHttpRequestUpload upload; | |
| 24198 | |
| 24199 bool withCredentials; | |
| 24200 | |
| 24201 void abort(); | |
| 24202 | |
| 24203 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 24204 | |
| 24205 bool dispatchEvent(Event evt); | |
| 24206 | |
| 24207 String getAllResponseHeaders(); | |
| 24208 | |
| 24209 String getResponseHeader(String header); | |
| 24210 | |
| 24211 void open(String method, String url, [bool async, String user, String password
]); | |
| 24212 | |
| 24213 void overrideMimeType(String override); | |
| 24214 | |
| 24215 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 24216 | |
| 24217 void send([data]); | |
| 24218 | |
| 24219 void setRequestHeader(String header, String value); | |
| 24220 } | |
| 24221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24222 // for details. All rights reserved. Use of this source code is governed by a | |
| 24223 // BSD-style license that can be found in the LICENSE file. | |
| 24224 | |
| 24225 // WARNING: Do not edit - generated code. | |
| 24226 | |
| 24227 interface XMLHttpRequestException { | |
| 24228 | |
| 24229 static final int ABORT_ERR = 102; | |
| 24230 | |
| 24231 static final int NETWORK_ERR = 101; | |
| 24232 | |
| 24233 final int code; | |
| 24234 | |
| 24235 final String message; | |
| 24236 | |
| 24237 final String name; | |
| 24238 | |
| 24239 String toString(); | |
| 24240 } | |
| 24241 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24242 // for details. All rights reserved. Use of this source code is governed by a | |
| 24243 // BSD-style license that can be found in the LICENSE file. | |
| 24244 | |
| 24245 // WARNING: Do not edit - generated code. | |
| 24246 | |
| 24247 interface XMLHttpRequestProgressEvent extends ProgressEvent { | |
| 24248 | |
| 24249 final int position; | |
| 24250 | |
| 24251 final int totalSize; | |
| 24252 } | |
| 24253 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24254 // for details. All rights reserved. Use of this source code is governed by a | |
| 24255 // BSD-style license that can be found in the LICENSE file. | |
| 24256 | |
| 24257 // WARNING: Do not edit - generated code. | |
| 24258 | |
| 24259 interface XMLHttpRequestUpload extends EventTarget { | |
| 24260 | |
| 24261 void addEventListener(String type, EventListener listener, [bool useCapture]); | |
| 24262 | |
| 24263 bool dispatchEvent(Event evt); | |
| 24264 | |
| 24265 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | |
| 24266 } | |
| 24267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24268 // for details. All rights reserved. Use of this source code is governed by a | |
| 24269 // BSD-style license that can be found in the LICENSE file. | |
| 24270 | |
| 24271 // WARNING: Do not edit - generated code. | |
| 24272 | |
| 24273 interface XMLSerializer default _XMLSerializerFactoryProvider { | |
| 24274 | |
| 24275 XMLSerializer(); | |
| 24276 | |
| 24277 String serializeToString(Node node); | |
| 24278 } | |
| 24279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24280 // for details. All rights reserved. Use of this source code is governed by a | |
| 24281 // BSD-style license that can be found in the LICENSE file. | |
| 24282 | |
| 24283 // WARNING: Do not edit - generated code. | |
| 24284 | |
| 24285 interface XPathEvaluator default _XPathEvaluatorFactoryProvider { | |
| 24286 | |
| 24287 XPathEvaluator(); | |
| 24288 | |
| 24289 XPathExpression createExpression(String expression, XPathNSResolver resolver); | |
| 24290 | |
| 24291 XPathNSResolver createNSResolver(Node nodeResolver); | |
| 24292 | |
| 24293 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult); | |
| 24294 } | |
| 24295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24296 // for details. All rights reserved. Use of this source code is governed by a | |
| 24297 // BSD-style license that can be found in the LICENSE file. | |
| 24298 | |
| 24299 // WARNING: Do not edit - generated code. | |
| 24300 | |
| 24301 interface XPathException { | |
| 24302 | |
| 24303 static final int INVALID_EXPRESSION_ERR = 51; | |
| 24304 | |
| 24305 static final int TYPE_ERR = 52; | |
| 24306 | |
| 24307 final int code; | |
| 24308 | |
| 24309 final String message; | |
| 24310 | |
| 24311 final String name; | |
| 24312 | |
| 24313 String toString(); | |
| 24314 } | |
| 24315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24316 // for details. All rights reserved. Use of this source code is governed by a | |
| 24317 // BSD-style license that can be found in the LICENSE file. | |
| 24318 | |
| 24319 // WARNING: Do not edit - generated code. | |
| 24320 | |
| 24321 interface XPathExpression { | |
| 24322 | |
| 24323 XPathResult evaluate(Node contextNode, int type, XPathResult inResult); | |
| 24324 } | |
| 24325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24326 // for details. All rights reserved. Use of this source code is governed by a | |
| 24327 // BSD-style license that can be found in the LICENSE file. | |
| 24328 | |
| 24329 // WARNING: Do not edit - generated code. | |
| 24330 | |
| 24331 interface XPathNSResolver { | |
| 24332 | |
| 24333 String lookupNamespaceURI(String prefix); | |
| 24334 } | |
| 24335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24336 // for details. All rights reserved. Use of this source code is governed by a | |
| 24337 // BSD-style license that can be found in the LICENSE file. | |
| 24338 | |
| 24339 // WARNING: Do not edit - generated code. | |
| 24340 | |
| 24341 interface XPathResult { | |
| 24342 | |
| 24343 static final int ANY_TYPE = 0; | |
| 24344 | |
| 24345 static final int ANY_UNORDERED_NODE_TYPE = 8; | |
| 24346 | |
| 24347 static final int BOOLEAN_TYPE = 3; | |
| 24348 | |
| 24349 static final int FIRST_ORDERED_NODE_TYPE = 9; | |
| 24350 | |
| 24351 static final int NUMBER_TYPE = 1; | |
| 24352 | |
| 24353 static final int ORDERED_NODE_ITERATOR_TYPE = 5; | |
| 24354 | |
| 24355 static final int ORDERED_NODE_SNAPSHOT_TYPE = 7; | |
| 24356 | |
| 24357 static final int STRING_TYPE = 2; | |
| 24358 | |
| 24359 static final int UNORDERED_NODE_ITERATOR_TYPE = 4; | |
| 24360 | |
| 24361 static final int UNORDERED_NODE_SNAPSHOT_TYPE = 6; | |
| 24362 | |
| 24363 final bool booleanValue; | |
| 24364 | |
| 24365 final bool invalidIteratorState; | |
| 24366 | |
| 24367 final num numberValue; | |
| 24368 | |
| 24369 final int resultType; | |
| 24370 | |
| 24371 final Node singleNodeValue; | |
| 24372 | |
| 24373 final int snapshotLength; | |
| 24374 | |
| 24375 final String stringValue; | |
| 24376 | |
| 24377 Node iterateNext(); | |
| 24378 | |
| 24379 Node snapshotItem(int index); | |
| 24380 } | |
| 24381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24382 // for details. All rights reserved. Use of this source code is governed by a | |
| 24383 // BSD-style license that can be found in the LICENSE file. | |
| 24384 | |
| 24385 // WARNING: Do not edit - generated code. | |
| 24386 | |
| 24387 interface XSLTProcessor default _XSLTProcessorFactoryProvider { | |
| 24388 | |
| 24389 XSLTProcessor(); | |
| 24390 | |
| 24391 void clearParameters(); | |
| 24392 | |
| 24393 String getParameter(String namespaceURI, String localName); | |
| 24394 | |
| 24395 void importStylesheet(Node stylesheet); | |
| 24396 | |
| 24397 void removeParameter(String namespaceURI, String localName); | |
| 24398 | |
| 24399 void reset(); | |
| 24400 | |
| 24401 void setParameter(String namespaceURI, String localName, String value); | |
| 24402 | |
| 24403 Document transformToDocument(Node source); | |
| 24404 | |
| 24405 DocumentFragment transformToFragment(Node source, Document docVal); | |
| 24406 } | |
| 24407 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 24408 // for details. All rights reserved. Use of this source code is governed by a | |
| 24409 // BSD-style license that can be found in the LICENSE file. | |
| 24410 | |
| 24411 typedef void EventListener(Event event); | |
| 24412 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 24413 // for details. All rights reserved. Use of this source code is governed by a | |
| 24414 // BSD-style license that can be found in the LICENSE file. | |
| 24415 | |
| 24416 /** | |
| 24417 * Defines the standard key locations returned by | |
| 24418 * KeyboardEvent.getKeyLocation. | |
| 24419 */ | |
| 24420 interface KeyLocation { | |
| 24421 | |
| 24422 /** | |
| 24423 * The event key is not distinguished as the left or right version | |
| 24424 * of the key, and did not originate from the numeric keypad (or did not | |
| 24425 * originate with a virtual key corresponding to the numeric keypad). | |
| 24426 */ | |
| 24427 static final int STANDARD = 0; | |
| 24428 | |
| 24429 /** | |
| 24430 * The event key is in the left key location. | |
| 24431 */ | |
| 24432 static final int LEFT = 1; | |
| 24433 | |
| 24434 /** | |
| 24435 * The event key is in the right key location. | |
| 24436 */ | |
| 24437 static final int RIGHT = 2; | |
| 24438 | |
| 24439 /** | |
| 24440 * The event key originated on the numeric keypad or with a virtual key | |
| 24441 * corresponding to the numeric keypad. | |
| 24442 */ | |
| 24443 static final int NUMPAD = 3; | |
| 24444 | |
| 24445 /** | |
| 24446 * The event key originated on a mobile device, either on a physical | |
| 24447 * keypad or a virtual keyboard. | |
| 24448 */ | |
| 24449 static final int MOBILE = 4; | |
| 24450 | |
| 24451 /** | |
| 24452 * The event key originated on a game controller or a joystick on a mobile | |
| 24453 * device. | |
| 24454 */ | |
| 24455 static final int JOYSTICK = 5; | |
| 24456 } | |
| 24457 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 24458 // for details. All rights reserved. Use of this source code is governed by a | |
| 24459 // BSD-style license that can be found in the LICENSE file. | |
| 24460 | |
| 24461 /** | |
| 24462 * Defines the standard keyboard identifier names for keys that are returned | |
| 24463 * by KeyEvent.getKeyboardIdentifier when the key does not have a direct | |
| 24464 * unicode mapping. | |
| 24465 */ | |
| 24466 interface KeyName { | |
| 24467 | |
| 24468 /** The Accept (Commit, OK) key */ | |
| 24469 static final String ACCEPT = "Accept"; | |
| 24470 | |
| 24471 /** The Add key */ | |
| 24472 static final String ADD = "Add"; | |
| 24473 | |
| 24474 /** The Again key */ | |
| 24475 static final String AGAIN = "Again"; | |
| 24476 | |
| 24477 /** The All Candidates key */ | |
| 24478 static final String ALL_CANDIDATES = "AllCandidates"; | |
| 24479 | |
| 24480 /** The Alphanumeric key */ | |
| 24481 static final String ALPHANUMERIC = "Alphanumeric"; | |
| 24482 | |
| 24483 /** The Alt (Menu) key */ | |
| 24484 static final String ALT = "Alt"; | |
| 24485 | |
| 24486 /** The Alt-Graph key */ | |
| 24487 static final String ALT_GRAPH = "AltGraph"; | |
| 24488 | |
| 24489 /** The Application key */ | |
| 24490 static final String APPS = "Apps"; | |
| 24491 | |
| 24492 /** The ATTN key */ | |
| 24493 static final String ATTN = "Attn"; | |
| 24494 | |
| 24495 /** The Browser Back key */ | |
| 24496 static final String BROWSER_BACK = "BrowserBack"; | |
| 24497 | |
| 24498 /** The Browser Favorites key */ | |
| 24499 static final String BROWSER_FAVORTIES = "BrowserFavorites"; | |
| 24500 | |
| 24501 /** The Browser Forward key */ | |
| 24502 static final String BROWSER_FORWARD = "BrowserForward"; | |
| 24503 | |
| 24504 /** The Browser Home key */ | |
| 24505 static final String BROWSER_NAME = "BrowserHome"; | |
| 24506 | |
| 24507 /** The Browser Refresh key */ | |
| 24508 static final String BROWSER_REFRESH = "BrowserRefresh"; | |
| 24509 | |
| 24510 /** The Browser Search key */ | |
| 24511 static final String BROWSER_SEARCH = "BrowserSearch"; | |
| 24512 | |
| 24513 /** The Browser Stop key */ | |
| 24514 static final String BROWSER_STOP = "BrowserStop"; | |
| 24515 | |
| 24516 /** The Camera key */ | |
| 24517 static final String CAMERA = "Camera"; | |
| 24518 | |
| 24519 /** The Caps Lock (Capital) key */ | |
| 24520 static final String CAPS_LOCK = "CapsLock"; | |
| 24521 | |
| 24522 /** The Clear key */ | |
| 24523 static final String CLEAR = "Clear"; | |
| 24524 | |
| 24525 /** The Code Input key */ | |
| 24526 static final String CODE_INPUT = "CodeInput"; | |
| 24527 | |
| 24528 /** The Compose key */ | |
| 24529 static final String COMPOSE = "Compose"; | |
| 24530 | |
| 24531 /** The Control (Ctrl) key */ | |
| 24532 static final String CONTROL = "Control"; | |
| 24533 | |
| 24534 /** The Crsel key */ | |
| 24535 static final String CRSEL = "Crsel"; | |
| 24536 | |
| 24537 /** The Convert key */ | |
| 24538 static final String CONVERT = "Convert"; | |
| 24539 | |
| 24540 /** The Copy key */ | |
| 24541 static final String COPY = "Copy"; | |
| 24542 | |
| 24543 /** The Cut key */ | |
| 24544 static final String CUT = "Cut"; | |
| 24545 | |
| 24546 /** The Decimal key */ | |
| 24547 static final String DECIMAL = "Decimal"; | |
| 24548 | |
| 24549 /** The Divide key */ | |
| 24550 static final String DIVIDE = "Divide"; | |
| 24551 | |
| 24552 /** The Down Arrow key */ | |
| 24553 static final String DOWN = "Down"; | |
| 24554 | |
| 24555 /** The diagonal Down-Left Arrow key */ | |
| 24556 static final String DOWN_LEFT = "DownLeft"; | |
| 24557 | |
| 24558 /** The diagonal Down-Right Arrow key */ | |
| 24559 static final String DOWN_RIGHT = "DownRight"; | |
| 24560 | |
| 24561 /** The Eject key */ | |
| 24562 static final String EJECT = "Eject"; | |
| 24563 | |
| 24564 /** The End key */ | |
| 24565 static final String END = "End"; | |
| 24566 | |
| 24567 /** | |
| 24568 * The Enter key. Note: This key value must also be used for the Return | |
| 24569 * (Macintosh numpad) key | |
| 24570 */ | |
| 24571 static final String ENTER = "Enter"; | |
| 24572 | |
| 24573 /** The Erase EOF key */ | |
| 24574 static final String ERASE_EOF= "EraseEof"; | |
| 24575 | |
| 24576 /** The Execute key */ | |
| 24577 static final String EXECUTE = "Execute"; | |
| 24578 | |
| 24579 /** The Exsel key */ | |
| 24580 static final String EXSEL = "Exsel"; | |
| 24581 | |
| 24582 /** The Function switch key */ | |
| 24583 static final String FN = "Fn"; | |
| 24584 | |
| 24585 /** The F1 key */ | |
| 24586 static final String F1 = "F1"; | |
| 24587 | |
| 24588 /** The F2 key */ | |
| 24589 static final String F2 = "F2"; | |
| 24590 | |
| 24591 /** The F3 key */ | |
| 24592 static final String F3 = "F3"; | |
| 24593 | |
| 24594 /** The F4 key */ | |
| 24595 static final String F4 = "F4"; | |
| 24596 | |
| 24597 /** The F5 key */ | |
| 24598 static final String F5 = "F5"; | |
| 24599 | |
| 24600 /** The F6 key */ | |
| 24601 static final String F6 = "F6"; | |
| 24602 | |
| 24603 /** The F7 key */ | |
| 24604 static final String F7 = "F7"; | |
| 24605 | |
| 24606 /** The F8 key */ | |
| 24607 static final String F8 = "F8"; | |
| 24608 | |
| 24609 /** The F9 key */ | |
| 24610 static final String F9 = "F9"; | |
| 24611 | |
| 24612 /** The F10 key */ | |
| 24613 static final String F10 = "F10"; | |
| 24614 | |
| 24615 /** The F11 key */ | |
| 24616 static final String F11 = "F11"; | |
| 24617 | |
| 24618 /** The F12 key */ | |
| 24619 static final String F12 = "F12"; | |
| 24620 | |
| 24621 /** The F13 key */ | |
| 24622 static final String F13 = "F13"; | |
| 24623 | |
| 24624 /** The F14 key */ | |
| 24625 static final String F14 = "F14"; | |
| 24626 | |
| 24627 /** The F15 key */ | |
| 24628 static final String F15 = "F15"; | |
| 24629 | |
| 24630 /** The F16 key */ | |
| 24631 static final String F16 = "F16"; | |
| 24632 | |
| 24633 /** The F17 key */ | |
| 24634 static final String F17 = "F17"; | |
| 24635 | |
| 24636 /** The F18 key */ | |
| 24637 static final String F18 = "F18"; | |
| 24638 | |
| 24639 /** The F19 key */ | |
| 24640 static final String F19 = "F19"; | |
| 24641 | |
| 24642 /** The F20 key */ | |
| 24643 static final String F20 = "F20"; | |
| 24644 | |
| 24645 /** The F21 key */ | |
| 24646 static final String F21 = "F21"; | |
| 24647 | |
| 24648 /** The F22 key */ | |
| 24649 static final String F22 = "F22"; | |
| 24650 | |
| 24651 /** The F23 key */ | |
| 24652 static final String F23 = "F23"; | |
| 24653 | |
| 24654 /** The F24 key */ | |
| 24655 static final String F24 = "F24"; | |
| 24656 | |
| 24657 /** The Final Mode (Final) key used on some asian keyboards */ | |
| 24658 static final String FINAL_MODE = "FinalMode"; | |
| 24659 | |
| 24660 /** The Find key */ | |
| 24661 static final String FIND = "Find"; | |
| 24662 | |
| 24663 /** The Full-Width Characters key */ | |
| 24664 static final String FULL_WIDTH = "FullWidth"; | |
| 24665 | |
| 24666 /** The Half-Width Characters key */ | |
| 24667 static final String HALF_WIDTH = "HalfWidth"; | |
| 24668 | |
| 24669 /** The Hangul (Korean characters) Mode key */ | |
| 24670 static final String HANGUL_MODE = "HangulMode"; | |
| 24671 | |
| 24672 /** The Hanja (Korean characters) Mode key */ | |
| 24673 static final String HANJA_MODE = "HanjaMode"; | |
| 24674 | |
| 24675 /** The Help key */ | |
| 24676 static final String HELP = "Help"; | |
| 24677 | |
| 24678 /** The Hiragana (Japanese Kana characters) key */ | |
| 24679 static final String HIRAGANA = "Hiragana"; | |
| 24680 | |
| 24681 /** The Home key */ | |
| 24682 static final String HOME = "Home"; | |
| 24683 | |
| 24684 /** The Insert (Ins) key */ | |
| 24685 static final String INSERT = "Insert"; | |
| 24686 | |
| 24687 /** The Japanese-Hiragana key */ | |
| 24688 static final String JAPANESE_HIRAGANA = "JapaneseHiragana"; | |
| 24689 | |
| 24690 /** The Japanese-Katakana key */ | |
| 24691 static final String JAPANESE_KATAKANA = "JapaneseKatakana"; | |
| 24692 | |
| 24693 /** The Japanese-Romaji key */ | |
| 24694 static final String JAPANESE_ROMAJI = "JapaneseRomaji"; | |
| 24695 | |
| 24696 /** The Junja Mode key */ | |
| 24697 static final String JUNJA_MODE = "JunjaMode"; | |
| 24698 | |
| 24699 /** The Kana Mode (Kana Lock) key */ | |
| 24700 static final String KANA_MODE = "KanaMode"; | |
| 24701 | |
| 24702 /** | |
| 24703 * The Kanji (Japanese name for ideographic characters of Chinese origin) | |
| 24704 * Mode key | |
| 24705 */ | |
| 24706 static final String KANJI_MODE = "KanjiMode"; | |
| 24707 | |
| 24708 /** The Katakana (Japanese Kana characters) key */ | |
| 24709 static final String KATAKANA = "Katakana"; | |
| 24710 | |
| 24711 /** The Start Application One key */ | |
| 24712 static final String LAUNCH_APPLICATION_1 = "LaunchApplication1"; | |
| 24713 | |
| 24714 /** The Start Application Two key */ | |
| 24715 static final String LAUNCH_APPLICATION_2 = "LaunchApplication2"; | |
| 24716 | |
| 24717 /** The Start Mail key */ | |
| 24718 static final String LAUNCH_MAIL = "LaunchMail"; | |
| 24719 | |
| 24720 /** The Left Arrow key */ | |
| 24721 static final String LEFT = "Left"; | |
| 24722 | |
| 24723 /** The Menu key */ | |
| 24724 static final String MENU = "Menu"; | |
| 24725 | |
| 24726 /** | |
| 24727 * The Meta key. Note: This key value shall be also used for the Apple | |
| 24728 * Command key | |
| 24729 */ | |
| 24730 static final String META = "Meta"; | |
| 24731 | |
| 24732 /** The Media Next Track key */ | |
| 24733 static final String MEDIA_NEXT_TRACK = "MediaNextTrack"; | |
| 24734 | |
| 24735 /** The Media Play Pause key */ | |
| 24736 static final String MEDIA_PAUSE_PLAY = "MediaPlayPause"; | |
| 24737 | |
| 24738 /** The Media Previous Track key */ | |
| 24739 static final String MEDIA_PREVIOUS_TRACK = "MediaPreviousTrack"; | |
| 24740 | |
| 24741 /** The Media Stop key */ | |
| 24742 static final String MEDIA_STOP = "MediaStop"; | |
| 24743 | |
| 24744 /** The Mode Change key */ | |
| 24745 static final String MODE_CHANGE = "ModeChange"; | |
| 24746 | |
| 24747 /** The Next Candidate function key */ | |
| 24748 static final String NEXT_CANDIDATE = "NextCandidate"; | |
| 24749 | |
| 24750 /** The Nonconvert (Don't Convert) key */ | |
| 24751 static final String NON_CONVERT = "Nonconvert"; | |
| 24752 | |
| 24753 /** The Number Lock key */ | |
| 24754 static final String NUM_LOCK = "NumLock"; | |
| 24755 | |
| 24756 /** The Page Down (Next) key */ | |
| 24757 static final String PAGE_DOWN = "PageDown"; | |
| 24758 | |
| 24759 /** The Page Up key */ | |
| 24760 static final String PAGE_UP = "PageUp"; | |
| 24761 | |
| 24762 /** The Paste key */ | |
| 24763 static final String PASTE = "Paste"; | |
| 24764 | |
| 24765 /** The Pause key */ | |
| 24766 static final String PAUSE = "Pause"; | |
| 24767 | |
| 24768 /** The Play key */ | |
| 24769 static final String PLAY = "Play"; | |
| 24770 | |
| 24771 /** | |
| 24772 * The Power key. Note: Some devices may not expose this key to the | |
| 24773 * operating environment | |
| 24774 */ | |
| 24775 static final String POWER = "Power"; | |
| 24776 | |
| 24777 /** The Previous Candidate function key */ | |
| 24778 static final String PREVIOUS_CANDIDATE = "PreviousCandidate"; | |
| 24779 | |
| 24780 /** The Print Screen (PrintScrn, SnapShot) key */ | |
| 24781 static final String PRINT_SCREEN = "PrintScreen"; | |
| 24782 | |
| 24783 /** The Process key */ | |
| 24784 static final String PROCESS = "Process"; | |
| 24785 | |
| 24786 /** The Props key */ | |
| 24787 static final String PROPS = "Props"; | |
| 24788 | |
| 24789 /** The Right Arrow key */ | |
| 24790 static final String RIGHT = "Right"; | |
| 24791 | |
| 24792 /** The Roman Characters function key */ | |
| 24793 static final String ROMAN_CHARACTERS = "RomanCharacters"; | |
| 24794 | |
| 24795 /** The Scroll Lock key */ | |
| 24796 static final String SCROLL = "Scroll"; | |
| 24797 | |
| 24798 /** The Select key */ | |
| 24799 static final String SELECT = "Select"; | |
| 24800 | |
| 24801 /** The Select Media key */ | |
| 24802 static final String SELECT_MEDIA = "SelectMedia"; | |
| 24803 | |
| 24804 /** The Separator key */ | |
| 24805 static final String SEPARATOR = "Separator"; | |
| 24806 | |
| 24807 /** The Shift key */ | |
| 24808 static final String SHIFT = "Shift"; | |
| 24809 | |
| 24810 /** The Soft1 key */ | |
| 24811 static final String SOFT_1 = "Soft1"; | |
| 24812 | |
| 24813 /** The Soft2 key */ | |
| 24814 static final String SOFT_2 = "Soft2"; | |
| 24815 | |
| 24816 /** The Soft3 key */ | |
| 24817 static final String SOFT_3 = "Soft3"; | |
| 24818 | |
| 24819 /** The Soft4 key */ | |
| 24820 static final String SOFT_4 = "Soft4"; | |
| 24821 | |
| 24822 /** The Stop key */ | |
| 24823 static final String STOP = "Stop"; | |
| 24824 | |
| 24825 /** The Subtract key */ | |
| 24826 static final String SUBTRACT = "Subtract"; | |
| 24827 | |
| 24828 /** The Symbol Lock key */ | |
| 24829 static final String SYMBOL_LOCK = "SymbolLock"; | |
| 24830 | |
| 24831 /** The Up Arrow key */ | |
| 24832 static final String UP = "Up"; | |
| 24833 | |
| 24834 /** The diagonal Up-Left Arrow key */ | |
| 24835 static final String UP_LEFT = "UpLeft"; | |
| 24836 | |
| 24837 /** The diagonal Up-Right Arrow key */ | |
| 24838 static final String UP_RIGHT = "UpRight"; | |
| 24839 | |
| 24840 /** The Undo key */ | |
| 24841 static final String UNDO = "Undo"; | |
| 24842 | |
| 24843 /** The Volume Down key */ | |
| 24844 static final String VOLUME_DOWN = "VolumeDown"; | |
| 24845 | |
| 24846 /** The Volume Mute key */ | |
| 24847 static final String VOLUMN_MUTE = "VolumeMute"; | |
| 24848 | |
| 24849 /** The Volume Up key */ | |
| 24850 static final String VOLUMN_UP = "VolumeUp"; | |
| 24851 | |
| 24852 /** The Windows Logo key */ | |
| 24853 static final String WIN = "Win"; | |
| 24854 | |
| 24855 /** The Zoom key */ | |
| 24856 static final String ZOOM = "Zoom"; | |
| 24857 | |
| 24858 /** | |
| 24859 * The Backspace (Back) key. Note: This key value shall be also used for the | |
| 24860 * key labeled 'delete' MacOS keyboards when not modified by the 'Fn' key | |
| 24861 */ | |
| 24862 static final String BACKSPACE = "Backspace"; | |
| 24863 | |
| 24864 /** The Horizontal Tabulation (Tab) key */ | |
| 24865 static final String TAB = "Tab"; | |
| 24866 | |
| 24867 /** The Cancel key */ | |
| 24868 static final String CANCEL = "Cancel"; | |
| 24869 | |
| 24870 /** The Escape (Esc) key */ | |
| 24871 static final String ESC = "Esc"; | |
| 24872 | |
| 24873 /** The Space (Spacebar) key: */ | |
| 24874 static final String SPACEBAR = "Spacebar"; | |
| 24875 | |
| 24876 /** | |
| 24877 * The Delete (Del) Key. Note: This key value shall be also used for the key | |
| 24878 * labeled 'delete' MacOS keyboards when modified by the 'Fn' key | |
| 24879 */ | |
| 24880 static final String DEL = "Del"; | |
| 24881 | |
| 24882 /** The Combining Grave Accent (Greek Varia, Dead Grave) key */ | |
| 24883 static final String DEAD_GRAVE = "DeadGrave"; | |
| 24884 | |
| 24885 /** | |
| 24886 * The Combining Acute Accent (Stress Mark, Greek Oxia, Tonos, Dead Eacute) | |
| 24887 * key | |
| 24888 */ | |
| 24889 static final String DEAD_EACUTE = "DeadEacute"; | |
| 24890 | |
| 24891 /** The Combining Circumflex Accent (Hat, Dead Circumflex) key */ | |
| 24892 static final String DEAD_CIRCUMFLEX = "DeadCircumflex"; | |
| 24893 | |
| 24894 /** The Combining Tilde (Dead Tilde) key */ | |
| 24895 static final String DEAD_TILDE = "DeadTilde"; | |
| 24896 | |
| 24897 /** The Combining Macron (Long, Dead Macron) key */ | |
| 24898 static final String DEAD_MACRON = "DeadMacron"; | |
| 24899 | |
| 24900 /** The Combining Breve (Short, Dead Breve) key */ | |
| 24901 static final String DEAD_BREVE = "DeadBreve"; | |
| 24902 | |
| 24903 /** The Combining Dot Above (Derivative, Dead Above Dot) key */ | |
| 24904 static final String DEAD_ABOVE_DOT = "DeadAboveDot"; | |
| 24905 | |
| 24906 /** | |
| 24907 * The Combining Diaeresis (Double Dot Abode, Umlaut, Greek Dialytika, | |
| 24908 * Double Derivative, Dead Diaeresis) key | |
| 24909 */ | |
| 24910 static final String DEAD_UMLAUT = "DeadUmlaut"; | |
| 24911 | |
| 24912 /** The Combining Ring Above (Dead Above Ring) key */ | |
| 24913 static final String DEAD_ABOVE_RING = "DeadAboveRing"; | |
| 24914 | |
| 24915 /** The Combining Double Acute Accent (Dead Doubleacute) key */ | |
| 24916 static final String DEAD_DOUBLEACUTE = "DeadDoubleacute"; | |
| 24917 | |
| 24918 /** The Combining Caron (Hacek, V Above, Dead Caron) key */ | |
| 24919 static final String DEAD_CARON = "DeadCaron"; | |
| 24920 | |
| 24921 /** The Combining Cedilla (Dead Cedilla) key */ | |
| 24922 static final String DEAD_CEDILLA = "DeadCedilla"; | |
| 24923 | |
| 24924 /** The Combining Ogonek (Nasal Hook, Dead Ogonek) key */ | |
| 24925 static final String DEAD_OGONEK = "DeadOgonek"; | |
| 24926 | |
| 24927 /** | |
| 24928 * The Combining Greek Ypogegrammeni (Greek Non-Spacing Iota Below, Iota | |
| 24929 * Subscript, Dead Iota) key | |
| 24930 */ | |
| 24931 static final String DEAD_IOTA = "DeadIota"; | |
| 24932 | |
| 24933 /** | |
| 24934 * The Combining Katakana-Hiragana Voiced Sound Mark (Dead Voiced Sound) key | |
| 24935 */ | |
| 24936 static final String DEAD_VOICED_SOUND = "DeadVoicedSound"; | |
| 24937 | |
| 24938 /** | |
| 24939 * The Combining Katakana-Hiragana Semi-Voiced Sound Mark (Dead Semivoiced | |
| 24940 * Sound) key | |
| 24941 */ | |
| 24942 static final String DEC_SEMIVOICED_SOUND= "DeadSemivoicedSound"; | |
| 24943 | |
| 24944 /** | |
| 24945 * Key value used when an implementation is unable to identify another key | |
| 24946 * value, due to either hardware, platform, or software constraints | |
| 24947 */ | |
| 24948 static final String UNIDENTIFIED = "Unidentified"; | |
| 24949 } | |
| 24950 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 24951 // for details. All rights reserved. Use of this source code is governed by a | |
| 24952 // BSD-style license that can be found in the LICENSE file. | |
| 24953 | |
| 24954 /** | |
| 24955 * Contains the set of standard values returned by HTMLDocument.getReadyState. | |
| 24956 */ | |
| 24957 interface ReadyState { | |
| 24958 /** | |
| 24959 * Indicates the document is still loading and parsing. | |
| 24960 */ | |
| 24961 static final String LOADING = "loading"; | |
| 24962 | |
| 24963 /** | |
| 24964 * Indicates the document is finished parsing but is still loading | |
| 24965 * subresources. | |
| 24966 */ | |
| 24967 static final String INTERACTIVE = "interactive"; | |
| 24968 | |
| 24969 /** | |
| 24970 * Indicates the document and all subresources have been loaded. | |
| 24971 */ | |
| 24972 static final String COMPLETE = "complete"; | |
| 24973 } | |
| 24974 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 24975 // for details. All rights reserved. Use of this source code is governed by a | |
| 24976 // BSD-style license that can be found in the LICENSE file. | |
| 24977 | |
| 24978 // TODO(vsm): Unify with Dartium version. | |
| 24979 class _DOMWindowCrossFrameImpl implements DOMType, DOMWindow { | |
| 24980 // Private window. | |
| 24981 _DOMWindowJs _window; | |
| 24982 | |
| 24983 // DOMType | |
| 24984 var dartObjectLocalStorage; | |
| 24985 String get typeName() => "DOMWindow"; | |
| 24986 | |
| 24987 // Fields. | |
| 24988 // TODO(vsm): Implement history and location getters. | |
| 24989 | |
| 24990 bool get closed() => _window.closed; | |
| 24991 int get length() => _window.length; | |
| 24992 DOMWindow get opener() => _createSafe(_window.opener); | |
| 24993 DOMWindow get parent() => _createSafe(_window.parent); | |
| 24994 DOMWindow get top() => _createSafe(_window.top); | |
| 24995 | |
| 24996 // Methods. | |
| 24997 void focus() => _window.focus(); | |
| 24998 | |
| 24999 void blur() => _window.blur(); | |
| 25000 | |
| 25001 void close() => _window.close(); | |
| 25002 | |
| 25003 void postMessage(Dynamic message, | |
| 25004 String targetOrigin, | |
| 25005 [List messagePorts = null]) { | |
| 25006 if (messagePorts == null) { | |
| 25007 _postMessage2(_window, message, targetOrigin); | |
| 25008 } else { | |
| 25009 _postMessage3(_window, message, targetOrigin, messagePorts); | |
| 25010 } | |
| 25011 } | |
| 25012 | |
| 25013 // TODO(vsm): This is a hack to workaround dartbug.com/3175. We | |
| 25014 // need a more robust convention to invoke JS methods on the | |
| 25015 // underlying window. | |
| 25016 static void _postMessage2(win, message, targetOrigin) native """ | |
| 25017 win.postMessage(message, targetOrigin); | |
| 25018 """; | |
| 25019 | |
| 25020 static void _postMessage3(win, message, targetOrigin, messagePorts) native """ | |
| 25021 win.postMessage(message, targetOrigin, messagePorts); | |
| 25022 """; | |
| 25023 | |
| 25024 // Implementation support. | |
| 25025 _DOMWindowCrossFrameImpl(this._window); | |
| 25026 | |
| 25027 static DOMWindow _createSafe(w) { | |
| 25028 if (w === window) { | |
| 25029 return w; | |
| 25030 } else { | |
| 25031 // TODO(vsm): Cache or implement equality. | |
| 25032 return new _DOMWindowCrossFrameImpl(w); | |
| 25033 } | |
| 25034 } | |
| 25035 } | |
| 25036 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25037 // for details. All rights reserved. Use of this source code is governed by a | |
| 25038 // BSD-style license that can be found in the LICENSE file. | |
| 25039 | |
| 25040 interface DOMType { | |
| 25041 // TODO(vsm): Remove if/when Dart supports OLS for all objects. | |
| 25042 var dartObjectLocalStorage; | |
| 25043 | |
| 25044 String get typeName(); | |
| 25045 } | |
| 25046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 25047 // for details. All rights reserved. Use of this source code is governed by a | |
| 25048 // BSD-style license that can be found in the LICENSE file. | |
| 25049 | |
| 25050 class _DOMTypeJs implements DOMType native '*DOMType' { | |
| 25051 | |
| 25052 var dartObjectLocalStorage; | |
| 25053 | |
| 25054 String get typeName() native; | |
| 25055 } | |
| 25056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 25057 // for details. All rights reserved. Use of this source code is governed by a | |
| 25058 // BSD-style license that can be found in the LICENSE file. | |
| 25059 | |
| 25060 class _AudioContextFactoryProvider { | |
| 25061 | |
| 25062 factory AudioContext() native ''' | |
| 25063 var constructor = window.AudioContext || window.webkitAudioContext; | |
| 25064 return new constructor(); | |
| 25065 '''; | |
| 25066 } | |
| 25067 | |
| 25068 class _WebKitPointFactoryProvider { | |
| 25069 | |
| 25070 factory WebKitPoint(num x, num y) native '''return new WebKitPoint(x, y);'''; | |
| 25071 } | |
| 25072 | |
| 25073 class _WebSocketFactoryProvider { | |
| 25074 | |
| 25075 factory WebSocket(String url) native '''return new WebSocket(url);'''; | |
| 25076 } | |
| 25077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 25078 // for details. All rights reserved. Use of this source code is governed by a | |
| 25079 // BSD-style license that can be found in the LICENSE file. | |
| 25080 | |
| 25081 class _IDBKeyRangeFactoryProvider { | |
| 25082 | |
| 25083 factory IDBKeyRange.only(/*IDBKey*/ value) => | |
| 25084 _only(_class(), _translateKey(value)); | |
| 25085 | |
| 25086 factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) => | |
| 25087 _lowerBound(_class(), _translateKey(bound), open); | |
| 25088 | |
| 25089 factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) => | |
| 25090 _upperBound(_class(), _translateKey(bound), open); | |
| 25091 | |
| 25092 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, | |
| 25093 [bool lowerOpen = false, bool upperOpen = false]) => | |
| 25094 _bound(_class(), _translateKey(lower), _translateKey(upper), | |
| 25095 lowerOpen, upperOpen); | |
| 25096 | |
| 25097 static var _cachedClass; | |
| 25098 | |
| 25099 static _class() { | |
| 25100 if (_cachedClass != null) return _cachedClass; | |
| 25101 return _cachedClass = _uncachedClass(); | |
| 25102 } | |
| 25103 | |
| 25104 static _uncachedClass() native ''' | |
| 25105 return window.webkitIDBKeyRange || window.mozIDBKeyRange || | |
| 25106 window.msIDBKeyRange || window.IDBKeyRange; | |
| 25107 '''; | |
| 25108 | |
| 25109 static _translateKey(idbkey) => idbkey; // TODO: fixme. | |
| 25110 | |
| 25111 static _IDBKeyRangeJs _only(cls, value) native | |
| 25112 '''return cls.only(value);'''; | |
| 25113 | |
| 25114 static _IDBKeyRangeJs _lowerBound(cls, bound, open) native | |
| 25115 '''return cls.lowerBound(bound, open);'''; | |
| 25116 | |
| 25117 static _IDBKeyRangeJs _upperBound(cls, bound, open) native | |
| 25118 '''return cls.upperBound(bound, open);'''; | |
| 25119 | |
| 25120 static _IDBKeyRangeJs _bound(cls, lower, upper, lowerOpen, upperOpen) native | |
| 25121 '''return cls.bound(lower, upper, lowerOpen, upperOpen);'''; | |
| 25122 | |
| 25123 } | |
| 25124 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 25125 // for details. All rights reserved. Use of this source code is governed by a | |
| 25126 // BSD-style license that can be found in the LICENSE file. | |
| 25127 | |
| 25128 class _TypedArrayFactoryProvider { | |
| 25129 | |
| 25130 factory Float32Array(int length) => _F32(length); | |
| 25131 factory Float32Array.fromList(List<num> list) => _F32(ensureNative(list)); | |
| 25132 factory Float32Array.fromBuffer(ArrayBuffer buffer, | |
| 25133 [int byteOffset = 0, int length]) { | |
| 25134 if (length == null) return _F32_2(buffer, byteOffset); | |
| 25135 return _F32_3(buffer, byteOffset, length); | |
| 25136 } | |
| 25137 | |
| 25138 factory Float64Array(int length) => _F64(length); | |
| 25139 factory Float64Array.fromList(List<num> list) => _F64(ensureNative(list)); | |
| 25140 factory Float64Array.fromBuffer(ArrayBuffer buffer, | |
| 25141 [int byteOffset = 0, int length]) { | |
| 25142 if (length == null) return _F64_2(buffer, byteOffset); | |
| 25143 return _F64_3(buffer, byteOffset, length); | |
| 25144 } | |
| 25145 | |
| 25146 factory Int8Array(int length) => _I8(length); | |
| 25147 factory Int8Array.fromList(List<num> list) => _I8(ensureNative(list)); | |
| 25148 factory Int8Array.fromBuffer(ArrayBuffer buffer, | |
| 25149 [int byteOffset = 0, int length]) { | |
| 25150 if (length == null) return _I8_2(buffer, byteOffset); | |
| 25151 return _I8_3(buffer, byteOffset, length); | |
| 25152 } | |
| 25153 | |
| 25154 factory Int16Array(int length) => _I16(length); | |
| 25155 factory Int16Array.fromList(List<num> list) => _I16(ensureNative(list)); | |
| 25156 factory Int16Array.fromBuffer(ArrayBuffer buffer, | |
| 25157 [int byteOffset = 0, int length]) { | |
| 25158 if (length == null) return _I16_2(buffer, byteOffset); | |
| 25159 return _I16_3(buffer, byteOffset, length); | |
| 25160 } | |
| 25161 | |
| 25162 factory Int32Array(int length) => _I32(length); | |
| 25163 factory Int32Array.fromList(List<num> list) => _I32(ensureNative(list)); | |
| 25164 factory Int32Array.fromBuffer(ArrayBuffer buffer, | |
| 25165 [int byteOffset = 0, int length]) { | |
| 25166 if (length == null) return _I32_2(buffer, byteOffset); | |
| 25167 return _I32_3(buffer, byteOffset, length); | |
| 25168 } | |
| 25169 | |
| 25170 factory Uint8Array(int length) => _U8(length); | |
| 25171 factory Uint8Array.fromList(List<num> list) => _U8(ensureNative(list)); | |
| 25172 factory Uint8Array.fromBuffer(ArrayBuffer buffer, | |
| 25173 [int byteOffset = 0, int length]) { | |
| 25174 if (length == null) return _U8_2(buffer, byteOffset); | |
| 25175 return _U8_3(buffer, byteOffset, length); | |
| 25176 } | |
| 25177 | |
| 25178 factory Uint16Array(int length) => _U16(length); | |
| 25179 factory Uint16Array.fromList(List<num> list) => _U16(ensureNative(list)); | |
| 25180 factory Uint16Array.fromBuffer(ArrayBuffer buffer, | |
| 25181 [int byteOffset = 0, int length]) { | |
| 25182 if (length == null) return _U16_2(buffer, byteOffset); | |
| 25183 return _U16_3(buffer, byteOffset, length); | |
| 25184 } | |
| 25185 | |
| 25186 factory Uint32Array(int length) => _U32(length); | |
| 25187 factory Uint32Array.fromList(List<num> list) => _U32(ensureNative(list)); | |
| 25188 factory Uint32Array.fromBuffer(ArrayBuffer buffer, | |
| 25189 [int byteOffset = 0, int length]) { | |
| 25190 if (length == null) return _U32_2(buffer, byteOffset); | |
| 25191 return _U32_3(buffer, byteOffset, length); | |
| 25192 } | |
| 25193 | |
| 25194 factory Uint8ClampedArray(int length) => _U8C(length); | |
| 25195 factory Uint8ClampedArray.fromList(List<num> list) => _U8C(ensureNative(list))
; | |
| 25196 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, | |
| 25197 [int byteOffset = 0, int length]) { | |
| 25198 if (length == null) return _U8C_2(buffer, byteOffset); | |
| 25199 return _U8C_3(buffer, byteOffset, length); | |
| 25200 } | |
| 25201 | |
| 25202 static Float32Array _F32(arg) native 'return new Float32Array(arg);'; | |
| 25203 static Float64Array _F64(arg) native 'return new Float64Array(arg);'; | |
| 25204 static Int8Array _I8(arg) native 'return new Int8Array(arg);'; | |
| 25205 static Int16Array _I16(arg) native 'return new Int16Array(arg);'; | |
| 25206 static Int32Array _I32(arg) native 'return new Int32Array(arg);'; | |
| 25207 static Uint8Array _U8(arg) native 'return new Uint8Array(arg);'; | |
| 25208 static Uint16Array _U16(arg) native 'return new Uint16Array(arg);'; | |
| 25209 static Uint32Array _U32(arg) native 'return new Uint32Array(arg);'; | |
| 25210 static Uint8ClampedArray _U8C(arg) native 'return new Uint8ClampedArray(arg);'
; | |
| 25211 | |
| 25212 static Float32Array _F32_2(arg1, arg2) native 'return new Float32Array(arg1, a
rg2);'; | |
| 25213 static Float64Array _F64_2(arg1, arg2) native 'return new Float64Array(arg1, a
rg2);'; | |
| 25214 static Int8Array _I8_2(arg1, arg2) native 'return new Int8Array(arg1, arg2);'; | |
| 25215 static Int16Array _I16_2(arg1, arg2) native 'return new Int16Array(arg1, arg2)
;'; | |
| 25216 static Int32Array _I32_2(arg1, arg2) native 'return new Int32Array(arg1, arg2)
;'; | |
| 25217 static Uint8Array _U8_2(arg1, arg2) native 'return new Uint8Array(arg1, arg2);
'; | |
| 25218 static Uint16Array _U16_2(arg1, arg2) native 'return new Uint16Array(arg1, arg
2);'; | |
| 25219 static Uint32Array _U32_2(arg1, arg2) native 'return new Uint32Array(arg1, arg
2);'; | |
| 25220 static Uint8ClampedArray _U8C_2(arg1, arg2) native 'return new Uint8ClampedArr
ay(arg1, arg2);'; | |
| 25221 | |
| 25222 static Float32Array _F32_3(arg1, arg2, arg3) native 'return new Float32Array(a
rg1, arg2, arg3);'; | |
| 25223 static Float64Array _F64_3(arg1, arg2, arg3) native 'return new Float64Array(a
rg1, arg2, arg3);'; | |
| 25224 static Int8Array _I8_3(arg1, arg2, arg3) native 'return new Int8Array(arg1, ar
g2, arg3);'; | |
| 25225 static Int16Array _I16_3(arg1, arg2, arg3) native 'return new Int16Array(arg1,
arg2, arg3);'; | |
| 25226 static Int32Array _I32_3(arg1, arg2, arg3) native 'return new Int32Array(arg1,
arg2, arg3);'; | |
| 25227 static Uint8Array _U8_3(arg1, arg2, arg3) native 'return new Uint8Array(arg1,
arg2, arg3);'; | |
| 25228 static Uint16Array _U16_3(arg1, arg2, arg3) native 'return new Uint16Array(arg
1, arg2, arg3);'; | |
| 25229 static Uint32Array _U32_3(arg1, arg2, arg3) native 'return new Uint32Array(arg
1, arg2, arg3);'; | |
| 25230 static Uint8ClampedArray _U8C_3(arg1, arg2, arg3) native 'return new Uint8Clam
pedArray(arg1, arg2, arg3);'; | |
| 25231 | |
| 25232 | |
| 25233 // Ensures that [list] is a JavaScript Array or a typed array. If necessary, | |
| 25234 // copies the list. | |
| 25235 static ensureNative(List list) => list; // TODO: make sure. | |
| 25236 } | |
| 25237 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25238 // for details. All rights reserved. Use of this source code is governed by a | |
| 25239 // BSD-style license that can be found in the LICENSE file. | |
| 25240 | |
| 25241 /** | |
| 25242 * The [Collections] class implements static methods useful when | |
| 25243 * writing a class that implements [Collection] and the [iterator] | |
| 25244 * method. | |
| 25245 */ | |
| 25246 class _Collections { | |
| 25247 static void forEach(Iterable<Object> iterable, void f(Object o)) { | |
| 25248 for (final e in iterable) { | |
| 25249 f(e); | |
| 25250 } | |
| 25251 } | |
| 25252 | |
| 25253 static List map(Iterable<Object> source, | |
| 25254 List<Object> destination, | |
| 25255 f(o)) { | |
| 25256 for (final e in source) { | |
| 25257 destination.add(f(e)); | |
| 25258 } | |
| 25259 return destination; | |
| 25260 } | |
| 25261 | |
| 25262 static bool some(Iterable<Object> iterable, bool f(Object o)) { | |
| 25263 for (final e in iterable) { | |
| 25264 if (f(e)) return true; | |
| 25265 } | |
| 25266 return false; | |
| 25267 } | |
| 25268 | |
| 25269 static bool every(Iterable<Object> iterable, bool f(Object o)) { | |
| 25270 for (final e in iterable) { | |
| 25271 if (!f(e)) return false; | |
| 25272 } | |
| 25273 return true; | |
| 25274 } | |
| 25275 | |
| 25276 static List filter(Iterable<Object> source, | |
| 25277 List<Object> destination, | |
| 25278 bool f(o)) { | |
| 25279 for (final e in source) { | |
| 25280 if (f(e)) destination.add(e); | |
| 25281 } | |
| 25282 return destination; | |
| 25283 } | |
| 25284 | |
| 25285 static bool isEmpty(Iterable<Object> iterable) { | |
| 25286 return !iterable.iterator().hasNext(); | |
| 25287 } | |
| 25288 } | |
| 25289 // Copyright (c) 2011, 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 // Iterator for arrays with fixed size. | |
| 25294 class _FixedSizeListIterator<T> extends _VariableSizeListIterator<T> { | |
| 25295 _FixedSizeListIterator(List<T> array) | |
| 25296 : super(array), | |
| 25297 _length = array.length; | |
| 25298 | |
| 25299 bool hasNext() => _length > _pos; | |
| 25300 | |
| 25301 final int _length; // Cache array length for faster access. | |
| 25302 } | |
| 25303 | |
| 25304 // Iterator for arrays with variable size. | |
| 25305 class _VariableSizeListIterator<T> implements Iterator<T> { | |
| 25306 _VariableSizeListIterator(List<T> array) | |
| 25307 : _array = array, | |
| 25308 _pos = 0; | |
| 25309 | |
| 25310 bool hasNext() => _array.length > _pos; | |
| 25311 | |
| 25312 T next() { | |
| 25313 if (!hasNext()) { | |
| 25314 throw const NoMoreElementsException(); | |
| 25315 } | |
| 25316 return _array[_pos++]; | |
| 25317 } | |
| 25318 | |
| 25319 final List<T> _array; | |
| 25320 int _pos; | |
| 25321 } | |
| 25322 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 25323 // for details. All rights reserved. Use of this source code is governed by a | |
| 25324 // BSD-style license that can be found in the LICENSE file. | |
| 25325 | |
| 25326 class _Lists { | |
| 25327 | |
| 25328 /** | |
| 25329 * Returns the index in the array [a] of the given [element], starting | |
| 25330 * the search at index [startIndex] to [endIndex] (exclusive). | |
| 25331 * Returns -1 if [element] is not found. | |
| 25332 */ | |
| 25333 static int indexOf(List a, | |
| 25334 Object element, | |
| 25335 int startIndex, | |
| 25336 int endIndex) { | |
| 25337 if (startIndex >= a.length) { | |
| 25338 return -1; | |
| 25339 } | |
| 25340 if (startIndex < 0) { | |
| 25341 startIndex = 0; | |
| 25342 } | |
| 25343 for (int i = startIndex; i < endIndex; i++) { | |
| 25344 if (a[i] == element) { | |
| 25345 return i; | |
| 25346 } | |
| 25347 } | |
| 25348 return -1; | |
| 25349 } | |
| 25350 | |
| 25351 /** | |
| 25352 * Returns the last index in the array [a] of the given [element], starting | |
| 25353 * the search at index [startIndex] to 0. | |
| 25354 * Returns -1 if [element] is not found. | |
| 25355 */ | |
| 25356 static int lastIndexOf(List a, Object element, int startIndex) { | |
| 25357 if (startIndex < 0) { | |
| 25358 return -1; | |
| 25359 } | |
| 25360 if (startIndex >= a.length) { | |
| 25361 startIndex = a.length - 1; | |
| 25362 } | |
| 25363 for (int i = startIndex; i >= 0; i--) { | |
| 25364 if (a[i] == element) { | |
| 25365 return i; | |
| 25366 } | |
| 25367 } | |
| 25368 return -1; | |
| 25369 } | |
| 25370 | |
| 25371 /** | |
| 25372 * Returns a sub list copy of this list, from [start] to | |
| 25373 * [:start + length:]. | |
| 25374 * Returns an empty list if [length] is 0. | |
| 25375 * Throws an [IllegalArgumentException] if [length] is negative. | |
| 25376 * Throws an [IndexOutOfRangeException] if [start] or | |
| 25377 * [:start + length:] are out of range. | |
| 25378 */ | |
| 25379 static List getRange(List a, int start, int length, List accumulator) { | |
| 25380 if (length < 0) throw new IllegalArgumentException('length'); | |
| 25381 if (start < 0) throw new IndexOutOfRangeException(start); | |
| 25382 int end = start + length; | |
| 25383 if (end > a.length) throw new IndexOutOfRangeException(end); | |
| 25384 for (int i = start; i < end; i++) { | |
| 25385 accumulator.add(a[i]); | |
| 25386 } | |
| 25387 return accumulator; | |
| 25388 } | |
| 25389 } | |
| OLD | NEW |