Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / events / ProgressEvent.h
index eb5edb7..30d5729 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "core/events/Event.h"
 
-namespace WebCore {
+namespace blink {
 
 struct ProgressEventInit : public EventInit {
     ProgressEventInit();
@@ -39,25 +39,28 @@ struct ProgressEventInit : public EventInit {
 };
 
 class ProgressEvent : public Event {
+    DEFINE_WRAPPERTYPEINFO();
 public:
-    static PassRefPtr<ProgressEvent> create()
+    static PassRefPtrWillBeRawPtr<ProgressEvent> create()
     {
-        return adoptRef(new ProgressEvent);
+        return adoptRefWillBeNoop(new ProgressEvent);
     }
-    static PassRefPtr<ProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
+    static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
     {
-        return adoptRef(new ProgressEvent(type, lengthComputable, loaded, total));
+        return adoptRefWillBeNoop(new ProgressEvent(type, lengthComputable, loaded, total));
     }
-    static PassRefPtr<ProgressEvent> create(const AtomicString& type, const ProgressEventInit& initializer)
+    static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type, const ProgressEventInit& initializer)
     {
-        return adoptRef(new ProgressEvent(type, initializer));
+        return adoptRefWillBeNoop(new ProgressEvent(type, initializer));
     }
 
     bool lengthComputable() const { return m_lengthComputable; }
     unsigned long long loaded() const { return m_loaded; }
     unsigned long long total() const { return m_total; }
 
-    virtual const AtomicString& interfaceName() const;
+    virtual const AtomicString& interfaceName() const OVERRIDE;
+
+    virtual void trace(Visitor*) OVERRIDE;
 
 protected:
     ProgressEvent();
@@ -69,6 +72,7 @@ private:
     unsigned long long m_loaded;
     unsigned long long m_total;
 };
-}
+
+} // namespace blink
 
 #endif // ProgressEvent_h