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

Side by Side Diff: Source/modules/webaudio/AudioContext.idl

Issue 14384004: Get rid of [Callback] extended attribute for parameters in IDL files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix whitespace issue in generated bindings Created 7 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 30 matching lines...) Expand all
41 // All panning is relative to this listener. 41 // All panning is relative to this listener.
42 readonly attribute AudioListener listener; 42 readonly attribute AudioListener listener;
43 43
44 // Number of AudioBufferSourceNodes that are currently playing. 44 // Number of AudioBufferSourceNodes that are currently playing.
45 readonly attribute unsigned long activeSourceCount; 45 readonly attribute unsigned long activeSourceCount;
46 46
47 [RaisesException] AudioBuffer createBuffer(unsigned long numberOfChannels, u nsigned long numberOfFrames, float sampleRate); 47 [RaisesException] AudioBuffer createBuffer(unsigned long numberOfChannels, u nsigned long numberOfFrames, float sampleRate);
48 [RaisesException] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixT oMono); 48 [RaisesException] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixT oMono);
49 49
50 // Asynchronous audio file data decoding. 50 // Asynchronous audio file data decoding.
51 [RaisesException] void decodeAudioData(ArrayBuffer audioData, [Callback] Aud ioBufferCallback successCallback, [Callback] optional AudioBufferCallback errorC allback); 51 [RaisesException] void decodeAudioData(ArrayBuffer audioData, AudioBufferCal lback successCallback, optional AudioBufferCallback errorCallback);
52 52
53 // Sources 53 // Sources
54 AudioBufferSourceNode createBufferSource(); 54 AudioBufferSourceNode createBufferSource();
55 55
56 [RaisesException] MediaElementAudioSourceNode createMediaElementSource(HTMLM ediaElement mediaElement); 56 [RaisesException] MediaElementAudioSourceNode createMediaElementSource(HTMLM ediaElement mediaElement);
57 57
58 #if defined(ENABLE_MEDIA_STREAM) && ENABLE_MEDIA_STREAM 58 #if defined(ENABLE_MEDIA_STREAM) && ENABLE_MEDIA_STREAM
59 [RaisesException] MediaStreamAudioSourceNode createMediaStreamSource(MediaSt ream mediaStream); 59 [RaisesException] MediaStreamAudioSourceNode createMediaStreamSource(MediaSt ream mediaStream);
60 MediaStreamAudioDestinationNode createMediaStreamDestination(); 60 MediaStreamAudioDestinationNode createMediaStreamDestination();
61 #endif 61 #endif
(...skipping 19 matching lines...) Expand all
81 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign ed long numberOfFrames, float sampleRate); 81 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign ed long numberOfFrames, float sampleRate);
82 attribute EventListener oncomplete; 82 attribute EventListener oncomplete;
83 void startRendering(); 83 void startRendering();
84 84
85 [MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode (); 85 [MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode ();
86 [MeasureAs=LegacyWebAudio, ImplementedAs=createDelay, RaisesException] Delay Node createDelayNode(optional double maxDelayTime); 86 [MeasureAs=LegacyWebAudio, ImplementedAs=createDelay, RaisesException] Delay Node createDelayNode(optional double maxDelayTime);
87 87
88 [MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor, RaisesExcept ion] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChann els); 88 [MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor, RaisesExcept ion] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChann els);
89 89
90 }; 90 };
OLDNEW
« no previous file with comments | « Source/modules/quota/StorageQuota.idl ('k') | Source/modules/webdatabase/DOMWindowWebDatabase.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698