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

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

Issue 513203002: Introduce MIDIInputMap and MIDIOutputMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@iterator-adhoc
Patch Set: 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.h
diff --git a/Source/modules/webmidi/MIDIOutputMap.h b/Source/modules/webmidi/MIDIOutputMap.h
new file mode 100644
index 0000000000000000000000000000000000000000..e2b4d63e564808166d772b31e027e86e943e5d82
--- /dev/null
+++ b/Source/modules/webmidi/MIDIOutputMap.h
@@ -0,0 +1,26 @@
+// 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.
+
+#ifndef MIDIOutputMap_h
+#define MIDIOutputMap_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "modules/webmidi/MIDIOutput.h"
+#include "modules/webmidi/MIDIPortMap.h"
+
+namespace blink {
+
+class ScriptState;
+
+class MIDIOutputMap : public MIDIPortMap<MIDIOutput>, public ScriptWrappable {
+public:
+ MIDIOutputMap(HeapHashMap<String, Member<MIDIOutput> > map)
haraken 2014/09/02 01:20:40 Add explicit.
yhirano 2014/09/02 05:17:13 Done.
+ : MIDIPortMap<MIDIOutput>(map) { ScriptWrappable::init(this); }
+
+ ScriptValue getForBinding(ScriptState*, const String& id);
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698