Index: Source/modules/webmidi/MIDIInputMap.h |
diff --git a/Source/modules/webmidi/MIDIInputMap.h b/Source/modules/webmidi/MIDIInputMap.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c990d49787901b2b114fb23b8546112c82c8718c |
--- /dev/null |
+++ b/Source/modules/webmidi/MIDIInputMap.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 MIDIInputMap_h |
+#define MIDIInputMap_h |
+ |
+#include "bindings/core/v8/ScriptWrappable.h" |
+#include "modules/webmidi/MIDIInput.h" |
+#include "modules/webmidi/MIDIPortMap.h" |
+ |
+namespace blink { |
+ |
+class ScriptState; |
+ |
+class MIDIInputMap : public MIDIPortMap<MIDIInput>, public ScriptWrappable { |
+public: |
+ MIDIInputMap(const HeapHashMap<String, Member<MIDIInput> >map) |
haraken
2014/09/02 01:20:40
Add explicit.
yhirano
2014/09/02 04:43:06
Done.
|
+ : MIDIPortMap<MIDIInput>(map) { ScriptWrappable::init(this); } |
haraken
2014/09/02 01:20:40
Nit: Blink normally writes '{ ... }' in separate l
yhirano
2014/09/02 04:43:06
Done (move the implementation to the cpp file).
|
+ |
+ ScriptValue getForBinding(ScriptState*, const String& id); |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |