OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 [ | |
6 { | |
7 "namespace":"app.runtime", | |
asargent_no_longer_on_chrome
2012/08/10 00:09:10
nit: can you put this in an IDL instead of a .json
| |
8 "events": [ | |
9 { | |
10 "name": "onLaunched", | |
11 "type": "function", | |
12 "description": "Fired when the app is launched.", | |
13 "parameters": [ | |
14 { | |
15 "type": "object", | |
16 "name": "launchData", | |
17 "description": "Optional data for the launch.", | |
18 "optional": true, | |
19 "properties": { | |
20 "intent": { | |
21 "type": "object", | |
22 "description": "A WebIntents intent object.", | |
23 "properties": { | |
24 "action": { | |
25 "type": "string", | |
26 "description": "The WebIntent being invoked." | |
27 }, | |
28 "type": { | |
29 "type": "string", | |
30 "description": "The MIME type of the data." | |
31 }, | |
32 "data": { | |
33 "type": "any", | |
34 "description": "Data associated with the intent." | |
35 }, | |
36 "postResult": { | |
37 "type": "function", | |
38 "description": "Null callback to be compatible with WebInten ts." | |
39 }, | |
40 "postFailure": { | |
41 "type": "function", | |
42 "description": "Null callback to be compatible with WebInten ts." | |
43 } | |
44 } | |
45 } | |
46 } | |
47 } | |
48 ] | |
49 } | |
50 ] | |
51 } | |
52 ] | |
OLD | NEW |