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

Unified Diff: third_party/WebKit/Source/modules/webaudio/OscillatorNode.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/OscillatorNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/OscillatorNode.h b/third_party/WebKit/Source/modules/webaudio/OscillatorNode.h
index 9714472f2f157789c7d262741185f316cade4616..a0becfa6d791ad86b2e29f0fa81a1a3fcc5b154f 100644
--- a/third_party/WebKit/Source/modules/webaudio/OscillatorNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/OscillatorNode.h
@@ -27,6 +27,7 @@
#include "modules/webaudio/AudioParam.h"
#include "modules/webaudio/AudioScheduledSourceNode.h"
+#include "modules/webaudio/OscillatorOptions.h"
#include "platform/audio/AudioBus.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -36,6 +37,7 @@ namespace blink {
class BaseAudioContext;
class ExceptionState;
+class OscillatorOptions;
class PeriodicWave;
// OscillatorNode is an audio generator of periodic waveforms.
@@ -100,6 +102,7 @@ class OscillatorNode final : public AudioScheduledSourceNode {
DEFINE_WRAPPERTYPEINFO();
public:
static OscillatorNode* create(BaseAudioContext&, ExceptionState&);
+ static OscillatorNode* create(BaseAudioContext*, const OscillatorOptions&, ExceptionState&);
DECLARE_VIRTUAL_TRACE();
String type() const;

Powered by Google App Engine
This is Rietveld 408576698