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

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

Issue 22933003: Removing overloaded operations in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/dart2js/svg_dart2js.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('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' hide deprecated; 5 import 'dart:_collection-dev' hide deprecated;
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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 _decodeAudioData(audioData, 350 _decodeAudioData(audioData,
351 (value) { completer.complete(value); }, 351 (value) { completer.complete(value); },
352 (error) { completer.completeError(error); }); 352 (error) { completer.completeError(error); });
353 return completer.future; 353 return completer.future;
354 } 354 }
355 355
356 @DomName('AudioContext.startRendering') 356 @DomName('AudioContext.startRendering')
357 @DocsEditable() 357 @DocsEditable()
358 void startRendering() native; 358 void startRendering() native;
359 359
360 // From EventTarget
361
362 @JSName('addEventListener')
363 @DomName('AudioContext.addEventListener')
364 @DocsEditable()
365 @Experimental() // untriaged
366 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
367
368 @DomName('AudioContext.dispatchEvent')
369 @DocsEditable()
370 @Experimental() // untriaged
371 bool dispatchEvent(Event event) native;
372
373 @JSName('removeEventListener')
374 @DomName('AudioContext.removeEventListener')
375 @DocsEditable()
376 @Experimental() // untriaged
377 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
378
379 @DomName('AudioContext.oncomplete') 360 @DomName('AudioContext.oncomplete')
380 @DocsEditable() 361 @DocsEditable()
381 Stream<Event> get onComplete => completeEvent.forTarget(this); 362 Stream<Event> get onComplete => completeEvent.forTarget(this);
382 363
383 factory AudioContext() => JS('AudioContext', 364 factory AudioContext() => JS('AudioContext',
384 'new (window.AudioContext || window.webkitAudioContext)()'); 365 'new (window.AudioContext || window.webkitAudioContext)()');
385 366
386 GainNode createGain() { 367 GainNode createGain() {
387 if (JS('bool', '#.createGain !== undefined', this)) { 368 if (JS('bool', '#.createGain !== undefined', this)) {
388 return JS('GainNode', '#.createGain()', this); 369 return JS('GainNode', '#.createGain()', this);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 474
494 @JSName('connect') 475 @JSName('connect')
495 @DomName('AudioNode.connect') 476 @DomName('AudioNode.connect')
496 @DocsEditable() 477 @DocsEditable()
497 void $dom_connect(destination, int output, [int input]) native; 478 void $dom_connect(destination, int output, [int input]) native;
498 479
499 @DomName('AudioNode.disconnect') 480 @DomName('AudioNode.disconnect')
500 @DocsEditable() 481 @DocsEditable()
501 void disconnect(int output) native; 482 void disconnect(int output) native;
502 483
503 // From EventTarget
504
505 @JSName('addEventListener')
506 @DomName('AudioNode.addEventListener')
507 @DocsEditable()
508 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
509
510 @DomName('AudioNode.dispatchEvent')
511 @DocsEditable()
512 bool dispatchEvent(Event event) native;
513
514 @JSName('removeEventListener')
515 @DomName('AudioNode.removeEventListener')
516 @DocsEditable()
517 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
518
519 @DomName('AudioNode.connect') 484 @DomName('AudioNode.connect')
520 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => 485 void connectNode(AudioNode destination, [int output = 0, int input = 0]) =>
521 $dom_connect(destination, output, input); 486 $dom_connect(destination, output, input);
522 487
523 @DomName('AudioNode.connect') 488 @DomName('AudioNode.connect')
524 void connectParam(AudioParam destination, [int output = 0]) => 489 void connectParam(AudioParam destination, [int output = 0]) =>
525 $dom_connect(destination, output); 490 $dom_connect(destination, output);
526 } 491 }
527 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
528 // for details. All rights reserved. Use of this source code is governed by a 493 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } 1134 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); }
1170 1135
1171 @DomName('WaveShaperNode.curve') 1136 @DomName('WaveShaperNode.curve')
1172 @DocsEditable() 1137 @DocsEditable()
1173 Float32List curve; 1138 Float32List curve;
1174 1139
1175 @DomName('WaveShaperNode.oversample') 1140 @DomName('WaveShaperNode.oversample')
1176 @DocsEditable() 1141 @DocsEditable()
1177 String oversample; 1142 String oversample;
1178 } 1143 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698