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

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

Issue 228423002: Add $ref support to policy schema (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@policy-schema-regex
Patch Set: fixes Created 6 years, 8 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 5268 matching lines...) Expand 10 before | Expand all | Expand 10 after
5279 }, 5279 },
5280 { 5280 {
5281 'name': 'PowerManagementIdleSettings', 5281 'name': 'PowerManagementIdleSettings',
5282 'type': 'dict', 5282 'type': 'dict',
5283 'schema': { 5283 'schema': {
5284 'type': 'object', 5284 'type': 'object',
5285 'properties': { 5285 'properties': {
5286 'AC': { 5286 'AC': {
5287 'description': 'Delays and actions to take when the device is id le and running on AC power', 5287 'description': 'Delays and actions to take when the device is id le and running on AC power',
5288 'type': 'object', 5288 'type': 'object',
5289 'id': 'PowerManagementDelays',
5289 'properties': { 5290 'properties': {
5290 'Delays': { 5291 'Delays': {
5291 'type': 'object', 5292 'type': 'object',
5292 'properties': { 5293 'properties': {
5293 'ScreenDim': { 5294 'ScreenDim': {
5294 'description': 'The length of time without user input af ter which the screen is dimmed, in milliseconds', 5295 'description': 'The length of time without user input af ter which the screen is dimmed, in milliseconds',
5295 'type': 'integer', 5296 'type': 'integer',
5296 'minimum': 0 5297 'minimum': 0
5297 }, 5298 },
5298 'ScreenOff': { 5299 'ScreenOff': {
(...skipping 15 matching lines...) Expand all
5314 }, 5315 },
5315 'IdleAction': { 5316 'IdleAction': {
5316 'description': 'Action to take when the idle delay is reache d', 5317 'description': 'Action to take when the idle delay is reache d',
5317 'type': 'string', 5318 'type': 'string',
5318 'enum': [ 'Suspend', 'Logout', 'Shutdown', 'DoNothing' ] 5319 'enum': [ 'Suspend', 'Logout', 'Shutdown', 'DoNothing' ]
5319 } 5320 }
5320 } 5321 }
5321 }, 5322 },
5322 'Battery': { 5323 'Battery': {
5323 'description': 'Delays and actions to take when the device is id le and running on battery', 5324 'description': 'Delays and actions to take when the device is id le and running on battery',
5324 'type': 'object', 5325 '$ref': 'PowerManagementDelays'
5325 # TODO(binjin): Use $ref placeholder here once generated policy 5326 }
5326 # constants get full support of it. http://crbug.com/347082
5327 'properties': {
5328 'Delays': {
5329 'type': 'object',
5330 'properties': {
5331 'ScreenDim': {
5332 'description': 'The length of time without user input af ter which the screen is dimmed, in milliseconds',
5333 'type': 'integer',
5334 'minimum': 0
5335 },
5336 'ScreenOff': {
5337 'description': 'The length of time without user input af ter which the screen is turned off, in milliseconds',
5338 'type': 'integer',
5339 'minimum': 0
5340 },
5341 'IdleWarning': {
5342 'description': 'The length of time without user input af ter which a warning dialog is shown, in milliseconds',
5343 'type': 'integer',
5344 'minimum': 0
5345 },
5346 'Idle': {
5347 'description': 'The length of time without user input af ter which the idle action is taken, in milliseconds',
5348 'type': 'integer',
5349 'minimum': 0
5350 }
5351 }
5352 },
5353 'IdleAction': {
5354 'description': 'Action to take when the idle delay is reache d',
5355 'type': 'string',
5356 'enum': [ 'Suspend', 'Logout', 'Shutdown', 'DoNothing' ]
5357 }
5358 }
5359 },
5360 } 5327 }
5361 }, 5328 },
5362 'supported_on': ['chrome_os:35-'], 5329 'supported_on': ['chrome_os:35-'],
5363 'features': { 5330 'features': {
5364 'dynamic_refresh': True, 5331 'dynamic_refresh': True,
5365 'per_profile': False, 5332 'per_profile': False,
5366 }, 5333 },
5367 'example_value': { 5334 'example_value': {
5368 'AC': { 5335 'AC': {
5369 'IdleAction': 'DoNothing' 5336 'IdleAction': 'DoNothing'
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
5446 }, 5413 },
5447 { 5414 {
5448 'name': 'DeviceLoginScreenPowerManagement', 5415 'name': 'DeviceLoginScreenPowerManagement',
5449 'type': 'dict', 5416 'type': 'dict',
5450 'schema': { 5417 'schema': {
5451 'type': 'object', 5418 'type': 'object',
5452 'properties': { 5419 'properties': {
5453 'AC': { 5420 'AC': {
5454 'description': 'Power management settings applicable only when runni ng on AC power', 5421 'description': 'Power management settings applicable only when runni ng on AC power',
5455 'type': 'object', 5422 'type': 'object',
5423 'id': 'DeviceLoginScreenPowerSettings',
5456 'properties': { 5424 'properties': {
5457 'Delays': { 5425 'Delays': {
5458 'type': 'object', 5426 'type': 'object',
5459 'properties': { 5427 'properties': {
5460 'ScreenDim': { 5428 'ScreenDim': {
5461 'description': 'The length of time without user input after which the screen is dimmed, in milliseconds', 5429 'description': 'The length of time without user input after which the screen is dimmed, in milliseconds',
5462 'type': 'integer', 5430 'type': 'integer',
5463 'minimum': 0 5431 'minimum': 0
5464 }, 5432 },
5465 'ScreenOff': { 5433 'ScreenOff': {
(...skipping 10 matching lines...) Expand all
5476 }, 5444 },
5477 'IdleAction': { 5445 'IdleAction': {
5478 'description': 'Action to take when the idle delay is reached', 5446 'description': 'Action to take when the idle delay is reached',
5479 'type': 'string', 5447 'type': 'string',
5480 'enum': [ 'Suspend', 'Shutdown', 'DoNothing' ] 5448 'enum': [ 'Suspend', 'Shutdown', 'DoNothing' ]
5481 } 5449 }
5482 } 5450 }
5483 }, 5451 },
5484 'Battery': { 5452 'Battery': {
5485 'description': 'Power management settings applicable only when runni ng on battery power', 5453 'description': 'Power management settings applicable only when runni ng on battery power',
5486 'type': 'object', 5454 '$ref': 'DeviceLoginScreenPowerSettings'
5487 'properties': {
5488 'Delays': {
5489 'type': 'object',
5490 'properties': {
5491 'ScreenDim': {
5492 'description': 'The length of time without user input after which the screen is dimmed, in milliseconds',
5493 'type': 'integer',
5494 'minimum': 0
5495 },
5496 'ScreenOff': {
5497 'description': 'The length of time without user input after which the screen is turned off, in milliseconds',
5498 'type': 'integer',
5499 'minimum': 0
5500 },
5501 'Idle': {
5502 'description': 'The length of time without user input after which the idle action is taken, in milliseconds',
5503 'type': 'integer',
5504 'minimum': 0
5505 }
5506 }
5507 },
5508 'IdleAction': {
5509 'description': 'Action to take when the idle delay is reached',
5510 'type': 'string',
5511 'enum': [ 'Suspend', 'Shutdown', 'DoNothing' ]
5512 }
5513 }
5514 }, 5455 },
5515 'LidCloseAction': { 5456 'LidCloseAction': {
5516 'description': 'Action to take when the lid is closed', 5457 'description': 'Action to take when the lid is closed',
5517 'type': 'string', 5458 'type': 'string',
5518 'enum': [ 'Suspend', 'Shutdown', 'DoNothing' ] 5459 'enum': [ 'Suspend', 'Shutdown', 'DoNothing' ]
5519 }, 5460 },
5520 'UserActivityScreenDimDelayScale': { 5461 'UserActivityScreenDimDelayScale': {
5521 'description': 'Percentage by which the screen dim delay is scaled w hen user activity is observed while the screen is dimmed or soon after the scree n has been turned off', 5462 'description': 'Percentage by which the screen dim delay is scaled w hen user activity is observed while the screen is dimmed or soon after the scree n has been turned off',
5522 'type': 'integer', 5463 'type': 'integer',
5523 'minimum': 100 5464 'minimum': 100
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
6474 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''', 6415 'desc': '''Text appended in parentheses to the policy name to indicate tha t it has been deprecated''',
6475 'text': 'deprecated', 6416 'text': 'deprecated',
6476 }, 6417 },
6477 'doc_recommended': { 6418 'doc_recommended': {
6478 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''', 6419 'desc': '''Text appended in parentheses next to the policies top-level con tainer to indicate that those policies are of the Recommended level''',
6479 'text': 'Default Settings (users can override)', 6420 'text': 'Default Settings (users can override)',
6480 }, 6421 },
6481 }, 6422 },
6482 'placeholders': [], 6423 'placeholders': [],
6483 } 6424 }
OLDNEW
« no previous file with comments | « components/policy/core/common/generate_policy_source_unittest.cc ('k') | components/policy/tools/generate_policy_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698