Chromium Code Reviews| 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 #ifndef MIDIInputMap_h | |
| 6 #define MIDIInputMap_h | |
| 7 | |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | |
| 9 #include "modules/webmidi/MIDIInput.h" | |
| 10 #include "modules/webmidi/MIDIPortMap.h" | |
| 11 | |
| 12 namespace blink { | |
| 13 | |
| 14 class ScriptState; | |
| 15 | |
| 16 class MIDIInputMap : public MIDIPortMap<MIDIInput>, public ScriptWrappable { | |
| 17 public: | |
| 18 MIDIInputMap(const HeapHashMap<String, Member<MIDIInput> >map) | |
|
haraken
2014/09/02 01:20:40
Add explicit.
yhirano
2014/09/02 04:43:06
Done.
| |
| 19 : 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).
| |
| 20 | |
| 21 ScriptValue getForBinding(ScriptState*, const String& id); | |
| 22 }; | |
| 23 | |
| 24 } // namespace blink | |
| 25 | |
| 26 #endif | |
| OLD | NEW |