- From: Max Froumentin <maxfro@opera.com>
- Date: Wed, 02 Dec 2009 13:41:15 +0100
- To: richard.tibbett@orange-ftgroup.com
- CC: cvsmail@w3.org, public-dap-commits@w3.org
On 02/12/2009 12:45, richard.tibbett@orange-ftgroup.com wrote: > Wow....commit list exploding! > > I'm unclear on what to do one this point (CaptureCallback v > SuccessCallback). > > In the Contacts API it's a generic SuccessCallback with an onSuccess > object parameter. In the prose for async methods it describes the format > of the resulting object to onSuccess (e.g. Contact, > sequence<ContactResult>, etc). > > If we have a general purpose success and error callback this could be > abstracted to e.g. the Device API [1] and referenced from multiple API > specs accordingly. Anything that factor things out, and makes specs shorter, I like. And I've just committed a change to battery in SysInfo that does like Contacts, and I hope that the callbacks and the cancellableOperations can be abstracted away for all the APIs. Max. > > WDYT? > > Richard > > [1] http://dev.w3.org/2009/dap/device/ > > > ---------- > | | Rich Tibbett > | | Orange Labs UK :: Service Evolution :: Research Engineer > | orange | T: +442088495885 M: +447973525063 > ---------- > > "If we knew what it was we were doing, it would not be called research, > would it?" - A Einstein > > >> -----Original Message----- >> From: public-dap-commits-request@w3.org >> [mailto:public-dap-commits-request@w3.org] On Behalf Of >> Dominique Hazael-Massieux via cvs-syncmail >> Sent: 02 December 2009 10:30 >> To: public-dap-commits@w3.org >> Subject: 2009/dap/camera Overview.html,1.22,1.23 >> >> Update of /sources/public/2009/dap/camera In directory >> hutz:/tmp/cvs-serv3031 >> >> Modified Files: >> Overview.html >> Log Message: >> s/SuccessCallback/CaptureCallback/ >> >> >> Index: Overview.html >> =================================================================== >> RCS file: /sources/public/2009/dap/camera/Overview.html,v >> retrieving revision 1.22 >> retrieving revision 1.23 >> diff -u -d -r1.22 -r1.23 >> --- Overview.html 2 Dec 2009 09:56:46 -0000 1.22 >> +++ Overview.html 2 Dec 2009 10:29:33 -0000 1.23 >> @@ -233,7 +233,7 @@ >> </dd><dt>attribute unsigned long width</dt><dd>The width >> attribute represents width of the image or video in pixels. >> Not applicable for a sound clip. >> </dd></dl> >> </section><section >> id="capturecallbak"><h3><a>CaptureCallback</a> interface</h3> >> -<dl title="[Callback=FunctionOnly, NoInterfaceObject] >> interface SuccessCallback" class="idl"> >> +<dl title="[Callback=FunctionOnly, NoInterfaceObject] >> interface CaptureCallback" class="idl"> >> <dt>void onSuccess ()</dt><dd> >> <dl class="parameters"><dt>MediaArray capturedMedia >> </dt><dd>Sequence of MediaData successfully captured by the >> device</dd> >> </dd></dl> >> >> >> >
Received on Wednesday, 2 December 2009 12:41:55 UTC