Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: chrome/common/extensions/api/app_runtime.idl

Issue 10905306: Revert 156659 - Restart running apps when chrome restarts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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. 9 // A WebIntents intent object.
10 [inline_doc] dictionary Intent { 10 [inline_doc] dictionary Intent {
(...skipping 12 matching lines...) Expand all
23 // Callback to be compatible with WebIntents. 23 // Callback to be compatible with WebIntents.
24 NullCallback postFailure; 24 NullCallback postFailure;
25 }; 25 };
26 26
27 // Optional data for the launch. 27 // Optional data for the launch.
28 [inline_doc] dictionary LaunchData { 28 [inline_doc] dictionary LaunchData {
29 Intent intent; 29 Intent intent;
30 }; 30 };
31 31
32 interface Events { 32 interface Events {
33 // Fired when an app is launched from the launcher or in response to a web
34 // intent.
35 static void onLaunched(optional LaunchData launchData); 33 static void onLaunched(optional LaunchData launchData);
36
37 // Fired at Chrome startup to apps that were running when Chrome last shut
38 // down.
39 static void onRestarted();
40 }; 34 };
41 35
42 dictionary IntentResponse { 36 dictionary IntentResponse {
43 // Identifies the intent. 37 // Identifies the intent.
44 long intentId; 38 long intentId;
45 39
46 // Was this intent successful? (i.e., postSuccess vs postFailure). 40 // Was this intent successful? (i.e., postSuccess vs postFailure).
47 boolean success; 41 boolean success;
48 42
49 // Data associated with the intent response. 43 // Data associated with the intent response.
50 any data; 44 any data;
51 }; 45 };
52 46
53 interface Functions { 47 interface Functions {
54 // postIntentResponse is an internal method to responds to an intent 48 // postIntentResponse is an internal method to responds to an intent
55 // previously sent to a packaged app. This is identified by intentId, and 49 // previously sent to a packaged app. This is identified by intentId, and
56 // should only be invoked at most once per intentId. 50 // should only be invoked at most once per intentId.
57 [nodoc] static void postIntentResponse(IntentResponse intentResponse); 51 [nodoc] static void postIntentResponse(IntentResponse intentResponse);
58 }; 52 };
59 }; 53 };
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/common/extensions/docs/apps/app.runtime.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698