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

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

Issue 1121363002: GN Windows component build fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@component2
Patch Set: Created 5 years, 7 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
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_INPUT_STREAM_H_ 5 #ifndef MEDIA_MIDI_USB_MIDI_INPUT_STREAM_H_
6 #define MEDIA_MIDI_USB_MIDI_INPUT_STREAM_H_ 6 #define MEDIA_MIDI_USB_MIDI_INPUT_STREAM_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "media/base/media_export.h" 14 #include "media/midi/usb_midi_export.h"
15 #include "media/midi/usb_midi_jack.h" 15 #include "media/midi/usb_midi_jack.h"
16 16
17 namespace media { 17 namespace media {
18 18
19 class UsbMidiDevice; 19 class UsbMidiDevice;
20 20
21 // UsbMidiInputStream converts USB-MIDI data to MIDI data. 21 // UsbMidiInputStream converts USB-MIDI data to MIDI data.
22 // See "USB Device Class Definition for MIDI Devices" Release 1.0, 22 // See "USB Device Class Definition for MIDI Devices" Release 1.0,
23 // Section 4 "USB-MIDI Event Packets" for details. 23 // Section 4 "USB-MIDI Event Packets" for details.
24 class MEDIA_EXPORT UsbMidiInputStream { 24 class USB_MIDI_EXPORT UsbMidiInputStream {
25 public: 25 public:
26 class MEDIA_EXPORT Delegate { 26 class USB_MIDI_EXPORT Delegate {
27 public: 27 public:
28 virtual ~Delegate() {} 28 virtual ~Delegate() {}
29 // This function is called when some data arrives to a USB-MIDI jack. 29 // This function is called when some data arrives to a USB-MIDI jack.
30 // An input USB-MIDI jack corresponds to an input MIDIPortInfo. 30 // An input USB-MIDI jack corresponds to an input MIDIPortInfo.
31 virtual void OnReceivedData(size_t jack_index, 31 virtual void OnReceivedData(size_t jack_index,
32 const uint8* data, 32 const uint8* data,
33 size_t size, 33 size_t size,
34 base::TimeTicks time) = 0; 34 base::TimeTicks time) = 0;
35 }; 35 };
36 36
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Not owned 78 // Not owned
79 Delegate* delegate_; 79 Delegate* delegate_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(UsbMidiInputStream); 81 DISALLOW_COPY_AND_ASSIGN(UsbMidiInputStream);
82 }; 82 };
83 83
84 } // namespace media 84 } // namespace media
85 85
86 #endif // MEDIA_MIDI_USB_MIDI_INPUT_STREAM_H_ 86 #endif // MEDIA_MIDI_USB_MIDI_INPUT_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698