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

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

Issue 942243002: Web MIDI: blink API update to support MIDIPortState (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/webmidi/MIDIAccessor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIAccessor.h
diff --git a/Source/modules/webmidi/MIDIAccessor.h b/Source/modules/webmidi/MIDIAccessor.h
index 10ad4b0742c62b3c36062c761000adbd9d067b15..a611469eb170a6e8288a3ab3b60be26d92d06989 100644
--- a/Source/modules/webmidi/MIDIAccessor.h
+++ b/Source/modules/webmidi/MIDIAccessor.h
@@ -54,10 +54,16 @@ public:
void setClient(MIDIAccessorClient* client) { m_client = client; }
// WebMIDIAccessorClient
+ // FIXME: Remove obsolete interfaces that use isActive.
virtual void didAddInputPort(const WebString& id, const WebString& manufacturer, const WebString& name, const WebString& version, bool isActive) override;
virtual void didAddOutputPort(const WebString& id, const WebString& manufacturer, const WebString& name, const WebString& version, bool isActive) override;
+ virtual void didAddInputPort(const WebString& id, const WebString& manufacturer, const WebString& name, const WebString& version, MIDIPortState) override;
+ virtual void didAddOutputPort(const WebString& id, const WebString& manufacturer, const WebString& name, const WebString& version, MIDIPortState) override;
+ // FIXME: Remove obsolete interfaces that use isActive.
virtual void didSetInputPortState(unsigned portIndex, bool isActive) override;
virtual void didSetOutputPortState(unsigned portIndex, bool isActive) override;
+ virtual void didSetInputPortState(unsigned portIndex, MIDIPortState) override;
+ virtual void didSetOutputPortState(unsigned portIndex, MIDIPortState) override;
virtual void didStartSession(bool success, const WebString& error, const WebString& message) override;
virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp) override;
« no previous file with comments | « no previous file | Source/modules/webmidi/MIDIAccessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698