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

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: Rebase 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
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',
Thiemo Nagel 2015/10/09 16:35:48 Why not just DefaultPrinterSelection?
Aleksey Shlyapnikov 2015/10/09 21:02:51 In most other places settings and switches for Pri
Thiemo Nagel 2015/10/12 19:10:09 I think dropping the PrintPreview is easier for us
Aleksey Shlyapnikov 2015/10/13 18:14:57 Done.
4114 'type': 'string',
4115 'schema': { 'type': 'string' },
4116 'supported_on': ['chrome.*:47-', 'chrome_os:47-'],
Thiemo Nagel 2015/10/09 16:35:48 47 has sailed. Please change to 48.
Aleksey Shlyapnikov 2015/10/09 21:02:51 Done.
4117 'features': {
4118 'dynamic_refresh': True,
4119 'per_profile': True,
4120 },
4121 'example_value': '{ "kind": "cloud", "namePattern": ".*Color" }',
Thiemo Nagel 2015/10/09 16:35:48 Please include an idPattern in the example, too.
Aleksey Shlyapnikov 2015/10/09 21:02:51 I'd imagine that in most cases you either match by
Thiemo Nagel 2015/10/12 19:10:09 I see. What is a printer id, anyways? I was expe
Aleksey Shlyapnikov 2015/10/13 18:14:57 It depends. For cloud printers that would be the c
Thiemo Nagel 2015/10/15 15:31:51 Thanks a lot for the explanation! Nit: Thinking a
Aleksey Shlyapnikov 2015/10/15 22:12:40 There're three fields and kind is always joined by
4122 'id': 308,
4123 'caption': '''Print Preview default printer selection policy''',
4124 'desc': '''Overrides <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> Print Preview default printer selection rules.
Thiemo Nagel 2015/10/09 16:35:48 How about: This policy determines the rules for s
Aleksey Shlyapnikov 2015/10/09 21:02:51 Done.
4125
4126 Default printer is selected by Print Preview when no printer was previousl y selected for the current profile.
4127
4128 When this policy is set, Print Preview will attempt to find a printer matc hing the specified attributes, printer type, printer id or name patterns, and se lect it as the current one.
Thiemo Nagel 2015/10/09 16:35:48 Please be more precise about how the final conditi
Aleksey Shlyapnikov 2015/10/09 21:02:51 It's "matching the _specified_ attributes", that i
4129
4130 If this policy is not set, Print Preview 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": {
Thiemo Nagel 2015/10/09 16:35:48 "kind" seems a bit non-descriptive, I think the te
Aleksey Shlyapnikov 2015/10/09 21:02:51 local includes, for example, printers provided by
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

Powered by Google App Engine
This is Rietveld 408576698