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 #include "extensions/browser/api/audio/audio_service.h" | 5 #include "extensions/browser/api/audio/audio_service.h" |
6 | 6 |
7 namespace extensions { | 7 namespace extensions { |
8 | 8 |
9 class AudioServiceImpl : public AudioService { | 9 class AudioServiceImpl : public AudioService { |
10 public: | 10 public: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void AudioServiceImpl::SetActiveDevices(const DeviceIdList& device_list) { | 45 void AudioServiceImpl::SetActiveDevices(const DeviceIdList& device_list) { |
46 } | 46 } |
47 | 47 |
48 bool AudioServiceImpl::SetDeviceProperties(const std::string& device_id, | 48 bool AudioServiceImpl::SetDeviceProperties(const std::string& device_id, |
49 bool muted, | 49 bool muted, |
50 int volume, | 50 int volume, |
51 int gain) { | 51 int gain) { |
52 return false; | 52 return false; |
53 } | 53 } |
54 | 54 |
| 55 void AudioServiceImpl::StartGetDeviceInfo( |
| 56 const GetDeviceInfoCallback& callback) { |
| 57 // TODO: implement this for platforms other than Chrome OS. |
| 58 if (!callback.is_null()) |
| 59 callback.Run(DevicesInfo(), false); |
| 60 } |
| 61 |
55 } // namespace extensions | 62 } // namespace extensions |
OLD | NEW |