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

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

Issue 518633003: [ABANDONED] [WebMIDI] Support the legacy MIDIAccess port API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@webmidi-input-map
Patch Set: Created 6 years, 3 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 | « Source/bindings/modules/v8/custom/custom.gypi ('k') | Source/modules/webmidi/MIDIAccess.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIAccess.h
diff --git a/Source/modules/webmidi/MIDIAccess.h b/Source/modules/webmidi/MIDIAccess.h
index 10eb02521d3bf5a3ddb2cfedc28c79da6bef7be1..29c4c9bc28435413a079eaf148504209d4ec5634 100644
--- a/Source/modules/webmidi/MIDIAccess.h
+++ b/Source/modules/webmidi/MIDIAccess.h
@@ -63,6 +63,8 @@ public:
MIDIInputMap* inputs() const;
MIDIOutputMap* outputs() const;
+ const HeapVector<Member<MIDIInput> >& inputsAsVector() const { return m_inputs; }
+ const HeapVector<Member<MIDIOutput> >& outputsAsVector() const { return m_outputs; }
DEFINE_ATTRIBUTE_EVENT_LISTENER(connect);
DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect);
« no previous file with comments | « Source/bindings/modules/v8/custom/custom.gypi ('k') | Source/modules/webmidi/MIDIAccess.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698