Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / events / OverflowEvent.h
index 1f8e1a1..2558265 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "core/events/Event.h"
 
-namespace WebCore {
+namespace blink {
 
 struct OverflowEventInit : public EventInit {
     OverflowEventInit();
@@ -39,6 +39,7 @@ struct OverflowEventInit : public EventInit {
 };
 
 class OverflowEvent FINAL : public Event {
+    DEFINE_WRAPPERTYPEINFO();
 public:
     enum orientType {
         HORIZONTAL = 0,
@@ -46,17 +47,17 @@ public:
         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; }
@@ -65,6 +66,8 @@ public:
 
     virtual const AtomicString& interfaceName() const OVERRIDE;
 
+    virtual void trace(Visitor*) OVERRIDE;
+
 private:
     OverflowEvent();
     OverflowEvent(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow);
@@ -75,6 +78,6 @@ private:
     bool m_verticalOverflow;
 };
 
-}
+} // namespace blink
 
 #endif // OverflowEvent_h