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

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: Fully reverted extension_service.cc to original form Created 7 years, 3 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 // Handler IDs are the top-level keys in the 'file_handlers' and/or
19 // 'url_handlers' dictionaries in the manifest.
not at google - send to devlin 2013/08/29 17:35:56 for all instance of 'foo' change to <code>foo</cod
sergeygs 2013/08/30 00:39:44 Done (the first option). I think docs for url_hand
18 DOMString? id; 20 DOMString? id;
19 21
22 // The file entries for onLaunched corresponding to a file handler
23 // from the 'file_handlers' key in the manifest.
20 LaunchItem[]? items; 24 LaunchItem[]? items;
25
26 // The URL for onLaunched corresponding to a URL handler from the
27 // 'url_handlers' key in the manifest.
28 DOMString? url;
29
30 // The referrer URL for onLaunched corresponding to a URL handler
31 // from the 'url_handlers' key in the manifest.
32 DOMString? referrerUrl;
21 }; 33 };
22 34
23 interface Events { 35 interface Events {
24 // Fired when an app is launched from the launcher. 36 // Fired when an app is launched from the launcher.
25 static void onLaunched(optional LaunchData launchData); 37 static void onLaunched(optional LaunchData launchData);
26 38
27 // Fired at Chrome startup to apps that were running when Chrome last shut 39 // Fired at Chrome startup to apps that were running when Chrome last shut
28 // down. 40 // down.
29 static void onRestarted(); 41 static void onRestarted();
30 }; 42 };
31 }; 43 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698