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

Unified 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: pass prefs directly to PowerPolicyController 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/pref_names.cc
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index d1b73aeecb63a293572728627c1d5b6b6718b4ee..203d5cb5ab09fa66c395662d46b3555c9295acef 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -825,6 +825,44 @@ const char kSessionStartTime[] = "session.start_time";
// informed about the remaining time by a countdown timer shown in the ash
// system tray.
const char kSessionLengthLimit[] = "session.length_limit";
+
+// Inactivity time in milliseconds while the system is on AC power before
+// the screen should be dimmed, turned off, or locked, or before
+// kPowerIdleAction should be performed. 0 disables the delay (N/A for
+// kPowerAcIdleDelayMs); -1 instructs the power manager to use its default.
bartfab (slow) 2013/02/04 17:20:05 I guess the "-1 instructs the power manager to use
Daniel Erat 2013/02/04 17:31:59 Done.
+const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms";
+const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms";
+const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms";
+const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms";
+
+// Similar delays while the system is on battery power.
+const char kPowerBatteryScreenDimDelayMs[] =
+ "power.battery_screen_dim_delay_ms";
+const char kPowerBatteryScreenOffDelayMs[] =
+ "power.battery_screen_off_delay_ms";
+const char kPowerBatteryScreenLockDelayMs[] =
+ "power.battery_screen_lock_delay_ms";
+const char kPowerBatteryIdleDelayMs[] =
+ "power.battery_idle_delay_ms";
+
+// Action that should be performed when the idle delay is reached.
+// Values are from the chromeos::PowerPolicyController::OptionalAction enum.
+const char kPowerIdleAction[] = "power.idle_action";
+
+// Action that should be performed when the lid is closed.
+// Values are from the chromeos::PowerPolicyController::OptionalAction enum.
+const char kPowerLidClosedAction[] = "power.lid_closed_action";
+
+// Should audio and video activity be used to disable the above delays?
+// Values are from the chromeos::PowerPolicyController::OptionalBool enum.
bartfab (slow) 2013/02/04 17:20:05 The OptionalBool is obsolete.
Daniel Erat 2013/02/04 17:31:59 Done.
+const char kPowerUseAudioActivity[] = "power.use_audio_activity";
+const char kPowerUseVideoActivity[] = "power.use_video_activity";
+
+// Amount by which the idle delay should be scaled while the system is in
+// presentation mode. Values below 1.0 instruct the power manager to use
bartfab (slow) 2013/02/04 17:20:05 Just checking: The "value < 1.0 => use default" bi
Daniel Erat 2013/02/04 17:31:59 powerd's behavior is actually std::max(factor, 1.0
+// its default setting.
+const char kPowerPresentationIdleDelayFactor[] =
+ "power.presentation_idle_delay_factor";
#endif // defined(OS_CHROMEOS)
// The disabled messages in IPC logging.

Powered by Google App Engine
This is Rietveld 408576698