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

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

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
===================================================================
--- chrome/common/extensions/api/extension_api.json (revision 81576)
+++ chrome/common/extensions/api/extension_api.json (working copy)
@@ -4515,8 +4515,44 @@
]
},
{
+ "namespace":"fileBrowserHandler",
+ "nodoc": "true",
+ "events": [
+ {
+ "name": "onExecuteAction",
Aaron Boodman 2011/04/14 22:04:34 How about 'onExecute' since there is no 'action' i
zel 2011/04/14 23:51:12 Yes, I've been thinking about the same rename now
+ "type": "function",
+ "description": "Fired when file system action is executed from ChromeOS file browser.",
+ "parameters": [
+ {
+ "name": "id",
+ "type": "string",
+ "description": "File browser action id as specified in the listener component's manifest."
+ },
+ {
+ "name": "entries",
+ "type": "any",
+ "optional": true,
+ "description": "Array of Entry instances representing files that are targets of this action (selected in ChromeOS file browser)."
+ }
+ ]
+ }
+ ]
+ },
+ {
"namespace":"fileBrowserPrivate",
"nodoc": "true",
+ "types": [
+ {
+ "id": "FileBrowserTask",
+ "type": "object",
+ "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.",
+ "properties": {
+ "taskId": {"type": "string", "description": "The unique identifier of the task."},
+ "title": {"type": "string", "description": "Task title."},
+ "iconUrl": {"type": "string", "description": "Task icon url (from chrome://extension-icon/...)"}
+ }
+ }
+ ],
"functions": [
{
"name": "requestLocalFileSystem",
@@ -4528,14 +4564,71 @@
"optional": "false",
"parameters": [
{
+ "name" : "fileSystem",
"type": "object",
- "isInstanceOf": "DOMFileSystem"
+ "optional": "true",
+ "description": "A DOMFileSystem instance for local file system access. null if the caller has no appropriate permissions."
}
]
}
]
},
{
+ "name": "getFileTasks",
+ "description": "Gets the of tasks that can be performed over selected files.",
+ "parameters": [
+ {
+ "name": "fileURLs",
+ "type": "array",
+ "description": "Array of selected file URLs",
+ "items": { "type": "string" }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": "false",
+ "parameters": [
+ {
+ "name": "tasks",
+ "type": "array",
+ "items": {"$ref": "FileBrowserTask"},
+ "description": "The list of available tasks that can be performed on all of the passed file paths."
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "executeTask",
+ "description": "Executes file browser task over selected files",
+ "parameters": [
+ {
+ "name": "taskId",
+ "type": "string",
+ "description": "The unique identifier of task to execute."
+ },
+ {
+ "name": "fileURLs",
+ "type": "array",
+ "description": "Array of file URLs",
+ "items": { "type": "string" }
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": "false",
+ "parameters": [
+ {
+ "name": "success",
+ "type": "boolean",
+ "optional": "true",
+ "description": "True of task execution was successfully initiated."
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "selectFiles",
"type": "function",
"description": "Select multiple files.",
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698