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", | |
zel
2011/07/22 04:47:17
add:
"optional": true,
tbarzic
2011/07/22 06:21:51
Done.
| |
5264 "description":"Path that sourcePath was mounted to." | |
5265 }, | |
5266 "mountType": { | |
5267 "type": "string", | |
5268 "enum": ["device", "file", "network", "invalid"], | |
zel
2011/07/22 04:47:17
what's 'invalid'?
tbarzic
2011/07/22 06:21:51
Type not set. But when I think about it, it should
| |
5269 "description":"Type of the mount." | |
zel
2011/07/22 04:47:17
space after :
tbarzic
2011/07/22 06:21:51
Done.
| |
5270 } | |
5271 } | |
5272 }, | |
5273 { | |
5247 "id": "FileWatchEvent", | 5274 "id": "FileWatchEvent", |
5248 "type": "object", | 5275 "type": "object", |
5249 "description": "Payload data for disk mount / unmount event.", | 5276 "description": "Payload data for disk mount / unmount event.", |
5250 "properties": { | 5277 "properties": { |
5251 "eventType": { | 5278 "eventType": { |
5252 "type": "string", | 5279 "type": "string", |
5253 "enum": ["changed", "error"], | 5280 "enum": ["changed", "error"], |
5254 "description": "Specifies type of event that is raised." | 5281 "description": "Specifies type of event that is raised." |
5255 }, | 5282 }, |
5256 "fileUrl": { | 5283 "fileUrl": { |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5495 "description": "Fired when disk mount/unmount event is detected.", | 5522 "description": "Fired when disk mount/unmount event is detected.", |
5496 "parameters": [ | 5523 "parameters": [ |
5497 { | 5524 { |
5498 "$ref": "MountEvent", | 5525 "$ref": "MountEvent", |
5499 "name": "event", | 5526 "name": "event", |
5500 "description": "Mount event information." | 5527 "description": "Mount event information." |
5501 } | 5528 } |
5502 ] | 5529 ] |
5503 }, | 5530 }, |
5504 { | 5531 { |
5532 "name": "onMountCompleted", | |
5533 "type": "function", | |
5534 "description": "Fired when mount event is detected.", | |
5535 "parameters": [ | |
5536 { | |
5537 "$ref": "MountCompletedEvent", | |
5538 "name": "event", | |
5539 "description": "MountCompleted event information." | |
5540 } | |
5541 ] | |
5542 }, | |
5543 { | |
5505 "name": "onFileChanged", | 5544 "name": "onFileChanged", |
5506 "type": "function", | 5545 "type": "function", |
5507 "description": "Fired when watched file change event is detected.", | 5546 "description": "Fired when watched file change event is detected.", |
5508 "parameters": [ | 5547 "parameters": [ |
5509 { | 5548 { |
5510 "$ref": "FileWatchEvent", | 5549 "$ref": "FileWatchEvent", |
5511 "name": "event", | 5550 "name": "event", |
5512 "description": "File watch event information." | 5551 "description": "File watch event information." |
5513 } | 5552 } |
5514 ] | 5553 ] |
(...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.", | 6580 "description": "A string result code. The value is non-empty on success only in tests.", |
6542 "optional": "true" | 6581 "optional": "true" |
6543 } | 6582 } |
6544 ] | 6583 ] |
6545 } | 6584 } |
6546 ] | 6585 ] |
6547 } | 6586 } |
6548 ] | 6587 ] |
6549 } | 6588 } |
6550 ] | 6589 ] |
OLD | NEW |