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

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

Issue 2422163002: Web MIDI: use midi_service.mojom for media::midi::PortState (Closed)
Patch Set: gn --check fix 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
« no previous file with comments | « content/browser/media/midi_host.h ('k') | content/browser/media/midi_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/midi_host.cc
diff --git a/content/browser/media/midi_host.cc b/content/browser/media/midi_host.cc
index af57a91a8e3fa0204befbd3e095530d9452015eb..ed01c71f4ac3ec028adfc25d96ac73996cd9c67d 100644
--- a/content/browser/media/midi_host.cc
+++ b/content/browser/media/midi_host.cc
@@ -39,6 +39,7 @@ using midi::IsValidWebMIDIData;
using midi::MidiPortInfo;
using midi::kSysExByte;
using midi::kEndOfSysExByte;
+using midi::mojom::PortState;
using midi::mojom::Result;
MidiHost::MidiHost(int renderer_process_id,
@@ -161,13 +162,11 @@ void MidiHost::AddOutputPort(const MidiPortInfo& info) {
Send(new MidiMsg_AddOutputPort(info));
}
-void MidiHost::SetInputPortState(uint32_t port,
- midi::MidiPortState state) {
+void MidiHost::SetInputPortState(uint32_t port, PortState state) {
Send(new MidiMsg_SetInputPortState(port, state));
}
-void MidiHost::SetOutputPortState(uint32_t port,
- midi::MidiPortState state) {
+void MidiHost::SetOutputPortState(uint32_t port, PortState state) {
Send(new MidiMsg_SetOutputPortState(port, state));
}
« no previous file with comments | « content/browser/media/midi_host.h ('k') | content/browser/media/midi_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698