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

Side by Side Diff: components/policy/resources/policy_templates.json

Issue 1368013004: Define Print Preview default printer selection policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change policy caption Created 5 years, 2 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
« no previous file with comments | « chrome/test/data/webui/print_preview.js ('k') | tools/metrics/histograms/histograms.xml » ('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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 # templates and documentation. The policy definition list that Chrome sees 116 # templates and documentation. The policy definition list that Chrome sees
117 # will include policies marked with 'future'. If a WIP policy isn't meant to 117 # will include policies marked with 'future'. If a WIP policy isn't meant to
118 # be seen by the policy providers either, the 'supported_on' key should be set 118 # be seen by the policy providers either, the 'supported_on' key should be set
119 # to an empty list. 119 # to an empty list.
120 # 120 #
121 # IDs: 121 # IDs:
122 # Since a Protocol Buffer definition is generated from this file, unique and 122 # Since a Protocol Buffer definition is generated from this file, unique and
123 # persistent IDs for all fields (but not for groups!) are needed. These are 123 # persistent IDs for all fields (but not for groups!) are needed. These are
124 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 124 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
125 # because doing so would break the deployed wire format! 125 # because doing so would break the deployed wire format!
126 # For your editing convenience: highest ID currently used: 307 126 # For your editing convenience: highest ID currently used: 308
127 # 127 #
128 # Placeholders: 128 # Placeholders:
129 # The following placeholder strings are automatically substituted: 129 # The following placeholder strings are automatically substituted:
130 # $1 -> Google Chrome / Chromium 130 # $1 -> Google Chrome / Chromium
131 # $2 -> Google Chrome OS / Chromium OS 131 # $2 -> Google Chrome OS / Chromium OS
132 # $3 -> Google Chrome Frame / Chromium Frame 132 # $3 -> Google Chrome Frame / Chromium Frame
133 # $6 is reserved for doc_writer 133 # $6 is reserved for doc_writer
134 # 134 #
135 # Device Policy: 135 # Device Policy:
136 # An additional flag 'device_only' (optional, defaults to False) indicates 136 # An additional flag 'device_only' (optional, defaults to False) indicates
(...skipping 3966 matching lines...) Expand 10 before | Expand all | Expand 10 after
4103 'example_value': False, 4103 'example_value': False,
4104 'id': 117, 4104 'id': 117,
4105 'caption': '''Disable Print Preview (deprecated)''', 4105 'caption': '''Disable Print Preview (deprecated)''',
4106 'desc': '''Show the system print dialog instead of print preview. 4106 'desc': '''Show the system print dialog instead of print preview.
4107 4107
4108 When this setting is enabled, <ph name="PRODUCT_NAME">$1<ex>Google Chrome< /ex></ph> will open the system print dialog instead of the built-in print previe w when a user requests a page to be printed. 4108 When this setting is enabled, <ph name="PRODUCT_NAME">$1<ex>Google Chrome< /ex></ph> will open the system print dialog instead of the built-in print previe w when a user requests a page to be printed.
4109 4109
4110 If this policy is not set or is set to false, print commands trigger the p rint preview screen.''', 4110 If this policy is not set or is set to false, print commands trigger the p rint preview screen.''',
4111 }, 4111 },
4112 { 4112 {
4113 'name': 'PrintPreviewDefaultPrinterSelection',
4114 'type': 'string',
4115 'schema': { 'type': 'string' },
4116 'supported_on': ['chrome.*:48-', 'chrome_os:48-'],
4117 'features': {
4118 'dynamic_refresh': True,
4119 'per_profile': True,
4120 },
4121 'example_value': '{ "kind": "cloud", "idPattern": ".*public", "namePattern ": ".*Color" }',
4122 'id': 308,
4123 'caption': '''Default printer selection rules''',
4124 'desc': '''Overrides <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> default printer selection rules.
4125
4126 This policy determines the rules for selecting the default printer in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> which happens the first time t he print function is used with a profile.
4127
4128 When this policy is set, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex>< /ph> will attempt to find a printer matching the specified attributes, printer t ype, printer id and name pattern, and select it as default printer.
Thiemo Nagel 2015/10/12 19:10:09 I think this would be clearer if the attributes we
Aleksey Shlyapnikov 2015/10/13 18:14:57 Thank you for pointing that out, mentioned these c
4129
4130 If this policy is not set, the printer defaults to built-in PDF printer or no printer selected, when PDF printer is not available.
4131
4132 The value is parsed as JSON object, conforming to the following schema:
4133 {
4134 "type": "object",
4135 "properties": {
4136 "kind": {
4137 "description": "Whether to limit the search of the matching printer to a specific set of printers.",
4138 "type": {
4139 "enum": [ "local", "cloud" ]
4140 }
4141 },
4142 "idPattern": {
4143 "description": "Regular expression to match printer id.",
4144 "type": "string"
4145 },
4146 "namePattern": {
4147 "description": "Regular expression to match printer display name.",
4148 "type": "string"
4149 }
4150 }
4151 }
4152
4153 Printers connected to Google Cloud Print are considered "cloud", the rest of the printers are classified as "local".
4154 Omitting a field means all values match, for example, not specifying conne ctivity will cause Print Preview to initiate the discovery of all kinds of print ers, local and cloud.
4155 Regular expression patterns are case sensistive.''',
4156 },
4157 {
4113 'name': 'DisableSSLRecordSplitting', 4158 'name': 'DisableSSLRecordSplitting',
4114 'type': 'main', 4159 'type': 'main',
4115 'schema': { 'type': 'boolean' }, 4160 'schema': { 'type': 'boolean' },
4116 'supported_on': ['chrome.*:18-', 'chrome_os:18-'], 4161 'supported_on': ['chrome.*:18-', 'chrome_os:18-'],
4117 'features': { 4162 'features': {
4118 'dynamic_refresh': True, 4163 'dynamic_refresh': True,
4119 'per_profile': False, 4164 'per_profile': False,
4120 }, 4165 },
4121 'example_value': True, 4166 'example_value': True,
4122 'id': 118, 4167 'id': 118,
(...skipping 3518 matching lines...) Expand 10 before | Expand all | Expand 10 after
7641 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 7686 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
7642 'text': 'Default Settings (users can override)', 7687 'text': 'Default Settings (users can override)',
7643 }, 7688 },
7644 'doc_complex_policies_on_windows': { 7689 'doc_complex_policies_on_windows': {
7645 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 7690 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
7646 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '', 7691 'text': '''encoded as a JSON string, for details see <ph name="COMPLEX_POL ICIES_URL">https://www.chromium.org/administrators/complex-policies-on-windows<e x>https://www.chromium.org/administrators/complex-policies-on-windows</ex></ph>' '',
7647 }, 7692 },
7648 }, 7693 },
7649 'placeholders': [], 7694 'placeholders': [],
7650 } 7695 }
OLDNEW
« no previous file with comments | « chrome/test/data/webui/print_preview.js ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698