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

Side by Side Diff: sdk/lib/web_audio/dartium/web_audio_dartium.dart

Issue 14455007: Refactoring DOM annotations and comment generation, adding DOM API triage list (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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:nativewrappers'; 8 import 'dart:nativewrappers';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 _start_2(when, grainOffset); 196 _start_2(when, grainOffset);
197 return; 197 return;
198 } 198 }
199 if ((when is num || when == null) && (grainOffset is num || grainOffset == n ull) && (grainDuration is num || grainDuration == null)) { 199 if ((when is num || when == null) && (grainOffset is num || grainOffset == n ull) && (grainDuration is num || grainDuration == null)) {
200 _start_3(when, grainOffset, grainDuration); 200 _start_3(when, grainOffset, grainDuration);
201 return; 201 return;
202 } 202 }
203 throw new ArgumentError("Incorrect number or type of arguments"); 203 throw new ArgumentError("Incorrect number or type of arguments");
204 } 204 }
205 205
206 @DomName('AudioBufferSourceNode._start_1')
207 @DocsEditable
208 void _start_1(when) native "AudioBufferSourceNode__start_1_Callback"; 206 void _start_1(when) native "AudioBufferSourceNode__start_1_Callback";
209 207
210 @DomName('AudioBufferSourceNode._start_2')
211 @DocsEditable
212 void _start_2(when, grainOffset) native "AudioBufferSourceNode__start_2_Callba ck"; 208 void _start_2(when, grainOffset) native "AudioBufferSourceNode__start_2_Callba ck";
213 209
214 @DomName('AudioBufferSourceNode._start_3')
215 @DocsEditable
216 void _start_3(when, grainOffset, grainDuration) native "AudioBufferSourceNode_ _start_3_Callback"; 210 void _start_3(when, grainOffset, grainDuration) native "AudioBufferSourceNode_ _start_3_Callback";
217 211
218 @DomName('AudioBufferSourceNode.stop') 212 @DomName('AudioBufferSourceNode.stop')
219 @DocsEditable 213 @DocsEditable
220 void stop(num when) native "AudioBufferSourceNode_stop_Callback"; 214 void stop(num when) native "AudioBufferSourceNode_stop_Callback";
221 215
222 } 216 }
223 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 217 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
224 // for details. All rights reserved. Use of this source code is governed by a 218 // for details. All rights reserved. Use of this source code is governed by a
225 // BSD-style license that can be found in the LICENSE file. 219 // BSD-style license that can be found in the LICENSE file.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) { 265 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) {
272 if ((buffer_OR_numberOfChannels is int || buffer_OR_numberOfChannels == null ) && (mixToMono_OR_numberOfFrames is int || mixToMono_OR_numberOfFrames == null) && (sampleRate is num || sampleRate == null)) { 266 if ((buffer_OR_numberOfChannels is int || buffer_OR_numberOfChannels == null ) && (mixToMono_OR_numberOfFrames is int || mixToMono_OR_numberOfFrames == null) && (sampleRate is num || sampleRate == null)) {
273 return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames, sampleRate); 267 return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames, sampleRate);
274 } 268 }
275 if ((buffer_OR_numberOfChannels is ByteBuffer || buffer_OR_numberOfChannels == null) && (mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == null) && !?sampleRate) { 269 if ((buffer_OR_numberOfChannels is ByteBuffer || buffer_OR_numberOfChannels == null) && (mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == null) && !?sampleRate) {
276 return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames); 270 return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames);
277 } 271 }
278 throw new ArgumentError("Incorrect number or type of arguments"); 272 throw new ArgumentError("Incorrect number or type of arguments");
279 } 273 }
280 274
281 @DomName('AudioContext._createBuffer_1')
282 @DocsEditable
283 AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames, sampleRate) native "AudioContext__createBuffer_1_Callback"; 275 AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames, sampleRate) native "AudioContext__createBuffer_1_Callback";
284 276
285 @DomName('AudioContext._createBuffer_2')
286 @DocsEditable
287 AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames) native "AudioContext__createBuffer_2_Callback"; 277 AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames) native "AudioContext__createBuffer_2_Callback";
288 278
289 @DomName('AudioContext.createBufferSource') 279 @DomName('AudioContext.createBufferSource')
290 @DocsEditable 280 @DocsEditable
291 AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSo urce_Callback"; 281 AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSo urce_Callback";
292 282
293 ChannelMergerNode createChannelMerger([int numberOfInputs]) { 283 ChannelMergerNode createChannelMerger([int numberOfInputs]) {
294 if (?numberOfInputs) { 284 if (?numberOfInputs) {
295 return _createChannelMerger_1(numberOfInputs); 285 return _createChannelMerger_1(numberOfInputs);
296 } 286 }
297 return _createChannelMerger_2(); 287 return _createChannelMerger_2();
298 } 288 }
299 289
300 @DomName('AudioContext._createChannelMerger_1')
301 @DocsEditable
302 ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_ _createChannelMerger_1_Callback"; 290 ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_ _createChannelMerger_1_Callback";
303 291
304 @DomName('AudioContext._createChannelMerger_2')
305 @DocsEditable
306 ChannelMergerNode _createChannelMerger_2() native "AudioContext__createChannel Merger_2_Callback"; 292 ChannelMergerNode _createChannelMerger_2() native "AudioContext__createChannel Merger_2_Callback";
307 293
308 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) { 294 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) {
309 if (?numberOfOutputs) { 295 if (?numberOfOutputs) {
310 return _createChannelSplitter_1(numberOfOutputs); 296 return _createChannelSplitter_1(numberOfOutputs);
311 } 297 }
312 return _createChannelSplitter_2(); 298 return _createChannelSplitter_2();
313 } 299 }
314 300
315 @DomName('AudioContext._createChannelSplitter_1')
316 @DocsEditable
317 ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioCon text__createChannelSplitter_1_Callback"; 301 ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioCon text__createChannelSplitter_1_Callback";
318 302
319 @DomName('AudioContext._createChannelSplitter_2')
320 @DocsEditable
321 ChannelSplitterNode _createChannelSplitter_2() native "AudioContext__createCha nnelSplitter_2_Callback"; 303 ChannelSplitterNode _createChannelSplitter_2() native "AudioContext__createCha nnelSplitter_2_Callback";
322 304
323 @DomName('AudioContext.createConvolver') 305 @DomName('AudioContext.createConvolver')
324 @DocsEditable 306 @DocsEditable
325 ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback" ; 307 ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback" ;
326 308
327 DelayNode createDelay([num maxDelayTime]) { 309 DelayNode createDelay([num maxDelayTime]) {
328 if (?maxDelayTime) { 310 if (?maxDelayTime) {
329 return _createDelay_1(maxDelayTime); 311 return _createDelay_1(maxDelayTime);
330 } 312 }
331 return _createDelay_2(); 313 return _createDelay_2();
332 } 314 }
333 315
334 @DomName('AudioContext._createDelay_1')
335 @DocsEditable
336 DelayNode _createDelay_1(maxDelayTime) native "AudioContext__createDelay_1_Cal lback"; 316 DelayNode _createDelay_1(maxDelayTime) native "AudioContext__createDelay_1_Cal lback";
337 317
338 @DomName('AudioContext._createDelay_2')
339 @DocsEditable
340 DelayNode _createDelay_2() native "AudioContext__createDelay_2_Callback"; 318 DelayNode _createDelay_2() native "AudioContext__createDelay_2_Callback";
341 319
342 @DomName('AudioContext.createDynamicsCompressor') 320 @DomName('AudioContext.createDynamicsCompressor')
343 @DocsEditable 321 @DocsEditable
344 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD ynamicsCompressor_Callback"; 322 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD ynamicsCompressor_Callback";
345 323
346 @DomName('AudioContext.createGain') 324 @DomName('AudioContext.createGain')
347 @DocsEditable 325 @DocsEditable
348 GainNode createGain() native "AudioContext_createGain_Callback"; 326 GainNode createGain() native "AudioContext_createGain_Callback";
349 327
(...skipping 20 matching lines...) Expand all
370 ScriptProcessorNode createScriptProcessor(int bufferSize, [int numberOfInputCh annels, int numberOfOutputChannels]) { 348 ScriptProcessorNode createScriptProcessor(int bufferSize, [int numberOfInputCh annels, int numberOfOutputChannels]) {
371 if (?numberOfOutputChannels) { 349 if (?numberOfOutputChannels) {
372 return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberO fOutputChannels); 350 return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberO fOutputChannels);
373 } 351 }
374 if (?numberOfInputChannels) { 352 if (?numberOfInputChannels) {
375 return _createScriptProcessor_2(bufferSize, numberOfInputChannels); 353 return _createScriptProcessor_2(bufferSize, numberOfInputChannels);
376 } 354 }
377 return _createScriptProcessor_3(bufferSize); 355 return _createScriptProcessor_3(bufferSize);
378 } 356 }
379 357
380 @DomName('AudioContext._createScriptProcessor_1')
381 @DocsEditable
382 ScriptProcessorNode _createScriptProcessor_1(bufferSize, numberOfInputChannels , numberOfOutputChannels) native "AudioContext__createScriptProcessor_1_Callback "; 358 ScriptProcessorNode _createScriptProcessor_1(bufferSize, numberOfInputChannels , numberOfOutputChannels) native "AudioContext__createScriptProcessor_1_Callback ";
383 359
384 @DomName('AudioContext._createScriptProcessor_2')
385 @DocsEditable
386 ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels ) native "AudioContext__createScriptProcessor_2_Callback"; 360 ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels ) native "AudioContext__createScriptProcessor_2_Callback";
387 361
388 @DomName('AudioContext._createScriptProcessor_3')
389 @DocsEditable
390 ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_ _createScriptProcessor_3_Callback"; 362 ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_ _createScriptProcessor_3_Callback";
391 363
392 @DomName('AudioContext.createWaveShaper') 364 @DomName('AudioContext.createWaveShaper')
393 @DocsEditable 365 @DocsEditable
394 WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callba ck"; 366 WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callba ck";
395 367
396 @DomName('AudioContext.createWaveTable') 368 @DomName('AudioContext.createWaveTable')
397 @DocsEditable 369 @DocsEditable
398 WaveTable createWaveTable(List<double> real, List<double> imag) native "AudioC ontext_createWaveTable_Callback"; 370 WaveTable createWaveTable(List<double> real, List<double> imag) native "AudioC ontext_createWaveTable_Callback";
399 371
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 _connect_1(destination, output, input); 493 _connect_1(destination, output, input);
522 return; 494 return;
523 } 495 }
524 if ((destination is AudioParam || destination == null) && (output is int || output == null) && !?input) { 496 if ((destination is AudioParam || destination == null) && (output is int || output == null) && !?input) {
525 _connect_2(destination, output); 497 _connect_2(destination, output);
526 return; 498 return;
527 } 499 }
528 throw new ArgumentError("Incorrect number or type of arguments"); 500 throw new ArgumentError("Incorrect number or type of arguments");
529 } 501 }
530 502
531 @DomName('AudioNode._connect_1')
532 @DocsEditable
533 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb ack"; 503 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb ack";
534 504
535 @DomName('AudioNode._connect_2')
536 @DocsEditable
537 void _connect_2(destination, output) native "AudioNode__connect_2_Callback"; 505 void _connect_2(destination, output) native "AudioNode__connect_2_Callback";
538 506
539 @DomName('AudioNode.disconnect') 507 @DomName('AudioNode.disconnect')
540 @DocsEditable 508 @DocsEditable
541 void disconnect(int output) native "AudioNode_disconnect_Callback"; 509 void disconnect(int output) native "AudioNode_disconnect_Callback";
542 510
543 } 511 }
544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
545 // for details. All rights reserved. Use of this source code is governed by a 513 // for details. All rights reserved. Use of this source code is governed by a
546 // BSD-style license that can be found in the LICENSE file. 514 // BSD-style license that can be found in the LICENSE file.
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 1118
1151 // WARNING: Do not edit - generated code. 1119 // WARNING: Do not edit - generated code.
1152 1120
1153 1121
1154 @DocsEditable 1122 @DocsEditable
1155 @DomName('WaveTable') 1123 @DomName('WaveTable')
1156 class WaveTable extends NativeFieldWrapperClass1 { 1124 class WaveTable extends NativeFieldWrapperClass1 {
1157 WaveTable.internal(); 1125 WaveTable.internal();
1158 1126
1159 } 1127 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698