| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "modules/webmidi/MIDIMessageEvent.h" | 6 #include "modules/webmidi/MIDIMessageEvent.h" |
| 7 #include "modules/webmidi/MIDIMessageEventInit.h" |
| 7 | 8 |
| 8 namespace blink { | 9 namespace blink { |
| 9 | 10 |
| 10 MIDIMessageEvent::MIDIMessageEvent(const AtomicString& type, const MIDIMessageEv
entInit& initializer) | 11 MIDIMessageEvent::MIDIMessageEvent(const AtomicString& type, const MIDIMessageEv
entInit& initializer) |
| 11 : Event(type, initializer) | 12 : Event(type, initializer) |
| 12 , m_receivedTime(0.0) | 13 , m_receivedTime(0.0) |
| 13 { | 14 { |
| 14 if (initializer.hasReceivedTime()) | 15 if (initializer.hasReceivedTime()) |
| 15 m_receivedTime = initializer.receivedTime(); | 16 m_receivedTime = initializer.receivedTime(); |
| 16 if (initializer.hasData()) | 17 if (initializer.hasData()) |
| 17 m_data = initializer.data(); | 18 m_data = initializer.data(); |
| 18 } | 19 } |
| 19 | 20 |
| 20 } // namespace blink | 21 } // namespace blink |
| OLD | NEW |