Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7666)

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 7457001: Adding support for mount point different from removable devices to MountLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/extension_api.json
===================================================================
--- chrome/common/extensions/api/extension_api.json (revision 93425)
+++ chrome/common/extensions/api/extension_api.json (working copy)
@@ -5244,6 +5244,33 @@
}
},
{
+ "id": "MountCompletedEvent",
+ "type": "object",
+ "description": "Payload data for mount event.",
+ "properties": {
+ "eventType": {
+ "type": "string",
+ "enum": ["success", "unknown", "internal", "unknown_filesystem",
+ "unsuported_filesystem", "invalid_archive",
+ "libcros_missing"],
+ "description": "Event type that tells listeners if mount was successfull or an error occurred. It also specifies the error."
+ },
+ "sourcePath": {
+ "type": "string",
+ "description":"Path that has been mounted."
+ },
+ "mountPath": {
+ "type": "string",
zel 2011/07/22 04:47:17 add: "optional": true,
tbarzic 2011/07/22 06:21:51 Done.
+ "description":"Path that sourcePath was mounted to."
+ },
+ "mountType": {
+ "type": "string",
+ "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
+ "description":"Type of the mount."
zel 2011/07/22 04:47:17 space after :
tbarzic 2011/07/22 06:21:51 Done.
+ }
+ }
+ },
+ {
"id": "FileWatchEvent",
"type": "object",
"description": "Payload data for disk mount / unmount event.",
@@ -5502,6 +5529,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.",

Powered by Google App Engine
This is Rietveld 408576698