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

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

Issue 205173002: Move webaudio to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WIP Created 6 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
Index: Source/modules/webaudio/AudioListener.h
diff --git a/Source/modules/webaudio/AudioListener.h b/Source/modules/webaudio/AudioListener.h
index dcd68dd42ba6717ec150bdcbfbc2a2d063219e7f..30c6c2c5a212e510d277ab37fe921496038c9741 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 RefCountedWillBeGarbageCollectedFinalized<AudioListener>, public ScriptWrappable {
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();

Powered by Google App Engine
This is Rietveld 408576698