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": ["mount", "unmount"], |
| 5254 "description": "Is the event raised for mounting or unmounting." |
| 5255 }, |
| 5256 "status": { |
| 5257 "type": "string", |
| 5258 "enum": ["success", "error_unknown", "error_internal", |
| 5259 "error_unknown_filesystem", "error_unsuported_filesystem", |
| 5260 "error_invalid_archive", "error_libcros_missing"], |
| 5261 "description": "Event type that tells listeners if mount was success
full or an error occurred. It also specifies the error." |
| 5262 }, |
| 5263 "sourcePath": { |
| 5264 "type": "string", |
| 5265 "description": "Path that has been mounted." |
| 5266 }, |
| 5267 "mountPath": { |
| 5268 "type": "string", |
| 5269 "optional": true, |
| 5270 "description": "Path that sourcePath was mounted to." |
| 5271 }, |
| 5272 "mountType": { |
| 5273 "type": "string", |
| 5274 "enum": ["device", "file", "network"], |
| 5275 "description": "Type of the mount." |
| 5276 } |
| 5277 } |
| 5278 }, |
| 5279 { |
5247 "id": "FileWatchEvent", | 5280 "id": "FileWatchEvent", |
5248 "type": "object", | 5281 "type": "object", |
5249 "description": "Payload data for disk mount / unmount event.", | 5282 "description": "Payload data for disk mount / unmount event.", |
5250 "properties": { | 5283 "properties": { |
5251 "eventType": { | 5284 "eventType": { |
5252 "type": "string", | 5285 "type": "string", |
5253 "enum": ["changed", "error"], | 5286 "enum": ["changed", "error"], |
5254 "description": "Specifies type of event that is raised." | 5287 "description": "Specifies type of event that is raised." |
5255 }, | 5288 }, |
5256 "fileUrl": { | 5289 "fileUrl": { |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5495 "description": "Fired when disk mount/unmount event is detected.", | 5528 "description": "Fired when disk mount/unmount event is detected.", |
5496 "parameters": [ | 5529 "parameters": [ |
5497 { | 5530 { |
5498 "$ref": "MountEvent", | 5531 "$ref": "MountEvent", |
5499 "name": "event", | 5532 "name": "event", |
5500 "description": "Mount event information." | 5533 "description": "Mount event information." |
5501 } | 5534 } |
5502 ] | 5535 ] |
5503 }, | 5536 }, |
5504 { | 5537 { |
| 5538 "name": "onMountCompleted", |
| 5539 "type": "function", |
| 5540 "description": "Fired when mount event is detected.", |
| 5541 "parameters": [ |
| 5542 { |
| 5543 "$ref": "MountCompletedEvent", |
| 5544 "name": "event", |
| 5545 "description": "MountCompleted event information." |
| 5546 } |
| 5547 ] |
| 5548 }, |
| 5549 { |
5505 "name": "onFileChanged", | 5550 "name": "onFileChanged", |
5506 "type": "function", | 5551 "type": "function", |
5507 "description": "Fired when watched file change event is detected.", | 5552 "description": "Fired when watched file change event is detected.", |
5508 "parameters": [ | 5553 "parameters": [ |
5509 { | 5554 { |
5510 "$ref": "FileWatchEvent", | 5555 "$ref": "FileWatchEvent", |
5511 "name": "event", | 5556 "name": "event", |
5512 "description": "File watch event information." | 5557 "description": "File watch event information." |
5513 } | 5558 } |
5514 ] | 5559 ] |
(...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.", | 6586 "description": "A string result code. The value is non-empty on
success only in tests.", |
6542 "optional": "true" | 6587 "optional": "true" |
6543 } | 6588 } |
6544 ] | 6589 ] |
6545 } | 6590 } |
6546 ] | 6591 ] |
6547 } | 6592 } |
6548 ] | 6593 ] |
6549 } | 6594 } |
6550 ] | 6595 ] |
OLD | NEW |