| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "extension", | 3 "namespace": "extension", |
| 4 "unprivileged": true, | 4 "unprivileged": true, |
| 5 "types": [ | 5 "types": [ |
| 6 { | 6 { |
| 7 "id": "MessageSender", | 7 "id": "MessageSender", |
| 8 "type": "object", | 8 "type": "object", |
| 9 "description": "An object containing information about the script contex
t that sent a message or request.", | 9 "description": "An object containing information about the script contex
t that sent a message or request.", |
| 10 "properties": { | 10 "properties": { |
| (...skipping 5226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5237 "enum": ["added", "removed"], | 5237 "enum": ["added", "removed"], |
| 5238 "description": "Event type that tells listeners which disk volume ev
en was raised." | 5238 "description": "Event type that tells listeners which disk volume ev
en was raised." |
| 5239 }, | 5239 }, |
| 5240 "volumeInfo": { | 5240 "volumeInfo": { |
| 5241 "$ref": "VolumeInfo", | 5241 "$ref": "VolumeInfo", |
| 5242 "description":"Volume information that this mount event applies to." | 5242 "description":"Volume information that this mount event applies to." |
| 5243 } | 5243 } |
| 5244 } | 5244 } |
| 5245 }, | 5245 }, |
| 5246 { | 5246 { |
| 5247 "id": "MountCompletedEvent", |
| 5248 "type": "object", |
| 5249 "description": "Payload data for mount event.", |
| 5250 "properties": { |
| 5251 "eventType": { |
| 5252 "type": "string", |
| 5253 "enum": ["success", "auth_required", "bad_password", |
| 5254 "network_error", "libcros_missing", "internal", "unknown"], |
| 5255 "description": "Event type that tells listeners if mount was success
full or an error occurred. It also specifies the error." |
| 5256 }, |
| 5257 "sourcePath": { |
| 5258 "type": "string", |
| 5259 "description":"Path that has been mounted." |
| 5260 }, |
| 5261 "mountPath": { |
| 5262 "type": "string", |
| 5263 "description":"Path that sourcePath was mounted to." |
| 5264 }, |
| 5265 "mountType": { |
| 5266 "type": "string", |
| 5267 "enum": ["device", "file"], |
| 5268 "description":"Type of the mount." |
| 5269 } |
| 5270 } |
| 5271 }, |
| 5272 { |
| 5247 "id": "FileWatchEvent", | 5273 "id": "FileWatchEvent", |
| 5248 "type": "object", | 5274 "type": "object", |
| 5249 "description": "Payload data for disk mount / unmount event.", | 5275 "description": "Payload data for disk mount / unmount event.", |
| 5250 "properties": { | 5276 "properties": { |
| 5251 "eventType": { | 5277 "eventType": { |
| 5252 "type": "string", | 5278 "type": "string", |
| 5253 "enum": ["changed", "error"], | 5279 "enum": ["changed", "error"], |
| 5254 "description": "Specifies type of event that is raised." | 5280 "description": "Specifies type of event that is raised." |
| 5255 }, | 5281 }, |
| 5256 "fileUrl": { | 5282 "fileUrl": { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5495 "description": "Fired when disk mount/unmount event is detected.", | 5521 "description": "Fired when disk mount/unmount event is detected.", |
| 5496 "parameters": [ | 5522 "parameters": [ |
| 5497 { | 5523 { |
| 5498 "$ref": "MountEvent", | 5524 "$ref": "MountEvent", |
| 5499 "name": "event", | 5525 "name": "event", |
| 5500 "description": "Mount event information." | 5526 "description": "Mount event information." |
| 5501 } | 5527 } |
| 5502 ] | 5528 ] |
| 5503 }, | 5529 }, |
| 5504 { | 5530 { |
| 5531 "name": "onMountCompleted", |
| 5532 "type": "function", |
| 5533 "description": "Fired when mount event is detected.", |
| 5534 "parameters": [ |
| 5535 { |
| 5536 "$ref": "MountCompletedEvent", |
| 5537 "name": "event", |
| 5538 "description": "MountCompleted event information." |
| 5539 } |
| 5540 ] |
| 5541 }, |
| 5542 { |
| 5505 "name": "onFileChanged", | 5543 "name": "onFileChanged", |
| 5506 "type": "function", | 5544 "type": "function", |
| 5507 "description": "Fired when watched file change event is detected.", | 5545 "description": "Fired when watched file change event is detected.", |
| 5508 "parameters": [ | 5546 "parameters": [ |
| 5509 { | 5547 { |
| 5510 "$ref": "FileWatchEvent", | 5548 "$ref": "FileWatchEvent", |
| 5511 "name": "event", | 5549 "name": "event", |
| 5512 "description": "File watch event information." | 5550 "description": "File watch event information." |
| 5513 } | 5551 } |
| 5514 ] | 5552 ] |
| (...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6541 "description": "A string result code. The value is non-empty on
success only in tests.", | 6579 "description": "A string result code. The value is non-empty on
success only in tests.", |
| 6542 "optional": "true" | 6580 "optional": "true" |
| 6543 } | 6581 } |
| 6544 ] | 6582 ] |
| 6545 } | 6583 } |
| 6546 ] | 6584 ] |
| 6547 } | 6585 } |
| 6548 ] | 6586 ] |
| 6549 } | 6587 } |
| 6550 ] | 6588 ] |
| OLD | NEW |