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

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

Issue 15043005: Adding annotations to DOM constants (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, Returns, convertDartClosureToJS; 9 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS;
10 import 'dart:_foreign_helper' show JS; 10 import 'dart:_foreign_helper' show JS;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 void stop(num when) { 130 void stop(num when) {
131 if (JS('bool', '!!#.stop', this)) { 131 if (JS('bool', '!!#.stop', this)) {
132 JS('void', '#.stop(#)', this, when); 132 JS('void', '#.stop(#)', this, when);
133 } else { 133 } else {
134 JS('void', '#.noteOff(#)', this, when); 134 JS('void', '#.noteOff(#)', this, when);
135 } 135 }
136 } 136 }
137 137
138 @DomName('AudioBufferSourceNode.FINISHED_STATE')
139 @DocsEditable
138 static const int FINISHED_STATE = 3; 140 static const int FINISHED_STATE = 3;
139 141
142 @DomName('AudioBufferSourceNode.PLAYING_STATE')
143 @DocsEditable
140 static const int PLAYING_STATE = 2; 144 static const int PLAYING_STATE = 2;
141 145
146 @DomName('AudioBufferSourceNode.SCHEDULED_STATE')
147 @DocsEditable
142 static const int SCHEDULED_STATE = 1; 148 static const int SCHEDULED_STATE = 1;
143 149
150 @DomName('AudioBufferSourceNode.UNSCHEDULED_STATE')
151 @DocsEditable
144 static const int UNSCHEDULED_STATE = 0; 152 static const int UNSCHEDULED_STATE = 0;
145 153
146 @DomName('AudioBufferSourceNode.buffer') 154 @DomName('AudioBufferSourceNode.buffer')
147 @DocsEditable 155 @DocsEditable
148 AudioBuffer buffer; 156 AudioBuffer buffer;
149 157
150 @DomName('AudioBufferSourceNode.gain') 158 @DomName('AudioBufferSourceNode.gain')
151 @DocsEditable 159 @DocsEditable
152 final AudioParam gain; 160 final AudioParam gain;
153 161
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } 486 }
479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
480 // for details. All rights reserved. Use of this source code is governed by a 488 // for details. All rights reserved. Use of this source code is governed by a
481 // BSD-style license that can be found in the LICENSE file. 489 // BSD-style license that can be found in the LICENSE file.
482 490
483 491
484 @DocsEditable 492 @DocsEditable
485 @DomName('BiquadFilterNode') 493 @DomName('BiquadFilterNode')
486 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { 494 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" {
487 495
496 @DomName('BiquadFilterNode.ALLPASS')
497 @DocsEditable
488 static const int ALLPASS = 7; 498 static const int ALLPASS = 7;
489 499
500 @DomName('BiquadFilterNode.BANDPASS')
501 @DocsEditable
490 static const int BANDPASS = 2; 502 static const int BANDPASS = 2;
491 503
504 @DomName('BiquadFilterNode.HIGHPASS')
505 @DocsEditable
492 static const int HIGHPASS = 1; 506 static const int HIGHPASS = 1;
493 507
508 @DomName('BiquadFilterNode.HIGHSHELF')
509 @DocsEditable
494 static const int HIGHSHELF = 4; 510 static const int HIGHSHELF = 4;
495 511
512 @DomName('BiquadFilterNode.LOWPASS')
513 @DocsEditable
496 static const int LOWPASS = 0; 514 static const int LOWPASS = 0;
497 515
516 @DomName('BiquadFilterNode.LOWSHELF')
517 @DocsEditable
498 static const int LOWSHELF = 3; 518 static const int LOWSHELF = 3;
499 519
520 @DomName('BiquadFilterNode.NOTCH')
521 @DocsEditable
500 static const int NOTCH = 6; 522 static const int NOTCH = 6;
501 523
524 @DomName('BiquadFilterNode.PEAKING')
525 @DocsEditable
502 static const int PEAKING = 5; 526 static const int PEAKING = 5;
503 527
504 @DomName('BiquadFilterNode.Q') 528 @DomName('BiquadFilterNode.Q')
505 @DocsEditable 529 @DocsEditable
506 final AudioParam Q; 530 final AudioParam Q;
507 531
508 @DomName('BiquadFilterNode.detune') 532 @DomName('BiquadFilterNode.detune')
509 @DocsEditable 533 @DocsEditable
510 final AudioParam detune; 534 final AudioParam detune;
511 535
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 } 713 }
690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
691 // for details. All rights reserved. Use of this source code is governed by a 715 // for details. All rights reserved. Use of this source code is governed by a
692 // BSD-style license that can be found in the LICENSE file. 716 // BSD-style license that can be found in the LICENSE file.
693 717
694 718
695 @DocsEditable 719 @DocsEditable
696 @DomName('OscillatorNode') 720 @DomName('OscillatorNode')
697 class OscillatorNode extends AudioSourceNode native "OscillatorNode" { 721 class OscillatorNode extends AudioSourceNode native "OscillatorNode" {
698 722
723 @DomName('OscillatorNode.CUSTOM')
724 @DocsEditable
699 static const int CUSTOM = 4; 725 static const int CUSTOM = 4;
700 726
727 @DomName('OscillatorNode.FINISHED_STATE')
728 @DocsEditable
701 static const int FINISHED_STATE = 3; 729 static const int FINISHED_STATE = 3;
702 730
731 @DomName('OscillatorNode.PLAYING_STATE')
732 @DocsEditable
703 static const int PLAYING_STATE = 2; 733 static const int PLAYING_STATE = 2;
704 734
735 @DomName('OscillatorNode.SAWTOOTH')
736 @DocsEditable
705 static const int SAWTOOTH = 2; 737 static const int SAWTOOTH = 2;
706 738
739 @DomName('OscillatorNode.SCHEDULED_STATE')
740 @DocsEditable
707 static const int SCHEDULED_STATE = 1; 741 static const int SCHEDULED_STATE = 1;
708 742
743 @DomName('OscillatorNode.SINE')
744 @DocsEditable
709 static const int SINE = 0; 745 static const int SINE = 0;
710 746
747 @DomName('OscillatorNode.SQUARE')
748 @DocsEditable
711 static const int SQUARE = 1; 749 static const int SQUARE = 1;
712 750
751 @DomName('OscillatorNode.TRIANGLE')
752 @DocsEditable
713 static const int TRIANGLE = 3; 753 static const int TRIANGLE = 3;
714 754
755 @DomName('OscillatorNode.UNSCHEDULED_STATE')
756 @DocsEditable
715 static const int UNSCHEDULED_STATE = 0; 757 static const int UNSCHEDULED_STATE = 0;
716 758
717 @DomName('OscillatorNode.detune') 759 @DomName('OscillatorNode.detune')
718 @DocsEditable 760 @DocsEditable
719 final AudioParam detune; 761 final AudioParam detune;
720 762
721 @DomName('OscillatorNode.frequency') 763 @DomName('OscillatorNode.frequency')
722 @DocsEditable 764 @DocsEditable
723 final AudioParam frequency; 765 final AudioParam frequency;
724 766
(...skipping 19 matching lines...) Expand all
744 } 786 }
745 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
746 // for details. All rights reserved. Use of this source code is governed by a 788 // for details. All rights reserved. Use of this source code is governed by a
747 // BSD-style license that can be found in the LICENSE file. 789 // BSD-style license that can be found in the LICENSE file.
748 790
749 791
750 @DocsEditable 792 @DocsEditable
751 @DomName('PannerNode') 793 @DomName('PannerNode')
752 class PannerNode extends AudioNode native "PannerNode" { 794 class PannerNode extends AudioNode native "PannerNode" {
753 795
796 @DomName('PannerNode.EQUALPOWER')
797 @DocsEditable
754 static const int EQUALPOWER = 0; 798 static const int EQUALPOWER = 0;
755 799
800 @DomName('PannerNode.EXPONENTIAL_DISTANCE')
801 @DocsEditable
756 static const int EXPONENTIAL_DISTANCE = 2; 802 static const int EXPONENTIAL_DISTANCE = 2;
757 803
804 @DomName('PannerNode.HRTF')
805 @DocsEditable
758 static const int HRTF = 1; 806 static const int HRTF = 1;
759 807
808 @DomName('PannerNode.INVERSE_DISTANCE')
809 @DocsEditable
760 static const int INVERSE_DISTANCE = 1; 810 static const int INVERSE_DISTANCE = 1;
761 811
812 @DomName('PannerNode.LINEAR_DISTANCE')
813 @DocsEditable
762 static const int LINEAR_DISTANCE = 0; 814 static const int LINEAR_DISTANCE = 0;
763 815
816 @DomName('PannerNode.SOUNDFIELD')
817 @DocsEditable
764 static const int SOUNDFIELD = 2; 818 static const int SOUNDFIELD = 2;
765 819
766 @DomName('PannerNode.coneInnerAngle') 820 @DomName('PannerNode.coneInnerAngle')
767 @DocsEditable 821 @DocsEditable
768 num coneInnerAngle; 822 num coneInnerAngle;
769 823
770 @DomName('PannerNode.coneOuterAngle') 824 @DomName('PannerNode.coneOuterAngle')
771 @DocsEditable 825 @DocsEditable
772 num coneOuterAngle; 826 num coneOuterAngle;
773 827
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 } 921 }
868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
869 // for details. All rights reserved. Use of this source code is governed by a 923 // for details. All rights reserved. Use of this source code is governed by a
870 // BSD-style license that can be found in the LICENSE file. 924 // BSD-style license that can be found in the LICENSE file.
871 925
872 926
873 @DocsEditable 927 @DocsEditable
874 @DomName('WaveTable') 928 @DomName('WaveTable')
875 class WaveTable native "WaveTable" { 929 class WaveTable native "WaveTable" {
876 } 930 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698