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 [ | 5 [ |
6 { | 6 { |
7 "namespace":"experimental.app", | 7 "namespace":"experimental.app", |
8 "functions": [ | 8 "functions": [ |
9 { | 9 { |
10 "name": "notify", | 10 "name": "notify", |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 }, | 72 }, |
73 { | 73 { |
74 "type": "function", | 74 "type": "function", |
75 "name": "callback", | 75 "name": "callback", |
76 "optional": true, | 76 "optional": true, |
77 "description": "A callback when the function is complete. Any errors
will be reported in <a href='extension.html#property-lastError'>chrome.extensio
n.lastError</a>.", | 77 "description": "A callback when the function is complete. Any errors
will be reported in <a href='extension.html#property-lastError'>chrome.extensio
n.lastError</a>.", |
78 "parameters": [] | 78 "parameters": [] |
79 } | 79 } |
80 ] | 80 ] |
81 } | 81 } |
82 ], | |
83 "events": [ | |
84 { | |
85 "name": "onLaunched", | |
86 "type": "function", | |
87 "description": "Fired when the app is launched.", | |
88 "parameters": [ | |
89 { | |
90 "type": "object", | |
91 "name": "launchData", | |
92 "description": "Optional data for the launch.", | |
93 "optional": true, | |
94 "properties": { | |
95 "intent": { | |
96 "type": "object", | |
97 "description": "A WebIntents intent object.", | |
98 "properties": { | |
99 "action": { | |
100 "type": "string", | |
101 "description": "The WebIntent being invoked." | |
102 }, | |
103 "type": { | |
104 "type": "string", | |
105 "description": "The MIME type of the data." | |
106 }, | |
107 "data": { | |
108 "type": "any", | |
109 "description": "Data associated with the intent." | |
110 }, | |
111 "postResult": { | |
112 "type": "function", | |
113 "description": "Null callback to be compatible with WebInten
ts." | |
114 }, | |
115 "postFailure": { | |
116 "type": "function", | |
117 "description": "Null callback to be compatible with WebInten
ts." | |
118 } | |
119 } | |
120 } | |
121 } | |
122 } | |
123 ] | |
124 } | |
125 ] | 82 ] |
126 } | 83 } |
127 ] | 84 ] |
OLD | NEW |