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

Unified Diff: Source/modules/webmidi/MIDIMessageEvent.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/MIDIInputMap.cpp ('k') | Source/modules/webmidi/MIDIOutput.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIMessageEvent.h
diff --git a/Source/modules/webmidi/MIDIMessageEvent.h b/Source/modules/webmidi/MIDIMessageEvent.h
index 11b7c0026be29673173a4679d6ca9db8277d5a9a..6de5db5deb62b00255df230f5d63d07b25f32905 100644
--- a/Source/modules/webmidi/MIDIMessageEvent.h
+++ b/Source/modules/webmidi/MIDIMessageEvent.h
@@ -38,9 +38,7 @@ namespace blink {
struct MIDIMessageEventInit : public EventInit {
MIDIMessageEventInit()
- : receivedTime(0.0)
- {
- };
+ : receivedTime(0.0) { }
double receivedTime;
RefPtr<Uint8Array> data;
@@ -73,26 +71,17 @@ public:
private:
MIDIMessageEvent()
- : m_receivedTime(0)
- {
- ScriptWrappable::init(this);
- }
+ : m_receivedTime(0) { }
MIDIMessageEvent(double receivedTime, PassRefPtr<Uint8Array> data)
: Event(EventTypeNames::midimessage, true, false)
, m_receivedTime(receivedTime)
- , m_data(data)
- {
- ScriptWrappable::init(this);
- }
+ , m_data(data) { }
MIDIMessageEvent(const AtomicString& type, const MIDIMessageEventInit& initializer)
: Event(type, initializer)
, m_receivedTime(initializer.receivedTime)
- , m_data(initializer.data)
- {
- ScriptWrappable::init(this);
- }
+ , m_data(initializer.data) { }
double m_receivedTime;
RefPtr<Uint8Array> m_data;
« no previous file with comments | « Source/modules/webmidi/MIDIInputMap.cpp ('k') | Source/modules/webmidi/MIDIOutput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698