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

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

Issue 22944002: Implementation of the "Redirect URLs to Packaged Apps" feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 namespace app.runtime { 5 namespace app.runtime {
6 6
7 [inline_doc] dictionary LaunchItem { 7 [inline_doc] dictionary LaunchItem {
8 // FileEntry for the file. 8 // FileEntry for the file.
9 [instanceOf=FileEntry] object entry; 9 [instanceOf=FileEntry] object entry;
10 10
11 // The MIME type of the file. 11 // The MIME type of the file.
12 DOMString type; 12 DOMString type;
13 }; 13 };
14 14
15 // Optional data for the launch. 15 // Optional data for the launch.
16 [inline_doc] dictionary LaunchData { 16 [inline_doc] dictionary LaunchData {
17 // The id of the file handler that the app is being invoked with. 17 // The id of the file or URL handler that the app is being invoked with.
18 DOMString? id; 18 DOMString? id;
19 19
20 // Option 1: the file enries for onLaunched corresponding to a file
21 // handler (file_handlers in the manifest).
20 LaunchItem[]? items; 22 LaunchItem[]? items;
23
24 // Option 2: the URL and referrer's URL for onLaunched corresponding to
25 // a URL handler (url_handlers in the manifest).
26 DOMString? url;
27 DOMString? referrerUrl;
asargent_no_longer_on_chrome 2013/08/14 18:05:12 We might consider wrapping these 2 together into a
sergeygs 2013/08/18 11:40:24 This would be visible on the external API side, in
21 }; 28 };
22 29
23 interface Events { 30 interface Events {
24 // Fired when an app is launched from the launcher. 31 // Fired when an app is launched from the launcher.
25 static void onLaunched(optional LaunchData launchData); 32 static void onLaunched(optional LaunchData launchData);
26 33
27 // Fired at Chrome startup to apps that were running when Chrome last shut 34 // Fired at Chrome startup to apps that were running when Chrome last shut
28 // down. 35 // down.
29 static void onRestarted(); 36 static void onRestarted();
30 }; 37 };
31 }; 38 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698