Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / events / OverflowEvent.h
index cedf0fc..aaaaec2 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "core/events/Event.h"
 
-namespace WebCore {
+namespace blink {
 
 struct OverflowEventInit : public EventInit {
     OverflowEventInit();
@@ -38,7 +38,8 @@ struct OverflowEventInit : public EventInit {
     bool verticalOverflow;
 };
 
-class OverflowEvent FINAL : public Event {
+class OverflowEvent final : public Event {
+    DEFINE_WRAPPERTYPEINFO();
 public:
     enum orientType {
         HORIZONTAL = 0,
@@ -48,24 +49,24 @@ public:
 
     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();
@@ -77,6 +78,6 @@ private:
     bool m_verticalOverflow;
 };
 
-}
+} // namespace blink
 
 #endif // OverflowEvent_h