Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1925)

Unified Diff: Source/modules/webmidi/MIDIPort.idl

Issue 13843021: Web MIDI: implement MIDIPort (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: (rebase) Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Source/modules/webmidi/MIDIPort.cpp ('K') | « Source/modules/webmidi/MIDIPort.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
-
« Source/modules/webmidi/MIDIPort.cpp ('K') | « Source/modules/webmidi/MIDIPort.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698