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

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

Issue 513203002: Introduce MIDIInputMap and MIDIOutputMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@iterator-adhoc
Patch Set: Remove custom bindings. Created 6 years, 4 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/MIDIOutputMap.idl
diff --git a/Source/modules/webmidi/MIDIOutputMap.idl b/Source/modules/webmidi/MIDIOutputMap.idl
new file mode 100644
index 0000000000000000000000000000000000000000..f1a3e4693d48f548526be9b25340a28dd568faae
--- /dev/null
+++ b/Source/modules/webmidi/MIDIOutputMap.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, MIDIOutput port);
+
+[
+ Iterable,
+ NoInterfaceObject,
+ GarbageCollected,
+] interface MIDIOutputMap {
+ readonly attribute unsigned long size;
+ Iterator keys();
+ Iterator entries();
+ Iterator values();
+ // This function returns undefined if |!this->has(id)|.
+ [ImplementedAs=getPublic, CallWith=ScriptState] any get(DOMString id);
haraken 2014/08/29 06:19:42 getPublic => getForBinding
yhirano 2014/08/29 07:29:13 Done.
+ boolean has(DOMString key);
+// void forEach (ForEachCallback callback);
+};

Powered by Google App Engine
This is Rietveld 408576698