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

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

Issue 671023003: More dart:blink entry point tweaks (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Static permission getter Created 6 years, 1 month 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:_internal' hide deprecated; 5 import 'dart:_internal' 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 import 'dart:_blink' as _blink; 10 import 'dart:_blink' as _blink;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 return; 231 return;
232 } 232 }
233 if (grainOffset != null) { 233 if (grainOffset != null) {
234 _blink.BlinkAudioBufferSourceNode.start_Callback_2(this, when, grainOffset ); 234 _blink.BlinkAudioBufferSourceNode.start_Callback_2(this, when, grainOffset );
235 return; 235 return;
236 } 236 }
237 if (when != null) { 237 if (when != null) {
238 _blink.BlinkAudioBufferSourceNode.start_Callback_1(this, when); 238 _blink.BlinkAudioBufferSourceNode.start_Callback_1(this, when);
239 return; 239 return;
240 } 240 }
241 _blink.BlinkAudioBufferSourceNode.start_Callback(this); 241 _blink.BlinkAudioBufferSourceNode.start_Callback_0(this);
242 return; 242 return;
243 } 243 }
244 244
245 void stop([num when]) { 245 void stop([num when]) {
246 if (when != null) { 246 if (when != null) {
247 _blink.BlinkAudioBufferSourceNode.stop_Callback_1(this, when); 247 _blink.BlinkAudioBufferSourceNode.stop_Callback_1(this, when);
248 return; 248 return;
249 } 249 }
250 _blink.BlinkAudioBufferSourceNode.stop_Callback(this); 250 _blink.BlinkAudioBufferSourceNode.stop_Callback_0(this);
251 return; 251 return;
252 } 252 }
253 253
254 /// Stream of `ended` events handled by this [AudioBufferSourceNode]. 254 /// Stream of `ended` events handled by this [AudioBufferSourceNode].
255 @DomName('AudioBufferSourceNode.onended') 255 @DomName('AudioBufferSourceNode.onended')
256 @DocsEditable() 256 @DocsEditable()
257 @Experimental() // untriaged 257 @Experimental() // untriaged
258 Stream<Event> get onEnded => endedEvent.forTarget(this); 258 Stream<Event> get onEnded => endedEvent.forTarget(this);
259 259
260 } 260 }
(...skipping 17 matching lines...) Expand all
278 * 278 *
279 * See [EventStreamProvider] for usage information. 279 * See [EventStreamProvider] for usage information.
280 */ 280 */
281 @DomName('AudioContext.completeEvent') 281 @DomName('AudioContext.completeEvent')
282 @DocsEditable() 282 @DocsEditable()
283 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete'); 283 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete');
284 284
285 @DomName('AudioContext.AudioContext') 285 @DomName('AudioContext.AudioContext')
286 @DocsEditable() 286 @DocsEditable()
287 factory AudioContext() { 287 factory AudioContext() {
288 return _blink.BlinkAudioContext.constructorCallback(); 288 return _blink.BlinkAudioContext.constructorCallback_0();
289 } 289 }
290 290
291 /// Checks if this type is supported on the current platform. 291 /// Checks if this type is supported on the current platform.
292 static bool get supported => true; 292 static bool get supported => true;
293 293
294 @DomName('AudioContext.currentTime') 294 @DomName('AudioContext.currentTime')
295 @DocsEditable() 295 @DocsEditable()
296 double get currentTime => _blink.BlinkAudioContext.currentTime_Getter(this); 296 double get currentTime => _blink.BlinkAudioContext.currentTime_Getter(this);
297 297
298 @DomName('AudioContext.destination') 298 @DomName('AudioContext.destination')
299 @DocsEditable() 299 @DocsEditable()
300 AudioDestinationNode get destination => _blink.BlinkAudioContext.destination_G etter(this); 300 AudioDestinationNode get destination => _blink.BlinkAudioContext.destination_G etter(this);
301 301
302 @DomName('AudioContext.listener') 302 @DomName('AudioContext.listener')
303 @DocsEditable() 303 @DocsEditable()
304 AudioListener get listener => _blink.BlinkAudioContext.listener_Getter(this); 304 AudioListener get listener => _blink.BlinkAudioContext.listener_Getter(this);
305 305
306 @DomName('AudioContext.sampleRate') 306 @DomName('AudioContext.sampleRate')
307 @DocsEditable() 307 @DocsEditable()
308 double get sampleRate => _blink.BlinkAudioContext.sampleRate_Getter(this); 308 double get sampleRate => _blink.BlinkAudioContext.sampleRate_Getter(this);
309 309
310 @DomName('AudioContext.createAnalyser') 310 @DomName('AudioContext.createAnalyser')
311 @DocsEditable() 311 @DocsEditable()
312 AnalyserNode createAnalyser() => _blink.BlinkAudioContext.createAnalyser_Callb ack(this); 312 AnalyserNode createAnalyser() => _blink.BlinkAudioContext.createAnalyser_Callb ack_0(this);
313 313
314 @DomName('AudioContext.createBiquadFilter') 314 @DomName('AudioContext.createBiquadFilter')
315 @DocsEditable() 315 @DocsEditable()
316 BiquadFilterNode createBiquadFilter() => _blink.BlinkAudioContext.createBiquad Filter_Callback(this); 316 BiquadFilterNode createBiquadFilter() => _blink.BlinkAudioContext.createBiquad Filter_Callback_0(this);
317 317
318 @DomName('AudioContext.createBuffer') 318 @DomName('AudioContext.createBuffer')
319 @DocsEditable() 319 @DocsEditable()
320 AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleR ate) => _blink.BlinkAudioContext.createBuffer_Callback_3(this, numberOfChannels, numberOfFrames, sampleRate); 320 AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleR ate) => _blink.BlinkAudioContext.createBuffer_Callback_3(this, numberOfChannels, numberOfFrames, sampleRate);
321 321
322 @DomName('AudioContext.createBufferSource') 322 @DomName('AudioContext.createBufferSource')
323 @DocsEditable() 323 @DocsEditable()
324 AudioBufferSourceNode createBufferSource() => _blink.BlinkAudioContext.createB ufferSource_Callback(this); 324 AudioBufferSourceNode createBufferSource() => _blink.BlinkAudioContext.createB ufferSource_Callback_0(this);
325 325
326 ChannelMergerNode createChannelMerger([int numberOfInputs]) { 326 ChannelMergerNode createChannelMerger([int numberOfInputs]) {
327 if (numberOfInputs != null) { 327 if (numberOfInputs != null) {
328 return _blink.BlinkAudioContext.createChannelMerger_Callback_1(this, numbe rOfInputs); 328 return _blink.BlinkAudioContext.createChannelMerger_Callback_1(this, numbe rOfInputs);
329 } 329 }
330 return _blink.BlinkAudioContext.createChannelMerger_Callback(this); 330 return _blink.BlinkAudioContext.createChannelMerger_Callback_0(this);
331 } 331 }
332 332
333 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) { 333 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) {
334 if (numberOfOutputs != null) { 334 if (numberOfOutputs != null) {
335 return _blink.BlinkAudioContext.createChannelSplitter_Callback_1(this, num berOfOutputs); 335 return _blink.BlinkAudioContext.createChannelSplitter_Callback_1(this, num berOfOutputs);
336 } 336 }
337 return _blink.BlinkAudioContext.createChannelSplitter_Callback(this); 337 return _blink.BlinkAudioContext.createChannelSplitter_Callback_0(this);
338 } 338 }
339 339
340 @DomName('AudioContext.createConvolver') 340 @DomName('AudioContext.createConvolver')
341 @DocsEditable() 341 @DocsEditable()
342 ConvolverNode createConvolver() => _blink.BlinkAudioContext.createConvolver_Ca llback(this); 342 ConvolverNode createConvolver() => _blink.BlinkAudioContext.createConvolver_Ca llback_0(this);
343 343
344 DelayNode createDelay([num maxDelayTime]) { 344 DelayNode createDelay([num maxDelayTime]) {
345 if (maxDelayTime != null) { 345 if (maxDelayTime != null) {
346 return _blink.BlinkAudioContext.createDelay_Callback_1(this, maxDelayTime) ; 346 return _blink.BlinkAudioContext.createDelay_Callback_1(this, maxDelayTime) ;
347 } 347 }
348 return _blink.BlinkAudioContext.createDelay_Callback(this); 348 return _blink.BlinkAudioContext.createDelay_Callback_0(this);
349 } 349 }
350 350
351 @DomName('AudioContext.createDynamicsCompressor') 351 @DomName('AudioContext.createDynamicsCompressor')
352 @DocsEditable() 352 @DocsEditable()
353 DynamicsCompressorNode createDynamicsCompressor() => _blink.BlinkAudioContext. createDynamicsCompressor_Callback(this); 353 DynamicsCompressorNode createDynamicsCompressor() => _blink.BlinkAudioContext. createDynamicsCompressor_Callback_0(this);
354 354
355 @DomName('AudioContext.createGain') 355 @DomName('AudioContext.createGain')
356 @DocsEditable() 356 @DocsEditable()
357 GainNode createGain() => _blink.BlinkAudioContext.createGain_Callback(this); 357 GainNode createGain() => _blink.BlinkAudioContext.createGain_Callback_0(this);
358 358
359 @DomName('AudioContext.createMediaElementSource') 359 @DomName('AudioContext.createMediaElementSource')
360 @DocsEditable() 360 @DocsEditable()
361 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) => _blink.BlinkAudioContext.createMediaElementSource_Callback_1(this, mediaEle ment); 361 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) => _blink.BlinkAudioContext.createMediaElementSource_Callback_1(this, mediaEle ment);
362 362
363 @DomName('AudioContext.createMediaStreamDestination') 363 @DomName('AudioContext.createMediaStreamDestination')
364 @DocsEditable() 364 @DocsEditable()
365 MediaStreamAudioDestinationNode createMediaStreamDestination() => _blink.Blink AudioContext.createMediaStreamDestination_Callback(this); 365 MediaStreamAudioDestinationNode createMediaStreamDestination() => _blink.Blink AudioContext.createMediaStreamDestination_Callback_0(this);
366 366
367 @DomName('AudioContext.createMediaStreamSource') 367 @DomName('AudioContext.createMediaStreamSource')
368 @DocsEditable() 368 @DocsEditable()
369 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) => _blink.BlinkAudioContext.createMediaStreamSource_Callback_1(this, mediaStream); 369 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) => _blink.BlinkAudioContext.createMediaStreamSource_Callback_1(this, mediaStream);
370 370
371 @DomName('AudioContext.createOscillator') 371 @DomName('AudioContext.createOscillator')
372 @DocsEditable() 372 @DocsEditable()
373 OscillatorNode createOscillator() => _blink.BlinkAudioContext.createOscillator _Callback(this); 373 OscillatorNode createOscillator() => _blink.BlinkAudioContext.createOscillator _Callback_0(this);
374 374
375 @DomName('AudioContext.createPanner') 375 @DomName('AudioContext.createPanner')
376 @DocsEditable() 376 @DocsEditable()
377 PannerNode createPanner() => _blink.BlinkAudioContext.createPanner_Callback(th is); 377 PannerNode createPanner() => _blink.BlinkAudioContext.createPanner_Callback_0( this);
378 378
379 @DomName('AudioContext.createPeriodicWave') 379 @DomName('AudioContext.createPeriodicWave')
380 @DocsEditable() 380 @DocsEditable()
381 @Experimental() // untriaged 381 @Experimental() // untriaged
382 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) => _blink. BlinkAudioContext.createPeriodicWave_Callback_2(this, real, imag); 382 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) => _blink. BlinkAudioContext.createPeriodicWave_Callback_2(this, real, imag);
383 383
384 ScriptProcessorNode createScriptProcessor([int bufferSize, int numberOfInputCh annels, int numberOfOutputChannels]) { 384 ScriptProcessorNode createScriptProcessor([int bufferSize, int numberOfInputCh annels, int numberOfOutputChannels]) {
385 if (numberOfOutputChannels != null) { 385 if (numberOfOutputChannels != null) {
386 return _blink.BlinkAudioContext.createScriptProcessor_Callback_3(this, buf ferSize, numberOfInputChannels, numberOfOutputChannels); 386 return _blink.BlinkAudioContext.createScriptProcessor_Callback_3(this, buf ferSize, numberOfInputChannels, numberOfOutputChannels);
387 } 387 }
388 if (numberOfInputChannels != null) { 388 if (numberOfInputChannels != null) {
389 return _blink.BlinkAudioContext.createScriptProcessor_Callback_2(this, buf ferSize, numberOfInputChannels); 389 return _blink.BlinkAudioContext.createScriptProcessor_Callback_2(this, buf ferSize, numberOfInputChannels);
390 } 390 }
391 if (bufferSize != null) { 391 if (bufferSize != null) {
392 return _blink.BlinkAudioContext.createScriptProcessor_Callback_1(this, buf ferSize); 392 return _blink.BlinkAudioContext.createScriptProcessor_Callback_1(this, buf ferSize);
393 } 393 }
394 return _blink.BlinkAudioContext.createScriptProcessor_Callback(this); 394 return _blink.BlinkAudioContext.createScriptProcessor_Callback_0(this);
395 } 395 }
396 396
397 @DomName('AudioContext.createWaveShaper') 397 @DomName('AudioContext.createWaveShaper')
398 @DocsEditable() 398 @DocsEditable()
399 WaveShaperNode createWaveShaper() => _blink.BlinkAudioContext.createWaveShaper _Callback(this); 399 WaveShaperNode createWaveShaper() => _blink.BlinkAudioContext.createWaveShaper _Callback_0(this);
400 400
401 @DomName('AudioContext.decodeAudioData') 401 @DomName('AudioContext.decodeAudioData')
402 @DocsEditable() 402 @DocsEditable()
403 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) => _blink.BlinkAudioContext.decodeAudioD ata_Callback_3(this, audioData, successCallback, errorCallback); 403 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) => _blink.BlinkAudioContext.decodeAudioD ata_Callback_3(this, audioData, successCallback, errorCallback);
404 404
405 @DomName('AudioContext.startRendering') 405 @DomName('AudioContext.startRendering')
406 @DocsEditable() 406 @DocsEditable()
407 void startRendering() => _blink.BlinkAudioContext.startRendering_Callback(this ); 407 void startRendering() => _blink.BlinkAudioContext.startRendering_Callback_0(th is);
408 408
409 /// Stream of `complete` events handled by this [AudioContext]. 409 /// Stream of `complete` events handled by this [AudioContext].
410 @DomName('AudioContext.oncomplete') 410 @DomName('AudioContext.oncomplete')
411 @DocsEditable() 411 @DocsEditable()
412 Stream<Event> get onComplete => completeEvent.forTarget(this); 412 Stream<Event> get onComplete => completeEvent.forTarget(this);
413 413
414 @DomName('AudioContext.decodeAudioData') 414 @DomName('AudioContext.decodeAudioData')
415 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) { 415 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) {
416 var completer = new Completer<AudioBuffer>(); 416 var completer = new Completer<AudioBuffer>();
417 _decodeAudioData(audioData, 417 _decodeAudioData(audioData,
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 @DomName('OscillatorNode.setPeriodicWave') 1003 @DomName('OscillatorNode.setPeriodicWave')
1004 @DocsEditable() 1004 @DocsEditable()
1005 @Experimental() // untriaged 1005 @Experimental() // untriaged
1006 void setPeriodicWave(PeriodicWave periodicWave) => _blink.BlinkOscillatorNode. setPeriodicWave_Callback_1(this, periodicWave); 1006 void setPeriodicWave(PeriodicWave periodicWave) => _blink.BlinkOscillatorNode. setPeriodicWave_Callback_1(this, periodicWave);
1007 1007
1008 void start([num when]) { 1008 void start([num when]) {
1009 if (when != null) { 1009 if (when != null) {
1010 _blink.BlinkOscillatorNode.start_Callback_1(this, when); 1010 _blink.BlinkOscillatorNode.start_Callback_1(this, when);
1011 return; 1011 return;
1012 } 1012 }
1013 _blink.BlinkOscillatorNode.start_Callback(this); 1013 _blink.BlinkOscillatorNode.start_Callback_0(this);
1014 return; 1014 return;
1015 } 1015 }
1016 1016
1017 void stop([num when]) { 1017 void stop([num when]) {
1018 if (when != null) { 1018 if (when != null) {
1019 _blink.BlinkOscillatorNode.stop_Callback_1(this, when); 1019 _blink.BlinkOscillatorNode.stop_Callback_1(this, when);
1020 return; 1020 return;
1021 } 1021 }
1022 _blink.BlinkOscillatorNode.stop_Callback(this); 1022 _blink.BlinkOscillatorNode.stop_Callback_0(this);
1023 return; 1023 return;
1024 } 1024 }
1025 1025
1026 /// Stream of `ended` events handled by this [OscillatorNode]. 1026 /// Stream of `ended` events handled by this [OscillatorNode].
1027 @DomName('OscillatorNode.onended') 1027 @DomName('OscillatorNode.onended')
1028 @DocsEditable() 1028 @DocsEditable()
1029 @Experimental() // untriaged 1029 @Experimental() // untriaged
1030 Stream<Event> get onEnded => endedEvent.forTarget(this); 1030 Stream<Event> get onEnded => endedEvent.forTarget(this);
1031 1031
1032 } 1032 }
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 1187
1188 @DomName('WaveShaperNode.oversample') 1188 @DomName('WaveShaperNode.oversample')
1189 @DocsEditable() 1189 @DocsEditable()
1190 String get oversample => _blink.BlinkWaveShaperNode.oversample_Getter(this); 1190 String get oversample => _blink.BlinkWaveShaperNode.oversample_Getter(this);
1191 1191
1192 @DomName('WaveShaperNode.oversample') 1192 @DomName('WaveShaperNode.oversample')
1193 @DocsEditable() 1193 @DocsEditable()
1194 void set oversample(String value) => _blink.BlinkWaveShaperNode.oversample_Set ter(this, value); 1194 void set oversample(String value) => _blink.BlinkWaveShaperNode.oversample_Set ter(this, value);
1195 1195
1196 } 1196 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698