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

Unified Diff: chromeos/dbus/cras_audio_client.h

Issue 14314002: Implement new audio handler which talks to the new audio dbus apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments in class header file and todo for cleaning up legacy code. 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
Index: chromeos/dbus/cras_audio_client.h
diff --git a/chromeos/dbus/cras_audio_client.h b/chromeos/dbus/cras_audio_client.h
index cf12fa27070613bc9198f20ff7e72d61714f7746..75e9e7dad6fe03e8b6a71355dbca4260cf647383 100644
--- a/chromeos/dbus/cras_audio_client.h
+++ b/chromeos/dbus/cras_audio_client.h
@@ -24,13 +24,29 @@ class CHROMEOS_EXPORT CrasAudioClient {
// Interface for observing changes from the cras audio changes.
class Observer {
public:
- // Called when audio output device volume changed.
+ // Called when cras audio client starts or re-starts, which happens when
+ // cros device powers up or restarted.
+ virtual void AudioClientRestarted();
+
+ // Called when audio output device volume changed to new value of |volume|.
virtual void OutputVolumeChanged(int volume);
+
+ // Called whne audio output mute state changed to new state of |mute_on|.
virtual void OutputMuteChanged(bool mute_on);
+
+ // Called when audio input gain changeg to new value of |gain|.
virtual void InputGainChanged(int gain);
+
+ // Called when audio input mute state changed to new state of |mute_on|.
virtual void InputMuteChanged(bool mute_on);
+
+ // Called when audio nodes change.
virtual void NodesChanged();
+
+ // Called when active audio output node changed to new node with |node_id|.
virtual void ActiveOutputNodeChanged(uint64 node_id);
+
+ // Called when active audio input node changed to new node with |node_id|.
virtual void ActiveInputNodeChanged(uint64 node_id);
protected:

Powered by Google App Engine
This is Rietveld 408576698