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 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; | |
not at google - send to devlin
2013/08/19 23:32:24
The docs are going to be generated by this; number
sergeygs
2013/08/29 08:24:42
Done.
| |
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 }; |
OLD | NEW |