Re: Supporting extra parameters on the Intent object

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