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

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

Issue 354483004: Implement <appview> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@app_view_skeleton
Patch Set: Addressed Istiaque's comments Created 6 years, 5 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
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 24 matching lines...) Expand all
35 // The referrer URL for the <code>onLaunched</code> event triggered by a 35 // The referrer URL for the <code>onLaunched</code> event triggered by a
36 // matching URL handler in the <code>url_handlers</code> manifest key. 36 // matching URL handler in the <code>url_handlers</code> manifest key.
37 DOMString? referrerUrl; 37 DOMString? referrerUrl;
38 38
39 // Whether the app is being launched in a <a 39 // Whether the app is being launched in a <a
40 // href="https://support.google.com/chromebook/answer/3134673">Chrome OS 40 // href="https://support.google.com/chromebook/answer/3134673">Chrome OS
41 // kiosk session</a>. 41 // kiosk session</a>.
42 boolean? isKioskSession; 42 boolean? isKioskSession;
43 }; 43 };
44 44
45 [inline_doc] dictionary AppEmbeddingRequest {
not at google - send to devlin 2014/07/08 20:54:14 inline_doc is automatic for types that are only us
Fady Samuel 2014/07/08 21:53:10 Done.
46 long? id;
47
48 DOMString embedderExtensionId;
49
50 [nocompile] static void allow(DOMString url, object api, DOMString schema);
51
52 [nocompile] static void deny();
not at google - send to devlin 2014/07/08 20:54:14 these all need comments
Fady Samuel 2014/07/08 21:53:10 Done.
53 };
54
45 interface Events { 55 interface Events {
56 // Fired when an embedding app requests to embed this app.
57 static void onAppEmbeddingRequest(AppEmbeddingRequest request);
not at google - send to devlin 2014/07/08 20:54:14 hum. this change needs to go through actual API re
Fady Samuel 2014/07/08 21:53:10 I'll write up an API proposal in parallel. appview
not at google - send to devlin 2014/07/08 22:10:46 That's not quite true, this event can still be lis
Fady Samuel 2014/07/09 15:15:48 Done.
58
46 // Fired when an app is launched from the launcher. 59 // Fired when an app is launched from the launcher.
47 static void onLaunched(optional LaunchData launchData); 60 static void onLaunched(optional LaunchData launchData);
48 61
49 // Fired at Chrome startup to apps that were running when Chrome last shut 62 // Fired at Chrome startup to apps that were running when Chrome last shut
50 // down. 63 // down.
51 static void onRestarted(); 64 static void onRestarted();
52 }; 65 };
53 }; 66 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698