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

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

Issue 16494002: Expand overloaded methods and optional parameters in the html library. (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;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 @DomName('AudioContext.createAnalyser') 242 @DomName('AudioContext.createAnalyser')
243 @DocsEditable 243 @DocsEditable
244 AnalyserNode createAnalyser() native; 244 AnalyserNode createAnalyser() native;
245 245
246 @DomName('AudioContext.createBiquadFilter') 246 @DomName('AudioContext.createBiquadFilter')
247 @DocsEditable 247 @DocsEditable
248 BiquadFilterNode createBiquadFilter() native; 248 BiquadFilterNode createBiquadFilter() native;
249 249
250 @DomName('AudioContext.createBuffer') 250 @DomName('AudioContext.createBuffer')
251 @DocsEditable 251 @DocsEditable
252 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) native; 252 AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleR ate) native;
253
254 @JSName('createBuffer')
255 @DomName('AudioContext.createBuffer')
256 @DocsEditable
257 AudioBuffer createBufferFromBuffer(ByteBuffer buffer, bool mixToMono) native;
253 258
254 @DomName('AudioContext.createBufferSource') 259 @DomName('AudioContext.createBufferSource')
255 @DocsEditable 260 @DocsEditable
256 AudioBufferSourceNode createBufferSource() native; 261 AudioBufferSourceNode createBufferSource() native;
257 262
258 @DomName('AudioContext.createChannelMerger') 263 @DomName('AudioContext.createChannelMerger')
259 @DocsEditable 264 @DocsEditable
260 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; 265 ChannelMergerNode createChannelMerger([int numberOfInputs]) native;
261 266
262 @DomName('AudioContext.createChannelSplitter') 267 @DomName('AudioContext.createChannelSplitter')
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 403
399 @DomName('AudioListener.setVelocity') 404 @DomName('AudioListener.setVelocity')
400 @DocsEditable 405 @DocsEditable
401 void setVelocity(num x, num y, num z) native; 406 void setVelocity(num x, num y, num z) native;
402 } 407 }
403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 408 // 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 409 // 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. 410 // BSD-style license that can be found in the LICENSE file.
406 411
407 412
408 @DocsEditable
409 @DomName('AudioNode') 413 @DomName('AudioNode')
410 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section 414 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section
411 @Experimental 415 @Experimental
412 class AudioNode extends EventTarget native "AudioNode" { 416 class AudioNode extends EventTarget native "AudioNode" {
413 417
414 @DomName('AudioNode.channelCount') 418 @DomName('AudioNode.channelCount')
415 @DocsEditable 419 @DocsEditable
416 int channelCount; 420 int channelCount;
417 421
418 @DomName('AudioNode.channelCountMode') 422 @DomName('AudioNode.channelCountMode')
(...skipping 14 matching lines...) Expand all
433 437
434 @DomName('AudioNode.numberOfOutputs') 438 @DomName('AudioNode.numberOfOutputs')
435 @DocsEditable 439 @DocsEditable
436 final int numberOfOutputs; 440 final int numberOfOutputs;
437 441
438 @JSName('addEventListener') 442 @JSName('addEventListener')
439 @DomName('AudioNode.addEventListener') 443 @DomName('AudioNode.addEventListener')
440 @DocsEditable 444 @DocsEditable
441 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 445 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
442 446
447 @JSName('connect')
443 @DomName('AudioNode.connect') 448 @DomName('AudioNode.connect')
444 @DocsEditable 449 @DocsEditable
445 void connect(destination, int output, [int input]) native; 450 void $dom_connect(destination, int output, [int input]) native;
446 451
447 @DomName('AudioNode.disconnect') 452 @DomName('AudioNode.disconnect')
448 @DocsEditable 453 @DocsEditable
449 void disconnect(int output) native; 454 void disconnect(int output) native;
450 455
451 @DomName('AudioNode.dispatchEvent') 456 @DomName('AudioNode.dispatchEvent')
452 @DocsEditable 457 @DocsEditable
453 bool dispatchEvent(Event event) native; 458 bool dispatchEvent(Event event) native;
454 459
455 @JSName('removeEventListener') 460 @JSName('removeEventListener')
456 @DomName('AudioNode.removeEventListener') 461 @DomName('AudioNode.removeEventListener')
457 @DocsEditable 462 @DocsEditable
458 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 463 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
464
465 @DomName('AudioNode.connect')
466 void connectNode(AudioNode destination, [int output = 0, int input = 0]) =>
467 $dom_connect(destination, output, input);
468
469 @DomName('AudioNode.connect')
470 void connectParam(AudioParam destination, [int output = 0]) =>
471 $dom_connect(destination, output);
459 } 472 }
460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 473 // 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 474 // 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. 475 // BSD-style license that can be found in the LICENSE file.
463 476
464 477
465 @DocsEditable 478 @DocsEditable
466 @DomName('AudioParam') 479 @DomName('AudioParam')
467 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram 480 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram
468 @Experimental 481 @Experimental
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 // for details. All rights reserved. Use of this source code is governed by a 1070 // for details. All rights reserved. Use of this source code is governed by a
1058 // BSD-style license that can be found in the LICENSE file. 1071 // BSD-style license that can be found in the LICENSE file.
1059 1072
1060 1073
1061 @DocsEditable 1074 @DocsEditable
1062 @DomName('WaveTable') 1075 @DomName('WaveTable')
1063 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section 1076 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section
1064 @Experimental 1077 @Experimental
1065 class WaveTable native "WaveTable" { 1078 class WaveTable native "WaveTable" {
1066 } 1079 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698