| OLD | NEW |
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:isolate'; | 3 import 'dart:isolate'; |
| 4 import 'dart:json'; | 4 import 'dart:json'; |
| 5 import 'dart:svg' as svg; | 5 import 'dart:svg' as svg; |
| 6 import 'dart:web_audio' as web_audio; |
| 6 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7 // for details. All rights reserved. Use of this source code is governed by a | 8 // for details. All rights reserved. Use of this source code is governed by a |
| 8 // BSD-style license that can be found in the LICENSE file. | 9 // BSD-style license that can be found in the LICENSE file. |
| 9 | 10 |
| 10 // DO NOT EDIT | 11 // DO NOT EDIT |
| 11 // Auto-generated dart:html library. | 12 // Auto-generated dart:html library. |
| 12 | 13 |
| 13 | 14 |
| 15 // Not actually used, but imported since dart:html can generate these objects. |
| 14 | 16 |
| 15 | 17 |
| 16 | 18 |
| 17 | 19 |
| 18 | 20 |
| 19 LocalWindow get window => JS('LocalWindow', 'window'); | 21 LocalWindow get window => JS('LocalWindow', 'window'); |
| 20 | 22 |
| 21 HtmlDocument get document => JS('Document', 'document'); | 23 HtmlDocument get document => JS('Document', 'document'); |
| 22 | 24 |
| 23 Element query(String selector) => document.query(selector); | 25 Element query(String selector) => document.query(selector); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 class AbstractWorkerEvents extends Events { | 70 class AbstractWorkerEvents extends Events { |
| 69 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); | 71 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); |
| 70 | 72 |
| 71 EventListenerList get error => this['error']; | 73 EventListenerList get error => this['error']; |
| 72 } | 74 } |
| 73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 75 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 74 // for details. All rights reserved. Use of this source code is governed by a | 76 // for details. All rights reserved. Use of this source code is governed by a |
| 75 // BSD-style license that can be found in the LICENSE file. | 77 // BSD-style license that can be found in the LICENSE file. |
| 76 | 78 |
| 77 | 79 |
| 78 /// @domName AnalyserNode; @docsEditable true | |
| 79 class AnalyserNode extends AudioNode native "*AnalyserNode" { | |
| 80 | |
| 81 /// @domName AnalyserNode.fftSize; @docsEditable true | |
| 82 int fftSize; | |
| 83 | |
| 84 /// @domName AnalyserNode.frequencyBinCount; @docsEditable true | |
| 85 final int frequencyBinCount; | |
| 86 | |
| 87 /// @domName AnalyserNode.maxDecibels; @docsEditable true | |
| 88 num maxDecibels; | |
| 89 | |
| 90 /// @domName AnalyserNode.minDecibels; @docsEditable true | |
| 91 num minDecibels; | |
| 92 | |
| 93 /// @domName AnalyserNode.smoothingTimeConstant; @docsEditable true | |
| 94 num smoothingTimeConstant; | |
| 95 | |
| 96 /// @domName AnalyserNode.getByteFrequencyData; @docsEditable true | |
| 97 void getByteFrequencyData(Uint8Array array) native; | |
| 98 | |
| 99 /// @domName AnalyserNode.getByteTimeDomainData; @docsEditable true | |
| 100 void getByteTimeDomainData(Uint8Array array) native; | |
| 101 | |
| 102 /// @domName AnalyserNode.getFloatFrequencyData; @docsEditable true | |
| 103 void getFloatFrequencyData(Float32Array array) native; | |
| 104 } | |
| 105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 106 // for details. All rights reserved. Use of this source code is governed by a | |
| 107 // BSD-style license that can be found in the LICENSE file. | |
| 108 | |
| 109 | |
| 110 /// @domName HTMLAnchorElement; @docsEditable true | 80 /// @domName HTMLAnchorElement; @docsEditable true |
| 111 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen
t" { | 81 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen
t" { |
| 112 | 82 |
| 113 factory AnchorElement({String href}) { | 83 factory AnchorElement({String href}) { |
| 114 var e = document.$dom_createElement("a"); | 84 var e = document.$dom_createElement("a"); |
| 115 if (href != null) e.href = href; | 85 if (href != null) e.href = href; |
| 116 return e; | 86 return e; |
| 117 } | 87 } |
| 118 | 88 |
| 119 /// @domName HTMLAnchorElement.charset; @docsEditable true | 89 /// @domName HTMLAnchorElement.charset; @docsEditable true |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 final bool specified; | 363 final bool specified; |
| 394 | 364 |
| 395 /// @domName Attr.value; @docsEditable true | 365 /// @domName Attr.value; @docsEditable true |
| 396 String value; | 366 String value; |
| 397 } | 367 } |
| 398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 368 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 399 // for details. All rights reserved. Use of this source code is governed by a | 369 // for details. All rights reserved. Use of this source code is governed by a |
| 400 // BSD-style license that can be found in the LICENSE file. | 370 // BSD-style license that can be found in the LICENSE file. |
| 401 | 371 |
| 402 | 372 |
| 403 /// @domName AudioBuffer; @docsEditable true | |
| 404 class AudioBuffer native "*AudioBuffer" { | |
| 405 | |
| 406 /// @domName AudioBuffer.duration; @docsEditable true | |
| 407 final num duration; | |
| 408 | |
| 409 /// @domName AudioBuffer.gain; @docsEditable true | |
| 410 num gain; | |
| 411 | |
| 412 /// @domName AudioBuffer.length; @docsEditable true | |
| 413 final int length; | |
| 414 | |
| 415 /// @domName AudioBuffer.numberOfChannels; @docsEditable true | |
| 416 final int numberOfChannels; | |
| 417 | |
| 418 /// @domName AudioBuffer.sampleRate; @docsEditable true | |
| 419 final num sampleRate; | |
| 420 | |
| 421 /// @domName AudioBuffer.getChannelData; @docsEditable true | |
| 422 Float32Array getChannelData(int channelIndex) native; | |
| 423 } | |
| 424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 425 // for details. All rights reserved. Use of this source code is governed by a | |
| 426 // BSD-style license that can be found in the LICENSE file. | |
| 427 | |
| 428 // WARNING: Do not edit - generated code. | |
| 429 | |
| 430 | |
| 431 typedef void AudioBufferCallback(AudioBuffer audioBuffer); | |
| 432 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 433 // for details. All rights reserved. Use of this source code is governed by a | |
| 434 // BSD-style license that can be found in the LICENSE file. | |
| 435 | |
| 436 | |
| 437 class AudioBufferSourceNode extends AudioSourceNode native "*AudioBufferSourceNo
de" { | |
| 438 | |
| 439 // TODO(efortuna): Remove these methods when Chrome stable also uses start | |
| 440 // instead of noteOn. | |
| 441 void start(num when, [num grainOffset, num grainDuration]) { | |
| 442 if (JS('bool', '!!#.start', this)) { | |
| 443 if (?grainDuration) { | |
| 444 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration); | |
| 445 } else if (?grainOffset) { | |
| 446 JS('void', '#.start(#, #)', this, when, grainOffset); | |
| 447 } else { | |
| 448 JS('void', '#.start(#)', this, when); | |
| 449 } | |
| 450 } else { | |
| 451 if (?grainDuration) { | |
| 452 JS('void', '#.noteOn(#, #, #)', this, when, grainOffset, grainDuration); | |
| 453 } else if (?grainOffset) { | |
| 454 JS('void', '#.noteOn(#, #)', this, when, grainOffset); | |
| 455 } else { | |
| 456 JS('void', '#.noteOn(#)', this, when); | |
| 457 } | |
| 458 } | |
| 459 } | |
| 460 | |
| 461 void stop(num when) { | |
| 462 if (JS('bool', '!!#.stop', this)) { | |
| 463 JS('void', '#.stop(#)', this, when); | |
| 464 } else { | |
| 465 JS('void', '#.noteOff(#)', this, when); | |
| 466 } | |
| 467 } | |
| 468 | |
| 469 static const int FINISHED_STATE = 3; | |
| 470 | |
| 471 static const int PLAYING_STATE = 2; | |
| 472 | |
| 473 static const int SCHEDULED_STATE = 1; | |
| 474 | |
| 475 static const int UNSCHEDULED_STATE = 0; | |
| 476 | |
| 477 /// @domName AudioBufferSourceNode.buffer; @docsEditable true | |
| 478 AudioBuffer buffer; | |
| 479 | |
| 480 /// @domName AudioBufferSourceNode.gain; @docsEditable true | |
| 481 final AudioGain gain; | |
| 482 | |
| 483 /// @domName AudioBufferSourceNode.loop; @docsEditable true | |
| 484 bool loop; | |
| 485 | |
| 486 /// @domName AudioBufferSourceNode.loopEnd; @docsEditable true | |
| 487 num loopEnd; | |
| 488 | |
| 489 /// @domName AudioBufferSourceNode.loopStart; @docsEditable true | |
| 490 num loopStart; | |
| 491 | |
| 492 /// @domName AudioBufferSourceNode.playbackRate; @docsEditable true | |
| 493 final AudioParam playbackRate; | |
| 494 | |
| 495 /// @domName AudioBufferSourceNode.playbackState; @docsEditable true | |
| 496 final int playbackState; | |
| 497 | |
| 498 } | |
| 499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 500 // for details. All rights reserved. Use of this source code is governed by a | |
| 501 // BSD-style license that can be found in the LICENSE file. | |
| 502 | |
| 503 | |
| 504 class AudioContext extends EventTarget native "*AudioContext" { | |
| 505 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext(); | |
| 506 | |
| 507 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | |
| 508 AudioContextEvents get on => | |
| 509 new AudioContextEvents(this); | |
| 510 | |
| 511 /// @domName AudioContext.activeSourceCount; @docsEditable true | |
| 512 final int activeSourceCount; | |
| 513 | |
| 514 /// @domName AudioContext.currentTime; @docsEditable true | |
| 515 final num currentTime; | |
| 516 | |
| 517 /// @domName AudioContext.destination; @docsEditable true | |
| 518 final AudioDestinationNode destination; | |
| 519 | |
| 520 /// @domName AudioContext.listener; @docsEditable true | |
| 521 final AudioListener listener; | |
| 522 | |
| 523 /// @domName AudioContext.sampleRate; @docsEditable true | |
| 524 final num sampleRate; | |
| 525 | |
| 526 /// @domName AudioContext.createAnalyser; @docsEditable true | |
| 527 AnalyserNode createAnalyser() native; | |
| 528 | |
| 529 /// @domName AudioContext.createBiquadFilter; @docsEditable true | |
| 530 BiquadFilterNode createBiquadFilter() native; | |
| 531 | |
| 532 /// @domName AudioContext.createBuffer; @docsEditable true | |
| 533 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) native; | |
| 534 | |
| 535 /// @domName AudioContext.createBufferSource; @docsEditable true | |
| 536 AudioBufferSourceNode createBufferSource() native; | |
| 537 | |
| 538 /// @domName AudioContext.createChannelMerger; @docsEditable true | |
| 539 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; | |
| 540 | |
| 541 /// @domName AudioContext.createChannelSplitter; @docsEditable true | |
| 542 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; | |
| 543 | |
| 544 /// @domName AudioContext.createConvolver; @docsEditable true | |
| 545 ConvolverNode createConvolver() native; | |
| 546 | |
| 547 /// @domName AudioContext.createDelay; @docsEditable true | |
| 548 DelayNode createDelay([num maxDelayTime]) native; | |
| 549 | |
| 550 /// @domName AudioContext.createDynamicsCompressor; @docsEditable true | |
| 551 DynamicsCompressorNode createDynamicsCompressor() native; | |
| 552 | |
| 553 /// @domName AudioContext.createMediaElementSource; @docsEditable true | |
| 554 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; | |
| 555 | |
| 556 /// @domName AudioContext.createMediaStreamSource; @docsEditable true | |
| 557 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive; | |
| 558 | |
| 559 /// @domName AudioContext.createOscillator; @docsEditable true | |
| 560 OscillatorNode createOscillator() native; | |
| 561 | |
| 562 /// @domName AudioContext.createPanner; @docsEditable true | |
| 563 PannerNode createPanner() native; | |
| 564 | |
| 565 /// @domName AudioContext.createWaveShaper; @docsEditable true | |
| 566 WaveShaperNode createWaveShaper() native; | |
| 567 | |
| 568 /// @domName AudioContext.createWaveTable; @docsEditable true | |
| 569 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; | |
| 570 | |
| 571 /// @domName AudioContext.decodeAudioData; @docsEditable true | |
| 572 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native; | |
| 573 | |
| 574 /// @domName AudioContext.startRendering; @docsEditable true | |
| 575 void startRendering() native; | |
| 576 | |
| 577 GainNode createGain() { | |
| 578 if (JS('bool', '#.createGain !== undefined', this)) { | |
| 579 return JS('GainNode', '#.createGain()', this); | |
| 580 } else { | |
| 581 return JS('GainNode', '#.createGainNode()', this); | |
| 582 } | |
| 583 } | |
| 584 | |
| 585 ScriptProcessorNode createScriptProcessor(int bufferSize, | |
| 586 [int numberOfInputChannels, int numberOfOutputChannels]) { | |
| 587 var function = JS('dynamic', '#.createScriptProcessor || ' | |
| 588 '#.createJavaScriptNode', this, this); | |
| 589 if (?numberOfOutputChannels) { | |
| 590 return JS('ScriptProcessorNode', '#.call(#, #, #, #)', function, this, | |
| 591 bufferSize, numberOfInputChannels, numberOfOutputChannels); | |
| 592 } else if (?numberOfInputChannels) { | |
| 593 return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this, | |
| 594 bufferSize, numberOfInputChannels); | |
| 595 } else { | |
| 596 return JS('ScriptProcessorNode', '#.call(#, #)', function, this, | |
| 597 bufferSize); | |
| 598 } | |
| 599 } | |
| 600 } | |
| 601 | |
| 602 class AudioContextEvents extends Events { | |
| 603 AudioContextEvents(EventTarget _ptr) : super(_ptr); | |
| 604 | |
| 605 EventListenerList get complete => this['complete']; | |
| 606 } | |
| 607 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 608 // for details. All rights reserved. Use of this source code is governed by a | |
| 609 // BSD-style license that can be found in the LICENSE file. | |
| 610 | |
| 611 | |
| 612 /// @domName AudioDestinationNode; @docsEditable true | |
| 613 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { | |
| 614 | |
| 615 /// @domName AudioDestinationNode.numberOfChannels; @docsEditable true | |
| 616 final int numberOfChannels; | |
| 617 } | |
| 618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 619 // for details. All rights reserved. Use of this source code is governed by a | |
| 620 // BSD-style license that can be found in the LICENSE file. | |
| 621 | |
| 622 | |
| 623 /// @domName HTMLAudioElement; @docsEditable true | |
| 624 class AudioElement extends MediaElement native "*HTMLAudioElement" { | |
| 625 | |
| 626 factory AudioElement([String src]) { | |
| 627 if (!?src) { | |
| 628 return _AudioElementFactoryProvider.createAudioElement(); | |
| 629 } | |
| 630 return _AudioElementFactoryProvider.createAudioElement(src); | |
| 631 } | |
| 632 } | |
| 633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 634 // for details. All rights reserved. Use of this source code is governed by a | |
| 635 // BSD-style license that can be found in the LICENSE file. | |
| 636 | |
| 637 | |
| 638 /// @domName AudioGain; @docsEditable true | |
| 639 class AudioGain extends AudioParam native "*AudioGain" { | |
| 640 } | |
| 641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 642 // for details. All rights reserved. Use of this source code is governed by a | |
| 643 // BSD-style license that can be found in the LICENSE file. | |
| 644 | |
| 645 | |
| 646 /// @domName AudioListener; @docsEditable true | |
| 647 class AudioListener native "*AudioListener" { | |
| 648 | |
| 649 /// @domName AudioListener.dopplerFactor; @docsEditable true | |
| 650 num dopplerFactor; | |
| 651 | |
| 652 /// @domName AudioListener.speedOfSound; @docsEditable true | |
| 653 num speedOfSound; | |
| 654 | |
| 655 /// @domName AudioListener.setOrientation; @docsEditable true | |
| 656 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; | |
| 657 | |
| 658 /// @domName AudioListener.setPosition; @docsEditable true | |
| 659 void setPosition(num x, num y, num z) native; | |
| 660 | |
| 661 /// @domName AudioListener.setVelocity; @docsEditable true | |
| 662 void setVelocity(num x, num y, num z) native; | |
| 663 } | |
| 664 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 665 // for details. All rights reserved. Use of this source code is governed by a | |
| 666 // BSD-style license that can be found in the LICENSE file. | |
| 667 | |
| 668 | |
| 669 /// @domName AudioNode; @docsEditable true | |
| 670 class AudioNode native "*AudioNode" { | |
| 671 | |
| 672 /// @domName AudioNode.context; @docsEditable true | |
| 673 final AudioContext context; | |
| 674 | |
| 675 /// @domName AudioNode.numberOfInputs; @docsEditable true | |
| 676 final int numberOfInputs; | |
| 677 | |
| 678 /// @domName AudioNode.numberOfOutputs; @docsEditable true | |
| 679 final int numberOfOutputs; | |
| 680 | |
| 681 /// @domName AudioNode.connect; @docsEditable true | |
| 682 void connect(destination, int output, [int input]) native; | |
| 683 | |
| 684 /// @domName AudioNode.disconnect; @docsEditable true | |
| 685 void disconnect(int output) native; | |
| 686 } | |
| 687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 688 // for details. All rights reserved. Use of this source code is governed by a | |
| 689 // BSD-style license that can be found in the LICENSE file. | |
| 690 | |
| 691 | |
| 692 /// @domName AudioParam; @docsEditable true | |
| 693 class AudioParam native "*AudioParam" { | |
| 694 | |
| 695 /// @domName AudioParam.defaultValue; @docsEditable true | |
| 696 final num defaultValue; | |
| 697 | |
| 698 /// @domName AudioParam.maxValue; @docsEditable true | |
| 699 final num maxValue; | |
| 700 | |
| 701 /// @domName AudioParam.minValue; @docsEditable true | |
| 702 final num minValue; | |
| 703 | |
| 704 /// @domName AudioParam.name; @docsEditable true | |
| 705 final String name; | |
| 706 | |
| 707 /// @domName AudioParam.units; @docsEditable true | |
| 708 final int units; | |
| 709 | |
| 710 /// @domName AudioParam.value; @docsEditable true | |
| 711 num value; | |
| 712 | |
| 713 /// @domName AudioParam.cancelScheduledValues; @docsEditable true | |
| 714 void cancelScheduledValues(num startTime) native; | |
| 715 | |
| 716 /// @domName AudioParam.exponentialRampToValueAtTime; @docsEditable true | |
| 717 void exponentialRampToValueAtTime(num value, num time) native; | |
| 718 | |
| 719 /// @domName AudioParam.linearRampToValueAtTime; @docsEditable true | |
| 720 void linearRampToValueAtTime(num value, num time) native; | |
| 721 | |
| 722 /// @domName AudioParam.setTargetAtTime; @docsEditable true | |
| 723 void setTargetAtTime(num target, num time, num timeConstant) native; | |
| 724 | |
| 725 /// @domName AudioParam.setValueAtTime; @docsEditable true | |
| 726 void setValueAtTime(num value, num time) native; | |
| 727 | |
| 728 /// @domName AudioParam.setValueCurveAtTime; @docsEditable true | |
| 729 void setValueCurveAtTime(Float32Array values, num time, num duration) native; | |
| 730 } | |
| 731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 732 // for details. All rights reserved. Use of this source code is governed by a | |
| 733 // BSD-style license that can be found in the LICENSE file. | |
| 734 | |
| 735 | |
| 736 /// @domName AudioProcessingEvent; @docsEditable true | |
| 737 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { | |
| 738 | |
| 739 /// @domName AudioProcessingEvent.inputBuffer; @docsEditable true | |
| 740 final AudioBuffer inputBuffer; | |
| 741 | |
| 742 /// @domName AudioProcessingEvent.outputBuffer; @docsEditable true | |
| 743 final AudioBuffer outputBuffer; | |
| 744 } | |
| 745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 746 // for details. All rights reserved. Use of this source code is governed by a | |
| 747 // BSD-style license that can be found in the LICENSE file. | |
| 748 | |
| 749 | |
| 750 /// @domName AudioSourceNode; @docsEditable true | |
| 751 class AudioSourceNode extends AudioNode native "*AudioSourceNode" { | |
| 752 } | |
| 753 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 754 // for details. All rights reserved. Use of this source code is governed by a | |
| 755 // BSD-style license that can be found in the LICENSE file. | |
| 756 | |
| 757 | |
| 758 /// @domName HTMLBRElement; @docsEditable true | 373 /// @domName HTMLBRElement; @docsEditable true |
| 759 class BRElement extends Element implements Element native "*HTMLBRElement" { | 374 class BRElement extends Element implements Element native "*HTMLBRElement" { |
| 760 | 375 |
| 761 factory BRElement() => document.$dom_createElement("br"); | 376 factory BRElement() => document.$dom_createElement("br"); |
| 762 | 377 |
| 763 /// @domName HTMLBRElement.clear; @docsEditable true | 378 /// @domName HTMLBRElement.clear; @docsEditable true |
| 764 String clear; | 379 String clear; |
| 765 } | 380 } |
| 766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 381 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 767 // for details. All rights reserved. Use of this source code is governed by a | 382 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { | 476 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { |
| 862 | 477 |
| 863 /// @domName BeforeLoadEvent.url; @docsEditable true | 478 /// @domName BeforeLoadEvent.url; @docsEditable true |
| 864 final String url; | 479 final String url; |
| 865 } | 480 } |
| 866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 867 // for details. All rights reserved. Use of this source code is governed by a | 482 // for details. All rights reserved. Use of this source code is governed by a |
| 868 // BSD-style license that can be found in the LICENSE file. | 483 // BSD-style license that can be found in the LICENSE file. |
| 869 | 484 |
| 870 | 485 |
| 871 /// @domName BiquadFilterNode; @docsEditable true | |
| 872 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" { | |
| 873 | |
| 874 static const int ALLPASS = 7; | |
| 875 | |
| 876 static const int BANDPASS = 2; | |
| 877 | |
| 878 static const int HIGHPASS = 1; | |
| 879 | |
| 880 static const int HIGHSHELF = 4; | |
| 881 | |
| 882 static const int LOWPASS = 0; | |
| 883 | |
| 884 static const int LOWSHELF = 3; | |
| 885 | |
| 886 static const int NOTCH = 6; | |
| 887 | |
| 888 static const int PEAKING = 5; | |
| 889 | |
| 890 /// @domName BiquadFilterNode.Q; @docsEditable true | |
| 891 final AudioParam Q; | |
| 892 | |
| 893 /// @domName BiquadFilterNode.frequency; @docsEditable true | |
| 894 final AudioParam frequency; | |
| 895 | |
| 896 /// @domName BiquadFilterNode.gain; @docsEditable true | |
| 897 final AudioParam gain; | |
| 898 | |
| 899 /// @domName BiquadFilterNode.type; @docsEditable true | |
| 900 int type; | |
| 901 | |
| 902 /// @domName BiquadFilterNode.getFrequencyResponse; @docsEditable true | |
| 903 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse,
Float32Array phaseResponse) native; | |
| 904 } | |
| 905 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 906 // for details. All rights reserved. Use of this source code is governed by a | |
| 907 // BSD-style license that can be found in the LICENSE file. | |
| 908 | |
| 909 | |
| 910 /// @domName Blob; @docsEditable true | 486 /// @domName Blob; @docsEditable true |
| 911 class Blob native "*Blob" { | 487 class Blob native "*Blob" { |
| 912 | 488 |
| 913 factory Blob(List blobParts, [String type, String endings]) { | 489 factory Blob(List blobParts, [String type, String endings]) { |
| 914 if (!?type) { | 490 if (!?type) { |
| 915 return _BlobFactoryProvider.createBlob(blobParts); | 491 return _BlobFactoryProvider.createBlob(blobParts); |
| 916 } | 492 } |
| 917 if (!?endings) { | 493 if (!?endings) { |
| 918 return _BlobFactoryProvider.createBlob(blobParts, type); | 494 return _BlobFactoryProvider.createBlob(blobParts, type); |
| 919 } | 495 } |
| (...skipping 4189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5109 */ | 4685 */ |
| 5110 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { | 4686 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { |
| 5111 this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; | 4687 this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; |
| 5112 } | 4688 } |
| 5113 } | 4689 } |
| 5114 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5115 // for details. All rights reserved. Use of this source code is governed by a | 4691 // for details. All rights reserved. Use of this source code is governed by a |
| 5116 // BSD-style license that can be found in the LICENSE file. | 4692 // BSD-style license that can be found in the LICENSE file. |
| 5117 | 4693 |
| 5118 | 4694 |
| 5119 /// @domName ChannelMergerNode; @docsEditable true | |
| 5120 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" { | |
| 5121 } | |
| 5122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 5123 // for details. All rights reserved. Use of this source code is governed by a | |
| 5124 // BSD-style license that can be found in the LICENSE file. | |
| 5125 | |
| 5126 | |
| 5127 /// @domName ChannelSplitterNode; @docsEditable true | |
| 5128 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" { | |
| 5129 } | |
| 5130 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 5131 // for details. All rights reserved. Use of this source code is governed by a | |
| 5132 // BSD-style license that can be found in the LICENSE file. | |
| 5133 | |
| 5134 | |
| 5135 /// @domName CharacterData; @docsEditable true | 4695 /// @domName CharacterData; @docsEditable true |
| 5136 class CharacterData extends Node native "*CharacterData" { | 4696 class CharacterData extends Node native "*CharacterData" { |
| 5137 | 4697 |
| 5138 /// @domName CharacterData.data; @docsEditable true | 4698 /// @domName CharacterData.data; @docsEditable true |
| 5139 String data; | 4699 String data; |
| 5140 | 4700 |
| 5141 /// @domName CharacterData.length; @docsEditable true | 4701 /// @domName CharacterData.length; @docsEditable true |
| 5142 final int length; | 4702 final int length; |
| 5143 | 4703 |
| 5144 /// @domName CharacterData.appendData; @docsEditable true | 4704 /// @domName CharacterData.appendData; @docsEditable true |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5351 | 4911 |
| 5352 /// @domName HTMLContentElement.getDistributedNodes; @docsEditable true | 4912 /// @domName HTMLContentElement.getDistributedNodes; @docsEditable true |
| 5353 @Returns('_NodeList') @Creates('_NodeList') | 4913 @Returns('_NodeList') @Creates('_NodeList') |
| 5354 List<Node> getDistributedNodes() native; | 4914 List<Node> getDistributedNodes() native; |
| 5355 } | 4915 } |
| 5356 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 4916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5357 // for details. All rights reserved. Use of this source code is governed by a | 4917 // for details. All rights reserved. Use of this source code is governed by a |
| 5358 // BSD-style license that can be found in the LICENSE file. | 4918 // BSD-style license that can be found in the LICENSE file. |
| 5359 | 4919 |
| 5360 | 4920 |
| 5361 /// @domName ConvolverNode; @docsEditable true | |
| 5362 class ConvolverNode extends AudioNode native "*ConvolverNode" { | |
| 5363 | |
| 5364 /// @domName ConvolverNode.buffer; @docsEditable true | |
| 5365 AudioBuffer buffer; | |
| 5366 | |
| 5367 /// @domName ConvolverNode.normalize; @docsEditable true | |
| 5368 bool normalize; | |
| 5369 } | |
| 5370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 5371 // for details. All rights reserved. Use of this source code is governed by a | |
| 5372 // BSD-style license that can be found in the LICENSE file. | |
| 5373 | |
| 5374 | |
| 5375 /// @domName Coordinates; @docsEditable true | 4921 /// @domName Coordinates; @docsEditable true |
| 5376 class Coordinates native "*Coordinates" { | 4922 class Coordinates native "*Coordinates" { |
| 5377 | 4923 |
| 5378 /// @domName Coordinates.accuracy; @docsEditable true | 4924 /// @domName Coordinates.accuracy; @docsEditable true |
| 5379 final num accuracy; | 4925 final num accuracy; |
| 5380 | 4926 |
| 5381 /// @domName Coordinates.altitude; @docsEditable true | 4927 /// @domName Coordinates.altitude; @docsEditable true |
| 5382 final num altitude; | 4928 final num altitude; |
| 5383 | 4929 |
| 5384 /// @domName Coordinates.altitudeAccuracy; @docsEditable true | 4930 /// @domName Coordinates.altitudeAccuracy; @docsEditable true |
| (...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6250 class DedicatedWorkerContextEvents extends WorkerContextEvents { | 5796 class DedicatedWorkerContextEvents extends WorkerContextEvents { |
| 6251 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); | 5797 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); |
| 6252 | 5798 |
| 6253 EventListenerList get message => this['message']; | 5799 EventListenerList get message => this['message']; |
| 6254 } | 5800 } |
| 6255 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5801 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6256 // for details. All rights reserved. Use of this source code is governed by a | 5802 // for details. All rights reserved. Use of this source code is governed by a |
| 6257 // BSD-style license that can be found in the LICENSE file. | 5803 // BSD-style license that can be found in the LICENSE file. |
| 6258 | 5804 |
| 6259 | 5805 |
| 6260 /// @domName DelayNode; @docsEditable true | |
| 6261 class DelayNode extends AudioNode native "*DelayNode" { | |
| 6262 | |
| 6263 /// @domName DelayNode.delayTime; @docsEditable true | |
| 6264 final AudioParam delayTime; | |
| 6265 } | |
| 6266 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 6267 // for details. All rights reserved. Use of this source code is governed by a | |
| 6268 // BSD-style license that can be found in the LICENSE file. | |
| 6269 | |
| 6270 | |
| 6271 /// @domName HTMLDetailsElement; @docsEditable true | 5806 /// @domName HTMLDetailsElement; @docsEditable true |
| 6272 class DetailsElement extends Element implements Element native "*HTMLDetailsElem
ent" { | 5807 class DetailsElement extends Element implements Element native "*HTMLDetailsElem
ent" { |
| 6273 | 5808 |
| 6274 factory DetailsElement() => document.$dom_createElement("details"); | 5809 factory DetailsElement() => document.$dom_createElement("details"); |
| 6275 | 5810 |
| 6276 /// @domName HTMLDetailsElement.open; @docsEditable true | 5811 /// @domName HTMLDetailsElement.open; @docsEditable true |
| 6277 bool open; | 5812 bool open; |
| 6278 } | 5813 } |
| 6279 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6280 // for details. All rights reserved. Use of this source code is governed by a | 5815 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6990 final String systemId; | 6525 final String systemId; |
| 6991 | 6526 |
| 6992 /// @domName DocumentType.remove; @docsEditable true | 6527 /// @domName DocumentType.remove; @docsEditable true |
| 6993 void remove() native; | 6528 void remove() native; |
| 6994 } | 6529 } |
| 6995 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6996 // for details. All rights reserved. Use of this source code is governed by a | 6531 // for details. All rights reserved. Use of this source code is governed by a |
| 6997 // BSD-style license that can be found in the LICENSE file. | 6532 // BSD-style license that can be found in the LICENSE file. |
| 6998 | 6533 |
| 6999 | 6534 |
| 7000 /// @domName DynamicsCompressorNode; @docsEditable true | |
| 7001 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode"
{ | |
| 7002 | |
| 7003 /// @domName DynamicsCompressorNode.attack; @docsEditable true | |
| 7004 final AudioParam attack; | |
| 7005 | |
| 7006 /// @domName DynamicsCompressorNode.knee; @docsEditable true | |
| 7007 final AudioParam knee; | |
| 7008 | |
| 7009 /// @domName DynamicsCompressorNode.ratio; @docsEditable true | |
| 7010 final AudioParam ratio; | |
| 7011 | |
| 7012 /// @domName DynamicsCompressorNode.reduction; @docsEditable true | |
| 7013 final AudioParam reduction; | |
| 7014 | |
| 7015 /// @domName DynamicsCompressorNode.release; @docsEditable true | |
| 7016 final AudioParam release; | |
| 7017 | |
| 7018 /// @domName DynamicsCompressorNode.threshold; @docsEditable true | |
| 7019 final AudioParam threshold; | |
| 7020 } | |
| 7021 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 7022 // for details. All rights reserved. Use of this source code is governed by a | |
| 7023 // BSD-style license that can be found in the LICENSE file. | |
| 7024 | |
| 7025 | |
| 7026 /// @domName EXTTextureFilterAnisotropic; @docsEditable true | 6535 /// @domName EXTTextureFilterAnisotropic; @docsEditable true |
| 7027 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { | 6536 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { |
| 7028 | 6537 |
| 7029 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; | 6538 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; |
| 7030 | 6539 |
| 7031 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; | 6540 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; |
| 7032 } | 6541 } |
| 7033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7034 // for details. All rights reserved. Use of this source code is governed by a | 6543 // for details. All rights reserved. Use of this source code is governed by a |
| 7035 // BSD-style license that can be found in the LICENSE file. | 6544 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9130 | 8639 |
| 9131 EventListenerList get storage => this['storage']; | 8640 EventListenerList get storage => this['storage']; |
| 9132 | 8641 |
| 9133 EventListenerList get unload => this['unload']; | 8642 EventListenerList get unload => this['unload']; |
| 9134 } | 8643 } |
| 9135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 8644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9136 // for details. All rights reserved. Use of this source code is governed by a | 8645 // for details. All rights reserved. Use of this source code is governed by a |
| 9137 // BSD-style license that can be found in the LICENSE file. | 8646 // BSD-style license that can be found in the LICENSE file. |
| 9138 | 8647 |
| 9139 | 8648 |
| 9140 /// @domName GainNode; @docsEditable true | |
| 9141 class GainNode extends AudioNode native "*GainNode" { | |
| 9142 | |
| 9143 /// @domName GainNode.gain; @docsEditable true | |
| 9144 final AudioGain gain; | |
| 9145 } | |
| 9146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 9147 // for details. All rights reserved. Use of this source code is governed by a | |
| 9148 // BSD-style license that can be found in the LICENSE file. | |
| 9149 | |
| 9150 | |
| 9151 /// @domName Gamepad; @docsEditable true | 8649 /// @domName Gamepad; @docsEditable true |
| 9152 class Gamepad native "*Gamepad" { | 8650 class Gamepad native "*Gamepad" { |
| 9153 | 8651 |
| 9154 /// @domName Gamepad.axes; @docsEditable true | 8652 /// @domName Gamepad.axes; @docsEditable true |
| 9155 final List<num> axes; | 8653 final List<num> axes; |
| 9156 | 8654 |
| 9157 /// @domName Gamepad.buttons; @docsEditable true | 8655 /// @domName Gamepad.buttons; @docsEditable true |
| 9158 final List<num> buttons; | 8656 final List<num> buttons; |
| 9159 | 8657 |
| 9160 /// @domName Gamepad.id; @docsEditable true | 8658 /// @domName Gamepad.id; @docsEditable true |
| (...skipping 3360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12521 | 12019 |
| 12522 EventListenerList get keyMessage => this['webkitkeymessage']; | 12020 EventListenerList get keyMessage => this['webkitkeymessage']; |
| 12523 | 12021 |
| 12524 EventListenerList get needKey => this['webkitneedkey']; | 12022 EventListenerList get needKey => this['webkitneedkey']; |
| 12525 } | 12023 } |
| 12526 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12024 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12527 // for details. All rights reserved. Use of this source code is governed by a | 12025 // for details. All rights reserved. Use of this source code is governed by a |
| 12528 // BSD-style license that can be found in the LICENSE file. | 12026 // BSD-style license that can be found in the LICENSE file. |
| 12529 | 12027 |
| 12530 | 12028 |
| 12531 /// @domName MediaElementAudioSourceNode; @docsEditable true | |
| 12532 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA
udioSourceNode" { | |
| 12533 | |
| 12534 /// @domName MediaElementAudioSourceNode.mediaElement; @docsEditable true | |
| 12535 final MediaElement mediaElement; | |
| 12536 } | |
| 12537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 12538 // for details. All rights reserved. Use of this source code is governed by a | |
| 12539 // BSD-style license that can be found in the LICENSE file. | |
| 12540 | |
| 12541 | |
| 12542 /// @domName MediaError; @docsEditable true | 12029 /// @domName MediaError; @docsEditable true |
| 12543 class MediaError native "*MediaError" { | 12030 class MediaError native "*MediaError" { |
| 12544 | 12031 |
| 12545 static const int MEDIA_ERR_ABORTED = 1; | 12032 static const int MEDIA_ERR_ABORTED = 1; |
| 12546 | 12033 |
| 12547 static const int MEDIA_ERR_DECODE = 3; | 12034 static const int MEDIA_ERR_DECODE = 3; |
| 12548 | 12035 |
| 12549 static const int MEDIA_ERR_ENCRYPTED = 5; | 12036 static const int MEDIA_ERR_ENCRYPTED = 5; |
| 12550 | 12037 |
| 12551 static const int MEDIA_ERR_NETWORK = 2; | 12038 static const int MEDIA_ERR_NETWORK = 2; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12744 class MediaStreamEvents extends Events { | 12231 class MediaStreamEvents extends Events { |
| 12745 MediaStreamEvents(EventTarget _ptr) : super(_ptr); | 12232 MediaStreamEvents(EventTarget _ptr) : super(_ptr); |
| 12746 | 12233 |
| 12747 EventListenerList get ended => this['ended']; | 12234 EventListenerList get ended => this['ended']; |
| 12748 } | 12235 } |
| 12749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12236 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12750 // for details. All rights reserved. Use of this source code is governed by a | 12237 // for details. All rights reserved. Use of this source code is governed by a |
| 12751 // BSD-style license that can be found in the LICENSE file. | 12238 // BSD-style license that can be found in the LICENSE file. |
| 12752 | 12239 |
| 12753 | 12240 |
| 12754 /// @domName MediaStreamAudioSourceNode; @docsEditable true | |
| 12755 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud
ioSourceNode" { | |
| 12756 | |
| 12757 /// @domName MediaStreamAudioSourceNode.mediaStream; @docsEditable true | |
| 12758 final MediaStream mediaStream; | |
| 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 | |
| 12765 /// @domName MediaStreamEvent; @docsEditable true | 12241 /// @domName MediaStreamEvent; @docsEditable true |
| 12766 class MediaStreamEvent extends Event native "*MediaStreamEvent" { | 12242 class MediaStreamEvent extends Event native "*MediaStreamEvent" { |
| 12767 | 12243 |
| 12768 /// @domName MediaStreamEvent.stream; @docsEditable true | 12244 /// @domName MediaStreamEvent.stream; @docsEditable true |
| 12769 final MediaStream stream; | 12245 final MediaStream stream; |
| 12770 } | 12246 } |
| 12771 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12772 // for details. All rights reserved. Use of this source code is governed by a | 12248 // for details. All rights reserved. Use of this source code is governed by a |
| 12773 // BSD-style license that can be found in the LICENSE file. | 12249 // BSD-style license that can be found in the LICENSE file. |
| 12774 | 12250 |
| (...skipping 1396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14171 bool checkValidity() native; | 13647 bool checkValidity() native; |
| 14172 | 13648 |
| 14173 /// @domName HTMLObjectElement.setCustomValidity; @docsEditable true | 13649 /// @domName HTMLObjectElement.setCustomValidity; @docsEditable true |
| 14174 void setCustomValidity(String error) native; | 13650 void setCustomValidity(String error) native; |
| 14175 } | 13651 } |
| 14176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13652 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14177 // for details. All rights reserved. Use of this source code is governed by a | 13653 // for details. All rights reserved. Use of this source code is governed by a |
| 14178 // BSD-style license that can be found in the LICENSE file. | 13654 // BSD-style license that can be found in the LICENSE file. |
| 14179 | 13655 |
| 14180 | 13656 |
| 14181 /// @domName OfflineAudioCompletionEvent; @docsEditable true | |
| 14182 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE
vent" { | |
| 14183 | |
| 14184 /// @domName OfflineAudioCompletionEvent.renderedBuffer; @docsEditable true | |
| 14185 final AudioBuffer renderedBuffer; | |
| 14186 } | |
| 14187 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14188 // for details. All rights reserved. Use of this source code is governed by a | |
| 14189 // BSD-style license that can be found in the LICENSE file. | |
| 14190 | |
| 14191 | |
| 14192 /// @domName HTMLOptGroupElement; @docsEditable true | 13657 /// @domName HTMLOptGroupElement; @docsEditable true |
| 14193 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl
ement" { | 13658 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl
ement" { |
| 14194 | 13659 |
| 14195 factory OptGroupElement() => document.$dom_createElement("optgroup"); | 13660 factory OptGroupElement() => document.$dom_createElement("optgroup"); |
| 14196 | 13661 |
| 14197 /// @domName HTMLOptGroupElement.disabled; @docsEditable true | 13662 /// @domName HTMLOptGroupElement.disabled; @docsEditable true |
| 14198 bool disabled; | 13663 bool disabled; |
| 14199 | 13664 |
| 14200 /// @domName HTMLOptGroupElement.label; @docsEditable true | 13665 /// @domName HTMLOptGroupElement.label; @docsEditable true |
| 14201 String label; | 13666 String label; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14243 bool selected; | 13708 bool selected; |
| 14244 | 13709 |
| 14245 /// @domName HTMLOptionElement.value; @docsEditable true | 13710 /// @domName HTMLOptionElement.value; @docsEditable true |
| 14246 String value; | 13711 String value; |
| 14247 } | 13712 } |
| 14248 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14249 // for details. All rights reserved. Use of this source code is governed by a | 13714 // for details. All rights reserved. Use of this source code is governed by a |
| 14250 // BSD-style license that can be found in the LICENSE file. | 13715 // BSD-style license that can be found in the LICENSE file. |
| 14251 | 13716 |
| 14252 | 13717 |
| 14253 /// @domName OscillatorNode; @docsEditable true | |
| 14254 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" { | |
| 14255 | |
| 14256 static const int CUSTOM = 4; | |
| 14257 | |
| 14258 static const int FINISHED_STATE = 3; | |
| 14259 | |
| 14260 static const int PLAYING_STATE = 2; | |
| 14261 | |
| 14262 static const int SAWTOOTH = 2; | |
| 14263 | |
| 14264 static const int SCHEDULED_STATE = 1; | |
| 14265 | |
| 14266 static const int SINE = 0; | |
| 14267 | |
| 14268 static const int SQUARE = 1; | |
| 14269 | |
| 14270 static const int TRIANGLE = 3; | |
| 14271 | |
| 14272 static const int UNSCHEDULED_STATE = 0; | |
| 14273 | |
| 14274 /// @domName OscillatorNode.detune; @docsEditable true | |
| 14275 final AudioParam detune; | |
| 14276 | |
| 14277 /// @domName OscillatorNode.frequency; @docsEditable true | |
| 14278 final AudioParam frequency; | |
| 14279 | |
| 14280 /// @domName OscillatorNode.playbackState; @docsEditable true | |
| 14281 final int playbackState; | |
| 14282 | |
| 14283 /// @domName OscillatorNode.type; @docsEditable true | |
| 14284 int type; | |
| 14285 | |
| 14286 /// @domName OscillatorNode.setWaveTable; @docsEditable true | |
| 14287 void setWaveTable(WaveTable waveTable) native; | |
| 14288 | |
| 14289 /// @domName OscillatorNode.start; @docsEditable true | |
| 14290 void start(num when) native; | |
| 14291 | |
| 14292 /// @domName OscillatorNode.stop; @docsEditable true | |
| 14293 void stop(num when) native; | |
| 14294 } | |
| 14295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14296 // for details. All rights reserved. Use of this source code is governed by a | |
| 14297 // BSD-style license that can be found in the LICENSE file. | |
| 14298 | |
| 14299 | |
| 14300 /// @domName HTMLOutputElement; @docsEditable true | 13718 /// @domName HTMLOutputElement; @docsEditable true |
| 14301 class OutputElement extends Element implements Element native "*HTMLOutputElemen
t" { | 13719 class OutputElement extends Element implements Element native "*HTMLOutputElemen
t" { |
| 14302 | 13720 |
| 14303 factory OutputElement() => document.$dom_createElement("output"); | 13721 factory OutputElement() => document.$dom_createElement("output"); |
| 14304 | 13722 |
| 14305 /// @domName HTMLOutputElement.defaultValue; @docsEditable true | 13723 /// @domName HTMLOutputElement.defaultValue; @docsEditable true |
| 14306 String defaultValue; | 13724 String defaultValue; |
| 14307 | 13725 |
| 14308 /// @domName HTMLOutputElement.form; @docsEditable true | 13726 /// @domName HTMLOutputElement.form; @docsEditable true |
| 14309 final FormElement form; | 13727 final FormElement form; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14385 class PageTransitionEvent extends Event native "*PageTransitionEvent" { | 13803 class PageTransitionEvent extends Event native "*PageTransitionEvent" { |
| 14386 | 13804 |
| 14387 /// @domName PageTransitionEvent.persisted; @docsEditable true | 13805 /// @domName PageTransitionEvent.persisted; @docsEditable true |
| 14388 final bool persisted; | 13806 final bool persisted; |
| 14389 } | 13807 } |
| 14390 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14391 // for details. All rights reserved. Use of this source code is governed by a | 13809 // for details. All rights reserved. Use of this source code is governed by a |
| 14392 // BSD-style license that can be found in the LICENSE file. | 13810 // BSD-style license that can be found in the LICENSE file. |
| 14393 | 13811 |
| 14394 | 13812 |
| 14395 /// @domName PannerNode; @docsEditable true | |
| 14396 class PannerNode extends AudioNode native "*PannerNode" { | |
| 14397 | |
| 14398 static const int EQUALPOWER = 0; | |
| 14399 | |
| 14400 static const int EXPONENTIAL_DISTANCE = 2; | |
| 14401 | |
| 14402 static const int HRTF = 1; | |
| 14403 | |
| 14404 static const int INVERSE_DISTANCE = 1; | |
| 14405 | |
| 14406 static const int LINEAR_DISTANCE = 0; | |
| 14407 | |
| 14408 static const int SOUNDFIELD = 2; | |
| 14409 | |
| 14410 /// @domName PannerNode.coneGain; @docsEditable true | |
| 14411 final AudioGain coneGain; | |
| 14412 | |
| 14413 /// @domName PannerNode.coneInnerAngle; @docsEditable true | |
| 14414 num coneInnerAngle; | |
| 14415 | |
| 14416 /// @domName PannerNode.coneOuterAngle; @docsEditable true | |
| 14417 num coneOuterAngle; | |
| 14418 | |
| 14419 /// @domName PannerNode.coneOuterGain; @docsEditable true | |
| 14420 num coneOuterGain; | |
| 14421 | |
| 14422 /// @domName PannerNode.distanceGain; @docsEditable true | |
| 14423 final AudioGain distanceGain; | |
| 14424 | |
| 14425 /// @domName PannerNode.distanceModel; @docsEditable true | |
| 14426 int distanceModel; | |
| 14427 | |
| 14428 /// @domName PannerNode.maxDistance; @docsEditable true | |
| 14429 num maxDistance; | |
| 14430 | |
| 14431 /// @domName PannerNode.panningModel; @docsEditable true | |
| 14432 int panningModel; | |
| 14433 | |
| 14434 /// @domName PannerNode.refDistance; @docsEditable true | |
| 14435 num refDistance; | |
| 14436 | |
| 14437 /// @domName PannerNode.rolloffFactor; @docsEditable true | |
| 14438 num rolloffFactor; | |
| 14439 | |
| 14440 /// @domName PannerNode.setOrientation; @docsEditable true | |
| 14441 void setOrientation(num x, num y, num z) native; | |
| 14442 | |
| 14443 /// @domName PannerNode.setPosition; @docsEditable true | |
| 14444 void setPosition(num x, num y, num z) native; | |
| 14445 | |
| 14446 /// @domName PannerNode.setVelocity; @docsEditable true | |
| 14447 void setVelocity(num x, num y, num z) native; | |
| 14448 } | |
| 14449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 14450 // for details. All rights reserved. Use of this source code is governed by a | |
| 14451 // BSD-style license that can be found in the LICENSE file. | |
| 14452 | |
| 14453 | |
| 14454 /// @domName HTMLParagraphElement; @docsEditable true | 13813 /// @domName HTMLParagraphElement; @docsEditable true |
| 14455 class ParagraphElement extends Element implements Element native "*HTMLParagraph
Element" { | 13814 class ParagraphElement extends Element implements Element native "*HTMLParagraph
Element" { |
| 14456 | 13815 |
| 14457 factory ParagraphElement() => document.$dom_createElement("p"); | 13816 factory ParagraphElement() => document.$dom_createElement("p"); |
| 14458 | 13817 |
| 14459 /// @domName HTMLParagraphElement.align; @docsEditable true | 13818 /// @domName HTMLParagraphElement.align; @docsEditable true |
| 14460 String align; | 13819 String align; |
| 14461 } | 13820 } |
| 14462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13821 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14463 // for details. All rights reserved. Use of this source code is governed by a | 13822 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15723 String src; | 15082 String src; |
| 15724 | 15083 |
| 15725 /// @domName HTMLScriptElement.type; @docsEditable true | 15084 /// @domName HTMLScriptElement.type; @docsEditable true |
| 15726 String type; | 15085 String type; |
| 15727 } | 15086 } |
| 15728 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15087 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15729 // for details. All rights reserved. Use of this source code is governed by a | 15088 // for details. All rights reserved. Use of this source code is governed by a |
| 15730 // BSD-style license that can be found in the LICENSE file. | 15089 // BSD-style license that can be found in the LICENSE file. |
| 15731 | 15090 |
| 15732 | 15091 |
| 15733 /// @domName ScriptProcessorNode; @docsEditable true | |
| 15734 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri
ptProcessorNode" { | |
| 15735 | |
| 15736 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | |
| 15737 ScriptProcessorNodeEvents get on => | |
| 15738 new ScriptProcessorNodeEvents(this); | |
| 15739 | |
| 15740 /// @domName ScriptProcessorNode.bufferSize; @docsEditable true | |
| 15741 final int bufferSize; | |
| 15742 } | |
| 15743 | |
| 15744 class ScriptProcessorNodeEvents extends Events { | |
| 15745 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr); | |
| 15746 | |
| 15747 EventListenerList get audioProcess => this['audioprocess']; | |
| 15748 } | |
| 15749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 15750 // for details. All rights reserved. Use of this source code is governed by a | |
| 15751 // BSD-style license that can be found in the LICENSE file. | |
| 15752 | |
| 15753 | |
| 15754 /// @domName ScriptProfile; @docsEditable true | 15092 /// @domName ScriptProfile; @docsEditable true |
| 15755 class ScriptProfile native "*ScriptProfile" { | 15093 class ScriptProfile native "*ScriptProfile" { |
| 15756 | 15094 |
| 15757 /// @domName ScriptProfile.head; @docsEditable true | 15095 /// @domName ScriptProfile.head; @docsEditable true |
| 15758 final ScriptProfileNode head; | 15096 final ScriptProfileNode head; |
| 15759 | 15097 |
| 15760 /// @domName ScriptProfile.title; @docsEditable true | 15098 /// @domName ScriptProfile.title; @docsEditable true |
| 15761 final String title; | 15099 final String title; |
| 15762 | 15100 |
| 15763 /// @domName ScriptProfile.uid; @docsEditable true | 15101 /// @domName ScriptProfile.uid; @docsEditable true |
| (...skipping 2494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18258 | 17596 |
| 18259 // WARNING: Do not edit - generated code. | 17597 // WARNING: Do not edit - generated code. |
| 18260 | 17598 |
| 18261 | 17599 |
| 18262 typedef void VoidCallback(); | 17600 typedef void VoidCallback(); |
| 18263 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18264 // for details. All rights reserved. Use of this source code is governed by a | 17602 // for details. All rights reserved. Use of this source code is governed by a |
| 18265 // BSD-style license that can be found in the LICENSE file. | 17603 // BSD-style license that can be found in the LICENSE file. |
| 18266 | 17604 |
| 18267 | 17605 |
| 18268 /// @domName WaveShaperNode; @docsEditable true | |
| 18269 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { | |
| 18270 | |
| 18271 /// @domName WaveShaperNode.curve; @docsEditable true | |
| 18272 Float32Array curve; | |
| 18273 } | |
| 18274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 18275 // for details. All rights reserved. Use of this source code is governed by a | |
| 18276 // BSD-style license that can be found in the LICENSE file. | |
| 18277 | |
| 18278 | |
| 18279 /// @domName WaveTable; @docsEditable true | 17606 /// @domName WaveTable; @docsEditable true |
| 18280 class WaveTable native "*WaveTable" { | 17607 class WaveTable native "*WaveTable" { |
| 18281 } | 17608 } |
| 18282 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17609 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18283 // for details. All rights reserved. Use of this source code is governed by a | 17610 // for details. All rights reserved. Use of this source code is governed by a |
| 18284 // BSD-style license that can be found in the LICENSE file. | 17611 // BSD-style license that can be found in the LICENSE file. |
| 18285 | 17612 |
| 18286 | 17613 |
| 18287 /// @domName WebGLActiveInfo; @docsEditable true | 17614 /// @domName WebGLActiveInfo; @docsEditable true |
| 18288 class WebGLActiveInfo native "*WebGLActiveInfo" { | 17615 class WebGLActiveInfo native "*WebGLActiveInfo" { |
| (...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20153 | 19480 |
| 20154 class _ArrayBufferFactoryProvider { | 19481 class _ArrayBufferFactoryProvider { |
| 20155 static ArrayBuffer createArrayBuffer(int length) => | 19482 static ArrayBuffer createArrayBuffer(int length) => |
| 20156 JS('ArrayBuffer', 'new ArrayBuffer(#)', length); | 19483 JS('ArrayBuffer', 'new ArrayBuffer(#)', length); |
| 20157 } | 19484 } |
| 20158 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20159 // for details. All rights reserved. Use of this source code is governed by a | 19486 // for details. All rights reserved. Use of this source code is governed by a |
| 20160 // BSD-style license that can be found in the LICENSE file. | 19487 // BSD-style license that can be found in the LICENSE file. |
| 20161 | 19488 |
| 20162 | 19489 |
| 20163 class _AudioElementFactoryProvider { | |
| 20164 static AudioElement createAudioElement([String src = null]) { | |
| 20165 if (src == null) return JS('AudioElement', 'new Audio()'); | |
| 20166 return JS('AudioElement', 'new Audio(#)', src); | |
| 20167 } | |
| 20168 } | |
| 20169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 20170 // for details. All rights reserved. Use of this source code is governed by a | |
| 20171 // BSD-style license that can be found in the LICENSE file. | |
| 20172 | |
| 20173 | |
| 20174 class _BlobFactoryProvider { | 19490 class _BlobFactoryProvider { |
| 20175 static Blob createBlob([List blobParts = null, String type, String endings]) { | 19491 static Blob createBlob([List blobParts = null, String type, String endings]) { |
| 20176 // TODO: validate that blobParts is a JS Array and convert if not. | 19492 // TODO: validate that blobParts is a JS Array and convert if not. |
| 20177 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed | 19493 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed |
| 20178 // array to ArrayBuffer if it is a total view. | 19494 // array to ArrayBuffer if it is a total view. |
| 20179 if (type == null && endings == null) { | 19495 if (type == null && endings == null) { |
| 20180 return _create_1(blobParts); | 19496 return _create_1(blobParts); |
| 20181 } | 19497 } |
| 20182 var bag = _create_bag(); | 19498 var bag = _create_bag(); |
| 20183 if (type != null) _bag_set(bag, 'type', type); | 19499 if (type != null) _bag_set(bag, 'type', type); |
| (...skipping 4492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24676 // TODO(vsm): Cache or implement equality. | 23992 // TODO(vsm): Cache or implement equality. |
| 24677 return new _HistoryCrossFrame(h); | 23993 return new _HistoryCrossFrame(h); |
| 24678 } | 23994 } |
| 24679 } | 23995 } |
| 24680 } | 23996 } |
| 24681 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23997 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24682 // for details. All rights reserved. Use of this source code is governed by a | 23998 // for details. All rights reserved. Use of this source code is governed by a |
| 24683 // BSD-style license that can be found in the LICENSE file. | 23999 // BSD-style license that can be found in the LICENSE file. |
| 24684 | 24000 |
| 24685 | 24001 |
| 24686 class _AudioContextFactoryProvider { | |
| 24687 | |
| 24688 static AudioContext createAudioContext() { | |
| 24689 return JS('AudioContext', | |
| 24690 'new (window.AudioContext || window.webkitAudioContext)()'); | |
| 24691 } | |
| 24692 } | |
| 24693 | |
| 24694 class _PointFactoryProvider { | 24002 class _PointFactoryProvider { |
| 24695 static Point createPoint(num x, num y) => | 24003 static Point createPoint(num x, num y) => |
| 24696 JS('Point', 'new WebKitPoint(#, #)', x, y); | 24004 JS('Point', 'new WebKitPoint(#, #)', x, y); |
| 24697 } | 24005 } |
| 24698 | 24006 |
| 24699 class _WebSocketFactoryProvider { | 24007 class _WebSocketFactoryProvider { |
| 24700 static WebSocket createWebSocket(String url) => | 24008 static WebSocket createWebSocket(String url) => |
| 24701 JS('WebSocket', 'new WebSocket(#)', url); | 24009 JS('WebSocket', 'new WebSocket(#)', url); |
| 24702 } | 24010 } |
| 24703 | 24011 |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25114 if (length < 0) throw new ArgumentError('length'); | 24422 if (length < 0) throw new ArgumentError('length'); |
| 25115 if (start < 0) throw new RangeError.value(start); | 24423 if (start < 0) throw new RangeError.value(start); |
| 25116 int end = start + length; | 24424 int end = start + length; |
| 25117 if (end > a.length) throw new RangeError.value(end); | 24425 if (end > a.length) throw new RangeError.value(end); |
| 25118 for (int i = start; i < end; i++) { | 24426 for (int i = start; i < end; i++) { |
| 25119 accumulator.add(a[i]); | 24427 accumulator.add(a[i]); |
| 25120 } | 24428 } |
| 25121 return accumulator; | 24429 return accumulator; |
| 25122 } | 24430 } |
| 25123 } | 24431 } |
| OLD | NEW |