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

Side by Side Diff: third_party/chrome/idl/webstore.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 [
6 {
7 "namespace": "webstore",
8
9 // Any webpage can use the webstore API.
10 "matches": [ "http://*/*", "https://*/*" ],
11
12 // Hosted apps can use the webstore API from within a blessed context.
13 "uses_feature_system": true,
14 "channel": "stable",
15 "extension_types": ["hosted_app"],
16 "contexts": ["blessed_extension"],
17 "dependencies": [],
18
19 "functions": [
20 {
21 "name": "install",
22 "allowAmbiguousOptionalArguments": true,
23 "parameters": [
24 {
25 "name": "url",
26 "type": "string",
27 "optional": true,
28 "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."
29 },
30 {
31 "name": "successCallback",
32 "type": "function",
33 "optional": true,
34 "parameters": [],
35 "description": "This function is invoked when inline installation su ccessfully completes (after the dialog is shown and the user agrees to add the i tem to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension."
36 },
37 {
38 "name": "failureCallback",
39 "type": "function",
40 "optional": true,
41 "parameters": [
42 {
43 "name": "error",
44 "type": "string",
45 "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."
46 }
47 ],
48 "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."
49 }
50 ]
51 } // install
52 ]
53 } // webstore
54 ]
OLDNEW
« no previous file with comments | « third_party/chrome/idl/web_socket_proxy_private.json ('k') | third_party/chrome/idl/webstore_private.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698