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

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

Issue 18577002: Reapply expanding overloaded functions into separate functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 @DomName('AudioContext.createAnalyser') 248 @DomName('AudioContext.createAnalyser')
249 @DocsEditable() 249 @DocsEditable()
250 AnalyserNode createAnalyser() native; 250 AnalyserNode createAnalyser() native;
251 251
252 @DomName('AudioContext.createBiquadFilter') 252 @DomName('AudioContext.createBiquadFilter')
253 @DocsEditable() 253 @DocsEditable()
254 BiquadFilterNode createBiquadFilter() native; 254 BiquadFilterNode createBiquadFilter() native;
255 255
256 @DomName('AudioContext.createBuffer') 256 @DomName('AudioContext.createBuffer')
257 @DocsEditable() 257 @DocsEditable()
258 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [num sampleRate]) native; 258 AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleR ate) native;
259
260 @JSName('createBuffer')
261 @DomName('AudioContext.createBuffer')
262 @DocsEditable()
263 AudioBuffer createBufferFromBuffer(ByteBuffer buffer, bool mixToMono) native;
259 264
260 @DomName('AudioContext.createBufferSource') 265 @DomName('AudioContext.createBufferSource')
261 @DocsEditable() 266 @DocsEditable()
262 AudioBufferSourceNode createBufferSource() native; 267 AudioBufferSourceNode createBufferSource() native;
263 268
264 @DomName('AudioContext.createChannelMerger') 269 @DomName('AudioContext.createChannelMerger')
265 @DocsEditable() 270 @DocsEditable()
266 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; 271 ChannelMergerNode createChannelMerger([int numberOfInputs]) native;
267 272
268 @DomName('AudioContext.createChannelSplitter') 273 @DomName('AudioContext.createChannelSplitter')
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 411
407 @DomName('AudioListener.setVelocity') 412 @DomName('AudioListener.setVelocity')
408 @DocsEditable() 413 @DocsEditable()
409 void setVelocity(num x, num y, num z) native; 414 void setVelocity(num x, num y, num z) native;
410 } 415 }
411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 416 // 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 417 // 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. 418 // BSD-style license that can be found in the LICENSE file.
414 419
415 420
416 @DocsEditable()
417 @DomName('AudioNode') 421 @DomName('AudioNode')
418 // 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
419 @Experimental() 423 @Experimental()
420 class AudioNode extends EventTarget native "AudioNode" { 424 class AudioNode extends EventTarget native "AudioNode" {
421 // To suppress missing implicit constructor warnings. 425 // To suppress missing implicit constructor warnings.
422 factory AudioNode._() { throw new UnsupportedError("Not supported"); } 426 factory AudioNode._() { throw new UnsupportedError("Not supported"); }
423 427
424 @DomName('AudioNode.channelCount') 428 @DomName('AudioNode.channelCount')
425 @DocsEditable() 429 @DocsEditable()
426 int channelCount; 430 int channelCount;
(...skipping 16 matching lines...) Expand all
443 447
444 @DomName('AudioNode.numberOfOutputs') 448 @DomName('AudioNode.numberOfOutputs')
445 @DocsEditable() 449 @DocsEditable()
446 final int numberOfOutputs; 450 final int numberOfOutputs;
447 451
448 @JSName('addEventListener') 452 @JSName('addEventListener')
449 @DomName('AudioNode.addEventListener') 453 @DomName('AudioNode.addEventListener')
450 @DocsEditable() 454 @DocsEditable()
451 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 455 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
452 456
457 @JSName('connect')
453 @DomName('AudioNode.connect') 458 @DomName('AudioNode.connect')
454 @DocsEditable() 459 @DocsEditable()
455 void connect(destination, int output, [int input]) native; 460 void $dom_connect(destination, int output, [int input]) native;
456 461
457 @DomName('AudioNode.disconnect') 462 @DomName('AudioNode.disconnect')
458 @DocsEditable() 463 @DocsEditable()
459 void disconnect(int output) native; 464 void disconnect(int output) native;
460 465
461 @DomName('AudioNode.dispatchEvent') 466 @DomName('AudioNode.dispatchEvent')
462 @DocsEditable() 467 @DocsEditable()
463 bool dispatchEvent(Event event) native; 468 bool dispatchEvent(Event event) native;
464 469
465 @JSName('removeEventListener') 470 @JSName('removeEventListener')
466 @DomName('AudioNode.removeEventListener') 471 @DomName('AudioNode.removeEventListener')
467 @DocsEditable() 472 @DocsEditable()
468 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 473 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
474
475 @DomName('AudioNode.connect')
476 void connectNode(AudioNode destination, [int output = 0, int input = 0]) =>
477 $dom_connect(destination, output, input);
478
479 @DomName('AudioNode.connect')
480 void connectParam(AudioParam destination, [int output = 0]) =>
481 $dom_connect(destination, output);
469 } 482 }
470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 483 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
471 // for details. All rights reserved. Use of this source code is governed by a 484 // for details. All rights reserved. Use of this source code is governed by a
472 // BSD-style license that can be found in the LICENSE file. 485 // BSD-style license that can be found in the LICENSE file.
473 486
474 487
475 @DocsEditable() 488 @DocsEditable()
476 @DomName('AudioParam') 489 @DomName('AudioParam')
477 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram 490 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram
478 @Experimental() 491 @Experimental()
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 // for details. All rights reserved. Use of this source code is governed by a 1115 // for details. All rights reserved. Use of this source code is governed by a
1103 // BSD-style license that can be found in the LICENSE file. 1116 // BSD-style license that can be found in the LICENSE file.
1104 1117
1105 1118
1106 @DocsEditable() 1119 @DocsEditable()
1107 @DomName('WaveTable') 1120 @DomName('WaveTable')
1108 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section 1121 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section
1109 @Experimental() 1122 @Experimental()
1110 class WaveTable extends Interceptor native "WaveTable" { 1123 class WaveTable extends Interceptor native "WaveTable" {
1111 } 1124 }
OLDNEW
« no previous file with comments | « sdk/lib/indexed_db/dartium/indexed_db_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