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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PeriodicWave.h

Issue 1952793002: Move the exception logic to the AudioNode creator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
diff --git a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
index 0fb51be5ebce1e2a85ec5df92b9a2f2e69929739..17a7844f97d2e7eb74ceb3cc51cd3006cbf8825c 100644
--- a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
+++ b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
@@ -37,6 +37,9 @@
namespace blink {
+class AbstractAudioContext;
+class ExceptionState;
+
class PeriodicWave final : public GarbageCollectedFinalized<PeriodicWave>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
@@ -46,7 +49,12 @@ public:
static PeriodicWave* createTriangle(float sampleRate);
// Creates an arbitrary periodic wave given the frequency components (Fourier coefficients).
- static PeriodicWave* create(float sampleRate, DOMFloat32Array* real, DOMFloat32Array* imag, bool normalize);
+ static PeriodicWave* create(
+ AbstractAudioContext&,
+ DOMFloat32Array* real,
+ DOMFloat32Array* imag,
+ bool normalize,
+ ExceptionState&);
virtual ~PeriodicWave();
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/PannerNode.cpp ('k') | third_party/WebKit/Source/modules/webaudio/PeriodicWave.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698