]>
git.saurik.com Git - iphone-api.git/blob - WebCore/EventNames.h
2 * Copyright (C) 2005, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Jon Shier (jshier@iastate.edu)
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.
25 #include "AtomicString.h"
26 #include "ThreadGlobalData.h"
30 // IPHONE: Added orientationchange, touchstart, touchmove, touchend, touchcancel, gesturestart, gesturechange, gestureend to original list
31 #define DOM_EVENT_NAMES_FOR_EACH(macro) \
75 macro(orientationchange) \
81 macro(gesturechange) \
83 macro(overflowchanged) \
85 macro(readystatechange) \
100 macro(DOMAttrModified) \
101 macro(DOMCharacterDataModified) \
104 macro(DOMNodeInserted) \
105 macro(DOMNodeInsertedIntoDocument) \
106 macro(DOMNodeRemoved) \
107 macro(DOMNodeRemovedFromDocument) \
108 macro(DOMSubtreeModified) \
109 macro(DOMContentLoaded) \
111 macro(webkitBeforeTextInserted) \
112 macro(webkitEditableContentChanged) \
115 macro(canplaythrough) \
116 macro(durationchange) \
120 macro(loadedmetadata) \
128 macro(volumechange) \
135 macro(webkitAnimationEnd) \
136 macro(webkitAnimationStart) \
137 macro(webkitAnimationIteration) \
139 macro(webkitTransitionEnd) \
141 // end of DOM_EVENT_NAMES_FOR_EACH
145 int dummy
; // Needed to make initialization macro work.
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
155 inline EventNames
& eventNames()
157 return threadGlobalData().eventNames();