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

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

Issue 17063007: Making all DOM types abstract and removing superfluous Dartium constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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" { 28 class AnalyserNode extends AudioNode native "AnalyserNode" {
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 23 matching lines...) Expand all
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 native "AudioBuffer" {
74 // To suppress missing implicit constructor warnings.
75 factory AudioBuffer._() { throw new UnsupportedError("Not supported"); }
72 76
73 @DomName('AudioBuffer.duration') 77 @DomName('AudioBuffer.duration')
74 @DocsEditable 78 @DocsEditable
75 final num duration; 79 final num duration;
76 80
77 @DomName('AudioBuffer.gain') 81 @DomName('AudioBuffer.gain')
78 @DocsEditable 82 @DocsEditable
79 num gain; 83 num gain;
80 84
81 @DomName('AudioBuffer.length') 85 @DomName('AudioBuffer.length')
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 141 }
138 } 142 }
139 143
140 void stop(num when) { 144 void stop(num when) {
141 if (JS('bool', '!!#.stop', this)) { 145 if (JS('bool', '!!#.stop', this)) {
142 JS('void', '#.stop(#)', this, when); 146 JS('void', '#.stop(#)', this, when);
143 } else { 147 } else {
144 JS('void', '#.noteOff(#)', this, when); 148 JS('void', '#.noteOff(#)', this, when);
145 } 149 }
146 } 150 }
151 // To suppress missing implicit constructor warnings.
152 factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported" ); }
147 153
148 @DomName('AudioBufferSourceNode.FINISHED_STATE') 154 @DomName('AudioBufferSourceNode.FINISHED_STATE')
149 @DocsEditable 155 @DocsEditable
150 static const int FINISHED_STATE = 3; 156 static const int FINISHED_STATE = 3;
151 157
152 @DomName('AudioBufferSourceNode.PLAYING_STATE') 158 @DomName('AudioBufferSourceNode.PLAYING_STATE')
153 @DocsEditable 159 @DocsEditable
154 static const int PLAYING_STATE = 2; 160 static const int PLAYING_STATE = 2;
155 161
156 @DomName('AudioBufferSourceNode.SCHEDULED_STATE') 162 @DomName('AudioBufferSourceNode.SCHEDULED_STATE')
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 } 210 }
205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 211 // 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 212 // 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. 213 // BSD-style license that can be found in the LICENSE file.
208 214
209 215
210 @DomName('AudioContext') 216 @DomName('AudioContext')
211 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo ntext-section 217 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo ntext-section
212 @Experimental 218 @Experimental
213 class AudioContext extends EventTarget native "AudioContext" { 219 class AudioContext extends EventTarget native "AudioContext" {
220 // To suppress missing implicit constructor warnings.
221 factory AudioContext._() { throw new UnsupportedError("Not supported"); }
214 222
215 @DomName('AudioContext.completeEvent') 223 @DomName('AudioContext.completeEvent')
216 @DocsEditable 224 @DocsEditable
217 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete'); 225 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete');
218 226
219 /// Checks if this type is supported on the current platform. 227 /// Checks if this type is supported on the current platform.
220 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk itAudioContext)'); 228 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk itAudioContext)');
221 229
222 @DomName('AudioContext.activeSourceCount') 230 @DomName('AudioContext.activeSourceCount')
223 @DocsEditable 231 @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 365 // 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 366 // 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. 367 // BSD-style license that can be found in the LICENSE file.
360 368
361 369
362 @DocsEditable 370 @DocsEditable
363 @DomName('AudioDestinationNode') 371 @DomName('AudioDestinationNode')
364 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe stinationNode-section 372 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe stinationNode-section
365 @Experimental 373 @Experimental
366 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" { 374 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" {
375 // To suppress missing implicit constructor warnings.
376 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported") ; }
367 377
368 @DomName('AudioDestinationNode.maxChannelCount') 378 @DomName('AudioDestinationNode.maxChannelCount')
369 @DocsEditable 379 @DocsEditable
370 final int maxChannelCount; 380 final int maxChannelCount;
371 } 381 }
372 // 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
373 // 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
374 // BSD-style license that can be found in the LICENSE file. 384 // BSD-style license that can be found in the LICENSE file.
375 385
376 386
377 @DocsEditable 387 @DocsEditable
378 @DomName('AudioListener') 388 @DomName('AudioListener')
379 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi stener-section 389 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi stener-section
380 @Experimental 390 @Experimental
381 class AudioListener native "AudioListener" { 391 class AudioListener native "AudioListener" {
392 // To suppress missing implicit constructor warnings.
393 factory AudioListener._() { throw new UnsupportedError("Not supported"); }
382 394
383 @DomName('AudioListener.dopplerFactor') 395 @DomName('AudioListener.dopplerFactor')
384 @DocsEditable 396 @DocsEditable
385 num dopplerFactor; 397 num dopplerFactor;
386 398
387 @DomName('AudioListener.speedOfSound') 399 @DomName('AudioListener.speedOfSound')
388 @DocsEditable 400 @DocsEditable
389 num speedOfSound; 401 num speedOfSound;
390 402
391 @DomName('AudioListener.setOrientation') 403 @DomName('AudioListener.setOrientation')
(...skipping 11 matching lines...) Expand all
403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 415 // 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 416 // 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. 417 // BSD-style license that can be found in the LICENSE file.
406 418
407 419
408 @DocsEditable 420 @DocsEditable
409 @DomName('AudioNode') 421 @DomName('AudioNode')
410 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section 422 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section
411 @Experimental 423 @Experimental
412 class AudioNode extends EventTarget native "AudioNode" { 424 class AudioNode extends EventTarget native "AudioNode" {
425 // To suppress missing implicit constructor warnings.
426 factory AudioNode._() { throw new UnsupportedError("Not supported"); }
413 427
414 @DomName('AudioNode.channelCount') 428 @DomName('AudioNode.channelCount')
415 @DocsEditable 429 @DocsEditable
416 int channelCount; 430 int channelCount;
417 431
418 @DomName('AudioNode.channelCountMode') 432 @DomName('AudioNode.channelCountMode')
419 @DocsEditable 433 @DocsEditable
420 String channelCountMode; 434 String channelCountMode;
421 435
422 @DomName('AudioNode.channelInterpretation') 436 @DomName('AudioNode.channelInterpretation')
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 474 // 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 475 // 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. 476 // BSD-style license that can be found in the LICENSE file.
463 477
464 478
465 @DocsEditable 479 @DocsEditable
466 @DomName('AudioParam') 480 @DomName('AudioParam')
467 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram 481 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram
468 @Experimental 482 @Experimental
469 class AudioParam native "AudioParam" { 483 class AudioParam native "AudioParam" {
484 // To suppress missing implicit constructor warnings.
485 factory AudioParam._() { throw new UnsupportedError("Not supported"); }
470 486
471 @DomName('AudioParam.defaultValue') 487 @DomName('AudioParam.defaultValue')
472 @DocsEditable 488 @DocsEditable
473 final num defaultValue; 489 final num defaultValue;
474 490
475 @DomName('AudioParam.maxValue') 491 @DomName('AudioParam.maxValue')
476 @DocsEditable 492 @DocsEditable
477 final num maxValue; 493 final num maxValue;
478 494
479 @DomName('AudioParam.minValue') 495 @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 539 // 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 540 // 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. 541 // BSD-style license that can be found in the LICENSE file.
526 542
527 543
528 @DocsEditable 544 @DocsEditable
529 @DomName('AudioProcessingEvent') 545 @DomName('AudioProcessingEvent')
530 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr ocessingEvent-section 546 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr ocessingEvent-section
531 @Experimental 547 @Experimental
532 class AudioProcessingEvent extends Event native "AudioProcessingEvent" { 548 class AudioProcessingEvent extends Event native "AudioProcessingEvent" {
549 // To suppress missing implicit constructor warnings.
550 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported") ; }
533 551
534 @DomName('AudioProcessingEvent.inputBuffer') 552 @DomName('AudioProcessingEvent.inputBuffer')
535 @DocsEditable 553 @DocsEditable
536 final AudioBuffer inputBuffer; 554 final AudioBuffer inputBuffer;
537 555
538 @DomName('AudioProcessingEvent.outputBuffer') 556 @DomName('AudioProcessingEvent.outputBuffer')
539 @DocsEditable 557 @DocsEditable
540 final AudioBuffer outputBuffer; 558 final AudioBuffer outputBuffer;
541 } 559 }
542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 560 // 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 561 // 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. 562 // BSD-style license that can be found in the LICENSE file.
545 563
546 564
547 @DocsEditable 565 @DocsEditable
548 @DomName('AudioSourceNode') 566 @DomName('AudioSourceNode')
549 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html 567 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html
550 @Experimental 568 @Experimental
551 class AudioSourceNode extends AudioNode native "AudioSourceNode" { 569 class AudioSourceNode extends AudioNode native "AudioSourceNode" {
570 // To suppress missing implicit constructor warnings.
571 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); }
552 } 572 }
553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 573 // 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 574 // 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. 575 // BSD-style license that can be found in the LICENSE file.
556 576
557 577
558 @DocsEditable 578 @DocsEditable
559 @DomName('BiquadFilterNode') 579 @DomName('BiquadFilterNode')
560 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF ilterNode-section 580 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF ilterNode-section
561 @Experimental 581 @Experimental
562 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { 582 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" {
583 // To suppress missing implicit constructor warnings.
584 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); }
563 585
564 @DomName('BiquadFilterNode.ALLPASS') 586 @DomName('BiquadFilterNode.ALLPASS')
565 @DocsEditable 587 @DocsEditable
566 static const int ALLPASS = 7; 588 static const int ALLPASS = 7;
567 589
568 @DomName('BiquadFilterNode.BANDPASS') 590 @DomName('BiquadFilterNode.BANDPASS')
569 @DocsEditable 591 @DocsEditable
570 static const int BANDPASS = 2; 592 static const int BANDPASS = 2;
571 593
572 @DomName('BiquadFilterNode.HIGHPASS') 594 @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 642 // 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 643 // 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. 644 // BSD-style license that can be found in the LICENSE file.
623 645
624 646
625 @DocsEditable 647 @DocsEditable
626 @DomName('ChannelMergerNode') 648 @DomName('ChannelMergerNode')
627 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel MergerNode-section 649 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel MergerNode-section
628 @Experimental 650 @Experimental
629 class ChannelMergerNode extends AudioNode native "ChannelMergerNode" { 651 class ChannelMergerNode extends AudioNode native "ChannelMergerNode" {
652 // To suppress missing implicit constructor warnings.
653 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); }
630 } 654 }
631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 655 // 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 656 // 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. 657 // BSD-style license that can be found in the LICENSE file.
634 658
635 659
636 @DocsEditable 660 @DocsEditable
637 @DomName('ChannelSplitterNode') 661 @DomName('ChannelSplitterNode')
638 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel SplitterNode-section 662 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel SplitterNode-section
639 @Experimental 663 @Experimental
640 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" { 664 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" {
665 // To suppress missing implicit constructor warnings.
666 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported"); }
641 } 667 }
642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 668 // 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 669 // 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. 670 // BSD-style license that can be found in the LICENSE file.
645 671
646 672
647 @DocsEditable 673 @DocsEditable
648 @DomName('ConvolverNode') 674 @DomName('ConvolverNode')
649 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv erNode 675 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv erNode
650 @Experimental 676 @Experimental
651 class ConvolverNode extends AudioNode native "ConvolverNode" { 677 class ConvolverNode extends AudioNode native "ConvolverNode" {
678 // To suppress missing implicit constructor warnings.
679 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); }
652 680
653 @DomName('ConvolverNode.buffer') 681 @DomName('ConvolverNode.buffer')
654 @DocsEditable 682 @DocsEditable
655 AudioBuffer buffer; 683 AudioBuffer buffer;
656 684
657 @DomName('ConvolverNode.normalize') 685 @DomName('ConvolverNode.normalize')
658 @DocsEditable 686 @DocsEditable
659 bool normalize; 687 bool normalize;
660 } 688 }
661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 689 // 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 690 // 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. 691 // BSD-style license that can be found in the LICENSE file.
664 692
665 693
666 @DocsEditable 694 @DocsEditable
667 @DomName('DelayNode') 695 @DomName('DelayNode')
668 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo de 696 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo de
669 @Experimental 697 @Experimental
670 class DelayNode extends AudioNode native "DelayNode" { 698 class DelayNode extends AudioNode native "DelayNode" {
699 // To suppress missing implicit constructor warnings.
700 factory DelayNode._() { throw new UnsupportedError("Not supported"); }
671 701
672 @DomName('DelayNode.delayTime') 702 @DomName('DelayNode.delayTime')
673 @DocsEditable 703 @DocsEditable
674 final AudioParam delayTime; 704 final AudioParam delayTime;
675 } 705 }
676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 706 // 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 707 // 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. 708 // BSD-style license that can be found in the LICENSE file.
679 709
680 710
681 @DocsEditable 711 @DocsEditable
682 @DomName('DynamicsCompressorNode') 712 @DomName('DynamicsCompressorNode')
683 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic sCompressorNode 713 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic sCompressorNode
684 @Experimental 714 @Experimental
685 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" { 715 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" {
716 // To suppress missing implicit constructor warnings.
717 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported "); }
686 718
687 @DomName('DynamicsCompressorNode.attack') 719 @DomName('DynamicsCompressorNode.attack')
688 @DocsEditable 720 @DocsEditable
689 final AudioParam attack; 721 final AudioParam attack;
690 722
691 @DomName('DynamicsCompressorNode.knee') 723 @DomName('DynamicsCompressorNode.knee')
692 @DocsEditable 724 @DocsEditable
693 final AudioParam knee; 725 final AudioParam knee;
694 726
695 @DomName('DynamicsCompressorNode.ratio') 727 @DomName('DynamicsCompressorNode.ratio')
(...skipping 15 matching lines...) Expand all
711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 743 // 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 744 // 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. 745 // BSD-style license that can be found in the LICENSE file.
714 746
715 747
716 @DocsEditable 748 @DocsEditable
717 @DomName('GainNode') 749 @DomName('GainNode')
718 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod e 750 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod e
719 @Experimental 751 @Experimental
720 class GainNode extends AudioNode native "GainNode" { 752 class GainNode extends AudioNode native "GainNode" {
753 // To suppress missing implicit constructor warnings.
754 factory GainNode._() { throw new UnsupportedError("Not supported"); }
721 755
722 @DomName('GainNode.gain') 756 @DomName('GainNode.gain')
723 @DocsEditable 757 @DocsEditable
724 final AudioParam gain; 758 final AudioParam gain;
725 } 759 }
726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 760 // 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 761 // 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. 762 // BSD-style license that can be found in the LICENSE file.
729 763
730 764
731 @DocsEditable 765 @DocsEditable
732 @DomName('MediaElementAudioSourceNode') 766 @DomName('MediaElementAudioSourceNode')
733 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl ementAudioSourceNode 767 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl ementAudioSourceNode
734 @Experimental 768 @Experimental
735 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu dioSourceNode" { 769 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu dioSourceNode" {
770 // To suppress missing implicit constructor warnings.
771 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp orted"); }
736 772
737 @DomName('MediaElementAudioSourceNode.mediaElement') 773 @DomName('MediaElementAudioSourceNode.mediaElement')
738 @DocsEditable 774 @DocsEditable
739 @Experimental // non-standard 775 @Experimental // non-standard
740 final MediaElement mediaElement; 776 final MediaElement mediaElement;
741 } 777 }
742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 778 // 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 779 // 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. 780 // BSD-style license that can be found in the LICENSE file.
745 781
746 782
747 @DocsEditable 783 @DocsEditable
748 @DomName('MediaStreamAudioDestinationNode') 784 @DomName('MediaStreamAudioDestinationNode')
749 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioDestinationNode 785 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioDestinationNode
750 @Experimental 786 @Experimental
751 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea mAudioDestinationNode" { 787 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea mAudioDestinationNode" {
788 // To suppress missing implicit constructor warnings.
789 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not supported"); }
752 790
753 @DomName('MediaStreamAudioDestinationNode.stream') 791 @DomName('MediaStreamAudioDestinationNode.stream')
754 @DocsEditable 792 @DocsEditable
755 final MediaStream stream; 793 final MediaStream stream;
756 } 794 }
757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 795 // 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 796 // 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. 797 // BSD-style license that can be found in the LICENSE file.
760 798
761 799
762 @DocsEditable 800 @DocsEditable
763 @DomName('MediaStreamAudioSourceNode') 801 @DomName('MediaStreamAudioSourceNode')
764 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioSourceNode 802 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioSourceNode
765 @Experimental 803 @Experimental
766 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi oSourceNode" { 804 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi oSourceNode" {
805 // To suppress missing implicit constructor warnings.
806 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo rted"); }
767 807
768 @DomName('MediaStreamAudioSourceNode.mediaStream') 808 @DomName('MediaStreamAudioSourceNode.mediaStream')
769 @DocsEditable 809 @DocsEditable
770 final MediaStream mediaStream; 810 final MediaStream mediaStream;
771 } 811 }
772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 812 // 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 813 // 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. 814 // BSD-style license that can be found in the LICENSE file.
775 815
776 816
777 @DocsEditable 817 @DocsEditable
778 @DomName('OfflineAudioCompletionEvent') 818 @DomName('OfflineAudioCompletionEvent')
779 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioCompletionEvent-section 819 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioCompletionEvent-section
780 @Experimental 820 @Experimental
781 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv ent" { 821 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv ent" {
822 // To suppress missing implicit constructor warnings.
823 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp orted"); }
782 824
783 @DomName('OfflineAudioCompletionEvent.renderedBuffer') 825 @DomName('OfflineAudioCompletionEvent.renderedBuffer')
784 @DocsEditable 826 @DocsEditable
785 final AudioBuffer renderedBuffer; 827 final AudioBuffer renderedBuffer;
786 } 828 }
787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 829 // 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 830 // 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. 831 // BSD-style license that can be found in the LICENSE file.
790 832
791 833
792 @DocsEditable 834 @DocsEditable
793 @DomName('OfflineAudioContext') 835 @DomName('OfflineAudioContext')
794 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioContext-section 836 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioContext-section
795 @Experimental 837 @Experimental
796 class OfflineAudioContext extends AudioContext implements EventTarget native "Of flineAudioContext" { 838 class OfflineAudioContext extends AudioContext implements EventTarget native "Of flineAudioContext" {
839 // To suppress missing implicit constructor warnings.
840 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported"); }
797 841
798 @DomName('OfflineAudioContext.OfflineAudioContext') 842 @DomName('OfflineAudioContext.OfflineAudioContext')
799 @DocsEditable 843 @DocsEditable
800 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) { 844 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) {
801 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl eRate); 845 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl eRate);
802 } 846 }
803 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan nels, numberOfFrames, sampleRate); 847 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan nels, numberOfFrames, sampleRate);
804 } 848 }
805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 849 // 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 850 // 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. 851 // BSD-style license that can be found in the LICENSE file.
808 852
809 853
810 @DocsEditable 854 @DocsEditable
811 @DomName('OscillatorNode') 855 @DomName('OscillatorNode')
812 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc illatorNode 856 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc illatorNode
813 @Experimental 857 @Experimental
814 class OscillatorNode extends AudioSourceNode native "OscillatorNode" { 858 class OscillatorNode extends AudioSourceNode native "OscillatorNode" {
859 // To suppress missing implicit constructor warnings.
860 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); }
815 861
816 @DomName('OscillatorNode.CUSTOM') 862 @DomName('OscillatorNode.CUSTOM')
817 @DocsEditable 863 @DocsEditable
818 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames 864 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
819 @deprecated // deprecated 865 @deprecated // deprecated
820 static const int CUSTOM = 4; 866 static const int CUSTOM = 4;
821 867
822 @DomName('OscillatorNode.FINISHED_STATE') 868 @DomName('OscillatorNode.FINISHED_STATE')
823 @DocsEditable 869 @DocsEditable
824 static const int FINISHED_STATE = 3; 870 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 944 // 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 945 // 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. 946 // BSD-style license that can be found in the LICENSE file.
901 947
902 948
903 @DocsEditable 949 @DocsEditable
904 @DomName('PannerNode') 950 @DomName('PannerNode')
905 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN ode 951 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN ode
906 @Experimental 952 @Experimental
907 class PannerNode extends AudioNode native "PannerNode" { 953 class PannerNode extends AudioNode native "PannerNode" {
954 // To suppress missing implicit constructor warnings.
955 factory PannerNode._() { throw new UnsupportedError("Not supported"); }
908 956
909 @DomName('PannerNode.EQUALPOWER') 957 @DomName('PannerNode.EQUALPOWER')
910 @DocsEditable 958 @DocsEditable
911 // 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
912 @deprecated // deprecated 960 @deprecated // deprecated
913 static const int EQUALPOWER = 0; 961 static const int EQUALPOWER = 0;
914 962
915 @DomName('PannerNode.EXPONENTIAL_DISTANCE') 963 @DomName('PannerNode.EXPONENTIAL_DISTANCE')
916 @DocsEditable 964 @DocsEditable
917 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames 965 // 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; 1068 _eventStream = controller.stream;
1021 } 1069 }
1022 return _eventStream; 1070 return _eventStream;
1023 } 1071 }
1024 1072
1025 _setEventListener(callback) { 1073 _setEventListener(callback) {
1026 JS('void', '#.onaudioprocess = #', this, 1074 JS('void', '#.onaudioprocess = #', this,
1027 convertDartClosureToJS(callback, 1)); 1075 convertDartClosureToJS(callback, 1));
1028 } 1076 }
1029 1077
1078 // To suppress missing implicit constructor warnings.
1079 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
1030 1080
1031 @DomName('ScriptProcessorNode.bufferSize') 1081 @DomName('ScriptProcessorNode.bufferSize')
1032 @DocsEditable 1082 @DocsEditable
1033 final int bufferSize; 1083 final int bufferSize;
1034 1084
1035 } 1085 }
1036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1086 // 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 1087 // 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. 1088 // BSD-style license that can be found in the LICENSE file.
1039 1089
1040 1090
1041 @DocsEditable 1091 @DocsEditable
1042 @DomName('WaveShaperNode') 1092 @DomName('WaveShaperNode')
1043 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav eShaperNode 1093 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav eShaperNode
1044 @Experimental 1094 @Experimental
1045 class WaveShaperNode extends AudioNode native "WaveShaperNode" { 1095 class WaveShaperNode extends AudioNode native "WaveShaperNode" {
1096 // To suppress missing implicit constructor warnings.
1097 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); }
1046 1098
1047 @DomName('WaveShaperNode.curve') 1099 @DomName('WaveShaperNode.curve')
1048 @DocsEditable 1100 @DocsEditable
1049 Float32List curve; 1101 Float32List curve;
1050 1102
1051 @DomName('WaveShaperNode.oversample') 1103 @DomName('WaveShaperNode.oversample')
1052 @DocsEditable 1104 @DocsEditable
1053 String oversample; 1105 String oversample;
1054 } 1106 }
1055 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1107 // 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 1108 // 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. 1109 // BSD-style license that can be found in the LICENSE file.
1058 1110
1059 1111
1060 @DocsEditable 1112 @DocsEditable
1061 @DomName('WaveTable') 1113 @DomName('WaveTable')
1062 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section 1114 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section
1063 @Experimental 1115 @Experimental
1064 class WaveTable native "WaveTable" { 1116 class WaveTable native "WaveTable" {
1117 // To suppress missing implicit constructor warnings.
1118 factory WaveTable._() { throw new UnsupportedError("Not supported"); }
1065 } 1119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698