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

Unified Diff: third_party/WebKit/Source/modules/webaudio/GainNode.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/GainNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/GainNode.h b/third_party/WebKit/Source/modules/webaudio/GainNode.h
index da401a65dea6686d414015fca679d3a400673e00..7fea96051ce1b5d94690f4a55e384496449db39f 100644
--- a/third_party/WebKit/Source/modules/webaudio/GainNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/GainNode.h
@@ -59,13 +59,13 @@ private:
class GainNode final : public AudioNode {
DEFINE_WRAPPERTYPEINFO();
public:
- static GainNode* create(AbstractAudioContext&, float sampleRate);
+ static GainNode* create(AbstractAudioContext&, ExceptionState&);
DECLARE_VIRTUAL_TRACE();
AudioParam* gain() const;
private:
- GainNode(AbstractAudioContext&, float sampleRate);
+ GainNode(AbstractAudioContext&);
Member<AudioParam> m_gain;
};

Powered by Google App Engine
This is Rietveld 408576698