OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "webstore", | 7 "namespace": "webstore", |
8 "description": "Use the <code>chrome.webstore</code> API to initiate app and extension installations \"inline\" from your site.", | 8 "description": "Use the <code>chrome.webstore</code> API to initiate app and extension installations \"inline\" from your site.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
11 "id": "InstallStage", | 11 "id": "InstallStage", |
12 "type": "string", | 12 "type": "string", |
13 "enum": ["installing", "downloading"], | 13 "enum": ["installing", "downloading"], |
14 "description": "Enum used to indicate the stage of the installation proc ess. 'downloading' indicates that the necessary files are being downloaded, and 'installing' indicates that the files are downloaded and are being actively inst alled." | 14 "description": "Enum used to indicate the stage of the installation proc ess. 'downloading' indicates that the necessary files are being downloaded, and 'installing' indicates that the files are downloaded and are being actively inst alled." |
15 }, | |
16 { | |
not at google - send to devlin
2014/07/10 20:54:27
Add a comment in here (we support comments in the
Devlin
2014/07/10 22:11:43
Ah, forgot we allowed comments in our json. Done.
| |
17 "id": "ErrorCode", | |
18 "type": "string", | |
19 "enum": [{"description": "An uncommon, unrecognized, or unexpected error . In some cases, the readable error string can provide more information.", "name ": "otherError"}, {"description": "The operation was aborted as the requestor is no longer alive.", "name": "aborted"}, {"description": "The installation is not permitted.", "name": "notPermitted"}, {"description": "Invalid Chrome Web Store item ID.", "name": "invalidId"}, {"description": "Failed to retrieve extension metadata from the Web Store.", "name": "webstoreRequestError"}, {"description": "The extension metadata retrieved from the Web Store was invalid.", "name": "inv alidWebstoreResponse"}, {"description": "An error occurred while parsing the ext ension manifest retrieved from the Web Store.", "name": "invalidManifest"}, {"de scription": "Failed to retrieve the extension's icon from the Web Store, or the icon was invalid.", "name": "iconError"}, {"description": "The user canceled the operation.", "name": "userCanceled"}, {"description": "The extension is blackli sted.", "name": "blacklisted"}, {"description": "Unsatisfied dependencies, such as shared modules.", "name": "missingDependencies"}, {"description": "Unsatisfie d requirements, such as webgl.", "name": "requirementViolations"}, {"description ": "The extension is blocked by management policies.", "name": "blockedByPolicy" }, {"description": "The launch feature is not available.", "name": "launchFeatur eDisabled"}, {"description": "The launch feature is not supported for the extens ion type.", "name": "launchUnsupportedExtensionType"}], | |
not at google - send to devlin
2014/07/10 20:54:27
aand this needs a format (as discussed)
Devlin
2014/07/10 22:11:43
Done.
| |
20 "description": "Enum of the possible install results, including error co des sent back in the event that an inline installation has failed." | |
15 } | 21 } |
16 ], // types | 22 ], // types |
17 "events": [ | 23 "events": [ |
18 { | 24 { |
19 "name": "onInstallStageChanged", | 25 "name": "onInstallStageChanged", |
20 "description": "Fired when an inline installation enters a new InstallSt age. In order to receive notifications about this event, listeners must be regis tered before the inline installation begins.", | 26 "description": "Fired when an inline installation enters a new InstallSt age. In order to receive notifications about this event, listeners must be regis tered before the inline installation begins.", |
21 "type": "function", | 27 "type": "function", |
22 "parameters": [ | 28 "parameters": [ |
23 { | 29 { |
24 "name": "stage", | 30 "name": "stage", |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 }, | 66 }, |
61 { | 67 { |
62 "name": "failureCallback", | 68 "name": "failureCallback", |
63 "type": "function", | 69 "type": "function", |
64 "optional": true, | 70 "optional": true, |
65 "parameters": [ | 71 "parameters": [ |
66 { | 72 { |
67 "name": "error", | 73 "name": "error", |
68 "type": "string", | 74 "type": "string", |
69 "description": "The failure detail. You may wish to inspect or l og this for debugging purposes, but you should not rely on specific strings bein g passed back." | 75 "description": "The failure detail. You may wish to inspect or l og this for debugging purposes, but you should not rely on specific strings bein g passed back." |
76 }, | |
77 { | |
78 "name": "errorCode", | |
79 "$ref": "ErrorCode", | |
80 "optional": "true", | |
81 "description": "The error code from the stable set of possible e rrors." | |
70 } | 82 } |
71 ], | 83 ], |
72 "description": "This function is invoked when inline installation do es not successfully complete. Possible reasons for this include the user canceli ng the dialog, the linked item not being found in the store, or the install bein g initiated from a non-verified site." | 84 "description": "This function is invoked when inline installation do es not successfully complete. Possible reasons for this include the user canceli ng the dialog, the linked item not being found in the store, or the install bein g initiated from a non-verified site." |
73 } | 85 } |
74 ] | 86 ] |
75 } // install | 87 } // install |
76 ] // functions | 88 ] // functions |
77 } // webstore | 89 } // webstore |
78 ] | 90 ] |
OLD | NEW |