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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp

Issue 2489033005: Web MIDI: deprecate MIDIMessageEvent.receivedTime (Closed)
Patch Set: expectation for virtual Created 4 years, 1 month 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
Index: third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
index 7114293d871718dfddd3fc777f61bfedd00db624..2e09a939bb1787a5e8eebfdbac7d7e962bfc62de 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
@@ -191,21 +191,7 @@ void MIDIAccess::didReceiveMIDIData(unsigned portIndex,
if (portIndex >= m_inputs.size())
return;
- // Convert from time in seconds which is based on the time coordinate system
- // of monotonicallyIncreasingTime() into time in milliseconds (a
- // DOMHighResTimeStamp) according to the same time coordinate system as
- // performance.now(). This is how timestamps are defined in the Web MIDI
- // spec.
- Document* document = toDocument(getExecutionContext());
- DCHECK(document);
-
- double timeStampInMilliseconds =
- 1000 *
- document->loader()->timing().monotonicTimeToZeroBasedDocumentTime(
- timeStamp);
-
- m_inputs[portIndex]->didReceiveMIDIData(portIndex, data, length,
- timeStampInMilliseconds);
+ m_inputs[portIndex]->didReceiveMIDIData(portIndex, data, length, timeStamp);
}
void MIDIAccess::sendMIDIData(unsigned portIndex,
« no previous file with comments | « third_party/WebKit/Source/core/frame/Deprecation.cpp ('k') | third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698