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

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

Issue 1017983003: Web Audio: Rename AudioParam class to AudioParamHandler. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/modules/webaudio/AudioNodeOutput.h ('k') | Source/modules/webaudio/AudioParam.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioParam.h
diff --git a/Source/modules/webaudio/AudioParam.h b/Source/modules/webaudio/AudioParam.h
index 22a76d011f162255b4f89d9afc38a46d9f16f751..d278d57cde6853c9b44916a5fdb9f9d12f520c75 100644
--- a/Source/modules/webaudio/AudioParam.h
+++ b/Source/modules/webaudio/AudioParam.h
@@ -42,15 +42,15 @@ namespace blink {
class AudioNodeOutput;
-class AudioParam final : public AudioSummingJunction, public ScriptWrappable {
+class AudioParamHandler final : public AudioSummingJunction, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
static const double DefaultSmoothingConstant;
static const double SnapThreshold;
- static AudioParam* create(AudioContext* context, double defaultValue)
+ static AudioParamHandler* create(AudioContext* context, double defaultValue)
{
- return new AudioParam(context, defaultValue);
+ return new AudioParamHandler(context, defaultValue);
}
// AudioSummingJunction
@@ -115,7 +115,7 @@ public:
void disconnect(AudioNodeOutput&);
private:
- AudioParam(AudioContext* context, double defaultValue)
+ AudioParamHandler(AudioContext* context, double defaultValue)
: AudioSummingJunction(context)
, m_value(defaultValue)
, m_defaultValue(defaultValue)
@@ -134,6 +134,10 @@ private:
AudioParamTimeline m_timeline;
};
+// TODO(tkent): remove the type alias, and introduce a real AudioParam class to
+// wrap AudioParamHandler.
+using AudioParam = AudioParamHandler;
+
} // namespace blink
#endif // AudioParam_h
« no previous file with comments | « Source/modules/webaudio/AudioNodeOutput.h ('k') | Source/modules/webaudio/AudioParam.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698