DescriptionWeb MIDI: add open() and close() to MIDIPort
The latest editor's draft introduces open() and close() interfaces
to MIDIPort. This patch implements open() and close() interfaces, and
realizes proper MIDIPortState transition on open() and close().
See, http://webaudio.github.io/web-midi-api/#idl-def-MIDIPort, and
http://webaudio.github.io/web-midi-api/#idl-def-MIDIPortState.
For now, implicit open that should happen on send() and handler set
are not implemented yet. But, MIDIPort works even on "connected" state.
So, this does not break compatibility.
These things will be fixed at the next patch.
BUG=462183
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191259
Patch Set 1 #Patch Set 2 : cleanup #
Total comments: 4
Patch Set 3 : do not use MIDIPortStateTransition class #
Total comments: 1
Patch Set 4 : cast and win build fix #
Total comments: 4
Patch Set 5 : promise is awesome #
Total comments: 2
Patch Set 6 : review #14 #Messages
Total messages: 19 (2 generated)
|