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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 4497 matching lines...) Expand 10 before | Expand all | Expand 10 after
4508 }, 4508 },
4509 { 4509 {
4510 "name": "onDisabled", 4510 "name": "onDisabled",
4511 "description": "Fired when an app or extension has been disabled", 4511 "description": "Fired when an app or extension has been disabled",
4512 "type": "function", 4512 "type": "function",
4513 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] 4513 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}]
4514 } 4514 }
4515 ] 4515 ]
4516 }, 4516 },
4517 { 4517 {
4518 "namespace":"fileSystem",
asargent_no_longer_on_chrome 2011/04/12 21:09:38 would it make sense to call this namespace "fileBr
Aaron Boodman 2011/04/12 22:47:21 If you parse the name "fileBrowserActions" as "(fi
zel 2011/04/13 17:49:55 I wanted to keep it generic enough in case we add
zel 2011/04/13 17:49:55 "fileBrowserHandler" it is.
4519 "nodoc": "true",
4520 "functions": [
4521 {
4522 "name": "resolveLocalFileSystemURL",
4523 "description": "Allows the user to look up the Entry for a file or direc tory referred to by a local URL. ",
4524 "parameters": [
4525 {
4526 "name": "url",
4527 "type": "string",
4528 "description": "A URL referring to a local file in a filesystem."
4529 },
4530 {
4531 "name": "callback",
4532 "type": "function",
4533 "optional": "false",
4534 "parameters": [
4535 {
4536 "name" : "entry",
4537 "type": "object",
4538 "optional": "true",
4539 "description": "An Entry as a response to a file resolution requ est. It will have value of null if the request failed."
4540 }
4541 ]
4542 }
4543 ]
4544 }
4545 ],
4546 "events": [
4547 {
4548 "name": "onExecuteAction",
4549 "type": "function",
4550 "description": "Fired when file system action is executed from ChromeOS file browser.",
4551 "parameters": [
4552 {
4553 "name": "id",
4554 "type": "string",
4555 "description": "File browser action id as specified in the listener component's manifest."
4556 },
4557 {
4558 "name": "fileUrls",
Aaron Boodman 2011/04/12 22:47:21 How about "entryURLs", since they can be either fi
zel 2011/04/13 17:49:55 changed to 'entries' since this is what it is now
4559 "type": "array",
4560 "description": "Array of URLs of files that are targets of this acti on (selected in ChromeOS file browser).",
4561 "items": { "type": "string" }
4562 }
4563 ]
4564 }
4565 ]
4566 },
4567 {
4518 "namespace":"fileBrowserPrivate", 4568 "namespace":"fileBrowserPrivate",
4519 "nodoc": "true", 4569 "nodoc": "true",
4570 "types": [
4571 {
4572 "id": "FileBrowserTask",
4573 "type": "object",
4574 "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.",
4575 "properties": {
4576 "taskId": {"type": "string", "description": "The unique identifier of the task."},
4577 "title": {"type": "string", "description": "Task title."},
4578 "iconUrl": {"type": "string", "description": "Task icon url (from chro me://extension-icon/...)"}
4579 }
4580 }
4581 ],
4520 "functions": [ 4582 "functions": [
4521 { 4583 {
4522 "name": "requestLocalFileSystem", 4584 "name": "requestLocalFileSystem",
4523 "description": "Requests access to local file system", 4585 "description": "Requests access to local file system",
4524 "parameters": [ 4586 "parameters": [
4525 { 4587 {
4526 "name": "callback", 4588 "name": "callback",
4527 "type": "function", 4589 "type": "function",
4528 "optional": "false", 4590 "optional": "false",
4529 "parameters": [ 4591 "parameters": [
4530 { 4592 {
4593 "name" : "fileSystem",
4531 "type": "object", 4594 "type": "object",
4532 "isInstanceOf": "DOMFileSystem" 4595 "optional": "true",
4596 "description": "A DOMFileSystem instance for local file system a ccess. null if the caller has no appropriate permissions."
4597 }
4598 ]
4599 }
4600 ]
4601 },
4602 {
4603 "name": "getFileTasks",
4604 "description": "Gets the of tasks that can be performed over selected fi les.",
4605 "parameters": [
4606 {
4607 "name": "fileURLs",
4608 "type": "array",
4609 "description": "Array of selected file URLs",
4610 "items": { "type": "string" }
4611 },
4612 {
4613 "name": "callback",
4614 "type": "function",
4615 "optional": "false",
4616 "parameters": [
4617 {
4618 "name": "tasks",
4619 "type": "array",
4620 "items": {"$ref": "FileBrowserTask"},
4621 "description": "The list of available tasks that can be performe d on all of the passed file paths."
4622 }
4623 ]
4624 }
4625 ]
4626 },
4627 {
4628 "name": "executeTask",
4629 "description": "Executes file browser task over selected files",
4630 "parameters": [
4631 {
4632 "name": "taskId",
4633 "type": "string",
4634 "description": "The unique identifier of task to execute."
4635 },
4636 {
4637 "name": "fileURLs",
4638 "type": "array",
4639 "description": "Array of file URLs",
4640 "items": { "type": "string" }
4641 },
4642 {
4643 "name": "callback",
4644 "type": "function",
4645 "optional": "false",
4646 "parameters": [
4647 {
4648 "name": "success",
4649 "type": "boolean",
4650 "optional": "true",
4651 "description": "True of task execution was successfully initiate d."
4533 } 4652 }
4534 ] 4653 ]
4535 } 4654 }
4536 ] 4655 ]
4537 }, 4656 },
4538 { 4657 {
4539 "name": "selectFiles", 4658 "name": "selectFiles",
4540 "type": "function", 4659 "type": "function",
4541 "description": "Select multiple files.", 4660 "description": "Select multiple files.",
4542 "parameters": [ 4661 "parameters": [
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
5036 { 5155 {
5037 "type": "integer", 5156 "type": "integer",
5038 "name": "tabId", 5157 "name": "tabId",
5039 "description": "The id of the tab that was detached." 5158 "description": "The id of the tab that was detached."
5040 } 5159 }
5041 ] 5160 ]
5042 } 5161 }
5043 ] 5162 ]
5044 } 5163 }
5045 ] 5164 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698