Name Description Size
MIDIAccess.cpp 7925
MIDIAccess.h MIDIAccess is the DOM object that is handed to the user upon MIDI permissions being successfully granted. It manages access to MIDI ports, and fires events for device connection and disconnection. New MIDIAccess objects are created every time RequestMIDIAccess is called. MIDIAccess objects are managed via MIDIAccessManager. 4125
MIDIAccessManager.cpp 4935
MIDIAccessManager.h MIDIAccessManager manages creation and lifetime of MIDIAccess objects for the process it lives in. It is in charge of dealing with permission requests, creating new MIDIAccess objects, and updating live MIDIAccess objects with new device listings. While a process/window can have many MIDIAccess objects, there is only one MIDIAccessManager for any one process. 2873
MIDIInput.cpp 2191
MIDIInput.h Represents a MIDI Input Port, handles generating incoming message events. 1712
MIDIInputMap.cpp 1010
MIDIInputMap.h Maplike DOM object that holds a list of all MIDI input ports available for access. Almost all functions are implemented automatically by WebIDL. 1224
MIDIManagerChild.cpp 1150
MIDIManagerChild.h Actor implementation for the Child side of MIDIManager (represented in DOM by MIDIAccess). Manages actor lifetime so that we know to shut down services when all MIDIManagers are gone. Also receives port list update on MIDIAccess object creation. 1171
MIDIManagerParent.cpp 833
MIDIManagerParent.h Actor implementation for the Parent (PBackground thread) side of MIDIManager (represented in DOM by MIDIAccess). Manages actor lifetime so that we know to shut down services when all MIDIManagers are gone. 1121
MIDIMessageEvent.cpp 3634
MIDIMessageEvent.h Event that fires whenever a MIDI message is received by the MIDIInput object. 1898
MIDIMessageQueue.cpp 1931
MIDIMessageQueue.h Since some MIDI Messages can be scheduled to be sent in the future, the MIDIMessageQueue is responsible for making sure all MIDI messages are scheduled and sent in order. 1614
MIDIOutput.cpp 3406
MIDIOutput.h Represents a MIDI Output Port, handles sending message to devices. 1512
MIDIOutputMap.cpp 1021
MIDIOutputMap.h Maplike DOM object that holds a list of all MIDI output ports available for access. Almost all functions are implemented automatically by WebIDL. 1237
MIDIPermissionRequest.cpp 3352
MIDIPermissionRequest.h Handles permission dialog management when requesting MIDI permissions. 1524
MIDIPlatformRunnables.cpp 1436
MIDIPlatformRunnables.h Base class for runnables to be fired to the platform-specific MIDI service thread in PBackground. 3645
MIDIPlatformService.cpp 8242
MIDIPlatformService.h Base class for platform specific MIDI implementations. Handles aggregation of IPC service objects, as well as sending/receiving updates about port connection events and messages. 6110
MIDIPort.cpp 5763
MIDIPort.h Implementation of WebIDL DOM MIDIPort class. Handles all port representation and communication. 3320
MIDIPortChild.cpp 1903
MIDIPortChild.h Child actor for a MIDIPort object. Each MIDIPort DOM object in JS has a its own child actor. The lifetime of the actor object is dependent on the lifetime of the JS object. 1596
MIDIPortInterface.cpp 1162
MIDIPortInterface.h Base class for MIDIPort Parent/Child Actors. Makes sure both sides of the MIDIPort IPC connection need to a synchronized set of info/state. 1699
MIDIPortParent.cpp 3461
MIDIPortParent.h Actor representing the parent (PBackground thread) side of a MIDIPort object. 1913
MIDITypes.ipdlh 749
MIDIUtils.cpp 4723
MIDIUtils.h Set of utility functions for dealing with MIDI Messages. 976
moz.build 1555
PMIDIManager.ipdl Send an updated list of MIDI ports to the child 565
PMIDIPort.ipdl 808
TestMIDIPlatformService.cpp Runnable used for making sure ProcessMessages only happens on the IO thread. 9481
TestMIDIPlatformService.h Platform service implementation used for mochitests. Emulates what a real platform service should look like, including using an internal IO thread for message IO. 2345
tests 14