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

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 4477 matching lines...) Expand 10 before | Expand all | Expand 10 after
4488 { 4488 {
4489 "name": "onDisabled", 4489 "name": "onDisabled",
4490 "description": "Fired when an app or extension has been disabled", 4490 "description": "Fired when an app or extension has been disabled",
4491 "type": "function", 4491 "type": "function",
4492 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] 4492 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}]
4493 } 4493 }
4494 ] 4494 ]
4495 }, 4495 },
4496 4496
4497 { 4497 {
4498 "namespace":"fileSystem",
4499 "nodoc": "true",
4500 "functions": [
4501 {
4502 "name": "resolveLocalFileSystemURL",
4503 "description": "Allows the user to look up the Entry for a file or direc tory referred to by a local URL. ",
4504 "parameters": [
4505 {
4506 "name": "url",
4507 "type": "string",
4508 "description": "A URL referring to a local file in a filesystem."
4509 },
4510 {
4511 "name": "callback",
4512 "type": "function",
4513 "optional": "false",
4514 "parameters": [
4515 {
4516 "name" : "entry",
4517 "type": "object",
4518 "optional": "true",
4519 "description": "An Entry as a response to a file resolution requ est. It will have value of null if the request failed."
4520 }
4521 ]
4522 }
4523 ]
4524 }
4525 ]
4526 },
4527
4528 {
4498 "namespace":"fileBrowserPrivate", 4529 "namespace":"fileBrowserPrivate",
4499 "nodoc": "true", 4530 "nodoc": "true",
4531 "types": [
4532 {
4533 "id": "FileBrowserTask",
4534 "type": "object",
4535 "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.",
4536 "properties": {
4537 "taskId": {"type": "string", "description": "The unique identifier of the task."},
4538 "title": {"type": "string", "description": "Task title."},
4539 "iconUrl": {"type": "string", "description": "Task icon url (from chro me://extension-icon/...)"}
4540 }
4541 }
4542 ],
4500 "functions": [ 4543 "functions": [
4501 { 4544 {
4502 "name": "requestLocalFileSystem", 4545 "name": "requestLocalFileSystem",
4503 "description": "Requests access to local file system", 4546 "description": "Requests access to local file system",
4504 "parameters": [ 4547 "parameters": [
4505 { 4548 {
4506 "name": "callback", 4549 "name": "callback",
4507 "type": "function", 4550 "type": "function",
4508 "optional": "false", 4551 "optional": "false",
4509 "parameters": [ 4552 "parameters": [
4510 { 4553 {
4554 "name" : "fileSystem",
4511 "type": "object", 4555 "type": "object",
4512 "isInstanceOf": "DOMFileSystem" 4556 "optional": "true",
4557 "description": "A DOMFileSystem instance for local file system a ccess. null if the caller has no appropriate permissions."
4558 }
4559 ]
4560 }
4561 ]
4562 },
4563 {
4564 "name": "getFileTasks",
4565 "description": "Gets the of tasks that can be performed over selected fi les.",
4566 "parameters": [
4567 {
4568 "name": "fileURLs",
4569 "type": "array",
4570 "description": "Array of selected file URLs",
4571 "items": { "type": "string" }
4572 },
4573 {
4574 "name": "callback",
4575 "type": "function",
4576 "optional": "false",
4577 "parameters": [
4578 {
4579 "name": "tasks",
4580 "type": "array",
4581 "items": {"$ref": "FileBrowserTask"},
4582 "description": "The list of available tasks that can be performe d on all of the passed file paths."
4583 }
4584 ]
4585 }
4586 ]
4587 },
4588 {
4589 "name": "executeTask",
4590 "description": "Executes file browser task over selected files",
4591 "parameters": [
4592 {
4593 "name": "taskId",
4594 "type": "string",
4595 "description": "The unique identifier of task to execute."
4596 },
4597 {
4598 "name": "fileURLs",
4599 "type": "array",
4600 "description": "Array of file URLs",
4601 "items": { "type": "string" }
4602 },
4603 {
4604 "name": "callback",
4605 "type": "function",
4606 "optional": "false",
4607 "parameters": [
4608 {
4609 "name": "success",
4610 "type": "boolean",
4611 "optional": "true",
4612 "description": "True of task execution was successfully initiate d."
4513 } 4613 }
4514 ] 4614 ]
4515 } 4615 }
4516 ] 4616 ]
4517 } 4617 }
4518 ] 4618 ]
4519 }, 4619 },
4520 4620
4521 { 4621 {
4522 "namespace":"webstorePrivate", 4622 "namespace":"webstorePrivate",
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
4962 { 5062 {
4963 "type": "integer", 5063 "type": "integer",
4964 "name": "tabId", 5064 "name": "tabId",
4965 "description": "The id of the tab that was detached." 5065 "description": "The id of the tab that was detached."
4966 } 5066 }
4967 ] 5067 ]
4968 } 5068 }
4969 ] 5069 ]
4970 } 5070 }
4971 ] 5071 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698