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

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

Issue 513203002: Introduce MIDIInputMap and MIDIOutputMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@iterator-adhoc
Patch Set: rebase 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/modules/modules.gypi ('k') | Source/modules/webmidi/MIDIAccess.cpp » ('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 f5bb3d7710a7312dcfc34674b839029b9c76999a..132cc3d64647e16fddcf56be232ae138366a0318 100644
--- a/Source/modules/webmidi/MIDIAccess.h
+++ b/Source/modules/webmidi/MIDIAccess.h
@@ -37,14 +37,16 @@
#include "modules/webmidi/MIDIAccessInitializer.h"
#include "modules/webmidi/MIDIAccessor.h"
#include "modules/webmidi/MIDIAccessorClient.h"
-#include "modules/webmidi/MIDIInput.h"
-#include "modules/webmidi/MIDIOutput.h"
#include "platform/heap/Handle.h"
#include "wtf/Vector.h"
namespace blink {
class ExecutionContext;
+class MIDIInput;
+class MIDIInputMap;
+class MIDIOutput;
+class MIDIOutputMap;
struct MIDIOptions;
class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<MIDIAccess>, public ActiveDOMObject, public EventTargetWithInlineData, public MIDIAccessorClient {
@@ -60,8 +62,8 @@ public:
}
virtual ~MIDIAccess();
- MIDIInputVector inputs() const { return m_inputs; }
- MIDIOutputVector outputs() const { return m_outputs; }
+ MIDIInputMap* inputs() const;
+ MIDIOutputMap* outputs() const;
DEFINE_ATTRIBUTE_EVENT_LISTENER(connect);
DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect);
@@ -96,8 +98,8 @@ private:
OwnPtr<MIDIAccessor> m_accessor;
bool m_sysexEnabled;
- MIDIInputVector m_inputs;
- MIDIOutputVector m_outputs;
+ HeapVector<Member<MIDIInput> > m_inputs;
+ HeapVector<Member<MIDIOutput> > m_outputs;
};
} // namespace blink
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webmidi/MIDIAccess.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698