Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / midi / PMIDIPort.ipdl
blob917518e919655a0c31e93755de3c44a104aeb49f
1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5  * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 include MIDITypes;
9 namespace mozilla {
10 namespace dom {
12 [ChildProc=anydom]
13 async protocol PMIDIPort
15 parent:
16   async Shutdown();
17   async Send(MIDIMessage[] msg);
18   async Open();
19   async Close();
20   async Clear();
21 child:
22   async Receive(MIDIMessage[] msg);
23   // Actually takes a MIDIDeviceConnectionState and MIDIPortConnectionState
24   // respectively.
25   async UpdateStatus(uint32_t deviceState, uint32_t connectionState);