Chromium Code Reviews

Unified Diff: tools/dom/templates/html/impl/impl_AudioNode.darttemplate

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.
Jump to:
View side-by-side diff with in-line comments
Index: tools/dom/templates/html/impl/impl_AudioNode.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_AudioNode.darttemplate b/tools/dom/templates/html/impl/impl_AudioNode.darttemplate
new file mode 100644
index 0000000000000000000000000000000000000000..ec6ee5db1cdc1e7992051fb1a1a2a284429f73ec
--- /dev/null
+++ b/tools/dom/templates/html/impl/impl_AudioNode.darttemplate
@@ -0,0 +1,16 @@
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+part of web_audio;
+
+$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
+$!MEMBERS
+ @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);
+}

Powered by Google App Engine