Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / events / PageTransitionEvent.h
index cc79580..fe0ed53 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "core/events/Event.h"
 
-namespace WebCore {
+namespace blink {
 
 struct PageTransitionEventInit : public EventInit {
     PageTransitionEventInit();
@@ -36,27 +36,30 @@ struct PageTransitionEventInit : public EventInit {
     bool persisted;
 };
 
-class PageTransitionEvent FINAL : public Event {
+class PageTransitionEvent final : public Event {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtr<PageTransitionEvent> create()
+    static PassRefPtrWillBeRawPtr<PageTransitionEvent> create()
     {
-        return adoptRef(new PageTransitionEvent);
+        return adoptRefWillBeNoop(new PageTransitionEvent);
     }
-    static PassRefPtr<PageTransitionEvent> create(const AtomicString& type, bool persisted)
+    static PassRefPtrWillBeRawPtr<PageTransitionEvent> create(const AtomicString& type, bool persisted)
     {
-        return adoptRef(new PageTransitionEvent(type, persisted));
+        return adoptRefWillBeNoop(new PageTransitionEvent(type, persisted));
     }
-    static PassRefPtr<PageTransitionEvent> create(const AtomicString& type, const PageTransitionEventInit& initializer)
+    static PassRefPtrWillBeRawPtr<PageTransitionEvent> create(const AtomicString& type, const PageTransitionEventInit& initializer)
     {
-        return adoptRef(new PageTransitionEvent(type, initializer));
+        return adoptRefWillBeNoop(new PageTransitionEvent(type, initializer));
     }
 
     virtual ~PageTransitionEvent();
 
-    virtual const AtomicString& interfaceName() const OVERRIDE;
+    virtual const AtomicString& interfaceName() const override;
 
     bool persisted() const { return m_persisted; }
 
+    virtual void trace(Visitor*) override;
+
 private:
     PageTransitionEvent();
     PageTransitionEvent(const AtomicString& type, bool persisted);
@@ -65,6 +68,6 @@ private:
     bool m_persisted;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // PageTransitionEvent_h