Re: DOM3EV: [ViewModes] typeArg on initXXXEvent

2009-08-27 Thread Doug Schepers

Hi, Marcin-

Olli answered most of your questions, but I had one more comment, inline...

Marcin Hanclik wrote (on 8/24/09 12:21 PM):


Another issue related to DOM3EV: There seems to be no naming
convention for the events. We have DOMSubtreeModified, mousewheel,
keyup, textInput and so on. Is it related to the history that
CamelCase is used only partially (it seems it is not used only for
DOM2EVs)?


The camelCase names were a fad.  It's much more author-friendly to 
simply use lowercase (easier to type, easier to remember), and that is 
what we suggest for all new events.  We also suggest using the shortest 
name that still conveys what the event is meant to do.


Regards-
-Doug Schepers
W3C Team Contact, SVG and WebApps WGs



RE: DOM3EV: [ViewModes] typeArg on initXXXEvent

2009-08-24 Thread Marcin Hanclik
Thanks!
The issue is still there.
Actually for mousewheel, wheel and textInput as I can see.

Another issue related to DOM3EV:
There seems to be no naming convention for the events. We have
DOMSubtreeModified, mousewheel, keyup, textInput and so on.
Is it related to the history that CamelCase is used only partially (it seems it 
is not used only for DOM2EVs)?

Thanks,
Marcin

Marcin Hanclik
ACCESS Systems Germany GmbH
Tel: +49-208-8290-6452  |  Fax: +49-208-8290-6465
Mobile: +49-163-8290-646
E-Mail: marcin.hanc...@access-company.com

-Original Message-
From: Olli Pettay [mailto:olli.pet...@helsinki.fi]
Sent: Monday, August 24, 2009 6:08 PM
To: Marcin Hanclik
Cc: www-...@w3.org; public-webapps@w3.org
Subject: Re: DOM3EV: [ViewModes] typeArg on initXXXEvent

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.hanc...@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.






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.



Re: DOM3EV: [ViewModes] typeArg on initXXXEvent

2009-08-24 Thread Olli Pettay

On 8/24/09 7:21 PM, Marcin Hanclik wrote:

Thanks!
The issue is still there.

Sorry, but what issue? It is ok to use existing event interfaces for
other events than what is defined in the DOM spec.



Actually for mousewheel, wheel and textInput as I can see.



-Olli



Re: DOM3EV: [ViewModes] typeArg on initXXXEvent

2009-08-24 Thread Bjoern Hoehrmann
* Marcin Hanclik wrote:
In the ViewModes specification [1] we define a few new events.
All the initXXXEvent methods have currently typeArg parameter.
I think they are superfluous, [...]

There is a n:n relationship between event types and event interfaces,
just because it may be 1:1 in special cases currently does not imply
that will remain to be the case in the future; further, omitting the
parameter in those cases would make the pattern more complicated, you
have to remember more rules, or rather, look the definition up each
time you attempt to use one of the init* methods, given how rarely
they are used and how many there are.
-- 
Björn Höhrmann · mailto:bjo...@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/