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_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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
15 #include "base/macros.h" | 15 #include "base/macros.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 #include "media/midi/usb_midi_jack.h" | 18 #include "media/midi/usb_midi_jack.h" |
19 | 19 |
20 namespace media { | |
21 namespace midi { | 20 namespace midi { |
22 | 21 |
23 class UsbMidiDevice; | 22 class UsbMidiDevice; |
24 | 23 |
25 // UsbMidiInputStream converts USB-MIDI data to MIDI data. | 24 // UsbMidiInputStream converts USB-MIDI data to MIDI data. |
26 // See "USB Device Class Definition for MIDI Devices" Release 1.0, | 25 // See "USB Device Class Definition for MIDI Devices" Release 1.0, |
27 // Section 4 "USB-MIDI Event Packets" for details. | 26 // Section 4 "USB-MIDI Event Packets" for details. |
28 class USB_MIDI_EXPORT UsbMidiInputStream { | 27 class USB_MIDI_EXPORT UsbMidiInputStream { |
29 public: | 28 public: |
30 class USB_MIDI_EXPORT Delegate { | 29 class USB_MIDI_EXPORT Delegate { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // A map from UsbMidiJack to its index in |jacks_|. | 78 // A map from UsbMidiJack to its index in |jacks_|. |
80 std::map<JackUniqueKey, size_t> jack_dictionary_; | 79 std::map<JackUniqueKey, size_t> jack_dictionary_; |
81 | 80 |
82 // Not owned | 81 // Not owned |
83 Delegate* delegate_; | 82 Delegate* delegate_; |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(UsbMidiInputStream); | 84 DISALLOW_COPY_AND_ASSIGN(UsbMidiInputStream); |
86 }; | 85 }; |
87 | 86 |
88 } // namespace midi | 87 } // namespace midi |
89 } // namespace media | |
90 | 88 |
91 #endif // MEDIA_MIDI_USB_MIDI_INPUT_STREAM_H_ | 89 #endif // MEDIA_MIDI_USB_MIDI_INPUT_STREAM_H_ |
OLD | NEW |