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

Side by Side Diff: chrome/app/policy/policy_templates.json

Issue 12217068: Add policies to control Chrome OS power management (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 { 1 {
2 # policy_templates.json - Metafile for policy templates 2 # policy_templates.json - Metafile for policy templates
3 # 3 #
4 # The content of this file is evaluated as a Python expression. 4 # The content of this file is evaluated as a Python expression.
5 # 5 #
6 # This file is used as input to generate the following policy templates: 6 # This file is used as input to generate the following policy templates:
7 # ADM, ADMX+ADML, MCX/plist and html documentation. 7 # ADM, ADMX+ADML, MCX/plist and html documentation.
8 # 8 #
9 # Policy templates are user interface definitions or documents about the 9 # Policy templates are user interface definitions or documents about the
10 # policies that can be used to configure Chrome. Each policy is a name-value 10 # policies that can be used to configure Chrome. Each policy is a name-value
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 # templates and documentation. The policy definition list that Chrome sees 105 # templates and documentation. The policy definition list that Chrome sees
106 # will include policies marked with 'future'. If a WIP policy isn't meant to 106 # will include policies marked with 'future'. If a WIP policy isn't meant to
107 # be seen by the policy providers either, the 'supported_on' key should be set 107 # be seen by the policy providers either, the 'supported_on' key should be set
108 # to an empty list. 108 # to an empty list.
109 # 109 #
110 # IDs: 110 # IDs:
111 # Since a Protocol Buffer definition is generated from this file, unique and 111 # Since a Protocol Buffer definition is generated from this file, unique and
112 # persistent IDs for all fields (but not for groups!) are needed. These are 112 # persistent IDs for all fields (but not for groups!) are needed. These are
113 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 113 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
114 # because doing so would break the deployed wire format! 114 # because doing so would break the deployed wire format!
115 # For your editing convenience: highest ID currently used: 171 115 # For your editing convenience: highest ID currently used: 184
116 # 116 #
117 # Placeholders: 117 # Placeholders:
118 # The following placeholder strings are automatically substituted: 118 # The following placeholder strings are automatically substituted:
119 # $1 -> Google Chrome / Chromium 119 # $1 -> Google Chrome / Chromium
120 # $2 -> Google Chrome OS / Chromium OS 120 # $2 -> Google Chrome OS / Chromium OS
121 # $3 -> Google Chrome Frame / Chromium Frame 121 # $3 -> Google Chrome Frame / Chromium Frame
122 # $6 is reserved for doc_writer 122 # $6 is reserved for doc_writer
123 # 123 #
124 # Device Policy: 124 # Device Policy:
125 # An additional flag device_only (optional, defaults to False) indicates 125 # An additional flag device_only (optional, defaults to False) indicates
(...skipping 3741 matching lines...) Expand 10 before | Expand all | Expand 10 after
3867 'desc': '''Limit the maximum length of a user session. 3867 'desc': '''Limit the maximum length of a user session.
3868 3868
3869 When this policy is set, it specifies the length of time after which a use r is automatically logged out, terminating the session. The user is informed abo ut the remaining time by a countdown timer shown in the system tray. 3869 When this policy is set, it specifies the length of time after which a use r is automatically logged out, terminating the session. The user is informed abo ut the remaining time by a countdown timer shown in the system tray.
3870 3870
3871 When this policy is not set, the session length is not limited. 3871 When this policy is not set, the session length is not limited.
3872 3872
3873 If you set this policy, users cannot change or override it. 3873 If you set this policy, users cannot change or override it.
3874 3874
3875 The policy value should be specified in milliseconds. Values are clamped t o a range of 30 seconds to 24 hours.''', 3875 The policy value should be specified in milliseconds. Values are clamped t o a range of 30 seconds to 24 hours.''',
3876 }, 3876 },
3877 {
3878 'name': 'PowerManagement',
3879 'type': 'group',
3880 'caption': '''Power mangement''',
3881 'desc': '''Configure power manegement in <ph name="PRODUCT_OS_NAME">$2<ex> Google Chrome OS</ex></ph>.
3882
3883 These policies let you configure how <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> behaves when the user remains idle for some amount of tim e.''',
3884 'policies': [
3885 {
3886 'name': 'ScreenDimDelayAC',
3887 'type': 'int',
3888 'schema': { 'type': 'integer' },
3889 'supported_on': ['chrome_os:26-'],
3890 'features': {
3891 'dynamic_refresh': True,
3892 'per_profile': False,
3893 },
3894 'example_value': 420000,
3895 'id': 172,
3896 'caption': '''Screen dim delay when running on AC power''',
3897 'desc': '''Specifies the length of time without user input after which the screen is dimmed when running on AC power.
3898
3899 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> dims the screen.
3900
3901 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not dim the screen when the user becomes idle.
3902
3903 When this policy is unset, a default length of time is used.
3904
3905 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the screen off delay (if set) and the idle delay.''' ,
3906 },
3907 {
3908 'name': 'ScreenOffDelayAC',
3909 'type': 'int',
3910 'schema': { 'type': 'integer' },
3911 'supported_on': ['chrome_os:26-'],
3912 'features': {
3913 'dynamic_refresh': True,
3914 'per_profile': False,
3915 },
3916 'example_value': 480000,
3917 'id': 173,
3918 'caption': '''Screen off delay when running on AC power''',
3919 'desc': '''Specifies the length of time without user input after which the screen is turned off when running on AC power.
3920
3921 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> turns off the screen.
3922
3923 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not turn off the screen when the user becomes idle.
3924
3925 When this policy is unset, a default length of time is used.
3926
3927 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
3928 },
3929 {
3930 'name': 'ScreenLockDelayAC',
3931 'type': 'int',
3932 'schema': { 'type': 'integer' },
3933 'supported_on': ['chrome_os:26-'],
3934 'features': {
3935 'dynamic_refresh': True,
3936 'per_profile': False,
3937 },
3938 'example_value': 600000,
3939 'id': 174,
3940 'caption': '''Screen lock delay when running on AC power''',
Mattias Nissler (ping if slow) 2013/02/07 16:52:01 How does this interact with ChromeOSLockOnIdleSusp
bartfab (slow) 2013/02/07 17:25:53 This is a *second* method for locking the screen.
Mattias Nissler (ping if slow) 2013/02/08 09:47:49 Ah, now I get it :) Might be worthwhile to point t
bartfab (slow) 2013/02/08 11:39:24 But isn't this what this part of the description a
3941 'desc': '''Specifies the length of time without user input after which the screen is locked when running on AC power.
3942
3943 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> locks the screen.
3944
3945 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not lock the screen when the user becomes idle.
3946
3947 When this policy is unset, a default length of time is used.
3948
3949 The recommended way to lock the screen on idle is to enable screen loc king on suspend and have <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> suspend after the idle delay. This policy should only be used when screen l ocking should occur a significant amount of time sooner than suspend or when sus pend on idle is not desired at all.
3950
3951 The policy value should be specified in milliseconds. Values are clamp ed to be less than the idle delay.''',
3952 },
3953 {
3954 'name': 'IdleDelayAC',
3955 'type': 'int',
3956 'schema': { 'type': 'integer' },
3957 'supported_on': ['chrome_os:26-'],
3958 'features': {
3959 'dynamic_refresh': True,
3960 'per_profile': False,
3961 },
3962 'example_value': 1800000,
3963 'id': 175,
3964 'caption': '''Idle delay when running on AC power''',
3965 'desc': '''Specifies the length of time without user input after which the idle action is taken when running on AC power.
3966
3967 When this policy is set, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> takes the idle action, which can be configured separately.
Mattias Nissler (ping if slow) 2013/02/07 16:52:01 If there's this action abstraction, why is screen
bartfab (slow) 2013/02/07 17:25:53 As explained above, this allows one timeout to be
Mattias Nissler (ping if slow) 2013/02/08 09:47:49 Makes sense, thanks for the explanation.
3968
3969 When this policy is unset, a default length of time is used.
3970
3971 The policy value should be specified in milliseconds.''',
3972 },
3973 {
3974 'name': 'ScreenDimDelayBattery',
3975 'type': 'int',
3976 'schema': { 'type': 'integer' },
3977 'supported_on': ['chrome_os:26-'],
3978 'features': {
3979 'dynamic_refresh': True,
3980 'per_profile': False,
3981 },
3982 'example_value': 300000,
3983 'id': 176,
3984 'caption': '''Screen dim delay when running on battery power''',
3985 'desc': '''Specifies the length of time without user input after which the screen is dimmed when running on battery power.
3986
3987 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> dims the screen.
3988
3989 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not dim the screen when the user becomes idle.
3990
3991 When this policy is unset, a default length of time is used.
3992
3993 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the screen off delay (if set) and the idle delay.''' ,
3994 },
3995 {
3996 'name': 'ScreenOffDelayBattery',
3997 'type': 'int',
3998 'schema': { 'type': 'integer' },
3999 'supported_on': ['chrome_os:26-'],
4000 'features': {
4001 'dynamic_refresh': True,
4002 'per_profile': False,
4003 },
4004 'example_value': 360000,
4005 'id': 177,
4006 'caption': '''Screen off delay when running on battery power''',
4007 'desc': '''Specifies the length of time without user input after which the screen is turned off when running on battery power.
4008
4009 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> turns off the screen.
4010
4011 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not turn off the screen when the user becomes idle.
4012
4013 When this policy is unset, a default length of time is used.
4014
4015 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
4016 },
4017 {
4018 'name': 'ScreenLockDelayBattery',
4019 'type': 'int',
4020 'schema': { 'type': 'integer' },
4021 'supported_on': ['chrome_os:26-'],
4022 'features': {
4023 'dynamic_refresh': True,
4024 'per_profile': False,
4025 },
4026 'example_value': 600000,
4027 'id': 178,
4028 'caption': '''Screen lock delay when running on battery power''',
4029 'desc': '''Specifies the length of time without user input after which the screen is locked when running on battery power.
4030
4031 When this policy is set to a value greater than zero, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME" >$2<ex>Google Chrome OS</ex></ph> locks the screen.
4032
4033 When this policy is set to zero, <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> does not lock the screen when the user becomes idle.
4034
4035 When this policy is unset, a default length of time is used.
4036
4037 The recommended way to lock the screen on idle is to enable screen loc king on suspend and have <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> suspend after the idle delay. This policy should only be used when screen l ocking should occur a significant amount of time sooner than suspend or when sus pend on idle is not desired at all.
4038
4039 The policy value should be specified in milliseconds. Values are clamp ed to be less than the idle delay.''',
4040 },
4041 {
4042 'name': 'IdleDelayBattery',
4043 'type': 'int',
4044 'schema': { 'type': 'integer' },
4045 'supported_on': ['chrome_os:26-'],
4046 'features': {
4047 'dynamic_refresh': True,
4048 'per_profile': False,
4049 },
4050 'example_value': 600000,
4051 'id': 179,
4052 'caption': '''Idle delay when running on battery power''',
4053 'desc': '''Specifies the length of time without user input after which the idle action is taken when running on battery power.
4054
4055 When this policy is set, it specifies the length of time that the user must remain idle before <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex>< /ph> takes the idle action, which can be configured separately.
4056
4057 When this policy is unset, a default length of time is used.
4058
4059 The policy value should be specified in milliseconds.''',
4060 },
4061 {
4062 'name': 'IdleAction',
4063 'type': 'int-enum',
4064 'schema': {
4065 'type': 'integer',
4066 'enum': [ 0, 1, 2, 3 ],
4067 },
4068 'items': [
4069 {
4070 'name': 'IdleActionSuspend',
4071 'value': 0,
4072 'caption': '''Suspend''',
4073 },
4074 {
4075 'name': 'IdleActionLogout',
4076 'value': 1,
4077 'caption': '''Log out the user''',
4078 },
4079 {
4080 'name': 'IdleActionShutdown',
4081 'value': 2,
4082 'caption': '''Shut down''',
4083 },
4084 {
4085 'name': 'IdleActionDoNothing',
4086 'value': 3,
4087 'caption': '''Do nothing''',
4088 },
4089 ],
4090 'supported_on': ['chrome_os:26-'],
4091 'features': {
4092 'dynamic_refresh': True,
4093 'per_profile': False,
4094 },
4095 'example_value': 0,
4096 'id': 180,
4097 'caption': '''Action to take when the idle delay is reached''',
4098 'desc': '''Specify the action to take when the idle delay is reached.
4099
4100 When this policy is set, it specifies the action that <ph name="PRODUC T_OS_NAME">$2<ex>Google Chrome OS</ex></ph> takes when the user remains idle for the length of time given by the idle delay, which can be configured separately.
4101
4102 When this policy is unset, the default action is taken, which is suspe nd.
4103
4104 If the action is suspend, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chro me OS</ex></ph> can separately be configured to either lock or not lock the scre en before suspending.''',
4105 },
4106 {
4107 'name': 'LidCloseAction',
4108 'type': 'int-enum',
4109 'schema': {
4110 'type': 'integer',
4111 'enum': [ 0, 1, 2, 3 ],
4112 },
4113 'items': [
4114 {
4115 'name': 'LidCloseActionSuspend',
4116 'value': 0,
4117 'caption': '''Suspend''',
4118 },
4119 {
4120 'name': 'LidCloseActionLogout',
4121 'value': 1,
4122 'caption': '''Log out the user''',
4123 },
4124 {
4125 'name': 'LidCloseActionShutdown',
4126 'value': 2,
4127 'caption': '''Shut down''',
4128 },
4129 {
4130 'name': 'LidCloseActionDoNothing',
4131 'value': 3,
4132 'caption': '''Do nothing''',
4133 },
4134 ],
4135 'supported_on': ['chrome_os:26-'],
4136 'features': {
4137 'dynamic_refresh': True,
4138 'per_profile': False,
4139 },
4140 'example_value': 0,
4141 'id': 181,
4142 'caption': '''Action to take when the user closes the lid''',
4143 'desc': '''Specify the action to take when the user closes the lid.
4144
4145 When this policy is set, it specifies the action that <ph name="PRODUC T_OS_NAME">$2<ex>Google Chrome OS</ex></ph> takes when the user closes the devic e's lid.
4146
4147 When this policy is unset, the default action is taken, which is suspe nd.
4148
4149 If the action is suspend, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chro me OS</ex></ph> can separately be configured to either lock or not lock the scre en before suspending.''',
4150 },
4151 {
4152 'name': 'PowerManagementUsesAudioActivity',
4153 'type': 'main',
4154 'schema': { 'type': 'boolean' },
4155 'supported_on': ['chrome_os:26-'],
4156 'features': {
4157 'dynamic_refresh': True,
4158 'per_profile': False,
4159 },
4160 'example_value': True,
4161 'id': 182,
4162 'caption': '''Specify whether audio activity affects power management' '',
4163 'desc': '''Specifies whether audio activity affects power management.
4164
4165 If this policy is set to True or is unset, the user is not considered to be idle while audio is playing. This prevents the idle timeout from being rea ched and the idle action from being taken. However, screen dimming, screen off a nd screen lock will be performed after the configured timeouts, irrespective of audio activity.
4166
4167 If this policy is set to False, audio activity does not prevent the us er from being considered idle.''',
4168 },
4169 {
4170 'name': 'PowerManagementUsesVideoActivity',
4171 'type': 'main',
4172 'schema': { 'type': 'boolean' },
4173 'supported_on': ['chrome_os:26-'],
4174 'features': {
4175 'dynamic_refresh': True,
4176 'per_profile': False,
4177 },
4178 'example_value': True,
4179 'id': 183,
4180 'caption': '''Specify whether video activity affects power management' '',
4181 'desc': '''Specifies whether vidoe activity affects power management.
4182
4183 If this policy is set to True or is unset, the user is not considered to be idle while video is playing. This prevents the idle delay, screen dim dela y, screen off delay and screen lock delay from being reached and the correspondi ng actions from being taken.
4184
4185 If this policy is set to False, video activity does not prevent the us er from being considered idle.''',
4186 },
4187 {
4188 'name': 'PresentationIdleDelayScale',
4189 'type': 'int',
4190 'schema': { 'type': 'integer' },
4191 'supported_on': ['chrome_os:26-'],
4192 'features': {
4193 'dynamic_refresh': True,
4194 'per_profile': False,
4195 },
4196 'example_value': 200,
4197 'id': 184,
4198 'caption': '''Percentage by which to scale the idle delay in presentat ion mode''',
4199 'desc': '''Specifies the percentage by which the idle delay is scaled when the device is in presentation node.
4200
4201 If this policy is set, it specifies the percentage by which the idle d elay is scaled when the device is in presentation mode. When the idle delay is s caled, the screen dimming, screen off and screen lock delays get adjusted to mai ntain the same distances from the idle delay as originally configured.
4202
4203 If this policy is unset, a default scale factor is used.''',
4204 },
4205 ],
4206 },
3877 ], 4207 ],
3878 'messages': { 4208 'messages': {
3879 # Messages that are not associated to any policies. 4209 # Messages that are not associated to any policies.
3880 'win_supported_winxpsp2': { 4210 'win_supported_winxpsp2': {
3881 'desc': '''A label specifying the oldest possible compatible version of Wi ndows. This text will appear right next to a label containing the text 'Supporte d on:'.''', 4211 'desc': '''A label specifying the oldest possible compatible version of Wi ndows. This text will appear right next to a label containing the text 'Supporte d on:'.''',
3882 'text': '''Microsoft Windows XP SP2 or later''' 4212 'text': '''Microsoft Windows XP SP2 or later'''
3883 }, 4213 },
3884 'mac_chrome_preferences': { 4214 'mac_chrome_preferences': {
3885 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chrome are being edited''', 4215 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chrome are being edited''',
3886 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es''' 4216 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es'''
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
3969 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 4299 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
3970 'text': 'deprecated', 4300 'text': 'deprecated',
3971 }, 4301 },
3972 'doc_recommended': { 4302 'doc_recommended': {
3973 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 4303 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
3974 'text': 'Default Settings (users can override)', 4304 'text': 'Default Settings (users can override)',
3975 }, 4305 },
3976 }, 4306 },
3977 'placeholders': [], 4307 'placeholders': [],
3978 } 4308 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698