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

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: Rebased. 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 | « no previous file | chrome/browser/policy/configuration_policy_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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: 172 115 # For your editing convenience: highest ID currently used: 185
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 3761 matching lines...) Expand 10 before | Expand all | Expand 10 after
3887 'id': 172, 3887 'id': 172,
3888 'caption': '''Set the Terms of Service for a device-local account''', 3888 'caption': '''Set the Terms of Service for a device-local account''',
3889 'desc': '''Sets the Terms of Service that the user must accept before star ting a device-local account session. 3889 'desc': '''Sets the Terms of Service that the user must accept before star ting a device-local account session.
3890 3890
3891 If this policy is set, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ ex></ph> will download the Terms of Service and present them to the user wheneve r a device-local account session is starting. The user will only be allowed into the session after accepting the Terms of Service. 3891 If this policy is set, <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ ex></ph> will download the Terms of Service and present them to the user wheneve r a device-local account session is starting. The user will only be allowed into the session after accepting the Terms of Service.
3892 3892
3893 If this policy is not set, no Terms of Service are shown. 3893 If this policy is not set, no Terms of Service are shown.
3894 3894
3895 The policy should be set to a URL from which <ph name="PRODUCT_OS_NAME">$2 <ex>Google Chrome OS</ex></ph> can download the Terms of Service. The Terms of S ervice must be plain text, served as MIME type text/plain. No markup is allowed. ''', 3895 The policy should be set to a URL from which <ph name="PRODUCT_OS_NAME">$2 <ex>Google Chrome OS</ex></ph> can download the Terms of Service. The Terms of S ervice must be plain text, served as MIME type text/plain. No markup is allowed. ''',
3896 }, 3896 },
3897 {
3898 'name': 'PowerManagement',
3899 'type': 'group',
3900 'caption': '''Power mangement''',
3901 'desc': '''Configure power manegement in <ph name="PRODUCT_OS_NAME">$2<ex> Google Chrome OS</ex></ph>.
3902
3903 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.''',
3904 'policies': [
3905 {
3906 'name': 'ScreenDimDelayAC',
3907 'type': 'int',
3908 'schema': { 'type': 'integer' },
3909 'supported_on': ['chrome_os:26-'],
3910 'features': {
3911 'dynamic_refresh': True,
3912 'per_profile': False,
3913 },
3914 'example_value': 420000,
3915 'id': 173,
3916 'caption': '''Screen dim delay when running on AC power''',
3917 'desc': '''Specifies the length of time without user input after which the screen is dimmed when running on AC power.
3918
3919 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.
3920
3921 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.
3922
3923 When this policy is unset, a default length of time is used.
3924
3925 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.''' ,
3926 },
3927 {
3928 'name': 'ScreenOffDelayAC',
3929 'type': 'int',
3930 'schema': { 'type': 'integer' },
3931 'supported_on': ['chrome_os:26-'],
3932 'features': {
3933 'dynamic_refresh': True,
3934 'per_profile': False,
3935 },
3936 'example_value': 480000,
3937 'id': 174,
3938 'caption': '''Screen off delay when running on AC power''',
3939 'desc': '''Specifies the length of time without user input after which the screen is turned off when running on AC power.
3940
3941 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.
3942
3943 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.
3944
3945 When this policy is unset, a default length of time is used.
3946
3947 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
3948 },
3949 {
3950 'name': 'ScreenLockDelayAC',
3951 'type': 'int',
3952 'schema': { 'type': 'integer' },
3953 'supported_on': ['chrome_os:26-'],
3954 'features': {
3955 'dynamic_refresh': True,
3956 'per_profile': False,
3957 },
3958 'example_value': 600000,
3959 'id': 175,
3960 'caption': '''Screen lock delay when running on AC power''',
3961 'desc': '''Specifies the length of time without user input after which the screen is locked when running on AC power.
3962
3963 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.
3964
3965 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.
3966
3967 When this policy is unset, a default length of time is used.
3968
3969 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.
3970
3971 The policy value should be specified in milliseconds. Values are clamp ed to be less than the idle delay.''',
3972 },
3973 {
3974 'name': 'IdleDelayAC',
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': 1800000,
3983 'id': 176,
3984 'caption': '''Idle delay when running on AC power''',
3985 'desc': '''Specifies the length of time without user input after which the idle action is taken when running on AC power.
3986
3987 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.
3988
3989 When this policy is unset, a default length of time is used.
3990
3991 The policy value should be specified in milliseconds.''',
3992 },
3993 {
3994 'name': 'ScreenDimDelayBattery',
3995 'type': 'int',
3996 'schema': { 'type': 'integer' },
3997 'supported_on': ['chrome_os:26-'],
3998 'features': {
3999 'dynamic_refresh': True,
4000 'per_profile': False,
4001 },
4002 'example_value': 300000,
4003 'id': 177,
4004 'caption': '''Screen dim delay when running on battery power''',
4005 'desc': '''Specifies the length of time without user input after which the screen is dimmed when running on battery power.
4006
4007 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.
4008
4009 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.
4010
4011 When this policy is unset, a default length of time is used.
4012
4013 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.''' ,
4014 },
4015 {
4016 'name': 'ScreenOffDelayBattery',
4017 'type': 'int',
4018 'schema': { 'type': 'integer' },
4019 'supported_on': ['chrome_os:26-'],
4020 'features': {
4021 'dynamic_refresh': True,
4022 'per_profile': False,
4023 },
4024 'example_value': 360000,
4025 'id': 178,
4026 'caption': '''Screen off delay when running on battery power''',
4027 'desc': '''Specifies the length of time without user input after which the screen is turned off when running on battery power.
4028
4029 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.
4030
4031 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.
4032
4033 When this policy is unset, a default length of time is used.
4034
4035 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
4036 },
4037 {
4038 'name': 'ScreenLockDelayBattery',
4039 'type': 'int',
4040 'schema': { 'type': 'integer' },
4041 'supported_on': ['chrome_os:26-'],
4042 'features': {
4043 'dynamic_refresh': True,
4044 'per_profile': False,
4045 },
4046 'example_value': 600000,
4047 'id': 179,
4048 'caption': '''Screen lock delay when running on battery power''',
4049 'desc': '''Specifies the length of time without user input after which the screen is locked when running on battery power.
4050
4051 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.
4052
4053 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.
4054
4055 When this policy is unset, a default length of time is used.
4056
4057 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.
4058
4059 The policy value should be specified in milliseconds. Values are clamp ed to be less than the idle delay.''',
4060 },
4061 {
4062 'name': 'IdleDelayBattery',
4063 'type': 'int',
4064 'schema': { 'type': 'integer' },
4065 'supported_on': ['chrome_os:26-'],
4066 'features': {
4067 'dynamic_refresh': True,
4068 'per_profile': False,
4069 },
4070 'example_value': 600000,
4071 'id': 180,
4072 'caption': '''Idle delay when running on battery power''',
4073 'desc': '''Specifies the length of time without user input after which the idle action is taken when running on battery power.
4074
4075 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.
4076
4077 When this policy is unset, a default length of time is used.
4078
4079 The policy value should be specified in milliseconds.''',
4080 },
4081 {
4082 'name': 'IdleAction',
4083 'type': 'int-enum',
4084 'schema': {
4085 'type': 'integer',
4086 'enum': [ 0, 1, 2, 3 ],
4087 },
4088 'items': [
4089 {
4090 'name': 'IdleActionSuspend',
4091 'value': 0,
4092 'caption': '''Suspend''',
4093 },
4094 {
4095 'name': 'IdleActionLogout',
4096 'value': 1,
4097 'caption': '''Log out the user''',
4098 },
4099 {
4100 'name': 'IdleActionShutdown',
4101 'value': 2,
4102 'caption': '''Shut down''',
4103 },
4104 {
4105 'name': 'IdleActionDoNothing',
4106 'value': 3,
4107 'caption': '''Do nothing''',
4108 },
4109 ],
4110 'supported_on': ['chrome_os:26-'],
4111 'features': {
4112 'dynamic_refresh': True,
4113 'per_profile': False,
4114 },
4115 'example_value': 0,
4116 'id': 181,
4117 'caption': '''Action to take when the idle delay is reached''',
4118 'desc': '''Specify the action to take when the idle delay is reached.
4119
4120 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.
4121
4122 When this policy is unset, the default action is taken, which is suspe nd.
4123
4124 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.''',
4125 },
4126 {
4127 'name': 'LidCloseAction',
4128 'type': 'int-enum',
4129 'schema': {
4130 'type': 'integer',
4131 'enum': [ 0, 1, 2, 3 ],
4132 },
4133 'items': [
4134 {
4135 'name': 'LidCloseActionSuspend',
4136 'value': 0,
4137 'caption': '''Suspend''',
4138 },
4139 {
4140 'name': 'LidCloseActionLogout',
4141 'value': 1,
4142 'caption': '''Log out the user''',
4143 },
4144 {
4145 'name': 'LidCloseActionShutdown',
4146 'value': 2,
4147 'caption': '''Shut down''',
4148 },
4149 {
4150 'name': 'LidCloseActionDoNothing',
4151 'value': 3,
4152 'caption': '''Do nothing''',
4153 },
4154 ],
4155 'supported_on': ['chrome_os:26-'],
4156 'features': {
4157 'dynamic_refresh': True,
4158 'per_profile': False,
4159 },
4160 'example_value': 0,
4161 'id': 182,
4162 'caption': '''Action to take when the user closes the lid''',
4163 'desc': '''Specify the action to take when the user closes the lid.
4164
4165 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.
4166
4167 When this policy is unset, the default action is taken, which is suspe nd.
4168
4169 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.''',
4170 },
4171 {
4172 'name': 'PowerManagementUsesAudioActivity',
4173 'type': 'main',
4174 'schema': { 'type': 'boolean' },
4175 'supported_on': ['chrome_os:26-'],
4176 'features': {
4177 'dynamic_refresh': True,
4178 'per_profile': False,
4179 },
4180 'example_value': True,
4181 'id': 183,
4182 'caption': '''Specify whether audio activity affects power management' '',
4183 'desc': '''Specifies whether audio activity affects power management.
4184
4185 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.
4186
4187 If this policy is set to False, audio activity does not prevent the us er from being considered idle.''',
4188 },
4189 {
4190 'name': 'PowerManagementUsesVideoActivity',
4191 'type': 'main',
4192 'schema': { 'type': 'boolean' },
4193 'supported_on': ['chrome_os:26-'],
4194 'features': {
4195 'dynamic_refresh': True,
4196 'per_profile': False,
4197 },
4198 'example_value': True,
4199 'id': 184,
4200 'caption': '''Specify whether video activity affects power management' '',
4201 'desc': '''Specifies whether vidoe activity affects power management.
4202
4203 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.
4204
4205 If this policy is set to False, video activity does not prevent the us er from being considered idle.''',
4206 },
4207 {
4208 'name': 'PresentationIdleDelayScale',
4209 'type': 'int',
4210 'schema': { 'type': 'integer' },
4211 'supported_on': ['chrome_os:26-'],
4212 'features': {
4213 'dynamic_refresh': True,
4214 'per_profile': False,
4215 },
4216 'example_value': 200,
4217 'id': 185,
4218 'caption': '''Percentage by which to scale the idle delay in presentat ion mode''',
4219 'desc': '''Specifies the percentage by which the idle delay is scaled when the device is in presentation node.
4220
4221 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.
4222
4223 If this policy is unset, a default scale factor is used.
4224
4225 The scale factor must be 100% or more. Values that would make the idle delay in presentation mode shorter than the regular idle delay are not allowed. ''',
4226 },
4227 ],
4228 },
3897 ], 4229 ],
3898 'messages': { 4230 'messages': {
3899 # Messages that are not associated to any policies. 4231 # Messages that are not associated to any policies.
3900 'win_supported_winxpsp2': { 4232 'win_supported_winxpsp2': {
3901 '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:'.''', 4233 '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:'.''',
3902 'text': '''Microsoft Windows XP SP2 or later''' 4234 'text': '''Microsoft Windows XP SP2 or later'''
3903 }, 4235 },
3904 'mac_chrome_preferences': { 4236 'mac_chrome_preferences': {
3905 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chrome are being edited''', 4237 'desc': '''A text indicating in Mac OS X Workgroup Manager, that currently the preferences of Chrome are being edited''',
3906 'text': '''<ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> preferenc es''' 4238 '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
3989 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 4321 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
3990 'text': 'deprecated', 4322 'text': 'deprecated',
3991 }, 4323 },
3992 'doc_recommended': { 4324 'doc_recommended': {
3993 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 4325 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
3994 'text': 'Default Settings (users can override)', 4326 'text': 'Default Settings (users can override)',
3995 }, 4327 },
3996 }, 4328 },
3997 'placeholders': [], 4329 'placeholders': [],
3998 } 4330 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698