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