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

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: fix observer registration and bool prefs 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
« no previous file with comments | « chrome/common/pref_names.h ('k') | chromeos/chromeos.gyp » ('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 (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
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).
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::Action 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::Action enum.
854 const char kPowerLidClosedAction[] = "power.lid_closed_action";
855
856 // Should audio and video activity be used to disable the above delays?
857 const char kPowerUseAudioActivity[] = "power.use_audio_activity";
858 const char kPowerUseVideoActivity[] = "power.use_video_activity";
859
860 // Amount by which the idle delay should be scaled while the system is in
861 // presentation mode. Values are limited to a minimum of 1.0.
862 const char kPowerPresentationIdleDelayFactor[] =
863 "power.presentation_idle_delay_factor";
828 #endif // defined(OS_CHROMEOS) 864 #endif // defined(OS_CHROMEOS)
829 865
830 // The disabled messages in IPC logging. 866 // The disabled messages in IPC logging.
831 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages"; 867 const char kIpcDisabledMessages[] = "ipc_log_disabled_messages";
832 868
833 // A boolean pref set to true if a Home button to open the Home pages should be 869 // A boolean pref set to true if a Home button to open the Home pages should be
834 // visible on the toolbar. 870 // visible on the toolbar.
835 const char kShowHomeButton[] = "browser.show_home_button"; 871 const char kShowHomeButton[] = "browser.show_home_button";
836 872
837 // A string value which saves short list of recently user selected encodings 873 // A string value which saves short list of recently user selected encodings
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
2237 const char kRLZDisabled[] = "rlz.disabled"; 2273 const char kRLZDisabled[] = "rlz.disabled";
2238 #endif 2274 #endif
2239 2275
2240 #if defined(ENABLE_APP_LIST) 2276 #if defined(ENABLE_APP_LIST)
2241 // The directory in user data dir that contains the profile to be used with the 2277 // The directory in user data dir that contains the profile to be used with the
2242 // app launcher. 2278 // app launcher.
2243 extern const char kAppListProfile[] = "app_list.profile"; 2279 extern const char kAppListProfile[] = "app_list.profile";
2244 #endif 2280 #endif
2245 2281
2246 } // namespace prefs 2282 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | chromeos/chromeos.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698