| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 enabled, | 59 enabled, |
| 60 // Indicates that the play store is available but not enabled. | 60 // Indicates that the play store is available but not enabled. |
| 61 available, | 61 available, |
| 62 // Indicates that the play store status is unknown. | 62 // Indicates that the play store status is unknown. |
| 63 unknown | 63 unknown |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 // Optional data that includes action-specific launch information. | 66 // Optional data that includes action-specific launch information. |
| 67 dictionary ActionData { | 67 dictionary ActionData { |
| 68 ActionType actionType; | 68 ActionType actionType; |
| 69 |
| 70 // <p>Whether the action was requested on Chrome OS lock screen.</p> |
| 71 // <p> |
| 72 // Launch events with this valued set to <code>true</code> are fired |
| 73 // in lock screen context, where apps have reduced access to extension |
| 74 // APIs, but are able to create windows on lock screen. |
| 75 // </p> |
| 76 // <p> |
| 77 // Note that this value will be set to <code>true</code> only if the app |
| 78 // is set as the lock screen enabled action handler by the user. |
| 79 // </p> |
| 80 [nodoc] boolean? isLockScreenAction; |
| 69 }; | 81 }; |
| 70 | 82 |
| 71 // Optional data for the launch. Either <code>items</code>, or | 83 // Optional data for the launch. Either <code>items</code>, or |
| 72 // the pair (<code>url, referrerUrl</code>) can be present for any given | 84 // the pair (<code>url, referrerUrl</code>) can be present for any given |
| 73 // launch. | 85 // launch. |
| 74 [inline_doc] dictionary LaunchData { | 86 [inline_doc] dictionary LaunchData { |
| 75 // The ID of the file or URL handler that the app is being invoked with. | 87 // The ID of the file or URL handler that the app is being invoked with. |
| 76 // Handler IDs are the top-level keys in the <code>file_handlers</code> | 88 // Handler IDs are the top-level keys in the <code>file_handlers</code> |
| 77 // and/or <code>url_handlers</code> dictionaries in the manifest. | 89 // and/or <code>url_handlers</code> dictionaries in the manifest. |
| 78 DOMString? id; | 90 DOMString? id; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 153 |
| 142 // Fired at Chrome startup to apps that were running when Chrome last shut | 154 // 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 | 155 // 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 | 156 // 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 | 157 // 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 | 158 // apps do not have an <code>onRestarted</code> handler they will be sent |
| 147 // an <code>onLaunched </code> event instead. | 159 // an <code>onLaunched </code> event instead. |
| 148 static void onRestarted(); | 160 static void onRestarted(); |
| 149 }; | 161 }; |
| 150 }; | 162 }; |
| OLD | NEW |