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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #ifndef AudioParam_h | 29 #ifndef AudioParam_h |
30 #define AudioParam_h | 30 #define AudioParam_h |
31 | 31 |
32 #include "bindings/core/v8/ScriptWrappable.h" | 32 #include "bindings/core/v8/ScriptWrappable.h" |
33 #include "core/dom/DOMTypedArray.h" | 33 #include "core/dom/DOMTypedArray.h" |
34 #include "modules/webaudio/AbstractAudioContext.h" | 34 #include "modules/webaudio/AbstractAudioContext.h" |
35 #include "modules/webaudio/AudioParamTimeline.h" | 35 #include "modules/webaudio/AudioParamTimeline.h" |
36 #include "modules/webaudio/AudioSummingJunction.h" | 36 #include "modules/webaudio/AudioSummingJunction.h" |
37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 38 #include "wtf/ThreadSafeRefCounted.h" |
38 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
39 #include <sys/types.h> | 40 #include <sys/types.h> |
40 | 41 |
41 namespace blink { | 42 namespace blink { |
42 | 43 |
43 class AudioNodeOutput; | 44 class AudioNodeOutput; |
44 | 45 |
45 // AudioParamHandler is an actual implementation of web-exposed AudioParam | 46 // AudioParamHandler is an actual implementation of web-exposed AudioParam |
46 // interface. Each of AudioParam object creates and owns an AudioParamHandler, | 47 // interface. Each of AudioParam object creates and owns an AudioParamHandler, |
47 // and it is responsible for all of AudioParam tasks. An AudioParamHandler | 48 // and it is responsible for all of AudioParam tasks. An AudioParamHandler |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 private: | 153 private: |
153 AudioParam(AbstractAudioContext&, double defaultValue); | 154 AudioParam(AbstractAudioContext&, double defaultValue); |
154 | 155 |
155 RefPtr<AudioParamHandler> m_handler; | 156 RefPtr<AudioParamHandler> m_handler; |
156 Member<AbstractAudioContext> m_context; | 157 Member<AbstractAudioContext> m_context; |
157 }; | 158 }; |
158 | 159 |
159 } // namespace blink | 160 } // namespace blink |
160 | 161 |
161 #endif // AudioParam_h | 162 #endif // AudioParam_h |
OLD | NEW |