Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1366)

Unified Diff: Source/modules/websockets/CloseEvent.h

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webmidi/MIDIPort.cpp ('k') | Source/modules/websockets/DOMWebSocket.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/websockets/CloseEvent.h
diff --git a/Source/modules/websockets/CloseEvent.h b/Source/modules/websockets/CloseEvent.h
index 477415e6dd10d7c038cfeb82371c0b61b8a02afe..3debdacbeb6e5fcf68473217fe13b61a6d56d82b 100644
--- a/Source/modules/websockets/CloseEvent.h
+++ b/Source/modules/websockets/CloseEvent.h
@@ -38,9 +38,7 @@ namespace blink {
struct CloseEventInit : public EventInit {
CloseEventInit()
: wasClean(false)
- , code(0)
- {
- }
+ , code(0) { }
bool wasClean;
unsigned short code;
@@ -78,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;
« no previous file with comments | « Source/modules/webmidi/MIDIPort.cpp ('k') | Source/modules/websockets/DOMWebSocket.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698