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

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

Issue 2392463004: reflow comments in modules/{webmidi,websocket} (Closed)
Patch Set: Created 4 years, 2 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
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 e78cafbaebcc8169cd1dc5706b0e1f7441705565..0a4c6216b968ab1051ea16391d62804ae1646c83 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp
@@ -175,9 +175,11 @@ 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.
+ // 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);
@@ -196,13 +198,15 @@ void MIDIAccess::sendMIDIData(unsigned portIndex,
double timeStampInMilliseconds) {
if (!data || !length || portIndex >= m_outputs.size())
return;
- // Convert from a time in milliseconds (a DOMHighResTimeStamp) according to the same time coordinate system as performance.now()
- // into a time in seconds which is based on the time coordinate system of monotonicallyIncreasingTime().
+ // Convert from a time in milliseconds (a DOMHighResTimeStamp) according to
+ // the same time coordinate system as performance.now() into a time in seconds
+ // which is based on the time coordinate system of
+ // monotonicallyIncreasingTime().
double timeStamp;
if (!timeStampInMilliseconds) {
- // We treat a value of 0 (which is the default value) as special, meaning "now".
- // We need to translate it exactly to 0 seconds.
+ // We treat a value of 0 (which is the default value) as special, meaning
+ // "now". We need to translate it exactly to 0 seconds.
timeStamp = 0;
} else {
Document* document = toDocument(getExecutionContext());
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIAccess.h ('k') | third_party/WebKit/Source/modules/webmidi/MIDIInput.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698