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

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

Issue 2533273002: media: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 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 unified diff | Download patch
« no previous file with comments | « media/gpu/vaapi_tfp_picture.h ('k') | media/mojo/services/interface_factory_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "media/midi/usb_midi_export.h" 17 #include "media/midi/usb_midi_export.h"
18 18
19 namespace midi { 19 namespace midi {
20 20
21 class MidiManagerUsb;
22 class UsbMidiDevice; 21 class UsbMidiDevice;
23 22
24 // Delegate class for UsbMidiDevice. 23 // Delegate class for UsbMidiDevice.
25 // Each method is called when an corresponding event arrives at the device. 24 // Each method is called when an corresponding event arrives at the device.
26 class USB_MIDI_EXPORT UsbMidiDeviceDelegate { 25 class USB_MIDI_EXPORT UsbMidiDeviceDelegate {
27 public: 26 public:
28 virtual ~UsbMidiDeviceDelegate() {} 27 virtual ~UsbMidiDeviceDelegate() {}
29 28
30 // Called when USB-MIDI data arrives at |device|. 29 // Called when USB-MIDI data arrives at |device|.
31 virtual void ReceiveUsbMidiData(UsbMidiDevice* device, 30 virtual void ReceiveUsbMidiData(UsbMidiDevice* device,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Return the device version. 80 // Return the device version.
82 virtual std::string GetDeviceVersion() = 0; 81 virtual std::string GetDeviceVersion() = 0;
83 82
84 // Sends |data| to the given USB endpoint of this device. 83 // Sends |data| to the given USB endpoint of this device.
85 virtual void Send(int endpoint_number, const std::vector<uint8_t>& data) = 0; 84 virtual void Send(int endpoint_number, const std::vector<uint8_t>& data) = 0;
86 }; 85 };
87 86
88 } // namespace midi 87 } // namespace midi
89 88
90 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_H_ 89 #endif // MEDIA_MIDI_USB_MIDI_DEVICE_H_
OLDNEW
« no previous file with comments | « media/gpu/vaapi_tfp_picture.h ('k') | media/mojo/services/interface_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698