Chromium Code Reviews| Index: Source/modules/webmidi/MIDIAccess.idl |
| diff --git a/Source/modules/webmidi/MIDIPort.idl b/Source/modules/webmidi/MIDIAccess.idl |
| similarity index 80% |
| copy from Source/modules/webmidi/MIDIPort.idl |
| copy to Source/modules/webmidi/MIDIAccess.idl |
| index 226387cb79bd5825f319434d94eaf5f4135610e8..be21444f487c94a39321cc9f32738403263c2970 100644 |
| --- a/Source/modules/webmidi/MIDIPort.idl |
| +++ b/Source/modules/webmidi/MIDIAccess.idl |
| @@ -28,21 +28,20 @@ |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| -enum MIDIPortType { |
| - "input", |
| - "output" |
| -}; |
| - |
| [ |
| ActiveDOMObject, |
| EventTarget |
| -] interface MIDIPort { |
| - readonly attribute DOMString id; |
| - readonly attribute DOMString manufacturer; |
| - readonly attribute DOMString name; |
| - readonly attribute MIDIPortType type; |
| - readonly attribute DOMString version; |
| +] interface MIDIAccess { |
| + sequence<MIDIPort> getInputs(); |
| + sequence<MIDIPort> getOutputs(); |
| + [RaisesException] MIDIInput getInput(MIDIPort target); |
| + [RaisesException] MIDIInput getInput(DOMString target); |
|
haraken
2013/04/26 15:15:13
Due to lack of IDL implementation for overloaded m
Takashi Toyoshima
2013/04/26 17:11:13
Thanks.
I filed a bug on this; https://code.google
|
| + [RaisesException] MIDIInput getInput(short target); |
| + [RaisesException] MIDIOutput getOutput(MIDIPort target); |
| + [RaisesException] MIDIOutput getOutput(DOMString target); |
|
haraken
2013/04/26 15:15:13
Ditto.
|
| + [RaisesException] MIDIOutput getOutput(short target); |
| + attribute EventListener onconnect; |
| attribute EventListener ondisconnect; |
| // EventTarget interface |