Chromium Code Reviews| Index: Source/modules/webaudio/AudioListener.h |
| diff --git a/Source/modules/webaudio/AudioListener.h b/Source/modules/webaudio/AudioListener.h |
| index dcd68dd42ba6717ec150bdcbfbc2a2d063219e7f..3073b7244157311633da429bd1e11cd481512ce4 100644 |
| --- a/Source/modules/webaudio/AudioListener.h |
| +++ b/Source/modules/webaudio/AudioListener.h |
| @@ -30,6 +30,7 @@ |
| #define AudioListener_h |
| #include "bindings/v8/ScriptWrappable.h" |
| +#include "heap/Handle.h" |
| #include "platform/geometry/FloatPoint3D.h" |
| #include "wtf/PassRefPtr.h" |
| #include "wtf/RefCounted.h" |
| @@ -38,11 +39,11 @@ namespace WebCore { |
| // AudioListener maintains the state of the listener in the audio scene as defined in the OpenAL specification. |
| -class AudioListener : public ScriptWrappable, public RefCounted<AudioListener> { |
| +class AudioListener : public ScriptWrappable, public RefCountedWillBeGarbageCollectedFinalized<AudioListener> { |
|
sof
2014/03/22 14:06:13
Swap order here also?
keishi
2014/03/27 07:39:37
Done.
|
| public: |
| - static PassRefPtr<AudioListener> create() |
| + static PassRefPtrWillBeRawPtr<AudioListener> create() |
| { |
| - return adoptRef(new AudioListener()); |
| + return adoptRefWillBeNoop(new AudioListener()); |
| } |
| // Position |
| @@ -76,6 +77,8 @@ public: |
| void setSpeedOfSound(double speedOfSound) { m_speedOfSound = speedOfSound; } |
| double speedOfSound() const { return m_speedOfSound; } |
| + void trace(Visitor*) { } |
| + |
| private: |
| AudioListener(); |