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

Unified Diff: third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp

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
Index: third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp b/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp
index 851dc5ab0cc673390a380780e9f5bcdd180614c8..1499e5238953c80b3decbe786b6de4ec02530ba6 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp
@@ -37,6 +37,7 @@
#include <memory>
using blink::WebString;
+using midi::mojom::PortState;
using midi::mojom::Result;
namespace blink {
@@ -69,7 +70,7 @@ void MIDIAccessor::didAddInputPort(const WebString& id,
const WebString& manufacturer,
const WebString& name,
const WebString& version,
- MIDIPortState state) {
+ PortState state) {
m_client->didAddInputPort(id, manufacturer, name, version, state);
}
@@ -77,17 +78,15 @@ void MIDIAccessor::didAddOutputPort(const WebString& id,
const WebString& manufacturer,
const WebString& name,
const WebString& version,
- MIDIPortState state) {
+ PortState state) {
m_client->didAddOutputPort(id, manufacturer, name, version, state);
}
-void MIDIAccessor::didSetInputPortState(unsigned portIndex,
- MIDIPortState state) {
+void MIDIAccessor::didSetInputPortState(unsigned portIndex, PortState state) {
m_client->didSetInputPortState(portIndex, state);
}
-void MIDIAccessor::didSetOutputPortState(unsigned portIndex,
- MIDIPortState state) {
+void MIDIAccessor::didSetOutputPortState(unsigned portIndex, PortState state) {
m_client->didSetOutputPortState(portIndex, state);
}

Powered by Google App Engine
This is Rietveld 408576698