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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/chrome/idl/webstore.json
diff --git a/third_party/chrome/idl/webstore.json b/third_party/chrome/idl/webstore.json
new file mode 100644
index 0000000000000000000000000000000000000000..454b7e476170007d8ce7ced3304537d85be2b336
--- /dev/null
+++ b/third_party/chrome/idl/webstore.json
@@ -0,0 +1,54 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[
+ {
+ "namespace": "webstore",
+
+ // Any webpage can use the webstore API.
+ "matches": [ "http://*/*", "https://*/*" ],
+
+ // Hosted apps can use the webstore API from within a blessed context.
+ "uses_feature_system": true,
+ "channel": "stable",
+ "extension_types": ["hosted_app"],
+ "contexts": ["blessed_extension"],
+ "dependencies": [],
+
+ "functions": [
+ {
+ "name": "install",
+ "allowAmbiguousOptionalArguments": true,
+ "parameters": [
+ {
+ "name": "url",
+ "type": "string",
+ "optional": true,
+ "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 choose which item you'd like to install by passing in its URL here. If it is omitted, then the first (or only) link will be used. An exception will be thrown if the passed in URL does not exist on the page."
+ },
+ {
+ "name": "successCallback",
+ "type": "function",
+ "optional": true,
+ "parameters": [],
+ "description": "This function is invoked when inline installation successfully completes (after the dialog is shown and the user agrees to add the item to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension."
+ },
+ {
+ "name": "failureCallback",
+ "type": "function",
+ "optional": true,
+ "parameters": [
+ {
+ "name": "error",
+ "type": "string",
+ "description": "The failure detail. You may wish to inspect or log this for debugging purposes, but you should not rely on specific strings being passed back."
+ }
+ ],
+ "description": "This function is invoked when inline installation does not successfully complete. Possible reasons for this include the user canceling the dialog, the linked item not being found in the store, or the install being initiated from a non-verified site."
+ }
+ ]
+ } // install
+ ]
+ } // webstore
+]
« 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