2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
23 // Introduced in DOM Level 2:
26 ObjCCustomInternalImpl
,
27 InterfaceUUID
=D17495FA
-ACAD
-4d27
-9362-E19E057B189D
,
28 ImplementationUUID
=CFDCDDB2
-5B3F
-412d
-BDA4
-80B23C721549
32 const unsigned short CAPTURING_PHASE
= 1;
33 const unsigned short AT_TARGET
= 2;
34 const unsigned short BUBBLING_PHASE
= 3;
36 #if
!defined
(LANGUAGE_OBJECTIVE_C
)
37 // Reverse-engineered from Netscape
38 const unsigned short MOUSEDOWN
= 1;
39 const unsigned short MOUSEUP
= 2;
40 const unsigned short MOUSEOVER
= 4;
41 const unsigned short MOUSEOUT
= 8;
42 const unsigned short MOUSEMOVE
= 16;
43 const unsigned short MOUSEDRAG
= 32;
44 const unsigned short CLICK
= 64;
45 const unsigned short DBLCLICK
= 128;
46 const unsigned short KEYDOWN
= 256;
47 const unsigned short KEYUP
= 512;
48 const unsigned short KEYPRESS
= 1024;
49 const unsigned short DRAGDROP
= 2048;
50 const unsigned short FOCUS
= 4096;
51 const unsigned short BLUR
= 8192;
52 const unsigned short SELECT
= 16384;
53 const unsigned short CHANGE
= 32768;
56 readonly attribute DOMString type
;
57 readonly attribute EventTarget target
;
58 readonly attribute EventTarget currentTarget
;
59 readonly attribute
unsigned short eventPhase
;
60 readonly attribute
boolean bubbles
;
61 readonly attribute
boolean cancelable
;
62 #if
!defined
(LANGUAGE_COM
)
63 readonly attribute DOMTimeStamp timeStamp
;
65 void stopPropagation
();
66 void preventDefault
();
67 [OldStyleObjC
] void initEvent
(in DOMString eventTypeArg
,
68 in boolean canBubbleArg
,
69 in boolean cancelableArg
);
72 readonly attribute EventTarget srcElement
;
73 attribute
boolean returnValue
;
74 attribute
boolean cancelBubble
;
76 #if defined
(LANGUAGE_JAVASCRIPT
)
77 readonly attribute
[Custom] Clipboard clipboardData
;