Chromium Code Reviews| Index: chromeos/audio/cras_audio_handler.h |
| diff --git a/chromeos/audio/cras_audio_handler.h b/chromeos/audio/cras_audio_handler.h |
| index c9110718e4a332a7bc0dde2b5a02d446857a8e2f..7d95101807a150a30940454d6c28bd44936d7f6e 100644 |
| --- a/chromeos/audio/cras_audio_handler.h |
| +++ b/chromeos/audio/cras_audio_handler.h |
| @@ -155,10 +155,15 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer, |
| virtual bool has_alternative_input() const; |
| virtual bool has_alternative_output() const; |
| - // Sets all active output devices' volume level to |volume_percent|, whose |
| + // Sets all active output devices' volume levels to |volume_percent|, whose |
| // range is from 0-100%. |
| virtual void SetOutputVolumePercent(int volume_percent); |
| + // Sets all active output devices' volume levels to |volume_percent|, whose |
| + // range is from 0-100%, without notifying observers. |
| + virtual void SetOutputVolumePercentWithoutNotifyingObservers( |
| + int volume_percent); |
| + |
| // Sets all active input devices' gain level to |gain_percent|, whose range is |
| // from 0-100%. |
| virtual void SetInputGainPercent(int gain_percent); |
| @@ -432,7 +437,9 @@ class CHROMEOS_EXPORT CrasAudioHandler : public CrasAudioClient::Observer, |
| bool cras_service_available_ = false; |
| - bool initializing_audio_state_ = false; |
| + // A mask with non-zero value indicates it is an automated volume changed. |
|
Daniel Erat
2016/07/29 17:53:38
please document the name of the enum that is used
Qiang(Joe) Xu
2016/07/29 18:58:23
Done.
|
| + int automated_volume_change_ = 0; |
| + |
| int init_volume_; |
| uint64_t init_node_id_; |
| int init_volume_count_ = 0; |