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

Unified Diff: modules/webmidi/MIDIOutputMap.idl

Issue 959933002: Move IDLs to 39 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 5 years, 10 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 | « modules/webmidi/MIDIOptions.idl ('k') | modules/webmidi/NavigatorWebMIDI.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/webmidi/MIDIOutputMap.idl
diff --git a/modules/webmidi/MIDIOutputMap.idl b/modules/webmidi/MIDIOutputMap.idl
new file mode 100644
index 0000000000000000000000000000000000000000..eec7a882b7bbb81bb0c62a10977b532777e11de2
--- /dev/null
+++ b/modules/webmidi/MIDIOutputMap.idl
@@ -0,0 +1,22 @@
+// 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.
+
+// FIXME: Implement forEach.
+// 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=getForBinding, CallWith=ScriptState] any get(DOMString id);
+ boolean has(DOMString key);
+ // FIXME: Implement forEach.
+ // void forEach (ForEachCallback callback);
+};
« no previous file with comments | « modules/webmidi/MIDIOptions.idl ('k') | modules/webmidi/NavigatorWebMIDI.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698