Index: Source/modules/webmidi/MIDIPort.idl |
diff --git a/Source/modules/mediasource/SourceBufferList.idl b/Source/modules/webmidi/MIDIPort.idl |
similarity index 78% |
copy from Source/modules/mediasource/SourceBufferList.idl |
copy to Source/modules/webmidi/MIDIPort.idl |
index f8531ed6eb3201bbcdfcf50c34e8f46f9a1a9431..2c7286fbc22875f02f9157e4d3389d85e49a1e8f 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,25 @@ |
* (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 DOMString type; |
+ readonly attribute DOMString version; |
+ |
+ attribute EventListener ondisconnect; |
// EventTarget interface |
void addEventListener(DOMString type, |
@@ -46,4 +56,3 @@ |
optional boolean useCapture); |
[RaisesException] boolean dispatchEvent(Event event); |
}; |
- |