OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // callback ForEachCallback = void(DOMString id, MIDIInput port); |
| 6 |
| 7 [ |
| 8 Iterable, |
| 9 NoInterfaceObject, |
| 10 GarbageCollected, |
| 11 ] interface MIDIInputMap { |
| 12 readonly attribute unsigned long size; |
| 13 Iterator keys(); |
| 14 Iterator entries(); |
| 15 Iterator values(); |
| 16 // This function returns undefined if |!this->has(id)|. |
| 17 [ImplementedAs=getPublic, CallWith=ScriptState] any get(DOMString id); |
| 18 boolean has(DOMString key); |
| 19 // void forEach (ForEachCallback callback); |
| 20 }; |
OLD | NEW |