| 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: 224 | 115 # For your editing convenience: highest ID currently used: 225 |
| 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 4376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4502 | 4502 |
| 4503 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. | 4503 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. |
| 4504 | 4504 |
| 4505 If this policy is unset, a default scale factor is used. | 4505 If this policy is unset, a default scale factor is used. |
| 4506 | 4506 |
| 4507 The scale factor must be 100% or more.''', | 4507 The scale factor must be 100% or more.''', |
| 4508 }, | 4508 }, |
| 4509 ], | 4509 ], |
| 4510 }, | 4510 }, |
| 4511 { | 4511 { |
| 4512 # TODO(bartfab): Change the policy type to 'dict' once this is fully |
| 4513 # supported. http://crbug.com/258339 |
| 4514 'name': 'DeviceLoginScreenPowerManagement', |
| 4515 'type': 'string', |
| 4516 'schema': { 'type': 'string' }, |
| 4517 'supported_on': ['chrome_os:30-'], |
| 4518 'device_only': True, |
| 4519 'features': { |
| 4520 'dynamic_refresh': True, |
| 4521 }, |
| 4522 'example_value': '{ "AC": { "IdleAction": "DoNothing" }, "Battery": { "Idl
eAction": "DoNothing" } }', |
| 4523 'id': 225, |
| 4524 'caption': '''Power mangement on the login screen''', |
| 4525 'desc': '''Configure power management on the login screen in <ph name="PRO
DUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph>. |
| 4526 |
| 4527 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: |
| 4528 * The actions to take on idle or lid close cannot be to end the session. |
| 4529 * The default action taken on idle when running on AC power is to shut dow
n. |
| 4530 |
| 4531 The policy should be specified as a string that expresses the individual s
ettings in JSON format, conforming to the following schema: |
| 4532 { |
| 4533 "type": "object", |
| 4534 "properties": { |
| 4535 "AC": { |
| 4536 "description": "Power management settings applicable only when runni
ng on AC power", |
| 4537 "type": "object", |
| 4538 "properties": { |
| 4539 "Delays": { |
| 4540 "type": "object", |
| 4541 "properties": { |
| 4542 "ScreenDim": { |
| 4543 "description": "The length of time without user input after
which the screen is dimmed, in milliseconds", |
| 4544 "type": "integer", |
| 4545 "minimum": 0 |
| 4546 }, |
| 4547 "ScreenOff": { |
| 4548 "description": "The length of time without user input after
which the screen is turned off, in milliseconds", |
| 4549 "type": "integer", |
| 4550 "minimum": 0 |
| 4551 }, |
| 4552 "Idle": { |
| 4553 "description": "The length of time without user input after
which the idle action is taken, in milliseconds", |
| 4554 "type": "integer", |
| 4555 "minimum": 0 |
| 4556 } |
| 4557 } |
| 4558 }, |
| 4559 "IdleAction": { |
| 4560 "description": "Action to take when the idle delay is reached", |
| 4561 "enum": [ "Suspend", "Shutdown", "DoNothing" ] |
| 4562 } |
| 4563 } |
| 4564 }, |
| 4565 "Battery": { |
| 4566 "description": "Power management settings applicable only when runni
ng on battery power", |
| 4567 "type": "object", |
| 4568 "properties": { |
| 4569 "Delays": { |
| 4570 "type": "object", |
| 4571 "properties": { |
| 4572 "ScreenDim": { |
| 4573 "description": "The length of time without user input after
which the screen is dimmed, in milliseconds", |
| 4574 "type": "integer", |
| 4575 "minimum": 0 |
| 4576 }, |
| 4577 "ScreenOff": { |
| 4578 "description": "The length of time without user input after
which the screen is turned off, in milliseconds", |
| 4579 "type": "integer", |
| 4580 "minimum": 0 |
| 4581 }, |
| 4582 "Idle": { |
| 4583 "description": "The length of time without user input after
which the idle action is taken, in milliseconds", |
| 4584 "type": "integer", |
| 4585 "minimum": 0 |
| 4586 } |
| 4587 } |
| 4588 }, |
| 4589 "IdleAction": { |
| 4590 "description": "Action to take when the idle delay is reached", |
| 4591 "enum": [ "Suspend", "Shutdown", "DoNothing" ] |
| 4592 } |
| 4593 } |
| 4594 }, |
| 4595 "LidCloseAction": { |
| 4596 "description": "Action to take when the lid is closed", |
| 4597 "enum": [ "Suspend", "Shutdown", "DoNothing" ] |
| 4598 }, |
| 4599 "UserActivityScreenDimDelayScale": { |
| 4600 "description": "Percentage by which the screen dim delay is scaled w
hen user activity is observed while the screen is dimmed or soon after the scree
n has been turned off", |
| 4601 "type": "integer", |
| 4602 "minimum": 100 |
| 4603 } |
| 4604 } |
| 4605 } |
| 4606 |
| 4607 If a setting is left unspecified, a default value is used. |
| 4608 |
| 4609 If this policy is unset, defaults are used for all settings.''', |
| 4610 }, |
| 4611 { |
| 4512 'name': 'DeviceAllowRedeemChromeOsRegistrationOffers', | 4612 'name': 'DeviceAllowRedeemChromeOsRegistrationOffers', |
| 4513 'type': 'main', | 4613 'type': 'main', |
| 4514 'schema': { 'type': 'boolean' }, | 4614 'schema': { 'type': 'boolean' }, |
| 4515 'supported_on': ['chrome_os:26-'], | 4615 'supported_on': ['chrome_os:26-'], |
| 4516 'device_only': True, | 4616 'device_only': True, |
| 4517 'features': { | 4617 'features': { |
| 4518 'dynamic_refresh': True, | 4618 'dynamic_refresh': True, |
| 4519 }, | 4619 }, |
| 4520 'example_value': True, | 4620 'example_value': True, |
| 4521 'id': 185, | 4621 'id': 185, |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5204 'desc': '''Text appended in parentheses to the policy name to indicate tha
t it has been deprecated''', | 5304 'desc': '''Text appended in parentheses to the policy name to indicate tha
t it has been deprecated''', |
| 5205 'text': 'deprecated', | 5305 'text': 'deprecated', |
| 5206 }, | 5306 }, |
| 5207 'doc_recommended': { | 5307 'doc_recommended': { |
| 5208 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', | 5308 'desc': '''Text appended in parentheses next to the policies top-level con
tainer to indicate that those policies are of the Recommended level''', |
| 5209 'text': 'Default Settings (users can override)', | 5309 'text': 'Default Settings (users can override)', |
| 5210 }, | 5310 }, |
| 5211 }, | 5311 }, |
| 5212 'placeholders': [], | 5312 'placeholders': [], |
| 5213 } | 5313 } |
| OLD | NEW |