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

Side by Side Diff: Source/modules/webmidi/MIDIOutputMap.h

Issue 920713002: Add Maplike<> utility mixin class for implementing maplike interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-iterable-etc-typedefs
Patch Set: drop some includes 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 unified diff | Download patch
« no previous file with comments | « Source/modules/webmidi/MIDIInputMap.idl ('k') | Source/modules/webmidi/MIDIOutputMap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MIDIOutputMap_h 5 #ifndef MIDIOutputMap_h
6 #define MIDIOutputMap_h 6 #define MIDIOutputMap_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/webmidi/MIDIOutput.h" 9 #include "modules/webmidi/MIDIOutput.h"
10 #include "modules/webmidi/MIDIPortMap.h" 10 #include "modules/webmidi/MIDIPortMap.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ScriptState; 14 class ScriptState;
15 15
16 class MIDIOutputMap : public MIDIPortMap<MIDIOutput>, public ScriptWrappable { 16 class MIDIOutputMap : public MIDIPortMap<MIDIOutput>, public ScriptWrappable {
17 DEFINE_WRAPPERTYPEINFO(); 17 DEFINE_WRAPPERTYPEINFO();
18 public: 18 public:
19 explicit MIDIOutputMap(HeapHashMap<String, Member<MIDIOutput>>); 19 explicit MIDIOutputMap(HeapHashMap<String, Member<MIDIOutput>>);
20
21 ScriptValue getForBinding(ScriptState*, const String& id);
22 }; 20 };
23 21
24 } // namespace blink 22 } // namespace blink
25 23
26 #endif 24 #endif
OLDNEW
« no previous file with comments | « Source/modules/webmidi/MIDIInputMap.idl ('k') | Source/modules/webmidi/MIDIOutputMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698