| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_MIDI_USB_MIDI_DEVICE_H_ | 5 #ifndef MEDIA_MIDI_USB_MIDI_DEVICE_H_ |
| 6 #define MEDIA_MIDI_USB_MIDI_DEVICE_H_ | 6 #define MEDIA_MIDI_USB_MIDI_DEVICE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 8 #include <vector> | 11 #include <vector> |
| 9 | 12 |
| 10 #include "base/callback.h" | 13 #include "base/callback.h" |
| 11 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 12 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 13 #include "media/midi/usb_midi_export.h" | 16 #include "media/midi/usb_midi_export.h" |
| 14 | 17 |
| 15 namespace media { | 18 namespace media { |
| 16 namespace midi { | 19 namespace midi { |
| 17 | 20 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual std::string GetDeviceVersion() = 0; | 82 virtual std::string GetDeviceVersion() = 0; |
| 80 | 83 |
| 81 // Sends |data| to the given USB endpoint of this device. | 84 // Sends |data| to the given USB endpoint of this device. |
| 82 virtual void Send(int endpoint_number, const std::vector<uint8_t>& data) = 0; | 85 virtual void Send(int endpoint_number, const std::vector<uint8_t>& data) = 0; |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace midi | 88 } // namespace midi |
| 86 } // namespace media | 89 } // namespace media |
| 87 | 90 |
| 88 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_H_ | 91 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_H_ |
| OLD | NEW |