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

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

Issue 1466563003: Make [TypeChecking=Interface] the default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // All panning is relative to this listener. 51 // All panning is relative to this listener.
52 readonly attribute AudioListener listener; 52 readonly attribute AudioListener listener;
53 53
54 // Current state of the AudioContext 54 // Current state of the AudioContext
55 readonly attribute AudioContextState state; 55 readonly attribute AudioContextState state;
56 56
57 [RaisesException] AudioBuffer createBuffer(unsigned long numberOfChannels, u nsigned long numberOfFrames, float sampleRate); 57 [RaisesException] AudioBuffer createBuffer(unsigned long numberOfChannels, u nsigned long numberOfFrames, float sampleRate);
58 58
59 // Asynchronous audio file data decoding. 59 // Asynchronous audio file data decoding.
60 [RaisesException, MeasureAs=AudioContextDecodeAudioData] void decodeAudioDat a(ArrayBuffer audioData, AudioBufferCallback successCallback, optional AudioBuff erCallback errorCallback); 60 [RaisesException, MeasureAs=AudioContextDecodeAudioData, LegacyInterfaceType Checking] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succes sCallback, optional AudioBufferCallback errorCallback);
61 61
62 // Sources 62 // Sources
63 [RaisesException, MeasureAs=AudioContextCreateBufferSource] AudioBufferSourc eNode createBufferSource(); 63 [RaisesException, MeasureAs=AudioContextCreateBufferSource] AudioBufferSourc eNode createBufferSource();
64 64
65 [RaisesException, MeasureAs=AudioContextCreateMediaElementSource] MediaEleme ntAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement); 65 [RaisesException, MeasureAs=AudioContextCreateMediaElementSource, LegacyInte rfaceTypeChecking] MediaElementAudioSourceNode createMediaElementSource(HTMLMedi aElement mediaElement);
66 66
67 [RaisesException, MeasureAs=AudioContextCreateMediaStreamSource, RaisesExcep tion] MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream ); 67 [RaisesException, MeasureAs=AudioContextCreateMediaStreamSource, RaisesExcep tion, LegacyInterfaceTypeChecking] MediaStreamAudioSourceNode createMediaStreamS ource(MediaStream mediaStream);
68 [RaisesException, MeasureAs=AudioContextCreateMediaStreamDestination] MediaS treamAudioDestinationNode createMediaStreamDestination(); 68 [RaisesException, MeasureAs=AudioContextCreateMediaStreamDestination] MediaS treamAudioDestinationNode createMediaStreamDestination();
69 69
70 // Processing nodes 70 // Processing nodes
71 [RaisesException, MeasureAs=AudioContextCreateGain] GainNode createGain(); 71 [RaisesException, MeasureAs=AudioContextCreateGain] GainNode createGain();
72 [RaisesException, MeasureAs=AudioContextCreateDelay] DelayNode createDelay(o ptional double maxDelayTime); 72 [RaisesException, MeasureAs=AudioContextCreateDelay] DelayNode createDelay(o ptional double maxDelayTime);
73 [RaisesException, MeasureAs=AudioContextCreateBiquadFilter] BiquadFilterNode createBiquadFilter(); 73 [RaisesException, MeasureAs=AudioContextCreateBiquadFilter] BiquadFilterNode createBiquadFilter();
74 [RaisesException, MeasureAs=AudioContextCreateWaveShaper] WaveShaperNode cre ateWaveShaper(); 74 [RaisesException, MeasureAs=AudioContextCreateWaveShaper] WaveShaperNode cre ateWaveShaper();
75 [RaisesException, MeasureAs=AudioContextCreatePanner] PannerNode createPanne r(); 75 [RaisesException, MeasureAs=AudioContextCreatePanner] PannerNode createPanne r();
76 [RaisesException, MeasureAs=AudioContextCreateConvolver] ConvolverNode creat eConvolver(); 76 [RaisesException, MeasureAs=AudioContextCreateConvolver] ConvolverNode creat eConvolver();
77 [RaisesException, MeasureAs=AudioContextCreateDynamicsCompressor] DynamicsCo mpressorNode createDynamicsCompressor(); 77 [RaisesException, MeasureAs=AudioContextCreateDynamicsCompressor] DynamicsCo mpressorNode createDynamicsCompressor();
78 [RaisesException, MeasureAs=AudioContextCreateAnalyser] AnalyserNode createA nalyser(); 78 [RaisesException, MeasureAs=AudioContextCreateAnalyser] AnalyserNode createA nalyser();
79 [RaisesException, MeasureAs=AudioContextCreateScriptProcessor, RaisesExcepti on] ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize, optional unsigned long numberOfInputChannels, optional unsigned long numberOfOu tputChannels); 79 [RaisesException, MeasureAs=AudioContextCreateScriptProcessor, RaisesExcepti on] ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize, optional unsigned long numberOfInputChannels, optional unsigned long numberOfOu tputChannels);
80 [RaisesException, MeasureAs=AudioContextCreateStereoPanner] StereoPannerNode createStereoPanner(); 80 [RaisesException, MeasureAs=AudioContextCreateStereoPanner] StereoPannerNode createStereoPanner();
81 [RaisesException, MeasureAs=AudioContextCreateOscillator] OscillatorNode cre ateOscillator(); 81 [RaisesException, MeasureAs=AudioContextCreateOscillator] OscillatorNode cre ateOscillator();
82 [RaisesException, MeasureAs=AudioContextCreatePeriodicWave, RaisesException] PeriodicWave createPeriodicWave(Float32Array real, Float32Array imag, optional Dictionary options); 82 [RaisesException, MeasureAs=AudioContextCreatePeriodicWave, RaisesException, LegacyInterfaceTypeChecking] PeriodicWave createPeriodicWave(Float32Array real, Float32Array imag, optional Dictionary options);
83 83
84 // Channel splitting and merging 84 // Channel splitting and merging
85 [RaisesException, MeasureAs=AudioContextCreateChannelSplitter] ChannelSplitt erNode createChannelSplitter(optional unsigned long numberOfOutputs); 85 [RaisesException, MeasureAs=AudioContextCreateChannelSplitter] ChannelSplitt erNode createChannelSplitter(optional unsigned long numberOfOutputs);
86 [RaisesException, MeasureAs=AudioContextCreateChannelMerger] ChannelMergerNo de createChannelMerger(optional unsigned long numberOfInputs); 86 [RaisesException, MeasureAs=AudioContextCreateChannelMerger] ChannelMergerNo de createChannelMerger(optional unsigned long numberOfInputs);
87 87
88 // Close 88 // Close
89 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte xt] Promise<void> close(); 89 [MeasureAs=AudioContextClose, CallWith=ScriptState, ImplementedAs=closeConte xt] Promise<void> close();
90 90
91 // Pause/resume 91 // Pause/resume
92 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC ontext] Promise<void> suspend(); 92 [MeasureAs=AudioContextSuspend, CallWith=ScriptState, ImplementedAs=suspendC ontext] Promise<void> suspend();
93 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon text] Promise<void> resume(); 93 [MeasureAs=AudioContextResume, CallWith=ScriptState, ImplementedAs=resumeCon text] Promise<void> resume();
94 94
95 attribute EventHandler onstatechange; 95 attribute EventHandler onstatechange;
96 }; 96 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698