Index: media/midi/midi_port_info.cc |
diff --git a/media/midi/midi_port_info.cc b/media/midi/midi_port_info.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cfc1ab7e32cdf4fd9cf46bc5c7c86fa325c7c4c6 |
--- /dev/null |
+++ b/media/midi/midi_port_info.cc |
@@ -0,0 +1,39 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "media/midi/midi_port_info.h" |
+ |
+#include <iostream> |
+ |
+using std::cout; |
+ |
+namespace media { |
+ |
+MIDIPortInfo::MIDIPortInfo(const std::string& id, |
+ const std::string& manufacturer, |
+ const std::string& name, |
+ const std::string& version) |
+ : id_(id), |
+ manufacturer_(manufacturer), |
+ name_(name), |
+ version_(version) {} |
+ |
+MIDIPortInfo::~MIDIPortInfo() {} |
+ |
+MIDIPortInfo::MIDIPortInfo(const MIDIPortInfo& info) |
+ : id_(info.id_), |
+ manufacturer_(info.manufacturer_), |
+ name_(info.name_), |
+ version_(info.version_) {} |
+ |
+void MIDIPortInfo::Print() const { |
+ cout << "======================================================\n"; |
+ cout << "id: " << id_ << "\n"; |
+ cout << "manufacturer: " << manufacturer_ << "\n"; |
+ cout << "name: " << name_ << "\n"; |
+ cout << "version: " << version_ << "\n"; |
+ cout << "======================================================\n\n"; |
+} |
+ |
+} // namespace media |