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

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

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 ();
benwells 2013/02/11 08:04:44 Nit: NullCallback is not needed anymore.
Nico 2013/02/11 15:16:12 Done.
8 8
9 // A WebIntents intent object. Deprecated.
10 [nodoc] dictionary Intent {
11 // The WebIntent being invoked.
12 DOMString action;
13
14 // The MIME type of the data.
15 DOMString type;
16
17 // Data associated with the intent.
18 any data;
19
20 // Callback to be compatible with WebIntents.
21 NullCallback postResult;
22
23 // Callback to be compatible with WebIntents.
24 NullCallback postFailure;
25 };
26
27 [inline_doc] dictionary LaunchItem { 9 [inline_doc] dictionary LaunchItem {
28 // FileEntry for the file. 10 // FileEntry for the file.
29 [instanceOf=FileEntry] object entry; 11 [instanceOf=FileEntry] object entry;
30 12
31 // The MIME type of the file. 13 // The MIME type of the file.
32 DOMString type; 14 DOMString type;
33 }; 15 };
34 16
35 // Optional data for the launch. 17 // Optional data for the launch.
36 [inline_doc] dictionary LaunchData { 18 [inline_doc] dictionary LaunchData {
37 [nodoc] Intent intent;
38
39 // The id of the file handler that the app is being invoked with. 19 // The id of the file handler that the app is being invoked with.
40 DOMString? id; 20 DOMString? id;
41 21
42 LaunchItem[]? items; 22 LaunchItem[]? items;
43 }; 23 };
44 24
45 interface Events { 25 interface Events {
46 // Fired when an app is launched from the launcher or in response to a web 26 // Fired when an app is launched from the launcher. Deprecated.
benwells 2013/02/11 08:04:44 This is still used :) Please don't make it depreca
47 // intent. 27 [nodoc] static void onLaunched(optional LaunchData launchData);
48 static void onLaunched(optional LaunchData launchData);
49 28
50 // Fired at Chrome startup to apps that were running when Chrome last shut 29 // Fired at Chrome startup to apps that were running when Chrome last shut
51 // down. 30 // down.
52 static void onRestarted(); 31 static void onRestarted();
53 }; 32 };
54
55 dictionary IntentResponse {
56 // Identifies the intent.
57 long intentId;
58
59 // Was this intent successful? (i.e., postSuccess vs postFailure).
60 boolean success;
61
62 // Data associated with the intent response.
63 any data;
64 };
65
66 interface Functions {
67 // postIntentResponse is an internal method to responds to an intent
68 // previously sent to a packaged app. This is identified by intentId, and
69 // should only be invoked at most once per intentId.
70 [nodoc] static void postIntentResponse(IntentResponse intentResponse);
71 };
72 }; 33 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698