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

Unified Diff: public/platform/WebMIDIAccessor.h

Issue 16288002: Web MIDI API (work in progress) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: minor compile fix Created 7 years, 7 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 | « public/platform/Platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebMIDIAccessor.h
diff --git a/Source/WebKit/chromium/public/WebMediaSource.h b/public/platform/WebMIDIAccessor.h
similarity index 80%
copy from Source/WebKit/chromium/public/WebMediaSource.h
copy to public/platform/WebMIDIAccessor.h
index 46776b9d618c8f01b572b13e98f582b022d800ce..dbe3c1560b68bcb9615c155a1d20235cbdd88d42 100644
--- a/Source/WebKit/chromium/public/WebMediaSource.h
+++ b/public/platform/WebMIDIAccessor.h
@@ -28,22 +28,26 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMediaSource_h
-#define WebMediaSource_h
-
-#include "../../../../public/platform/WebURL.h"
-#include "WebTimeRange.h"
+#ifndef WebMIDIAccessor_h
+#define WebMIDIAccessor_h
namespace WebKit {
-class WebMediaSourceClient;
+// Abstract interface to the Chromium MIDI system.
-class WebMediaSource {
+class WebMIDIAccessor {
public:
- virtual ~WebMediaSource() { };
- virtual void open(WebMediaSourceClient*) = 0;
+ class Client {
+ public:
+ virtual void receiveMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp);
+
+ protected:
+ virtual ~Client() { }
+ };
+
+ virtual ~WebMIDIAccessor() { }
};
} // namespace WebKit
-#endif
+#endif // WebMIDIAccessor_h
« no previous file with comments | « public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698