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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioParam.h

Issue 1820403002: Implement Automations for PannerNode and AutioListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and update histograms.xml 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 ParamTypeBiquadFilterDetune, 57 ParamTypeBiquadFilterDetune,
58 ParamTypeDelayDelayTime, 58 ParamTypeDelayDelayTime,
59 ParamTypeDynamicsCompressorThreshold, 59 ParamTypeDynamicsCompressorThreshold,
60 ParamTypeDynamicsCompressorKnee, 60 ParamTypeDynamicsCompressorKnee,
61 ParamTypeDynamicsCompressorRatio, 61 ParamTypeDynamicsCompressorRatio,
62 ParamTypeDynamicsCompressorAttack, 62 ParamTypeDynamicsCompressorAttack,
63 ParamTypeDynamicsCompressorRelease, 63 ParamTypeDynamicsCompressorRelease,
64 ParamTypeGainGain, 64 ParamTypeGainGain,
65 ParamTypeOscillatorFrequency, 65 ParamTypeOscillatorFrequency,
66 ParamTypeOscillatorDetune, 66 ParamTypeOscillatorDetune,
67 ParamTypeStereoPannerPan 67 ParamTypeStereoPannerPan,
68 ParamTypePannerPositionX,
69 ParamTypePannerPositionY,
70 ParamTypePannerPositionZ,
71 ParamTypePannerOrientationX,
72 ParamTypePannerOrientationY,
73 ParamTypePannerOrientationZ,
74 ParamTypeAudioListenerPositionX,
75 ParamTypeAudioListenerPositionY,
76 ParamTypeAudioListenerPositionZ,
77 ParamTypeAudioListenerForwardX,
78 ParamTypeAudioListenerForwardY,
79 ParamTypeAudioListenerForwardZ,
80 ParamTypeAudioListenerUpX,
81 ParamTypeAudioListenerUpY,
82 ParamTypeAudioListenerUpZ,
68 }; 83 };
69 84
70 // AudioParamHandler is an actual implementation of web-exposed AudioParam 85 // AudioParamHandler is an actual implementation of web-exposed AudioParam
71 // interface. Each of AudioParam object creates and owns an AudioParamHandler, 86 // interface. Each of AudioParam object creates and owns an AudioParamHandler,
72 // and it is responsible for all of AudioParam tasks. An AudioParamHandler 87 // and it is responsible for all of AudioParam tasks. An AudioParamHandler
73 // object is owned by the originator AudioParam object, and some audio 88 // object is owned by the originator AudioParam object, and some audio
74 // processing classes have additional references. An AudioParamHandler can 89 // processing classes have additional references. An AudioParamHandler can
75 // outlive the owner AudioParam, and it never dies before the owner AudioParam 90 // outlive the owner AudioParam, and it never dies before the owner AudioParam
76 // dies. 91 // dies.
77 class AudioParamHandler final : public ThreadSafeRefCounted<AudioParamHandler>, public AudioSummingJunction { 92 class AudioParamHandler final : public ThreadSafeRefCounted<AudioParamHandler>, public AudioSummingJunction {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 private: 205 private:
191 AudioParam(AbstractAudioContext&, AudioParamType, double defaultValue); 206 AudioParam(AbstractAudioContext&, AudioParamType, double defaultValue);
192 207
193 RefPtr<AudioParamHandler> m_handler; 208 RefPtr<AudioParamHandler> m_handler;
194 Member<AbstractAudioContext> m_context; 209 Member<AbstractAudioContext> m_context;
195 }; 210 };
196 211
197 } // namespace blink 212 } // namespace blink
198 213
199 #endif // AudioParam_h 214 #endif // AudioParam_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698