This source file includes following definitions.
- create
- create
- create
- m_stream
- m_stream
- stream
- stream
- interfaceName
- trace
#include "config.h"
#include "modules/mediastream/MediaStreamEvent.h"
namespace WebCore {
MediaStreamEventInit::MediaStreamEventInit()
: stream(nullptr)
{
}
PassRefPtrWillBeRawPtr<MediaStreamEvent> MediaStreamEvent::create()
{
return adoptRefWillBeNoop(new MediaStreamEvent);
}
PassRefPtrWillBeRawPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStream> stream)
{
return adoptRefWillBeNoop(new MediaStreamEvent(type, canBubble, cancelable, stream));
}
PassRefPtrWillBeRawPtr<MediaStreamEvent> MediaStreamEvent::create(const AtomicString& type, const MediaStreamEventInit& initializer)
{
return adoptRefWillBeNoop(new MediaStreamEvent(type, initializer));
}
MediaStreamEvent::MediaStreamEvent()
{
ScriptWrappable::init(this);
}
MediaStreamEvent::MediaStreamEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<MediaStream> stream)
: Event(type, canBubble, cancelable)
, m_stream(stream)
{
ScriptWrappable::init(this);
}
MediaStreamEvent::MediaStreamEvent(const AtomicString& type, const MediaStreamEventInit& initializer)
: Event(type, initializer)
, m_stream(initializer.stream)
{
ScriptWrappable::init(this);
}
MediaStreamEvent::~MediaStreamEvent()
{
}
MediaStream* MediaStreamEvent::stream() const
{
return m_stream.get();
}
MediaStream* MediaStreamEvent::stream(bool& isNull) const
{
isNull = !m_stream;
return m_stream.get();
}
const AtomicString& MediaStreamEvent::interfaceName() const
{
return EventNames::MediaStreamEvent;
}
void MediaStreamEvent::trace(Visitor* visitor)
{
Event::trace(visitor);
}
}