W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2008

Re: [widgets] Device Specific APIs and Services

From: timeless <timeless@gmail.com>
Date: Fri, 20 Jun 2008 13:32:12 +0300
Message-ID: <26b395e60806200332j4c7cb7a4h4bb326e0db00a4bb@mail.gmail.com>
To: "Marcos Caceres" <marcosscaceres@gmail.com>
Cc: "public-webapps@w3.org" <public-webapps@w3.org>

On Fri, Jun 20, 2008 at 11:37 AM, Marcos Caceres
<marcosscaceres@gmail.com> wrote:
> APIs are identified as resources via URIs. For
> example:
>
> <widget>
>        <access network="true">
>                <requires id="gps"
>                                     src="http://gps.w3.org/api.jar"

This worries me. see clsid: and the problems of activex for porting platforms.

(I work on microb, and we're trying to have support for the series 60
browser widgets which have a number of things which I really don't
like and which we can't easily implement.)

>                                     type="application/jar"
>                                kind="api" />
>        </access>
> </widget>

> The interfaces that bind this binary component to JavaScript would

bad. Is api.jar really the binary component?

If what you mean is that api.jar contains an IDL file or something
equivalent to this, then it may be OK, although the language
definitely needs work.

> need to be standardized and I have no idea what they would look like
> at this point.

> interface APILoader{
>  attribute APILoader APILoader(DOMString id); // the id declared

sorry, i don't recognize this syntax. typically attributes don't take arguments.

>  void load();         //load the API
>  void cancel();     //cancel loading

what happens if the load has already finished?

can i unload() ?

>        gps = loadedAPI.bind();

you declared load() earlier, not bind().
Received on Friday, 20 June 2008 10:32:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:26 GMT