This source file includes following definitions.
- create
- create
- m_track
- track
- interfaceName
- trace
#include "config.h"
#include "modules/mediastream/MediaStreamTrackEvent.h"
#include "modules/mediastream/MediaStreamTrack.h"
namespace WebCore {
PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create()
{
return adoptRefWillBeNoop(new MediaStreamTrackEvent);
}
PassRefPtrWillBeRawPtr<MediaStreamTrackEvent> MediaStreamTrackEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack> track)
{
return adoptRefWillBeNoop(new MediaStreamTrackEvent(type, canBubble, cancelable, track));
}
MediaStreamTrackEvent::MediaStreamTrackEvent()
{
ScriptWrappable::init(this);
}
MediaStreamTrackEvent::MediaStreamTrackEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStreamTrack> track)
: Event(type, canBubble, cancelable)
, m_track(track)
{
ScriptWrappable::init(this);
}
MediaStreamTrackEvent::~MediaStreamTrackEvent()
{
}
MediaStreamTrack* MediaStreamTrackEvent::track() const
{
return m_track.get();
}
const AtomicString& MediaStreamTrackEvent::interfaceName() const
{
return EventNames::MediaStreamTrackEvent;
}
void MediaStreamTrackEvent::trace(Visitor* visitor)
{
Event::trace(visitor);
}
}