| 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_AUDIO_AUDIO_DEVICES_PREF_HANDLER_IMPL_H_ | 5 #ifndef CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_IMPL_H_ |
| 6 #define CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_IMPL_H_ | 6 #define CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 explicit AudioDevicesPrefHandlerImpl(PrefService* local_state); | 28 explicit AudioDevicesPrefHandlerImpl(PrefService* local_state); |
| 29 | 29 |
| 30 // Overridden from AudioDevicesPrefHandler. | 30 // Overridden from AudioDevicesPrefHandler. |
| 31 double GetOutputVolumeValue(const AudioDevice* device) override; | 31 double GetOutputVolumeValue(const AudioDevice* device) override; |
| 32 double GetInputGainValue(const AudioDevice* device) override; | 32 double GetInputGainValue(const AudioDevice* device) override; |
| 33 void SetVolumeGainValue(const AudioDevice& device, double value) override; | 33 void SetVolumeGainValue(const AudioDevice& device, double value) override; |
| 34 | 34 |
| 35 bool GetMuteValue(const AudioDevice& device) override; | 35 bool GetMuteValue(const AudioDevice& device) override; |
| 36 void SetMuteValue(const AudioDevice& device, bool mute_on) override; | 36 void SetMuteValue(const AudioDevice& device, bool mute_on) override; |
| 37 | 37 |
| 38 AudioDeviceState GetDeviceState(const AudioDevice& device) override; | 38 void SetDeviceActive(const AudioDevice& device, |
| 39 void SetDeviceState(const AudioDevice& device, | 39 bool active, |
| 40 AudioDeviceState state) override; | 40 bool activate_by_user) override; |
| 41 bool GetDeviceActive(const AudioDevice& device, |
| 42 bool* active, |
| 43 bool* activate_by_user) override; |
| 41 | 44 |
| 42 bool GetAudioOutputAllowedValue() override; | 45 bool GetAudioOutputAllowedValue() override; |
| 43 | 46 |
| 44 void AddAudioPrefObserver(AudioPrefObserver* observer) override; | 47 void AddAudioPrefObserver(AudioPrefObserver* observer) override; |
| 45 void RemoveAudioPrefObserver(AudioPrefObserver* observer) override; | 48 void RemoveAudioPrefObserver(AudioPrefObserver* observer) override; |
| 46 | 49 |
| 47 // Registers volume and mute preferences. | 50 // Registers volume and mute preferences. |
| 48 static void RegisterPrefs(PrefRegistrySimple* registry); | 51 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 49 | 52 |
| 50 protected: | 53 protected: |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 90 |
| 88 PrefChangeRegistrar pref_change_registrar_; | 91 PrefChangeRegistrar pref_change_registrar_; |
| 89 base::ObserverList<AudioPrefObserver> observers_; | 92 base::ObserverList<AudioPrefObserver> observers_; |
| 90 | 93 |
| 91 DISALLOW_COPY_AND_ASSIGN(AudioDevicesPrefHandlerImpl); | 94 DISALLOW_COPY_AND_ASSIGN(AudioDevicesPrefHandlerImpl); |
| 92 }; | 95 }; |
| 93 | 96 |
| 94 } // namespace chromeos | 97 } // namespace chromeos |
| 95 | 98 |
| 96 #endif // CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_IMPL_H_ | 99 #endif // CHROMEOS_AUDIO_AUDIO_DEVICES_PREF_HANDLER_IMPL_H_ |
| OLD | NEW |