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

Side by Side Diff: media/midi/usb_midi_device.h

Issue 107513012: [WebMIDI] Introduce UsbMidi{Input, Output}Stream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-midi-parser
Patch Set: Created 6 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_MIDI_USB_MIDI_DEVICE_H_
6 #define MEDIA_MIDI_USB_MIDI_DEVICE_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "media/base/media_export.h"
12
13 namespace media {
14
15 // UsbMidiDevice represents a USB-MIDI device.
16 // This is an interface class and each platform-dependent implementation class
17 // will be a derived class.
18 class MEDIA_EXPORT UsbMidiDevice {
19 public:
20 virtual ~UsbMidiDevice() {}
21
22 // Returns the descriptor of this device.
23 virtual std::vector<uint8> GetDescriptor() = 0;
24
25 // Sends |data| to the given USB endpoint of this device.
26 virtual void Send(int endpoint_number, const std::vector<uint8>& data) = 0;
27 };
28
29 } // namespace media
30
31 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698