Chromium Code Reviews| 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 'name': 'DeviceLoginScreenPowerManagement', | |
| 4497 'type': 'string', | |
| 4498 'schema': { 'type': 'string' }, | |
| 4499 'supported_on': ['chrome_os:30-'], | |
| 4500 'device_only': True, | |
| 4501 'features': { | |
| 4502 'dynamic_refresh': True, | |
| 4503 }, | |
| 4504 'example_value': '{ "AC": { "IdleAction": 3 }, "Battery": { "IdleAction": 3 } }', | |
| 4505 'id': 224, | |
| 4506 'caption': '''Power mangement on the login screen''', | |
| 4507 'desc': '''Configure power management on the login screen in <ph name="PRO DUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph>. | |
| 4508 | |
| 4509 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: | |
|
Mattias Nissler (ping if slow)
2013/07/08 17:36:57
Are we planning on redoing the session power polic
bartfab (slow)
2013/07/09 10:02:33
Yes, at that point, I will just consolidate the de
| |
| 4510 * The actions to take on idle or lid close cannot be to end the session. | |
| 4511 * The default action taken on idle when running on AC power is to shut dow n. | |
| 4512 | |
| 4513 The policy should be specified as a string that expresses the individual s ettings in JSON format, conforming to the following schema: | |
|
Mattias Nissler (ping if slow)
2013/07/08 17:36:57
Did you check with Joao what the story is on dicti
bartfab (slow)
2013/07/09 10:02:33
I added a TODO. And yes, I had checked with Joao.
| |
| 4514 { | |
| 4515 "type": "object", | |
| 4516 "properties": { | |
| 4517 "AC": { | |
| 4518 "type": "object", | |
| 4519 "properties": { | |
| 4520 "Delays": { | |
| 4521 "type": "object", | |
| 4522 "properties": { | |
| 4523 "ScreenDim": { | |
| 4524 "type": "integer", | |
| 4525 "minimum": 0 | |
| 4526 }, | |
| 4527 "ScreenOff": { | |
| 4528 "type": "integer", | |
| 4529 "minimum": 0 | |
| 4530 }, | |
| 4531 "Idle": { | |
| 4532 "type": "integer", | |
| 4533 "minimum": 0 | |
| 4534 } | |
| 4535 } | |
| 4536 }, | |
| 4537 "IdleAction": { | |
| 4538 "enum": [ 0, 2, 3 ] | |
|
Mattias Nissler (ping if slow)
2013/07/08 17:36:57
This seems unfortunate. Can we do a string enum in
bartfab (slow)
2013/07/09 10:02:33
Done.
| |
| 4539 } | |
| 4540 } | |
| 4541 }, | |
| 4542 "Battery": { | |
| 4543 "type": "object", | |
| 4544 "properties": { | |
| 4545 "Delays": { | |
| 4546 "type": "object", | |
| 4547 "properties": { | |
| 4548 "ScreenDim": { | |
| 4549 "type": "integer", | |
| 4550 "minimum": 0 | |
| 4551 }, | |
| 4552 "ScreenOff": { | |
| 4553 "type": "integer", | |
| 4554 "minimum": 0 | |
| 4555 }, | |
| 4556 "Idle": { | |
| 4557 "type": "integer", | |
| 4558 "minimum": 0 | |
| 4559 } | |
| 4560 } | |
| 4561 }, | |
| 4562 "IdleAction": { | |
| 4563 "enum": [ 0, 2, 3 ] | |
|
Mattias Nissler (ping if slow)
2013/07/08 17:36:57
ditto
bartfab (slow)
2013/07/09 10:02:33
Done.
| |
| 4564 } | |
| 4565 } | |
| 4566 }, | |
| 4567 "LidCloseAction": { | |
| 4568 "enum": [ 0, 2, 3 ] | |
|
Mattias Nissler (ping if slow)
2013/07/08 17:36:57
ditto
bartfab (slow)
2013/07/09 10:02:33
Done.
| |
| 4569 }, | |
| 4570 "UserActivityScreenDimDelayScale": { | |
| 4571 "type": "integer", | |
| 4572 "minimum": 0 | |
| 4573 } | |
| 4574 } | |
| 4575 } | |
| 4576 | |
| 4577 If a setting is left unspecified, a default value is used. | |
| 4578 | |
| 4579 If this policy is unset, defaults are used for all settings.''', | |
| 4580 }, | |
| 4581 { | |
| 4496 'name': 'DeviceAllowRedeemChromeOsRegistrationOffers', | 4582 'name': 'DeviceAllowRedeemChromeOsRegistrationOffers', |
| 4497 'type': 'main', | 4583 'type': 'main', |
| 4498 'schema': { 'type': 'boolean' }, | 4584 'schema': { 'type': 'boolean' }, |
| 4499 'supported_on': ['chrome_os:26-'], | 4585 'supported_on': ['chrome_os:26-'], |
| 4500 'device_only': True, | 4586 'device_only': True, |
| 4501 'features': { | 4587 'features': { |
| 4502 'dynamic_refresh': True, | 4588 'dynamic_refresh': True, |
| 4503 }, | 4589 }, |
| 4504 'example_value': True, | 4590 'example_value': True, |
| 4505 'id': 185, | 4591 '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''', | 5274 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', |
| 5189 'text': 'deprecated', | 5275 'text': 'deprecated', |
| 5190 }, | 5276 }, |
| 5191 'doc_recommended': { | 5277 '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''', | 5278 '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)', | 5279 'text': 'Default Settings (users can override)', |
| 5194 }, | 5280 }, |
| 5195 }, | 5281 }, |
| 5196 'placeholders': [], | 5282 'placeholders': [], |
| 5197 } | 5283 } |
| OLD | NEW |