| 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 10 matching lines...) Expand all Loading... |
| 21 new_tab_page, | 21 new_tab_page, |
| 22 reload, | 22 reload, |
| 23 restart, | 23 restart, |
| 24 load_and_launch, | 24 load_and_launch, |
| 25 command_line, | 25 command_line, |
| 26 file_handler, | 26 file_handler, |
| 27 url_handler, | 27 url_handler, |
| 28 | 28 |
| 29 system_tray, | 29 system_tray, |
| 30 about_page, | 30 about_page, |
| 31 keyboard | 31 keyboard, |
| 32 |
| 33 settings_page, |
| 34 management_api, |
| 35 ephemeral, |
| 36 background, |
| 37 kiosk, |
| 38 chrome_internal |
| 32 }; | 39 }; |
| 33 | 40 |
| 34 // Optional data for the launch. Either <code>items</code>, or | 41 // Optional data for the launch. Either <code>items</code>, or |
| 35 // the pair (<code>url, referrerUrl</code>) can be present for any given | 42 // the pair (<code>url, referrerUrl</code>) can be present for any given |
| 36 // launch. | 43 // launch. |
| 37 [inline_doc] dictionary LaunchData { | 44 [inline_doc] dictionary LaunchData { |
| 38 // The ID of the file or URL handler that the app is being invoked with. | 45 // The ID of the file or URL handler that the app is being invoked with. |
| 39 // Handler IDs are the top-level keys in the <code>file_handlers</code> | 46 // Handler IDs are the top-level keys in the <code>file_handlers</code> |
| 40 // and/or <code>url_handlers</code> dictionaries in the manifest. | 47 // and/or <code>url_handlers</code> dictionaries in the manifest. |
| 41 DOMString? id; | 48 DOMString? id; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 static void onEmbedRequested(EmbedRequest request); | 94 static void onEmbedRequested(EmbedRequest request); |
| 88 | 95 |
| 89 // Fired when an app is launched from the launcher. | 96 // Fired when an app is launched from the launcher. |
| 90 static void onLaunched(optional LaunchData launchData); | 97 static void onLaunched(optional LaunchData launchData); |
| 91 | 98 |
| 92 // Fired at Chrome startup to apps that were running when Chrome last shut | 99 // Fired at Chrome startup to apps that were running when Chrome last shut |
| 93 // down. | 100 // down. |
| 94 static void onRestarted(); | 101 static void onRestarted(); |
| 95 }; | 102 }; |
| 96 }; | 103 }; |
| OLD | NEW |