OLD | NEW |
---|---|
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 <code>file_handlers</code> | |
19 // and/or <code>url_handlers</code> dictionaries in the manifest. | |
18 DOMString? id; | 20 DOMString? id; |
19 | 21 |
22 // The file entries for <code>onLaunched</code> triggered by a matching | |
23 // file handler from the <code>file_handlers</code> manifest key. | |
20 LaunchItem[]? items; | 24 LaunchItem[]? items; |
25 | |
26 // The URL for <code>onLaunched</code> triggered by a matching URL handler | |
27 // from the <code>url_handlers</code> manifest key. | |
benwells
2013/08/30 05:41:39
Can you foresee a need to send through multiple UR
sergeygs
2013/09/02 07:36:22
I really do not foresee such a need, at least not
| |
28 DOMString? url; | |
29 | |
30 // The referrer URL for <code>onLaunched</code> triggered by a matching | |
31 // URL handler from the <code>url_handlers</code> manifest key. | |
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 }; |
OLD | NEW |