| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #ifndef MEDIA_MIDI_USB_MIDI_DESCRIPTOR_PARSER_H_ | 6 #ifndef MEDIA_MIDI_USB_MIDI_DESCRIPTOR_PARSER_H_ |
| 7 #define MEDIA_MIDI_USB_MIDI_DESCRIPTOR_PARSER_H_ | 7 #define MEDIA_MIDI_USB_MIDI_DESCRIPTOR_PARSER_H_ |
| 8 | 8 |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 | 11 |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "media/midi/usb_midi_export.h" | 16 #include "media/midi/usb_midi_export.h" |
| 17 #include "media/midi/usb_midi_jack.h" | 17 #include "media/midi/usb_midi_jack.h" |
| 18 | 18 |
| 19 namespace media { | |
| 20 namespace midi { | 19 namespace midi { |
| 21 | 20 |
| 22 class UsbMidiDevice; | 21 class UsbMidiDevice; |
| 23 | 22 |
| 24 // UsbMidiDescriptorParser parses USB descriptors and | 23 // UsbMidiDescriptorParser parses USB descriptors and |
| 25 // generates input / output lists of MIDIPortInfo. | 24 // generates input / output lists of MIDIPortInfo. |
| 26 // This is not a generic USB descriptor parser: this parser is designed | 25 // This is not a generic USB descriptor parser: this parser is designed |
| 27 // for collecting USB-MIDI jacks information from the descriptor. | 26 // for collecting USB-MIDI jacks information from the descriptor. |
| 28 class USB_MIDI_EXPORT UsbMidiDescriptorParser { | 27 class USB_MIDI_EXPORT UsbMidiDescriptorParser { |
| 29 public: | 28 public: |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 bool is_parsing_usb_midi_interface_; | 76 bool is_parsing_usb_midi_interface_; |
| 78 uint8_t current_endpoint_address_; | 77 uint8_t current_endpoint_address_; |
| 79 uint8_t current_cable_number_; | 78 uint8_t current_cable_number_; |
| 80 | 79 |
| 81 std::vector<UsbMidiJack> incomplete_jacks_; | 80 std::vector<UsbMidiJack> incomplete_jacks_; |
| 82 | 81 |
| 83 DISALLOW_COPY_AND_ASSIGN(UsbMidiDescriptorParser); | 82 DISALLOW_COPY_AND_ASSIGN(UsbMidiDescriptorParser); |
| 84 }; | 83 }; |
| 85 | 84 |
| 86 } // namespace midi | 85 } // namespace midi |
| 87 } // namespace media | |
| 88 | 86 |
| 89 #endif // MEDIA_MIDI_USB_MIDI_DESCRIPTOR_PARSER_H_ | 87 #endif // MEDIA_MIDI_USB_MIDI_DESCRIPTOR_PARSER_H_ |
| OLD | NEW |