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

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

Issue 2102133002: Add constructors for WebAudio nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and prefix use counter names with WebAudio Created 4 years, 3 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/AnalyserNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AnalyserNode.h b/third_party/WebKit/Source/modules/webaudio/AnalyserNode.h
index 5999f7aa35de5177e041b51be8ba2b8c12ca346b..241b106e143ef36de617bf1ec052f8035b29b7a7 100644
--- a/third_party/WebKit/Source/modules/webaudio/AnalyserNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/AnalyserNode.h
@@ -32,6 +32,7 @@
namespace blink {
class BaseAudioContext;
+class AnalyserOptions;
class ExceptionState;
class AnalyserHandler final : public AudioBasicInspectorHandler {
@@ -53,6 +54,8 @@ public:
void setMaxDecibels(double k, ExceptionState&);
double maxDecibels() const { return m_analyser.maxDecibels(); }
+ void setMinMaxDecibels(double min, double max, ExceptionState&);
+
void setSmoothingTimeConstant(double k, ExceptionState&);
double smoothingTimeConstant() const { return m_analyser.smoothingTimeConstant(); }
@@ -77,6 +80,7 @@ class AnalyserNode final : public AudioBasicInspectorNode {
DEFINE_WRAPPERTYPEINFO();
public:
static AnalyserNode* create(BaseAudioContext&, ExceptionState&);
+ static AnalyserNode* create(BaseAudioContext*, const AnalyserOptions&, ExceptionState&);
unsigned fftSize() const;
void setFftSize(unsigned size, ExceptionState&);
@@ -95,6 +99,8 @@ public:
private:
AnalyserNode(BaseAudioContext&);
AnalyserHandler& analyserHandler() const;
+
+ void setMinMaxDecibels(double min, double max, ExceptionState&);
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/modules_idl_files.gni ('k') | third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698