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

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

Issue 13843021: Web MIDI: implement MIDIPort (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cleanup 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
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);
};
-
« Source/core/dom/EventTargetFactory.in ('K') | « Source/modules/webmidi/MIDIPort.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698