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

Unified Diff: chrome/common/extensions/api/appview_tag.json

Issue 921793004: <appview> documentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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": {
+ }
+ }
+]

Powered by Google App Engine
This is Rietveld 408576698