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

Unified Diff: media/midi/usb_midi_device.h

Issue 107163008: [WebMIDI] Introduce MidiManagerUsb (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-midi-stream
Patch Set: Created 7 years 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
« media/midi/midi_manager_usb.cc ('K') | « media/midi/midi_manager_usb_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/usb_midi_device.h
diff --git a/media/midi/usb_midi_device.h b/media/midi/usb_midi_device.h
index 912582ddfca631fe0f5fdd72a955a0e1b2733cc1..d60b2d80e7034de8186d02e39af42b8e3d7952f6 100644
--- a/media/midi/usb_midi_device.h
+++ b/media/midi/usb_midi_device.h
@@ -14,10 +14,13 @@
namespace media {
+class UsbMidiDevice;
+
class MEDIA_EXPORT UsbMidiDeviceDelegate {
public:
virtual ~UsbMidiDeviceDelegate() {}
- virtual void ReceiveUsbMidiData(int endpoint_number,
+ virtual void ReceiveUsbMidiData(UsbMidiDevice* device,
+ int endpoint_number,
const uint8* data,
size_t size,
double timestamp) = 0;
@@ -37,7 +40,8 @@ class MEDIA_EXPORT UsbMidiDevice {
// Otherwise |callback| will be called with |false| and empty devices.
// When this factory is destroyed during the operation, the operation
// will be canceled silently (i.e. |callback| will not be called).
- virtual void EnumerateDevices(Callback callback) = 0;
+ virtual void EnumerateDevices(UsbMidiDeviceDelegate* delegate,
+ Callback callback) = 0;
};
virtual ~UsbMidiDevice() {}
« media/midi/midi_manager_usb.cc ('K') | « media/midi/midi_manager_usb_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698