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 // 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 interface Events { | 45 interface Events { |
46 // Fired when an app is launched from the launcher. | 46 // Fired when an app is launched from the launcher. |
47 static void onLaunched(optional LaunchData launchData); | 47 static void onLaunched(optional LaunchData launchData); |
48 | 48 |
49 // Fired at Chrome startup to apps that were running when Chrome last shut | 49 // Fired at Chrome startup to apps that were running when Chrome last shut |
50 // down. | 50 // down. |
51 static void onRestarted(); | 51 static void onRestarted(); |
52 }; | 52 }; |
53 }; | 53 }; |
OLD | NEW |