| 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 CHROMEOS_DBUS_VOLUME_STATE_H_ | 5 #ifndef CHROMEOS_DBUS_AUDIO_NODE_H_ |
| 6 #define CHROMEOS_DBUS_VOLUME_STATE_H_ | 6 #define CHROMEOS_DBUS_AUDIO_NODE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 11 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
| 12 | 13 |
| 13 namespace chromeos { | 14 namespace chromeos { |
| 14 | 15 |
| 15 struct CHROMEOS_EXPORT VolumeState { | 16 struct CHROMEOS_EXPORT AudioNode { |
| 16 int32 output_volume; | 17 bool is_input; |
| 17 bool output_mute; | 18 uint64 id; |
| 18 int32 input_gain; | 19 std::string device_name; |
| 19 bool input_mute; | 20 std::string type; |
| 21 std::string name; |
| 22 bool active; |
| 20 | 23 |
| 21 VolumeState(); | 24 AudioNode(); |
| 22 std::string ToString() const; | 25 std::string ToString() const; |
| 23 }; | 26 }; |
| 24 | 27 |
| 28 typedef std::vector<AudioNode> AudioNodeList; |
| 29 |
| 25 } // namespace chromeos | 30 } // namespace chromeos |
| 26 | 31 |
| 27 #endif // CHROMEOS_DBUS_VOLUME_STATE_H_ | 32 #endif // CHROMEOS_DBUS_AUDIO_NODE_H_ |
| OLD | NEW |