OLD | NEW |
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 Loading... |
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":"fileBrowserHandler", |
| 4519 "nodoc": "true", |
| 4520 "events": [ |
| 4521 { |
| 4522 "name": "onExecuteAction", |
| 4523 "type": "function", |
| 4524 "description": "Fired when file system action is executed from ChromeOS
file browser.", |
| 4525 "parameters": [ |
| 4526 { |
| 4527 "name": "id", |
| 4528 "type": "string", |
| 4529 "description": "File browser action id as specified in the listener
component's manifest." |
| 4530 }, |
| 4531 { |
| 4532 "name": "entries", |
| 4533 "type": "any", |
| 4534 "optional": true, |
| 4535 "description": "Array of Entry instances representing files that are
targets of this action (selected in ChromeOS file browser)." |
| 4536 } |
| 4537 ] |
| 4538 } |
| 4539 ] |
| 4540 }, |
| 4541 { |
4518 "namespace":"fileBrowserPrivate", | 4542 "namespace":"fileBrowserPrivate", |
4519 "nodoc": "true", | 4543 "nodoc": "true", |
| 4544 "types": [ |
| 4545 { |
| 4546 "id": "FileBrowserTask", |
| 4547 "type": "object", |
| 4548 "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.", |
| 4549 "properties": { |
| 4550 "taskId": {"type": "string", "description": "The unique identifier of
the task."}, |
| 4551 "title": {"type": "string", "description": "Task title."}, |
| 4552 "iconUrl": {"type": "string", "description": "Task icon url (from chro
me://extension-icon/...)"} |
| 4553 } |
| 4554 } |
| 4555 ], |
4520 "functions": [ | 4556 "functions": [ |
4521 { | 4557 { |
4522 "name": "requestLocalFileSystem", | 4558 "name": "requestLocalFileSystem", |
4523 "description": "Requests access to local file system", | 4559 "description": "Requests access to local file system", |
4524 "parameters": [ | 4560 "parameters": [ |
4525 { | 4561 { |
4526 "name": "callback", | 4562 "name": "callback", |
4527 "type": "function", | 4563 "type": "function", |
4528 "optional": "false", | 4564 "optional": "false", |
4529 "parameters": [ | 4565 "parameters": [ |
4530 { | 4566 { |
| 4567 "name" : "fileSystem", |
4531 "type": "object", | 4568 "type": "object", |
4532 "isInstanceOf": "DOMFileSystem" | 4569 "optional": "true", |
| 4570 "description": "A DOMFileSystem instance for local file system a
ccess. null if the caller has no appropriate permissions." |
| 4571 } |
| 4572 ] |
| 4573 } |
| 4574 ] |
| 4575 }, |
| 4576 { |
| 4577 "name": "getFileTasks", |
| 4578 "description": "Gets the of tasks that can be performed over selected fi
les.", |
| 4579 "parameters": [ |
| 4580 { |
| 4581 "name": "fileURLs", |
| 4582 "type": "array", |
| 4583 "description": "Array of selected file URLs", |
| 4584 "items": { "type": "string" } |
| 4585 }, |
| 4586 { |
| 4587 "name": "callback", |
| 4588 "type": "function", |
| 4589 "optional": "false", |
| 4590 "parameters": [ |
| 4591 { |
| 4592 "name": "tasks", |
| 4593 "type": "array", |
| 4594 "items": {"$ref": "FileBrowserTask"}, |
| 4595 "description": "The list of available tasks that can be performe
d on all of the passed file paths." |
| 4596 } |
| 4597 ] |
| 4598 } |
| 4599 ] |
| 4600 }, |
| 4601 { |
| 4602 "name": "executeTask", |
| 4603 "description": "Executes file browser task over selected files", |
| 4604 "parameters": [ |
| 4605 { |
| 4606 "name": "taskId", |
| 4607 "type": "string", |
| 4608 "description": "The unique identifier of task to execute." |
| 4609 }, |
| 4610 { |
| 4611 "name": "fileURLs", |
| 4612 "type": "array", |
| 4613 "description": "Array of file URLs", |
| 4614 "items": { "type": "string" } |
| 4615 }, |
| 4616 { |
| 4617 "name": "callback", |
| 4618 "type": "function", |
| 4619 "optional": "false", |
| 4620 "parameters": [ |
| 4621 { |
| 4622 "name": "success", |
| 4623 "type": "boolean", |
| 4624 "optional": "true", |
| 4625 "description": "True of task execution was successfully initiate
d." |
4533 } | 4626 } |
4534 ] | 4627 ] |
4535 } | 4628 } |
4536 ] | 4629 ] |
4537 }, | 4630 }, |
4538 { | 4631 { |
4539 "name": "selectFiles", | 4632 "name": "selectFiles", |
4540 "type": "function", | 4633 "type": "function", |
4541 "description": "Select multiple files.", | 4634 "description": "Select multiple files.", |
4542 "parameters": [ | 4635 "parameters": [ |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5036 { | 5129 { |
5037 "type": "integer", | 5130 "type": "integer", |
5038 "name": "tabId", | 5131 "name": "tabId", |
5039 "description": "The id of the tab that was detached." | 5132 "description": "The id of the tab that was detached." |
5040 } | 5133 } |
5041 ] | 5134 ] |
5042 } | 5135 } |
5043 ] | 5136 ] |
5044 } | 5137 } |
5045 ] | 5138 ] |
OLD | NEW |