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

Side by Side Diff: Source/modules/webmidi/MIDIMessageEvent.cpp

Issue 943173002: Web MIDI: dispatch MIDIConnectionEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review #3 Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « Source/modules/webmidi/MIDIMessageEvent.h ('k') | Source/modules/webmidi/MIDIPort.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « Source/modules/webmidi/MIDIMessageEvent.h ('k') | Source/modules/webmidi/MIDIPort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698