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

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

Issue 18153007: Add policies to control power management on the Chrome OS login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit addressed. Created 7 years, 5 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: 222 115 # For your editing convenience: highest ID currently used: 232
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
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': 'group',
4498 'caption': '''Power mangement on the login screen''',
4499 'desc': '''Configure power management on the login screen in <ph name="PRO DUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph>.
4500
4501 These policies let you configure how <ph name="PRODUCT_OS_NAME">$2<ex>Goog le Chrome OS</ex></ph> behaves when there is no user activity for some amount of time while the login screen is being shown.''',
4502 'policies': [
4503 {
4504 'name': 'DeviceLoginScreenScreenDimDelayAC',
4505 'type': 'int',
4506 'schema': { 'type': 'integer' },
4507 'supported_on': ['chrome_os:30-'],
4508 'device_only': True,
4509 'features': {
4510 'dynamic_refresh': True,
4511 },
4512 'example_value': 420000,
4513 'id': 223,
4514 'caption': '''Screen dim delay on the login screen when running on AC power''',
4515 'desc': '''Specifies the length of time without user activity after wh ich the screen is dimmed when the login screen is being shown and the device is running on AC power.
4516
4517 When this policy is set to a value greater than zero, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2< ex>Google Chrome OS</ex></ph> dims the screen when the login screen is being sho wn.
4518
4519 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 even if there is no user activity for a prolonged time.
4520
4521 When this policy is unset, a default length of time is used.
4522
4523 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.''' ,
4524 },
4525 {
4526 'name': 'DeviceLoginScreenScreenOffDelayAC',
4527 'type': 'int',
4528 'schema': { 'type': 'integer' },
4529 'supported_on': ['chrome_os:30-'],
4530 'device_only': True,
4531 'features': {
4532 'dynamic_refresh': True,
4533 },
4534 'example_value': 480000,
4535 'id': 224,
4536 'caption': '''Screen off delay on the login screen when running on AC power''',
4537 'desc': '''Specifies the length of time without user activity after wh ich the screen is turned off when the login screen is being shown and the device is running on AC power.
4538
4539 When this policy is set to a value greater than zero, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2< ex>Google Chrome OS</ex></ph> turns off the screen when the login screen is bein g shown.
4540
4541 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 even if there is no user act ivity for a prolonged time.
4542
4543 When this policy is unset, a default length of time is used.
4544
4545 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
4546 },
4547 {
4548 'name': 'DeviceLoginScreenIdleDelayAC',
4549 'type': 'int',
4550 'schema': { 'type': 'integer' },
4551 'supported_on': ['chrome_os:30-'],
4552 'device_only': True,
4553 'features': {
4554 'dynamic_refresh': True,
4555 },
4556 'example_value': 1800000,
4557 'id': 225,
4558 'caption': '''Idle delay on the login screen when running on AC power' '',
4559 'desc': '''Specifies the length of time without user activity after wh ich the idle action is taken when the login screen is being shown and the device is running on AC power.
4560
4561 When this policy is set, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> takes the idle action, which can be configured separately, when the login scree n is being shown.
4562
4563 When this policy is unset, a default length of time is used.
4564
4565 The policy value should be specified in milliseconds.''',
4566 },
4567 {
4568 'name': 'DeviceLoginScreenScreenDimDelayBattery',
4569 'type': 'int',
4570 'schema': { 'type': 'integer' },
4571 'supported_on': ['chrome_os:30-'],
4572 'device_only': True,
4573 'features': {
4574 'dynamic_refresh': True,
4575 },
4576 'example_value': 300000,
4577 'id': 226,
4578 'caption': '''Screen dim delay on the login screen when running on bat tery power''',
4579 'desc': '''Specifies the length of time without user activity after wh ich the screen is dimmed when the login screen is being shown and the device is running on battery power.
4580
4581 When this policy is set to a value greater than zero, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2< ex>Google Chrome OS</ex></ph> dims the screen when the login screen is being sho wn.
4582
4583 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 even if there is no user activity for a prolonged time.
4584
4585 When this policy is unset, a default length of time is used.
4586
4587 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.''' ,
4588 },
4589 {
4590 'name': 'DeviceLoginScreenScreenOffDelayBattery',
4591 'type': 'int',
4592 'schema': { 'type': 'integer' },
4593 'supported_on': ['chrome_os:30-'],
4594 'device_only': True,
4595 'features': {
4596 'dynamic_refresh': True,
4597 },
4598 'example_value': 360000,
4599 'id': 227,
4600 'caption': '''Screen off delay on the login screen when running on bat tery power''',
4601 'desc': '''Specifies the length of time without user activity after wh ich the screen is turned off when the login screen is being shown and the device is running on battery power.
4602
4603 When this policy is set to a value greater than zero, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2< ex>Google Chrome OS</ex></ph> turns off the screen when the login screen is bein g shown.
4604
4605 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 even if there is no user act ivity for a prolonged time.
4606
4607 When this policy is unset, a default length of time is used.
4608
4609 The policy value should be specified in milliseconds. Values are clamp ed to be less than or equal the idle delay.''',
4610 },
4611 {
4612 'name': 'DeviceLoginScreenIdleDelayBattery',
4613 'type': 'int',
4614 'schema': { 'type': 'integer' },
4615 'supported_on': ['chrome_os:30-'],
4616 'device_only': True,
4617 'features': {
4618 'dynamic_refresh': True,
4619 },
4620 'example_value': 600000,
4621 'id': 228,
4622 'caption': '''Idle delay on the login screen when running on battery p ower''',
4623 'desc': '''Specifies the length of time without user activity after wh ich the idle action is taken when the login screen is being shown and the device is running on battery power.
4624
4625 When this policy is set, it specifies the length of time without user activity after which <ph name="PRODUCT_OS_NAME">$2<ex>Google Chrome OS</ex></ph> takes the idle action, which can be configured separately, when the login scree n is being shown.
4626
4627 When this policy is unset, a default length of time is used.
4628
4629 The policy value should be specified in milliseconds.''',
4630 },
4631 {
4632 'name': 'DeviceLoginScreenIdleActionAC',
4633 'type': 'int-enum',
4634 'schema': {
4635 'type': 'integer',
4636 'enum': [ 0, 2, 3 ],
4637 },
4638 'items': [
4639 {
4640 'name': 'IdleActionSuspend',
4641 'value': 0,
4642 'caption': '''Suspend''',
4643 },
4644 {
4645 'name': 'IdleActionShutdown',
4646 'value': 2,
4647 'caption': '''Shut down''',
4648 },
4649 {
4650 'name': 'IdleActionDoNothing',
4651 'value': 3,
4652 'caption': '''Do nothing''',
4653 },
4654 ],
4655 'supported_on': ['chrome_os:30-'],
4656 'device_only': True,
4657 'features': {
4658 'dynamic_refresh': True,
4659 },
4660 'example_value': 0,
4661 'id': 229,
4662 'caption': '''Action to take when the idle delay is reached on the log in screen while running on AC power''',
4663 'desc': '''Specifies the action to take when the idle delay is reached while the login screen is being shown and the device is running on AC power.
4664
4665 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 login screen is being shown and there is no user activity for the length of time given by the idle de lay, which can be configured separately.
4666
4667 When this policy is unset, the default action is taken, which is suspe nd.''',
4668 },
4669 {
4670 'name': 'DeviceLoginScreenIdleActionBattery',
4671 'type': 'int-enum',
4672 'schema': {
4673 'type': 'integer',
4674 'enum': [ 0, 2, 3 ],
4675 },
4676 'items': [
4677 {
4678 'name': 'IdleActionSuspend',
4679 'value': 0,
4680 'caption': '''Suspend''',
4681 },
4682 {
4683 'name': 'IdleActionShutdown',
4684 'value': 2,
4685 'caption': '''Shut down''',
4686 },
4687 {
4688 'name': 'IdleActionDoNothing',
4689 'value': 3,
4690 'caption': '''Do nothing''',
4691 },
4692 ],
4693 'supported_on': ['chrome_os:30-'],
4694 'device_only': True,
4695 'features': {
4696 'dynamic_refresh': True,
4697 },
4698 'example_value': 0,
4699 'id': 230,
4700 'caption': '''Action to take when the idle delay is reached on the log in screen while running on battery power''',
4701 'desc': '''Specifies the action to take when the idle delay is reached while the login screen is being shown and the device is running on battery powe r.
4702
4703 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 login screen is being shown and there is no user activity for the length of time given by the idle de lay, which can be configured separately.
4704
4705 When this policy is unset, the default action is taken, which is shut down.''',
4706 },
4707 {
4708 'name': 'DeviceLoginScreenLidCloseAction',
4709 'type': 'int-enum',
4710 'schema': {
4711 'type': 'integer',
4712 'enum': [ 0, 2, 3 ],
4713 },
4714 'items': [
4715 {
4716 'name': 'LidCloseActionSuspend',
4717 'value': 0,
4718 'caption': '''Suspend''',
4719 },
4720 {
4721 'name': 'LidCloseActionShutdown',
4722 'value': 2,
4723 'caption': '''Shut down''',
4724 },
4725 {
4726 'name': 'LidCloseActionDoNothing',
4727 'value': 3,
4728 'caption': '''Do nothing''',
4729 },
4730 ],
4731 'supported_on': ['chrome_os:30-'],
4732 'device_only': True,
4733 'features': {
4734 'dynamic_refresh': True,
4735 },
4736 'example_value': 0,
4737 'id': 231,
4738 'caption': '''Action to take when the user closes the lid on the login screen''',
4739 'desc': '''Specifies the action to take when the user closes the lid w hile the login screen is being shown.
4740
4741 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 login screen is being shown and the user closes the device's lid.
4742
4743 When this policy is unset, the default action is taken, which is shut down.''',
4744 },
4745 {
4746 'name': 'DeviceLoginScreenUserActivityScreenDimDelayScale',
4747 'type': 'int',
4748 'schema': { 'type': 'integer' },
4749 'supported_on': ['chrome_os:30-'],
4750 'device_only': True,
4751 'features': {
4752 'dynamic_refresh': True,
4753 },
4754 'example_value': 200,
4755 'id': 232,
4756 'caption': '''Percentage by which to scale the screen dim delay on the login screen if the user becomes active after dimming''',
4757 'desc': '''Specifies the percentage by which the screen dim delay is s caled when user activity is observed while the screen is dimmed or soon after th e screen has been turned off while the login screen is being shown.
4758
4759 If this policy is set, it specifies the percentage by which the screen dim delay is scaled when the login screen is being shown and user activity is o bserved while the screen is dimmed or soon after the screen has been turned off. When the dim delay is scaled, the screen off, screen lock and idle delays get a djusted to maintain the same distances from the screen dim delay as originally c onfigured.
4760
4761 If this policy is unset, a default scale factor is used.
4762
4763 The scale factor must be 100% or more.''',
4764 },
4765 ],
4766 },
4767 {
4496 'name': 'DeviceAllowRedeemChromeOsRegistrationOffers', 4768 'name': 'DeviceAllowRedeemChromeOsRegistrationOffers',
4497 'type': 'main', 4769 'type': 'main',
4498 'schema': { 'type': 'boolean' }, 4770 'schema': { 'type': 'boolean' },
4499 'supported_on': ['chrome_os:26-'], 4771 'supported_on': ['chrome_os:26-'],
4500 'device_only': True, 4772 'device_only': True,
4501 'features': { 4773 'features': {
4502 'dynamic_refresh': True, 4774 'dynamic_refresh': True,
4503 }, 4775 },
4504 'example_value': True, 4776 'example_value': True,
4505 'id': 185, 4777 'id': 185,
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
5172 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 5444 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
5173 'text': 'deprecated', 5445 'text': 'deprecated',
5174 }, 5446 },
5175 'doc_recommended': { 5447 'doc_recommended': {
5176 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 5448 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
5177 'text': 'Default Settings (users can override)', 5449 'text': 'Default Settings (users can override)',
5178 }, 5450 },
5179 }, 5451 },
5180 'placeholders': [], 5452 'placeholders': [],
5181 } 5453 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698