Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_MIDI_PORT_INFO_H_ | 5 #ifndef MEDIA_MIDI_MIDI_PORT_INFO_H_ |
| 6 #define MEDIA_MIDI_MIDI_PORT_INFO_H_ | 6 #define MEDIA_MIDI_MIDI_PORT_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 struct MEDIA_EXPORT MidiPortInfo { | 16 struct MEDIA_EXPORT MidiPortInfo { |
| 17 MidiPortInfo(); | 17 MidiPortInfo(); |
| 18 MidiPortInfo(const std::string& in_id, | 18 MidiPortInfo(const std::string& in_id, |
| 19 const std::string& in_manufacturer, | 19 const std::string& in_manufacturer, |
| 20 const std::string& in_name, | 20 const std::string& in_name, |
| 21 const std::string& in_version); | 21 const std::string& in_version, |
| 22 bool connected); | |
|
Takashi Toyoshima
2014/10/23 11:13:01
I'd manage this information here by this name sinc
Takashi Toyoshima
2014/10/27 04:31:29
There is a spec discussion, and at least this is c
| |
| 22 | 23 |
| 23 MidiPortInfo(const MidiPortInfo& info); | 24 MidiPortInfo(const MidiPortInfo& info); |
| 24 ~MidiPortInfo(); | 25 ~MidiPortInfo(); |
| 25 | 26 |
| 26 std::string id; | 27 std::string id; |
| 27 std::string manufacturer; | 28 std::string manufacturer; |
| 28 std::string name; | 29 std::string name; |
| 29 std::string version; | 30 std::string version; |
| 31 bool connected; | |
| 30 }; | 32 }; |
| 31 | 33 |
| 32 typedef std::vector<MidiPortInfo> MidiPortInfoList; | 34 typedef std::vector<MidiPortInfo> MidiPortInfoList; |
| 33 | 35 |
| 34 } // namespace media | 36 } // namespace media |
| 35 | 37 |
| 36 #endif // MEDIA_MIDI_MIDI_PORT_INFO_H_ | 38 #endif // MEDIA_MIDI_MIDI_PORT_INFO_H_ |
| OLD | NEW |