diff options
Diffstat (limited to 'chrome/common/extensions/api/extension_api.json')
-rw-r--r-- | chrome/common/extensions/api/extension_api.json | 118 |
1 files changed, 113 insertions, 5 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index 3830ea9..0c27f58 100644 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -5177,6 +5177,27 @@ } }, { + "id": "MountPointInfo", + "type": "object", + "description": "Mounted point information.", + "properties": { + "mountPath": { + "type": "string", + "optional": true, + "description": "Disk volume mount point path. The value corresponds to its Entry.fullPath in File API." + }, + "sourceUrl": { + "type": "string", + "description": "The path to the mounted devicem, url of the mounted archive file or network resource." + }, + "mountType": { + "type": "string", + "enum": ["device", "file", "network"], + "description": "Type of the mount." + } + } + }, + { "id": "VolumeMetadata", "type": "object", "description": "Mounted disk volume metadata.", @@ -5249,6 +5270,39 @@ } }, { + "id": "MountCompletedEvent", + "type": "object", + "description": "Payload data for mount event.", + "properties": { + "eventType": { + "type": "string", + "enum": ["mount", "unmount"], + "description": "Is the event raised for mounting or unmounting." + }, + "status": { + "type": "string", + "enum": ["success", "error_unknown", "error_internal", + "error_unknown_filesystem", "error_unsuported_filesystem", + "error_invalid_archive", "error_libcros_missing"], + "description": "Event type that tells listeners if mount was successfull or an error occurred. It also specifies the error." + }, + "sourceUrl": { + "type": "string", + "description": "Path that has been mounted." + }, + "mountPath": { + "type": "string", + "optional": true, + "description": "Path that sourcePath was mounted to." + }, + "mountType": { + "type": "string", + "enum": ["device", "file", "network"], + "description": "Type of the mount." + } + } + }, + { "id": "FileWatchEvent", "type": "object", "description": "Payload data for disk mount / unmount event.", @@ -5482,13 +5536,55 @@ ] }, { - "name": "unmountVolume", - "description": "Unmounts specified volume", + "name": "addMount", + "description": "Mount a resource or a file.", "parameters": [ { - "name": "devicePath", + "name": "source", "type": "string", - "description": "Device path of the volume." + "description": "Mount point source. For compressed files it is relative file path within external file system" + }, + { + "name": "mountType", + "type": "string", + "enum": ["device", "file", "network"], + "description": "Mount point type. 'file' for compressed files" + }, + { + "name": "options", + "type": "object", + "description": "Name/value pairs for source specific options", + "optional": "true" + } + ] + }, + { + "name": "removeMount", + "description": "Unmounts a mounted resource.", + "parameters": [ + { + "name": "mountPath", + "type": "string", + "description": "A path of the mount." + } + ] + }, + { + "name": "getMountPoints", + "description": "Get the list of mount points.", + "parameters": [ + { + "name": "callback", + "type": "function", + "optional": "false", + "parameters": [ + { + "name" : "mountPoints", + "type": "array", + "items": {"$ref": "MountPointInfo"}, + "description": "The list of MountPointInfo representing mounted devices." + } + ] } ] } @@ -5507,6 +5603,18 @@ ] }, { + "name": "onMountCompleted", + "type": "function", + "description": "Fired when mount event is detected.", + "parameters": [ + { + "$ref": "MountCompletedEvent", + "name": "event", + "description": "MountCompleted event information." + } + ] + }, + { "name": "onFileChanged", "type": "function", "description": "Fired when watched file change event is detected.", @@ -6386,7 +6494,7 @@ "title": { "type": "string", "optional": true, - "description": "The title of the notification." + "description": "The title of the notification." }, "bodyText": { "type": "string", |