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

Side by Side Diff: chromeos/dbus/audio_node.h

Issue 1320923005: Fill in mic_positions property. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « chromeos/audio/audio_device.cc ('k') | chromeos/dbus/audio_node.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROMEOS_DBUS_AUDIO_NODE_H_ 5 #ifndef CHROMEOS_DBUS_AUDIO_NODE_H_
6 #define CHROMEOS_DBUS_AUDIO_NODE_H_ 6 #define CHROMEOS_DBUS_AUDIO_NODE_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 "chromeos/chromeos_export.h" 12 #include "chromeos/chromeos_export.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 // Structure to hold AudioNode data received from cras. 16 // Structure to hold AudioNode data received from cras.
17 struct CHROMEOS_EXPORT AudioNode { 17 struct CHROMEOS_EXPORT AudioNode {
18 bool is_input; 18 bool is_input;
19 uint64 id; 19 uint64 id;
20 std::string device_name; 20 std::string device_name;
21 std::string type; 21 std::string type;
22 std::string name; 22 std::string name;
23 std::string mic_positions;
23 bool active; 24 bool active;
24 // Time that the node was plugged in. 25 // Time that the node was plugged in.
25 uint64 plugged_time; 26 uint64 plugged_time;
26 27
27 AudioNode(); 28 AudioNode();
28 AudioNode(bool is_input, 29 AudioNode(bool is_input,
29 uint64 id, 30 uint64 id,
30 std::string device_name, 31 std::string device_name,
31 std::string type, 32 std::string type,
32 std::string name, 33 std::string name,
33 bool active, 34 bool active,
34 uint64 plugged_time); 35 uint64 plugged_time);
36 ~AudioNode();
35 std::string ToString() const; 37 std::string ToString() const;
36 }; 38 };
37 39
38 typedef std::vector<AudioNode> AudioNodeList; 40 typedef std::vector<AudioNode> AudioNodeList;
39 41
40 } // namespace chromeos 42 } // namespace chromeos
41 43
42 #endif // CHROMEOS_DBUS_AUDIO_NODE_H_ 44 #endif // CHROMEOS_DBUS_AUDIO_NODE_H_
OLDNEW
« no previous file with comments | « chromeos/audio/audio_device.cc ('k') | chromeos/dbus/audio_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698