OLD | NEW |
1 <h1>Connect Apps with Web Intents</h1> | 1 <h1>Connect Apps with Web Intents</h1> |
2 | 2 |
3 <p class="warning"> | 3 <p class="warning"> |
4 <b>Warning: </b> | 4 <b>Warning: </b> |
5 Deprecated in Chrome 24. | 5 Deprecated in Chrome 24. |
6 Web intents are no longer supported. | 6 Web intents are no longer supported. |
7 </p> | 7 </p> |
8 | 8 |
9 <p> | 9 <p> |
10 <a href="http://webintents.org/">Web Intents</a> | 10 <a href="http://webintents.org/">Web Intents</a> |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 191 |
192 <p class="warning"> | 192 <p class="warning"> |
193 <b>Warning: </b> | 193 <b>Warning: </b> |
194 Deprecated in Chrome 24. | 194 Deprecated in Chrome 24. |
195 Web intents are no longer supported. | 195 Web intents are no longer supported. |
196 </p> | 196 </p> |
197 | 197 |
198 <p> | 198 <p> |
199 If your application or extension is localized | 199 If your application or extension is localized |
200 as per the guidelines in | 200 as per the guidelines in |
201 <a href="i18n.html">Internationalization (i18n)</a>, | 201 <a href="i18n">Internationalization (i18n)</a>, |
202 you can localize the title of your intent in the picker | 202 you can localize the title of your intent in the picker |
203 using the exact same infrastructure: | 203 using the exact same infrastructure: |
204 </p> | 204 </p> |
205 | 205 |
206 <pre data-filename="manifest.json"> | 206 <pre data-filename="manifest.json"> |
207 "intents": { | 207 "intents": { |
208 "http://webintents.org/edit" : [{ | 208 "http://webintents.org/edit" : [{ |
209 "title" : "__MSG_intent_title__", | 209 "title" : "__MSG_intent_title__", |
210 "type" : ["image/*"], | 210 "type" : ["image/*"], |
211 "disposition" : "inline" | 211 "disposition" : "inline" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 console.log(intent.action); | 272 console.log(intent.action); |
273 console.log(intent.type); | 273 console.log(intent.type); |
274 var data = intent.data; | 274 var data = intent.data; |
275 // Do something with the data; | 275 // Do something with the data; |
276 | 276 |
277 intent.postResult(newData); | 277 intent.postResult(newData); |
278 }); | 278 }); |
279 </pre> | 279 </pre> |
280 | 280 |
281 <p class="backtotop"><a href="#top">Back to top</a></p> | 281 <p class="backtotop"><a href="#top">Back to top</a></p> |
OLD | NEW |