#include "core/events/Event.h"
-namespace WebCore {
+namespace blink {
struct ProgressEventInit : public EventInit {
ProgressEventInit();
};
class ProgressEvent : public Event {
+ DEFINE_WRAPPERTYPEINFO();
public:
- static PassRefPtr<ProgressEvent> create()
+ static PassRefPtrWillBeRawPtr<ProgressEvent> create()
{
- return adoptRef(new ProgressEvent);
+ return adoptRefWillBeNoop(new ProgressEvent);
}
- static PassRefPtr<ProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
+ static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
{
- return adoptRef(new ProgressEvent(type, lengthComputable, loaded, total));
+ return adoptRefWillBeNoop(new ProgressEvent(type, lengthComputable, loaded, total));
}
- static PassRefPtr<ProgressEvent> create(const AtomicString& type, const ProgressEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type, const ProgressEventInit& initializer)
{
- return adoptRef(new ProgressEvent(type, initializer));
+ return adoptRefWillBeNoop(new ProgressEvent(type, initializer));
}
bool lengthComputable() const { return m_lengthComputable; }
unsigned long long loaded() const { return m_loaded; }
unsigned long long total() const { return m_total; }
- virtual const AtomicString& interfaceName() const;
+ virtual const AtomicString& interfaceName() const OVERRIDE;
+
+ virtual void trace(Visitor*) OVERRIDE;
protected:
ProgressEvent();
unsigned long long m_loaded;
unsigned long long m_total;
};
-}
+
+} // namespace blink
#endif // ProgressEvent_h