Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: extensions/browser/api/audio/audio_service.cc

Issue 945103002: Add a new audio extension event OnLevelChanged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698