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 callback NullCallback = void (); | 7 callback NullCallback = void (); |
8 | 8 |
9 // A WebIntents intent object. Deprecated. | 9 // A WebIntents intent object. Deprecated. |
10 [nodoc] dictionary Intent { | 10 [nodoc] dictionary Intent { |
(...skipping 26 matching lines...) Expand all Loading... |
37 [nodoc] Intent intent; | 37 [nodoc] Intent intent; |
38 | 38 |
39 // The id of the file handler that the app is being invoked with. | 39 // The id of the file handler that the app is being invoked with. |
40 DOMString? id; | 40 DOMString? id; |
41 | 41 |
42 LaunchItem[]? items; | 42 LaunchItem[]? items; |
43 }; | 43 }; |
44 | 44 |
45 interface Events { | 45 interface Events { |
46 // Fired when an app is launched from the launcher or in response to a web | 46 // Fired when an app is launched from the launcher or in response to a web |
47 // intent. | 47 // intent. Deprecated. |
48 static void onLaunched(optional LaunchData launchData); | 48 [nodoc] static void onLaunched(optional LaunchData launchData); |
49 | 49 |
50 // Fired at Chrome startup to apps that were running when Chrome last shut | 50 // Fired at Chrome startup to apps that were running when Chrome last shut |
51 // down. | 51 // down. |
52 static void onRestarted(); | 52 static void onRestarted(); |
53 }; | 53 }; |
54 | 54 |
55 dictionary IntentResponse { | 55 // Deprecated. |
| 56 [nodoc] dictionary IntentResponse { |
56 // Identifies the intent. | 57 // Identifies the intent. |
57 long intentId; | 58 long intentId; |
58 | 59 |
59 // Was this intent successful? (i.e., postSuccess vs postFailure). | 60 // Was this intent successful? (i.e., postSuccess vs postFailure). |
60 boolean success; | 61 boolean success; |
61 | 62 |
62 // Data associated with the intent response. | 63 // Data associated with the intent response. |
63 any data; | 64 any data; |
64 }; | 65 }; |
65 | 66 |
66 interface Functions { | 67 interface Functions { |
67 // postIntentResponse is an internal method to responds to an intent | 68 // postIntentResponse is an internal method to responds to an intent |
68 // previously sent to a packaged app. This is identified by intentId, and | 69 // previously sent to a packaged app. This is identified by intentId, and |
69 // should only be invoked at most once per intentId. | 70 // should only be invoked at most once per intentId. Deprecated. |
70 [nodoc] static void postIntentResponse(IntentResponse intentResponse); | 71 [nodoc] static void postIntentResponse(IntentResponse intentResponse); |
71 }; | 72 }; |
72 }; | 73 }; |
OLD | NEW |