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

Unified Diff: third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.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/DynamicsCompressorNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.h b/third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.h
index a098272ede2d6030b5c7b26be9cd2a65ae31411c..6eb63ca7555f8e84eaf1c2e27aa8a8d07da41378 100644
--- a/third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.h
@@ -81,7 +81,7 @@ private:
class MODULES_EXPORT DynamicsCompressorNode final : public AudioNode {
DEFINE_WRAPPERTYPEINFO();
public:
- static DynamicsCompressorNode* create(AbstractAudioContext&, float sampleRate);
+ static DynamicsCompressorNode* create(AbstractAudioContext&, ExceptionState&);
DECLARE_VIRTUAL_TRACE();
AudioParam* threshold() const;
@@ -92,7 +92,7 @@ public:
AudioParam* release() const;
private:
- DynamicsCompressorNode(AbstractAudioContext&, float sampleRate);
+ DynamicsCompressorNode(AbstractAudioContext&);
DynamicsCompressorHandler& dynamicsCompressorHandler() const;
Member<AudioParam> m_threshold;

Powered by Google App Engine
This is Rietveld 408576698