ISSUE-44: What do APIs hang off of?

apiHanging

What do APIs hang off of?

State:
CLOSED
Product:
APIs — General
Raised by:
Robin Berjon
Opened on:
2009-11-12
Description:
one issue we have with APIs is also how they are exposed. Say for
instance that the Contacts API has a basic interface providing access
to the rest of the functionality called "Contacts". We could:

1) Make it available as a constructor:
2) Make it available as an object already instantiated in the global
scope
3) Make a way of requesting that an API be "loaded"
4) Use an object to provide access to all the device APIs
5) Hang it off from a markup element
6) Hang it off from an event object

Discussion thread starting at:
http://lists.w3.org/Archives/Public/public-device-apis/2009Oct/0008.html
which lead to the following observations:
• window.navigator has been used many times for this type of APIs
• a possible window.navigator.device host for the DAP APIs, with the start of a spec at http://dev.w3.org/2009/dap/device/Overview.html
• the need to look at it on an API-per-API basis, taking into account the security model, the activation model (e.g. from an event, a markup element), the locking model wrt Web workers
• the need to watch for clashes in existing Web content
(the latter two points having been raised by Hixie http://lists.w3.org/Archives/Public/public-device-apis/2009Oct/0122.html)
Related Actions Items:
No related actions
Related emails:
  1. Draft minutes 2010-01-13 (from frederick.hirsch@nokia.com on 2010-01-13)
  2. Draft minutes, 2009-12-16 (from frederick.hirsch@nokia.com on 2009-12-16)
  3. Re: ISSUE-44 (apiHanging): What do APIs hang off of? [APIs â General] (from ifette@google.com on 2009-11-12)
  4. Re: What does it all hang off of? (from dom@w3.org on 2009-11-12)
  5. ISSUE-44 (apiHanging): What do APIs hang off of? [APIs — General] (from sysbot+tracker@w3.org on 2009-11-12)

Related notes:

new thread on that topic: http://lists.w3.org/Archives/Public/public-device-apis/2009Dec/0212.html

Dominique Hazaël-Massieux, 16 Dec 2009, 16:18:35

Display change log ATOM feed


Anssi Kostiainen <anssi.kostiainen@intel.com>, Reilly Grant <reillyg@google.com>, Chairs, Fuqiao Xue <xfq@w3.org>, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 44.html,v 1.1 2019/11/08 08:58:44 carcone Exp $