| OLD | NEW |
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 ParamTypePannerOrientationZ, | 74 ParamTypePannerOrientationZ, |
| 75 ParamTypeAudioListenerPositionX, | 75 ParamTypeAudioListenerPositionX, |
| 76 ParamTypeAudioListenerPositionY, | 76 ParamTypeAudioListenerPositionY, |
| 77 ParamTypeAudioListenerPositionZ, | 77 ParamTypeAudioListenerPositionZ, |
| 78 ParamTypeAudioListenerForwardX, | 78 ParamTypeAudioListenerForwardX, |
| 79 ParamTypeAudioListenerForwardY, | 79 ParamTypeAudioListenerForwardY, |
| 80 ParamTypeAudioListenerForwardZ, | 80 ParamTypeAudioListenerForwardZ, |
| 81 ParamTypeAudioListenerUpX, | 81 ParamTypeAudioListenerUpX, |
| 82 ParamTypeAudioListenerUpY, | 82 ParamTypeAudioListenerUpY, |
| 83 ParamTypeAudioListenerUpZ, | 83 ParamTypeAudioListenerUpZ, |
| 84 ParamTypeConstantSourceValue, |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 // AudioParamHandler is an actual implementation of web-exposed AudioParam | 87 // AudioParamHandler is an actual implementation of web-exposed AudioParam |
| 87 // interface. Each of AudioParam object creates and owns an AudioParamHandler, | 88 // interface. Each of AudioParam object creates and owns an AudioParamHandler, |
| 88 // and it is responsible for all of AudioParam tasks. An AudioParamHandler | 89 // and it is responsible for all of AudioParam tasks. An AudioParamHandler |
| 89 // object is owned by the originator AudioParam object, and some audio | 90 // object is owned by the originator AudioParam object, and some audio |
| 90 // processing classes have additional references. An AudioParamHandler can | 91 // processing classes have additional references. An AudioParamHandler can |
| 91 // outlive the owner AudioParam, and it never dies before the owner AudioParam | 92 // outlive the owner AudioParam, and it never dies before the owner AudioParam |
| 92 // dies. | 93 // dies. |
| 93 class AudioParamHandler final : public ThreadSafeRefCounted<AudioParamHandler>, | 94 class AudioParamHandler final : public ThreadSafeRefCounted<AudioParamHandler>, |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 | 261 |
| 261 void warnIfOutsideRange(const String& paramMethd, float value); | 262 void warnIfOutsideRange(const String& paramMethd, float value); |
| 262 | 263 |
| 263 RefPtr<AudioParamHandler> m_handler; | 264 RefPtr<AudioParamHandler> m_handler; |
| 264 Member<BaseAudioContext> m_context; | 265 Member<BaseAudioContext> m_context; |
| 265 }; | 266 }; |
| 266 | 267 |
| 267 } // namespace blink | 268 } // namespace blink |
| 268 | 269 |
| 269 #endif // AudioParam_h | 270 #endif // AudioParam_h |
| OLD | NEW |