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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
diff --git a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
index 3cec0dd7b2db24d7158c854d4714548253192113..a1a217c0fdc2139a8ed3302cc3378ec0d76996da 100644
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
@@ -249,7 +249,12 @@ class AudioContext extends EventTarget native "AudioContext" {
@DomName('AudioContext.createBuffer')
@DocsEditable
- AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, [num sampleRate]) native;
+ AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleRate) native;
+
+ @JSName('createBuffer')
+ @DomName('AudioContext.createBuffer')
+ @DocsEditable
+ AudioBuffer createBufferFromBuffer(ByteBuffer buffer, bool mixToMono) native;
@DomName('AudioContext.createBufferSource')
@DocsEditable
@@ -405,7 +410,6 @@ class AudioListener native "AudioListener" {
// BSD-style license that can be found in the LICENSE file.
-@DocsEditable
@DomName('AudioNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNode-section
@Experimental
@@ -440,9 +444,10 @@ class AudioNode extends EventTarget native "AudioNode" {
@DocsEditable
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native;
+ @JSName('connect')
@DomName('AudioNode.connect')
@DocsEditable
- void connect(destination, int output, [int input]) native;
+ void $dom_connect(destination, int output, [int input]) native;
@DomName('AudioNode.disconnect')
@DocsEditable
@@ -456,6 +461,14 @@ class AudioNode extends EventTarget native "AudioNode" {
@DomName('AudioNode.removeEventListener')
@DocsEditable
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native;
+
+ @DomName('AudioNode.connect')
+ void connectNode(AudioNode destination, [int output = 0, int input = 0]) =>
+ $dom_connect(destination, output, input);
+
+ @DomName('AudioNode.connect')
+ void connectParam(AudioParam destination, [int output = 0]) =>
+ $dom_connect(destination, output);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« 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