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

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
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4511 matching lines...) Expand 10 before | Expand all | Expand 10 after
4522 }, 4522 },
4523 { 4523 {
4524 "name": "onDisabled", 4524 "name": "onDisabled",
4525 "description": "Fired when an app or extension has been disabled", 4525 "description": "Fired when an app or extension has been disabled",
4526 "type": "function", 4526 "type": "function",
4527 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] 4527 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}]
4528 } 4528 }
4529 ] 4529 ]
4530 }, 4530 },
4531 { 4531 {
4532 "namespace":"fileBrowserHandler",
4533 "nodoc": "true",
4534 "events": [
4535 {
4536 "name": "onExecute",
4537 "type": "function",
4538 "description": "Fired when file system action is executed from ChromeOS file browser.",
4539 "parameters": [
4540 {
4541 "name": "id",
4542 "type": "string",
4543 "description": "File browser action id as specified in the listener component's manifest."
4544 },
4545 {
4546 "name": "entries",
4547 "type": "any",
4548 "optional": true,
4549 "description": "Array of Entry instances representing files that are targets of this action (selected in ChromeOS file browser)."
4550 }
4551 ]
4552 }
4553 ]
4554 },
4555 {
4532 "namespace":"fileBrowserPrivate", 4556 "namespace":"fileBrowserPrivate",
4533 "nodoc": "true", 4557 "nodoc": "true",
4558 "types": [
4559 {
4560 "id": "FileBrowserTask",
4561 "type": "object",
4562 "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.",
4563 "properties": {
4564 "taskId": {"type": "string", "description": "The unique identifier of the task."},
4565 "title": {"type": "string", "description": "Task title."},
4566 "iconUrl": {"type": "string", "description": "Task icon url (from chro me://extension-icon/...)"}
4567 }
4568 }
4569 ],
4534 "functions": [ 4570 "functions": [
4535 { 4571 {
4536 "name": "requestLocalFileSystem", 4572 "name": "requestLocalFileSystem",
4537 "description": "Requests access to local file system", 4573 "description": "Requests access to local file system",
4538 "parameters": [ 4574 "parameters": [
4539 { 4575 {
4540 "name": "callback", 4576 "name": "callback",
4541 "type": "function", 4577 "type": "function",
4542 "optional": "false", 4578 "optional": "false",
4543 "parameters": [ 4579 "parameters": [
4544 { 4580 {
4581 "name" : "fileSystem",
4545 "type": "object", 4582 "type": "object",
4546 "isInstanceOf": "DOMFileSystem" 4583 "optional": "true",
4584 "description": "A DOMFileSystem instance for local file system a ccess. null if the caller has no appropriate permissions."
4585 }
4586 ]
4587 }
4588 ]
4589 },
4590 {
4591 "name": "getFileTasks",
4592 "description": "Gets the of tasks that can be performed over selected fi les.",
4593 "parameters": [
4594 {
4595 "name": "fileURLs",
4596 "type": "array",
4597 "description": "Array of selected file URLs",
4598 "items": { "type": "string" }
4599 },
4600 {
4601 "name": "callback",
4602 "type": "function",
4603 "optional": "false",
4604 "parameters": [
4605 {
4606 "name": "tasks",
4607 "type": "array",
4608 "items": {"$ref": "FileBrowserTask"},
4609 "description": "The list of available tasks that can be performe d on all of the passed file paths."
4610 }
4611 ]
4612 }
4613 ]
4614 },
4615 {
4616 "name": "executeTask",
4617 "description": "Executes file browser task over selected files",
4618 "parameters": [
4619 {
4620 "name": "taskId",
4621 "type": "string",
4622 "description": "The unique identifier of task to execute."
4623 },
4624 {
4625 "name": "fileURLs",
4626 "type": "array",
4627 "description": "Array of file URLs",
4628 "items": { "type": "string" }
4629 },
4630 {
4631 "name": "callback",
4632 "type": "function",
4633 "optional": "false",
4634 "parameters": [
4635 {
4636 "name": "success",
4637 "type": "boolean",
4638 "optional": "true",
4639 "description": "True of task execution was successfully initiate d."
4547 } 4640 }
4548 ] 4641 ]
4549 } 4642 }
4550 ] 4643 ]
4551 }, 4644 },
4552 { 4645 {
4553 "name": "selectFiles", 4646 "name": "selectFiles",
4554 "type": "function", 4647 "type": "function",
4555 "description": "Select multiple files.", 4648 "description": "Select multiple files.",
4556 "parameters": [ 4649 "parameters": [
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
5060 { 5153 {
5061 "type": "integer", 5154 "type": "integer",
5062 "name": "tabId", 5155 "name": "tabId",
5063 "description": "The id of the tab that was detached." 5156 "description": "The id of the tab that was detached."
5064 } 5157 }
5065 ] 5158 ]
5066 } 5159 }
5067 ] 5160 ]
5068 } 5161 }
5069 ] 5162 ]
OLDNEW
« 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