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