Chromium Code Reviews| Index: chrome/browser/chromeos/audio/audio_mixer_cras.h |
| diff --git a/chrome/browser/chromeos/audio/audio_mixer_cras.h b/chrome/browser/chromeos/audio/audio_mixer_cras.h |
| index ef002abc8230e32e3db65fb68bcda3f39d403d34..748c5114481e9b990726688a5b7ddd5caa7ab08a 100644 |
| --- a/chrome/browser/chromeos/audio/audio_mixer_cras.h |
| +++ b/chrome/browser/chromeos/audio/audio_mixer_cras.h |
| @@ -30,6 +30,12 @@ class AudioMixerCras : public AudioMixer { |
| virtual void SetVolumePercent(double percent) OVERRIDE; |
| virtual bool IsMuted() OVERRIDE; |
| virtual void SetMuted(bool muted) OVERRIDE; |
| + virtual bool IsMuteLocked() OVERRIDE; |
| + virtual void SetMuteLocked(bool locked) OVERRIDE; |
| + virtual bool IsCaptureMuted() OVERRIDE; |
| + virtual void SetCaptureMuted(bool mute) OVERRIDE; |
| + virtual bool IsCaptureMuteLocked() OVERRIDE; |
| + virtual void SetCaptureMuteLocked(bool locked) OVERRIDE; |
| private: |
| // Tries to connect to CRAS. On failure, posts a delayed Connect() task to |
| @@ -53,6 +59,9 @@ class AudioMixerCras : public AudioMixer { |
| // Most recently-requested muting state. |
| bool is_muted_; |
| + bool is_mute_locked_; |
| + bool is_capture_muted_; |
| + bool is_capture_mute_locked_; |
| // Is there already a pending call to ApplyState() scheduled on |thread_|? |
| bool apply_is_pending_; |
| @@ -60,7 +69,7 @@ class AudioMixerCras : public AudioMixer { |
| // Background thread used for interacting with CRAS. |
| scoped_ptr<base::Thread> thread_; |
| - // Guards |volume_percent_|, |is_muted_|, and |apply_is_pending_|. |
| + // Guards |volume_percent_|, the mute state, and |apply_is_pending_|. |
|
Mattias Nissler (ping if slow)
2012/08/28 12:24:24
spell out the members?
pastarmovj
2012/08/28 15:11:50
Done.
|
| base::Lock lock_; |
| DISALLOW_COPY_AND_ASSIGN(AudioMixerCras); |