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

Re: Adding fields for transfer map to Intent constructor

From: Charles Pritchard <chuck@jumis.com>
Date: Mon, 12 Mar 2012 13:18:26 -0700
Message-ID: <4F5E5A12.20905@jumis.com>
To: Greg Billock <gbillock@google.com>
CC: WebIntents <public-web-intents@w3.org>
On 3/12/2012 12:52 PM, Greg Billock wrote:
> new Intent(action, type, data, transferables_array)
> and in delivery, the Intent object would have a 'ports' field where
> passed ports would be recovered.
> For passing transferables in the reverse direction, we'd have
> postResult(data, transferables_array)
> and in the client, this would translate to
> onSuccess(data, ports)
> This has the disadvantages and advantages of parallelism with the
> existing transferables uses.
> Any opinions or alternatives to consider? I haven't made the 'extras'
> change to the spec yet because this change would be competing for that
> same spot. If there's no objection to adding this transferables array
> argument, I'll add them both at the same time.

Here are my attempts at WebIDL from the specs and recent web messaging 
optional Dictionary extras
optional sequence<Transferable> transfer

Changes to the Constructor and Intent interface:
(DOMString action, DOMString type, any data, optional 
sequence<Transferable> transfer),
(DOMString action, DOMString type, any data, optional Dictionary extras)]
interface Intent {}

partial interface Intent {
     readonly attribute Dictionary? extras;
     readonly attribute MessagePort[]? ports;
     void postResult (any data, optional sequence<Transferable> transfer);
Received on Monday, 12 March 2012 20:18:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:14:46 UTC