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

Unified Diff: content/browser/media/midi_host.cc

Issue 662233002: Web MIDI: make MidiManagerMac notify device connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + cleanup Created 6 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: content/browser/media/midi_host.cc
diff --git a/content/browser/media/midi_host.cc b/content/browser/media/midi_host.cc
index 2fc014785755b889c750cce0bc8a5b06d778b4af..27665e5a9a3188a3019cc499781383bfd26d5381 100644
--- a/content/browser/media/midi_host.cc
+++ b/content/browser/media/midi_host.cc
@@ -145,6 +145,14 @@ void MidiHost::AddOutputPort(const media::MidiPortInfo& info) {
Send(new MidiMsg_AddOutputPort(info));
}
+void MidiHost::SetInputPortState(uint32 port, bool connected) {
+ Send(new MidiMsg_SetInputPortState(port, connected));
+}
+
+void MidiHost::SetOutputPortState(uint32 port, bool connected) {
+ Send(new MidiMsg_SetOutputPortState(port, connected));
+}
+
void MidiHost::ReceiveMidiData(
uint32 port,
const uint8* data,

Powered by Google App Engine
This is Rietveld 408576698