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

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

Issue 138003019: Fix for bug 14923 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_AudioContext.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_AudioContext.darttemplate b/tools/dom/templates/html/impl/impl_AudioContext.darttemplate
index 965b892f7f8f58e931548f0f7c590dcf7856eeb1..1d0f91ef87b2c0ab623a9b38238845bece91e8e5 100644
--- a/tools/dom/templates/html/impl/impl_AudioContext.darttemplate
+++ b/tools/dom/templates/html/impl/impl_AudioContext.darttemplate
@@ -34,4 +34,18 @@ $if DART2JS
}
}
$endif
+ @DomName('AudioContext.decodeAudioData')
+ Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) {
+ var completer = new Completer<AudioBuffer>();
+ _decodeAudioData(audioData,
+ (value) { completer.complete(value); },
+ (error) {
+ if (error == null) {
+ completer.completeError('');
+ } else {
+ completer.completeError(error);
+ }
+ });
+ return completer.future;
+ }
}
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698