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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 11280103: Splitting out the Audio library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed dart:audio to dart:web_audio Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 audio;
Anton Muhin 2012/11/22 03:22:51 nit: as web_audio to follow a simple scheme?
blois 2012/11/27 00:07:45 Since it's not used anywhere I had preferred 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
14 15
15 16
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class AbstractWorkerEvents extends Events { 71 class AbstractWorkerEvents extends Events {
71 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr); 72 AbstractWorkerEvents(EventTarget _ptr) : super(_ptr);
72 73
73 EventListenerList get error => this['error']; 74 EventListenerList get error => this['error'];
74 } 75 }
75 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 76 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
76 // for details. All rights reserved. Use of this source code is governed by a 77 // for details. All rights reserved. Use of this source code is governed by a
77 // BSD-style license that can be found in the LICENSE file. 78 // BSD-style license that can be found in the LICENSE file.
78 79
79 80
80 /// @domName AnalyserNode; @docsEditable true
81 class AnalyserNode extends AudioNode native "*AnalyserNode" {
82
83 /** @domName AnalyserNode.fftSize; @docsEditable true */
84 int fftSize;
85
86 /** @domName AnalyserNode.frequencyBinCount; @docsEditable true */
87 final int frequencyBinCount;
88
89 /** @domName AnalyserNode.maxDecibels; @docsEditable true */
90 num maxDecibels;
91
92 /** @domName AnalyserNode.minDecibels; @docsEditable true */
93 num minDecibels;
94
95 /** @domName AnalyserNode.smoothingTimeConstant; @docsEditable true */
96 num smoothingTimeConstant;
97
98 /** @domName AnalyserNode.getByteFrequencyData; @docsEditable true */
99 void getByteFrequencyData(Uint8Array array) native;
100
101 /** @domName AnalyserNode.getByteTimeDomainData; @docsEditable true */
102 void getByteTimeDomainData(Uint8Array array) native;
103
104 /** @domName AnalyserNode.getFloatFrequencyData; @docsEditable true */
105 void getFloatFrequencyData(Float32Array array) native;
106 }
107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
108 // for details. All rights reserved. Use of this source code is governed by a
109 // BSD-style license that can be found in the LICENSE file.
110
111
112 /// @domName HTMLAnchorElement; @docsEditable true 81 /// @domName HTMLAnchorElement; @docsEditable true
113 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" { 82 class AnchorElement extends Element implements Element native "*HTMLAnchorElemen t" {
114 83
115 factory AnchorElement({String href}) { 84 factory AnchorElement({String href}) {
116 var e = document.$dom_createElement("a"); 85 var e = document.$dom_createElement("a");
117 if (href != null) e.href = href; 86 if (href != null) e.href = href;
118 return e; 87 return e;
119 } 88 }
120 89
121 /** @domName HTMLAnchorElement.charset; @docsEditable true */ 90 /** @domName HTMLAnchorElement.charset; @docsEditable true */
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 final bool specified; 364 final bool specified;
396 365
397 /** @domName Attr.value; @docsEditable true */ 366 /** @domName Attr.value; @docsEditable true */
398 String value; 367 String value;
399 } 368 }
400 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 369 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
401 // for details. All rights reserved. Use of this source code is governed by a 370 // for details. All rights reserved. Use of this source code is governed by a
402 // BSD-style license that can be found in the LICENSE file. 371 // BSD-style license that can be found in the LICENSE file.
403 372
404 373
405 /// @domName AudioBuffer; @docsEditable true
406 class AudioBuffer native "*AudioBuffer" {
407
408 /** @domName AudioBuffer.duration; @docsEditable true */
409 final num duration;
410
411 /** @domName AudioBuffer.gain; @docsEditable true */
412 num gain;
413
414 /** @domName AudioBuffer.length; @docsEditable true */
415 final int length;
416
417 /** @domName AudioBuffer.numberOfChannels; @docsEditable true */
418 final int numberOfChannels;
419
420 /** @domName AudioBuffer.sampleRate; @docsEditable true */
421 final num sampleRate;
422
423 /** @domName AudioBuffer.getChannelData; @docsEditable true */
424 Float32Array getChannelData(int channelIndex) native;
425 }
426 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
427 // for details. All rights reserved. Use of this source code is governed by a
428 // BSD-style license that can be found in the LICENSE file.
429
430 // WARNING: Do not edit - generated code.
431
432
433 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
435 // for details. All rights reserved. Use of this source code is governed by a
436 // BSD-style license that can be found in the LICENSE file.
437
438
439 class AudioBufferSourceNode extends AudioSourceNode native "*AudioBufferSourceNo de" {
440
441 // TODO(efortuna): Remove these methods when Chrome stable also uses start
442 // instead of noteOn.
443 void start(num when, [num grainOffset, num grainDuration]) {
444 if (JS('bool', '!!#.start', this)) {
445 if (?grainDuration) {
446 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration);
447 } else if (?grainOffset) {
448 JS('void', '#.start(#, #)', this, when, grainOffset);
449 } else {
450 JS('void', '#.start(#)', this, when);
451 }
452 } else {
453 if (?grainDuration) {
454 JS('void', '#.noteOn(#, #, #)', this, when, grainOffset, grainDuration);
455 } else if (?grainOffset) {
456 JS('void', '#.noteOn(#, #)', this, when, grainOffset);
457 } else {
458 JS('void', '#.noteOn(#)', this, when);
459 }
460 }
461 }
462
463 void stop(num when) {
464 if (JS('bool', '!!#.stop', this)) {
465 JS('void', '#.stop(#)', this, when);
466 } else {
467 JS('void', '#.noteOff(#)', this, when);
468 }
469 }
470
471 static const int FINISHED_STATE = 3;
472
473 static const int PLAYING_STATE = 2;
474
475 static const int SCHEDULED_STATE = 1;
476
477 static const int UNSCHEDULED_STATE = 0;
478
479 /** @domName AudioBufferSourceNode.buffer; @docsEditable true */
480 AudioBuffer buffer;
481
482 /** @domName AudioBufferSourceNode.gain; @docsEditable true */
483 final AudioGain gain;
484
485 /** @domName AudioBufferSourceNode.loop; @docsEditable true */
486 bool loop;
487
488 /** @domName AudioBufferSourceNode.loopEnd; @docsEditable true */
489 num loopEnd;
490
491 /** @domName AudioBufferSourceNode.loopStart; @docsEditable true */
492 num loopStart;
493
494 /** @domName AudioBufferSourceNode.playbackRate; @docsEditable true */
495 final AudioParam playbackRate;
496
497 /** @domName AudioBufferSourceNode.playbackState; @docsEditable true */
498 final int playbackState;
499
500 }
501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
502 // for details. All rights reserved. Use of this source code is governed by a
503 // BSD-style license that can be found in the LICENSE file.
504
505
506 class AudioContext extends EventTarget native "*AudioContext" {
507 factory AudioContext() => _AudioContextFactoryProvider.createAudioContext();
508
509 /**
510 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
511 */
512 AudioContextEvents get on =>
513 new AudioContextEvents(this);
514
515 /** @domName AudioContext.activeSourceCount; @docsEditable true */
516 final int activeSourceCount;
517
518 /** @domName AudioContext.currentTime; @docsEditable true */
519 final num currentTime;
520
521 /** @domName AudioContext.destination; @docsEditable true */
522 final AudioDestinationNode destination;
523
524 /** @domName AudioContext.listener; @docsEditable true */
525 final AudioListener listener;
526
527 /** @domName AudioContext.sampleRate; @docsEditable true */
528 final num sampleRate;
529
530 /** @domName AudioContext.createAnalyser; @docsEditable true */
531 AnalyserNode createAnalyser() native;
532
533 /** @domName AudioContext.createBiquadFilter; @docsEditable true */
534 BiquadFilterNode createBiquadFilter() native;
535
536 /** @domName AudioContext.createBuffer; @docsEditable true */
537 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) native;
538
539 /** @domName AudioContext.createBufferSource; @docsEditable true */
540 AudioBufferSourceNode createBufferSource() native;
541
542 /** @domName AudioContext.createChannelMerger; @docsEditable true */
543 ChannelMergerNode createChannelMerger([int numberOfInputs]) native;
544
545 /** @domName AudioContext.createChannelSplitter; @docsEditable true */
546 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native;
547
548 /** @domName AudioContext.createConvolver; @docsEditable true */
549 ConvolverNode createConvolver() native;
550
551 /** @domName AudioContext.createDelay; @docsEditable true */
552 DelayNode createDelay([num maxDelayTime]) native;
553
554 /** @domName AudioContext.createDynamicsCompressor; @docsEditable true */
555 DynamicsCompressorNode createDynamicsCompressor() native;
556
557 /** @domName AudioContext.createMediaElementSource; @docsEditable true */
558 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) native;
559
560 /** @domName AudioContext.createMediaStreamSource; @docsEditable true */
561 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na tive;
562
563 /** @domName AudioContext.createOscillator; @docsEditable true */
564 OscillatorNode createOscillator() native;
565
566 /** @domName AudioContext.createPanner; @docsEditable true */
567 PannerNode createPanner() native;
568
569 /** @domName AudioContext.createWaveShaper; @docsEditable true */
570 WaveShaperNode createWaveShaper() native;
571
572 /** @domName AudioContext.createWaveTable; @docsEditable true */
573 WaveTable createWaveTable(Float32Array real, Float32Array imag) native;
574
575 /** @domName AudioContext.decodeAudioData; @docsEditable true */
576 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) native;
577
578 /** @domName AudioContext.startRendering; @docsEditable true */
579 void startRendering() native;
580
581 GainNode createGain() {
582 if (JS('bool', '#.createGain !== undefined', this)) {
583 return JS('GainNode', '#.createGain()', this);
584 } else {
585 return JS('GainNode', '#.createGainNode()', this);
586 }
587 }
588
589 ScriptProcessorNode createScriptProcessor(int bufferSize,
590 [int numberOfInputChannels, int numberOfOutputChannels]) {
591 var function = JS('dynamic', '#.createScriptProcessor || '
592 '#.createJavaScriptNode', this, this);
593 if (?numberOfOutputChannels) {
594 return JS('ScriptProcessorNode', '#.call(#, #, #, #)', function, this,
595 bufferSize, numberOfInputChannels, numberOfOutputChannels);
596 } else if (?numberOfInputChannels) {
597 return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this,
598 bufferSize, numberOfInputChannels);
599 } else {
600 return JS('ScriptProcessorNode', '#.call(#, #)', function, this,
601 bufferSize);
602 }
603 }
604 }
605
606 class AudioContextEvents extends Events {
607 AudioContextEvents(EventTarget _ptr) : super(_ptr);
608
609 EventListenerList get complete => this['complete'];
610 }
611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
612 // for details. All rights reserved. Use of this source code is governed by a
613 // BSD-style license that can be found in the LICENSE file.
614
615
616 /// @domName AudioDestinationNode; @docsEditable true
617 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" {
618
619 /** @domName AudioDestinationNode.numberOfChannels; @docsEditable true */
620 final int numberOfChannels;
621 }
622 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
623 // for details. All rights reserved. Use of this source code is governed by a
624 // BSD-style license that can be found in the LICENSE file.
625
626
627 /// @domName HTMLAudioElement; @docsEditable true
628 class AudioElement extends MediaElement native "*HTMLAudioElement" {
629
630 factory AudioElement([String src]) {
631 if (!?src) {
632 return _AudioElementFactoryProvider.createAudioElement();
633 }
634 return _AudioElementFactoryProvider.createAudioElement(src);
635 }
636 }
637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
638 // for details. All rights reserved. Use of this source code is governed by a
639 // BSD-style license that can be found in the LICENSE file.
640
641
642 /// @domName AudioGain; @docsEditable true
643 class AudioGain extends AudioParam native "*AudioGain" {
644 }
645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
646 // for details. All rights reserved. Use of this source code is governed by a
647 // BSD-style license that can be found in the LICENSE file.
648
649
650 /// @domName AudioListener; @docsEditable true
651 class AudioListener native "*AudioListener" {
652
653 /** @domName AudioListener.dopplerFactor; @docsEditable true */
654 num dopplerFactor;
655
656 /** @domName AudioListener.speedOfSound; @docsEditable true */
657 num speedOfSound;
658
659 /** @domName AudioListener.setOrientation; @docsEditable true */
660 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
661
662 /** @domName AudioListener.setPosition; @docsEditable true */
663 void setPosition(num x, num y, num z) native;
664
665 /** @domName AudioListener.setVelocity; @docsEditable true */
666 void setVelocity(num x, num y, num z) native;
667 }
668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
669 // for details. All rights reserved. Use of this source code is governed by a
670 // BSD-style license that can be found in the LICENSE file.
671
672
673 /// @domName AudioNode; @docsEditable true
674 class AudioNode native "*AudioNode" {
675
676 /** @domName AudioNode.context; @docsEditable true */
677 final AudioContext context;
678
679 /** @domName AudioNode.numberOfInputs; @docsEditable true */
680 final int numberOfInputs;
681
682 /** @domName AudioNode.numberOfOutputs; @docsEditable true */
683 final int numberOfOutputs;
684
685 /** @domName AudioNode.connect; @docsEditable true */
686 void connect(destination, int output, [int input]) native;
687
688 /** @domName AudioNode.disconnect; @docsEditable true */
689 void disconnect(int output) native;
690 }
691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
692 // for details. All rights reserved. Use of this source code is governed by a
693 // BSD-style license that can be found in the LICENSE file.
694
695
696 /// @domName AudioParam; @docsEditable true
697 class AudioParam native "*AudioParam" {
698
699 /** @domName AudioParam.defaultValue; @docsEditable true */
700 final num defaultValue;
701
702 /** @domName AudioParam.maxValue; @docsEditable true */
703 final num maxValue;
704
705 /** @domName AudioParam.minValue; @docsEditable true */
706 final num minValue;
707
708 /** @domName AudioParam.name; @docsEditable true */
709 final String name;
710
711 /** @domName AudioParam.units; @docsEditable true */
712 final int units;
713
714 /** @domName AudioParam.value; @docsEditable true */
715 num value;
716
717 /** @domName AudioParam.cancelScheduledValues; @docsEditable true */
718 void cancelScheduledValues(num startTime) native;
719
720 /** @domName AudioParam.exponentialRampToValueAtTime; @docsEditable true */
721 void exponentialRampToValueAtTime(num value, num time) native;
722
723 /** @domName AudioParam.linearRampToValueAtTime; @docsEditable true */
724 void linearRampToValueAtTime(num value, num time) native;
725
726 /** @domName AudioParam.setTargetAtTime; @docsEditable true */
727 void setTargetAtTime(num target, num time, num timeConstant) native;
728
729 /** @domName AudioParam.setValueAtTime; @docsEditable true */
730 void setValueAtTime(num value, num time) native;
731
732 /** @domName AudioParam.setValueCurveAtTime; @docsEditable true */
733 void setValueCurveAtTime(Float32Array values, num time, num duration) native;
734 }
735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
736 // for details. All rights reserved. Use of this source code is governed by a
737 // BSD-style license that can be found in the LICENSE file.
738
739
740 /// @domName AudioProcessingEvent; @docsEditable true
741 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" {
742
743 /** @domName AudioProcessingEvent.inputBuffer; @docsEditable true */
744 final AudioBuffer inputBuffer;
745
746 /** @domName AudioProcessingEvent.outputBuffer; @docsEditable true */
747 final AudioBuffer outputBuffer;
748 }
749 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
750 // for details. All rights reserved. Use of this source code is governed by a
751 // BSD-style license that can be found in the LICENSE file.
752
753
754 /// @domName AudioSourceNode; @docsEditable true
755 class AudioSourceNode extends AudioNode native "*AudioSourceNode" {
756 }
757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
758 // for details. All rights reserved. Use of this source code is governed by a
759 // BSD-style license that can be found in the LICENSE file.
760
761
762 /// @domName HTMLBRElement; @docsEditable true 374 /// @domName HTMLBRElement; @docsEditable true
763 class BRElement extends Element implements Element native "*HTMLBRElement" { 375 class BRElement extends Element implements Element native "*HTMLBRElement" {
764 376
765 factory BRElement() => document.$dom_createElement("br"); 377 factory BRElement() => document.$dom_createElement("br");
766 378
767 /** @domName HTMLBRElement.clear; @docsEditable true */ 379 /** @domName HTMLBRElement.clear; @docsEditable true */
768 String clear; 380 String clear;
769 } 381 }
770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
771 // for details. All rights reserved. Use of this source code is governed by a 383 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" { 479 class BeforeLoadEvent extends Event native "*BeforeLoadEvent" {
868 480
869 /** @domName BeforeLoadEvent.url; @docsEditable true */ 481 /** @domName BeforeLoadEvent.url; @docsEditable true */
870 final String url; 482 final String url;
871 } 483 }
872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 484 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
873 // for details. All rights reserved. Use of this source code is governed by a 485 // for details. All rights reserved. Use of this source code is governed by a
874 // BSD-style license that can be found in the LICENSE file. 486 // BSD-style license that can be found in the LICENSE file.
875 487
876 488
877 /// @domName BiquadFilterNode; @docsEditable true
878 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" {
879
880 static const int ALLPASS = 7;
881
882 static const int BANDPASS = 2;
883
884 static const int HIGHPASS = 1;
885
886 static const int HIGHSHELF = 4;
887
888 static const int LOWPASS = 0;
889
890 static const int LOWSHELF = 3;
891
892 static const int NOTCH = 6;
893
894 static const int PEAKING = 5;
895
896 /** @domName BiquadFilterNode.Q; @docsEditable true */
897 final AudioParam Q;
898
899 /** @domName BiquadFilterNode.frequency; @docsEditable true */
900 final AudioParam frequency;
901
902 /** @domName BiquadFilterNode.gain; @docsEditable true */
903 final AudioParam gain;
904
905 /** @domName BiquadFilterNode.type; @docsEditable true */
906 int type;
907
908 /** @domName BiquadFilterNode.getFrequencyResponse; @docsEditable true */
909 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native;
910 }
911 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
912 // for details. All rights reserved. Use of this source code is governed by a
913 // BSD-style license that can be found in the LICENSE file.
914
915
916 /// @domName Blob; @docsEditable true 489 /// @domName Blob; @docsEditable true
917 class Blob native "*Blob" { 490 class Blob native "*Blob" {
918 491
919 factory Blob(List blobParts, [String type, String endings]) { 492 factory Blob(List blobParts, [String type, String endings]) {
920 if (!?type) { 493 if (!?type) {
921 return _BlobFactoryProvider.createBlob(blobParts); 494 return _BlobFactoryProvider.createBlob(blobParts);
922 } 495 }
923 if (!?endings) { 496 if (!?endings) {
924 return _BlobFactoryProvider.createBlob(blobParts, type); 497 return _BlobFactoryProvider.createBlob(blobParts, type);
925 } 498 }
(...skipping 4186 matching lines...) Expand 10 before | Expand all | Expand 10 after
5112 */ 4685 */
5113 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { 4686 void setStrokeColorHsl(int h, num s, num l, [num a = 1]) {
5114 this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; 4687 this.strokeStyle = 'hsla($h, $s%, $l%, $a)';
5115 } 4688 }
5116 } 4689 }
5117 // 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
5118 // 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
5119 // BSD-style license that can be found in the LICENSE file. 4692 // BSD-style license that can be found in the LICENSE file.
5120 4693
5121 4694
5122 /// @domName ChannelMergerNode; @docsEditable true
5123 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" {
5124 }
5125 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5126 // for details. All rights reserved. Use of this source code is governed by a
5127 // BSD-style license that can be found in the LICENSE file.
5128
5129
5130 /// @domName ChannelSplitterNode; @docsEditable true
5131 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" {
5132 }
5133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5134 // for details. All rights reserved. Use of this source code is governed by a
5135 // BSD-style license that can be found in the LICENSE file.
5136
5137
5138 /// @domName CharacterData; @docsEditable true 4695 /// @domName CharacterData; @docsEditable true
5139 class CharacterData extends Node native "*CharacterData" { 4696 class CharacterData extends Node native "*CharacterData" {
5140 4697
5141 /** @domName CharacterData.data; @docsEditable true */ 4698 /** @domName CharacterData.data; @docsEditable true */
5142 String data; 4699 String data;
5143 4700
5144 /** @domName CharacterData.length; @docsEditable true */ 4701 /** @domName CharacterData.length; @docsEditable true */
5145 final int length; 4702 final int length;
5146 4703
5147 /** @domName CharacterData.appendData; @docsEditable true */ 4704 /** @domName CharacterData.appendData; @docsEditable true */
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
5352 String select; 4909 String select;
5353 4910
5354 /** @domName HTMLContentElement.getDistributedNodes; @docsEditable true */ 4911 /** @domName HTMLContentElement.getDistributedNodes; @docsEditable true */
5355 List<Node> getDistributedNodes() native; 4912 List<Node> getDistributedNodes() native;
5356 } 4913 }
5357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5358 // for details. All rights reserved. Use of this source code is governed by a 4915 // for details. All rights reserved. Use of this source code is governed by a
5359 // BSD-style license that can be found in the LICENSE file. 4916 // BSD-style license that can be found in the LICENSE file.
5360 4917
5361 4918
5362 /// @domName ConvolverNode; @docsEditable true
5363 class ConvolverNode extends AudioNode native "*ConvolverNode" {
5364
5365 /** @domName ConvolverNode.buffer; @docsEditable true */
5366 AudioBuffer buffer;
5367
5368 /** @domName ConvolverNode.normalize; @docsEditable true */
5369 bool normalize;
5370 }
5371 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5372 // for details. All rights reserved. Use of this source code is governed by a
5373 // BSD-style license that can be found in the LICENSE file.
5374
5375
5376 /// @domName Coordinates; @docsEditable true 4919 /// @domName Coordinates; @docsEditable true
5377 class Coordinates native "*Coordinates" { 4920 class Coordinates native "*Coordinates" {
5378 4921
5379 /** @domName Coordinates.accuracy; @docsEditable true */ 4922 /** @domName Coordinates.accuracy; @docsEditable true */
5380 final num accuracy; 4923 final num accuracy;
5381 4924
5382 /** @domName Coordinates.altitude; @docsEditable true */ 4925 /** @domName Coordinates.altitude; @docsEditable true */
5383 final num altitude; 4926 final num altitude;
5384 4927
5385 /** @domName Coordinates.altitudeAccuracy; @docsEditable true */ 4928 /** @domName Coordinates.altitudeAccuracy; @docsEditable true */
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
6255 class DedicatedWorkerContextEvents extends WorkerContextEvents { 5798 class DedicatedWorkerContextEvents extends WorkerContextEvents {
6256 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); 5799 DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr);
6257 5800
6258 EventListenerList get message => this['message']; 5801 EventListenerList get message => this['message'];
6259 } 5802 }
6260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6261 // for details. All rights reserved. Use of this source code is governed by a 5804 // for details. All rights reserved. Use of this source code is governed by a
6262 // BSD-style license that can be found in the LICENSE file. 5805 // BSD-style license that can be found in the LICENSE file.
6263 5806
6264 5807
6265 /// @domName DelayNode; @docsEditable true
6266 class DelayNode extends AudioNode native "*DelayNode" {
6267
6268 /** @domName DelayNode.delayTime; @docsEditable true */
6269 final AudioParam delayTime;
6270 }
6271 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6272 // for details. All rights reserved. Use of this source code is governed by a
6273 // BSD-style license that can be found in the LICENSE file.
6274
6275
6276 /// @domName HTMLDetailsElement; @docsEditable true 5808 /// @domName HTMLDetailsElement; @docsEditable true
6277 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" { 5809 class DetailsElement extends Element implements Element native "*HTMLDetailsElem ent" {
6278 5810
6279 factory DetailsElement() => document.$dom_createElement("details"); 5811 factory DetailsElement() => document.$dom_createElement("details");
6280 5812
6281 /** @domName HTMLDetailsElement.open; @docsEditable true */ 5813 /** @domName HTMLDetailsElement.open; @docsEditable true */
6282 bool open; 5814 bool open;
6283 } 5815 }
6284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6285 // for details. All rights reserved. Use of this source code is governed by a 5817 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
7062 final String systemId; 6594 final String systemId;
7063 6595
7064 /** @domName DocumentType.remove; @docsEditable true */ 6596 /** @domName DocumentType.remove; @docsEditable true */
7065 void remove() native; 6597 void remove() native;
7066 } 6598 }
7067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7068 // for details. All rights reserved. Use of this source code is governed by a 6600 // for details. All rights reserved. Use of this source code is governed by a
7069 // BSD-style license that can be found in the LICENSE file. 6601 // BSD-style license that can be found in the LICENSE file.
7070 6602
7071 6603
7072 /// @domName DynamicsCompressorNode; @docsEditable true
7073 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" {
7074
7075 /** @domName DynamicsCompressorNode.attack; @docsEditable true */
7076 final AudioParam attack;
7077
7078 /** @domName DynamicsCompressorNode.knee; @docsEditable true */
7079 final AudioParam knee;
7080
7081 /** @domName DynamicsCompressorNode.ratio; @docsEditable true */
7082 final AudioParam ratio;
7083
7084 /** @domName DynamicsCompressorNode.reduction; @docsEditable true */
7085 final AudioParam reduction;
7086
7087 /** @domName DynamicsCompressorNode.release; @docsEditable true */
7088 final AudioParam release;
7089
7090 /** @domName DynamicsCompressorNode.threshold; @docsEditable true */
7091 final AudioParam threshold;
7092 }
7093 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7094 // for details. All rights reserved. Use of this source code is governed by a
7095 // BSD-style license that can be found in the LICENSE file.
7096
7097
7098 /// @domName EXTTextureFilterAnisotropic; @docsEditable true 6604 /// @domName EXTTextureFilterAnisotropic; @docsEditable true
7099 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { 6605 class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" {
7100 6606
7101 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 6607 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
7102 6608
7103 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 6609 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
7104 } 6610 }
7105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7106 // for details. All rights reserved. Use of this source code is governed by a 6612 // for details. All rights reserved. Use of this source code is governed by a
7107 // BSD-style license that can be found in the LICENSE file. 6613 // BSD-style license that can be found in the LICENSE file.
(...skipping 2252 matching lines...) Expand 10 before | Expand all | Expand 10 after
9360 8866
9361 EventListenerList get storage => this['storage']; 8867 EventListenerList get storage => this['storage'];
9362 8868
9363 EventListenerList get unload => this['unload']; 8869 EventListenerList get unload => this['unload'];
9364 } 8870 }
9365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9366 // for details. All rights reserved. Use of this source code is governed by a 8872 // for details. All rights reserved. Use of this source code is governed by a
9367 // BSD-style license that can be found in the LICENSE file. 8873 // BSD-style license that can be found in the LICENSE file.
9368 8874
9369 8875
9370 /// @domName GainNode; @docsEditable true
9371 class GainNode extends AudioNode native "*GainNode" {
9372
9373 /** @domName GainNode.gain; @docsEditable true */
9374 final AudioGain gain;
9375 }
9376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
9377 // for details. All rights reserved. Use of this source code is governed by a
9378 // BSD-style license that can be found in the LICENSE file.
9379
9380
9381 /// @domName Gamepad; @docsEditable true 8876 /// @domName Gamepad; @docsEditable true
9382 class Gamepad native "*Gamepad" { 8877 class Gamepad native "*Gamepad" {
9383 8878
9384 /** @domName Gamepad.axes; @docsEditable true */ 8879 /** @domName Gamepad.axes; @docsEditable true */
9385 final List<num> axes; 8880 final List<num> axes;
9386 8881
9387 /** @domName Gamepad.buttons; @docsEditable true */ 8882 /** @domName Gamepad.buttons; @docsEditable true */
9388 final List<num> buttons; 8883 final List<num> buttons;
9389 8884
9390 /** @domName Gamepad.id; @docsEditable true */ 8885 /** @domName Gamepad.id; @docsEditable true */
(...skipping 3368 matching lines...) Expand 10 before | Expand all | Expand 10 after
12759 12254
12760 EventListenerList get keyMessage => this['webkitkeymessage']; 12255 EventListenerList get keyMessage => this['webkitkeymessage'];
12761 12256
12762 EventListenerList get needKey => this['webkitneedkey']; 12257 EventListenerList get needKey => this['webkitneedkey'];
12763 } 12258 }
12764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12259 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12765 // for details. All rights reserved. Use of this source code is governed by a 12260 // for details. All rights reserved. Use of this source code is governed by a
12766 // BSD-style license that can be found in the LICENSE file. 12261 // BSD-style license that can be found in the LICENSE file.
12767 12262
12768 12263
12769 /// @domName MediaElementAudioSourceNode; @docsEditable true
12770 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA udioSourceNode" {
12771
12772 /** @domName MediaElementAudioSourceNode.mediaElement; @docsEditable true */
12773 final MediaElement mediaElement;
12774 }
12775 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12776 // for details. All rights reserved. Use of this source code is governed by a
12777 // BSD-style license that can be found in the LICENSE file.
12778
12779
12780 /// @domName MediaError; @docsEditable true 12264 /// @domName MediaError; @docsEditable true
12781 class MediaError native "*MediaError" { 12265 class MediaError native "*MediaError" {
12782 12266
12783 static const int MEDIA_ERR_ABORTED = 1; 12267 static const int MEDIA_ERR_ABORTED = 1;
12784 12268
12785 static const int MEDIA_ERR_DECODE = 3; 12269 static const int MEDIA_ERR_DECODE = 3;
12786 12270
12787 static const int MEDIA_ERR_ENCRYPTED = 5; 12271 static const int MEDIA_ERR_ENCRYPTED = 5;
12788 12272
12789 static const int MEDIA_ERR_NETWORK = 2; 12273 static const int MEDIA_ERR_NETWORK = 2;
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
12984 class MediaStreamEvents extends Events { 12468 class MediaStreamEvents extends Events {
12985 MediaStreamEvents(EventTarget _ptr) : super(_ptr); 12469 MediaStreamEvents(EventTarget _ptr) : super(_ptr);
12986 12470
12987 EventListenerList get ended => this['ended']; 12471 EventListenerList get ended => this['ended'];
12988 } 12472 }
12989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12473 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
12990 // for details. All rights reserved. Use of this source code is governed by a 12474 // for details. All rights reserved. Use of this source code is governed by a
12991 // BSD-style license that can be found in the LICENSE file. 12475 // BSD-style license that can be found in the LICENSE file.
12992 12476
12993 12477
12994 /// @domName MediaStreamAudioSourceNode; @docsEditable true
12995 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud ioSourceNode" {
12996
12997 /** @domName MediaStreamAudioSourceNode.mediaStream; @docsEditable true */
12998 final MediaStream mediaStream;
12999 }
13000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13001 // for details. All rights reserved. Use of this source code is governed by a
13002 // BSD-style license that can be found in the LICENSE file.
13003
13004
13005 /// @domName MediaStreamEvent; @docsEditable true 12478 /// @domName MediaStreamEvent; @docsEditable true
13006 class MediaStreamEvent extends Event native "*MediaStreamEvent" { 12479 class MediaStreamEvent extends Event native "*MediaStreamEvent" {
13007 12480
13008 /** @domName MediaStreamEvent.stream; @docsEditable true */ 12481 /** @domName MediaStreamEvent.stream; @docsEditable true */
13009 final MediaStream stream; 12482 final MediaStream stream;
13010 } 12483 }
13011 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 12484 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13012 // for details. All rights reserved. Use of this source code is governed by a 12485 // for details. All rights reserved. Use of this source code is governed by a
13013 // BSD-style license that can be found in the LICENSE file. 12486 // BSD-style license that can be found in the LICENSE file.
13014 12487
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after
14401 bool checkValidity() native; 13874 bool checkValidity() native;
14402 13875
14403 /** @domName HTMLObjectElement.setCustomValidity; @docsEditable true */ 13876 /** @domName HTMLObjectElement.setCustomValidity; @docsEditable true */
14404 void setCustomValidity(String error) native; 13877 void setCustomValidity(String error) native;
14405 } 13878 }
14406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14407 // for details. All rights reserved. Use of this source code is governed by a 13880 // for details. All rights reserved. Use of this source code is governed by a
14408 // BSD-style license that can be found in the LICENSE file. 13881 // BSD-style license that can be found in the LICENSE file.
14409 13882
14410 13883
14411 /// @domName OfflineAudioCompletionEvent; @docsEditable true
14412 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE vent" {
14413
14414 /** @domName OfflineAudioCompletionEvent.renderedBuffer; @docsEditable true */
14415 final AudioBuffer renderedBuffer;
14416 }
14417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14418 // for details. All rights reserved. Use of this source code is governed by a
14419 // BSD-style license that can be found in the LICENSE file.
14420
14421
14422 /// @domName HTMLOptGroupElement; @docsEditable true 13884 /// @domName HTMLOptGroupElement; @docsEditable true
14423 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" { 13885 class OptGroupElement extends Element implements Element native "*HTMLOptGroupEl ement" {
14424 13886
14425 factory OptGroupElement() => document.$dom_createElement("optgroup"); 13887 factory OptGroupElement() => document.$dom_createElement("optgroup");
14426 13888
14427 /** @domName HTMLOptGroupElement.disabled; @docsEditable true */ 13889 /** @domName HTMLOptGroupElement.disabled; @docsEditable true */
14428 bool disabled; 13890 bool disabled;
14429 13891
14430 /** @domName HTMLOptGroupElement.label; @docsEditable true */ 13892 /** @domName HTMLOptGroupElement.label; @docsEditable true */
14431 String label; 13893 String label;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
14473 bool selected; 13935 bool selected;
14474 13936
14475 /** @domName HTMLOptionElement.value; @docsEditable true */ 13937 /** @domName HTMLOptionElement.value; @docsEditable true */
14476 String value; 13938 String value;
14477 } 13939 }
14478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14479 // for details. All rights reserved. Use of this source code is governed by a 13941 // for details. All rights reserved. Use of this source code is governed by a
14480 // BSD-style license that can be found in the LICENSE file. 13942 // BSD-style license that can be found in the LICENSE file.
14481 13943
14482 13944
14483 /// @domName OscillatorNode; @docsEditable true
14484 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" {
14485
14486 static const int CUSTOM = 4;
14487
14488 static const int FINISHED_STATE = 3;
14489
14490 static const int PLAYING_STATE = 2;
14491
14492 static const int SAWTOOTH = 2;
14493
14494 static const int SCHEDULED_STATE = 1;
14495
14496 static const int SINE = 0;
14497
14498 static const int SQUARE = 1;
14499
14500 static const int TRIANGLE = 3;
14501
14502 static const int UNSCHEDULED_STATE = 0;
14503
14504 /** @domName OscillatorNode.detune; @docsEditable true */
14505 final AudioParam detune;
14506
14507 /** @domName OscillatorNode.frequency; @docsEditable true */
14508 final AudioParam frequency;
14509
14510 /** @domName OscillatorNode.playbackState; @docsEditable true */
14511 final int playbackState;
14512
14513 /** @domName OscillatorNode.type; @docsEditable true */
14514 int type;
14515
14516 /** @domName OscillatorNode.setWaveTable; @docsEditable true */
14517 void setWaveTable(WaveTable waveTable) native;
14518
14519 /** @domName OscillatorNode.start; @docsEditable true */
14520 void start(num when) native;
14521
14522 /** @domName OscillatorNode.stop; @docsEditable true */
14523 void stop(num when) native;
14524 }
14525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14526 // for details. All rights reserved. Use of this source code is governed by a
14527 // BSD-style license that can be found in the LICENSE file.
14528
14529
14530 /// @domName HTMLOutputElement; @docsEditable true 13945 /// @domName HTMLOutputElement; @docsEditable true
14531 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" { 13946 class OutputElement extends Element implements Element native "*HTMLOutputElemen t" {
14532 13947
14533 factory OutputElement() => document.$dom_createElement("output"); 13948 factory OutputElement() => document.$dom_createElement("output");
14534 13949
14535 /** @domName HTMLOutputElement.defaultValue; @docsEditable true */ 13950 /** @domName HTMLOutputElement.defaultValue; @docsEditable true */
14536 String defaultValue; 13951 String defaultValue;
14537 13952
14538 /** @domName HTMLOutputElement.form; @docsEditable true */ 13953 /** @domName HTMLOutputElement.form; @docsEditable true */
14539 final FormElement form; 13954 final FormElement form;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
14614 class PageTransitionEvent extends Event native "*PageTransitionEvent" { 14029 class PageTransitionEvent extends Event native "*PageTransitionEvent" {
14615 14030
14616 /** @domName PageTransitionEvent.persisted; @docsEditable true */ 14031 /** @domName PageTransitionEvent.persisted; @docsEditable true */
14617 final bool persisted; 14032 final bool persisted;
14618 } 14033 }
14619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14620 // for details. All rights reserved. Use of this source code is governed by a 14035 // for details. All rights reserved. Use of this source code is governed by a
14621 // BSD-style license that can be found in the LICENSE file. 14036 // BSD-style license that can be found in the LICENSE file.
14622 14037
14623 14038
14624 /// @domName PannerNode; @docsEditable true
14625 class PannerNode extends AudioNode native "*PannerNode" {
14626
14627 static const int EQUALPOWER = 0;
14628
14629 static const int EXPONENTIAL_DISTANCE = 2;
14630
14631 static const int HRTF = 1;
14632
14633 static const int INVERSE_DISTANCE = 1;
14634
14635 static const int LINEAR_DISTANCE = 0;
14636
14637 static const int SOUNDFIELD = 2;
14638
14639 /** @domName PannerNode.coneGain; @docsEditable true */
14640 final AudioGain coneGain;
14641
14642 /** @domName PannerNode.coneInnerAngle; @docsEditable true */
14643 num coneInnerAngle;
14644
14645 /** @domName PannerNode.coneOuterAngle; @docsEditable true */
14646 num coneOuterAngle;
14647
14648 /** @domName PannerNode.coneOuterGain; @docsEditable true */
14649 num coneOuterGain;
14650
14651 /** @domName PannerNode.distanceGain; @docsEditable true */
14652 final AudioGain distanceGain;
14653
14654 /** @domName PannerNode.distanceModel; @docsEditable true */
14655 int distanceModel;
14656
14657 /** @domName PannerNode.maxDistance; @docsEditable true */
14658 num maxDistance;
14659
14660 /** @domName PannerNode.panningModel; @docsEditable true */
14661 int panningModel;
14662
14663 /** @domName PannerNode.refDistance; @docsEditable true */
14664 num refDistance;
14665
14666 /** @domName PannerNode.rolloffFactor; @docsEditable true */
14667 num rolloffFactor;
14668
14669 /** @domName PannerNode.setOrientation; @docsEditable true */
14670 void setOrientation(num x, num y, num z) native;
14671
14672 /** @domName PannerNode.setPosition; @docsEditable true */
14673 void setPosition(num x, num y, num z) native;
14674
14675 /** @domName PannerNode.setVelocity; @docsEditable true */
14676 void setVelocity(num x, num y, num z) native;
14677 }
14678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14679 // for details. All rights reserved. Use of this source code is governed by a
14680 // BSD-style license that can be found in the LICENSE file.
14681
14682
14683 /// @domName HTMLParagraphElement; @docsEditable true 14039 /// @domName HTMLParagraphElement; @docsEditable true
14684 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" { 14040 class ParagraphElement extends Element implements Element native "*HTMLParagraph Element" {
14685 14041
14686 factory ParagraphElement() => document.$dom_createElement("p"); 14042 factory ParagraphElement() => document.$dom_createElement("p");
14687 14043
14688 /** @domName HTMLParagraphElement.align; @docsEditable true */ 14044 /** @domName HTMLParagraphElement.align; @docsEditable true */
14689 String align; 14045 String align;
14690 } 14046 }
14691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14692 // for details. All rights reserved. Use of this source code is governed by a 14048 // 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
15952 String src; 15308 String src;
15953 15309
15954 /** @domName HTMLScriptElement.type; @docsEditable true */ 15310 /** @domName HTMLScriptElement.type; @docsEditable true */
15955 String type; 15311 String type;
15956 } 15312 }
15957 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 15313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15958 // for details. All rights reserved. Use of this source code is governed by a 15314 // for details. All rights reserved. Use of this source code is governed by a
15959 // BSD-style license that can be found in the LICENSE file. 15315 // BSD-style license that can be found in the LICENSE file.
15960 15316
15961 15317
15962 /// @domName ScriptProcessorNode; @docsEditable true
15963 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri ptProcessorNode" {
15964
15965 /**
15966 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
15967 */
15968 ScriptProcessorNodeEvents get on =>
15969 new ScriptProcessorNodeEvents(this);
15970
15971 /** @domName ScriptProcessorNode.bufferSize; @docsEditable true */
15972 final int bufferSize;
15973 }
15974
15975 class ScriptProcessorNodeEvents extends Events {
15976 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr);
15977
15978 EventListenerList get audioProcess => this['audioprocess'];
15979 }
15980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
15981 // for details. All rights reserved. Use of this source code is governed by a
15982 // BSD-style license that can be found in the LICENSE file.
15983
15984
15985 /// @domName ScriptProfile; @docsEditable true 15318 /// @domName ScriptProfile; @docsEditable true
15986 class ScriptProfile native "*ScriptProfile" { 15319 class ScriptProfile native "*ScriptProfile" {
15987 15320
15988 /** @domName ScriptProfile.head; @docsEditable true */ 15321 /** @domName ScriptProfile.head; @docsEditable true */
15989 final ScriptProfileNode head; 15322 final ScriptProfileNode head;
15990 15323
15991 /** @domName ScriptProfile.title; @docsEditable true */ 15324 /** @domName ScriptProfile.title; @docsEditable true */
15992 final String title; 15325 final String title;
15993 15326
15994 /** @domName ScriptProfile.uid; @docsEditable true */ 15327 /** @domName ScriptProfile.uid; @docsEditable true */
(...skipping 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after
18488 17821
18489 // WARNING: Do not edit - generated code. 17822 // WARNING: Do not edit - generated code.
18490 17823
18491 17824
18492 typedef void VoidCallback(); 17825 typedef void VoidCallback();
18493 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17826 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18494 // for details. All rights reserved. Use of this source code is governed by a 17827 // for details. All rights reserved. Use of this source code is governed by a
18495 // BSD-style license that can be found in the LICENSE file. 17828 // BSD-style license that can be found in the LICENSE file.
18496 17829
18497 17830
18498 /// @domName WaveShaperNode; @docsEditable true
18499 class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
18500
18501 /** @domName WaveShaperNode.curve; @docsEditable true */
18502 Float32Array curve;
18503 }
18504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18505 // for details. All rights reserved. Use of this source code is governed by a
18506 // BSD-style license that can be found in the LICENSE file.
18507
18508
18509 /// @domName WaveTable; @docsEditable true 17831 /// @domName WaveTable; @docsEditable true
18510 class WaveTable native "*WaveTable" { 17832 class WaveTable native "*WaveTable" {
18511 } 17833 }
18512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 17834 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18513 // for details. All rights reserved. Use of this source code is governed by a 17835 // for details. All rights reserved. Use of this source code is governed by a
18514 // BSD-style license that can be found in the LICENSE file. 17836 // BSD-style license that can be found in the LICENSE file.
18515 17837
18516 17838
18517 /// @domName WebGLActiveInfo; @docsEditable true 17839 /// @domName WebGLActiveInfo; @docsEditable true
18518 class WebGLActiveInfo native "*WebGLActiveInfo" { 17840 class WebGLActiveInfo native "*WebGLActiveInfo" {
(...skipping 1867 matching lines...) Expand 10 before | Expand all | Expand 10 after
20386 19708
20387 class _ArrayBufferFactoryProvider { 19709 class _ArrayBufferFactoryProvider {
20388 static ArrayBuffer createArrayBuffer(int length) => 19710 static ArrayBuffer createArrayBuffer(int length) =>
20389 JS('ArrayBuffer', 'new ArrayBuffer(#)', length); 19711 JS('ArrayBuffer', 'new ArrayBuffer(#)', length);
20390 } 19712 }
20391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19713 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20392 // for details. All rights reserved. Use of this source code is governed by a 19714 // for details. All rights reserved. Use of this source code is governed by a
20393 // BSD-style license that can be found in the LICENSE file. 19715 // BSD-style license that can be found in the LICENSE file.
20394 19716
20395 19717
20396 class _AudioElementFactoryProvider {
20397 static AudioElement createAudioElement([String src = null]) {
20398 if (src == null) return JS('AudioElement', 'new Audio()');
20399 return JS('AudioElement', 'new Audio(#)', src);
20400 }
20401 }
20402 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20403 // for details. All rights reserved. Use of this source code is governed by a
20404 // BSD-style license that can be found in the LICENSE file.
20405
20406
20407 class _BlobFactoryProvider { 19718 class _BlobFactoryProvider {
20408 static Blob createBlob([List blobParts = null, String type, String endings]) { 19719 static Blob createBlob([List blobParts = null, String type, String endings]) {
20409 // TODO: validate that blobParts is a JS Array and convert if not. 19720 // TODO: validate that blobParts is a JS Array and convert if not.
20410 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed 19721 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed
20411 // array to ArrayBuffer if it is a total view. 19722 // array to ArrayBuffer if it is a total view.
20412 if (type == null && endings == null) { 19723 if (type == null && endings == null) {
20413 return _create_1(blobParts); 19724 return _create_1(blobParts);
20414 } 19725 }
20415 var bag = _create_bag(); 19726 var bag = _create_bag();
20416 if (type != null) _bag_set(bag, 'type', type); 19727 if (type != null) _bag_set(bag, 'type', type);
(...skipping 4252 matching lines...) Expand 10 before | Expand all | Expand 10 after
24669 // TODO(vsm): Cache or implement equality. 23980 // TODO(vsm): Cache or implement equality.
24670 return new _HistoryCrossFrame(h); 23981 return new _HistoryCrossFrame(h);
24671 } 23982 }
24672 } 23983 }
24673 } 23984 }
24674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 23985 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
24675 // for details. All rights reserved. Use of this source code is governed by a 23986 // for details. All rights reserved. Use of this source code is governed by a
24676 // BSD-style license that can be found in the LICENSE file. 23987 // BSD-style license that can be found in the LICENSE file.
24677 23988
24678 23989
24679 class _AudioContextFactoryProvider {
24680
24681 static AudioContext createAudioContext() {
24682 return JS('AudioContext',
24683 'new (window.AudioContext || window.webkitAudioContext)()');
24684 }
24685 }
24686
24687 class _PointFactoryProvider { 23990 class _PointFactoryProvider {
24688 static Point createPoint(num x, num y) => 23991 static Point createPoint(num x, num y) =>
24689 JS('Point', 'new WebKitPoint(#, #)', x, y); 23992 JS('Point', 'new WebKitPoint(#, #)', x, y);
24690 } 23993 }
24691 23994
24692 class _WebSocketFactoryProvider { 23995 class _WebSocketFactoryProvider {
24693 static WebSocket createWebSocket(String url) => 23996 static WebSocket createWebSocket(String url) =>
24694 JS('WebSocket', 'new WebSocket(#)', url); 23997 JS('WebSocket', 'new WebSocket(#)', url);
24695 } 23998 }
24696 23999
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
25107 if (length < 0) throw new ArgumentError('length'); 24410 if (length < 0) throw new ArgumentError('length');
25108 if (start < 0) throw new RangeError.value(start); 24411 if (start < 0) throw new RangeError.value(start);
25109 int end = start + length; 24412 int end = start + length;
25110 if (end > a.length) throw new RangeError.value(end); 24413 if (end > a.length) throw new RangeError.value(end);
25111 for (int i = start; i < end; i++) { 24414 for (int i = start; i < end; i++) {
25112 accumulator.add(a[i]); 24415 accumulator.add(a[i]);
25113 } 24416 }
25114 return accumulator; 24417 return accumulator;
25115 } 24418 }
25116 } 24419 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698