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

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

Issue 14044022: Web MIDI: implement MIDIAccess (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/modules/webmidi/MIDIAccess.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/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
« no previous file with comments | « Source/modules/webmidi/MIDIAccess.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698