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

Unified Diff: media/midi/midi_port_info.cc

Issue 16025005: Web MIDI API back-end (work-in-progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« media/midi/midi_port_info.h ('K') | « media/midi/midi_port_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« media/midi/midi_port_info.h ('K') | « media/midi/midi_port_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698