| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Use the <code>chrome.app.runtime</code> API to manage the app lifecycle. | 5 // Use the <code>chrome.app.runtime</code> API to manage the app lifecycle. |
| 6 // The app runtime manages app installation, controls the event page, and can | 6 // The app runtime manages app installation, controls the event page, and can |
| 7 // shut down the app at anytime. | 7 // shut down the app at anytime. |
| 8 namespace app.runtime { | 8 namespace app.runtime { |
| 9 | 9 |
| 10 [inline_doc] dictionary LaunchItem { | 10 [inline_doc] dictionary LaunchItem { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 boolean? isPublicSession; | 100 boolean? isPublicSession; |
| 101 | 101 |
| 102 // Where the app is launched from. | 102 // Where the app is launched from. |
| 103 LaunchSource? source; | 103 LaunchSource? source; |
| 104 | 104 |
| 105 // Contains data that specifies the <code>ActionType</code> this app was | 105 // Contains data that specifies the <code>ActionType</code> this app was |
| 106 // launched with. This is null if the app was not launched with a specific | 106 // launched with. This is null if the app was not launched with a specific |
| 107 // action intent. | 107 // action intent. |
| 108 ActionData? actionData; | 108 ActionData? actionData; |
| 109 | 109 |
| 110 // Internal fields used to indicate ARC++ status on the device. | 110 // Internal fields used to indicate ARC status on the device. |
| 111 [nodoc] PlayStoreStatus? playStoreStatus; | 111 [nodoc] PlayStoreStatus? playStoreStatus; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 // This object specifies details and operations to perform on the embedding | 114 // This object specifies details and operations to perform on the embedding |
| 115 // request. The app to be embedded can make a decision on whether or not to | 115 // request. The app to be embedded can make a decision on whether or not to |
| 116 // allow the embedding and what to embed based on the embedder making the | 116 // allow the embedding and what to embed based on the embedder making the |
| 117 // request. | 117 // request. |
| 118 dictionary EmbedRequest { | 118 dictionary EmbedRequest { |
| 119 DOMString embedderId; | 119 DOMString embedderId; |
| 120 | 120 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 141 | 141 |
| 142 // Fired at Chrome startup to apps that were running when Chrome last shut | 142 // Fired at Chrome startup to apps that were running when Chrome last shut |
| 143 // down, or when apps have been requested to restart from their previous | 143 // down, or when apps have been requested to restart from their previous |
| 144 // state for other reasons (e.g. when the user revokes access to an app's | 144 // state for other reasons (e.g. when the user revokes access to an app's |
| 145 // retained files the runtime will restart the app). In these situations if | 145 // retained files the runtime will restart the app). In these situations if |
| 146 // apps do not have an <code>onRestarted</code> handler they will be sent | 146 // apps do not have an <code>onRestarted</code> handler they will be sent |
| 147 // an <code>onLaunched </code> event instead. | 147 // an <code>onLaunched </code> event instead. |
| 148 static void onRestarted(); | 148 static void onRestarted(); |
| 149 }; | 149 }; |
| 150 }; | 150 }; |
| OLD | NEW |