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

Unified Diff: chrome/common/extensions/api/experimental.downloads.json

Issue 9452019: experimental.downloads extension api docs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/experimental.downloads.json
diff --git a/chrome/common/extensions/api/experimental.downloads.json b/chrome/common/extensions/api/experimental.downloads.json
index 0df9c354829dc4cdbd236dd51270f201abafaacc..7b6026af172b66f740f43f8520571b318ebd6afe 100644
--- a/chrome/common/extensions/api/experimental.downloads.json
+++ b/chrome/common/extensions/api/experimental.downloads.json
@@ -1,7 +1,6 @@
[
{
"namespace": "experimental.downloads",
- "nodoc": "true",
"events": [
{
"name": "onCreated",
@@ -497,6 +496,7 @@
{
"name": "erase",
"type": "function",
+ "nodoc": "true",
"description": "Erase matching DownloadItems from history",
"parameters": [
{"name": "query", "$ref": "DownloadQuery"},
@@ -513,6 +513,7 @@
{
"name": "setDestination",
"type": "function",
+ "nodoc": "true",
"description": "Move the file to Downloads/relativePath instead of the Downloads directory if it has completed and pass true to callback. If |relativePath| specifies a directory that does not exist then it will be created. If it has not completed, store |relativePath| such that the file will be moved there when it completes and pass true to callback without waiting for the download to complete. Does nothing if the download is cancelled or if |downloadId| does not reference an existing DownloadItem, but pass false to callback. If the file could not be moved, then the DownloadItem will transition to STATE_INTERRUPTED, its |error| property will be set accordingly, false will be passed to callback, and the OnChanged event will fire.",
"parameters": [
{"name": "id", "type": "integer"},
@@ -522,6 +523,7 @@
{
"name": "acceptDanger",
"type": "function",
+ "nodoc": "true",
"description": "Accept a dangerous download. If a download is dangerous, then it will not transition to the completed state until this function is called.",
"parameters": [
{"name": "id", "type": "integer"}
@@ -530,6 +532,7 @@
{
"name": "show",
"type": "function",
+ "nodoc": "true",
"description": "Show the downloaded file in its folder.",
"parameters": [
{"name": "id", "type": "integer"}
@@ -538,6 +541,7 @@
{
"name": "drag",
"type": "function",
+ "nodoc": "true",
"description": "Drag the file to another application",
"parameters": [
{"name": "id", "type": "integer"}
« no previous file with comments | « no previous file | chrome/common/extensions/docs/experimental.html » ('j') | chrome/common/extensions/docs/themes.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698