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

Side by Side Diff: chrome/common/pref_names.cc

Issue 12186010: chromeos: Add power management policy prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace prefs { 9 namespace prefs {
10 10
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 // after login. When the browser restarts after a crash, the pref value is not 821 // after login. When the browser restarts after a crash, the pref value is not
822 // changed unless it appears corrupted (value unset, value lying in the future, 822 // changed unless it appears corrupted (value unset, value lying in the future,
823 // zero value). 823 // zero value).
824 const char kSessionStartTime[] = "session.start_time"; 824 const char kSessionStartTime[] = "session.start_time";
825 825
826 // Holds the maximum session time in milliseconds. If this pref is set, the 826 // Holds the maximum session time in milliseconds. If this pref is set, the
827 // user is logged out when the maximum session time is reached. The user is 827 // user is logged out when the maximum session time is reached. The user is
828 // informed about the remaining time by a countdown timer shown in the ash 828 // informed about the remaining time by a countdown timer shown in the ash
829 // system tray. 829 // system tray.
830 const char kSessionLengthLimit[] = "session.length_limit"; 830 const char kSessionLengthLimit[] = "session.length_limit";
831
832 // Inactivity time in milliseconds while the system is on AC power before
833 // the screen should be dimmed, turned off, or locked, or before
834 // kPowerIdleAction should be performed. 0 disables the delay (N/A for
835 // kPowerAcIdleDelayMs); -1 instructs the power manager to use its default.
bartfab (slow) 2013/02/04 10:04:35 As commented in preferences.cc, there is no need f
836 const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
837 const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
838 const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
839 const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
840
841 // Similar delays while the system is on battery power.
842 const char kPowerBatteryScreenDimDelayMs[] =
843 "power.battery_screen_dim_delay_ms";
844 const char kPowerBatteryScreenOffDelayMs[] =
845 "power.battery_screen_off_delay_ms";
846 const char kPowerBatteryScreenLockDelayMs[] =
847 "power.battery_screen_lock_delay_ms";
848 const char kPowerBatteryIdleDelayMs[] =
849 "power.battery_idle_delay_ms";
850
851 // Action that should be performed when the idle delay is reached.
852 // Values are from the chromeos::PowerPolicyController::OptionalAction enum.
853 const char kPowerIdleAction[] = "power.idle_action";
854
855 // Action that should be performed when the lid is closed.
856 // Values are from the chromeos::PowerPolicyController::OptionalAction enum.
857 const char kPowerLidClosedAction[] = "power.lid_closed_action";
858
859 // Should audio and video activity be used to disable the above delays?
860 // Values are from the chromeos::PowerPolicyController::OptionalBool enum.
bartfab (slow) 2013/02/04 10:04:35 As commented in preferences.cc, there is no need f
861 const char kPowerUseAudioActivity[] = "power.use_audio_activity";
862 const char kPowerUseVideoActivity[] = "power.use_video_activity";
863
864 // Amount by which the idle delay should be scaled while the system is in
865 // presentation mode. Values below 1.0 instruct the power manager to use
866 // its default setting.
bartfab (slow) 2013/02/04 10:04:35 No need for a magic value. I would prefer if it ju
867 const char kPowerPresentationIdleDelayFactor[] =
868 "power.presentation_idle_delay_factor";
831 #endif // defined(OS_CHROMEOS) 869 #endif // defined(OS_CHROMEOS)
832 870
833 // The disabled messages in IPC logging. 871 // The disabled messages in IPC logging.
834 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages"; 872 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
835 873
836 // A boolean pref set to true if a Home button to open the Home pages should be 874 // A boolean pref set to true if a Home button to open the Home pages should be
837 // visible on the toolbar. 875 // visible on the toolbar.
838 const char kShowHomeButton[] = "browser.show_home_button"; 876 const char kShowHomeButton[] = "browser.show_home_button";
839 877
840 // A string value which saves short list of recently user selected encodings 878 // A string value which saves short list of recently user selected encodings
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; 2265 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update";
2228 2266
2229 #if defined(OS_CHROMEOS) 2267 #if defined(OS_CHROMEOS)
2230 // The RLZ brand code, if enabled. 2268 // The RLZ brand code, if enabled.
2231 const char kRLZBrand[] = "rlz.brand"; 2269 const char kRLZBrand[] = "rlz.brand";
2232 // Whether RLZ pings are disabled. 2270 // Whether RLZ pings are disabled.
2233 const char kRLZDisabled[] = "rlz.disabled"; 2271 const char kRLZDisabled[] = "rlz.disabled";
2234 #endif 2272 #endif
2235 2273
2236 } // namespace prefs 2274 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698