OLD | NEW |
(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_ |
OLD | NEW |