Index: chrome/common/extensions/api/appview_tag.json |
diff --git a/chrome/common/extensions/api/appview_tag.json b/chrome/common/extensions/api/appview_tag.json |
new file mode 100644 |
index 0000000000000000000000000000000000000000..329a193cd6e8cc73312cf4c789e4c4da92cde3c0 |
--- /dev/null |
+++ b/chrome/common/extensions/api/appview_tag.json |
@@ -0,0 +1,83 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
not at google - send to devlin
2015/03/02 23:08:10
2015
lfg
2015/03/03 20:48:47
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+[ |
+ { |
+ "namespace": "appviewTag", |
not at google - send to devlin
2015/03/02 23:08:10
Consider writing this in IDL instead of JSON.
lfg
2015/03/03 20:48:47
Done.
|
+ "description": "Use the <code>appview</code> tag to embed other Chrome Apps within your Chrome App. (see <a href=\"#usage\">Usage</a>).", |
+ "documentation_options": { |
+ "title": "<appview> Tag", |
+ "namespace": "<appview>", |
+ "documented_in": "tags/appview" |
+ }, |
+ "types": [ |
+ { |
+ "id": "EmbedRequest", |
+ "type": "object", |
+ "description": "This object specifies details and operations to perform on the embedding request. The app to be embedded can make a decision on whether or not to allow the embedding and what to embed based on the embedder making the request.", |
+ "properties": { |
+ "data": { |
+ "type": "object", |
+ "description": "Optional developer specified data that the app to be embedded can use when making an embedding decision.", |
+ "properties": {} |
+ } |
+ }, |
+ "functions": [ |
+ { |
+ "name": "allow", |
+ "description": "Allows the embedding request.", |
+ "parameters": [ |
+ { |
+ "type": "string", |
+ "name": "url", |
+ "description": "Specifies the content to be embedded." |
+ } |
+ ] |
+ }, |
+ { |
+ "name": "deny", |
+ "description": "Prevents the embedding request." |
+ } |
+ ] |
+ } |
+ ], |
+ "functions": [ |
+ { |
+ "name": "connect", |
+ "type": "function", |
+ "description": "Requests another app to be embedded.", |
+ "parameters": [ |
+ { |
+ "name": "app", |
+ "type": "string", |
+ "description": "The extension id of the app to be embedded." |
+ }, |
+ { |
+ "name": "data", |
+ "type": "any", |
+ "optional": true, |
+ "description": "Optional developer specified data that the app to be embedded can use when making an embedding decision." |
+ }, |
+ { |
+ "type": "function", |
+ "name": "callback", |
+ "optional": true, |
+ "description": "An optional function that's called after the embedding request is completed.", |
+ "parameters": [ |
+ { |
+ "name": "success", |
+ "type": "boolean", |
+ "description": "True if the embedding request succeded." |
+ } |
+ ] |
+ } |
+ ] |
+ } |
+ ], |
+ "events": [ |
+ ], |
+ "properties": { |
+ } |
+ } |
+] |