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

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

Issue 18858006: Implement MIDIOutput.send() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: forward declare MIDIAccess 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
« no previous file with comments | « LayoutTests/webmidi/requestmidiaccess.html ('k') | Source/modules/webmidi/MIDIAccess.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIAccess.h
diff --git a/Source/modules/webmidi/MIDIAccess.h b/Source/modules/webmidi/MIDIAccess.h
index 615e9e4db78ed3853f2dcccfe66b2f337f3fdf0f..d0a286cc61e5495b9d06bef18ad77223f7e9a08c 100644
--- a/Source/modules/webmidi/MIDIAccess.h
+++ b/Source/modules/webmidi/MIDIAccess.h
@@ -61,7 +61,8 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(connect);
DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect);
- void enableSysEx(bool enable);
+ void setSysExEnabled(bool);
+ bool sysExEnabled() const { return m_sysExEnabled; }
// EventTarget
virtual const AtomicString& interfaceName() const OVERRIDE { return eventNames().interfaceForMIDIAccess; }
@@ -77,6 +78,9 @@ public:
virtual void didStartSession() 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*);
@@ -96,7 +100,7 @@ private:
OwnPtr<MIDIAccessor> m_accessor;
bool m_hasAccess;
- bool m_enableSysEx;
+ bool m_sysExEnabled;
bool m_requesting;
};
« no previous file with comments | « LayoutTests/webmidi/requestmidiaccess.html ('k') | Source/modules/webmidi/MIDIAccess.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698