Chromium Code Reviews| 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 4476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4487 { | 4487 { |
| 4488 "name": "onDisabled", | 4488 "name": "onDisabled", |
| 4489 "description": "Fired when an app or extension has been disabled", | 4489 "description": "Fired when an app or extension has been disabled", |
| 4490 "type": "function", | 4490 "type": "function", |
| 4491 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 4491 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
| 4492 } | 4492 } |
| 4493 ] | 4493 ] |
| 4494 }, | 4494 }, |
| 4495 | 4495 |
| 4496 { | 4496 { |
| 4497 "namespace":"fileSystem", | |
| 4498 "nodoc": "true", | |
| 4499 "functions": [ | |
| 4500 { | |
| 4501 "name": "resolveLocalFileSystemURL", | |
| 4502 "description": "Allows the user to look up the Entry for a file or direc tory referred to by a local URL. ", | |
| 4503 "parameters": [ | |
| 4504 { | |
| 4505 "name": "url", | |
| 4506 "type": "string", | |
| 4507 "description": "A URL referring to a local file in a filesystem." | |
| 4508 }, | |
| 4509 { | |
| 4510 "name": "callback", | |
| 4511 "type": "function", | |
| 4512 "optional": "false", | |
| 4513 "parameters": [ | |
| 4514 { | |
| 4515 "name" : "entry", | |
| 4516 "type": "object", | |
| 4517 "optional": "true", | |
| 4518 "description": "An Entry as a response to a file resolution requ est. It will have value of null if the request failed." | |
| 4519 } | |
| 4520 ] | |
| 4521 } | |
| 4522 ] | |
| 4523 } | |
| 4524 ] | |
| 4525 }, | |
| 4526 | |
| 4527 { | |
| 4497 "namespace":"fileBrowserPrivate", | 4528 "namespace":"fileBrowserPrivate", |
| 4498 "nodoc": "true", | 4529 "nodoc": "true", |
| 4530 "types": [ | |
| 4531 { | |
| 4532 "id": "FileBrowserTask", | |
| 4533 "type": "object", | |
| 4534 "description": "Represents information about available browser tasks.", | |
| 4535 "properties": { | |
| 4536 "taskId": {"type": "string", "description": "The unique identifier of the task."}, | |
| 4537 "title": {"type": "string", "description": "Task title."}, | |
| 4538 "iconUrl": {"type": "string", "description": "Task icon url (from chro me://extension-icon/...)"} | |
| 4539 } | |
| 4540 } | |
| 4541 ], | |
| 4499 "functions": [ | 4542 "functions": [ |
| 4500 { | 4543 { |
| 4501 "name": "requestLocalFileSystem", | 4544 "name": "requestLocalFileSystem", |
| 4502 "description": "Requests access to local file system", | 4545 "description": "Requests access to local file system", |
| 4503 "parameters": [ | 4546 "parameters": [ |
| 4504 { | 4547 { |
| 4505 "name": "callback", | 4548 "name": "callback", |
| 4506 "type": "function", | 4549 "type": "function", |
| 4507 "optional": "false", | 4550 "optional": "false", |
| 4508 "parameters": [ | 4551 "parameters": [ |
| 4509 { | 4552 { |
| 4553 "name" : "fileSystem", | |
| 4510 "type": "object", | 4554 "type": "object", |
| 4511 "isInstanceOf": "DOMFileSystem" | 4555 "optional": "true", |
| 4556 "description": "An DOMFileSystem instance for local file system access. null if the caller has no appropriate permissions." | |
|
asargent_no_longer_on_chrome
2011/04/04 18:21:25
nit: "An" -> "A"
zel
2011/04/06 00:06:33
Done.
| |
| 4557 } | |
| 4558 ] | |
| 4559 } | |
| 4560 ] | |
| 4561 }, | |
| 4562 { | |
| 4563 "name": "getFileTasks", | |
| 4564 "description": "Requests access to local file system", | |
|
asargent_no_longer_on_chrome
2011/04/04 18:21:25
nit: looks like this description was cut-and-paste
zel
2011/04/06 00:06:33
Done.
| |
| 4565 "parameters": [ | |
| 4566 { | |
| 4567 "name": "fileURLs", | |
| 4568 "type": "array", | |
| 4569 "description": "Array of selected file URLs", | |
| 4570 "items": { "type": "string" } | |
| 4571 }, | |
| 4572 { | |
| 4573 "name": "callback", | |
| 4574 "type": "function", | |
| 4575 "optional": "false", | |
| 4576 "parameters": [ | |
| 4577 { | |
| 4578 "name": "tasks", | |
| 4579 "type": "array", | |
| 4580 "items": {"$ref": "FileBrowserTask"}, | |
| 4581 "description": "The list of available tasks that can be performe d on all of the passed file paths." | |
| 4582 } | |
| 4583 ] | |
| 4584 } | |
| 4585 ] | |
| 4586 }, | |
| 4587 { | |
| 4588 "name": "executeTask", | |
| 4589 "description": "Executes file browser task over selected files", | |
| 4590 "parameters": [ | |
| 4591 { | |
| 4592 "name": "taskId", | |
| 4593 "type": "string", | |
| 4594 "description": "The unique identifier of task to execute." | |
| 4595 }, | |
| 4596 { | |
| 4597 "name": "fileURLs", | |
| 4598 "type": "array", | |
| 4599 "description": "Array of file URLs", | |
| 4600 "items": { "type": "string" } | |
| 4601 }, | |
| 4602 { | |
| 4603 "name": "callback", | |
| 4604 "type": "function", | |
| 4605 "optional": "false", | |
| 4606 "parameters": [ | |
| 4607 { | |
| 4608 "name": "success", | |
| 4609 "type": "boolean", | |
| 4610 "optional": "true", | |
| 4611 "description": "True of task execution was successfully initiate d." | |
| 4512 } | 4612 } |
| 4513 ] | 4613 ] |
| 4514 } | 4614 } |
| 4515 ] | 4615 ] |
| 4516 } | 4616 } |
| 4517 ] | 4617 ] |
| 4518 }, | 4618 }, |
| 4519 | 4619 |
| 4520 { | 4620 { |
| 4521 "namespace":"webstorePrivate", | 4621 "namespace":"webstorePrivate", |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4911 { | 5011 { |
| 4912 "type": "integer", | 5012 "type": "integer", |
| 4913 "name": "tabId", | 5013 "name": "tabId", |
| 4914 "description": "The id of the tab that was detached." | 5014 "description": "The id of the tab that was detached." |
| 4915 } | 5015 } |
| 4916 ] | 5016 ] |
| 4917 } | 5017 } |
| 4918 ] | 5018 ] |
| 4919 } | 5019 } |
| 4920 ] | 5020 ] |
| OLD | NEW |