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

Side by Side Diff: chrome/browser/chromeos/audio/audio_pref_handler_impl.h

Issue 14801002: Switch Audio Preferences to per device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_PREF_HANDLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_PREF_HANDLER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_PREF_HANDLER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_PREF_HANDLER_IMPL_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "base/prefs/pref_change_registrar.h" 9 #include "base/prefs/pref_change_registrar.h"
10 #include "chromeos/audio/audio_pref_handler.h" 10 #include "chromeos/audio/audio_pref_handler.h"
11 11
12 class PrefRegistrySimple; 12 class PrefRegistrySimple;
13 class PrefService; 13 class PrefService;
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 // NOTE: This class will be removed once we remove the old Audio Handler code.
Pam (message me for reviews) 2013/05/02 15:11:40 Please turn this into a TODO, so there's a usernam
rkc 2013/05/02 18:46:09 Done.
17 // Class which implements AudioPrefHandler interface and register audio 18 // Class which implements AudioPrefHandler interface and register audio
18 // preferences as well. 19 // preferences as well.
19 class AudioPrefHandlerImpl : public AudioPrefHandler { 20 class AudioPrefHandlerImpl : public AudioPrefHandler {
20 public: 21 public:
21 explicit AudioPrefHandlerImpl(PrefService* local_state); 22 explicit AudioPrefHandlerImpl(PrefService* local_state);
22 23
23 // Overriden from AudioPreHandler. 24 // Overriden from AudioPreHandler.
24 virtual double GetOutputVolumeValue() OVERRIDE; 25 virtual double GetOutputVolumeValue() OVERRIDE;
25 virtual void SetOutputVolumeValue(double volume_percent) OVERRIDE; 26 virtual void SetOutputVolumeValue(double volume_percent) OVERRIDE;
26 virtual bool GetOutputMuteValue() OVERRIDE; 27 virtual bool GetOutputMuteValue() OVERRIDE;
(...skipping 21 matching lines...) Expand all
48 PrefChangeRegistrar pref_change_registrar_; 49 PrefChangeRegistrar pref_change_registrar_;
49 50
50 ObserverList<AudioPrefObserver> observers_; 51 ObserverList<AudioPrefObserver> observers_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(AudioPrefHandlerImpl); 53 DISALLOW_COPY_AND_ASSIGN(AudioPrefHandlerImpl);
53 }; 54 };
54 55
55 } // namespace chromeos 56 } // namespace chromeos
56 57
57 #endif // CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_PREF_HANDLER_IMPL_H_ 58 #endif // CHROME_BROWSER_CHROMEOS_AUDIO_AUDIO_PREF_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698