OLD | NEW |
---|---|
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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
818 // after login. When the browser restarts after a crash, the pref value is not | 818 // after login. When the browser restarts after a crash, the pref value is not |
819 // changed unless it appears corrupted (value unset, value lying in the future, | 819 // changed unless it appears corrupted (value unset, value lying in the future, |
820 // zero value). | 820 // zero value). |
821 const char kSessionStartTime[] = "session.start_time"; | 821 const char kSessionStartTime[] = "session.start_time"; |
822 | 822 |
823 // Holds the maximum session time in milliseconds. If this pref is set, the | 823 // Holds the maximum session time in milliseconds. If this pref is set, the |
824 // user is logged out when the maximum session time is reached. The user is | 824 // user is logged out when the maximum session time is reached. The user is |
825 // informed about the remaining time by a countdown timer shown in the ash | 825 // informed about the remaining time by a countdown timer shown in the ash |
826 // system tray. | 826 // system tray. |
827 const char kSessionLengthLimit[] = "session.length_limit"; | 827 const char kSessionLengthLimit[] = "session.length_limit"; |
828 | |
829 // Inactivity time in milliseconds while the system is on AC power before | |
830 // the screen should be dimmed, turned off, or locked, or before | |
831 // kPowerIdleAction should be performed. 0 disables the delay (N/A for | |
832 // 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.
| |
833 const char kPowerAcScreenDimDelayMs[] = "power.ac_screen_dim_delay_ms"; | |
834 const char kPowerAcScreenOffDelayMs[] = "power.ac_screen_off_delay_ms"; | |
835 const char kPowerAcScreenLockDelayMs[] = "power.ac_screen_lock_delay_ms"; | |
836 const char kPowerAcIdleDelayMs[] = "power.ac_idle_delay_ms"; | |
837 | |
838 // Similar delays while the system is on battery power. | |
839 const char kPowerBatteryScreenDimDelayMs[] = | |
840 "power.battery_screen_dim_delay_ms"; | |
841 const char kPowerBatteryScreenOffDelayMs[] = | |
842 "power.battery_screen_off_delay_ms"; | |
843 const char kPowerBatteryScreenLockDelayMs[] = | |
844 "power.battery_screen_lock_delay_ms"; | |
845 const char kPowerBatteryIdleDelayMs[] = | |
846 "power.battery_idle_delay_ms"; | |
847 | |
848 // Action that should be performed when the idle delay is reached. | |
849 // Values are from the chromeos::PowerPolicyController::OptionalAction enum. | |
850 const char kPowerIdleAction[] = "power.idle_action"; | |
851 | |
852 // Action that should be performed when the lid is closed. | |
853 // Values are from the chromeos::PowerPolicyController::OptionalAction enum. | |
854 const char kPowerLidClosedAction[] = "power.lid_closed_action"; | |
855 | |
856 // Should audio and video activity be used to disable the above delays? | |
857 // 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.
| |
858 const char kPowerUseAudioActivity[] = "power.use_audio_activity"; | |
859 const char kPowerUseVideoActivity[] = "power.use_video_activity"; | |
860 | |
861 // Amount by which the idle delay should be scaled while the system is in | |
862 // 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
| |
863 // its default setting. | |
864 const char kPowerPresentationIdleDelayFactor[] = | |
865 "power.presentation_idle_delay_factor"; | |
828 #endif // defined(OS_CHROMEOS) | 866 #endif // defined(OS_CHROMEOS) |
829 | 867 |
830 // The disabled messages in IPC logging. | 868 // The disabled messages in IPC logging. |
831 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages"; | 869 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages"; |
832 | 870 |
833 // A boolean pref set to true if a Home button to open the Home pages should be | 871 // A boolean pref set to true if a Home button to open the Home pages should be |
834 // visible on the toolbar. | 872 // visible on the toolbar. |
835 const char kShowHomeButton[] = "browser.show_home_button"; | 873 const char kShowHomeButton[] = "browser.show_home_button"; |
836 | 874 |
837 // A string value which saves short list of recently user selected encodings | 875 // A string value which saves short list of recently user selected encodings |
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2224 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; | 2262 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; |
2225 | 2263 |
2226 #if defined(OS_CHROMEOS) | 2264 #if defined(OS_CHROMEOS) |
2227 // The RLZ brand code, if enabled. | 2265 // The RLZ brand code, if enabled. |
2228 const char kRLZBrand[] = "rlz.brand"; | 2266 const char kRLZBrand[] = "rlz.brand"; |
2229 // Whether RLZ pings are disabled. | 2267 // Whether RLZ pings are disabled. |
2230 const char kRLZDisabled[] = "rlz.disabled"; | 2268 const char kRLZDisabled[] = "rlz.disabled"; |
2231 #endif | 2269 #endif |
2232 | 2270 |
2233 } // namespace prefs | 2271 } // namespace prefs |
OLD | NEW |