W3C home > Mailing lists > Public > public-web-intents@w3.org > January 2012

Re: Supporting extra parameters on the Intent object

From: Charles Pritchard <chuck@jumis.com>
Date: Mon, 30 Jan 2012 11:50:53 -0800
Message-ID: <4F26F49D.6040208@jumis.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 January 2012 19:51:17 GMT