Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / websockets / CloseEvent.h
index 2931fd9..3debdac 100644 (file)
@@ -38,9 +38,7 @@ namespace blink {
 struct CloseEventInit : public EventInit {
     CloseEventInit()
         : wasClean(false)
-        , code(0)
-    {
-    };
+        , code(0) { }
 
     bool wasClean;
     unsigned short code;
@@ -48,6 +46,7 @@ struct CloseEventInit : public EventInit {
 };
 
 class CloseEvent FINAL : public Event {
+    DEFINE_WRAPPERTYPEINFO();
 public:
     static PassRefPtrWillBeRawPtr<CloseEvent> create()
     {
@@ -77,28 +76,19 @@ private:
     CloseEvent()
         : Event(EventTypeNames::close, false, false)
         , m_wasClean(false)
-        , m_code(0)
-    {
-        ScriptWrappable::init(this);
-    }
+        , m_code(0) { }
 
     CloseEvent(bool wasClean, int code, const String& reason)
         : Event(EventTypeNames::close, false, false)
         , m_wasClean(wasClean)
         , m_code(code)
-        , m_reason(reason)
-    {
-        ScriptWrappable::init(this);
-    }
+        , m_reason(reason) { }
 
     CloseEvent(const AtomicString& type, const CloseEventInit& initializer)
         : Event(type, initializer)
         , m_wasClean(initializer.wasClean)
         , m_code(initializer.code)
-        , m_reason(initializer.reason)
-    {
-        ScriptWrappable::init(this);
-    }
+        , m_reason(initializer.reason) { }
 
     bool m_wasClean;
     unsigned short m_code;