- From: Charles Pritchard <chuck@jumis.com>
- Date: Mon, 30 Jan 2012 11:50:53 -0800
- To: public-web-intents@w3.org
On 1/29/12 6:18 PM, James Hawkins wrote:
> [Constructor(in string action, in string type, in any data)]
> interface Intent {
> readonly attribute DOMString action;
> readonly attribute DOMString type;
> readonly attribute any data;
> readonly attribute Dictionary extras;<--- Added
> void postResult (any data, optional Dictionary extras);<---
> |extras| added
> void postFailure (any data);
> };
>
> Client:
>
> document.getElementById('attach').onclick = function() {
> var intent = new Intent("http://webintents.org/pick", "*");
> navigator.startActivity(intent, filePicked);
> });
>
> Service:
>
> if (window.intent) {
> ....
> window.intent.postResult(selectedFile, {filename: selectedFilename});
> }
Where did we land on Transferable [1] objects?
http://www.whatwg.org/specs/web-apps/current-work/multipage/web-messaging.html#dom-window-postmessage
[1] The "transfer" argument in the postMessage signature:
postMessage(message, targetOrigin, transfer)
Received on Monday, 30 January 2012 19:51:16 UTC