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

Unified Diff: chromeos/audio/audio_pref_names.cc

Issue 14314002: Implement new audio handler which talks to the new audio dbus apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/audio/audio_pref_names.cc
diff --git a/chromeos/audio/audio_pref_names.cc b/chromeos/audio/audio_pref_names.cc
new file mode 100644
index 0000000000000000000000000000000000000000..92b140e965ab5e440bb51ff853afc34e07ab95c3
--- /dev/null
+++ b/chromeos/audio/audio_pref_names.cc
@@ -0,0 +1,33 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chromeos/audio/audio_pref_names.h"
+
+namespace chromeos {
+
+namespace prefs {
+
+// TODO(jennyz): crbug.com/160311. Remove the same prefs from
+// chrome/common/pref_names.cc, once we retire the old AudioHandler code.
stevenjb 2013/04/17 01:25:12 Does it make sense to change the old code to inclu
jennyz 2013/04/18 01:21:19 It turns out that one of the audio pref, ie, kAudi
+
+// A pref holding the value of the policy used to disable capturing audio on
+// ChromeOS devices.
+const char kAudioCaptureAllowed[] = "hardware.audio_capture_enabled";
+
+// An integer pref to initially mute volume if 1. This pref is ignored if
+// |kAudioOutputAllowed| is set to false, but its value is preserved, therefore
+// when the policy is lifted the original mute state is restored.
+const char kAudioMute[] = "settings.audio.mute";
+
+// A pref holding the value of the policy used to disable playing audio on
+// ChromeOS devices. This pref overrides |kAudioMute| but does not overwrite
+// it, therefore when the policy is lifted the original mute state is restored.
+const char kAudioOutputAllowed[] = "hardware.audio_output_enabled";
+
+// A double pref storing the user-requested volume.
+const char kAudioVolumePercent[] = "settings.audio.volume_percent";
+
+} // namespace prefs
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698