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

Unified Diff: Source/modules/webaudio/AudioContext.h

Issue 16288002: Web MIDI API (work in progress) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add accessApproved() Created 7 years, 6 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/webaudio/AudioContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioContext.h
diff --git a/Source/modules/webaudio/AudioContext.h b/Source/modules/webaudio/AudioContext.h
index 964861f6c6bf700463bb9a73088fa4750072a1d6..f6cf409f7b1257b2c87eb431fb3ab02fbe56042e 100644
--- a/Source/modules/webaudio/AudioContext.h
+++ b/Source/modules/webaudio/AudioContext.h
@@ -33,6 +33,7 @@
#include "core/platform/audio/HRTFDatabaseLoader.h"
#include "modules/webaudio/AsyncAudioDecoder.h"
#include "modules/webaudio/AudioDestinationNode.h"
+#include "modules/webmidi/MIDIAccess.h"
#include "wtf/HashSet.h"
#include "wtf/MainThread.h"
#include "wtf/OwnPtr.h"
@@ -249,6 +250,8 @@ public:
virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
+ MIDIAccess* midiAccess() { return m_midiAccess.get(); }
+
protected:
explicit AudioContext(Document*);
AudioContext(Document*, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
@@ -349,6 +352,8 @@ private:
// Number of AudioBufferSourceNodes that are active (playing).
int m_activeSourceCount;
+
+ RefPtr<MIDIAccess> m_midiAccess;
};
} // WebCore
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/webaudio/AudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698