Chromium Code Reviews| Index: Source/modules/webmidi/MIDIPort.idl |
| diff --git a/Source/modules/mediasource/SourceBufferList.idl b/Source/modules/webmidi/MIDIPort.idl |
| similarity index 77% |
| copy from Source/modules/mediasource/SourceBufferList.idl |
| copy to Source/modules/webmidi/MIDIPort.idl |
| index f8531ed6eb3201bbcdfcf50c34e8f46f9a1a9431..4127d71044d6b7b83bec2cf8aaf8bee5aef95fca 100644 |
| --- a/Source/modules/mediasource/SourceBufferList.idl |
| +++ b/Source/modules/webmidi/MIDIPort.idl |
| @@ -1,5 +1,5 @@ |
| /* |
| - * Copyright (C) 2012 Google Inc. All rights reserved. |
| + * Copyright (C) 2013 Google Inc. All rights reserved. |
| * |
| * Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions are |
| @@ -27,15 +27,26 @@ |
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| - |
| + |
| +// FIXME: IDL generator doesn't support readonly enum yet. |
| +// See also, http://crbug.com/234925 |
| +//enum MIDIPortType { |
| +// "input", |
| +// "output" |
| +//}; |
| + |
| [ |
| - EnabledAtRuntime=mediaSource, |
| - IndexedGetter, |
| - EventTarget, |
| - CallWith=ScriptExecutionContext |
| -] interface SourceBufferList { |
| - readonly attribute unsigned long length; |
| - SourceBuffer item(unsigned long index); |
| + ActiveDOMObject, |
| + EventTarget |
| +] interface MIDIPort { |
| + readonly attribute DOMString id; |
| + readonly attribute DOMString manufacturer; |
| + readonly attribute DOMString name; |
| + //readonly attribute MIDIPortType type; |
|
Chris Rogers
2013/04/24 19:18:09
It's ok just to have the comment with bug number a
Takashi Toyoshima
2013/04/25 03:47:22
Done.
|
| + readonly attribute DOMString type; |
| + readonly attribute DOMString version; |
| + |
| + attribute EventListener ondisconnect; |
| // EventTarget interface |
| void addEventListener(DOMString type, |
| @@ -46,4 +57,3 @@ |
| optional boolean useCapture); |
| [RaisesException] boolean dispatchEvent(Event event); |
| }; |
| - |