#include "core/events/Event.h"
-namespace WebCore {
+namespace blink {
// FIXME : This class has a WebKit prefix on purpose so we can use the EventAliases system. When the
// runtime flag of unprefixed animation will be removed we can rename that class and do the same as
double elapsedTime;
};
-class WebKitAnimationEvent : public Event {
+class WebKitAnimationEvent FINAL : public Event {
public:
- static PassRefPtr<WebKitAnimationEvent> create()
+ static PassRefPtrWillBeRawPtr<WebKitAnimationEvent> create()
{
- return adoptRef(new WebKitAnimationEvent);
+ return adoptRefWillBeNoop(new WebKitAnimationEvent);
}
- static PassRefPtr<WebKitAnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime)
+ static PassRefPtrWillBeRawPtr<WebKitAnimationEvent> create(const AtomicString& type, const String& animationName, double elapsedTime)
{
- return adoptRef(new WebKitAnimationEvent(type, animationName, elapsedTime));
+ return adoptRefWillBeNoop(new WebKitAnimationEvent(type, animationName, elapsedTime));
}
- static PassRefPtr<WebKitAnimationEvent> create(const AtomicString& type, const WebKitAnimationEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<WebKitAnimationEvent> create(const AtomicString& type, const WebKitAnimationEventInit& initializer)
{
- return adoptRef(new WebKitAnimationEvent(type, initializer));
+ return adoptRefWillBeNoop(new WebKitAnimationEvent(type, initializer));
}
virtual ~WebKitAnimationEvent();
const String& animationName() const;
double elapsedTime() const;
- virtual const AtomicString& interfaceName() const;
+ virtual const AtomicString& interfaceName() const OVERRIDE;
+
+ virtual void trace(Visitor*) OVERRIDE;
private:
WebKitAnimationEvent();
double m_elapsedTime;
};
-} // namespace WebCore
+} // namespace blink
#endif // WebKitAnimationEvent_h