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

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

Issue 23889005: Cleaning up a bunch of DOM generation tables (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
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:_collection-dev' hide deprecated; 5 import 'dart:_collection-dev' hide deprecated;
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:nativewrappers'; 8 import 'dart:nativewrappers';
9 import 'dart:typed_data'; 9 import 'dart:typed_data';
10 // DO NOT EDIT 10 // DO NOT EDIT
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 1310
1311 // WARNING: Do not edit - generated code. 1311 // WARNING: Do not edit - generated code.
1312 1312
1313 1313
1314 @DocsEditable() 1314 @DocsEditable()
1315 @DomName('PeriodicWave') 1315 @DomName('PeriodicWave')
1316 @Experimental() // untriaged 1316 @Experimental() // untriaged
1317 class PeriodicWave extends NativeFieldWrapperClass1 { 1317 class PeriodicWave extends NativeFieldWrapperClass1 {
1318 1318
1319 } 1319 }
1320 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1321 // for details. All rights reserved. Use of this source code is governed by a 1321 // for details. All rights reserved. Use of this source code is governed by a
1322 // BSD-style license that can be found in the LICENSE file. 1322 // BSD-style license that can be found in the LICENSE file.
1323 1323
1324 // WARNING: Do not edit - generated code.
1324 1325
1326
1327 @DocsEditable()
1325 @DomName('ScriptProcessorNode') 1328 @DomName('ScriptProcessorNode')
1326 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP rocessorNode 1329 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP rocessorNode
1327 @Experimental() 1330 @Experimental()
1328 class ScriptProcessorNode extends AudioNode { 1331 class ScriptProcessorNode extends AudioNode {
1329 Stream<AudioProcessingEvent> _eventStream;
1330
1331 /**
1332 * Get a Stream that fires events when AudioProcessingEvents occur.
1333 * This particular stream is special in that it only allows one listener to a
1334 * given stream. Converting the returned Stream [asBroadcast] will likely ruin
1335 * the soft-real-time properties which which these events are fired and can
1336 * be processed.
1337 */
1338 Stream<AudioProcessingEvent> get onAudioProcess {
1339 if (_eventStream == null) {
1340 var controller = new StreamController(sync: true);
1341 var callback = (audioData) {
1342 if (controller.hasListener) {
1343 // This stream is a strange combination of broadcast and single
1344 // subscriber streams. We only allow one listener, but if there is
1345 // no listener, we don't queue up events, we just drop them on the
1346 // floor.
1347 controller.add(audioData);
1348 }
1349 };
1350 _setEventListener(callback);
1351 _eventStream = controller.stream;
1352 }
1353 return _eventStream;
1354 }
1355
1356
1357 // To suppress missing implicit constructor warnings. 1332 // To suppress missing implicit constructor warnings.
1358 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); } 1333 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
1359 1334
1335 @DomName('ScriptProcessorNode.audioprocessEvent')
1336 @DocsEditable()
1337 @Experimental() // untriaged
1338 static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = con st EventStreamProvider<AudioProcessingEvent>('audioprocess');
1339
1360 @DomName('ScriptProcessorNode.bufferSize') 1340 @DomName('ScriptProcessorNode.bufferSize')
1361 @DocsEditable() 1341 @DocsEditable()
1362 int get bufferSize native "ScriptProcessorNode_bufferSize_Getter"; 1342 int get bufferSize native "ScriptProcessorNode_bufferSize_Getter";
1363 1343
1364 @DomName('ScriptProcessorNode._setEventListener') 1344 @DomName('ScriptProcessorNode._setEventListener')
1365 @DocsEditable() 1345 @DocsEditable()
1366 @Experimental() // non-standard 1346 @Experimental() // non-standard
1367 void _setEventListener(EventListener eventListener) native "ScriptProcessorNod e__setEventListener_Callback"; 1347 void _setEventListener(EventListener eventListener) native "ScriptProcessorNod e__setEventListener_Callback";
1368 1348
1349 /**
1350 * Get a Stream that fires events when AudioProcessingEvents occur.
1351 * This particular stream is special in that it only allows one listener to a
1352 * given stream. Converting the returned Stream [asBroadcast] will likely ruin
1353 * the soft-real-time properties which which these events are fired and can
1354 * be processed.
1355 */
1356 @DomName('ScriptProcessorNode.onaudioprocess')
1357 @DocsEditable()
1358 @Experimental() // untriaged
1359 Stream<AudioProcessingEvent> get onAudioProcess => audioProcessEvent.forTarget (this);
1360
1369 } 1361 }
1370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1362 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1371 // for details. All rights reserved. Use of this source code is governed by a 1363 // for details. All rights reserved. Use of this source code is governed by a
1372 // BSD-style license that can be found in the LICENSE file. 1364 // BSD-style license that can be found in the LICENSE file.
1373 1365
1374 // WARNING: Do not edit - generated code. 1366 // WARNING: Do not edit - generated code.
1375 1367
1376 1368
1377 @DocsEditable() 1369 @DocsEditable()
1378 @DomName('WaveShaperNode') 1370 @DomName('WaveShaperNode')
(...skipping 13 matching lines...) Expand all
1392 1384
1393 @DomName('WaveShaperNode.oversample') 1385 @DomName('WaveShaperNode.oversample')
1394 @DocsEditable() 1386 @DocsEditable()
1395 String get oversample native "WaveShaperNode_oversample_Getter"; 1387 String get oversample native "WaveShaperNode_oversample_Getter";
1396 1388
1397 @DomName('WaveShaperNode.oversample') 1389 @DomName('WaveShaperNode.oversample')
1398 @DocsEditable() 1390 @DocsEditable()
1399 void set oversample(String value) native "WaveShaperNode_oversample_Setter"; 1391 void set oversample(String value) native "WaveShaperNode_oversample_Setter";
1400 1392
1401 } 1393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698