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

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

Issue 27033009: Making all base class DOM types throw as well (to prevent a default constructor for DOM types that … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 /** 1 /**
2 * High-fidelity audio programming in the browser. 2 * High-fidelity audio programming in the browser.
3 */ 3 */
4 library dart.dom.web_audio; 4 library dart.dom.web_audio;
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:_collection-dev' hide deprecated; 8 import 'dart:_collection-dev' hide deprecated;
9 import 'dart:html'; 9 import 'dart:html';
10 import 'dart:html_common'; 10 import 'dart:html_common';
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 67 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
68 // for details. All rights reserved. Use of this source code is governed by a 68 // for details. All rights reserved. Use of this source code is governed by a
69 // BSD-style license that can be found in the LICENSE file. 69 // BSD-style license that can be found in the LICENSE file.
70 70
71 71
72 @DocsEditable() 72 @DocsEditable()
73 @DomName('AudioBuffer') 73 @DomName('AudioBuffer')
74 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section 74 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section
75 @Experimental() 75 @Experimental()
76 class AudioBuffer extends Interceptor native "AudioBuffer" { 76 class AudioBuffer extends Interceptor native "AudioBuffer" {
77 // To suppress missing implicit constructor warnings.
78 factory AudioBuffer._() { throw new UnsupportedError("Not supported"); }
77 79
78 @DomName('AudioBuffer.duration') 80 @DomName('AudioBuffer.duration')
79 @DocsEditable() 81 @DocsEditable()
80 final double duration; 82 final double duration;
81 83
82 @DomName('AudioBuffer.gain') 84 @DomName('AudioBuffer.gain')
83 @DocsEditable() 85 @DocsEditable()
84 num gain; 86 num gain;
85 87
86 @DomName('AudioBuffer.length') 88 @DomName('AudioBuffer.length')
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 413 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
412 // for details. All rights reserved. Use of this source code is governed by a 414 // for details. All rights reserved. Use of this source code is governed by a
413 // BSD-style license that can be found in the LICENSE file. 415 // BSD-style license that can be found in the LICENSE file.
414 416
415 417
416 @DocsEditable() 418 @DocsEditable()
417 @DomName('AudioListener') 419 @DomName('AudioListener')
418 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi stener-section 420 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi stener-section
419 @Experimental() 421 @Experimental()
420 class AudioListener extends Interceptor native "AudioListener" { 422 class AudioListener extends Interceptor native "AudioListener" {
423 // To suppress missing implicit constructor warnings.
424 factory AudioListener._() { throw new UnsupportedError("Not supported"); }
421 425
422 @DomName('AudioListener.dopplerFactor') 426 @DomName('AudioListener.dopplerFactor')
423 @DocsEditable() 427 @DocsEditable()
424 num dopplerFactor; 428 num dopplerFactor;
425 429
426 @DomName('AudioListener.speedOfSound') 430 @DomName('AudioListener.speedOfSound')
427 @DocsEditable() 431 @DocsEditable()
428 num speedOfSound; 432 num speedOfSound;
429 433
430 @DomName('AudioListener.setOrientation') 434 @DomName('AudioListener.setOrientation')
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
496 // for details. All rights reserved. Use of this source code is governed by a 500 // for details. All rights reserved. Use of this source code is governed by a
497 // BSD-style license that can be found in the LICENSE file. 501 // BSD-style license that can be found in the LICENSE file.
498 502
499 503
500 @DocsEditable() 504 @DocsEditable()
501 @DomName('AudioParam') 505 @DomName('AudioParam')
502 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram 506 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram
503 @Experimental() 507 @Experimental()
504 class AudioParam extends Interceptor native "AudioParam" { 508 class AudioParam extends Interceptor native "AudioParam" {
509 // To suppress missing implicit constructor warnings.
510 factory AudioParam._() { throw new UnsupportedError("Not supported"); }
505 511
506 @DomName('AudioParam.defaultValue') 512 @DomName('AudioParam.defaultValue')
507 @DocsEditable() 513 @DocsEditable()
508 final double defaultValue; 514 final double defaultValue;
509 515
510 @DomName('AudioParam.maxValue') 516 @DomName('AudioParam.maxValue')
511 @DocsEditable() 517 @DocsEditable()
512 final double maxValue; 518 final double maxValue;
513 519
514 @DomName('AudioParam.minValue') 520 @DomName('AudioParam.minValue')
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 } 1072 }
1067 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1073 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1068 // for details. All rights reserved. Use of this source code is governed by a 1074 // for details. All rights reserved. Use of this source code is governed by a
1069 // BSD-style license that can be found in the LICENSE file. 1075 // BSD-style license that can be found in the LICENSE file.
1070 1076
1071 1077
1072 @DocsEditable() 1078 @DocsEditable()
1073 @DomName('PeriodicWave') 1079 @DomName('PeriodicWave')
1074 @Experimental() // untriaged 1080 @Experimental() // untriaged
1075 class PeriodicWave extends Interceptor native "PeriodicWave" { 1081 class PeriodicWave extends Interceptor native "PeriodicWave" {
1082 // To suppress missing implicit constructor warnings.
1083 factory PeriodicWave._() { throw new UnsupportedError("Not supported"); }
1076 } 1084 }
1077 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1085 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1078 // for details. All rights reserved. Use of this source code is governed by a 1086 // for details. All rights reserved. Use of this source code is governed by a
1079 // BSD-style license that can be found in the LICENSE file. 1087 // BSD-style license that can be found in the LICENSE file.
1080 1088
1081 1089
1082 @DocsEditable() 1090 @DocsEditable()
1083 @DomName('ScriptProcessorNode') 1091 @DomName('ScriptProcessorNode')
1084 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP rocessorNode 1092 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP rocessorNode
1085 @Experimental() 1093 @Experimental()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } 1130 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); }
1123 1131
1124 @DomName('WaveShaperNode.curve') 1132 @DomName('WaveShaperNode.curve')
1125 @DocsEditable() 1133 @DocsEditable()
1126 Float32List curve; 1134 Float32List curve;
1127 1135
1128 @DomName('WaveShaperNode.oversample') 1136 @DomName('WaveShaperNode.oversample')
1129 @DocsEditable() 1137 @DocsEditable()
1130 String oversample; 1138 String oversample;
1131 } 1139 }
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