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

Unified Diff: public/platform/Platform.h

Issue 17155009: Web MIDI: MIDIAccessor platform implementation and Blink API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add comments 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
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index 24e302e98c6da2be2de25cd84faeb603b09df805..5f974adb329fcc7d98a246383baedced0ea5bf3f 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -66,6 +66,8 @@ class WebGestureCurve;
class WebGraphicsContext3DProvider;
class WebHyphenator;
class WebIDBFactory;
+class WebMIDIAccessor;
+class WebMIDIAccessorClient;
class WebMediaStreamCenter;
class WebMediaStreamCenterClient;
class WebMessagePortChannel;
@@ -151,6 +153,11 @@ public:
virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned numberOfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; }
virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned numberOfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; }
+ // MIDI ----------------------------------------------------------------
+
+ // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform
+ // creates and owns it.
+ virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return 0; }
abarth-chromium 2013/06/19 17:08:59 Please keep two blank lines between each section.
Chris Rogers 2013/06/19 19:43:31 Done.
// Blob ----------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698