OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace":"fileBrowserPrivate", | 3 "namespace":"fileBrowserPrivate", |
4 "nodoc": "true", | 4 "nodoc": "true", |
5 "types": [ | 5 "types": [ |
6 { | 6 { |
7 "id": "FileBrowserTask", | 7 "id": "FileBrowserTask", |
8 "type": "object", | 8 "type": "object", |
9 "description": "Represents information about available browser tasks. A
task is an abstraction of an operation that the file browser can perform over a
selected file set.", | 9 "description": "Represents information about available browser tasks. A
task is an abstraction of an operation that the file browser can perform over a
selected file set.", |
10 "properties": { | 10 "properties": { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 "type": "boolean", | 44 "type": "boolean", |
45 "description": "Flag that specifies if volume is mounted in read-onl
y mode." | 45 "description": "Flag that specifies if volume is mounted in read-onl
y mode." |
46 }, | 46 }, |
47 "totalSizeKB": { | 47 "totalSizeKB": { |
48 "type": "integer", | 48 "type": "integer", |
49 "description": "Total disk volume size in KBs" | 49 "description": "Total disk volume size in KBs" |
50 } | 50 } |
51 } | 51 } |
52 }, | 52 }, |
53 { | 53 { |
| 54 "id": "GDataFileProperties", |
| 55 "type": "object", |
| 56 "description": "GData file properties.", |
| 57 "properties": { |
| 58 "thumbnailUrl": { |
| 59 "type": "string", |
| 60 "optional": true, |
| 61 "description": "URL to the GData thumbnail image for this file." |
| 62 }, |
| 63 "isPinned": { |
| 64 "type": "boolean", |
| 65 "optional": true, |
| 66 "description": "True if the file is pinned in GData cache." |
| 67 }, |
| 68 "isPresent": { |
| 69 "type": "boolean", |
| 70 "optional": true, |
| 71 "description": "True if the file is present in GData cache." |
| 72 }, |
| 73 "isDirty": { |
| 74 "type": "boolean", |
| 75 "optional": true, |
| 76 "description": "True if the file is awaiting upload in GData cache." |
| 77 }, |
| 78 "errorCode": { |
| 79 "type": "integer", |
| 80 "optional": true, |
| 81 "description": "The error code (from base::PlatformFileError) if fet
ching the properties for this file had an error." |
| 82 } |
| 83 } |
| 84 }, |
| 85 { |
54 "id": "MountPointInfo", | 86 "id": "MountPointInfo", |
55 "type": "object", | 87 "type": "object", |
56 "description": "Mounted point information.", | 88 "description": "Mounted point information.", |
57 "properties": { | 89 "properties": { |
58 "mountPath": { | 90 "mountPath": { |
59 "type": "string", | 91 "type": "string", |
60 "optional": true, | 92 "optional": true, |
61 "description": "Disk volume mount point path. The value corresponds
to its Entry.fullPath in File API." | 93 "description": "Disk volume mount point path. The value corresponds
to its Entry.fullPath in File API." |
62 }, | 94 }, |
63 "sourceUrl": { | 95 "sourceUrl": { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 "enum": ["mount", "unmount"], | 204 "enum": ["mount", "unmount"], |
173 "description": "Is the event raised for mounting or unmounting." | 205 "description": "Is the event raised for mounting or unmounting." |
174 }, | 206 }, |
175 "status": { | 207 "status": { |
176 "type": "string", | 208 "type": "string", |
177 "enum": ["success", "error_unknown", "error_internal", | 209 "enum": ["success", "error_unknown", "error_internal", |
178 "error_unknown_filesystem", "error_unsuported_filesystem", | 210 "error_unknown_filesystem", "error_unsuported_filesystem", |
179 "error_invalid_archive", "error_libcros_missing", | 211 "error_invalid_archive", "error_libcros_missing", |
180 "error_authentication", "error_network", | 212 "error_authentication", "error_network", |
181 "error_path_unmounted"], | 213 "error_path_unmounted"], |
182 "description": "Event type that tells listeners if mount was success
full or an error occurred. It also specifies the error." | 214 "description": "Event type that tells listeners if mount was success
ful or an error occurred. It also specifies the error." |
183 }, | 215 }, |
184 "sourceUrl": { | 216 "sourceUrl": { |
185 "type": "string", | 217 "type": "string", |
186 "description": "Path that has been mounted." | 218 "description": "Path that has been mounted." |
187 }, | 219 }, |
188 "mountPath": { | 220 "mountPath": { |
189 "type": "string", | 221 "type": "string", |
190 "optional": true, | 222 "optional": true, |
191 "description": "Path that sourcePath was mounted to." | 223 "description": "Path that sourcePath was mounted to." |
192 }, | 224 }, |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 { | 452 { |
421 "name" : "success", | 453 "name" : "success", |
422 "type": "boolean", | 454 "type": "boolean", |
423 "description": "True if the selected files can be viewed by the
browser." | 455 "description": "True if the selected files can be viewed by the
browser." |
424 } | 456 } |
425 ] | 457 ] |
426 } | 458 } |
427 ] | 459 ] |
428 }, | 460 }, |
429 { | 461 { |
| 462 "name": "getGDataFileProperties", |
| 463 "description": "Requests GData file properties for a list of files", |
| 464 "parameters": [ |
| 465 { |
| 466 "name": "fileUrls", |
| 467 "type": "array", |
| 468 "description": "Array of file URLs to fetch properties for." |
| 469 }, |
| 470 { |
| 471 "name": "callback", |
| 472 "type": "function", |
| 473 "optional": "false", |
| 474 "parameters": [ |
| 475 { |
| 476 "name" : "fileProperties", |
| 477 "type": "array", |
| 478 "items": {"$ref": "GDataFileProperties"}, |
| 479 "description": "An array of the requested file properties, one e
ntry for each file in fileUrls." |
| 480 } |
| 481 ] |
| 482 } |
| 483 ] |
| 484 }, |
| 485 { |
430 "name": "getVolumeMetadata", | 486 "name": "getVolumeMetadata", |
431 "description": "Requests volume's metadata", | 487 "description": "Requests volume's metadata", |
432 "parameters": [ | 488 "parameters": [ |
433 { | 489 { |
434 "name": "mountUrl", | 490 "name": "mountUrl", |
435 "type": "string", | 491 "type": "string", |
436 "description": "Mount url of the volume." | 492 "description": "Mount url of the volume." |
437 }, | 493 }, |
438 { | 494 { |
439 "name": "callback", | 495 "name": "callback", |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 { | 627 { |
572 "$ref": "FileWatchEvent", | 628 "$ref": "FileWatchEvent", |
573 "name": "event", | 629 "name": "event", |
574 "description": "File watch event information." | 630 "description": "File watch event information." |
575 } | 631 } |
576 ] | 632 ] |
577 } | 633 } |
578 ] | 634 ] |
579 } | 635 } |
580 ] | 636 ] |
OLD | NEW |