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

Unified Diff: client/html/generated/html/dartium/AudioContext.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: client/html/generated/html/dartium/AudioContext.dart
diff --git a/client/html/generated/html/dartium/AudioContext.dart b/client/html/generated/html/dartium/AudioContext.dart
new file mode 100644
index 0000000000000000000000000000000000000000..81515f06141a0f2531a3e1556573cb82d269cfed
--- /dev/null
+++ b/client/html/generated/html/dartium/AudioContext.dart
@@ -0,0 +1,108 @@
+
+class _AudioContextImpl extends _DOMTypeBase implements AudioContext {
+ _AudioContextImpl._wrap(ptr) : super._wrap(ptr);
+
+ num get currentTime() => _wrap(_ptr.currentTime);
+
+ AudioDestinationNode get destination() => _wrap(_ptr.destination);
+
+ AudioListener get listener() => _wrap(_ptr.listener);
+
+ EventListener get oncomplete() => _wrap(_ptr.oncomplete);
+
+ void set oncomplete(EventListener value) { _ptr.oncomplete = _unwrap(value); }
+
+ num get sampleRate() => _wrap(_ptr.sampleRate);
+
+ RealtimeAnalyserNode createAnalyser() {
+ return _wrap(_ptr.createAnalyser());
+ }
+
+ BiquadFilterNode createBiquadFilter() {
+ return _wrap(_ptr.createBiquadFilter());
+ }
+
+ 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 _wrap(_ptr.createBuffer(_unwrap(buffer_OR_numberOfChannels), _unwrap(mixToMono_OR_numberOfFrames)));
+ }
+ }
+ } else {
+ if (buffer_OR_numberOfChannels is int) {
+ if (mixToMono_OR_numberOfFrames is int) {
+ return _wrap(_ptr.createBuffer(_unwrap(buffer_OR_numberOfChannels), _unwrap(mixToMono_OR_numberOfFrames), _unwrap(sampleRate)));
+ }
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ AudioBufferSourceNode createBufferSource() {
+ return _wrap(_ptr.createBufferSource());
+ }
+
+ AudioChannelMerger createChannelMerger() {
+ return _wrap(_ptr.createChannelMerger());
+ }
+
+ AudioChannelSplitter createChannelSplitter() {
+ return _wrap(_ptr.createChannelSplitter());
+ }
+
+ ConvolverNode createConvolver() {
+ return _wrap(_ptr.createConvolver());
+ }
+
+ DelayNode createDelayNode() {
+ return _wrap(_ptr.createDelayNode());
+ }
+
+ DynamicsCompressorNode createDynamicsCompressor() {
+ return _wrap(_ptr.createDynamicsCompressor());
+ }
+
+ AudioGainNode createGainNode() {
+ return _wrap(_ptr.createGainNode());
+ }
+
+ HighPass2FilterNode createHighPass2Filter() {
+ return _wrap(_ptr.createHighPass2Filter());
+ }
+
+ JavaScriptAudioNode createJavaScriptNode(int bufferSize) {
+ return _wrap(_ptr.createJavaScriptNode(_unwrap(bufferSize)));
+ }
+
+ LowPass2FilterNode createLowPass2Filter() {
+ return _wrap(_ptr.createLowPass2Filter());
+ }
+
+ MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement) {
+ return _wrap(_ptr.createMediaElementSource(_unwrap(mediaElement)));
+ }
+
+ AudioPannerNode createPanner() {
+ return _wrap(_ptr.createPanner());
+ }
+
+ WaveShaperNode createWaveShaper() {
+ return _wrap(_ptr.createWaveShaper());
+ }
+
+ void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallback, [AudioBufferCallback errorCallback = null]) {
+ if (errorCallback === null) {
+ _ptr.decodeAudioData(_unwrap(audioData), _unwrap(successCallback));
+ return;
+ } else {
+ _ptr.decodeAudioData(_unwrap(audioData), _unwrap(successCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+
+ void startRendering() {
+ _ptr.startRendering();
+ return;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698