OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace":"fileBrowserPrivate", | 7 "namespace":"fileBrowserPrivate", |
8 "nodoc": "true", | 8 "nodoc": "true", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 { | 114 { |
115 "id": "MountPointInfo", | 115 "id": "MountPointInfo", |
116 "type": "object", | 116 "type": "object", |
117 "description": "Mounted point information.", | 117 "description": "Mounted point information.", |
118 "properties": { | 118 "properties": { |
119 "mountPath": { | 119 "mountPath": { |
120 "type": "string", | 120 "type": "string", |
121 "optional": true, | 121 "optional": true, |
122 "description": "Disk volume mount point path. The value corresponds
to its Entry.fullPath in File API." | 122 "description": "Disk volume mount point path. The value corresponds
to its Entry.fullPath in File API." |
123 }, | 123 }, |
124 "sourceUrl": { | 124 "sourcePath": { |
125 "type": "string", | 125 "type": "string", |
126 "description": "The path to the mounted devicem, url of the mounted
archive file or network resource." | 126 "description": "The path to the mounted device, archive file or netw
ork resource." |
127 }, | 127 }, |
128 "mountType": { | 128 "mountType": { |
129 "type": "string", | 129 "type": "string", |
130 "enum": ["device", "file", "network"], | 130 "enum": ["device", "file", "network"], |
131 "description": "Type of the mount." | 131 "description": "Type of the mount." |
132 }, | 132 }, |
133 "mountCondition": { | 133 "mountCondition": { |
134 "type": "string", | 134 "type": "string", |
135 "description": "Additional data about mount, for example, that the f
ilesystem is not supported." | 135 "description": "Additional data about mount, for example, that the f
ilesystem is not supported." |
136 } | 136 } |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 }, | 235 }, |
236 "status": { | 236 "status": { |
237 "type": "string", | 237 "type": "string", |
238 "enum": ["success", "error_unknown", "error_internal", | 238 "enum": ["success", "error_unknown", "error_internal", |
239 "error_unknown_filesystem", "error_unsuported_filesystem", | 239 "error_unknown_filesystem", "error_unsuported_filesystem", |
240 "error_invalid_archive", "error_libcros_missing", | 240 "error_invalid_archive", "error_libcros_missing", |
241 "error_authentication", "error_network", | 241 "error_authentication", "error_network", |
242 "error_path_unmounted"], | 242 "error_path_unmounted"], |
243 "description": "Event type that tells listeners if mount was success
ful or an error occurred. It also specifies the error." | 243 "description": "Event type that tells listeners if mount was success
ful or an error occurred. It also specifies the error." |
244 }, | 244 }, |
245 "sourceUrl": { | 245 "sourcePath": { |
246 "type": "string", | 246 "type": "string", |
247 "description": "Path that has been mounted." | 247 "description": "Path that has been mounted." |
248 }, | 248 }, |
249 "mountPath": { | 249 "mountPath": { |
250 "type": "string", | 250 "type": "string", |
251 "optional": true, | 251 "optional": true, |
252 "description": "Path that sourcePath was mounted to." | 252 "description": "Path that sourcePath was mounted to." |
253 }, | 253 }, |
254 "mountType": { | 254 "mountType": { |
255 "type": "string", | 255 "type": "string", |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 }, | 656 }, |
657 { | 657 { |
658 "name": "mountType", | 658 "name": "mountType", |
659 "type": "string", | 659 "type": "string", |
660 "enum": ["device", "file", "network", "gdata"], | 660 "enum": ["device", "file", "network", "gdata"], |
661 "description": "Mount point type. 'file' for compressed files" | 661 "description": "Mount point type. 'file' for compressed files" |
662 }, | 662 }, |
663 { | 663 { |
664 "name": "options", | 664 "name": "options", |
665 "type": "object", | 665 "type": "object", |
666 "description": "Name/value pairs for source specific options", | 666 "description": "Name/value pairs for source specific options" |
667 "optional": true | 667 }, |
| 668 { |
| 669 "name": "callback", |
| 670 "type": "function", |
| 671 "parameters": [ |
| 672 { |
| 673 "name": "sourcePath", |
| 674 "type": "string", |
| 675 "description": "Source path of the mount." |
| 676 } |
| 677 ] |
668 } | 678 } |
669 ] | 679 ] |
670 }, | 680 }, |
671 { | 681 { |
672 "name": "removeMount", | 682 "name": "removeMount", |
673 "description": "Unmounts a mounted resource.", | 683 "description": "Unmounts a mounted resource.", |
674 "parameters": [ | 684 "parameters": [ |
675 { | 685 { |
676 "name": "mountPath", | 686 "name": "mountPath", |
677 "type": "string", | 687 "type": "string", |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 { | 908 { |
899 "$ref": "FileWatchEvent", | 909 "$ref": "FileWatchEvent", |
900 "name": "event", | 910 "name": "event", |
901 "description": "File watch event information." | 911 "description": "File watch event information." |
902 } | 912 } |
903 ] | 913 ] |
904 } | 914 } |
905 ] | 915 ] |
906 } | 916 } |
907 ] | 917 ] |
OLD | NEW |