• toyoshim's avatar
    Web MIDI: make MidiManagerMac notify device connection status · 40405201
    toyoshim authored
    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
    
    Review URL: https://codereview.chromium.org/662233002
    
    Cr-Commit-Position: refs/heads/master@{#317000}
    40405201
midi_manager_mac.cc 11 KB