#include "core/events/Event.h"
-namespace WebCore {
+namespace blink {
struct OverflowEventInit : public EventInit {
OverflowEventInit();
};
class OverflowEvent FINAL : public Event {
+ DEFINE_WRAPPERTYPEINFO();
public:
enum orientType {
HORIZONTAL = 0,
BOTH = 2
};
- static PassRefPtr<OverflowEvent> create()
+ static PassRefPtrWillBeRawPtr<OverflowEvent> create()
{
- return adoptRef(new OverflowEvent);
+ return adoptRefWillBeNoop(new OverflowEvent);
}
- static PassRefPtr<OverflowEvent> create(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow)
+ static PassRefPtrWillBeRawPtr<OverflowEvent> create(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow)
{
- return adoptRef(new OverflowEvent(horizontalOverflowChanged, horizontalOverflow, verticalOverflowChanged, verticalOverflow));
+ return adoptRefWillBeNoop(new OverflowEvent(horizontalOverflowChanged, horizontalOverflow, verticalOverflowChanged, verticalOverflow));
}
- static PassRefPtr<OverflowEvent> create(const AtomicString& type, const OverflowEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<OverflowEvent> create(const AtomicString& type, const OverflowEventInit& initializer)
{
- return adoptRef(new OverflowEvent(type, initializer));
+ return adoptRefWillBeNoop(new OverflowEvent(type, initializer));
}
unsigned short orient() const { return m_orient; }
virtual const AtomicString& interfaceName() const OVERRIDE;
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
OverflowEvent();
OverflowEvent(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow);
bool m_verticalOverflow;
};
-}
+} // namespace blink
#endif // OverflowEvent_h