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

Side by Side Diff: chromeos/chromeos_pref_names.cc

Issue 1380103003: Store audio device's active state in preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix string format Created 4 years, 11 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
« no previous file with comments | « chromeos/chromeos_pref_names.h ('k') | chromeos/dbus/audio_node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromeos/chromeos_pref_names.h" 5 #include "chromeos/chromeos_pref_names.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace prefs { 8 namespace prefs {
9 9
10 // A dictionary pref to hold the mute setting for all the currently known 10 // A dictionary pref to hold the mute setting for all the currently known
(...skipping 15 matching lines...) Expand all
26 // A pref holding the value of the policy used to disable playing audio on 26 // A pref holding the value of the policy used to disable playing audio on
27 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite 27 // ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
28 // it, therefore when the policy is lifted the original mute state is restored. 28 // it, therefore when the policy is lifted the original mute state is restored.
29 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled"; 29 const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
30 30
31 // A double pref storing the user-requested volume. This setting is here only 31 // A double pref storing the user-requested volume. This setting is here only
32 // for migration purposes now. It is being replaced by the 32 // for migration purposes now. It is being replaced by the
33 // |kAudioDevicesVolumePercent| setting. 33 // |kAudioDevicesVolumePercent| setting.
34 const char kAudioVolumePercent[] = "settings.audio.volume_percent"; 34 const char kAudioVolumePercent[] = "settings.audio.volume_percent";
35 35
36 // A dictionary pref that maps stable device id string to |AudioDeviceState|.
37 // Different state values indicate whether or not a device has been selected
38 // as the active one for audio I/O, or it's a new plugged device.
39 const char kAudioDevicesState[] = "settings.audio.device_state";
40
36 } // namespace prefs 41 } // namespace prefs
37 } // namespace chromeos 42 } // namespace chromeos
38 43
OLDNEW
« no previous file with comments | « chromeos/chromeos_pref_names.h ('k') | chromeos/dbus/audio_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698