W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: DOM3EV: [ViewModes] typeArg on initXXXEvent

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Mon, 24 Aug 2009 19:07:41 +0300
Message-ID: <4A92BACD.9080804@helsinki.fi>
To: Marcin Hanclik <Marcin.Hanclik@access-company.com>
CC: "www-dom@w3.org" <www-dom@w3.org>, "public-webapps@w3.org" <public-webapps@w3.org>
FYI, the current draft is here
http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html


On 8/24/09 6:42 PM, Marcin Hanclik wrote:
> Hi,
>
> In the ViewModes specification [1] we define a few new events.
> All the initXXXEvent methods have currently typeArg parameter.
> I think they are superfluous, but they seem to mimic what is defined in DOM2Events and DOM3Events.
> The problem is that in DOM2Events and DOM3Event the initXXXEvent methods are for groups of lower level events, like UIEvent (DOMActivate, DOMFocusIn etc.), KeyboardEvent (keydown, keyup), MouseEvent (click, dblclick, mousedown etc.) etc.
>
> However, e.g.  DOM3Events' MouseWheelEvent [2] has only 1 possible value for typeArg, namely mousewheel [3] (if I read current version of the specification correctly).
>
> So the question arises whether typeArg is required for MouseWheelEvent?
> What happens the typeArg passed is not "mousewheel"?

Then you create some other event which type is not mousewheel but which 
implements the interface. That is how event interfaces work.


-Olli



> Could we have latest Web IDL for DOM3Events with related "raises"?
>
> Once we have the answer to the above questions, I assume the ViewModes specification will follow.
> As for me for the events specified in the current pre-FPWD document do not need typeArg, since it just unnecessarily doubles the information in the method invocation.
>
> What do you think?
>
> Thanks.
>
> Kind regards,
> Marcin
>
>
> [1] http://dev.w3.org/2006/waf/widgets-vm/Overview.src.html
> [2] http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-MouseWheelEvent
> [3] http://www.w3.org/TR/DOM-Level-3-Events/events.html#event-mousewheel
>
> Marcin Hanclik
> ACCESS Systems Germany GmbH
> Tel: +49-208-8290-6452  |  Fax: +49-208-8290-6465
> Mobile: +49-163-8290-646
> E-Mail: marcin.hanclik@access-company.com
>
>
> ________________________________________
>
> Access Systems Germany GmbH
> Essener Strasse 5  |  D-46047 Oberhausen
> HRB 13548 Amtsgericht Duisburg
> Geschaeftsfuehrer: Michel Piquemal, Tomonori Watanabe, Yusuke Kanda
>
> www.access-company.com
>
> CONFIDENTIALITY NOTICE
> This e-mail and any attachments hereto may contain information that is privileged or confidential, and is intended for use only by the
> individual or entity to which it is addressed. Any disclosure, copying or distribution of the information by anyone else is strictly prohibited.
> If you have received this document in error, please notify us promptly by responding to this e-mail. Thank you.
>
>
Received on Monday, 24 August 2009 16:08:26 GMT

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