This source file includes following definitions.
- AddObserver
- RemoveObserver
- CreateInstance
- StartGetInfo
- SetActiveDevices
- SetDeviceProperties
#include "chrome/browser/extensions/api/audio/audio_service.h"
namespace extensions {
class AudioServiceImpl : public AudioService {
public:
AudioServiceImpl() {}
virtual ~AudioServiceImpl() {}
virtual void AddObserver(Observer* observer) OVERRIDE;
virtual void RemoveObserver(Observer* observer) OVERRIDE;
virtual void StartGetInfo(const GetInfoCallback& callback) OVERRIDE;
virtual void SetActiveDevices(const DeviceIdList& device_list) OVERRIDE;
virtual bool SetDeviceProperties(const std::string& device_id,
bool muted,
int volume,
int gain) OVERRIDE;
};
void AudioServiceImpl::AddObserver(Observer* observer) {
}
void AudioServiceImpl::RemoveObserver(Observer* observer) {
}
AudioService* AudioService::CreateInstance() {
return new AudioServiceImpl;
}
void AudioServiceImpl::StartGetInfo(const GetInfoCallback& callback) {
if (!callback.is_null())
callback.Run(OutputInfo(), InputInfo(), false);
}
void AudioServiceImpl::SetActiveDevices(const DeviceIdList& device_list) {
}
bool AudioServiceImpl::SetDeviceProperties(const std::string& device_id,
bool muted,
int volume,
int gain) {
return false;
}
}