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

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: Add tags to DefaultPrinterSelection policy. 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 # templates and documentation. The policy definition list that Chrome sees 127 # templates and documentation. The policy definition list that Chrome sees
128 # will include policies marked with 'future'. If a WIP policy isn't meant to 128 # will include policies marked with 'future'. If a WIP policy isn't meant to
129 # be seen by the policy providers either, the 'supported_on' key should be set 129 # be seen by the policy providers either, the 'supported_on' key should be set
130 # to an empty list. 130 # to an empty list.
131 # 131 #
132 # IDs: 132 # IDs:
133 # Since a Protocol Buffer definition is generated from this file, unique and 133 # Since a Protocol Buffer definition is generated from this file, unique and
134 # persistent IDs for all fields (but not for groups!) are needed. These are 134 # persistent IDs for all fields (but not for groups!) are needed. These are
135 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs, 135 # specified by the 'id' keys of each policy. NEVER CHANGE EXISTING IDs,
136 # because doing so would break the deployed wire format! 136 # because doing so would break the deployed wire format!
137 # For your editing convenience: highest ID currently used: 307 137 # For your editing convenience: highest ID currently used: 308
138 # 138 #
139 # Placeholders: 139 # Placeholders:
140 # The following placeholder strings are automatically substituted: 140 # The following placeholder strings are automatically substituted:
141 # $1 -> Google Chrome / Chromium 141 # $1 -> Google Chrome / Chromium
142 # $2 -> Google Chrome OS / Chromium OS 142 # $2 -> Google Chrome OS / Chromium OS
143 # $3 -> Google Chrome Frame / Chromium Frame 143 # $3 -> Google Chrome Frame / Chromium Frame
144 # $6 is reserved for doc_writer 144 # $6 is reserved for doc_writer
145 # 145 #
146 # Device Policy: 146 # Device Policy:
147 # An additional flag 'device_only' (optional, defaults to False) indicates 147 # An additional flag 'device_only' (optional, defaults to False) indicates
(...skipping 4185 matching lines...) Expand 10 before | Expand all | Expand 10 after
4333 'id': 117, 4333 'id': 117,
4334 'caption': '''Disable Print Preview (deprecated)''', 4334 'caption': '''Disable Print Preview (deprecated)''',
4335 'tags': [], 4335 'tags': [],
4336 'desc': '''Show the system print dialog instead of print preview. 4336 'desc': '''Show the system print dialog instead of print preview.
4337 4337
4338 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. 4338 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.
4339 4339
4340 If this policy is not set or is set to false, print commands trigger the p rint preview screen.''', 4340 If this policy is not set or is set to false, print commands trigger the p rint preview screen.''',
4341 }, 4341 },
4342 { 4342 {
4343 'name': 'DefaultPrinterSelection',
4344 'type': 'string',
4345 'schema': { 'type': 'string' },
4346 'supported_on': ['chrome.*:48-', 'chrome_os:48-'],
4347 'features': {
4348 'dynamic_refresh': True,
4349 'per_profile': True,
4350 },
4351 'example_value': '{ "kind": "cloud", "idPattern": ".*public", "namePattern ": ".*Color" }',
4352 'id': 308,
4353 'caption': '''Default printer selection rules''',
4354 'tags': [],
4355 'desc': '''Overrides <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> default printer selection rules.
4356
4357 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.
4358
4359 When this policy is set, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex>< /ph> will attempt to find a printer matching all of the specified attributes, an d select it as default printer. The first printer found matching the policy is s elected, in case of non-unique match any matching printer can be selected, depen ding on the order printers are discovered.
4360
4361 If this policy is not set or matching printer is not found within the time out, the printer defaults to built-in PDF printer or no printer selected, when P DF printer is not available.
4362
4363 The value is parsed as JSON object, conforming to the following schema:
4364 {
4365 "type": "object",
4366 "properties": {
4367 "kind": {
4368 "description": "Whether to limit the search of the matching printer to a specific set of printers.",
4369 "type": {
4370 "enum": [ "local", "cloud" ]
4371 }
4372 },
4373 "idPattern": {
4374 "description": "Regular expression to match printer id.",
4375 "type": "string"
4376 },
4377 "namePattern": {
4378 "description": "Regular expression to match printer display name.",
4379 "type": "string"
4380 }
4381 }
4382 }
4383
4384 Printers connected to Google Cloud Print are considered "cloud", the rest of the printers are classified as "local".
4385 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.
4386 Regular expression patterns must follow the JavaScript RegExp syntax and m atches are case sensistive.''',
4387 },
4388 {
4343 'name': 'DisableSSLRecordSplitting', 4389 'name': 'DisableSSLRecordSplitting',
4344 'type': 'main', 4390 'type': 'main',
4345 'schema': { 'type': 'boolean' }, 4391 'schema': { 'type': 'boolean' },
4346 'supported_on': ['chrome.*:18-46', 'chrome_os:18-46'], 4392 'supported_on': ['chrome.*:18-46', 'chrome_os:18-46'],
4347 'features': { 4393 'features': {
4348 'dynamic_refresh': True, 4394 'dynamic_refresh': True,
4349 'per_profile': False, 4395 'per_profile': False,
4350 }, 4396 },
4351 'example_value': True, 4397 'example_value': True,
4352 'id': 118, 4398 'id': 118,
(...skipping 3671 matching lines...) Expand 10 before | Expand all | Expand 10 after
8024 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 8070 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
8025 'text': 'Default Settings (users can override)', 8071 'text': 'Default Settings (users can override)',
8026 }, 8072 },
8027 'doc_complex_policies_on_windows': { 8073 'doc_complex_policies_on_windows': {
8028 'desc': '''Text pointing the user to a help article for complex policies o n Windows''', 8074 'desc': '''Text pointing the user to a help article for complex policies o n Windows''',
8029 '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>' '', 8075 '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>' '',
8030 }, 8076 },
8031 }, 8077 },
8032 'placeholders': [], 8078 'placeholders': [],
8033 } 8079 }
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