| OLD | NEW |
| 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 Loading... |
| 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: 223 | 115 # For your editing convenience: highest ID currently used: 224 |
| 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 4360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4486 | 4486 |
| 4487 If this policy is set, it specifies the percentage by which the screen
dim delay is scaled when user activity is observed while the screen is dimmed o
r soon after the screen has been turned off. When the dim delay is scaled, the s
creen off, screen lock and idle delays get adjusted to maintain the same distanc
es from the screen dim delay as originally configured. | 4487 If this policy is set, it specifies the percentage by which the screen
dim delay is scaled when user activity is observed while the screen is dimmed o
r soon after the screen has been turned off. When the dim delay is scaled, the s
creen off, screen lock and idle delays get adjusted to maintain the same distanc
es from the screen dim delay as originally configured. |
| 4488 | 4488 |
| 4489 If this policy is unset, a default scale factor is used. | 4489 If this policy is unset, a default scale factor is used. |
| 4490 | 4490 |
| 4491 The scale factor must be 100% or more.''', | 4491 The scale factor must be 100% or more.''', |
| 4492 }, | 4492 }, |
| 4493 ], | 4493 ], |
| 4494 }, | 4494 }, |
| 4495 { | 4495 { |
| 4496 # TODO(bartfab): Change the policy type to 'dict' once this is fully |
| 4497 # supported. http://crbug.com/258339 |
| 4498 'name': 'DeviceLoginScreenPowerManagement', |
| 4499 'type': 'string', |
| 4500 'schema': { 'type': 'string' }, |
| 4501 'supported_on': ['chrome_os:30-'], |
| 4502 'device_only': True, |
| 4503 'features': { |
| 4504 'dynamic_refresh': True, |
| 4505 }, |
| 4506 'example_value': '{ "AC": { "IdleAction": 3 }, "Battery": { "IdleAction":
3 } }', |
| 4507 'id': 224, |
| 4508 'caption': '''Power mangement on the login screen''', |
| 4509 'desc': '''Configure power management on the login screen in <ph name="PRO
DUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph>. |
| 4510 |
| 4511 This policy lets you configure how <ph name="PRODUCT_OS_NAME">$2<ex>Google
Chrome OS</ex></ph> behaves when there is no user activity for some amount of t
ime while the login screen is being shown. The policy controls multiple settings
. For their individual semantics and value ranges, see the corresponding policie
s that control power management within a session. The only deviations from these
policies are: |
| 4512 * The actions to take on idle or lid close cannot be to end the session. |
| 4513 * The default action taken on idle when running on AC power is to shut dow
n. |
| 4514 |
| 4515 The policy should be specified as a string that expresses the individual s
ettings in JSON format, conforming to the following schema: |
| 4516 { |
| 4517 "type": "object", |
| 4518 "properties": { |
| 4519 "AC": { |
| 4520 "type": "object", |
| 4521 "properties": { |
| 4522 "Delays": { |
| 4523 "type": "object", |
| 4524 "properties": { |
| 4525 "ScreenDim": { |
| 4526 "type": "integer", |
| 4527 "minimum": 0 |
| 4528 }, |
| 4529 "ScreenOff": { |
| 4530 "type": "integer", |
| 4531 "minimum": 0 |
| 4532 }, |
| 4533 "Idle": { |
| 4534 "type": "integer", |
| 4535 "minimum": 0 |
| 4536 } |
| 4537 } |
| 4538 }, |
| 4539 "IdleAction": { |
| 4540 "enum": [ "Suspend", "Shutdown", "DoNothing" ] |
| 4541 } |
| 4542 } |
| 4543 }, |
| 4544 "Battery": { |
| 4545 "type": "object", |
| 4546 "properties": { |
| 4547 "Delays": { |
| 4548 "type": "object", |
| 4549 "properties": { |
| 4550 "ScreenDim": { |
| 4551 "type": "integer", |
| 4552 "minimum": 0 |
| 4553 }, |
| 4554 "ScreenOff": { |
| 4555 "type": "integer", |
| 4556 "minimum": 0 |
| 4557 }, |
| 4558 "Idle": { |
| 4559 "type": "integer", |
| 4560 "minimum": 0 |
| 4561 } |
| 4562 } |
| 4563 }, |
| 4564 "IdleAction": { |
| 4565 "enum": [ "Suspend", "Shutdown", "DoNothing" ] |
| 4566 } |
| 4567 } |
| 4568 }, |
| 4569 "LidCloseAction": { |
| 4570 "enum": [ "Suspend", "Shutdown", "DoNothing" ] |
| 4571 }, |
| 4572 "UserActivityScreenDimDelayScale": { |
| 4573 "type": "integer", |
| 4574 "minimum": 100 |
| 4575 } |
| 4576 } |
| 4577 } |
| 4578 |
| 4579 If a setting is left unspecified, a default value is used. |
| 4580 |
| 4581 If this policy is unset, defaults are used for all settings.''', |
| 4582 }, |
| 4583 { |
| 4496 'name': 'DeviceAllowRedeemChromeOsRegistrationOffers', | 4584 'name': 'DeviceAllowRedeemChromeOsRegistrationOffers', |
| 4497 'type': 'main', | 4585 'type': 'main', |
| 4498 'schema': { 'type': 'boolean' }, | 4586 'schema': { 'type': 'boolean' }, |
| 4499 'supported_on': ['chrome_os:26-'], | 4587 'supported_on': ['chrome_os:26-'], |
| 4500 'device_only': True, | 4588 'device_only': True, |
| 4501 'features': { | 4589 'features': { |
| 4502 'dynamic_refresh': True, | 4590 'dynamic_refresh': True, |
| 4503 }, | 4591 }, |
| 4504 'example_value': True, | 4592 'example_value': True, |
| 4505 'id': 185, | 4593 'id': 185, |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5188 'desc': '''Text appended in parentheses to the policy name to indicate tha
t it has been deprecated''', | 5276 'desc': '''Text appended in parentheses to the policy name to indicate tha
t it has been deprecated''', |
| 5189 'text': 'deprecated', | 5277 'text': 'deprecated', |
| 5190 }, | 5278 }, |
| 5191 'doc_recommended': { | 5279 'doc_recommended': { |
| 5192 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', | 5280 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', |
| 5193 'text': 'Default Settings (users can override)', | 5281 'text': 'Default Settings (users can override)', |
| 5194 }, | 5282 }, |
| 5195 }, | 5283 }, |
| 5196 'placeholders': [], | 5284 'placeholders': [], |
| 5197 } | 5285 } |
| OLD | NEW |