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

Side by Side Diff: extensions/common/api/app_runtime.idl

Issue 460133002: Allow passing parameters within appview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed params to data Created 6 years, 4 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
« no previous file with comments | « chrome/test/data/extensions/platform_apps/app_view/shim/skeleton/main.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Use the <code>chrome.app.runtime</code> API to manage the app lifecycle. 5 // Use the <code>chrome.app.runtime</code> API to manage the app lifecycle.
6 // The app runtime manages app installation, controls the event page, and can 6 // The app runtime manages app installation, controls the event page, and can
7 // shut down the app at anytime. 7 // shut down the app at anytime.
8 namespace app.runtime { 8 namespace app.runtime {
9 9
10 [inline_doc] dictionary LaunchItem { 10 [inline_doc] dictionary LaunchItem {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 boolean? isKioskSession; 42 boolean? isKioskSession;
43 }; 43 };
44 44
45 // This object specifies details and operations to perform on the embedding 45 // This object specifies details and operations to perform on the embedding
46 // request. The app to be embedded can make a decision on whether or not to 46 // request. The app to be embedded can make a decision on whether or not to
47 // allow the embedding and what to embed based on the embedder making the 47 // allow the embedding and what to embed based on the embedder making the
48 // request. 48 // request.
49 dictionary EmbedRequest { 49 dictionary EmbedRequest {
50 DOMString embedderId; 50 DOMString embedderId;
51 51
52 // Optional developer specified data that the app to be embedded can use
53 // when making an embedding decision.
54 any? data;
55
52 // Allows <code>embedderId</code> to embed this app in an &lt;appview&gt; 56 // Allows <code>embedderId</code> to embed this app in an &lt;appview&gt;
53 // element. The <code>url</code> specifies the content to embed. 57 // element. The <code>url</code> specifies the content to embed.
54 [nocompile] static void allow(DOMString url); 58 [nocompile] static void allow(DOMString url);
55 59
56 // Prevents <code> embedderId</code> from embedding this app in an 60 // Prevents <code> embedderId</code> from embedding this app in an
57 // &lt;appview&gt; element. 61 // &lt;appview&gt; element.
58 [nocompile] static void deny(); 62 [nocompile] static void deny();
59 }; 63 };
60 64
61 interface Events { 65 interface Events {
62 // Fired when an embedding app requests to embed this app. This event is 66 // Fired when an embedding app requests to embed this app. This event is
63 // only available on dev channel with the flag --enable-app-view. 67 // only available on dev channel with the flag --enable-app-view.
64 static void onEmbedRequested(EmbedRequest request); 68 static void onEmbedRequested(EmbedRequest request);
65 69
66 // Fired when an app is launched from the launcher. 70 // Fired when an app is launched from the launcher.
67 static void onLaunched(optional LaunchData launchData); 71 static void onLaunched(optional LaunchData launchData);
68 72
69 // Fired at Chrome startup to apps that were running when Chrome last shut 73 // Fired at Chrome startup to apps that were running when Chrome last shut
70 // down. 74 // down.
71 static void onRestarted(); 75 static void onRestarted();
72 }; 76 };
73 }; 77 };
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/platform_apps/app_view/shim/skeleton/main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698