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

Unified Diff: media/midi/midi_port_info.h

Issue 16025005: Web MIDI API back-end (work-in-progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use int64 in ParamTraits 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
Index: media/midi/midi_port_info.h
diff --git a/media/midi/midi_port_info.h b/media/midi/midi_port_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..a9c732270d615f4df5dcb94a361d36def92df6a4
--- /dev/null
+++ b/media/midi/midi_port_info.h
@@ -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.
+
+#ifndef MEDIA_MIDI_MIDI_PORT_INFO_H_
+#define MEDIA_MIDI_MIDI_PORT_INFO_H_
+
+#include <string>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "media/base/media_export.h"
+
+namespace media {
+
+struct MEDIA_EXPORT MIDIPortInfo {
+ MIDIPortInfo(const std::string& id,
+ const std::string& manufacturer,
+ const std::string& name,
+ const std::string& version);
+
+ MIDIPortInfo(const MIDIPortInfo& info);
+ ~MIDIPortInfo();
+
+ void Print() const;
+
+ std::string id_;
+ std::string manufacturer_;
+ std::string name_;
+ std::string version_;
+};
+
+// Would rather use typedef, but seems hard to forward declare.
scherkus (not reviewing) 2013/06/12 01:28:47 are you trying to avoid including this .h in multi
Chris Rogers 2013/06/12 20:34:35 I think I was trying to avoid including it in "med
+class MIDIPortInfoList : public std::vector<MIDIPortInfo> {
+};
+
+} // namespace media
+
+#endif // MEDIA_MIDI_MIDI_PORT_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698