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

Side by Side 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, 10 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 unified diff | Download patch
« no previous file with comments | « media/media.gyp ('k') | media/midi/midi_service_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 module media;
2
3 enum MidiResultMojo {
4 NOT_INITIALIZED = -1,
5 OK = 0,
6 NOT_SUPPORTED,
7 INITIALIZATION_ERROR,
8 };
9
10 struct MidiPortInfoMojo {
11 string id;
12 string manufacturer;
13 string name;
14 string version;
15 };
16
17 // Renderer -> Browser
18 interface MidiService {
19 StartSession(MidiServiceClient client) => (MidiResultMojo result);
20 EndSession();
21 SendData(uint32 port, array<uint8> data, double timestamp);
22 };
23
24 // Browser -> Renderer
25 interface MidiServiceClient {
26 AcknowledgeSentData(uint32 bytes_sent);
27 AddInputPort(MidiPortInfoMojo input_port);
28 AddOutputPort(MidiPortInfoMojo input_port);
29 DataReceived(uint32 port, array<uint8> data, double timestamp);
30 };
OLDNEW
« 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