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

Unified Diff: chromeos/dbus/audio_node.h

Issue 13863007: Integrate audio dbus api: GetNodes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 7 years, 8 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
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/audio_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/audio_node.h
diff --git a/chromeos/dbus/volume_state.h b/chromeos/dbus/audio_node.h
similarity index 50%
copy from chromeos/dbus/volume_state.h
copy to chromeos/dbus/audio_node.h
index 7fafd6e994ac91d8decaa826f05625c3fabc722e..8e0f5204bc8fc99d91f827ebfc5ef9cf47a5f3ce 100644
--- a/chromeos/dbus/volume_state.h
+++ b/chromeos/dbus/audio_node.h
@@ -2,26 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROMEOS_DBUS_VOLUME_STATE_H_
-#define CHROMEOS_DBUS_VOLUME_STATE_H_
+#ifndef CHROMEOS_DBUS_AUDIO_NODE_H_
+#define CHROMEOS_DBUS_AUDIO_NODE_H_
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "chromeos/chromeos_export.h"
namespace chromeos {
-struct CHROMEOS_EXPORT VolumeState {
- int32 output_volume;
- bool output_mute;
- int32 input_gain;
- bool input_mute;
+struct CHROMEOS_EXPORT AudioNode {
+ bool is_input;
+ uint64 id;
+ std::string device_name;
+ std::string type;
+ std::string name;
+ bool active;
- VolumeState();
+ AudioNode();
std::string ToString() const;
};
+typedef std::vector<AudioNode> AudioNodeList;
+
} // namespace chromeos
-#endif // CHROMEOS_DBUS_VOLUME_STATE_H_
+#endif // CHROMEOS_DBUS_AUDIO_NODE_H_
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/audio_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698