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

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

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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: 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 d83acc50b8c2248e00aeb3cb9cfbcc96d7def53c..3c9adbdbc2a05d4c369c84556a18432da7b24eb5 100644
--- a/tools/dom/templates/html/impl/impl_AudioContext.darttemplate
+++ b/tools/dom/templates/html/impl/impl_AudioContext.darttemplate
@@ -6,7 +6,6 @@ part of web_audio;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$!MEMBERS
-$if DART2JS
factory AudioContext() => JS('AudioContext',
'new (window.AudioContext || window.webkitAudioContext)()');
@@ -33,9 +32,7 @@ $if DART2JS
bufferSize);
}
}
-$endif
-$if DART2JS
@JSName('decodeAudioData')
@DomName('AudioContext.decodeAudioData')
@DocsEditable()
@@ -57,21 +54,4 @@ $if DART2JS
});
return completer.future;
}
-$else
- @DomName('AudioContext.decodeAudioData')
- Future<AudioBuffer> decodeAudioData(ByteBuffer audioData,
- [AudioBufferCallback successCallback,
- AudioBufferCallback errorCallback]) {
- if (errorCallback != null) {
- return convertNativePromiseToDartFuture(_blink.BlinkAudioContext.instance.decodeAudioData_Callback_3_(
- this, audioData, successCallback, errorCallback));
- }
- if (successCallback != null) {
- return convertNativePromiseToDartFuture(_blink.BlinkAudioContext.instance
- .decodeAudioData_Callback_2_(this, audioData, successCallback));
- }
- return convertNativePromiseToDartFuture(_blink.BlinkAudioContext.instance
- .decodeAudioData_Callback_1_(this, audioData));
- }
-$endif
}
« no previous file with comments | « tools/dom/templates/html/dartium/web_sql_dartium.darttemplate ('k') | tools/dom/templates/html/impl/impl_Blob.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698