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 2816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2827 }, | 2827 }, |
2828 "checked": { | 2828 "checked": { |
2829 "type": "boolean", | 2829 "type": "boolean", |
2830 "optional": true, | 2830 "optional": true, |
2831 "description": "The initial state of a checkbox or radio item: t
rue for selected and false for unselected. Only one radio item can be selected a
t a time in a given group of radio items." | 2831 "description": "The initial state of a checkbox or radio item: t
rue for selected and false for unselected. Only one radio item can be selected a
t a time in a given group of radio items." |
2832 }, | 2832 }, |
2833 "contexts": { | 2833 "contexts": { |
2834 "type": "array", | 2834 "type": "array", |
2835 "items": { | 2835 "items": { |
2836 "type": "string", | 2836 "type": "string", |
2837 "enum": ["all", "page", "frame", "selection", "link", "editabl
e", "image", "video", "audio"] | 2837 "enum": ["all", "page", "frame", "selection", "link", "editabl
e", "image", "video", "audio", "file"] |
2838 }, | 2838 }, |
2839 "minItems": 1, | 2839 "minItems": 1, |
2840 "optional": true, | 2840 "optional": true, |
2841 "description": "List of contexts this menu item will appear in.
Defaults to ['page'] if not specified." | 2841 "description": "List of contexts this menu item will appear in.
Defaults to ['page'] if not specified." |
2842 }, | 2842 }, |
2843 "onclick": { | 2843 "onclick": { |
2844 "type": "function", | 2844 "type": "function", |
2845 "optional": true, | 2845 "optional": true, |
2846 "description": "A function that will be called back when the men
u item is clicked.", | 2846 "description": "A function that will be called back when the men
u item is clicked.", |
2847 "parameters": [ | 2847 "parameters": [ |
(...skipping 1660 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":"fileBrowserPrivate", | 4518 "namespace":"fileSystem", |
4519 "nodoc": "true", | 4519 "nodoc": "true", |
4520 "functions": [ | 4520 "functions": [ |
4521 { | 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 }, |
| 4547 |
| 4548 { |
| 4549 "namespace":"fileBrowserPrivate", |
| 4550 "nodoc": "true", |
| 4551 "types": [ |
| 4552 { |
| 4553 "id": "FileBrowserTask", |
| 4554 "type": "object", |
| 4555 "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.", |
| 4556 "properties": { |
| 4557 "taskId": {"type": "string", "description": "The unique identifier of
the task."}, |
| 4558 "title": {"type": "string", "description": "Task title."}, |
| 4559 "iconUrl": {"type": "string", "description": "Task icon url (from chro
me://extension-icon/...)"} |
| 4560 } |
| 4561 } |
| 4562 ], |
| 4563 "functions": [ |
| 4564 { |
4522 "name": "requestLocalFileSystem", | 4565 "name": "requestLocalFileSystem", |
4523 "description": "Requests access to local file system", | 4566 "description": "Requests access to local file system", |
4524 "parameters": [ | 4567 "parameters": [ |
4525 { | 4568 { |
4526 "name": "callback", | 4569 "name": "callback", |
4527 "type": "function", | 4570 "type": "function", |
4528 "optional": "false", | 4571 "optional": "false", |
4529 "parameters": [ | 4572 "parameters": [ |
4530 { | 4573 { |
| 4574 "name" : "fileSystem", |
4531 "type": "object", | 4575 "type": "object", |
4532 "isInstanceOf": "DOMFileSystem" | 4576 "optional": "true", |
| 4577 "description": "A DOMFileSystem instance for local file system a
ccess. null if the caller has no appropriate permissions." |
| 4578 } |
| 4579 ] |
| 4580 } |
| 4581 ] |
| 4582 }, |
| 4583 { |
| 4584 "name": "getFileTasks", |
| 4585 "description": "Gets the of tasks that can be performed over selected fi
les.", |
| 4586 "parameters": [ |
| 4587 { |
| 4588 "name": "fileURLs", |
| 4589 "type": "array", |
| 4590 "description": "Array of selected file URLs", |
| 4591 "items": { "type": "string" } |
| 4592 }, |
| 4593 { |
| 4594 "name": "callback", |
| 4595 "type": "function", |
| 4596 "optional": "false", |
| 4597 "parameters": [ |
| 4598 { |
| 4599 "name": "tasks", |
| 4600 "type": "array", |
| 4601 "items": {"$ref": "FileBrowserTask"}, |
| 4602 "description": "The list of available tasks that can be performe
d on all of the passed file paths." |
| 4603 } |
| 4604 ] |
| 4605 } |
| 4606 ] |
| 4607 }, |
| 4608 { |
| 4609 "name": "executeTask", |
| 4610 "description": "Executes file browser task over selected files", |
| 4611 "parameters": [ |
| 4612 { |
| 4613 "name": "taskId", |
| 4614 "type": "string", |
| 4615 "description": "The unique identifier of task to execute." |
| 4616 }, |
| 4617 { |
| 4618 "name": "fileURLs", |
| 4619 "type": "array", |
| 4620 "description": "Array of file URLs", |
| 4621 "items": { "type": "string" } |
| 4622 }, |
| 4623 { |
| 4624 "name": "callback", |
| 4625 "type": "function", |
| 4626 "optional": "false", |
| 4627 "parameters": [ |
| 4628 { |
| 4629 "name": "success", |
| 4630 "type": "boolean", |
| 4631 "optional": "true", |
| 4632 "description": "True of task execution was successfully initiate
d." |
4533 } | 4633 } |
4534 ] | 4634 ] |
4535 } | 4635 } |
4536 ] | 4636 ] |
4537 }, | 4637 }, |
4538 { | 4638 { |
4539 "name": "selectFiles", | 4639 "name": "selectFiles", |
4540 "type": "function", | 4640 "type": "function", |
4541 "description": "Select multiple files.", | 4641 "description": "Select multiple files.", |
4542 "parameters": [ | 4642 "parameters": [ |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5022 { | 5122 { |
5023 "type": "integer", | 5123 "type": "integer", |
5024 "name": "tabId", | 5124 "name": "tabId", |
5025 "description": "The id of the tab that was detached." | 5125 "description": "The id of the tab that was detached." |
5026 } | 5126 } |
5027 ] | 5127 ] |
5028 } | 5128 } |
5029 ] | 5129 ] |
5030 } | 5130 } |
5031 ] | 5131 ] |
OLD | NEW |