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

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

Issue 1865583002: Implement BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/AudioParam.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioParam.h b/third_party/WebKit/Source/modules/webaudio/AudioParam.h
index 61924e12e2bb3ec808bc58719b2c3d9aabc537d3..895d4c91243edc0e42980d8b32c2e501658ff2b2 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioParam.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioParam.h
@@ -31,9 +31,9 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "core/dom/DOMTypedArray.h"
-#include "modules/webaudio/AbstractAudioContext.h"
#include "modules/webaudio/AudioParamTimeline.h"
#include "modules/webaudio/AudioSummingJunction.h"
+#include "modules/webaudio/BaseAudioContext.h"
#include "wtf/PassRefPtr.h"
#include "wtf/text/WTFString.h"
#include <sys/types.h>
@@ -54,13 +54,13 @@ public:
static const double DefaultSmoothingConstant;
static const double SnapThreshold;
- static PassRefPtr<AudioParamHandler> create(AbstractAudioContext& context, double defaultValue)
+ static PassRefPtr<AudioParamHandler> create(BaseAudioContext& context, double defaultValue)
{
return adoptRef(new AudioParamHandler(context, defaultValue));
}
// This should be used only in audio rendering thread.
- AbstractAudioContext* context() const;
+ BaseAudioContext* context() const;
// AudioSummingJunction
void didUpdate() override { }
@@ -100,7 +100,7 @@ public:
void disconnect(AudioNodeOutput&);
private:
- AudioParamHandler(AbstractAudioContext& context, double defaultValue)
+ AudioParamHandler(BaseAudioContext& context, double defaultValue)
: AudioSummingJunction(context.deferredTaskHandler())
, m_intrinsicValue(defaultValue)
, m_defaultValue(defaultValue)
@@ -125,19 +125,19 @@ private:
// We can't make this Persistent because of a reference cycle. It's safe to
// access this field only when we're rendering audio.
- UntracedMember<AbstractAudioContext> m_context;
+ UntracedMember<BaseAudioContext> m_context;
};
// AudioParam class represents web-exposed AudioParam interface.
class AudioParam final : public GarbageCollectedFinalized<AudioParam>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static AudioParam* create(AbstractAudioContext&, double defaultValue);
+ static AudioParam* create(BaseAudioContext&, double defaultValue);
DECLARE_TRACE();
// |handler| always returns a valid object.
AudioParamHandler& handler() const { return *m_handler; }
// |context| always returns a valid object.
- AbstractAudioContext* context() const { return m_context; }
+ BaseAudioContext* context() const { return m_context; }
float value() const;
void setValue(float);
@@ -150,10 +150,10 @@ public:
AudioParam* cancelScheduledValues(double startTime, ExceptionState&);
private:
- AudioParam(AbstractAudioContext&, double defaultValue);
+ AudioParam(BaseAudioContext&, double defaultValue);
RefPtr<AudioParamHandler> m_handler;
- Member<AbstractAudioContext> m_context;
+ Member<BaseAudioContext> m_context;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698