]> git.saurik.com Git - iphone-api.git/blob - WebCore/EventNames.h
Add support for new WinterBoard Settings features.
[iphone-api.git] / WebCore / EventNames.h
1 /*
2 * Copyright (C) 2005, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Jon Shier (jshier@iastate.edu)
4 *
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.
9 *
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.
14 *
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.
19 *
20 */
21
22 #ifndef EventNames_h
23 #define EventNames_h
24
25 #include "AtomicString.h"
26 #include "ThreadGlobalData.h"
27
28 namespace WebCore {
29
30 // IPHONE: Added orientationchange, touchstart, touchmove, touchend, touchcancel, gesturestart, gesturechange, gestureend to original list
31 #define DOM_EVENT_NAMES_FOR_EACH(macro) \
32 \
33 macro(abort) \
34 macro(beforecopy) \
35 macro(beforecut) \
36 macro(beforepaste) \
37 macro(beforeunload) \
38 macro(blur) \
39 macro(cached) \
40 macro(change) \
41 macro(checking) \
42 macro(click) \
43 macro(close) \
44 macro(contextmenu) \
45 macro(copy) \
46 macro(cut) \
47 macro(dblclick) \
48 macro(downloading) \
49 macro(drag) \
50 macro(dragend) \
51 macro(dragenter) \
52 macro(dragleave) \
53 macro(dragover) \
54 macro(dragstart) \
55 macro(drop) \
56 macro(error) \
57 macro(focus) \
58 macro(input) \
59 macro(keydown) \
60 macro(keypress) \
61 macro(keyup) \
62 macro(load) \
63 macro(loadstart) \
64 macro(message) \
65 macro(mousedown) \
66 macro(mousemove) \
67 macro(mouseout) \
68 macro(mouseover) \
69 macro(mouseup) \
70 macro(mousewheel) \
71 macro(noupdate) \
72 macro(obsolete) \
73 macro(offline) \
74 macro(online) \
75 macro(orientationchange) \
76 macro(touchstart) \
77 macro(touchmove) \
78 macro(touchend) \
79 macro(touchcancel) \
80 macro(gesturestart) \
81 macro(gesturechange) \
82 macro(gestureend) \
83 macro(overflowchanged) \
84 macro(paste) \
85 macro(readystatechange) \
86 macro(reset) \
87 macro(resize) \
88 macro(scroll) \
89 macro(search) \
90 macro(select) \
91 macro(selectstart) \
92 macro(storage) \
93 macro(submit) \
94 macro(textInput) \
95 macro(unload) \
96 macro(updateready) \
97 macro(zoom) \
98 \
99 macro(DOMActivate) \
100 macro(DOMAttrModified) \
101 macro(DOMCharacterDataModified) \
102 macro(DOMFocusIn) \
103 macro(DOMFocusOut) \
104 macro(DOMNodeInserted) \
105 macro(DOMNodeInsertedIntoDocument) \
106 macro(DOMNodeRemoved) \
107 macro(DOMNodeRemovedFromDocument) \
108 macro(DOMSubtreeModified) \
109 macro(DOMContentLoaded) \
110 \
111 macro(webkitBeforeTextInserted) \
112 macro(webkitEditableContentChanged) \
113 \
114 macro(canplay) \
115 macro(canplaythrough) \
116 macro(durationchange) \
117 macro(emptied) \
118 macro(ended) \
119 macro(loadeddata) \
120 macro(loadedmetadata) \
121 macro(pause) \
122 macro(play) \
123 macro(playing) \
124 macro(ratechange) \
125 macro(seeked) \
126 macro(seeking) \
127 macro(timeupdate) \
128 macro(volumechange) \
129 macro(waiting) \
130 \
131 macro(progress) \
132 macro(stalled) \
133 macro(suspend) \
134 \
135 macro(webkitAnimationEnd) \
136 macro(webkitAnimationStart) \
137 macro(webkitAnimationIteration) \
138 \
139 macro(webkitTransitionEnd) \
140 \
141 // end of DOM_EVENT_NAMES_FOR_EACH
142
143
144 class EventNames {
145 int dummy; // Needed to make initialization macro work.
146
147 public:
148 EventNames();
149
150 #define DOM_EVENT_NAMES_DECLARE(name) AtomicString name##Event;
151 DOM_EVENT_NAMES_FOR_EACH(DOM_EVENT_NAMES_DECLARE)
152 #undef DOM_EVENT_NAMES_DECLARE
153 };
154
155 inline EventNames& eventNames()
156 {
157 return threadGlobalData().eventNames();
158 }
159
160 }
161
162 #endif