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

Unified Diff: chrome/common/extensions/api/webstore.json

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 9 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/api/webstore/webstore_api_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/webstore.json
diff --git a/chrome/common/extensions/api/webstore.json b/chrome/common/extensions/api/webstore.json
index 31cbd2d01239d79f5abb53706727928da82a6cd2..38d6de3867c759d05a45a0b995e281dc5e979ce9 100644
--- a/chrome/common/extensions/api/webstore.json
+++ b/chrome/common/extensions/api/webstore.json
@@ -6,6 +6,40 @@
{
"namespace": "webstore",
"description": "Use the <code>chrome.webstore</code> API to initiate app and extension installations \"inline\" from your site.",
+ "types": [
+ {
+ "id": "InstallStage",
+ "type": "string",
+ "enum": ["installing", "downloading"],
+ "description": "Enum used to indicate the stage of the installation process. 'downloading' indicates that the necessary files are being downloaded, and 'installing' indicates that the files are downloaded and are being actively installed."
+ }
+ ], // types
+ "events": [
+ {
+ "name": "onInstallStageChanged",
+ "description": "Fired when an inline installation enters a new InstallStage. In order to receive notifications about this event, listeners must be registered before the inline installation begins.",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "stage",
+ "$ref": "InstallStage",
+ "description": "The InstallStage that just began."
+ }
+ ]
+ }, // onInstallStageChanged
+ {
+ "name": "onDownloadProgress",
+ "description": "Fired periodically with the download progress of an inline install. In order to receive notifications about this event, listeners must be registered before the inline installation begins.",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "percentDownloaded",
+ "type": "number",
+ "description": "The progress of the download, between 0 and 1. 0 indicates no progress; 1.0 indicates complete."
+ }
+ ]
+ } // onDownloadProgress
+ ], // events
"functions": [
{
"name": "install",
@@ -39,6 +73,6 @@
}
]
} // install
- ]
+ ] // functions
} // webstore
]
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/api/webstore/webstore_api_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698