DescriptionWeb MIDI: make MidiManagerMac notify device connection status
To handle device connection status, MidiManager and MidiMessageFilter
hold all devices as a list. These lists are modified by event
notifications that are delivered asynchronously.
They do not remove disconnected devices, but just mark as disconnected.
This is useful when JavaScript has a reference to a device
that got disconnected. The reference can be availalbe if the device
gets connected again.
BUG=422333
TEST=media_unittests
Committed: https://crrev.com/40405201282bde7546763d2402d31104cc991ba0
Cr-Commit-Position: refs/heads/master@{#317000}
Patch Set 1 : #Patch Set 2 : rebase + cleanup #
Total comments: 13
Patch Set 3 : use enum for MidiPortState #
Total comments: 2
Patch Set 4 : std::find #Patch Set 5 : i - begin #
Total comments: 4
Patch Set 6 : it->second #
Messages
Total messages: 27 (11 generated)
|