2 * Copyright (C) 2008 Apple Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 CustomPushEventHandlerScope
,
30 GenerateNativeConverter
31 ] EventTargetNode
: Node
{
33 attribute
[DontEnum
, ProtectedListener
] EventListener onabort
;
34 attribute
[DontEnum
, ProtectedListener
] EventListener onblur
;
35 attribute
[DontEnum
, ProtectedListener
] EventListener onchange
;
36 attribute
[DontEnum
, ProtectedListener
] EventListener onclick
;
37 attribute
[DontEnum
, ProtectedListener
] EventListener oncontextmenu
;
38 attribute
[DontEnum
, ProtectedListener
] EventListener ondblclick
;
39 attribute
[DontEnum
, ProtectedListener
] EventListener onerror
;
40 attribute
[DontEnum
, ProtectedListener
] EventListener onfocus
;
41 attribute
[DontEnum
, ProtectedListener
] EventListener oninput
;
42 attribute
[DontEnum
, ProtectedListener
] EventListener onkeydown
;
43 attribute
[DontEnum
, ProtectedListener
] EventListener onkeypress
;
44 attribute
[DontEnum
, ProtectedListener
] EventListener onkeyup
;
45 attribute
[DontEnum
, ProtectedListener
] EventListener onload
;
46 attribute
[DontEnum
, ProtectedListener
] EventListener onmousedown
;
47 attribute
[DontEnum
, ProtectedListener
] EventListener onmousemove
;
48 attribute
[DontEnum
, ProtectedListener
] EventListener onmouseout
;
49 attribute
[DontEnum
, ProtectedListener
] EventListener onmouseover
;
50 attribute
[DontEnum
, ProtectedListener
] EventListener onmouseup
;
51 attribute
[DontEnum
, ProtectedListener
] EventListener onmousewheel
;
52 attribute
[DontEnum
, ProtectedListener
] EventListener onbeforecut
;
53 attribute
[DontEnum
, ProtectedListener
] EventListener oncut
;
54 attribute
[DontEnum
, ProtectedListener
] EventListener onbeforecopy
;
55 attribute
[DontEnum
, ProtectedListener
] EventListener oncopy
;
56 attribute
[DontEnum
, ProtectedListener
] EventListener onbeforepaste
;
57 attribute
[DontEnum
, ProtectedListener
] EventListener onpaste
;
58 attribute
[DontEnum
, ProtectedListener
] EventListener ondragenter
;
59 attribute
[DontEnum
, ProtectedListener
] EventListener ondragover
;
60 attribute
[DontEnum
, ProtectedListener
] EventListener ondragleave
;
61 attribute
[DontEnum
, ProtectedListener
] EventListener ondrop
;
62 attribute
[DontEnum
, ProtectedListener
] EventListener ondragstart
;
63 attribute
[DontEnum
, ProtectedListener
] EventListener ondrag
;
64 attribute
[DontEnum
, ProtectedListener
] EventListener ondragend
;
65 attribute
[DontEnum
, ProtectedListener
] EventListener onreset
;
66 attribute
[DontEnum
, ProtectedListener
] EventListener onresize
;
67 attribute
[DontEnum
, ProtectedListener
] EventListener onscroll
;
68 attribute
[DontEnum
, ProtectedListener
] EventListener onsearch
;
69 attribute
[DontEnum
, ProtectedListener
] EventListener onselect
;
70 attribute
[DontEnum
, ProtectedListener
] EventListener onselectstart
;
71 attribute
[DontEnum
, ProtectedListener
] EventListener onsubmit
;
72 attribute
[DontEnum
, ProtectedListener
] EventListener onunload
;
74 [Custom] void addEventListener
(in DOMString type
,
75 in EventListener listener
,
76 in boolean useCapture
);
77 [Custom] void removeEventListener
(in DOMString type
,
78 in EventListener listener
,
79 in boolean useCapture
);
80 boolean dispatchEvent
(in Event event
)
81 raises
(EventException
);