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

Unified Diff: client/dom/generated/src/wrapping/_AudioContextWrappingImplementation.dart

Issue 9167039: WebKit refresh (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 8 years, 11 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: client/dom/generated/src/wrapping/_AudioContextWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_AudioContextWrappingImplementation.dart b/client/dom/generated/src/wrapping/_AudioContextWrappingImplementation.dart
index 44c453fb7e215c10dccfb47b581efdd33005fc60..e63db66957732e5a1fb1d2387f26d7a646593a8b 100644
--- a/client/dom/generated/src/wrapping/_AudioContextWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_AudioContextWrappingImplementation.dart
@@ -39,10 +39,24 @@ class _AudioContextWrappingImplementation extends DOMWrapperBase implements Audi
}
static BiquadFilterNode _createBiquadFilter(receiver) native;
- AudioBuffer createBuffer() {
- return _createBuffer(this);
+ AudioBuffer createBuffer(var buffer_OR_numberOfChannels, var mixToMono_OR_numberOfFrames, [num sampleRate = null]) {
+ if (buffer_OR_numberOfChannels is ArrayBuffer) {
+ if (mixToMono_OR_numberOfFrames is bool) {
+ if (sampleRate === null) {
+ return _createBuffer(this, buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames);
+ }
+ }
+ } else {
+ if (buffer_OR_numberOfChannels is int) {
+ if (mixToMono_OR_numberOfFrames is int) {
+ return _createBuffer_2(this, buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, sampleRate);
+ }
+ }
+ }
+ throw "Incorrect number or type of arguments";
}
- static AudioBuffer _createBuffer(receiver) native;
+ static AudioBuffer _createBuffer(receiver, buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames) native;
+ static AudioBuffer _createBuffer_2(receiver, buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, sampleRate) native;
AudioBufferSourceNode createBufferSource() {
return _createBufferSource(this);

Powered by Google App Engine
This is Rietveld 408576698