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

Unified Diff: third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h

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
« content/browser/BUILD.gn ('K') | « third_party/WebKit/public/platform/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h
diff --git a/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h b/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h
index a98bca88a80767eda4e23443fe1d6f768ddf32e4..868c4545f27da34a1355eb728c8c52d0bd7ba727 100644
--- a/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h
+++ b/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessorClient.h
@@ -31,6 +31,7 @@
#ifndef WebMIDIAccessorClient_h
#define WebMIDIAccessorClient_h
+#include "media/midi/midi_service.mojom-shared.h"
#include "public/platform/WebString.h"
namespace blink {
@@ -59,9 +60,7 @@ class WebMIDIAccessorClient {
virtual void didSetInputPortState(unsigned portIndex, MIDIPortState) = 0;
virtual void didSetOutputPortState(unsigned portIndex, MIDIPortState) = 0;
- virtual void didStartSession(bool success,
- const WebString& error,
- const WebString& message) = 0;
+ virtual void didStartSession(midi::mojom::Result) = 0;
// |timeStamp| is in milliseconds according to the Web MIDI API.
virtual void didReceiveMIDIData(unsigned portIndex,
« content/browser/BUILD.gn ('K') | « third_party/WebKit/public/platform/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698