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

Unified Diff: media/midi/midi_service.mojom

Issue 861033003: [WIP][NotForLand]: Use Mojo for WebMIDI IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « media/media.gyp ('k') | media/midi/midi_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+};
« no previous file with comments | « media/media.gyp ('k') | media/midi/midi_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698