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

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

Issue 2404443002: Web MIDI: use midi_service.mojom for media::midi::Result (Closed)
Patch Set: yhirano@ review 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 11f7dcee0ce6bb8d3ce48d2c1b47f7d96dcf475f..851dc5ab0cc673390a380780e9f5bcdd180614c8 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::Result;
namespace blink {
@@ -90,10 +91,8 @@ void MIDIAccessor::didSetOutputPortState(unsigned portIndex,
m_client->didSetOutputPortState(portIndex, state);
}
-void MIDIAccessor::didStartSession(bool success,
- const WebString& error,
- const WebString& message) {
- m_client->didStartSession(success, error, message);
+void MIDIAccessor::didStartSession(Result result) {
+ m_client->didStartSession(result);
}
void MIDIAccessor::didReceiveMIDIData(unsigned portIndex,

Powered by Google App Engine
This is Rietveld 408576698