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 "chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h" | 5 #include "chrome/browser/chromeos/audio/audio_devices_pref_handler_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/prefs/pref_registry_simple.h" | 12 #include "base/prefs/pref_registry_simple.h" |
13 #include "base/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
14 #include "base/prefs/scoped_user_pref_update.h" | 14 #include "base/prefs/scoped_user_pref_update.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "chrome/browser/chrome_notification_types.h" | |
17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
18 #include "chromeos/audio/audio_device.h" | 17 #include "chromeos/audio/audio_device.h" |
19 | 18 |
20 namespace { | 19 namespace { |
21 | 20 |
22 const double kDefaultOutputVolume = 75.0; | 21 const double kDefaultOutputVolume = 75.0; |
23 const double kDefaultHDMIOutputVolume = 100.0; | 22 const double kDefaultHDMIOutputVolume = 100.0; |
24 | 23 |
25 // Values used for muted preference. | 24 // Values used for muted preference. |
26 const int kPrefMuteOff = 0; | 25 const int kPrefMuteOff = 0; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 registry->RegisterIntegerPref(prefs::kAudioMute, kPrefMuteOff); | 225 registry->RegisterIntegerPref(prefs::kAudioMute, kPrefMuteOff); |
227 } | 226 } |
228 | 227 |
229 // static | 228 // static |
230 AudioDevicesPrefHandler* AudioDevicesPrefHandler::Create( | 229 AudioDevicesPrefHandler* AudioDevicesPrefHandler::Create( |
231 PrefService* local_state) { | 230 PrefService* local_state) { |
232 return new AudioDevicesPrefHandlerImpl(local_state); | 231 return new AudioDevicesPrefHandlerImpl(local_state); |
233 } | 232 } |
234 | 233 |
235 } // namespace chromeos | 234 } // namespace chromeos |
OLD | NEW |