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

Side by Side Diff: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart

Issue 18054021: Fixing up DOM constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 library dart.dom.web_audio; 1 library dart.dom.web_audio;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:_collection-dev'; 5 import 'dart:_collection-dev';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:typed_data'; 8 import 'dart:typed_data';
9 import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS; 9 import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS;
10 import 'dart:_foreign_helper' show JS; 10 import 'dart:_foreign_helper' show JS;
11 import 'dart:_interceptors' show Interceptor; 11 import 'dart:_interceptors' show Interceptor;
12 // DO NOT EDIT - unless you are editing documentation as per: 12 // DO NOT EDIT - unless you are editing documentation as per:
13 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 13 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
14 // Auto-generated dart:audio library. 14 // Auto-generated dart:audio library.
15 15
16 16
17 17
18 18
19 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
20 // for details. All rights reserved. Use of this source code is governed by a 20 // for details. All rights reserved. Use of this source code is governed by a
21 // BSD-style license that can be found in the LICENSE file. 21 // BSD-style license that can be found in the LICENSE file.
22 22
23 23
24 @DocsEditable 24 @DocsEditable
25 @DomName('AnalyserNode') 25 @DomName('AnalyserNode')
26 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse rNode 26 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse rNode
27 @Experimental 27 @Experimental
28 class AnalyserNode extends AudioNode native "AnalyserNode,RealtimeAnalyserNode" { 28 class AnalyserNode extends AudioNode native "AnalyserNode,RealtimeAnalyserNode" {
29 // To suppress missing implicit constructor warnings.
30 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); }
29 31
30 @DomName('AnalyserNode.fftSize') 32 @DomName('AnalyserNode.fftSize')
31 @DocsEditable 33 @DocsEditable
32 int fftSize; 34 int fftSize;
33 35
34 @DomName('AnalyserNode.frequencyBinCount') 36 @DomName('AnalyserNode.frequencyBinCount')
35 @DocsEditable 37 @DocsEditable
36 final int frequencyBinCount; 38 final int frequencyBinCount;
37 39
38 @DomName('AnalyserNode.maxDecibels') 40 @DomName('AnalyserNode.maxDecibels')
(...skipping 22 matching lines...) Expand all
61 } 63 }
62 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 64 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
63 // for details. All rights reserved. Use of this source code is governed by a 65 // for details. All rights reserved. Use of this source code is governed by a
64 // BSD-style license that can be found in the LICENSE file. 66 // BSD-style license that can be found in the LICENSE file.
65 67
66 68
67 @DocsEditable 69 @DocsEditable
68 @DomName('AudioBuffer') 70 @DomName('AudioBuffer')
69 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section 71 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section
70 @Experimental 72 @Experimental
71 class AudioBuffer native "AudioBuffer" { 73 class AudioBuffer extends Interceptor native "AudioBuffer" {
72 74
73 @DomName('AudioBuffer.duration') 75 @DomName('AudioBuffer.duration')
74 @DocsEditable 76 @DocsEditable
75 final num duration; 77 final num duration;
76 78
77 @DomName('AudioBuffer.gain') 79 @DomName('AudioBuffer.gain')
78 @DocsEditable 80 @DocsEditable
79 num gain; 81 num gain;
80 82
81 @DomName('AudioBuffer.length') 83 @DomName('AudioBuffer.length')
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 139 }
138 } 140 }
139 141
140 void stop(num when) { 142 void stop(num when) {
141 if (JS('bool', '!!#.stop', this)) { 143 if (JS('bool', '!!#.stop', this)) {
142 JS('void', '#.stop(#)', this, when); 144 JS('void', '#.stop(#)', this, when);
143 } else { 145 } else {
144 JS('void', '#.noteOff(#)', this, when); 146 JS('void', '#.noteOff(#)', this, when);
145 } 147 }
146 } 148 }
149 // To suppress missing implicit constructor warnings.
150 factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported" ); }
147 151
148 @DomName('AudioBufferSourceNode.FINISHED_STATE') 152 @DomName('AudioBufferSourceNode.FINISHED_STATE')
149 @DocsEditable 153 @DocsEditable
150 static const int FINISHED_STATE = 3; 154 static const int FINISHED_STATE = 3;
151 155
152 @DomName('AudioBufferSourceNode.PLAYING_STATE') 156 @DomName('AudioBufferSourceNode.PLAYING_STATE')
153 @DocsEditable 157 @DocsEditable
154 static const int PLAYING_STATE = 2; 158 static const int PLAYING_STATE = 2;
155 159
156 @DomName('AudioBufferSourceNode.SCHEDULED_STATE') 160 @DomName('AudioBufferSourceNode.SCHEDULED_STATE')
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 208 }
205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
206 // for details. All rights reserved. Use of this source code is governed by a 210 // for details. All rights reserved. Use of this source code is governed by a
207 // BSD-style license that can be found in the LICENSE file. 211 // BSD-style license that can be found in the LICENSE file.
208 212
209 213
210 @DomName('AudioContext') 214 @DomName('AudioContext')
211 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo ntext-section 215 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo ntext-section
212 @Experimental 216 @Experimental
213 class AudioContext extends EventTarget native "AudioContext" { 217 class AudioContext extends EventTarget native "AudioContext" {
218 // To suppress missing implicit constructor warnings.
219 factory AudioContext._() { throw new UnsupportedError("Not supported"); }
214 220
215 @DomName('AudioContext.completeEvent') 221 @DomName('AudioContext.completeEvent')
216 @DocsEditable 222 @DocsEditable
217 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete'); 223 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete');
218 224
219 /// Checks if this type is supported on the current platform. 225 /// Checks if this type is supported on the current platform.
220 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk itAudioContext)'); 226 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk itAudioContext)');
221 227
222 @DomName('AudioContext.activeSourceCount') 228 @DomName('AudioContext.activeSourceCount')
223 @DocsEditable 229 @DocsEditable
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
358 // for details. All rights reserved. Use of this source code is governed by a 364 // for details. All rights reserved. Use of this source code is governed by a
359 // BSD-style license that can be found in the LICENSE file. 365 // BSD-style license that can be found in the LICENSE file.
360 366
361 367
362 @DocsEditable 368 @DocsEditable
363 @DomName('AudioDestinationNode') 369 @DomName('AudioDestinationNode')
364 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe stinationNode-section 370 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe stinationNode-section
365 @Experimental 371 @Experimental
366 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" { 372 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" {
373 // To suppress missing implicit constructor warnings.
374 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported") ; }
367 375
368 @DomName('AudioDestinationNode.maxChannelCount') 376 @DomName('AudioDestinationNode.maxChannelCount')
369 @DocsEditable 377 @DocsEditable
370 final int maxChannelCount; 378 final int maxChannelCount;
371 } 379 }
372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
373 // for details. All rights reserved. Use of this source code is governed by a 381 // for details. All rights reserved. Use of this source code is governed by a
374 // BSD-style license that can be found in the LICENSE file. 382 // BSD-style license that can be found in the LICENSE file.
375 383
376 384
377 @DocsEditable 385 @DocsEditable
378 @DomName('AudioListener') 386 @DomName('AudioListener')
379 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi stener-section 387 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi stener-section
380 @Experimental 388 @Experimental
381 class AudioListener native "AudioListener" { 389 class AudioListener extends Interceptor native "AudioListener" {
382 390
383 @DomName('AudioListener.dopplerFactor') 391 @DomName('AudioListener.dopplerFactor')
384 @DocsEditable 392 @DocsEditable
385 num dopplerFactor; 393 num dopplerFactor;
386 394
387 @DomName('AudioListener.speedOfSound') 395 @DomName('AudioListener.speedOfSound')
388 @DocsEditable 396 @DocsEditable
389 num speedOfSound; 397 num speedOfSound;
390 398
391 @DomName('AudioListener.setOrientation') 399 @DomName('AudioListener.setOrientation')
(...skipping 11 matching lines...) Expand all
403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
404 // for details. All rights reserved. Use of this source code is governed by a 412 // for details. All rights reserved. Use of this source code is governed by a
405 // BSD-style license that can be found in the LICENSE file. 413 // BSD-style license that can be found in the LICENSE file.
406 414
407 415
408 @DocsEditable 416 @DocsEditable
409 @DomName('AudioNode') 417 @DomName('AudioNode')
410 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section 418 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section
411 @Experimental 419 @Experimental
412 class AudioNode extends EventTarget native "AudioNode" { 420 class AudioNode extends EventTarget native "AudioNode" {
421 // To suppress missing implicit constructor warnings.
422 factory AudioNode._() { throw new UnsupportedError("Not supported"); }
413 423
414 @DomName('AudioNode.channelCount') 424 @DomName('AudioNode.channelCount')
415 @DocsEditable 425 @DocsEditable
416 int channelCount; 426 int channelCount;
417 427
418 @DomName('AudioNode.channelCountMode') 428 @DomName('AudioNode.channelCountMode')
419 @DocsEditable 429 @DocsEditable
420 String channelCountMode; 430 String channelCountMode;
421 431
422 @DomName('AudioNode.channelInterpretation') 432 @DomName('AudioNode.channelInterpretation')
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 } 469 }
460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
461 // for details. All rights reserved. Use of this source code is governed by a 471 // for details. All rights reserved. Use of this source code is governed by a
462 // BSD-style license that can be found in the LICENSE file. 472 // BSD-style license that can be found in the LICENSE file.
463 473
464 474
465 @DocsEditable 475 @DocsEditable
466 @DomName('AudioParam') 476 @DomName('AudioParam')
467 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram 477 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram
468 @Experimental 478 @Experimental
469 class AudioParam native "AudioParam" { 479 class AudioParam extends Interceptor native "AudioParam" {
470 480
471 @DomName('AudioParam.defaultValue') 481 @DomName('AudioParam.defaultValue')
472 @DocsEditable 482 @DocsEditable
473 final num defaultValue; 483 final num defaultValue;
474 484
475 @DomName('AudioParam.maxValue') 485 @DomName('AudioParam.maxValue')
476 @DocsEditable 486 @DocsEditable
477 final num maxValue; 487 final num maxValue;
478 488
479 @DomName('AudioParam.minValue') 489 @DomName('AudioParam.minValue')
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
524 // for details. All rights reserved. Use of this source code is governed by a 534 // for details. All rights reserved. Use of this source code is governed by a
525 // BSD-style license that can be found in the LICENSE file. 535 // BSD-style license that can be found in the LICENSE file.
526 536
527 537
528 @DocsEditable 538 @DocsEditable
529 @DomName('AudioProcessingEvent') 539 @DomName('AudioProcessingEvent')
530 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr ocessingEvent-section 540 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr ocessingEvent-section
531 @Experimental 541 @Experimental
532 class AudioProcessingEvent extends Event native "AudioProcessingEvent" { 542 class AudioProcessingEvent extends Event native "AudioProcessingEvent" {
543 // To suppress missing implicit constructor warnings.
544 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported") ; }
533 545
534 @DomName('AudioProcessingEvent.inputBuffer') 546 @DomName('AudioProcessingEvent.inputBuffer')
535 @DocsEditable 547 @DocsEditable
536 final AudioBuffer inputBuffer; 548 final AudioBuffer inputBuffer;
537 549
538 @DomName('AudioProcessingEvent.outputBuffer') 550 @DomName('AudioProcessingEvent.outputBuffer')
539 @DocsEditable 551 @DocsEditable
540 final AudioBuffer outputBuffer; 552 final AudioBuffer outputBuffer;
541 } 553 }
542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 554 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
543 // for details. All rights reserved. Use of this source code is governed by a 555 // for details. All rights reserved. Use of this source code is governed by a
544 // BSD-style license that can be found in the LICENSE file. 556 // BSD-style license that can be found in the LICENSE file.
545 557
546 558
547 @DocsEditable 559 @DocsEditable
548 @DomName('AudioSourceNode') 560 @DomName('AudioSourceNode')
549 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html 561 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html
550 @Experimental 562 @Experimental
551 class AudioSourceNode extends AudioNode native "AudioSourceNode" { 563 class AudioSourceNode extends AudioNode native "AudioSourceNode" {
564 // To suppress missing implicit constructor warnings.
565 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); }
552 } 566 }
553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
554 // for details. All rights reserved. Use of this source code is governed by a 568 // for details. All rights reserved. Use of this source code is governed by a
555 // BSD-style license that can be found in the LICENSE file. 569 // BSD-style license that can be found in the LICENSE file.
556 570
557 571
558 @DocsEditable 572 @DocsEditable
559 @DomName('BiquadFilterNode') 573 @DomName('BiquadFilterNode')
560 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF ilterNode-section 574 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF ilterNode-section
561 @Experimental 575 @Experimental
562 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { 576 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" {
577 // To suppress missing implicit constructor warnings.
578 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); }
563 579
564 @DomName('BiquadFilterNode.ALLPASS') 580 @DomName('BiquadFilterNode.ALLPASS')
565 @DocsEditable 581 @DocsEditable
566 static const int ALLPASS = 7; 582 static const int ALLPASS = 7;
567 583
568 @DomName('BiquadFilterNode.BANDPASS') 584 @DomName('BiquadFilterNode.BANDPASS')
569 @DocsEditable 585 @DocsEditable
570 static const int BANDPASS = 2; 586 static const int BANDPASS = 2;
571 587
572 @DomName('BiquadFilterNode.HIGHPASS') 588 @DomName('BiquadFilterNode.HIGHPASS')
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
621 // for details. All rights reserved. Use of this source code is governed by a 637 // for details. All rights reserved. Use of this source code is governed by a
622 // BSD-style license that can be found in the LICENSE file. 638 // BSD-style license that can be found in the LICENSE file.
623 639
624 640
625 @DocsEditable 641 @DocsEditable
626 @DomName('ChannelMergerNode') 642 @DomName('ChannelMergerNode')
627 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel MergerNode-section 643 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel MergerNode-section
628 @Experimental 644 @Experimental
629 class ChannelMergerNode extends AudioNode native "ChannelMergerNode,AudioChannel Merger" { 645 class ChannelMergerNode extends AudioNode native "ChannelMergerNode,AudioChannel Merger" {
646 // To suppress missing implicit constructor warnings.
647 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); }
630 } 648 }
631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
632 // for details. All rights reserved. Use of this source code is governed by a 650 // for details. All rights reserved. Use of this source code is governed by a
633 // BSD-style license that can be found in the LICENSE file. 651 // BSD-style license that can be found in the LICENSE file.
634 652
635 653
636 @DocsEditable 654 @DocsEditable
637 @DomName('ChannelSplitterNode') 655 @DomName('ChannelSplitterNode')
638 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel SplitterNode-section 656 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel SplitterNode-section
639 @Experimental 657 @Experimental
640 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode,AudioCha nnelSplitter" { 658 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode,AudioCha nnelSplitter" {
659 // To suppress missing implicit constructor warnings.
660 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported"); }
641 } 661 }
642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 662 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
643 // for details. All rights reserved. Use of this source code is governed by a 663 // for details. All rights reserved. Use of this source code is governed by a
644 // BSD-style license that can be found in the LICENSE file. 664 // BSD-style license that can be found in the LICENSE file.
645 665
646 666
647 @DocsEditable 667 @DocsEditable
648 @DomName('ConvolverNode') 668 @DomName('ConvolverNode')
649 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv erNode 669 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv erNode
650 @Experimental 670 @Experimental
651 class ConvolverNode extends AudioNode native "ConvolverNode" { 671 class ConvolverNode extends AudioNode native "ConvolverNode" {
672 // To suppress missing implicit constructor warnings.
673 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); }
652 674
653 @DomName('ConvolverNode.buffer') 675 @DomName('ConvolverNode.buffer')
654 @DocsEditable 676 @DocsEditable
655 AudioBuffer buffer; 677 AudioBuffer buffer;
656 678
657 @DomName('ConvolverNode.normalize') 679 @DomName('ConvolverNode.normalize')
658 @DocsEditable 680 @DocsEditable
659 bool normalize; 681 bool normalize;
660 } 682 }
661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
662 // for details. All rights reserved. Use of this source code is governed by a 684 // for details. All rights reserved. Use of this source code is governed by a
663 // BSD-style license that can be found in the LICENSE file. 685 // BSD-style license that can be found in the LICENSE file.
664 686
665 687
666 @DocsEditable 688 @DocsEditable
667 @DomName('DelayNode') 689 @DomName('DelayNode')
668 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo de 690 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo de
669 @Experimental 691 @Experimental
670 class DelayNode extends AudioNode native "DelayNode" { 692 class DelayNode extends AudioNode native "DelayNode" {
693 // To suppress missing implicit constructor warnings.
694 factory DelayNode._() { throw new UnsupportedError("Not supported"); }
671 695
672 @DomName('DelayNode.delayTime') 696 @DomName('DelayNode.delayTime')
673 @DocsEditable 697 @DocsEditable
674 final AudioParam delayTime; 698 final AudioParam delayTime;
675 } 699 }
676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
677 // for details. All rights reserved. Use of this source code is governed by a 701 // for details. All rights reserved. Use of this source code is governed by a
678 // BSD-style license that can be found in the LICENSE file. 702 // BSD-style license that can be found in the LICENSE file.
679 703
680 704
681 @DocsEditable 705 @DocsEditable
682 @DomName('DynamicsCompressorNode') 706 @DomName('DynamicsCompressorNode')
683 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic sCompressorNode 707 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic sCompressorNode
684 @Experimental 708 @Experimental
685 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" { 709 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" {
710 // To suppress missing implicit constructor warnings.
711 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported "); }
686 712
687 @DomName('DynamicsCompressorNode.attack') 713 @DomName('DynamicsCompressorNode.attack')
688 @DocsEditable 714 @DocsEditable
689 final AudioParam attack; 715 final AudioParam attack;
690 716
691 @DomName('DynamicsCompressorNode.knee') 717 @DomName('DynamicsCompressorNode.knee')
692 @DocsEditable 718 @DocsEditable
693 final AudioParam knee; 719 final AudioParam knee;
694 720
695 @DomName('DynamicsCompressorNode.ratio') 721 @DomName('DynamicsCompressorNode.ratio')
(...skipping 15 matching lines...) Expand all
711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
712 // for details. All rights reserved. Use of this source code is governed by a 738 // for details. All rights reserved. Use of this source code is governed by a
713 // BSD-style license that can be found in the LICENSE file. 739 // BSD-style license that can be found in the LICENSE file.
714 740
715 741
716 @DocsEditable 742 @DocsEditable
717 @DomName('GainNode') 743 @DomName('GainNode')
718 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod e 744 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod e
719 @Experimental 745 @Experimental
720 class GainNode extends AudioNode native "GainNode,AudioGainNode" { 746 class GainNode extends AudioNode native "GainNode,AudioGainNode" {
747 // To suppress missing implicit constructor warnings.
748 factory GainNode._() { throw new UnsupportedError("Not supported"); }
721 749
722 @DomName('GainNode.gain') 750 @DomName('GainNode.gain')
723 @DocsEditable 751 @DocsEditable
724 final AudioParam gain; 752 final AudioParam gain;
725 } 753 }
726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
727 // for details. All rights reserved. Use of this source code is governed by a 755 // for details. All rights reserved. Use of this source code is governed by a
728 // BSD-style license that can be found in the LICENSE file. 756 // BSD-style license that can be found in the LICENSE file.
729 757
730 758
731 @DocsEditable 759 @DocsEditable
732 @DomName('MediaElementAudioSourceNode') 760 @DomName('MediaElementAudioSourceNode')
733 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl ementAudioSourceNode 761 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl ementAudioSourceNode
734 @Experimental 762 @Experimental
735 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu dioSourceNode" { 763 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu dioSourceNode" {
764 // To suppress missing implicit constructor warnings.
765 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp orted"); }
736 766
737 @DomName('MediaElementAudioSourceNode.mediaElement') 767 @DomName('MediaElementAudioSourceNode.mediaElement')
738 @DocsEditable 768 @DocsEditable
739 @Experimental // non-standard 769 @Experimental // non-standard
740 final MediaElement mediaElement; 770 final MediaElement mediaElement;
741 } 771 }
742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
743 // for details. All rights reserved. Use of this source code is governed by a 773 // for details. All rights reserved. Use of this source code is governed by a
744 // BSD-style license that can be found in the LICENSE file. 774 // BSD-style license that can be found in the LICENSE file.
745 775
746 776
747 @DocsEditable 777 @DocsEditable
748 @DomName('MediaStreamAudioDestinationNode') 778 @DomName('MediaStreamAudioDestinationNode')
749 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioDestinationNode 779 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioDestinationNode
750 @Experimental 780 @Experimental
751 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea mAudioDestinationNode" { 781 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea mAudioDestinationNode" {
782 // To suppress missing implicit constructor warnings.
783 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not supported"); }
752 784
753 @DomName('MediaStreamAudioDestinationNode.stream') 785 @DomName('MediaStreamAudioDestinationNode.stream')
754 @DocsEditable 786 @DocsEditable
755 final MediaStream stream; 787 final MediaStream stream;
756 } 788 }
757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 789 // 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 790 // 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. 791 // BSD-style license that can be found in the LICENSE file.
760 792
761 793
762 @DocsEditable 794 @DocsEditable
763 @DomName('MediaStreamAudioSourceNode') 795 @DomName('MediaStreamAudioSourceNode')
764 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioSourceNode 796 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioSourceNode
765 @Experimental 797 @Experimental
766 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi oSourceNode" { 798 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi oSourceNode" {
799 // To suppress missing implicit constructor warnings.
800 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo rted"); }
767 801
768 @DomName('MediaStreamAudioSourceNode.mediaStream') 802 @DomName('MediaStreamAudioSourceNode.mediaStream')
769 @DocsEditable 803 @DocsEditable
770 final MediaStream mediaStream; 804 final MediaStream mediaStream;
771 } 805 }
772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
773 // for details. All rights reserved. Use of this source code is governed by a 807 // for details. All rights reserved. Use of this source code is governed by a
774 // BSD-style license that can be found in the LICENSE file. 808 // BSD-style license that can be found in the LICENSE file.
775 809
776 810
777 @DocsEditable 811 @DocsEditable
778 @DomName('OfflineAudioCompletionEvent') 812 @DomName('OfflineAudioCompletionEvent')
779 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioCompletionEvent-section 813 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioCompletionEvent-section
780 @Experimental 814 @Experimental
781 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv ent" { 815 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv ent" {
816 // To suppress missing implicit constructor warnings.
817 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp orted"); }
782 818
783 @DomName('OfflineAudioCompletionEvent.renderedBuffer') 819 @DomName('OfflineAudioCompletionEvent.renderedBuffer')
784 @DocsEditable 820 @DocsEditable
785 final AudioBuffer renderedBuffer; 821 final AudioBuffer renderedBuffer;
786 } 822 }
787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
788 // for details. All rights reserved. Use of this source code is governed by a 824 // for details. All rights reserved. Use of this source code is governed by a
789 // BSD-style license that can be found in the LICENSE file. 825 // BSD-style license that can be found in the LICENSE file.
790 826
791 827
792 @DocsEditable 828 @DocsEditable
793 @DomName('OfflineAudioContext') 829 @DomName('OfflineAudioContext')
794 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioContext-section 830 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioContext-section
795 @Experimental 831 @Experimental
796 class OfflineAudioContext extends AudioContext implements EventTarget native "Of flineAudioContext" { 832 class OfflineAudioContext extends AudioContext implements EventTarget native "Of flineAudioContext" {
833 // To suppress missing implicit constructor warnings.
834 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported"); }
797 835
798 @DomName('OfflineAudioContext.OfflineAudioContext') 836 @DomName('OfflineAudioContext.OfflineAudioContext')
799 @DocsEditable 837 @DocsEditable
800 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) { 838 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) {
801 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl eRate); 839 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl eRate);
802 } 840 }
803 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan nels, numberOfFrames, sampleRate); 841 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan nels, numberOfFrames, sampleRate);
804 } 842 }
805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
806 // for details. All rights reserved. Use of this source code is governed by a 844 // for details. All rights reserved. Use of this source code is governed by a
807 // BSD-style license that can be found in the LICENSE file. 845 // BSD-style license that can be found in the LICENSE file.
808 846
809 847
810 @DocsEditable 848 @DocsEditable
811 @DomName('OscillatorNode') 849 @DomName('OscillatorNode')
812 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc illatorNode 850 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc illatorNode
813 @Experimental 851 @Experimental
814 class OscillatorNode extends AudioSourceNode native "OscillatorNode,Oscillator" { 852 class OscillatorNode extends AudioSourceNode native "OscillatorNode,Oscillator" {
853 // To suppress missing implicit constructor warnings.
854 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); }
815 855
816 @DomName('OscillatorNode.CUSTOM') 856 @DomName('OscillatorNode.CUSTOM')
817 @DocsEditable 857 @DocsEditable
818 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames 858 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
819 @deprecated // deprecated 859 @deprecated // deprecated
820 static const int CUSTOM = 4; 860 static const int CUSTOM = 4;
821 861
822 @DomName('OscillatorNode.FINISHED_STATE') 862 @DomName('OscillatorNode.FINISHED_STATE')
823 @DocsEditable 863 @DocsEditable
824 static const int FINISHED_STATE = 3; 864 static const int FINISHED_STATE = 3;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
899 // for details. All rights reserved. Use of this source code is governed by a 939 // for details. All rights reserved. Use of this source code is governed by a
900 // BSD-style license that can be found in the LICENSE file. 940 // BSD-style license that can be found in the LICENSE file.
901 941
902 942
903 @DocsEditable 943 @DocsEditable
904 @DomName('PannerNode') 944 @DomName('PannerNode')
905 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN ode 945 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN ode
906 @Experimental 946 @Experimental
907 class PannerNode extends AudioNode native "PannerNode,AudioPannerNode" { 947 class PannerNode extends AudioNode native "PannerNode,AudioPannerNode" {
948 // To suppress missing implicit constructor warnings.
949 factory PannerNode._() { throw new UnsupportedError("Not supported"); }
908 950
909 @DomName('PannerNode.EQUALPOWER') 951 @DomName('PannerNode.EQUALPOWER')
910 @DocsEditable 952 @DocsEditable
911 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames 953 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
912 @deprecated // deprecated 954 @deprecated // deprecated
913 static const int EQUALPOWER = 0; 955 static const int EQUALPOWER = 0;
914 956
915 @DomName('PannerNode.EXPONENTIAL_DISTANCE') 957 @DomName('PannerNode.EXPONENTIAL_DISTANCE')
916 @DocsEditable 958 @DocsEditable
917 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames 959 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 _eventStream = controller.stream; 1062 _eventStream = controller.stream;
1021 } 1063 }
1022 return _eventStream; 1064 return _eventStream;
1023 } 1065 }
1024 1066
1025 _setEventListener(callback) { 1067 _setEventListener(callback) {
1026 JS('void', '#.onaudioprocess = #', this, 1068 JS('void', '#.onaudioprocess = #', this,
1027 convertDartClosureToJS(callback, 1)); 1069 convertDartClosureToJS(callback, 1));
1028 } 1070 }
1029 1071
1072 // To suppress missing implicit constructor warnings.
1073 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
1030 1074
1031 @DomName('ScriptProcessorNode.bufferSize') 1075 @DomName('ScriptProcessorNode.bufferSize')
1032 @DocsEditable 1076 @DocsEditable
1033 final int bufferSize; 1077 final int bufferSize;
1034 1078
1035 } 1079 }
1036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1037 // for details. All rights reserved. Use of this source code is governed by a 1081 // for details. All rights reserved. Use of this source code is governed by a
1038 // BSD-style license that can be found in the LICENSE file. 1082 // BSD-style license that can be found in the LICENSE file.
1039 1083
1040 1084
1041 @DocsEditable 1085 @DocsEditable
1042 @DomName('WaveShaperNode') 1086 @DomName('WaveShaperNode')
1043 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav eShaperNode 1087 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav eShaperNode
1044 @Experimental 1088 @Experimental
1045 class WaveShaperNode extends AudioNode native "WaveShaperNode" { 1089 class WaveShaperNode extends AudioNode native "WaveShaperNode" {
1090 // To suppress missing implicit constructor warnings.
1091 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); }
1046 1092
1047 @DomName('WaveShaperNode.curve') 1093 @DomName('WaveShaperNode.curve')
1048 @DocsEditable 1094 @DocsEditable
1049 Float32List curve; 1095 Float32List curve;
1050 1096
1051 @DomName('WaveShaperNode.oversample') 1097 @DomName('WaveShaperNode.oversample')
1052 @DocsEditable 1098 @DocsEditable
1053 String oversample; 1099 String oversample;
1054 } 1100 }
1055 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1056 // for details. All rights reserved. Use of this source code is governed by a 1102 // for details. All rights reserved. Use of this source code is governed by a
1057 // BSD-style license that can be found in the LICENSE file. 1103 // BSD-style license that can be found in the LICENSE file.
1058 1104
1059 1105
1060 @DocsEditable 1106 @DocsEditable
1061 @DomName('WaveTable') 1107 @DomName('WaveTable')
1062 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section 1108 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section
1063 @Experimental 1109 @Experimental
1064 class WaveTable native "WaveTable" { 1110 class WaveTable extends Interceptor native "WaveTable" {
1065 } 1111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698