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

Side by Side Diff: sdk/lib/web_audio/dartium/web_audio_dartium.dart

Issue 12892007: Support for callbacks on ScriptProcessNode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library dart.dom.web_audio; 1 library dart.dom.web_audio;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:nativewrappers'; 7 import 'dart:nativewrappers';
8 import 'dart:typeddata' as _typeddata; 8 import 'dart:typeddata' as _typeddata;
9 // DO NOT EDIT 9 // DO NOT EDIT
10 // Auto-generated dart:audio library. 10 // Auto-generated dart:audio library.
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 var controller = new StreamController(); 1110 var controller = new StreamController();
1111 var callback = (audioData) { 1111 var callback = (audioData) {
1112 if (controller.hasSubscribers) { 1112 if (controller.hasSubscribers) {
1113 // This stream is a strange combination of broadcast and single 1113 // This stream is a strange combination of broadcast and single
1114 // subscriber streams. We only allow one listener, but if there is 1114 // subscriber streams. We only allow one listener, but if there is
1115 // no listener, we don't queue up events, we just drop them on the 1115 // no listener, we don't queue up events, we just drop them on the
1116 // floor. 1116 // floor.
1117 controller.add(audioData); 1117 controller.add(audioData);
1118 } 1118 }
1119 }; 1119 };
1120 // TODO(podivilov): Implement on Dartium. 1120 _setEventListener(callback);
1121
1122 _eventStream = controller.stream; 1121 _eventStream = controller.stream;
1123 } 1122 }
1124 return _eventStream; 1123 return _eventStream;
1125 } 1124 }
1125
1126
1126 ScriptProcessorNode.internal() : super.internal(); 1127 ScriptProcessorNode.internal() : super.internal();
1127 1128
1128 @DomName('ScriptProcessorNode.bufferSize') 1129 @DomName('ScriptProcessorNode.bufferSize')
1129 @DocsEditable 1130 @DocsEditable
1130 int get bufferSize native "ScriptProcessorNode_bufferSize_Getter"; 1131 int get bufferSize native "ScriptProcessorNode_bufferSize_Getter";
1131 1132
1133 @DomName('ScriptProcessorNode._setEventListener')
1134 @DocsEditable
1135 void _setEventListener(EventListener eventListener) native "ScriptProcessorNod e__setEventListener_Callback";
1136
1132 } 1137 }
1133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1134 // for details. All rights reserved. Use of this source code is governed by a 1139 // for details. All rights reserved. Use of this source code is governed by a
1135 // BSD-style license that can be found in the LICENSE file. 1140 // BSD-style license that can be found in the LICENSE file.
1136 1141
1137 // WARNING: Do not edit - generated code. 1142 // WARNING: Do not edit - generated code.
1138 1143
1139 1144
1140 @DocsEditable 1145 @DocsEditable
1141 @DomName('WaveShaperNode') 1146 @DomName('WaveShaperNode')
(...skipping 15 matching lines...) Expand all
1157 1162
1158 // WARNING: Do not edit - generated code. 1163 // WARNING: Do not edit - generated code.
1159 1164
1160 1165
1161 @DocsEditable 1166 @DocsEditable
1162 @DomName('WaveTable') 1167 @DomName('WaveTable')
1163 class WaveTable extends NativeFieldWrapperClass1 { 1168 class WaveTable extends NativeFieldWrapperClass1 {
1164 WaveTable.internal(); 1169 WaveTable.internal();
1165 1170
1166 } 1171 }
OLDNEW
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698