This source file includes following definitions.
- create
- create
- create
- m_storageArea
- m_storageArea
- initStorageEvent
- interfaceName
- trace
#include "config.h"
#include "core/storage/StorageEvent.h"
#include "core/storage/Storage.h"
namespace WebCore {
StorageEventInit::StorageEventInit()
{
}
PassRefPtrWillBeRawPtr<StorageEvent> StorageEvent::create()
{
return adoptRefWillBeNoop(new StorageEvent);
}
StorageEvent::StorageEvent()
{
ScriptWrappable::init(this);
}
StorageEvent::~StorageEvent()
{
}
PassRefPtrWillBeRawPtr<StorageEvent> StorageEvent::create(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& url, Storage* storageArea)
{
return adoptRefWillBeNoop(new StorageEvent(type, key, oldValue, newValue, url, storageArea));
}
PassRefPtrWillBeRawPtr<StorageEvent> StorageEvent::create(const AtomicString& type, const StorageEventInit& initializer)
{
return adoptRefWillBeNoop(new StorageEvent(type, initializer));
}
StorageEvent::StorageEvent(const AtomicString& type, const String& key, const String& oldValue, const String& newValue, const String& url, Storage* storageArea)
: Event(type, false, false)
, m_key(key)
, m_oldValue(oldValue)
, m_newValue(newValue)
, m_url(url)
, m_storageArea(storageArea)
{
ScriptWrappable::init(this);
}
StorageEvent::StorageEvent(const AtomicString& type, const StorageEventInit& initializer)
: Event(type, initializer)
, m_key(initializer.key)
, m_oldValue(initializer.oldValue)
, m_newValue(initializer.newValue)
, m_url(initializer.url)
, m_storageArea(initializer.storageArea)
{
ScriptWrappable::init(this);
}
void StorageEvent::initStorageEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& key, const String& oldValue, const String& newValue, const String& url, Storage* storageArea)
{
if (dispatched())
return;
initEvent(type, canBubble, cancelable);
m_key = key;
m_oldValue = oldValue;
m_newValue = newValue;
m_url = url;
m_storageArea = storageArea;
}
const AtomicString& StorageEvent::interfaceName() const
{
return EventNames::StorageEvent;
}
void StorageEvent::trace(Visitor* visitor)
{
visitor->trace(m_storageArea);
Event::trace(visitor);
}
}