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

Side by Side Diff: chrome/common/extensions/api/webstore.json

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor Cleanup Created 7 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 unified diff | Download patch
OLDNEW
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> module to initiate app and extension installations \"inline\" from your site.",
9 "availability": "15",
8 "functions": [ 10 "functions": [
9 { 11 {
10 "name": "install", 12 "name": "install",
11 "allowAmbiguousOptionalArguments": true, 13 "allowAmbiguousOptionalArguments": true,
12 "parameters": [ 14 "parameters": [
13 { 15 {
14 "name": "url", 16 "name": "url",
15 "type": "string", 17 "type": "string",
16 "optional": true, 18 "optional": true,
17 "description": "If you have more than one <code>&lt;link&gt;</code> tag on your page with the <code>chrome-webstore-item</code> relation, you can ch oose which item you'd like to install by passing in its URL here. If it is omitt ed, then the first (or only) link will be used. An exception will be thrown if t he passed in URL does not exist on the page." 19 "description": "If you have more than one <code>&lt;link&gt;</code> tag on your page with the <code>chrome-webstore-item</code> relation, you can ch oose which item you'd like to install by passing in its URL here. If it is omitt ed, then the first (or only) link will be used. An exception will be thrown if t he passed in URL does not exist on the page."
(...skipping 16 matching lines...) Expand all
34 "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." 36 "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."
35 } 37 }
36 ], 38 ],
37 "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." 39 "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."
38 } 40 }
39 ] 41 ]
40 } // install 42 } // install
41 ] 43 ]
42 } // webstore 44 } // webstore
43 ] 45 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698