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

Unified Diff: Source/modules/webmidi/MIDIAccess.h

Issue 18858006: Implement MIDIOutput.send() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add support for regular Array Created 7 years, 5 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: Source/modules/webmidi/MIDIAccess.h
diff --git a/Source/modules/webmidi/MIDIAccess.h b/Source/modules/webmidi/MIDIAccess.h
index 595afceabf03f5a2aa90ec187998a4bdfa0e3877..390f528714b6f798a4f3c3e1ac14dd8c88cd3941 100644
--- a/Source/modules/webmidi/MIDIAccess.h
+++ b/Source/modules/webmidi/MIDIAccess.h
@@ -37,6 +37,7 @@
#include "core/platform/midi/MIDIAccessor.h"
#include "core/platform/midi/MIDIAccessorClient.h"
#include "modules/webmidi/MIDIInput.h"
+#include "modules/webmidi/MIDIOptions.h"
#include "modules/webmidi/MIDIOutput.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -76,6 +77,9 @@ public:
virtual void didBlockAccess() OVERRIDE;
virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp) OVERRIDE;
+ // |timeStampInMilliseconds| is in the same time coordinate system as performance.now().
+ void sendMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStampInMilliseconds);
+
private:
explicit MIDIAccess(ScriptExecutionContext*, MIDIAccessPromise*);
@@ -92,6 +96,7 @@ private:
OwnPtr<MIDIAccessor> m_accessor;
bool m_hasAccess;
+ MIDIOptions m_midiOptions;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698