| Index: media/midi/midi_service.mojom
|
| diff --git a/media/midi/midi_service.mojom b/media/midi/midi_service.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..65b70847ae9d96d37c434636358c90621d95521c
|
| --- /dev/null
|
| +++ b/media/midi/midi_service.mojom
|
| @@ -0,0 +1,30 @@
|
| +module media;
|
| +
|
| +enum MidiResultMojo {
|
| + NOT_INITIALIZED = -1,
|
| + OK = 0,
|
| + NOT_SUPPORTED,
|
| + INITIALIZATION_ERROR,
|
| +};
|
| +
|
| +struct MidiPortInfoMojo {
|
| + string id;
|
| + string manufacturer;
|
| + string name;
|
| + string version;
|
| +};
|
| +
|
| +// Renderer -> Browser
|
| +interface MidiService {
|
| + StartSession(MidiServiceClient client) => (MidiResultMojo result);
|
| + EndSession();
|
| + SendData(uint32 port, array<uint8> data, double timestamp);
|
| +};
|
| +
|
| +// Browser -> Renderer
|
| +interface MidiServiceClient {
|
| + AcknowledgeSentData(uint32 bytes_sent);
|
| + AddInputPort(MidiPortInfoMojo input_port);
|
| + AddOutputPort(MidiPortInfoMojo input_port);
|
| + DataReceived(uint32 port, array<uint8> data, double timestamp);
|
| +};
|
|
|