Chromium Code Reviews| Index: Source/modules/webmidi/MIDIInputMap.idl |
| diff --git a/Source/modules/webmidi/MIDIInputMap.idl b/Source/modules/webmidi/MIDIInputMap.idl |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..abb5f852af10585ef4ec22da4931508d9b3afcec |
| --- /dev/null |
| +++ b/Source/modules/webmidi/MIDIInputMap.idl |
| @@ -0,0 +1,20 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// callback ForEachCallback = void(DOMString id, MIDIInput port); |
|
haraken
2014/08/31 07:18:57
Add a FIXME about this.
yhirano
2014/09/01 02:22:11
Done.
|
| + |
| +[ |
| + Iterable, |
| + NoInterfaceObject, |
| + GarbageCollected, |
| +] interface MIDIInputMap { |
| + readonly attribute unsigned long size; |
| + Iterator keys(); |
| + Iterator entries(); |
| + Iterator values(); |
| + // This function returns undefined if |!this->has(id)|. |
| + [ImplementedAs=getForBinding, CallWith=ScriptState] any get(DOMString id); |
| + boolean has(DOMString key); |
| +// void forEach (ForEachCallback callback); |
| +}; |